The Post Grid - Version 5.0.5

Version Description

  • Add: Post id added in post row meta
  • Updated: Notice security updated
Download this release

Release Info

Developer techlabpro1
Plugin Icon 128x128 The Post Grid
Version 5.0.5
Comparing to
See all releases

Code changes from version 5.0.4 to 5.0.5

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: post grid, content grid, post display, post slider, post grid elementor addon
5
  Requires at least: 4.5
6
  Tested up to: 6.1
7
- Stable tag: 5.0.4
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -38,6 +38,8 @@ Gutenberg post grid blocks has multiple blocks like grid, list, grid hover, grid
38
 
39
  [Gutenberg Demo](https://www.radiustheme.com/demo/plugins/the-post-grid-gutenberg/)
40
 
 
 
41
 
42
  == 🏆 FEATURES ==
43
 
@@ -363,6 +365,10 @@ With the Post Grid PRO, you get to use the Single Page Builder, which is based o
363
 
364
  == Changelog ==
365
 
 
 
 
 
366
  = 5.0.4 =
367
  * Fixed: Cyber week notice dismiss issue
368
 
4
  Tags: post grid, content grid, post display, post slider, post grid elementor addon
5
  Requires at least: 4.5
6
  Tested up to: 6.1
7
+ Stable tag: 5.0.5
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
38
 
39
  [Gutenberg Demo](https://www.radiustheme.com/demo/plugins/the-post-grid-gutenberg/)
40
 
41
+ [youtube https://www.youtube.com/watch?v=wHWAnfL0VhU]
42
+
43
 
44
  == 🏆 FEATURES ==
45
 
365
 
366
  == Changelog ==
367
 
368
+ = 5.0.5 =
369
+ * Add: Post id added in post row meta
370
+ * Updated: Notice security updated
371
+
372
  = 5.0.4 =
373
  * Fixed: Cyber week notice dismiss issue
374
 
app/Controllers/Admin/NoticeController.php CHANGED
@@ -30,17 +30,7 @@ class NoticeController {
30
  register_activation_hook( RT_THE_POST_GRID_PLUGIN_ACTIVE_FILE_NAME, [ $this, 'rttpg_activation_time' ] );
31
  add_action( 'admin_init', [ $this, 'rttpg_check_installation_time' ] );
32
  add_action( 'admin_init', [ __CLASS__, 'rttpg_spare_me' ], 5 );
33
-
34
  add_action( 'admin_init', [ __CLASS__, 'rttpg_notice' ] );
35
- add_filter( 'post_row_actions', [ $this, 'filter_post_row_actions' ], 11, 2 );
36
- add_filter( 'page_row_actions', [ $this, 'filter_post_row_actions' ], 11, 2 );
37
-
38
- }
39
-
40
- public function filter_post_row_actions( $actions, $post ) {
41
-
42
- // return $post->ID;
43
- return $actions;
44
  }
45
 
46
  /**
@@ -247,9 +237,11 @@ class NoticeController {
247
  ];
248
 
249
  if ( ! in_array( $pagenow, $exclude ) ) {
250
- $dont_disturb = add_query_arg( 'rttpg_spare_me', '1', self::rttpg_current_admin_url() );
251
- $remind_me = add_query_arg( 'rttpg_remind_me', '1', self::rttpg_current_admin_url() );
252
- $rated = add_query_arg( 'rttpg_rated', '1', self::rttpg_current_admin_url() );
 
 
253
  $reviewurl = 'https://wordpress.org/support/plugin/the-post-grid/reviews/?filter=5#new-post';
254
 
255
  printf(
@@ -414,6 +406,11 @@ class NoticeController {
414
  * @return void
415
  */
416
  public static function rttpg_spare_me() {
 
 
 
 
 
417
  if ( isset( $_GET['rttpg_spare_me'] ) && ! empty( $_GET['rttpg_spare_me'] ) ) {
418
  $spare_me = absint( $_GET['rttpg_spare_me'] );
419
 
30
  register_activation_hook( RT_THE_POST_GRID_PLUGIN_ACTIVE_FILE_NAME, [ $this, 'rttpg_activation_time' ] );
31
  add_action( 'admin_init', [ $this, 'rttpg_check_installation_time' ] );
32
  add_action( 'admin_init', [ __CLASS__, 'rttpg_spare_me' ], 5 );
 
33
  add_action( 'admin_init', [ __CLASS__, 'rttpg_notice' ] );
 
 
 
 
 
 
 
 
 
34
  }
35
 
36
  /**
237
  ];
238
 
239
  if ( ! in_array( $pagenow, $exclude ) ) {
240
+
241
+ $args = [ '_wpnonce' => wp_create_nonce( 'rttpg_notice_nonce' ) ];
242
+ $dont_disturb = add_query_arg( $args + [ 'rttpg_spare_me' => '1' ], self::rttpg_current_admin_url() );
243
+ $remind_me = add_query_arg( $args + [ 'rttpg_remind_me' => '1' ], self::rttpg_current_admin_url() );
244
+ $rated = add_query_arg( $args + [ 'rttpg_rated' => '1' ], self::rttpg_current_admin_url() );
245
  $reviewurl = 'https://wordpress.org/support/plugin/the-post-grid/reviews/?filter=5#new-post';
246
 
247
  printf(
406
  * @return void
407
  */
408
  public static function rttpg_spare_me() {
409
+
410
+ if ( ! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'rttpg_notice_nonce' ) ) {
411
+ return;
412
+ }
413
+
414
  if ( isset( $_GET['rttpg_spare_me'] ) && ! empty( $_GET['rttpg_spare_me'] ) ) {
415
  $spare_me = absint( $_GET['rttpg_spare_me'] );
416
 
app/Controllers/Api/GetPostsV1.php CHANGED
@@ -5,352 +5,359 @@ namespace RT\ThePostGrid\Controllers\Api;
5
  use RT\ThePostGrid\Helpers\Fns;
6
  use WP_Query;
7
 
8
- class GetPostsV1
9
- {
10
- public function __construct()
11
- {
12
- add_action("rest_api_init", [$this, 'register_post_route']);
13
- }
14
-
15
- public function register_post_route()
16
- {
17
- register_rest_route('rttpg/v1', 'query', [
18
- 'methods' => 'POST',
19
- 'callback' => [$this, 'get_all_posts'],
20
- 'permission_callback' => function () {
21
- return true;
22
- }
23
- ]);
24
- }
25
-
26
-
27
- public function get_all_posts($data)
28
- {
29
-
30
- $prefix = isset($data["prefix"]) ? $data["prefix"] : 'grid';
31
-
32
- $args = [
33
- 'post_type' => $data["post_type"],
34
- 'post_status' => 'publish',
35
- ];
36
-
37
- $excluded_ids = null;
38
-
39
- if ($data['post_id']) {
40
- $post_ids = explode(',', $data['post_id']);
41
- $post_ids = array_map('trim', $post_ids);
42
-
43
- $args['post__in'] = $post_ids;
44
-
45
- if ($excluded_ids != null && is_array($excluded_ids)) {
46
- $args['post__in'] = array_diff($post_ids, $excluded_ids);
47
- }
48
- }
49
-
50
- if ($prefix !== 'slider' && 'show' === $data['show_pagination']) {
51
- $_paged = is_front_page() ? "page" : "paged";
52
- $args['paged'] = get_query_var($_paged) ? absint(get_query_var($_paged)) : absint($data['page']);
53
- }
54
-
55
- if (rtTPG()->hasPro() && 'yes' == $data['ignore_sticky_posts']) {
56
- $args['ignore_sticky_posts'] = 1;
57
- }
58
-
59
- if ($orderby = $data['orderby']) {
60
- if (!rtTPG()->hasPro() && 'rand' == $orderby) {
61
- $orderby = 'date';
62
- }
63
- $args['orderby'] = $orderby;
64
- }
65
-
66
- if ($data['order']) {
67
- $args['order'] = $data['order'];
68
- }
69
-
70
- if ($data['author']) {
71
- $args['author__in'] = $data['author'];
72
- }
73
-
74
- if (rtTPG()->hasPro() && ($data['start_date'] || $data['end_date'])) {
75
- $args['date_query'] = [
76
- [
77
- 'after' => trim($data['start_date']),
78
- 'before' => trim($data['end_date']),
79
- 'inclusive' => true,
80
- ],
81
- ];
82
- }
83
-
84
-
85
- //TODO: Taxonomy should implement after
86
- $_taxonomies = get_object_taxonomies($data['post_type'], 'objects');
87
- $_taxonomy_list = $data['taxonomy_lists'];
88
- $filtered_taxonomy_lists = [];
89
-
90
- foreach ($_taxonomies as $index => $object) {
91
- if (in_array($object->name, Fns::get_excluded_taxonomy())) {
92
- continue;
93
- }
94
-
95
- $filtered_taxonomy_lists[$object->name] = isset($_taxonomy_list[$object->name]) ? $_taxonomy_list[$object->name]['options'] : NULL;
96
- $_term_list = isset($_taxonomy_list[$object->name]) ? wp_list_pluck($_taxonomy_list[$object->name]['options'], 'value') : NULL;
97
- if (!empty($_term_list)) {
98
- $args['tax_query'][] = [
99
- 'taxonomy' => $object->name,
100
- 'field' => 'term_id',
101
- 'terms' => $_term_list,
102
- ];
103
- }
104
- if (!empty($args['tax_query']) && $data['relation']) {
105
- $args['tax_query']['relation'] = $data['relation'];
106
- }
107
- }
108
-
109
- if ($data['post_keyword']) {
110
- $args['s'] = $data['post_keyword'];
111
- }
112
-
113
- $excluded_ids = [];
114
- $offset_posts = [];
115
- if ($data['exclude'] || $data['offset']) {
116
- if ($data['exclude']) {
117
- $excluded_ids = explode(',', $data['exclude']);
118
- $excluded_ids = array_map('trim', $excluded_ids);
119
- }
120
-
121
- if ($data['offset']) {
122
- $_temp_args = $args;
123
- unset($_temp_args['paged']);
124
- $_temp_args['posts_per_page'] = $data['offset'];
125
- $_temp_args['fields'] = 'ids';
126
-
127
- $offset_posts = get_posts($_temp_args);
128
- }
129
-
130
- $excluded_post_ids = array_merge($offset_posts, $excluded_ids);
131
- $args['post__not_in'] = array_unique($excluded_post_ids);
132
- }
133
-
134
- if ($prefix !== 'slider') {
135
- if ($data['post_limit']) {
136
- if ('show' !== $data['show_pagination']) {
137
- $args['posts_per_page'] = $data['post_limit'];
138
- } else {
139
- $tempArgs = $args;
140
- $tempArgs['posts_per_page'] = $data['post_limit'];
141
- $tempArgs['paged'] = 1;
142
- $tempArgs['fields'] = 'ids';
143
- if (!empty($offset_posts)) {
144
- $tempArgs['post__not_in'] = $offset_posts;
145
- }
146
- $tempQ = new WP_Query($tempArgs);
147
- if (!empty($tempQ->posts)) {
148
- $args['post__in'] = $tempQ->posts;
149
- $args['posts_per_page'] = $data['post_limit'];
150
- }
151
- }
152
- } else {
153
- $_posts_per_page = 9;
154
- if ('grid' === $prefix) {
155
- if ($data['grid_layout'] == 'grid-layout5') {
156
- $_posts_per_page = 5;
157
- } elseif (in_array($data['grid_layout'], ['grid-layout6', 'grid-layout6-2'])) {
158
- $_posts_per_page = 3;
159
- } elseif (in_array($data['grid_layout'], ['grid-layout5', 'grid-layout5-2'])) {
160
- $_posts_per_page = 5;
161
- }
162
- } elseif ('list' === $prefix) {
163
- if (in_array($data['list_layout'], ['list-layout2', 'list-layout2-2'])) {
164
- $_posts_per_page = 7;
165
- } elseif (in_array($data['list_layout'], ['list-layout3', 'list-layout3-2'])) {
166
- $_posts_per_page = 5;
167
- }
168
- } elseif ('grid_hover' === $prefix) {
169
- if (in_array($data['grid_hover_layout'], ['grid_hover-layout4', 'grid_hover-layout4-2'])) {
170
- $_posts_per_page = 7;
171
- } elseif (in_array($data['grid_hover_layout'], [
172
- 'grid_hover-layout5',
173
- 'grid_hover-layout5-2'
174
- ])) {
175
- $_posts_per_page = 3;
176
- } elseif (in_array($data['grid_hover_layout'],
177
- [
178
- 'grid_hover-layout6',
179
- 'grid_hover-layout6-2',
180
- 'grid_hover-layout9',
181
- 'grid_hover-layout9-2',
182
- 'grid_hover-layout10',
183
- 'grid_hover-layout11'
184
- ])
185
- ) {
186
- $_posts_per_page = 4;
187
- } elseif (in_array($data['grid_hover_layout'], [
188
- 'grid_hover-layout7',
189
- 'grid_hover-layout7-2',
190
- 'grid_hover-layout8'
191
- ])) {
192
- $_posts_per_page = 5;
193
- } elseif (in_array($data['grid_hover_layout'], [
194
- 'grid_hover-layout6',
195
- 'grid_hover-layout6-2'
196
- ])) {
197
- $_posts_per_page = 4;
198
- }
199
- }
200
-
201
- $args['posts_per_page'] = $_posts_per_page;
202
- }
203
-
204
- if (isset($data['display_per_page']) && 'show' === $data['show_pagination'] && $data['display_per_page'] > 0) {
205
- $args['posts_per_page'] = $data['display_per_page'];
206
- }
207
- } else {
208
- $slider_per_page = $data['post_limit'];
209
- if ($data['slider_layout'] == 'slider-layout10') {
210
- $slider_reminder = (intval($data['post_limit'], 10) % 5);
211
- if ($slider_reminder) {
212
- $slider_per_page = ($data['post_limit'] - $slider_reminder + 5);
213
- }
214
- }
215
- $args['posts_per_page'] = $slider_per_page;
216
- }
217
-
218
- $_all_taxs = wp_list_pluck( $_taxonomies, 'label', 'name' );
219
-
220
- $post_tax_list = array_filter($_all_taxs, function ($item){
221
- return (! in_array($item, [
222
- 'post_format',
223
- 'elementor_library_type',
224
- 'product_visibility',
225
- 'product_shipping_class'
226
- ], true));
227
- },ARRAY_FILTER_USE_KEY);
228
-
229
- //TODO: Make Query
230
- $query = new WP_Query($args);
231
-
232
- $post_layout = $data[$prefix . '_layout'];
233
-
234
- $send_data = [
235
- 'posts' => [],
236
- 'total_post' => $query->found_posts,
237
- 'query_args' => $args,
238
- 'query_info' => [
239
- 'prefix' => $prefix,
240
- 'layout' => $post_layout,
241
- 'taxonomy' => $post_tax_list
242
- ]
243
- ];
244
-
245
- // $send_data['total_post'] = esc_html( $query->found_posts );
246
- if ($query->have_posts()) {
247
- $pCount = 1;
248
- while ($query->have_posts()) {
249
- $query->the_post();
250
- $id = get_the_id();
251
- $post_count = $query->post_count;
252
- set_query_var('tpg_post_count', $pCount);
253
- set_query_var('tpg_total_posts', $post_count);
254
- global $post;
255
-
256
- $cf_group = isset($data['acf_data_lists'][$data["post_type"] . '_cf_group']) ? $data['acf_data_lists'][$data["post_type"] . '_cf_group']['options'] : [];
257
- $cf_group_collection = wp_list_pluck($cf_group, 'value');
258
-
259
- $acfArgs = [
260
- 'is_guten' => 'yes',
261
- 'show_acf' => $data['show_acf'],
262
- 'cf_hide_empty_value' => $data['cf_hide_empty_value'],
263
- 'cf_show_only_value' => $data['cf_show_only_value'],
264
- 'cf_hide_group_title' => $data['cf_hide_group_title'],
265
- 'cf_group' => $cf_group_collection,
266
- ];
267
-
268
- $acf_data = Fns::tpg_get_acf_data_elementor($acfArgs, $id, false);
269
-
270
-
271
- //First image from the post
272
- preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content(), $matches);
273
- if (empty($first_img)) { //Defines a default image
274
- $first_img = RT_THE_POST_GRID_PLUGIN_PATH . "/images/default.png";
275
- } else {
276
- $first_img = $matches [1] [0];
277
- }
278
-
279
-
280
- $category_terms_list = get_the_terms($id, $data['category_source'] ? $data['category_source'] : 'category');
281
- $tags_terms_list = get_the_terms($id, $data['tag_source'] ? $data['tag_source'] : 'post_tag');
282
-
283
- $category_terms = wp_list_pluck($category_terms_list, 'name');
284
- $tags_terms = wp_list_pluck($tags_terms_list, 'name');
285
- $img_url = esc_url_raw(get_the_post_thumbnail_url($id, $data['image_size']));
286
- $img_offset_url = '';
287
- if (isset($data['image_offset_size']) && $data['image_offset_size']) {
288
- $img_offset_url = esc_url_raw(get_the_post_thumbnail_url($id, $data['image_offset_size']));
289
- }
290
-
291
- // error_log( print_r( $category_terms , true ) . "\n\n" , 3, __DIR__ . '/log.txt' );
292
-
293
-
294
- if ('first_image' === $data['media_source']) {
295
- $img_url = Fns::get_content_first_image($id, 'url');
296
- }
297
-
298
- if (isset($data['default_image']['id']) && !$img_url) {
299
- $img_size_key = 'image_size';
300
- $default_img_url = wp_get_attachment_image_src($data['default_image']['id'], $data[$img_size_key]);
301
- $img_url = $default_img_url[0];
302
- }
303
-
304
- $excerpt_args = [
305
- 'excerpt_type' => $data['excerpt_type'],
306
- 'excerpt_limit' => $data['excerpt_limit'],
307
- 'excerpt_more_text' => $data['excerpt_more_text'],
308
- ];
309
-
310
- $exerpt = Fns::get_the_excerpt($id, $excerpt_args);
311
-
312
- $author_id = get_the_author_meta('ID');
313
- $author_avatar_url = get_avatar_url($author_id);
314
-
315
- $count_key = Fns::get_post_view_count_meta_key();
316
- $get_view_count = get_post_meta($id, $count_key, true);
317
-
318
- $send_data['posts'][] = [
319
- "author_name" => esc_html(get_the_author_meta('display_name', $author_id)),
320
- "avatar_url" => esc_url($author_avatar_url),
321
- "comment_count" => esc_html(get_comments_number($id)),
322
- "content" => get_the_content(),
323
- "category" => !empty($category_terms) ? $category_terms : [],
324
- "tags" => !empty($tags_terms) ? $tags_terms : '',
325
- "excerpt" => $exerpt,
326
- "id" => $id,
327
- "image_url" => $img_url,
328
- "thumb_url" => get_the_post_thumbnail_url($id, 'thumbnail'),
329
- "offset_image_url" => $img_offset_url,
330
- "post_date" => esc_html(get_the_date()),
331
- "post_link" => get_the_permalink(),
332
- "post_type" => $data["post_type"],
333
- "prefix" => $prefix,
334
- "post_count" => esc_html($get_view_count),
335
- "title" => wp_kses($post->post_title, Fns::allowedHtml()),
336
- 'taxonomy_lists' => $filtered_taxonomy_lists,
337
- "post_class" => join(' ', get_post_class(null, $id)),
338
- "layout_style" => $data['layout_style'],
339
- "hover_animation" => $data['hover_animation'],
340
- 'acf_data' => $acf_data,
341
- 'tpg_post_count' => $pCount,
342
- 'tpg_total_posts' => $post_count
343
- ];
344
-
345
- $pCount++;
346
- }
347
- } else {
348
- $send_data['message'] = $data['no_posts_found_text'] ? $data['no_posts_found_text'] : __("No posts found", "the-post-grid");
349
- $send_data['args'] = $args;
350
- }
351
-
352
- wp_reset_postdata();
353
-
354
- return rest_ensure_response($send_data);
355
- }
 
 
 
 
 
 
 
356
  }
5
  use RT\ThePostGrid\Helpers\Fns;
6
  use WP_Query;
7
 
8
+ class GetPostsV1 {
9
+ public function __construct() {
10
+ add_action( "rest_api_init", [ $this, 'register_post_route' ] );
11
+ }
12
+
13
+ public function register_post_route() {
14
+ register_rest_route( 'rttpg/v1', 'query', [
15
+ 'methods' => 'POST',
16
+ 'callback' => [ $this, 'get_all_posts' ],
17
+ 'permission_callback' => function () {
18
+ return true;
19
+ }
20
+ ] );
21
+ }
22
+
23
+
24
+ public function get_all_posts( $data ) {
25
+
26
+ $prefix = isset( $data["prefix"] ) ? $data["prefix"] : 'grid';
27
+
28
+ $args = [
29
+ 'post_type' => $data["post_type"],
30
+ 'post_status' => 'publish',
31
+ ];
32
+
33
+ $excluded_ids = null;
34
+
35
+ if ( $data['post_id'] ) {
36
+ $post_ids = explode( ',', $data['post_id'] );
37
+ $post_ids = array_map( 'trim', $post_ids );
38
+
39
+ $args['post__in'] = $post_ids;
40
+
41
+ if ( $excluded_ids != null && is_array( $excluded_ids ) ) {
42
+ $args['post__in'] = array_diff( $post_ids, $excluded_ids );
43
+ }
44
+ }
45
+
46
+ if ( $prefix !== 'slider' && 'show' === $data['show_pagination'] ) {
47
+ $_paged = is_front_page() ? "page" : "paged";
48
+ $args['paged'] = get_query_var( $_paged ) ? absint( get_query_var( $_paged ) ) : absint( $data['page'] );
49
+ }
50
+
51
+ if ( rtTPG()->hasPro() && 'yes' == $data['ignore_sticky_posts'] ) {
52
+ $args['ignore_sticky_posts'] = 1;
53
+ }
54
+
55
+ if ( $orderby = $data['orderby'] ) {
56
+ if ( ! rtTPG()->hasPro() && 'rand' == $orderby ) {
57
+ $orderby = 'date';
58
+ }
59
+ $args['orderby'] = $orderby;
60
+ }
61
+
62
+ if ( $data['order'] ) {
63
+ $args['order'] = $data['order'];
64
+ }
65
+
66
+ if ( $data['author'] ) {
67
+ $args['author__in'] = $data['author'];
68
+ }
69
+
70
+ if ( rtTPG()->hasPro() && ( $data['start_date'] || $data['end_date'] ) ) {
71
+ $args['date_query'] = [
72
+ [
73
+ 'after' => trim( $data['start_date'] ),
74
+ 'before' => trim( $data['end_date'] ),
75
+ 'inclusive' => true,
76
+ ],
77
+ ];
78
+ }
79
+
80
+
81
+ //TODO: Taxonomy should implement after
82
+ $_taxonomies = get_object_taxonomies( $data['post_type'], 'objects' );
83
+ $_taxonomy_list = $data['taxonomy_lists'];
84
+ $filtered_taxonomy_lists = [];
85
+
86
+ foreach ( $_taxonomies as $index => $object ) {
87
+ if ( in_array( $object->name, Fns::get_excluded_taxonomy() ) ) {
88
+ continue;
89
+ }
90
+
91
+ $filtered_taxonomy_lists[ $object->name ] = isset( $_taxonomy_list[ $object->name ] ) ? $_taxonomy_list[ $object->name ]['options'] : null;
92
+ $_term_list = isset( $_taxonomy_list[ $object->name ] ) ? wp_list_pluck( $_taxonomy_list[ $object->name ]['options'], 'value' ) : null;
93
+ if ( ! empty( $_term_list ) ) {
94
+ $args['tax_query'][] = [
95
+ 'taxonomy' => $object->name,
96
+ 'field' => 'term_id',
97
+ 'terms' => $_term_list,
98
+ ];
99
+ }
100
+ if ( ! empty( $args['tax_query'] ) && $data['relation'] ) {
101
+ $args['tax_query']['relation'] = $data['relation'];
102
+ }
103
+ }
104
+
105
+ if ( $data['post_keyword'] ) {
106
+ $args['s'] = $data['post_keyword'];
107
+ }
108
+
109
+ $excluded_ids = [];
110
+ $offset_posts = [];
111
+ if ( $data['exclude'] || $data['offset'] ) {
112
+ if ( $data['exclude'] ) {
113
+ $excluded_ids = explode( ',', $data['exclude'] );
114
+ $excluded_ids = array_map( 'trim', $excluded_ids );
115
+ }
116
+
117
+ if ( $data['offset'] ) {
118
+ $_temp_args = $args;
119
+ unset( $_temp_args['paged'] );
120
+ $_temp_args['posts_per_page'] = $data['offset'];
121
+ $_temp_args['fields'] = 'ids';
122
+
123
+ $offset_posts = get_posts( $_temp_args );
124
+ }
125
+
126
+ $excluded_post_ids = array_merge( $offset_posts, $excluded_ids );
127
+ $args['post__not_in'] = array_unique( $excluded_post_ids );
128
+ }
129
+
130
+ if ( $prefix !== 'slider' ) {
131
+ if ( $data['post_limit'] ) {
132
+ if ( 'show' !== $data['show_pagination'] ) {
133
+ $args['posts_per_page'] = $data['post_limit'];
134
+ } else {
135
+ $tempArgs = $args;
136
+ $tempArgs['posts_per_page'] = $data['post_limit'];
137
+ $tempArgs['paged'] = 1;
138
+ $tempArgs['fields'] = 'ids';
139
+ if ( ! empty( $offset_posts ) ) {
140
+ $tempArgs['post__not_in'] = $offset_posts;
141
+ }
142
+ $tempQ = new WP_Query( $tempArgs );
143
+ if ( ! empty( $tempQ->posts ) ) {
144
+ $args['post__in'] = $tempQ->posts;
145
+ $args['posts_per_page'] = $data['post_limit'];
146
+ }
147
+ }
148
+ } else {
149
+ $_posts_per_page = 9;
150
+ if ( 'grid' === $prefix ) {
151
+ if ( $data['grid_layout'] == 'grid-layout5' ) {
152
+ $_posts_per_page = 5;
153
+ } else if ( in_array( $data['grid_layout'], [ 'grid-layout6', 'grid-layout6-2' ] ) ) {
154
+ $_posts_per_page = 3;
155
+ } else if ( in_array( $data['grid_layout'], [ 'grid-layout5', 'grid-layout5-2' ] ) ) {
156
+ $_posts_per_page = 5;
157
+ }
158
+ } else if ( 'list' === $prefix ) {
159
+ if ( in_array( $data['list_layout'], [ 'list-layout2', 'list-layout2-2' ] ) ) {
160
+ $_posts_per_page = 7;
161
+ } else if ( in_array( $data['list_layout'], [ 'list-layout3', 'list-layout3-2' ] ) ) {
162
+ $_posts_per_page = 5;
163
+ }
164
+ } else if ( 'grid_hover' === $prefix ) {
165
+ if ( in_array( $data['grid_hover_layout'], [ 'grid_hover-layout4', 'grid_hover-layout4-2' ] ) ) {
166
+ $_posts_per_page = 7;
167
+ } else if ( in_array( $data['grid_hover_layout'], [
168
+ 'grid_hover-layout5',
169
+ 'grid_hover-layout5-2'
170
+ ] ) ) {
171
+ $_posts_per_page = 3;
172
+ } else if ( in_array( $data['grid_hover_layout'],
173
+ [
174
+ 'grid_hover-layout6',
175
+ 'grid_hover-layout6-2',
176
+ 'grid_hover-layout9',
177
+ 'grid_hover-layout9-2',
178
+ 'grid_hover-layout10',
179
+ 'grid_hover-layout11'
180
+ ] )
181
+ ) {
182
+ $_posts_per_page = 4;
183
+ } else if ( in_array( $data['grid_hover_layout'], [
184
+ 'grid_hover-layout7',
185
+ 'grid_hover-layout7-2',
186
+ 'grid_hover-layout8'
187
+ ] ) ) {
188
+ $_posts_per_page = 5;
189
+ } else if ( in_array( $data['grid_hover_layout'], [
190
+ 'grid_hover-layout6',
191
+ 'grid_hover-layout6-2'
192
+ ] ) ) {
193
+ $_posts_per_page = 4;
194
+ }
195
+ }
196
+
197
+ $args['posts_per_page'] = $_posts_per_page;
198
+ }
199
+
200
+ if ( isset( $data['display_per_page'] ) && 'show' === $data['show_pagination'] && $data['display_per_page'] > 0 ) {
201
+ $args['posts_per_page'] = $data['display_per_page'];
202
+ }
203
+ } else {
204
+ $slider_per_page = $data['post_limit'];
205
+ if ( $data['slider_layout'] == 'slider-layout10' ) {
206
+ $slider_reminder = ( intval( $data['post_limit'], 10 ) % 5 );
207
+ if ( $slider_reminder ) {
208
+ $slider_per_page = ( $data['post_limit'] - $slider_reminder + 5 );
209
+ }
210
+ }
211
+ $args['posts_per_page'] = $slider_per_page;
212
+ }
213
+
214
+ $_all_taxs = wp_list_pluck( $_taxonomies, 'label', 'name' );
215
+
216
+ $post_tax_list = array_filter( $_all_taxs, function ( $item ) {
217
+ return ( ! in_array( $item, [
218
+ 'post_format',
219
+ 'elementor_library_type',
220
+ 'product_visibility',
221
+ 'product_shipping_class'
222
+ ], true ) );
223
+ }, ARRAY_FILTER_USE_KEY );
224
+
225
+
226
+ $query = new WP_Query( $args );
227
+
228
+ $post_layout = $data[ $prefix . '_layout' ];
229
+
230
+ $send_data = [
231
+ 'posts' => [],
232
+ 'total_post' => $query->found_posts,
233
+ 'query_args' => $args,
234
+ 'query_info' => [
235
+ 'prefix' => $prefix,
236
+ 'layout' => $post_layout,
237
+ 'taxonomy' => $post_tax_list
238
+ ]
239
+ ];
240
+
241
+ // $send_data['total_post'] = esc_html( $query->found_posts );
242
+ if ( $query->have_posts() ) {
243
+ $pCount = 1;
244
+ while ( $query->have_posts() ) {
245
+ $query->the_post();
246
+ $id = get_the_id();
247
+ $post_count = $query->post_count;
248
+ set_query_var( 'tpg_post_count', $pCount );
249
+ set_query_var( 'tpg_total_posts', $post_count );
250
+ global $post;
251
+
252
+ $cf_group = isset( $data['acf_data_lists'][ $data["post_type"] . '_cf_group' ] ) ? $data['acf_data_lists'][ $data["post_type"] . '_cf_group' ]['options'] : [];
253
+ $cf_group_collection = wp_list_pluck( $cf_group, 'value' );
254
+
255
+ $acfArgs = [
256
+ 'is_guten' => 'yes',
257
+ 'show_acf' => $data['show_acf'],
258
+ 'cf_hide_empty_value' => $data['cf_hide_empty_value'],
259
+ 'cf_show_only_value' => $data['cf_show_only_value'],
260
+ 'cf_hide_group_title' => $data['cf_hide_group_title'],
261
+ 'cf_group' => $cf_group_collection,
262
+ ];
263
+
264
+ $acf_data = Fns::tpg_get_acf_data_elementor( $acfArgs, $id, false );
265
+
266
+
267
+ //First image from the post
268
+ preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content(), $matches );
269
+ if ( empty( $first_img ) ) { //Defines a default image
270
+ $first_img = RT_THE_POST_GRID_PLUGIN_PATH . "/images/default.png";
271
+ } else {
272
+ $first_img = $matches [1] [0];
273
+ }
274
+
275
+
276
+ $category_terms_list = get_the_terms( $id, $data['category_source'] ? $data['category_source'] : 'category' );
277
+ $tags_terms_list = get_the_terms( $id, $data['tag_source'] ? $data['tag_source'] : 'post_tag' );
278
+
279
+ $category_terms = wp_list_pluck( $category_terms_list, 'name' );
280
+ $tags_terms = wp_list_pluck( $tags_terms_list, 'name' );
281
+
282
+ //TODO: Working Here 13-12-22
283
+
284
+ $_cat_bg_meta = [];
285
+ if ( $data["post_type"] == 'post' ) {
286
+ $_category_list_term = wp_list_pluck( $category_terms_list, 'term_id' );
287
+ foreach ( $_category_list_term as $item_id ) {
288
+ $meta_color = get_term_meta( $item_id, 'rttpg_category_color', true );
289
+ $_cat_bg_meta[] = $meta_color ? "#{$meta_color}" : '';
290
+ }
291
+ }
292
+
293
+
294
+ $img_url = esc_url_raw( get_the_post_thumbnail_url( $id, $data['image_size'] ) );
295
+ $img_offset_url = '';
296
+ if ( isset( $data['image_offset_size'] ) && $data['image_offset_size'] ) {
297
+ $img_offset_url = esc_url_raw( get_the_post_thumbnail_url( $id, $data['image_offset_size'] ) );
298
+ }
299
+
300
+ if ( 'first_image' === $data['media_source'] ) {
301
+ $img_url = Fns::get_content_first_image( $id, 'url' );
302
+ }
303
+
304
+ if ( isset( $data['default_image']['id'] ) && ! $img_url ) {
305
+ $img_size_key = 'image_size';
306
+ $default_img_url = wp_get_attachment_image_src( $data['default_image']['id'], $data[ $img_size_key ] );
307
+ $img_url = $default_img_url[0];
308
+ }
309
+
310
+ $excerpt_args = [
311
+ 'excerpt_type' => $data['excerpt_type'],
312
+ 'excerpt_limit' => $data['excerpt_limit'],
313
+ 'excerpt_more_text' => $data['excerpt_more_text'],
314
+ ];
315
+
316
+ $exerpt = Fns::get_the_excerpt( $id, $excerpt_args );
317
+
318
+ $author_id = get_the_author_meta( 'ID' );
319
+ $author_avatar_url = get_avatar_url( $author_id );
320
+
321
+ $count_key = Fns::get_post_view_count_meta_key();
322
+ $get_view_count = get_post_meta( $id, $count_key, true );
323
+
324
+ $send_data['posts'][] = [
325
+ "author_name" => esc_html( get_the_author_meta( 'display_name', $author_id ) ),
326
+ "avatar_url" => esc_url( $author_avatar_url ),
327
+ "comment_count" => esc_html( get_comments_number( $id ) ),
328
+ "content" => get_the_content(),
329
+ "category" => ! empty( $category_terms ) ? $category_terms : [],
330
+ "category_bg" => ! empty( $_cat_bg_meta ) ? $_cat_bg_meta : [],
331
+ "tags" => ! empty( $tags_terms ) ? $tags_terms : '',
332
+ "excerpt" => $exerpt,
333
+ "id" => $id,
334
+ "image_url" => $img_url,
335
+ "thumb_url" => get_the_post_thumbnail_url( $id, 'thumbnail' ),
336
+ "offset_image_url" => $img_offset_url,
337
+ "post_date" => esc_html( get_the_date() ),
338
+ "post_link" => get_the_permalink(),
339
+ "post_type" => $data["post_type"],
340
+ "prefix" => $prefix,
341
+ "post_count" => esc_html( $get_view_count ),
342
+ "title" => wp_kses( $post->post_title, Fns::allowedHtml() ),
343
+ 'taxonomy_lists' => $filtered_taxonomy_lists,
344
+ "post_class" => join( ' ', get_post_class( null, $id ) ),
345
+ "layout_style" => $data['layout_style'],
346
+ "hover_animation" => $data['hover_animation'],
347
+ 'acf_data' => $acf_data,
348
+ 'tpg_post_count' => $pCount,
349
+ 'tpg_total_posts' => $post_count
350
+ ];
351
+
352
+ $pCount ++;
353
+ }
354
+ } else {
355
+ $send_data['message'] = $data['no_posts_found_text'] ? $data['no_posts_found_text'] : __( "No posts found", "the-post-grid" );
356
+ $send_data['args'] = $args;
357
+ }
358
+
359
+ wp_reset_postdata();
360
+
361
+ return rest_ensure_response( $send_data );
362
+ }
363
  }
app/Controllers/Blocks/BlockController/StyleTabController.php CHANGED
@@ -752,6 +752,11 @@ class StyleTabController {
752
  'default' => 'style1',
753
  ],
754
 
 
 
 
 
 
755
  'show_cat_icon' => [
756
  'type' => 'string',
757
  'default' => '',
752
  'default' => 'style1',
753
  ],
754
 
755
+ 'category_bg_style' => [
756
+ 'type' => 'string',
757
+ 'default' => 'default',
758
+ ],
759
+
760
  'show_cat_icon' => [
761
  'type' => 'string',
762
  'default' => '',
app/Controllers/BlocksController.php CHANGED
@@ -32,9 +32,9 @@ class BlocksController {
32
  add_action( 'enqueue_block_editor_assets', [ $this, 'tpg_block_enqueue' ] );
33
 
34
  if ( version_compare( get_bloginfo( 'version' ), '5.8', '>=' ) ) {
35
- add_filter( 'block_categories_all', array( $this, 'rttpg_block_categories' ), 1, 2 );
36
  } else {
37
- add_filter( 'block_categories', array( $this, 'rttpg_block_categories' ), 1, 2 );
38
  }
39
 
40
  add_action( 'wp_ajax_rttpg_block_css_save', [ $this, 'save_block_css' ] );
@@ -60,12 +60,12 @@ class BlocksController {
60
  */
61
  public function rttpg_block_categories( $categories, $post ) {
62
  return array_merge(
63
- array(
64
- array(
65
  'slug' => 'rttpg',
66
  'title' => __( 'The Post Grid', 'the-post-grid' ),
67
- ),
68
- ),
69
  $categories
70
  );
71
  }
@@ -89,7 +89,7 @@ class BlocksController {
89
  wp_enqueue_style( 'rttpg-block-post-preview', $rttpg_upload_url . 'rttpg-block-preview.css', false, $this->version );
90
  }
91
  }
92
- } elseif ( $post_id ) {
93
  $css_dir_path = $rttpg_upload_dir . "rttpg-block-$post_id.css";
94
  $css_dir_url = $rttpg_upload_dir . "rttpg-block-$post_id.css";
95
 
@@ -196,22 +196,24 @@ class BlocksController {
196
  $ssList = ! empty( $settings['social_share_items'] ) ? $settings['social_share_items'] : [];
197
 
198
  wp_localize_script( 'rttpg-blocks-js', 'rttpgParams', [
199
- 'editor_type' => $editor_type,
200
- 'nonce' => wp_create_nonce( 'rttpg_nonce' ),
201
- 'ajaxurl' => admin_url( 'admin-ajax.php' ),
202
- 'site_url' => site_url(),
203
- 'admin_url' => admin_url(),
204
- 'plugin_url' => RT_THE_POST_GRID_PLUGIN_URL,
205
- 'plugin_pro_url' => rtTPG()->getProPath(),
206
- 'post_type' => Fns::get_post_types(),
207
- 'all_term_list' => Fns::get_all_taxonomy_guten(),
208
- 'get_taxonomies' => $get_tax_object,
209
- 'get_users' => Fns::rt_get_users(),
210
- 'hasPro' => rtTPG()->hasPro(),
211
- 'pageTitle' => get_the_title(),
212
- 'hasWoo' => Fns::is_woocommerce(),
213
- 'hasAcf' => Fns::is_acf(),
214
- 'ssList' => $ssList
 
 
215
  ]
216
  );
217
 
32
  add_action( 'enqueue_block_editor_assets', [ $this, 'tpg_block_enqueue' ] );
33
 
34
  if ( version_compare( get_bloginfo( 'version' ), '5.8', '>=' ) ) {
35
+ add_filter( 'block_categories_all', [ $this, 'rttpg_block_categories' ], 1, 2 );
36
  } else {
37
+ add_filter( 'block_categories', [ $this, 'rttpg_block_categories' ], 1, 2 );
38
  }
39
 
40
  add_action( 'wp_ajax_rttpg_block_css_save', [ $this, 'save_block_css' ] );
60
  */
61
  public function rttpg_block_categories( $categories, $post ) {
62
  return array_merge(
63
+ [
64
+ [
65
  'slug' => 'rttpg',
66
  'title' => __( 'The Post Grid', 'the-post-grid' ),
67
+ ],
68
+ ],
69
  $categories
70
  );
71
  }
89
  wp_enqueue_style( 'rttpg-block-post-preview', $rttpg_upload_url . 'rttpg-block-preview.css', false, $this->version );
90
  }
91
  }
92
+ } else if ( $post_id ) {
93
  $css_dir_path = $rttpg_upload_dir . "rttpg-block-$post_id.css";
94
  $css_dir_url = $rttpg_upload_dir . "rttpg-block-$post_id.css";
95
 
196
  $ssList = ! empty( $settings['social_share_items'] ) ? $settings['social_share_items'] : [];
197
 
198
  wp_localize_script( 'rttpg-blocks-js', 'rttpgParams', [
199
+ 'editor_type' => $editor_type,
200
+ 'nonce' => wp_create_nonce( 'rttpg_nonce' ),
201
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
202
+ 'site_url' => site_url(),
203
+ 'admin_url' => admin_url(),
204
+ 'plugin_url' => RT_THE_POST_GRID_PLUGIN_URL,
205
+ 'plugin_pro_url' => rtTPG()->getProPath(),
206
+ 'post_type' => Fns::get_post_types(),
207
+ 'all_term_list' => Fns::get_all_taxonomy_guten(),
208
+ 'get_taxonomies' => $get_tax_object,
209
+ 'get_users' => Fns::rt_get_users(),
210
+ 'hasPro' => rtTPG()->hasPro(),
211
+ 'pageTitle' => get_the_title(),
212
+ 'hasWoo' => Fns::is_woocommerce(),
213
+ 'hasAcf' => Fns::is_acf(),
214
+ 'ssList' => $ssList,
215
+ 'current_user_id' => get_current_user_id(),
216
+ 'import_with_global_settings' => false,
217
  ]
218
  );
219
 
app/Controllers/Hooks/ActionHooks.php CHANGED
@@ -12,6 +12,8 @@ if ( ! defined( 'ABSPATH' ) ) {
12
  exit( 'This script cannot be accessed directly.' );
13
  }
14
 
 
 
15
  /**
16
  * Action Hooks class.
17
  */
@@ -21,14 +23,18 @@ class ActionHooks {
21
  *
22
  * @return void
23
  */
 
24
  public static function init() {
25
  add_action( 'pre_get_posts', [ __CLASS__, 'category_query' ], 10 );
 
 
26
  }
27
 
28
  /**
29
  * Category query
30
  *
31
  * @param object $query Query.
 
32
  * @return void
33
  */
34
  public static function category_query( $query ) {
@@ -47,4 +53,18 @@ class ActionHooks {
47
  }
48
  }
49
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
12
  exit( 'This script cannot be accessed directly.' );
13
  }
14
 
15
+ use RT\ThePostGrid\Helpers\Fns;
16
+
17
  /**
18
  * Action Hooks class.
19
  */
23
  *
24
  * @return void
25
  */
26
+
27
  public static function init() {
28
  add_action( 'pre_get_posts', [ __CLASS__, 'category_query' ], 10 );
29
+ add_filter( 'post_row_actions', [ __CLASS__, 'filter_post_row_actions' ], 11, 2 );
30
+ add_filter( 'page_row_actions', [ __CLASS__, 'filter_post_row_actions' ], 11, 2 );
31
  }
32
 
33
  /**
34
  * Category query
35
  *
36
  * @param object $query Query.
37
+ *
38
  * @return void
39
  */
40
  public static function category_query( $query ) {
53
  }
54
  }
55
  }
56
+
57
+ public static function filter_post_row_actions( $actions, $post ) {
58
+ global $pagenow;
59
+ if ( 'edit.php' === $pagenow ) {
60
+ global $post;
61
+ $new_items['edit_with_elementor'] = sprintf(
62
+ '<span style="color:#135e96">ID: %s</span>',
63
+ $post->ID
64
+ );
65
+ $actions = array_merge( $actions, $new_items );
66
+ }
67
+
68
+ return $actions;
69
+ }
70
  }
app/Controllers/ShortcodeController.php CHANGED
@@ -1064,7 +1064,7 @@ class ShortcodeController {
1064
 
1065
  $arg['date'] = get_the_date();
1066
  $arg['excerpt'] = Fns::get_the_excerpt( $pID, $arg );
1067
- $arg['categories'] = get_the_term_list( $pID, 'category', null, '<span class="rt-separator">,</span>' );
1068
  $arg['tags'] = get_the_term_list( $pID, 'post_tag', null, '<span class="rt-separator">,</span>' );
1069
  $arg['post_count'] = get_post_meta( $pID, Fns::get_post_view_count_meta_key(), true );
1070
  $arg['responsiveCol'] = [ $dCol, $tCol, $mCol ];
1064
 
1065
  $arg['date'] = get_the_date();
1066
  $arg['excerpt'] = Fns::get_the_excerpt( $pID, $arg );
1067
+ $arg['categories'] = Fns::rt_get_the_term_list( $pID, 'category', null, '<span class="rt-separator">,</span>' );
1068
  $arg['tags'] = get_the_term_list( $pID, 'post_tag', null, '<span class="rt-separator">,</span>' );
1069
  $arg['post_count'] = get_post_meta( $pID, Fns::get_post_view_count_meta_key(), true );
1070
  $arg['responsiveCol'] = [ $dCol, $tCol, $mCol ];
app/Helpers/Fns.php CHANGED
@@ -231,7 +231,7 @@ class Fns {
231
  $template_name = '/the-post-grid/' . $temp_path . '/' . $layout . '.php';
232
  if ( file_exists( STYLESHEETPATH . $template_name ) ) {
233
  $file = STYLESHEETPATH . $template_name;
234
- } elseif ( file_exists( TEMPLATEPATH . $template_name ) ) {
235
  $file = TEMPLATEPATH . $template_name;
236
  } else {
237
  $file = RT_THE_POST_GRID_PLUGIN_PATH . '/templates/' . $temp_path . '/' . $layout . '.php';
@@ -262,7 +262,7 @@ class Fns {
262
  $path = RT_THE_POST_GRID_PLUGIN_PATH . '/templates/' . $temp_path . '/';
263
  if ( file_exists( STYLESHEETPATH . $template_name ) ) {
264
  $path = STYLESHEETPATH . '/the-post-grid/' . $temp_path . '/';
265
- } elseif ( file_exists( TEMPLATEPATH . $template_name ) ) {
266
  $path = TEMPLATEPATH . '/the-post-grid/' . $temp_path . '/';
267
  } else {
268
  $template_path = RT_THE_POST_GRID_PLUGIN_PATH . '/templates/' . $temp_path . '/' . $layout . '.php';
@@ -298,15 +298,15 @@ class Fns {
298
 
299
  if ( $posts_loading_type == "pagination" ) {
300
  $htmlUtility .= Fns::rt_pagination( $query, $posts_per_page );
301
- } elseif ( rtTPG()->hasPro() && $posts_loading_type == "pagination_ajax" ) { //&& ! $isIsotope
302
  $htmlUtility .= "<div class='rt-page-numbers'></div>";
303
- } elseif ( rtTPG()->hasPro() && $posts_loading_type == "load_more" ) {
304
  $load_more_button_text = $data['load_more_button_text'] ? $data['load_more_button_text'] : __( "Load More", 'the-post-grid' );
305
  $htmlUtility .= "<div class='rt-loadmore-btn rt-loadmore-action rt-loadmore-style{$hide}'>
306
  <span class='rt-loadmore-text'>" . $load_more_button_text . "</span>
307
  <div class='rt-loadmore-loading rt-ball-scale-multiple rt-2x'><div></div><div></div><div></div></div>
308
  </div>";
309
- } elseif ( rtTPG()->hasPro() && $posts_loading_type == "load_on_scroll" ) {
310
  $htmlUtility .= "<div class='rt-infinite-action'>
311
  <div class='rt-infinite-loading la-fire la-2x'>
312
  <div></div><div></div><div></div>
@@ -516,7 +516,7 @@ class Fns {
516
  if ( $is_guten && ! empty( $data['taxonomy_lists'][ $object->name ]['options'] ) ) {
517
  //This block execute if gutenberg editor has taxonomy query
518
  $terms = wp_list_pluck( $data['taxonomy_lists'][ $object->name ]['options'], 'value' );
519
- } elseif ( ! empty( $data[ $setting_key ] ) ) {
520
  //This block execute for Elementor editor has taxonomy query
521
  $terms = $data[ $setting_key ];
522
  } else {
@@ -786,7 +786,7 @@ class Fns {
786
  $action_orderby = ( ! empty( $data['orderby'] ) ? $data['orderby'] : "none" );
787
  if ( $action_orderby == 'none' ) {
788
  $action_orderby_label = __( "Sort By", "the-post-grid" );
789
- } elseif ( in_array( $action_orderby, array_keys( Options::rtMetaKeyType() ) ) ) {
790
  $action_orderby_label = __( "Meta value", "the-post-grid" );
791
  } else {
792
  $action_orderby_label = __( "By ", "the-post-grid" ) . $action_orderby;
@@ -870,9 +870,9 @@ class Fns {
870
  $queried_obj = get_queried_object();
871
  if ( is_tag() || is_category() ) {
872
  echo esc_html( $queried_obj->name );
873
- } elseif ( is_author() ) {
874
  echo esc_html( $queried_obj->display_name );
875
- } elseif ( is_date() ) {
876
  $year = get_query_var( 'year' );
877
  $monthnum = get_query_var( 'monthnum' );
878
  $day = get_query_var( 'day' );
@@ -991,7 +991,7 @@ class Fns {
991
  printf( "<span class='prefix-text'>%s</span>", esc_html( $archive_prefix ) );
992
  if ( is_archive() ) {
993
  self::get_archive_title();
994
- } elseif ( is_search() ) {
995
  echo get_query_var( 's' );
996
  } else {
997
  the_title();
@@ -1248,23 +1248,23 @@ class Fns {
1248
  if ( empty( $field['multiple'] ) ) {
1249
  if ( $type == 'text' || $type == 'number' || $type == 'select' || $type == 'checkbox' || $type == 'radio' ) {
1250
  $newValue = sanitize_text_field( $value );
1251
- } elseif ( $type == 'url' ) {
1252
  $newValue = esc_url( $value );
1253
- } elseif ( $type == 'slug' ) {
1254
  $newValue = sanitize_title_with_dashes( $value );
1255
- } elseif ( $type == 'textarea' ) {
1256
  $newValue = wp_kses_post( $value );
1257
- } elseif ( $type == 'script' ) {
1258
  $newValue = trim( $value );
1259
- } elseif ( $type == 'colorpicker' ) {
1260
  $newValue = self::sanitize_hex_color( $value );
1261
- } elseif ( $type == 'image_size' ) {
1262
  $newValue = [];
1263
 
1264
  foreach ( $value as $k => $v ) {
1265
  $newValue[ $k ] = esc_attr( $v );
1266
  }
1267
- } elseif ( $type == 'style' ) {
1268
  $newValue = [];
1269
 
1270
  foreach ( $value as $k => $v ) {
@@ -1532,7 +1532,7 @@ class Fns {
1532
  $sizes[ $_size ]['width'] = get_option( "{$_size}_size_w" );
1533
  $sizes[ $_size ]['height'] = get_option( "{$_size}_size_h" );
1534
  $sizes[ $_size ]['crop'] = (bool) get_option( "{$_size}_crop" );
1535
- } elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {
1536
  $sizes[ $_size ] = [
1537
  'width' => $_wp_additional_image_sizes[ $_size ]['width'],
1538
  'height' => $_wp_additional_image_sizes[ $_size ]['height'],
@@ -1600,7 +1600,7 @@ class Fns {
1600
 
1601
  $imgSrc = ! empty( $imgSrc ) ? $imgSrc[0] : $imgSrc;
1602
  }
1603
- } elseif ( $mediaSource == 'first_image' ) {
1604
  if ( $img = preg_match_all(
1605
  '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i',
1606
  get_the_content( $post_id ),
@@ -1906,7 +1906,7 @@ class Fns {
1906
  // Check if color has 6 or 3 characters and get values.
1907
  if ( strlen( $color ) == 6 ) {
1908
  $hex = [ $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] ];
1909
- } elseif ( strlen( $color ) == 3 ) {
1910
  $hex = [ $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] ];
1911
  } else {
1912
  return $default;
@@ -1949,10 +1949,10 @@ class Fns {
1949
  if ( $col == 12 ) {
1950
  $return['big'] = 12;
1951
  $return['small'] = 12;
1952
- } elseif ( $col == 6 ) {
1953
  $return['big'] = 6;
1954
  $return['small'] = 6;
1955
- } elseif ( $col == 4 ) {
1956
  $return['big'] = 4;
1957
  $return['small'] = 8;
1958
  }
@@ -2309,17 +2309,17 @@ class Fns {
2309
  if ( $overlay_color || $overlay_padding ) {
2310
  if ( in_array( $layout, [ 'layout15', 'isotope11', 'carousel11' ] ) ) {
2311
  $css .= "#{$layoutID} .{$layout} .rt-holder:hover .overlay .post-info{";
2312
- } elseif ( in_array(
2313
  $layout,
2314
  [ 'layout10', 'isotope7', 'carousel6', 'carousel7', 'layout9', 'offset04' ]
2315
  )
2316
  ) {
2317
  $css .= "#{$layoutID} .{$layout} .rt-holder .post-info{";
2318
- } elseif ( in_array( $layout, [ 'layout7', 'isotope4', 'carousel4' ] ) ) {
2319
  $css .= "#{$layoutID} .{$layout} .rt-holder .overlay:hover{";
2320
- } elseif ( in_array( $layout, [ 'layout16', 'isotope12', 'carousel12' ] ) ) {
2321
  $css .= "#{$layoutID} .{$layout} .rt-holder .overlay .post-info {";
2322
- } elseif ( in_array( $layout, [ 'offset03', 'carousel5' ] ) ) {
2323
  $css .= "#{$layoutID} .{$layout} .rt-holder .overlay{";
2324
  } else {
2325
  $css .= "#{$layoutID} .rt-post-overlay .post-img > a:first-of-type::after,";
@@ -2888,7 +2888,7 @@ class Fns {
2888
  esc_attr( $data['link_target'] )
2889
  );
2890
  $link_end = $readmore_link_end = '</a>';
2891
- } elseif ( 'popup' == $data['post_link_type'] ) {
2892
  $link_class = 'tpg-single-popup tpg-post-link';
2893
 
2894
  if ( did_action( 'elementor/loaded' ) && \Elementor\Plugin::$instance->editor->is_edit_mode() ) {
@@ -2903,7 +2903,7 @@ class Fns {
2903
  esc_attr( $data['link_target'] )
2904
  );
2905
  $link_end = $readmore_link_end = '</a>';
2906
- } elseif ( 'multi_popup' == $data['post_link_type'] ) {
2907
  $link_class = 'tpg-multi-popup tpg-post-link';
2908
  $link_start = $readmore_link_start = sprintf(
2909
  '<a data-id="%s" href="%s" class="%s" target="%s">',
@@ -2964,6 +2964,37 @@ class Fns {
2964
  return $post_types;
2965
  }
2966
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2967
  /**
2968
  * Get Post Meta HTML for Elementor
2969
  *
@@ -2999,9 +3030,8 @@ class Fns {
2999
  $_tag_id = isset( $data['post_type'] ) ? $data['post_type'] . '_tags' : 'post_tag';
3000
  $_category_id = isset( $data[ $_cat_id ] ) ? $data[ $_cat_id ] : 'category';
3001
  $_tag_id = isset( $data[ $_tag_id ] ) ? $data[ $_tag_id ] : 'post_tag';
3002
- $categories = get_the_term_list( $post_id, $_category_id, null, '<span class="rt-separator">,</span>' );
3003
- $tags = get_the_term_list( $post_id, $_tag_id, null, '<span class="rt-separator">,</span>' );
3004
-
3005
 
3006
  $count_key = self::get_post_view_count_meta_key();
3007
  $get_view_count = get_post_meta( $post_id, $count_key, true );
@@ -3068,12 +3098,12 @@ class Fns {
3068
  echo "<i class='fas fa-folder-open'></i>";
3069
  }
3070
  }
3071
- echo wp_kses( $categories, self::allowedHtml() );
3072
  ?>
3073
 
3074
  </span>
3075
  <?php
3076
- echo wp_kses( $meta_separator, self::allowedHtml() );
3077
  }
3078
  $post_meta_html['category'] = ob_get_clean();
3079
 
@@ -3266,7 +3296,7 @@ class Fns {
3266
  $pID = get_the_ID();
3267
  $_cat_id = $data['post_type'] . '_taxonomy';
3268
  $_post_taxonomy = isset( $data[ $_cat_id ] ) ? $data[ $_cat_id ] : 'category';
3269
- $categories = get_the_term_list( $pID, $_post_taxonomy, null, '<span class="rt-separator">,</span>' );
3270
  $category_position = $data['category_position'];
3271
 
3272
  if ( in_array( $data['layout'], [ 'grid-layout4', 'slider-layout3', 'grid_hover-layout11' ] ) && 'default' === $data['category_position'] ) {
@@ -3343,7 +3373,7 @@ class Fns {
3343
 
3344
  if ( 'grid-layout4' === $data['layout'] && 'default' === $data['category_position'] ) {
3345
  $thumb_cat_condition = true;
3346
- } elseif ( in_array( $data['layout'], [ 'grid-layout4', 'grid_hover-layout11', 'slider-layout3' ] ) && 'default' === $data['category_position'] ) {
3347
  $thumb_cat_condition = true;
3348
  }
3349
 
@@ -3428,10 +3458,10 @@ class Fns {
3428
  echo wp_kses_post( self::getFeatureImageSrc( $pID, $fImgSize, $mediaSource, $defaultImgId, $customImgSize, $lazy_class ) );
3429
  }
3430
  }
3431
- } elseif ( 'first_image' === $data['media_source'] && self::get_content_first_image( $pID ) ) {
3432
  echo wp_kses_post( self::get_content_first_image( $pID, 'markup', $lazy_class ) );
3433
  $img_link = self::get_content_first_image( $pID, 'url' );
3434
- } elseif ( 'yes' === $data['is_default_img'] || 'grid_hover' == $data['prefix'] ) {
3435
  //echo \Elementor\Group_Control_Image_Size::get_attachment_image_html( $data, $img_size_key, 'default_image' );
3436
  if ( isset( $data['default_image']['id'] ) ) {
3437
  echo wp_get_attachment_image( $data['default_image']['id'], $data[ $img_size_key ], '', [ 'class' => 'rt-img-responsive' ] );
@@ -3780,6 +3810,7 @@ class Fns {
3780
  'class' => [],
3781
  'id' => [],
3782
  'target' => [],
 
3783
  ],
3784
  'div' => [
3785
  'class' => [],
231
  $template_name = '/the-post-grid/' . $temp_path . '/' . $layout . '.php';
232
  if ( file_exists( STYLESHEETPATH . $template_name ) ) {
233
  $file = STYLESHEETPATH . $template_name;
234
+ } else if ( file_exists( TEMPLATEPATH . $template_name ) ) {
235
  $file = TEMPLATEPATH . $template_name;
236
  } else {
237
  $file = RT_THE_POST_GRID_PLUGIN_PATH . '/templates/' . $temp_path . '/' . $layout . '.php';
262
  $path = RT_THE_POST_GRID_PLUGIN_PATH . '/templates/' . $temp_path . '/';
263
  if ( file_exists( STYLESHEETPATH . $template_name ) ) {
264
  $path = STYLESHEETPATH . '/the-post-grid/' . $temp_path . '/';
265
+ } else if ( file_exists( TEMPLATEPATH . $template_name ) ) {
266
  $path = TEMPLATEPATH . '/the-post-grid/' . $temp_path . '/';
267
  } else {
268
  $template_path = RT_THE_POST_GRID_PLUGIN_PATH . '/templates/' . $temp_path . '/' . $layout . '.php';
298
 
299
  if ( $posts_loading_type == "pagination" ) {
300
  $htmlUtility .= Fns::rt_pagination( $query, $posts_per_page );
301
+ } else if ( rtTPG()->hasPro() && $posts_loading_type == "pagination_ajax" ) { //&& ! $isIsotope
302
  $htmlUtility .= "<div class='rt-page-numbers'></div>";
303
+ } else if ( rtTPG()->hasPro() && $posts_loading_type == "load_more" ) {
304
  $load_more_button_text = $data['load_more_button_text'] ? $data['load_more_button_text'] : __( "Load More", 'the-post-grid' );
305
  $htmlUtility .= "<div class='rt-loadmore-btn rt-loadmore-action rt-loadmore-style{$hide}'>
306
  <span class='rt-loadmore-text'>" . $load_more_button_text . "</span>
307
  <div class='rt-loadmore-loading rt-ball-scale-multiple rt-2x'><div></div><div></div><div></div></div>
308
  </div>";
309
+ } else if ( rtTPG()->hasPro() && $posts_loading_type == "load_on_scroll" ) {
310
  $htmlUtility .= "<div class='rt-infinite-action'>
311
  <div class='rt-infinite-loading la-fire la-2x'>
312
  <div></div><div></div><div></div>
516
  if ( $is_guten && ! empty( $data['taxonomy_lists'][ $object->name ]['options'] ) ) {
517
  //This block execute if gutenberg editor has taxonomy query
518
  $terms = wp_list_pluck( $data['taxonomy_lists'][ $object->name ]['options'], 'value' );
519
+ } else if ( ! empty( $data[ $setting_key ] ) ) {
520
  //This block execute for Elementor editor has taxonomy query
521
  $terms = $data[ $setting_key ];
522
  } else {
786
  $action_orderby = ( ! empty( $data['orderby'] ) ? $data['orderby'] : "none" );
787
  if ( $action_orderby == 'none' ) {
788
  $action_orderby_label = __( "Sort By", "the-post-grid" );
789
+ } else if ( in_array( $action_orderby, array_keys( Options::rtMetaKeyType() ) ) ) {
790
  $action_orderby_label = __( "Meta value", "the-post-grid" );
791
  } else {
792
  $action_orderby_label = __( "By ", "the-post-grid" ) . $action_orderby;
870
  $queried_obj = get_queried_object();
871
  if ( is_tag() || is_category() ) {
872
  echo esc_html( $queried_obj->name );
873
+ } else if ( is_author() ) {
874
  echo esc_html( $queried_obj->display_name );
875
+ } else if ( is_date() ) {
876
  $year = get_query_var( 'year' );
877
  $monthnum = get_query_var( 'monthnum' );
878
  $day = get_query_var( 'day' );
991
  printf( "<span class='prefix-text'>%s</span>", esc_html( $archive_prefix ) );
992
  if ( is_archive() ) {
993
  self::get_archive_title();
994
+ } else if ( is_search() ) {
995
  echo get_query_var( 's' );
996
  } else {
997
  the_title();
1248
  if ( empty( $field['multiple'] ) ) {
1249
  if ( $type == 'text' || $type == 'number' || $type == 'select' || $type == 'checkbox' || $type == 'radio' ) {
1250
  $newValue = sanitize_text_field( $value );
1251
+ } else if ( $type == 'url' ) {
1252
  $newValue = esc_url( $value );
1253
+ } else if ( $type == 'slug' ) {
1254
  $newValue = sanitize_title_with_dashes( $value );
1255
+ } else if ( $type == 'textarea' ) {
1256
  $newValue = wp_kses_post( $value );
1257
+ } else if ( $type == 'script' ) {
1258
  $newValue = trim( $value );
1259
+ } else if ( $type == 'colorpicker' ) {
1260
  $newValue = self::sanitize_hex_color( $value );
1261
+ } else if ( $type == 'image_size' ) {
1262
  $newValue = [];
1263
 
1264
  foreach ( $value as $k => $v ) {
1265
  $newValue[ $k ] = esc_attr( $v );
1266
  }
1267
+ } else if ( $type == 'style' ) {
1268
  $newValue = [];
1269
 
1270
  foreach ( $value as $k => $v ) {
1532
  $sizes[ $_size ]['width'] = get_option( "{$_size}_size_w" );
1533
  $sizes[ $_size ]['height'] = get_option( "{$_size}_size_h" );
1534
  $sizes[ $_size ]['crop'] = (bool) get_option( "{$_size}_crop" );
1535
+ } else if ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {
1536
  $sizes[ $_size ] = [
1537
  'width' => $_wp_additional_image_sizes[ $_size ]['width'],
1538
  'height' => $_wp_additional_image_sizes[ $_size ]['height'],
1600
 
1601
  $imgSrc = ! empty( $imgSrc ) ? $imgSrc[0] : $imgSrc;
1602
  }
1603
+ } else if ( $mediaSource == 'first_image' ) {
1604
  if ( $img = preg_match_all(
1605
  '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i',
1606
  get_the_content( $post_id ),
1906
  // Check if color has 6 or 3 characters and get values.
1907
  if ( strlen( $color ) == 6 ) {
1908
  $hex = [ $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] ];
1909
+ } else if ( strlen( $color ) == 3 ) {
1910
  $hex = [ $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] ];
1911
  } else {
1912
  return $default;
1949
  if ( $col == 12 ) {
1950
  $return['big'] = 12;
1951
  $return['small'] = 12;
1952
+ } else if ( $col == 6 ) {
1953
  $return['big'] = 6;
1954
  $return['small'] = 6;
1955
+ } else if ( $col == 4 ) {
1956
  $return['big'] = 4;
1957
  $return['small'] = 8;
1958
  }
2309
  if ( $overlay_color || $overlay_padding ) {
2310
  if ( in_array( $layout, [ 'layout15', 'isotope11', 'carousel11' ] ) ) {
2311
  $css .= "#{$layoutID} .{$layout} .rt-holder:hover .overlay .post-info{";
2312
+ } else if ( in_array(
2313
  $layout,
2314
  [ 'layout10', 'isotope7', 'carousel6', 'carousel7', 'layout9', 'offset04' ]
2315
  )
2316
  ) {
2317
  $css .= "#{$layoutID} .{$layout} .rt-holder .post-info{";
2318
+ } else if ( in_array( $layout, [ 'layout7', 'isotope4', 'carousel4' ] ) ) {
2319
  $css .= "#{$layoutID} .{$layout} .rt-holder .overlay:hover{";
2320
+ } else if ( in_array( $layout, [ 'layout16', 'isotope12', 'carousel12' ] ) ) {
2321
  $css .= "#{$layoutID} .{$layout} .rt-holder .overlay .post-info {";
2322
+ } else if ( in_array( $layout, [ 'offset03', 'carousel5' ] ) ) {
2323
  $css .= "#{$layoutID} .{$layout} .rt-holder .overlay{";
2324
  } else {
2325
  $css .= "#{$layoutID} .rt-post-overlay .post-img > a:first-of-type::after,";
2888
  esc_attr( $data['link_target'] )
2889
  );
2890
  $link_end = $readmore_link_end = '</a>';
2891
+ } else if ( 'popup' == $data['post_link_type'] ) {
2892
  $link_class = 'tpg-single-popup tpg-post-link';
2893
 
2894
  if ( did_action( 'elementor/loaded' ) && \Elementor\Plugin::$instance->editor->is_edit_mode() ) {
2903
  esc_attr( $data['link_target'] )
2904
  );
2905
  $link_end = $readmore_link_end = '</a>';
2906
+ } else if ( 'multi_popup' == $data['post_link_type'] ) {
2907
  $link_class = 'tpg-multi-popup tpg-post-link';
2908
  $link_start = $readmore_link_start = sprintf(
2909
  '<a data-id="%s" href="%s" class="%s" target="%s">',
2964
  return $post_types;
2965
  }
2966
 
2967
+ public static function rt_get_the_term_list( $post_id, $taxonomy, $before = '', $sep = '', $after = '' ) {
2968
+ $terms = get_the_terms( $post_id, $taxonomy );
2969
+
2970
+ if ( is_wp_error( $terms ) ) {
2971
+ return $terms;
2972
+ }
2973
+
2974
+ if ( empty( $terms ) ) {
2975
+ return false;
2976
+ }
2977
+
2978
+ $links = [];
2979
+
2980
+ foreach ( $terms as $term ) {
2981
+ $meta_color = get_term_meta( $term->term_id, 'rttpg_category_color', true );
2982
+ $meta_color_code = $meta_color ? "--tpg-primary-color:#" . ltrim( $meta_color, '#' ) : '';
2983
+
2984
+ $link = get_term_link( $term, $taxonomy );
2985
+ if ( is_wp_error( $link ) ) {
2986
+ return $link;
2987
+ }
2988
+ if(rtTPG()->hasPro()) {
2989
+ $links[] = '<a style="' . esc_attr( $meta_color_code ) . '" href="' . esc_url( $link ) . '" rel="tag">' . $term->name . '</a>';
2990
+ } else {
2991
+ $links[] = '<a href="' . esc_url( $link ) . '" rel="tag">' . $term->name . '</a>';
2992
+ }
2993
+ }
2994
+
2995
+ return $before . implode( $sep, $links ) . $after;
2996
+ }
2997
+
2998
  /**
2999
  * Get Post Meta HTML for Elementor
3000
  *
3030
  $_tag_id = isset( $data['post_type'] ) ? $data['post_type'] . '_tags' : 'post_tag';
3031
  $_category_id = isset( $data[ $_cat_id ] ) ? $data[ $_cat_id ] : 'category';
3032
  $_tag_id = isset( $data[ $_tag_id ] ) ? $data[ $_tag_id ] : 'post_tag';
3033
+ $categories = self::rt_get_the_term_list( $post_id, $_category_id, null, '<span class="rt-separator">,</span>' );
3034
+ $tags = self::rt_get_the_term_list( $post_id, $_tag_id, null, '<span class="rt-separator">,</span>' );
 
3035
 
3036
  $count_key = self::get_post_view_count_meta_key();
3037
  $get_view_count = get_post_meta( $post_id, $count_key, true );
3098
  echo "<i class='fas fa-folder-open'></i>";
3099
  }
3100
  }
3101
+ echo wp_kses( $categories, self::allowedHtml('basic') );
3102
  ?>
3103
 
3104
  </span>
3105
  <?php
3106
+ echo wp_kses( $meta_separator, self::allowedHtml('basic') );
3107
  }
3108
  $post_meta_html['category'] = ob_get_clean();
3109
 
3296
  $pID = get_the_ID();
3297
  $_cat_id = $data['post_type'] . '_taxonomy';
3298
  $_post_taxonomy = isset( $data[ $_cat_id ] ) ? $data[ $_cat_id ] : 'category';
3299
+ $categories = self::rt_get_the_term_list( $pID, $_post_taxonomy, null, '<span class="rt-separator">,</span>' );
3300
  $category_position = $data['category_position'];
3301
 
3302
  if ( in_array( $data['layout'], [ 'grid-layout4', 'slider-layout3', 'grid_hover-layout11' ] ) && 'default' === $data['category_position'] ) {
3373
 
3374
  if ( 'grid-layout4' === $data['layout'] && 'default' === $data['category_position'] ) {
3375
  $thumb_cat_condition = true;
3376
+ } else if ( in_array( $data['layout'], [ 'grid-layout4', 'grid_hover-layout11', 'slider-layout3' ] ) && 'default' === $data['category_position'] ) {
3377
  $thumb_cat_condition = true;
3378
  }
3379
 
3458
  echo wp_kses_post( self::getFeatureImageSrc( $pID, $fImgSize, $mediaSource, $defaultImgId, $customImgSize, $lazy_class ) );
3459
  }
3460
  }
3461
+ } else if ( 'first_image' === $data['media_source'] && self::get_content_first_image( $pID ) ) {
3462
  echo wp_kses_post( self::get_content_first_image( $pID, 'markup', $lazy_class ) );
3463
  $img_link = self::get_content_first_image( $pID, 'url' );
3464
+ } else if ( 'yes' === $data['is_default_img'] || 'grid_hover' == $data['prefix'] ) {
3465
  //echo \Elementor\Group_Control_Image_Size::get_attachment_image_html( $data, $img_size_key, 'default_image' );
3466
  if ( isset( $data['default_image']['id'] ) ) {
3467
  echo wp_get_attachment_image( $data['default_image']['id'], $data[ $img_size_key ], '', [ 'class' => 'rt-img-responsive' ] );
3810
  'class' => [],
3811
  'id' => [],
3812
  'target' => [],
3813
+ 'style' => [],
3814
  ],
3815
  'div' => [
3816
  'class' => [],
app/Widgets/elementor/rtTPGElementorHelper.php CHANGED
@@ -1095,13 +1095,13 @@ class rtTPGElementorHelper {
1095
 
1096
  if ( 'post' === $post_type ) {
1097
  $default_cat = 'category';
1098
- } elseif ( 'product' === $post_type ) {
1099
  $default_cat = 'product_cat';
1100
- } elseif ( 'download' === $post_type ) {
1101
  $default_cat = 'download_category';
1102
- } elseif ( 'docs' === $post_type ) {
1103
  $default_cat = 'doc_category';
1104
- } elseif ( 'lp_course' === $post_type ) {
1105
  $default_cat = 'course_category';
1106
  } else {
1107
  $taxonomie_keys = array_keys( $_taxonomies );
@@ -2918,19 +2918,30 @@ class rtTPGElementorHelper {
2918
  $ref->add_control(
2919
  'category_style',
2920
  [
2921
- 'label' => esc_html__( 'Category Style', 'the-post-grid' ) . $ref->pro_label,
2922
- 'type' => \Elementor\Controls_Manager::SELECT,
2923
- 'default' => 'style1',
2924
- 'options' => [
2925
  'style1' => esc_html__( 'Style 1', 'the-post-grid' ),
2926
  'style2' => esc_html__( 'Style 2', 'the-post-grid' ),
2927
  'style3' => esc_html__( 'Style 3', 'the-post-grid' ),
2928
  ],
2929
- 'classes' => rtTPG()->hasPro() ? '' : 'the-post-grid-field-hide',
2930
- 'conditions' => $category_style_condition,
 
2931
  ]
2932
  );
2933
 
 
 
 
 
 
 
 
 
 
 
2934
  if ( rtTPG()->hasPro() ) {
2935
  $ref->add_control(
2936
  'show_cat_icon',
@@ -2963,16 +2974,16 @@ class rtTPGElementorHelper {
2963
  if ( 'post' === $post_type ) {
2964
  $default_cat = 'category';
2965
  $default_tag = 'post_tag';
2966
- } elseif ( 'product' === $post_type ) {
2967
  $default_cat = 'product_cat';
2968
  $default_tag = 'product_tag';
2969
- } elseif ( 'download' === $post_type ) {
2970
  $default_cat = 'download_category';
2971
  $default_tag = 'download_tag';
2972
- } elseif ( 'docs' === $post_type ) {
2973
  $default_cat = 'doc_category';
2974
  $default_tag = 'doc_tag';
2975
- } elseif ( 'lp_course' === $post_type ) {
2976
  $default_cat = 'course_category';
2977
  $default_tag = 'course_tag';
2978
  } else {
@@ -4736,14 +4747,15 @@ class rtTPGElementorHelper {
4736
  $ref->add_control(
4737
  'separate_category_bg',
4738
  [
4739
- 'label' => esc_html__( 'Category Background', 'the-post-grid' ),
4740
- 'type' => \Elementor\Controls_Manager::COLOR,
4741
- 'selectors' => [
4742
  '{{WRAPPER}} .tpg-el-main-wrapper .tpg-separate-category.style1 .categories-links a' => 'background-color: {{VALUE}};padding: 3px 8px 1px;',
4743
  '{{WRAPPER}} .tpg-el-main-wrapper .tpg-separate-category:not(.style1) .categories-links a' => 'background-color: {{VALUE}}',
4744
  '{{WRAPPER}} .tpg-el-main-wrapper .tpg-separate-category:not(.style1) .categories-links a:after' => 'border-top-color: {{VALUE}}',
4745
  '{{WRAPPER}} .tpg-el-main-wrapper .post-meta-tags .categories-links a' => 'background-color: {{VALUE}}',
4746
  ],
 
4747
  ]
4748
  );
4749
  $ref->add_control(
1095
 
1096
  if ( 'post' === $post_type ) {
1097
  $default_cat = 'category';
1098
+ } else if ( 'product' === $post_type ) {
1099
  $default_cat = 'product_cat';
1100
+ } else if ( 'download' === $post_type ) {
1101
  $default_cat = 'download_category';
1102
+ } else if ( 'docs' === $post_type ) {
1103
  $default_cat = 'doc_category';
1104
+ } else if ( 'lp_course' === $post_type ) {
1105
  $default_cat = 'course_category';
1106
  } else {
1107
  $taxonomie_keys = array_keys( $_taxonomies );
2918
  $ref->add_control(
2919
  'category_style',
2920
  [
2921
+ 'label' => esc_html__( 'Category Style', 'the-post-grid' ) . $ref->pro_label,
2922
+ 'type' => \Elementor\Controls_Manager::SELECT,
2923
+ 'default' => 'style1',
2924
+ 'options' => [
2925
  'style1' => esc_html__( 'Style 1', 'the-post-grid' ),
2926
  'style2' => esc_html__( 'Style 2', 'the-post-grid' ),
2927
  'style3' => esc_html__( 'Style 3', 'the-post-grid' ),
2928
  ],
2929
+ 'description' => rtTPG()->hasPro() ? esc_html( "Different background color will work if you use style 1 and 2" ) : '',
2930
+ 'classes' => rtTPG()->hasPro() ? '' : 'the-post-grid-field-hide',
2931
+ 'conditions' => $category_style_condition,
2932
  ]
2933
  );
2934
 
2935
+ if ( rtTPG()->hasPro() ) {
2936
+ $ref->add_control(
2937
+ 'important_note',
2938
+ [
2939
+ 'raw' => esc_html__( 'NB. If you use different background color for category then please choose style 2 or 3 from above', 'the-post-grid' ),
2940
+ 'type' => \Elementor\Controls_Manager::RAW_HTML,
2941
+ ]
2942
+ );
2943
+ }
2944
+
2945
  if ( rtTPG()->hasPro() ) {
2946
  $ref->add_control(
2947
  'show_cat_icon',
2974
  if ( 'post' === $post_type ) {
2975
  $default_cat = 'category';
2976
  $default_tag = 'post_tag';
2977
+ } else if ( 'product' === $post_type ) {
2978
  $default_cat = 'product_cat';
2979
  $default_tag = 'product_tag';
2980
+ } else if ( 'download' === $post_type ) {
2981
  $default_cat = 'download_category';
2982
  $default_tag = 'download_tag';
2983
+ } else if ( 'docs' === $post_type ) {
2984
  $default_cat = 'doc_category';
2985
  $default_tag = 'doc_tag';
2986
+ } else if ( 'lp_course' === $post_type ) {
2987
  $default_cat = 'course_category';
2988
  $default_tag = 'course_tag';
2989
  } else {
4747
  $ref->add_control(
4748
  'separate_category_bg',
4749
  [
4750
+ 'label' => esc_html__( 'Category Background', 'the-post-grid' ),
4751
+ 'type' => \Elementor\Controls_Manager::COLOR,
4752
+ 'selectors' => [
4753
  '{{WRAPPER}} .tpg-el-main-wrapper .tpg-separate-category.style1 .categories-links a' => 'background-color: {{VALUE}};padding: 3px 8px 1px;',
4754
  '{{WRAPPER}} .tpg-el-main-wrapper .tpg-separate-category:not(.style1) .categories-links a' => 'background-color: {{VALUE}}',
4755
  '{{WRAPPER}} .tpg-el-main-wrapper .tpg-separate-category:not(.style1) .categories-links a:after' => 'border-top-color: {{VALUE}}',
4756
  '{{WRAPPER}} .tpg-el-main-wrapper .post-meta-tags .categories-links a' => 'background-color: {{VALUE}}',
4757
  ],
4758
+ 'description' => rtTPG()->hasPro() ? esc_html__( 'If you use different background color then avoid this color', 'the-post-grid' ) : esc_html__( 'Choose separate category background', 'the-post-grid' )
4759
  ]
4760
  );
4761
  $ref->add_control(
assets/blocks/main.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '9ad61219c3a5ddfde113');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '0d3b38f339b7ed9e1699');
assets/blocks/main.js CHANGED
@@ -1 +1 @@
1
- !function(){var e={184:function(e,t){var a;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var l=o.apply(null,a);l&&e.push(l)}}else if("object"===n){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var i in a)r.call(a,i)&&a[i]&&e.push(i)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(a=function(){return o}.apply(t,[]))||(e.exports=a)}()},527:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return T}});var r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],o={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var a=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-a.getTime())/864e5-3+(a.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},n={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},l=n,i=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},s=function(e){return!0===e?1:0};function c(e,t){var a;return function(){var r=this,o=arguments;clearTimeout(a),a=setTimeout((function(){return e.apply(r,o)}),t)}}var u=function(e){return e instanceof Array?e:[e]};function f(e,t,a){if(!0===a)return e.classList.add(t);e.classList.remove(t)}function d(e,t,a){var r=window.document.createElement(e);return t=t||"",a=a||"",r.className=t,void 0!==a&&(r.textContent=a),r}function p(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function m(e,t){return t(e)?e:e.parentNode?m(e.parentNode,t):void 0}function g(e,t){var a=d("div","numInputWrapper"),r=d("input","numInput "+e),o=d("span","arrowUp"),n=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var l in t)r.setAttribute(l,t[l]);return a.appendChild(r),a.appendChild(o),a.appendChild(n),a}function h(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var b=function(){},v=function(e,t,a){return a.months[t?"shorthand":"longhand"][e]},_={D:b,F:function(e,t,a){e.setMonth(a.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,a){e.setHours(e.getHours()%12+12*s(new RegExp(a.amPM[1],"i").test(t)))},M:function(e,t,a){e.setMonth(a.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,a){var r=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+a.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:b,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:b,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},y={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},w={Z:function(e){return e.toISOString()},D:function(e,t,a){return t.weekdays.shorthand[w.w(e,t,a)]},F:function(e,t,a){return v(w.n(e,t,a)-1,!1,t)},G:function(e,t,a){return i(w.h(e,t,a))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[s(e.getHours()>11)]},M:function(e,t){return v(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,a){return a.getWeek(e)},Y:function(e){return i(e.getFullYear(),4)},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},E=function(e){var t=e.config,a=void 0===t?o:t,r=e.l10n,l=void 0===r?n:r,i=e.isMobile,s=void 0!==i&&i;return function(e,t,r){var o=r||l;return void 0===a.formatDate||s?t.split("").map((function(t,r,n){return w[t]&&"\\"!==n[r-1]?w[t](e,o,a):"\\"!==t?t:""})).join(""):a.formatDate(e,t,o)}},C=function(e){var t=e.config,a=void 0===t?o:t,r=e.l10n,l=void 0===r?n:r;return function(e,t,r,n){if(0===e||e){var i,s=n||l,c=e;if(e instanceof Date)i=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)i=new Date(e);else if("string"==typeof e){var u=t||(a||o).dateFormat,f=String(e).trim();if("today"===f)i=new Date,r=!0;else if(a&&a.parseDate)i=a.parseDate(e,u);else if(/Z$/.test(f)||/GMT$/.test(f))i=new Date(e);else{for(var d=void 0,p=[],m=0,g=0,h="";m<u.length;m++){var b=u[m],v="\\"===b,w="\\"===u[m-1]||v;if(y[b]&&!w){h+=y[b];var E=new RegExp(h).exec(e);E&&(d=!0)&&p["Y"!==b?"push":"unshift"]({fn:_[b],val:E[++g]})}else v||(h+=".")}i=a&&a.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),p.forEach((function(e){var t=e.fn,a=e.val;return i=t(i,a,s)||i})),i=d?i:void 0}}if(i instanceof Date&&!isNaN(i.getTime()))return!0===r&&i.setHours(0,0,0,0),i;a.errorHandler(new Error("Invalid date provided: "+c))}}};function x(e,t,a){return void 0===a&&(a=!0),!1!==a?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var k=function(e,t,a){return 3600*e+60*t+a};function N(e){var t=e.defaultHour,a=e.defaultMinute,r=e.defaultSeconds;if(void 0!==e.minDate){var o=e.minDate.getHours(),n=e.minDate.getMinutes(),l=e.minDate.getSeconds();t<o&&(t=o),t===o&&a<n&&(a=n),t===o&&a===n&&r<l&&(r=e.minDate.getSeconds())}if(void 0!==e.maxDate){var i=e.maxDate.getHours(),s=e.maxDate.getMinutes();(t=Math.min(t,i))===i&&(a=Math.min(s,a)),t===i&&a===s&&(r=e.maxDate.getSeconds())}return{hours:t,minutes:a,seconds:r}}a(895);var S=function(){return S=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S.apply(this,arguments)},D=function(){for(var e=0,t=0,a=arguments.length;t<a;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<a;t++)for(var n=arguments[t],l=0,i=n.length;l<i;l++,o++)r[o]=n[l];return r};function P(e,t){var a={config:S(S({},o),M.defaultConfig),l10n:l};function n(){var e;return(null===(e=a.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function b(e){return e.bind(a)}function _(){var e=a.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==a.calendarContainer&&(a.calendarContainer.style.visibility="hidden",a.calendarContainer.style.display="block"),void 0!==a.daysContainer){var t=(a.days.offsetWidth+1)*e.showMonths;a.daysContainer.style.width=t+"px",a.calendarContainer.style.width=t+(void 0!==a.weekWrapper?a.weekWrapper.offsetWidth:0)+"px",a.calendarContainer.style.removeProperty("visibility"),a.calendarContainer.style.removeProperty("display")}}))}function w(e){if(0===a.selectedDates.length){var t=void 0===a.config.minDate||x(new Date,a.config.minDate)>=0?new Date:new Date(a.config.minDate.getTime()),r=N(a.config);t.setHours(r.hours,r.minutes,r.seconds,t.getMilliseconds()),a.selectedDates=[t],a.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,r=h(e),o=r;void 0!==a.amPM&&r===a.amPM&&(a.amPM.textContent=a.l10n.amPM[s(a.amPM.textContent===a.l10n.amPM[0])]);var n=parseFloat(o.getAttribute("min")),l=parseFloat(o.getAttribute("max")),c=parseFloat(o.getAttribute("step")),u=parseInt(o.value,10),f=u+c*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==o.value&&2===o.value.length){var d=o===a.hourElement,p=o===a.minuteElement;f<n?(f=l+f+s(!d)+(s(d)&&s(!a.amPM)),p&&j(void 0,-1,a.hourElement)):f>l&&(f=o===a.hourElement?f-l-s(!a.amPM):n,p&&j(void 0,1,a.hourElement)),a.amPM&&d&&(1===c?f+u===23:Math.abs(f-u)>c)&&(a.amPM.textContent=a.l10n.amPM[s(a.amPM.textContent===a.l10n.amPM[0])]),o.value=i(f)}}(e);var o=a._input.value;P(),Ee(),a._input.value!==o&&a._debouncedChange()}function P(){if(void 0!==a.hourElement&&void 0!==a.minuteElement){var e,t,r=(parseInt(a.hourElement.value.slice(-2),10)||0)%24,o=(parseInt(a.minuteElement.value,10)||0)%60,n=void 0!==a.secondElement?(parseInt(a.secondElement.value,10)||0)%60:0;void 0!==a.amPM&&(e=r,t=a.amPM.textContent,r=e%12+12*s(t===a.l10n.amPM[1]));var l=void 0!==a.config.minTime||a.config.minDate&&a.minDateHasTime&&a.latestSelectedDateObj&&0===x(a.latestSelectedDateObj,a.config.minDate,!0),i=void 0!==a.config.maxTime||a.config.maxDate&&a.maxDateHasTime&&a.latestSelectedDateObj&&0===x(a.latestSelectedDateObj,a.config.maxDate,!0);if(void 0!==a.config.maxTime&&void 0!==a.config.minTime&&a.config.minTime>a.config.maxTime){var c=k(a.config.minTime.getHours(),a.config.minTime.getMinutes(),a.config.minTime.getSeconds()),u=k(a.config.maxTime.getHours(),a.config.maxTime.getMinutes(),a.config.maxTime.getSeconds()),f=k(r,o,n);if(f>u&&f<c){var d=function(e){var t=Math.floor(e/3600),a=(e-3600*t)/60;return[t,a,e-3600*t-60*a]}(c);r=d[0],o=d[1],n=d[2]}}else{if(i){var p=void 0!==a.config.maxTime?a.config.maxTime:a.config.maxDate;(r=Math.min(r,p.getHours()))===p.getHours()&&(o=Math.min(o,p.getMinutes())),o===p.getMinutes()&&(n=Math.min(n,p.getSeconds()))}if(l){var m=void 0!==a.config.minTime?a.config.minTime:a.config.minDate;(r=Math.max(r,m.getHours()))===m.getHours()&&o<m.getMinutes()&&(o=m.getMinutes()),o===m.getMinutes()&&(n=Math.max(n,m.getSeconds()))}}T(r,o,n)}}function O(e){var t=e||a.latestSelectedDateObj;t&&t instanceof Date&&T(t.getHours(),t.getMinutes(),t.getSeconds())}function T(e,t,r){void 0!==a.latestSelectedDateObj&&a.latestSelectedDateObj.setHours(e%24,t,r||0,0),a.hourElement&&a.minuteElement&&!a.isMobile&&(a.hourElement.value=i(a.config.time_24hr?e:(12+e)%12+12*s(e%12==0)),a.minuteElement.value=i(t),void 0!==a.amPM&&(a.amPM.textContent=a.l10n.amPM[s(e>=12)]),void 0!==a.secondElement&&(a.secondElement.value=i(r)))}function I(e){var t=h(e),a=parseInt(t.value)+(e.delta||0);(a/1e3>1||"Enter"===e.key&&!/[^\d]/.test(a.toString()))&&X(a)}function L(e,t,r,o){return t instanceof Array?t.forEach((function(t){return L(e,t,r,o)})):e instanceof Array?e.forEach((function(e){return L(e,t,r,o)})):(e.addEventListener(t,r,o),void a._handlers.push({remove:function(){return e.removeEventListener(t,r,o)}}))}function A(){be("onChange")}function F(e,t){var r=void 0!==e?a.parseDate(e):a.latestSelectedDateObj||(a.config.minDate&&a.config.minDate>a.now?a.config.minDate:a.config.maxDate&&a.config.maxDate<a.now?a.config.maxDate:a.now),o=a.currentYear,n=a.currentMonth;try{void 0!==r&&(a.currentYear=r.getFullYear(),a.currentMonth=r.getMonth())}catch(e){e.message="Invalid date supplied: "+r,a.config.errorHandler(e)}t&&a.currentYear!==o&&(be("onYearChange"),Y()),!t||a.currentYear===o&&a.currentMonth===n||be("onMonthChange"),a.redraw()}function B(e){var t=h(e);~t.className.indexOf("arrow")&&j(e,t.classList.contains("arrowUp")?1:-1)}function j(e,t,a){var r=e&&h(e),o=a||r&&r.parentNode&&r.parentNode.firstChild,n=ve("increment");n.delta=t,o&&o.dispatchEvent(n)}function H(e,t,r,o){var n=ee(t,!0),l=d("span",e,t.getDate().toString());return l.dateObj=t,l.$i=o,l.setAttribute("aria-label",a.formatDate(t,a.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===x(t,a.now)&&(a.todayDateElem=l,l.classList.add("today"),l.setAttribute("aria-current","date")),n?(l.tabIndex=-1,_e(t)&&(l.classList.add("selected"),a.selectedDateElem=l,"range"===a.config.mode&&(f(l,"startRange",a.selectedDates[0]&&0===x(t,a.selectedDates[0],!0)),f(l,"endRange",a.selectedDates[1]&&0===x(t,a.selectedDates[1],!0)),"nextMonthDay"===e&&l.classList.add("inRange")))):l.classList.add("flatpickr-disabled"),"range"===a.config.mode&&function(e){return!("range"!==a.config.mode||a.selectedDates.length<2)&&x(e,a.selectedDates[0])>=0&&x(e,a.selectedDates[1])<=0}(t)&&!_e(t)&&l.classList.add("inRange"),a.weekNumbers&&1===a.config.showMonths&&"prevMonthDay"!==e&&o%7==6&&a.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+a.config.getWeek(t)+"</span>"),be("onDayCreate",l),l}function $(e){e.focus(),"range"===a.config.mode&&oe(e)}function R(e){for(var t=e>0?0:a.config.showMonths-1,r=e>0?a.config.showMonths:-1,o=t;o!=r;o+=e)for(var n=a.daysContainer.children[o],l=e>0?0:n.children.length-1,i=e>0?n.children.length:-1,s=l;s!=i;s+=e){var c=n.children[s];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj))return c}}function V(e,t){var r=n(),o=te(r||document.body),l=void 0!==e?e:o?r:void 0!==a.selectedDateElem&&te(a.selectedDateElem)?a.selectedDateElem:void 0!==a.todayDateElem&&te(a.todayDateElem)?a.todayDateElem:R(t>0?1:-1);void 0===l?a._input.focus():o?function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():a.currentMonth,o=t>0?a.config.showMonths:-1,n=t>0?1:-1,l=r-a.currentMonth;l!=o;l+=n)for(var i=a.daysContainer.children[l],s=r-a.currentMonth===l?e.$i+t:t<0?i.children.length-1:0,c=i.children.length,u=s;u>=0&&u<c&&u!=(t>0?c:-1);u+=n){var f=i.children[u];if(-1===f.className.indexOf("hidden")&&ee(f.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return $(f)}a.changeMonth(n),V(R(n),0)}(l,t):$(l)}function z(e,t){for(var r=(new Date(e,t,1).getDay()-a.l10n.firstDayOfWeek+7)%7,o=a.utils.getDaysInMonth((t-1+12)%12,e),n=a.utils.getDaysInMonth(t,e),l=window.document.createDocumentFragment(),i=a.config.showMonths>1,s=i?"prevMonthDay hidden":"prevMonthDay",c=i?"nextMonthDay hidden":"nextMonthDay",u=o+1-r,f=0;u<=o;u++,f++)l.appendChild(H("flatpickr-day "+s,new Date(e,t-1,u),0,f));for(u=1;u<=n;u++,f++)l.appendChild(H("flatpickr-day",new Date(e,t,u),0,f));for(var p=n+1;p<=42-r&&(1===a.config.showMonths||f%7!=0);p++,f++)l.appendChild(H("flatpickr-day "+c,new Date(e,t+1,p%n),0,f));var m=d("div","dayContainer");return m.appendChild(l),m}function q(){if(void 0!==a.daysContainer){p(a.daysContainer),a.weekNumbers&&p(a.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<a.config.showMonths;t++){var r=new Date(a.currentYear,a.currentMonth,1);r.setMonth(a.currentMonth+t),e.appendChild(z(r.getFullYear(),r.getMonth()))}a.daysContainer.appendChild(e),a.days=a.daysContainer.firstChild,"range"===a.config.mode&&1===a.selectedDates.length&&oe()}}function Y(){if(!(a.config.showMonths>1||"dropdown"!==a.config.monthSelectorType)){var e=function(e){return!(void 0!==a.config.minDate&&a.currentYear===a.config.minDate.getFullYear()&&e<a.config.minDate.getMonth()||void 0!==a.config.maxDate&&a.currentYear===a.config.maxDate.getFullYear()&&e>a.config.maxDate.getMonth())};a.monthsDropdownContainer.tabIndex=-1,a.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var r=d("option","flatpickr-monthDropdown-month");r.value=new Date(a.currentYear,t).getMonth().toString(),r.textContent=v(t,a.config.shorthandCurrentMonth,a.l10n),r.tabIndex=-1,a.currentMonth===t&&(r.selected=!0),a.monthsDropdownContainer.appendChild(r)}}}function G(){var e,t=d("div","flatpickr-month"),r=window.document.createDocumentFragment();a.config.showMonths>1||"static"===a.config.monthSelectorType?e=d("span","cur-month"):(a.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),a.monthsDropdownContainer.setAttribute("aria-label",a.l10n.monthAriaLabel),L(a.monthsDropdownContainer,"change",(function(e){var t=h(e),r=parseInt(t.value,10);a.changeMonth(r-a.currentMonth),be("onMonthChange")})),Y(),e=a.monthsDropdownContainer);var o=g("cur-year",{tabindex:"-1"}),n=o.getElementsByTagName("input")[0];n.setAttribute("aria-label",a.l10n.yearAriaLabel),a.config.minDate&&n.setAttribute("min",a.config.minDate.getFullYear().toString()),a.config.maxDate&&(n.setAttribute("max",a.config.maxDate.getFullYear().toString()),n.disabled=!!a.config.minDate&&a.config.minDate.getFullYear()===a.config.maxDate.getFullYear());var l=d("div","flatpickr-current-month");return l.appendChild(e),l.appendChild(o),r.appendChild(l),t.appendChild(r),{container:t,yearElement:n,monthElement:e}}function U(){p(a.monthNav),a.monthNav.appendChild(a.prevMonthNav),a.config.showMonths&&(a.yearElements=[],a.monthElements=[]);for(var e=a.config.showMonths;e--;){var t=G();a.yearElements.push(t.yearElement),a.monthElements.push(t.monthElement),a.monthNav.appendChild(t.container)}a.monthNav.appendChild(a.nextMonthNav)}function W(){a.weekdayContainer?p(a.weekdayContainer):a.weekdayContainer=d("div","flatpickr-weekdays");for(var e=a.config.showMonths;e--;){var t=d("div","flatpickr-weekdaycontainer");a.weekdayContainer.appendChild(t)}return J(),a.weekdayContainer}function J(){if(a.weekdayContainer){var e=a.l10n.firstDayOfWeek,t=D(a.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=D(t.splice(e,t.length),t.splice(0,e)));for(var r=a.config.showMonths;r--;)a.weekdayContainer.children[r].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,t){void 0===t&&(t=!0);var r=t?e:e-a.currentMonth;r<0&&!0===a._hidePrevMonthArrow||r>0&&!0===a._hideNextMonthArrow||(a.currentMonth+=r,(a.currentMonth<0||a.currentMonth>11)&&(a.currentYear+=a.currentMonth>11?1:-1,a.currentMonth=(a.currentMonth+12)%12,be("onYearChange"),Y()),q(),be("onMonthChange"),ye())}function K(e){return a.calendarContainer.contains(e)}function Z(e){if(a.isOpen&&!a.config.inline){var t=h(e),r=K(t),o=!(t===a.input||t===a.altInput||a.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(a.input)||~e.path.indexOf(a.altInput))||r||K(e.relatedTarget)),n=!a.config.ignoredFocusElements.some((function(e){return e.contains(t)}));o&&n&&(a.config.allowInput&&a.setDate(a._input.value,!1,a.config.altInput?a.config.altFormat:a.config.dateFormat),void 0!==a.timeContainer&&void 0!==a.minuteElement&&void 0!==a.hourElement&&""!==a.input.value&&void 0!==a.input.value&&w(),a.close(),a.config&&"range"===a.config.mode&&1===a.selectedDates.length&&a.clear(!1))}}function X(e){if(!(!e||a.config.minDate&&e<a.config.minDate.getFullYear()||a.config.maxDate&&e>a.config.maxDate.getFullYear())){var t=e,r=a.currentYear!==t;a.currentYear=t||a.currentYear,a.config.maxDate&&a.currentYear===a.config.maxDate.getFullYear()?a.currentMonth=Math.min(a.config.maxDate.getMonth(),a.currentMonth):a.config.minDate&&a.currentYear===a.config.minDate.getFullYear()&&(a.currentMonth=Math.max(a.config.minDate.getMonth(),a.currentMonth)),r&&(a.redraw(),be("onYearChange"),Y())}}function ee(e,t){var r;void 0===t&&(t=!0);var o=a.parseDate(e,void 0,t);if(a.config.minDate&&o&&x(o,a.config.minDate,void 0!==t?t:!a.minDateHasTime)<0||a.config.maxDate&&o&&x(o,a.config.maxDate,void 0!==t?t:!a.maxDateHasTime)>0)return!1;if(!a.config.enable&&0===a.config.disable.length)return!0;if(void 0===o)return!1;for(var n=!!a.config.enable,l=null!==(r=a.config.enable)&&void 0!==r?r:a.config.disable,i=0,s=void 0;i<l.length;i++){if("function"==typeof(s=l[i])&&s(o))return n;if(s instanceof Date&&void 0!==o&&s.getTime()===o.getTime())return n;if("string"==typeof s){var c=a.parseDate(s,void 0,!0);return c&&c.getTime()===o.getTime()?n:!n}if("object"==typeof s&&void 0!==o&&s.from&&s.to&&o.getTime()>=s.from.getTime()&&o.getTime()<=s.to.getTime())return n}return!n}function te(e){return void 0!==a.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&a.daysContainer.contains(e)}function ae(e){var t=e.target===a._input,r=a._input.value.trimEnd()!==we();!t||!r||e.relatedTarget&&K(e.relatedTarget)||a.setDate(a._input.value,!0,e.target===a.altInput?a.config.altFormat:a.config.dateFormat)}function re(t){var r=h(t),o=a.config.wrap?e.contains(r):r===a._input,l=a.config.allowInput,i=a.isOpen&&(!l||!o),s=a.config.inline&&o&&!l;if(13===t.keyCode&&o){if(l)return a.setDate(a._input.value,!0,r===a.altInput?a.config.altFormat:a.config.dateFormat),a.close(),r.blur();a.open()}else if(K(r)||i||s){var c=!!a.timeContainer&&a.timeContainer.contains(r);switch(t.keyCode){case 13:c?(t.preventDefault(),w(),fe()):de(t);break;case 27:t.preventDefault(),fe();break;case 8:case 46:o&&!a.config.allowInput&&(t.preventDefault(),a.clear());break;case 37:case 39:if(c||o)a.hourElement&&a.hourElement.focus();else{t.preventDefault();var u=n();if(void 0!==a.daysContainer&&(!1===l||u&&te(u))){var f=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),Q(f),V(R(1),0)):V(void 0,f)}}break;case 38:case 40:t.preventDefault();var d=40===t.keyCode?1:-1;a.daysContainer&&void 0!==r.$i||r===a.input||r===a.altInput?t.ctrlKey?(t.stopPropagation(),X(a.currentYear-d),V(R(1),0)):c||V(void 0,7*d):r===a.currentYearElement?X(a.currentYear-d):a.config.enableTime&&(!c&&a.hourElement&&a.hourElement.focus(),w(t),a._debouncedChange());break;case 9:if(c){var p=[a.hourElement,a.minuteElement,a.secondElement,a.amPM].concat(a.pluginElements).filter((function(e){return e})),m=p.indexOf(r);if(-1!==m){var g=p[m+(t.shiftKey?-1:1)];t.preventDefault(),(g||a._input).focus()}}else!a.config.noCalendar&&a.daysContainer&&a.daysContainer.contains(r)&&t.shiftKey&&(t.preventDefault(),a._input.focus())}}if(void 0!==a.amPM&&r===a.amPM)switch(t.key){case a.l10n.amPM[0].charAt(0):case a.l10n.amPM[0].charAt(0).toLowerCase():a.amPM.textContent=a.l10n.amPM[0],P(),Ee();break;case a.l10n.amPM[1].charAt(0):case a.l10n.amPM[1].charAt(0).toLowerCase():a.amPM.textContent=a.l10n.amPM[1],P(),Ee()}(o||K(r))&&be("onKeyDown",t)}function oe(e,t){if(void 0===t&&(t="flatpickr-day"),1===a.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var r=e?e.dateObj.getTime():a.days.firstElementChild.dateObj.getTime(),o=a.parseDate(a.selectedDates[0],void 0,!0).getTime(),n=Math.min(r,a.selectedDates[0].getTime()),l=Math.max(r,a.selectedDates[0].getTime()),i=!1,s=0,c=0,u=n;u<l;u+=864e5)ee(new Date(u),!0)||(i=i||u>n&&u<l,u<o&&(!s||u>s)?s=u:u>o&&(!c||u<c)&&(c=u));Array.from(a.rContainer.querySelectorAll("*:nth-child(-n+"+a.config.showMonths+") > ."+t)).forEach((function(t){var n,l,u,f=t.dateObj.getTime(),d=s>0&&f<s||c>0&&f>c;if(d)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));i&&!d||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(r<=a.selectedDates[0].getTime()?"startRange":"endRange"),o<r&&f===o?t.classList.add("startRange"):o>r&&f===o&&t.classList.add("endRange"),f>=s&&(0===c||f<=c)&&(l=o,u=r,(n=f)>Math.min(l,u)&&n<Math.max(l,u))&&t.classList.add("inRange")))}))}}function ne(){!a.isOpen||a.config.static||a.config.inline||ce()}function le(e){return function(t){var r=a.config["_"+e+"Date"]=a.parseDate(t,a.config.dateFormat),o=a.config["_"+("min"===e?"max":"min")+"Date"];void 0!==r&&(a["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),a.selectedDates&&(a.selectedDates=a.selectedDates.filter((function(e){return ee(e)})),a.selectedDates.length||"min"!==e||O(r),Ee()),a.daysContainer&&(ue(),void 0!==r?a.currentYearElement[e]=r.getFullYear().toString():a.currentYearElement.removeAttribute(e),a.currentYearElement.disabled=!!o&&void 0!==r&&o.getFullYear()===r.getFullYear())}}function ie(){return a.config.wrap?e.querySelector("[data-input]"):e}function se(){"object"!=typeof a.config.locale&&void 0===M.l10ns[a.config.locale]&&a.config.errorHandler(new Error("flatpickr: invalid locale "+a.config.locale)),a.l10n=S(S({},M.l10ns.default),"object"==typeof a.config.locale?a.config.locale:"default"!==a.config.locale?M.l10ns[a.config.locale]:void 0),y.D="("+a.l10n.weekdays.shorthand.join("|")+")",y.l="("+a.l10n.weekdays.longhand.join("|")+")",y.M="("+a.l10n.months.shorthand.join("|")+")",y.F="("+a.l10n.months.longhand.join("|")+")",y.K="("+a.l10n.amPM[0]+"|"+a.l10n.amPM[1]+"|"+a.l10n.amPM[0].toLowerCase()+"|"+a.l10n.amPM[1].toLowerCase()+")",void 0===S(S({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===M.defaultConfig.time_24hr&&(a.config.time_24hr=a.l10n.time_24hr),a.formatDate=E(a),a.parseDate=C({config:a.config,l10n:a.l10n})}function ce(e){if("function"!=typeof a.config.position){if(void 0!==a.calendarContainer){be("onPreCalendarPosition");var t=e||a._positionElement,r=Array.prototype.reduce.call(a.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),o=a.calendarContainer.offsetWidth,n=a.config.position.split(" "),l=n[0],i=n.length>1?n[1]:null,s=t.getBoundingClientRect(),c=window.innerHeight-s.bottom,u="above"===l||"below"!==l&&c<r&&s.top>r,d=window.pageYOffset+s.top+(u?-r-2:t.offsetHeight+2);if(f(a.calendarContainer,"arrowTop",!u),f(a.calendarContainer,"arrowBottom",u),!a.config.inline){var p=window.pageXOffset+s.left,m=!1,g=!1;"center"===i?(p-=(o-s.width)/2,m=!0):"right"===i&&(p-=o-s.width,g=!0),f(a.calendarContainer,"arrowLeft",!m&&!g),f(a.calendarContainer,"arrowCenter",m),f(a.calendarContainer,"arrowRight",g);var h=window.document.body.offsetWidth-(window.pageXOffset+s.right),b=p+o>window.document.body.offsetWidth,v=h+o>window.document.body.offsetWidth;if(f(a.calendarContainer,"rightMost",b),!a.config.static)if(a.calendarContainer.style.top=d+"px",b)if(v){var _=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var a=document.styleSheets[t];if(a.cssRules){try{a.cssRules}catch(e){continue}e=a;break}}return null!=e?e:(r=document.createElement("style"),document.head.appendChild(r),r.sheet);var r}();if(void 0===_)return;var y=window.document.body.offsetWidth,w=Math.max(0,y/2-o/2),E=_.cssRules.length,C="{left:"+s.left+"px;right:auto;}";f(a.calendarContainer,"rightMost",!1),f(a.calendarContainer,"centerMost",!0),_.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,E),a.calendarContainer.style.left=w+"px",a.calendarContainer.style.right="auto"}else a.calendarContainer.style.left="auto",a.calendarContainer.style.right=h+"px";else a.calendarContainer.style.left=p+"px",a.calendarContainer.style.right="auto"}}}else a.config.position(a,e)}function ue(){a.config.noCalendar||a.isMobile||(Y(),ye(),q())}function fe(){a._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(a.close,0):a.close()}function de(e){e.preventDefault(),e.stopPropagation();var t=m(h(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var r=t,o=a.latestSelectedDateObj=new Date(r.dateObj.getTime()),n=(o.getMonth()<a.currentMonth||o.getMonth()>a.currentMonth+a.config.showMonths-1)&&"range"!==a.config.mode;if(a.selectedDateElem=r,"single"===a.config.mode)a.selectedDates=[o];else if("multiple"===a.config.mode){var l=_e(o);l?a.selectedDates.splice(parseInt(l),1):a.selectedDates.push(o)}else"range"===a.config.mode&&(2===a.selectedDates.length&&a.clear(!1,!1),a.latestSelectedDateObj=o,a.selectedDates.push(o),0!==x(o,a.selectedDates[0],!0)&&a.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(P(),n){var i=a.currentYear!==o.getFullYear();a.currentYear=o.getFullYear(),a.currentMonth=o.getMonth(),i&&(be("onYearChange"),Y()),be("onMonthChange")}if(ye(),q(),Ee(),n||"range"===a.config.mode||1!==a.config.showMonths?void 0!==a.selectedDateElem&&void 0===a.hourElement&&a.selectedDateElem&&a.selectedDateElem.focus():$(r),void 0!==a.hourElement&&void 0!==a.hourElement&&a.hourElement.focus(),a.config.closeOnSelect){var s="single"===a.config.mode&&!a.config.enableTime,c="range"===a.config.mode&&2===a.selectedDates.length&&!a.config.enableTime;(s||c)&&fe()}A()}}a.parseDate=C({config:a.config,l10n:a.l10n}),a._handlers=[],a.pluginElements=[],a.loadedPlugins=[],a._bind=L,a._setHoursFromDate=O,a._positionCalendar=ce,a.changeMonth=Q,a.changeYear=X,a.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),a.input.value="",void 0!==a.altInput&&(a.altInput.value=""),void 0!==a.mobileInput&&(a.mobileInput.value=""),a.selectedDates=[],a.latestSelectedDateObj=void 0,!0===t&&(a.currentYear=a._initialDate.getFullYear(),a.currentMonth=a._initialDate.getMonth()),!0===a.config.enableTime){var r=N(a.config);T(r.hours,r.minutes,r.seconds)}a.redraw(),e&&be("onChange")},a.close=function(){a.isOpen=!1,a.isMobile||(void 0!==a.calendarContainer&&a.calendarContainer.classList.remove("open"),void 0!==a._input&&a._input.classList.remove("active")),be("onClose")},a.onMouseOver=oe,a._createElement=d,a.createDay=H,a.destroy=function(){void 0!==a.config&&be("onDestroy");for(var e=a._handlers.length;e--;)a._handlers[e].remove();if(a._handlers=[],a.mobileInput)a.mobileInput.parentNode&&a.mobileInput.parentNode.removeChild(a.mobileInput),a.mobileInput=void 0;else if(a.calendarContainer&&a.calendarContainer.parentNode)if(a.config.static&&a.calendarContainer.parentNode){var t=a.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else a.calendarContainer.parentNode.removeChild(a.calendarContainer);a.altInput&&(a.input.type="text",a.altInput.parentNode&&a.altInput.parentNode.removeChild(a.altInput),delete a.altInput),a.input&&(a.input.type=a.input._type,a.input.classList.remove("flatpickr-input"),a.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete a[e]}catch(e){}}))},a.isEnabled=ee,a.jumpToDate=F,a.updateValue=Ee,a.open=function(e,t){if(void 0===t&&(t=a._positionElement),!0===a.isMobile){if(e){e.preventDefault();var r=h(e);r&&r.blur()}return void 0!==a.mobileInput&&(a.mobileInput.focus(),a.mobileInput.click()),void be("onOpen")}if(!a._input.disabled&&!a.config.inline){var o=a.isOpen;a.isOpen=!0,o||(a.calendarContainer.classList.add("open"),a._input.classList.add("active"),be("onOpen"),ce(t)),!0===a.config.enableTime&&!0===a.config.noCalendar&&(!1!==a.config.allowInput||void 0!==e&&a.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return a.hourElement.select()}),50))}},a.redraw=ue,a.set=function(e,t){if(null!==e&&"object"==typeof e)for(var o in Object.assign(a.config,e),e)void 0!==pe[o]&&pe[o].forEach((function(e){return e()}));else a.config[e]=t,void 0!==pe[e]?pe[e].forEach((function(e){return e()})):r.indexOf(e)>-1&&(a.config[e]=u(t));a.redraw(),Ee(!0)},a.setDate=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=a.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return a.clear(t);me(e,r),a.latestSelectedDateObj=a.selectedDates[a.selectedDates.length-1],a.redraw(),F(void 0,t),O(),0===a.selectedDates.length&&a.clear(!1),Ee(t),t&&be("onChange")},a.toggle=function(e){if(!0===a.isOpen)return a.close();a.open(e)};var pe={locale:[se,J],showMonths:[U,_,W],minDate:[F],maxDate:[F],positionElement:[he],clickOpens:[function(){!0===a.config.clickOpens?(L(a._input,"focus",a.open),L(a._input,"click",a.open)):(a._input.removeEventListener("focus",a.open),a._input.removeEventListener("click",a.open))}]};function me(e,t){var r=[];if(e instanceof Array)r=e.map((function(e){return a.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)r=[a.parseDate(e,t)];else if("string"==typeof e)switch(a.config.mode){case"single":case"time":r=[a.parseDate(e,t)];break;case"multiple":r=e.split(a.config.conjunction).map((function(e){return a.parseDate(e,t)}));break;case"range":r=e.split(a.l10n.rangeSeparator).map((function(e){return a.parseDate(e,t)}))}else a.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));a.selectedDates=a.config.allowInvalidPreload?r:r.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===a.config.mode&&a.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ge(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?a.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:a.parseDate(e.from,void 0),to:a.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function he(){a._positionElement=a.config.positionElement||a._input}function be(e,t){if(void 0!==a.config){var r=a.config[e];if(void 0!==r&&r.length>0)for(var o=0;r[o]&&o<r.length;o++)r[o](a.selectedDates,a.input.value,a,t);"onChange"===e&&(a.input.dispatchEvent(ve("change")),a.input.dispatchEvent(ve("input")))}}function ve(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function _e(e){for(var t=0;t<a.selectedDates.length;t++){var r=a.selectedDates[t];if(r instanceof Date&&0===x(r,e))return""+t}return!1}function ye(){a.config.noCalendar||a.isMobile||!a.monthNav||(a.yearElements.forEach((function(e,t){var r=new Date(a.currentYear,a.currentMonth,1);r.setMonth(a.currentMonth+t),a.config.showMonths>1||"static"===a.config.monthSelectorType?a.monthElements[t].textContent=v(r.getMonth(),a.config.shorthandCurrentMonth,a.l10n)+" ":a.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()})),a._hidePrevMonthArrow=void 0!==a.config.minDate&&(a.currentYear===a.config.minDate.getFullYear()?a.currentMonth<=a.config.minDate.getMonth():a.currentYear<a.config.minDate.getFullYear()),a._hideNextMonthArrow=void 0!==a.config.maxDate&&(a.currentYear===a.config.maxDate.getFullYear()?a.currentMonth+1>a.config.maxDate.getMonth():a.currentYear>a.config.maxDate.getFullYear()))}function we(e){var t=e||(a.config.altInput?a.config.altFormat:a.config.dateFormat);return a.selectedDates.map((function(e){return a.formatDate(e,t)})).filter((function(e,t,r){return"range"!==a.config.mode||a.config.enableTime||r.indexOf(e)===t})).join("range"!==a.config.mode?a.config.conjunction:a.l10n.rangeSeparator)}function Ee(e){void 0===e&&(e=!0),void 0!==a.mobileInput&&a.mobileFormatStr&&(a.mobileInput.value=void 0!==a.latestSelectedDateObj?a.formatDate(a.latestSelectedDateObj,a.mobileFormatStr):""),a.input.value=we(a.config.dateFormat),void 0!==a.altInput&&(a.altInput.value=we(a.config.altFormat)),!1!==e&&be("onValueUpdate")}function Ce(e){var t=h(e),r=a.prevMonthNav.contains(t),o=a.nextMonthNav.contains(t);r||o?Q(r?-1:1):a.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?a.changeYear(a.currentYear+1):t.classList.contains("arrowDown")&&a.changeYear(a.currentYear-1)}return function(){a.element=a.input=e,a.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],l=S(S({},JSON.parse(JSON.stringify(e.dataset||{}))),t),i={};a.config.parseDate=l.parseDate,a.config.formatDate=l.formatDate,Object.defineProperty(a.config,"enable",{get:function(){return a.config._enable},set:function(e){a.config._enable=ge(e)}}),Object.defineProperty(a.config,"disable",{get:function(){return a.config._disable},set:function(e){a.config._disable=ge(e)}});var s="time"===l.mode;if(!l.dateFormat&&(l.enableTime||s)){var c=M.defaultConfig.dateFormat||o.dateFormat;i.dateFormat=l.noCalendar||s?"H:i"+(l.enableSeconds?":S":""):c+" H:i"+(l.enableSeconds?":S":"")}if(l.altInput&&(l.enableTime||s)&&!l.altFormat){var f=M.defaultConfig.altFormat||o.altFormat;i.altFormat=l.noCalendar||s?"h:i"+(l.enableSeconds?":S K":" K"):f+" h:i"+(l.enableSeconds?":S":"")+" K"}Object.defineProperty(a.config,"minDate",{get:function(){return a.config._minDate},set:le("min")}),Object.defineProperty(a.config,"maxDate",{get:function(){return a.config._maxDate},set:le("max")});var d=function(e){return function(t){a.config["min"===e?"_minTime":"_maxTime"]=a.parseDate(t,"H:i:S")}};Object.defineProperty(a.config,"minTime",{get:function(){return a.config._minTime},set:d("min")}),Object.defineProperty(a.config,"maxTime",{get:function(){return a.config._maxTime},set:d("max")}),"time"===l.mode&&(a.config.noCalendar=!0,a.config.enableTime=!0),Object.assign(a.config,i,l);for(var p=0;p<n.length;p++)a.config[n[p]]=!0===a.config[n[p]]||"true"===a.config[n[p]];for(r.filter((function(e){return void 0!==a.config[e]})).forEach((function(e){a.config[e]=u(a.config[e]||[]).map(b)})),a.isMobile=!a.config.disableMobile&&!a.config.inline&&"single"===a.config.mode&&!a.config.disable.length&&!a.config.enable&&!a.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),p=0;p<a.config.plugins.length;p++){var m=a.config.plugins[p](a)||{};for(var g in m)r.indexOf(g)>-1?a.config[g]=u(m[g]).map(b).concat(a.config[g]):void 0===l[g]&&(a.config[g]=m[g])}l.altInputClass||(a.config.altInputClass=ie().className+" "+a.config.altInputClass),be("onParseConfig")}(),se(),a.input=ie(),a.input?(a.input._type=a.input.type,a.input.type="text",a.input.classList.add("flatpickr-input"),a._input=a.input,a.config.altInput&&(a.altInput=d(a.input.nodeName,a.config.altInputClass),a._input=a.altInput,a.altInput.placeholder=a.input.placeholder,a.altInput.disabled=a.input.disabled,a.altInput.required=a.input.required,a.altInput.tabIndex=a.input.tabIndex,a.altInput.type="text",a.input.setAttribute("type","hidden"),!a.config.static&&a.input.parentNode&&a.input.parentNode.insertBefore(a.altInput,a.input.nextSibling)),a.config.allowInput||a._input.setAttribute("readonly","readonly"),he()):a.config.errorHandler(new Error("Invalid input element specified")),function(){a.selectedDates=[],a.now=a.parseDate(a.config.now)||new Date;var e=a.config.defaultDate||("INPUT"!==a.input.nodeName&&"TEXTAREA"!==a.input.nodeName||!a.input.placeholder||a.input.value!==a.input.placeholder?a.input.value:null);e&&me(e,a.config.dateFormat),a._initialDate=a.selectedDates.length>0?a.selectedDates[0]:a.config.minDate&&a.config.minDate.getTime()>a.now.getTime()?a.config.minDate:a.config.maxDate&&a.config.maxDate.getTime()<a.now.getTime()?a.config.maxDate:a.now,a.currentYear=a._initialDate.getFullYear(),a.currentMonth=a._initialDate.getMonth(),a.selectedDates.length>0&&(a.latestSelectedDateObj=a.selectedDates[0]),void 0!==a.config.minTime&&(a.config.minTime=a.parseDate(a.config.minTime,"H:i")),void 0!==a.config.maxTime&&(a.config.maxTime=a.parseDate(a.config.maxTime,"H:i")),a.minDateHasTime=!!a.config.minDate&&(a.config.minDate.getHours()>0||a.config.minDate.getMinutes()>0||a.config.minDate.getSeconds()>0),a.maxDateHasTime=!!a.config.maxDate&&(a.config.maxDate.getHours()>0||a.config.maxDate.getMinutes()>0||a.config.maxDate.getSeconds()>0)}(),a.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=a.currentMonth),void 0===t&&(t=a.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:a.l10n.daysInMonth[e]}},a.isMobile||function(){var e=window.document.createDocumentFragment();if(a.calendarContainer=d("div","flatpickr-calendar"),a.calendarContainer.tabIndex=-1,!a.config.noCalendar){if(e.appendChild((a.monthNav=d("div","flatpickr-months"),a.yearElements=[],a.monthElements=[],a.prevMonthNav=d("span","flatpickr-prev-month"),a.prevMonthNav.innerHTML=a.config.prevArrow,a.nextMonthNav=d("span","flatpickr-next-month"),a.nextMonthNav.innerHTML=a.config.nextArrow,U(),Object.defineProperty(a,"_hidePrevMonthArrow",{get:function(){return a.__hidePrevMonthArrow},set:function(e){a.__hidePrevMonthArrow!==e&&(f(a.prevMonthNav,"flatpickr-disabled",e),a.__hidePrevMonthArrow=e)}}),Object.defineProperty(a,"_hideNextMonthArrow",{get:function(){return a.__hideNextMonthArrow},set:function(e){a.__hideNextMonthArrow!==e&&(f(a.nextMonthNav,"flatpickr-disabled",e),a.__hideNextMonthArrow=e)}}),a.currentYearElement=a.yearElements[0],ye(),a.monthNav)),a.innerContainer=d("div","flatpickr-innerContainer"),a.config.weekNumbers){var t=function(){a.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",a.l10n.weekAbbreviation));var t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),r=t.weekWrapper,o=t.weekNumbers;a.innerContainer.appendChild(r),a.weekNumbers=o,a.weekWrapper=r}a.rContainer=d("div","flatpickr-rContainer"),a.rContainer.appendChild(W()),a.daysContainer||(a.daysContainer=d("div","flatpickr-days"),a.daysContainer.tabIndex=-1),q(),a.rContainer.appendChild(a.daysContainer),a.innerContainer.appendChild(a.rContainer),e.appendChild(a.innerContainer)}a.config.enableTime&&e.appendChild(function(){a.calendarContainer.classList.add("hasTime"),a.config.noCalendar&&a.calendarContainer.classList.add("noCalendar");var e=N(a.config);a.timeContainer=d("div","flatpickr-time"),a.timeContainer.tabIndex=-1;var t=d("span","flatpickr-time-separator",":"),r=g("flatpickr-hour",{"aria-label":a.l10n.hourAriaLabel});a.hourElement=r.getElementsByTagName("input")[0];var o=g("flatpickr-minute",{"aria-label":a.l10n.minuteAriaLabel});if(a.minuteElement=o.getElementsByTagName("input")[0],a.hourElement.tabIndex=a.minuteElement.tabIndex=-1,a.hourElement.value=i(a.latestSelectedDateObj?a.latestSelectedDateObj.getHours():a.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),a.minuteElement.value=i(a.latestSelectedDateObj?a.latestSelectedDateObj.getMinutes():e.minutes),a.hourElement.setAttribute("step",a.config.hourIncrement.toString()),a.minuteElement.setAttribute("step",a.config.minuteIncrement.toString()),a.hourElement.setAttribute("min",a.config.time_24hr?"0":"1"),a.hourElement.setAttribute("max",a.config.time_24hr?"23":"12"),a.hourElement.setAttribute("maxlength","2"),a.minuteElement.setAttribute("min","0"),a.minuteElement.setAttribute("max","59"),a.minuteElement.setAttribute("maxlength","2"),a.timeContainer.appendChild(r),a.timeContainer.appendChild(t),a.timeContainer.appendChild(o),a.config.time_24hr&&a.timeContainer.classList.add("time24hr"),a.config.enableSeconds){a.timeContainer.classList.add("hasSeconds");var n=g("flatpickr-second");a.secondElement=n.getElementsByTagName("input")[0],a.secondElement.value=i(a.latestSelectedDateObj?a.latestSelectedDateObj.getSeconds():e.seconds),a.secondElement.setAttribute("step",a.minuteElement.getAttribute("step")),a.secondElement.setAttribute("min","0"),a.secondElement.setAttribute("max","59"),a.secondElement.setAttribute("maxlength","2"),a.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),a.timeContainer.appendChild(n)}return a.config.time_24hr||(a.amPM=d("span","flatpickr-am-pm",a.l10n.amPM[s((a.latestSelectedDateObj?a.hourElement.value:a.config.defaultHour)>11)]),a.amPM.title=a.l10n.toggleTitle,a.amPM.tabIndex=-1,a.timeContainer.appendChild(a.amPM)),a.timeContainer}()),f(a.calendarContainer,"rangeMode","range"===a.config.mode),f(a.calendarContainer,"animate",!0===a.config.animate),f(a.calendarContainer,"multiMonth",a.config.showMonths>1),a.calendarContainer.appendChild(e);var n=void 0!==a.config.appendTo&&void 0!==a.config.appendTo.nodeType;if((a.config.inline||a.config.static)&&(a.calendarContainer.classList.add(a.config.inline?"inline":"static"),a.config.inline&&(!n&&a.element.parentNode?a.element.parentNode.insertBefore(a.calendarContainer,a._input.nextSibling):void 0!==a.config.appendTo&&a.config.appendTo.appendChild(a.calendarContainer)),a.config.static)){var l=d("div","flatpickr-wrapper");a.element.parentNode&&a.element.parentNode.insertBefore(l,a.element),l.appendChild(a.element),a.altInput&&l.appendChild(a.altInput),l.appendChild(a.calendarContainer)}a.config.static||a.config.inline||(void 0!==a.config.appendTo?a.config.appendTo:window.document.body).appendChild(a.calendarContainer)}(),function(){if(a.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(a.element.querySelectorAll("[data-"+e+"]"),(function(t){return L(t,"click",a[e])}))})),a.isMobile)!function(){var e=a.config.enableTime?a.config.noCalendar?"time":"datetime-local":"date";a.mobileInput=d("input",a.input.className+" flatpickr-mobile"),a.mobileInput.tabIndex=1,a.mobileInput.type=e,a.mobileInput.disabled=a.input.disabled,a.mobileInput.required=a.input.required,a.mobileInput.placeholder=a.input.placeholder,a.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",a.selectedDates.length>0&&(a.mobileInput.defaultValue=a.mobileInput.value=a.formatDate(a.selectedDates[0],a.mobileFormatStr)),a.config.minDate&&(a.mobileInput.min=a.formatDate(a.config.minDate,"Y-m-d")),a.config.maxDate&&(a.mobileInput.max=a.formatDate(a.config.maxDate,"Y-m-d")),a.input.getAttribute("step")&&(a.mobileInput.step=String(a.input.getAttribute("step"))),a.input.type="hidden",void 0!==a.altInput&&(a.altInput.type="hidden");try{a.input.parentNode&&a.input.parentNode.insertBefore(a.mobileInput,a.input.nextSibling)}catch(e){}L(a.mobileInput,"change",(function(e){a.setDate(h(e).value,!1,a.mobileFormatStr),be("onChange"),be("onClose")}))}();else{var e=c(ne,50);if(a._debouncedChange=c(A,300),a.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&L(a.daysContainer,"mouseover",(function(e){"range"===a.config.mode&&oe(h(e))})),L(a._input,"keydown",re),void 0!==a.calendarContainer&&L(a.calendarContainer,"keydown",re),a.config.inline||a.config.static||L(window,"resize",e),void 0!==window.ontouchstart?L(window.document,"touchstart",Z):L(window.document,"mousedown",Z),L(window.document,"focus",Z,{capture:!0}),!0===a.config.clickOpens&&(L(a._input,"focus",a.open),L(a._input,"click",a.open)),void 0!==a.daysContainer&&(L(a.monthNav,"click",Ce),L(a.monthNav,["keyup","increment"],I),L(a.daysContainer,"click",de)),void 0!==a.timeContainer&&void 0!==a.minuteElement&&void 0!==a.hourElement){L(a.timeContainer,["increment"],w),L(a.timeContainer,"blur",w,{capture:!0}),L(a.timeContainer,"click",B),L([a.hourElement,a.minuteElement],["focus","click"],(function(e){return h(e).select()})),void 0!==a.secondElement&&L(a.secondElement,"focus",(function(){return a.secondElement&&a.secondElement.select()})),void 0!==a.amPM&&L(a.amPM,"click",(function(e){w(e)}))}a.config.allowInput&&L(a._input,"blur",ae)}}(),(a.selectedDates.length||a.config.noCalendar)&&(a.config.enableTime&&O(a.config.noCalendar?a.latestSelectedDateObj:void 0),Ee(!1)),_();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!a.isMobile&&n&&ce(),be("onReady")}(),a}function O(e,t){for(var a=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),r=[],o=0;o<a.length;o++){var n=a[o];try{if(null!==n.getAttribute("data-fp-omit"))continue;void 0!==n._flatpickr&&(n._flatpickr.destroy(),n._flatpickr=void 0),n._flatpickr=P(n,t||{}),r.push(n._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return O(this,e)},HTMLElement.prototype.flatpickr=function(e){return O([this],e)});var M=function(e,t){return"string"==typeof e?O(window.document.querySelectorAll(e),t):e instanceof Node?O([e],t):O(e,t)};M.defaultConfig={},M.l10ns={en:S({},l),default:S({},l)},M.localize=function(e){M.l10ns.default=S(S({},M.l10ns.default),e)},M.setDefaults=function(e){M.defaultConfig=S(S({},M.defaultConfig),e)},M.parseDate=C({}),M.formatDate=E({}),M.compareDates=x,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return O(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=M);var T=M},895:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach((function(a){return e[a]=t[a]}))},o=0,n=t;o<n.length;o++){var l=n[o];r(l)}return e})},679:function(e,t,a){"use strict";var r=a(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function s(e){return r.isMemo(e)?l:i[e.$$typeof]||o}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=l;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,a,r){if("string"!=typeof a){if(m){var o=p(a);o&&o!==m&&e(t,o,r)}var l=u(a);f&&(l=l.concat(f(a)));for(var i=s(t),g=s(a),h=0;h<l.length;++h){var b=l[h];if(!(n[b]||r&&r[b]||g&&g[b]||i&&i[b])){var v=d(a,b);try{c(t,b,v)}catch(e){}}}}return t}},103:function(e,t){"use strict";var a="function"==typeof Symbol&&Symbol.for,r=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,n=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,d=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.suspense_list"):60120,g=a?Symbol.for("react.memo"):60115,h=a?Symbol.for("react.lazy"):60116,b=a?Symbol.for("react.block"):60121,v=a?Symbol.for("react.fundamental"):60117,_=a?Symbol.for("react.responder"):60118,y=a?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case n:case i:case l:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case h:case g:case s:return e;default:return t}}case o:return t}}}function E(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=n,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=i,t.StrictMode=l,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===n},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===i},t.isStrictMode=function(e){return w(e)===l},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===i||e===l||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===_||e.$$typeof===y||e.$$typeof===b)},t.typeOf=w},296:function(e,t,a){"use strict";e.exports=a(103)},703:function(e,t,a){"use strict";var r=a(414);function o(){}function n(){}n.resetWarningCache=o,e.exports=function(){function e(e,t,a,o,n,l){if(l!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:o};return a.PropTypes=a,a}},697:function(e,t,a){e.exports=a(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},953:function(e,t,a){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=o?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}return a.default=e,t&&t.set(e,a),a}(a(196)),n=i(a(697)),l=i(a(527));function i(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u.apply(this,arguments)}function f(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?f(Object(a),!0).forEach((function(t){_(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):f(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function h(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function _(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var y=["onChange","onOpen","onClose","onMonthChange","onYearChange","onReady","onValueUpdate","onDayCreate"],w=n.default.oneOfType([n.default.func,n.default.arrayOf(n.default.func)]),E=["onCreate","onDestroy"],C=n.default.func,x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,a,r,n,i=(r=s,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(r);if(n){var a=v(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return h(this,e)});function s(){var e;p(this,s);for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return _(b(e=i.call.apply(i,[this].concat(a))),"createFlatpickrInstance",(function(){var t=d({onClose:function(){e.node.blur&&e.node.blur()}},e.props.options);t=k(t,e.props),e.flatpickr=(0,l.default)(e.node,t),e.props.hasOwnProperty("value")&&e.flatpickr.setDate(e.props.value,!1);var a=e.props.onCreate;a&&a(e.flatpickr)})),_(b(e),"destroyFlatpickrInstance",(function(){var t=e.props.onDestroy;t&&t(e.flatpickr),e.flatpickr.destroy(),e.flatpickr=null})),_(b(e),"handleNodeChange",(function(t){e.node=t,e.flatpickr&&(e.destroyFlatpickrInstance(),e.createFlatpickrInstance())})),e}return t=s,(a=[{key:"componentDidUpdate",value:function(e){var t=this.props.options,a=e.options;t=k(t,this.props),a=k(a,e);for(var r=Object.getOwnPropertyNames(t),o=r.length-1;o>=0;o--){var n=r[o],l=t[n];l!==a[n]&&(-1===y.indexOf(n)||Array.isArray(l)||(l=[l]),this.flatpickr.set(n,l))}!this.props.hasOwnProperty("value")||this.props.value&&Array.isArray(this.props.value)&&e.value&&Array.isArray(e.value)&&this.props.value.every((function(t,a){e[a]}))||this.props.value===e.value||this.flatpickr.setDate(this.props.value,!1)}},{key:"componentDidMount",value:function(){this.createFlatpickrInstance()}},{key:"componentWillUnmount",value:function(){this.destroyFlatpickrInstance()}},{key:"render",value:function(){var e=this.props,t=e.options,a=e.defaultValue,r=e.value,n=e.children,l=e.render,i=function(e,t){if(null==e)return{};var a,r,o=function(e,t){if(null==e)return{};var a,r,o={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(o[a]=e[a]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}(e,["options","defaultValue","value","children","render"]);return y.forEach((function(e){delete i[e]})),E.forEach((function(e){delete i[e]})),l?l(d(d({},i),{},{defaultValue:a,value:r}),this.handleNodeChange):t.wrap?o.default.createElement("div",u({},i,{ref:this.handleNodeChange}),n):o.default.createElement("input",u({},i,{defaultValue:a,ref:this.handleNodeChange}))}}])&&m(t.prototype,a),s}(o.Component);function k(e,t){var a=d({},e);return y.forEach((function(e){if(t.hasOwnProperty(e)){var r;a[e]&&!Array.isArray(a[e])?a[e]=[a[e]]:a[e]||(a[e]=[]);var o=Array.isArray(t[e])?t[e]:[t[e]];(r=a[e]).push.apply(r,function(e){if(Array.isArray(e))return c(e)}(n=o)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var n})),a}_(x,"propTypes",{defaultValue:n.default.string,options:n.default.object,onChange:w,onOpen:w,onClose:w,onMonthChange:w,onYearChange:w,onReady:w,onValueUpdate:w,onDayCreate:w,onCreate:C,onDestroy:C,value:n.default.oneOfType([n.default.string,n.default.array,n.default.object,n.default.number]),children:n.default.node,className:n.default.string,render:n.default.func}),_(x,"defaultProps",{options:{}});var N=x;t.Z=N},196:function(e){"use strict";e.exports=window.React}},t={};function a(r){var o=t[r];if(void 0!==o)return o.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,a),n.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=window.wp.element,t=window.wp.blocks,r=window.wp.i18n;function o(e){return o="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},o(e)}var n=function(e,t){let a="linear"===e.type?"linear-gradient("+e.direction+"deg, ":"radial-gradient( circle at "+e.radial+" , ";return a+=e.color1+" "+e.start+"%,"+e.color2+" "+e.stop+"%)","object"===t?{background:a}:(a="background:"+a+(e.clip?"-webkit-background-clip: text; -webkit-text-fill-color: transparent;":""),"{"+a+"}")},l=function(e){let t="{";return t+="box-shadow:"+(e.inset?"inset":"")+" "+e.width.top+"px "+e.width.right+"px "+e.width.bottom+"px "+e.width.left+"px "+e.color+";",void 0!==e.transition&&(t+="transition: box-shadow "+e.transition+"s;"),t+="}",t},i=function(e){let t="{";return void 0!==e.opacity&&""!==e.opacity&&(t+="opacity:"+e.opacity+";"),t+="filter:brightness("+e.filter.brightness+"% ) contrast("+e.filter.contrast+"% ) saturate("+e.filter.saturate+"% ) blur("+e.filter.blur+"px ) hue-rotate("+e.filter["hue-rotate"]+"deg );",void 0!==e.transition&&""!==e.transition&&(t+="transition: filter "+e.transition+"s;"),t+="}",t},s=function(e){return(e=Object.assign({},{type:"solid",width:{},color:"#e5e5e5"},e)).width.unit&&e.width.unit,"{ border-color: "+(e.color?e.color:"#555d66")+"; border-style: "+(e.type?e.type:"solid")+"; border-width: "+d(e.width)+"; }"};const c=function(e,t){let a={};return e&&e.lg&&(a.lg=t.replace(new RegExp("{{key}}","g"),e.lg+(e.unit||""))),e&&e.md&&(a.md=t.replace(new RegExp("{{key}}","g"),e.md+(e.unit||""))),e&&e.sm&&(a.sm=t.replace(new RegExp("{{key}}","g"),e.sm+(e.unit||""))),e&&e.xs&&(a.xs=t.replace(new RegExp("{{key}}","g"),e.xs+(e.unit||""))),a},u=function(e,t){return e.lg&&t.lg.push(e.lg),e.md&&t.md.push(e.md),e.sm&&t.sm.push(e.sm),e.xs&&t.xs.push(e.xs),t};var f=function(e){let t="";e.family&&"none"!==e.family&&(["Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia"].includes(e.family)||(t="@import url('https://fonts.googleapis.com/css?family="+e.family.replace(" ","+")+":"+(e.weight||400)+"');"));let a={lg:[],md:[],sm:[],xs:[]};e.size&&(a=u(c(e.size,"font-size:{{key}}"),a)),e.height&&(a=u(c(e.height,"line-height:{{key}} !important"),a)),e.spacing&&(a=u(c(e.spacing,"letter-spacing:{{key}}"),a));const r="{"+(e.family&&"none"!==e.family?"font-family:'"+e.family+"',"+(e.type||"sans-serif")+";":"")+(e.weight?"font-weight:"+e.weight+";":"")+(e.color?"color:"+e.color+";":"")+(e.style?"font-style:"+e.style+";":"")+(e.transform?"text-transform:"+e.transform+";":"")+(e.decoration?"text-decoration:"+e.decoration+";":"")+"}";return{lg:a.lg,md:a.md,sm:a.sm,xs:a.xs,simple:r,font:t}};const d=function(e){const t=e.unit?e.unit:"px";let a="";return(e.top||0===e.top)&&(a+=e.top+t+" "),(e.right||0===e.right)&&(a+=e.right+t+" "),(e.bottom||0===e.bottom)&&(a+=e.bottom+t+" "),(e.left||0===e.left)&&(a+=e.left+t+" "),a},p=function(e){let t="{";return t+=function(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2],r=arguments[3],o=arguments[4],n=arguments[5],l=arguments[6],i=arguments[7];let s=l?"background-color:"+l+";":"";return"image"===e?s+=(t.hasOwnProperty("url")?"background-image:url("+t.url+");":"")+(a?"background-position:"+a+";":"")+(r?"background-attachment:"+r+";":"")+(o?"background-repeat:"+o+";":"")+(n?"background-size:"+n+";":""):"gradient"===e&&(i&&"linear"===i.type?s+="background-image: linear-gradient("+i.direction+"deg, "+i.color1+" "+i.start+"%,"+i.color2+" "+i.stop+"%);":s+="background-image: radial-gradient( circle at "+i.radial+" , "+i.color1+" "+i.start+"%,"+i.color2+" "+i.stop+"%);"),s}(e.bgType,e.bgImage,e.bgimgPosition,e.bgimgAttachment,e.bgimgRepeat,e.bgimgSize,e.bgDefaultColor,e.bgGradient),t+="}","video"===e.bgType&&e.bgVideoFallback&&e.bgVideoFallback.url&&(t+="background-image: url("+e.bgVideoFallback.url+"); background-position: center; background-repeat: no-repeat; background-size: cover;"),"{}"!==t?t:{}},m=function(e){let t=e.clip?"-webkit-background-clip: text; -webkit-text-fill-color: transparent;":"";return"color"===e.type?t+=e.color?"background-image: none; background-color: "+e.color+";":"":"gradient"===e.type&&e.gradient&&(e.gradient&&"linear"===e.gradient.type?t+="background-image : linear-gradient("+e.gradient.direction+"deg, "+e.gradient.color1+" "+e.gradient.start+"%,"+e.gradient.color2+" "+e.gradient.stop+"%);":t+="background-image : radial-gradient( circle at "+e.gradient.radial+" , "+e.gradient.color1+" "+e.gradient.start+"%,"+e.gradient.color2+" "+e.gradient.stop+"%);"),e.replace?t:"{"+t+"}"},g=e=>{let t={lg:[],md:[],sm:[],xs:[]},a="";if("classic"===e.type){e.classic.imgProperty.imgPosition&&(t=u(c(e.classic.imgProperty.imgPosition,"background-position:{{key}} !important"),t)),e.classic.imgProperty.imgAttachment&&(t=u(c(e.classic.imgProperty.imgAttachment,"background-attachment:{{key}} !important"),t)),e.classic.imgProperty.imgRepeat&&(t=u(c(e.classic.imgProperty.imgRepeat,"background-repeat:{{key}} !important"),t)),e.classic.imgProperty.imgSize&&(t=u(c(e.classic.imgProperty.imgSize,"background-size:{{key}} !important"),t));let r=void 0!==e.classic.img?e.classic.img.imgURL:"";a+=e.classic.color?"background:"+e.classic.color+";":"",a+=r?"background-image:url("+r+");":""}else"gradient"===e.type&&e.gradient&&(a+=e.gradient?"background-image :"+e.gradient:"");const r="{"+a+"}";return{lg:t.lg,md:t.md,sm:t.sm,xs:t.xs,simple:r}},h=(e,t)=>{let a="",r="";const o=e.unit||"px";if(null!=e&&e.important&&(r="!important"),null!=e&&e.isLinked){const n=e.value.split(" ")[0];a=n?`${t}:${n}${o}${r}`:""}else{let n=e.value?e.value.split(" "):["","","",""];""===n[0]||""===n[1]||""===n[2]||""===n[3]?(n[0]&&(a+=`${t}-top:${n[0]}${"0"!==n[0]?o:""} ${r};`),n[1]&&(a+=`${t}-right:${n[1]}${"0"!==n[1]?o:""} ${r};`),n[2]&&(a+=`${t}-bottom:${n[2]}${"0"!==n[2]?o:""} ${r};`),n[3]&&(a+=`${t}-left:${n[3]}${"0"!==n[3]?o:""} ${r};`)):a=`${t}:${n[0]?n[0]:"0"}${o} ${n[1]?n[1]:"0"}${o} ${n[2]?n[2]:"0"}${o} ${n[3]?n[3]:"0"}${o} ${r};`}let n="";return"border-radius"===t&&(n="overflow:hidden;"),a="{"+n+a+"}",a},b=e=>h(e,"border-radius"),v=e=>h(e,"margin"),_=e=>function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="";const o=e.unit||"px";if(null!=e&&e.isLinked)r=`${t}${a}:${e.value.split(" ")[0]||"0"}${o} `;else{let n=e.value?e.value.split(" "):["0","0","0","0"];""===n[0]||""===n[1]||""===n[2]||""===n[3]?(n[0]&&(r+=`${t}-top${a}:${n[0]}${"0"!==n[0]?o:""};`),n[1]&&(r+=`${t}-right${a}:${n[1]}${"0"!==n[1]?o:""};`),n[2]&&(r+=`${t}-bottom${a}:${n[2]}${"0"!==n[2]?o:""};`),n[3]&&(r+=`${t}-left${a}:${n[3]}${"0"!==n[3]?o:""};`)):r=`${t}${a}:${n[0]?n[0]:"0"}${o} ${n[1]?n[1]:"0"}${o} ${n[2]?n[2]:"0"}${o} ${n[3]?n[3]:"0"}${o}`}return r="{"+r+"}",r}(e,"border","-width"),y=e=>{let t="{";return e.width&&"undefined"!=e.width&&(t+=`border-width:${e.width} ${null!=e&&e.important?"!important":""};`),e.color&&(t+=`border-color:${e.color} ${null!=e&&e.important?"!important":""};`),e.color&&!e.style?t+=`border-style: solid ${null!=e&&e.important?"!important":""};`:e.style&&(t+=`border-style:${e.style} ${null!=e&&e.important?"!important":""};`),t+="}",t},w=(e,t,a)=>e.replace(new RegExp(t,"g"),a),E=e=>"object"===(void 0===e?"undefined":o(e))&&0!==Object.keys(e).length,C=(e,t)=>(e=e.replace(new RegExp("{{RTTPG}}","g"),".rttpg-block-postgrid.rttpg-block-"+t)).replace(new RegExp("{{RTTPG_ID}}","g"),"block-"+t),x=(e,t)=>{let a="";return t.forEach((function(e){a+=e+";"})),e+"{"+a+"}"},k=(e,t)=>{let a="";return t.forEach((function(t){a+=e+t})),a},N=(e,t,a,r)=>{if(r="object"!=typeof r?r:S(r).data,"string"==typeof e){if(e){if(r||"0"==r){const o=C(e,t);return"boolean"==typeof r?[o]:-1===o.indexOf("{{")&&o.indexOf("{")<0?[o+r]:[w(o,"{{"+a+"}}",r)]}return[]}return[C(r,t)]}{const o=[];return e.forEach((function(e){o.push(w(C(e,t),"{{"+a+"}}",r))})),o}},S=(e,t)=>{return e.openTypography?{data:f(e),action:"append"}:e.openBg?{data:p(e),action:"append"}:e.openBorder?{data:s(e),action:"append"}:e.openShadow&&e.color?{data:l(e),action:"append"}:e.openFilter?{data:i(e),action:"append"}:e.direction?{data:n(e,"return"),action:"append"}:void 0!==e.top||void 0!==e.left||void 0!==e.right||void 0!==e.bottom?{data:d(e),action:"replace"}:e.openColor?e.replace?{data:m(e),action:"replace"}:{data:m(e),action:"append"}:e.openBGColor?{data:g(e),action:"append"}:"padding"===t?{data:(a=e,h(a,"padding")),action:"append"}:"borderRadius"===t?{data:b(e),action:"append"}:"margin"===t?{data:v(e),action:"append"}:"border"===t?{data:_(e),action:"append"}:e.openTpgBorder?{data:y(e),action:"append"}:{data:"",action:"append"};var a},D=(e,t,a,r)=>{if(!a)return;let o="",n=[],l=[],i=[],s=[],c=[];if(Object.keys(e).forEach((function(o){var u;const f="string"==typeof t?null===(u=wp.blocks.getBlockType("rttpg/"+t))||void 0===u?void 0:u.attributes:t;f&&f[o]&&f[o].hasOwnProperty("style")&&f[o].style.forEach(((t,u)=>{if(t.hasOwnProperty("selector")){const u=t.selector;if(((e,t)=>{let a=!0;return t.hasOwnProperty("depends")&&t.depends.forEach((t=>{const r=a;if("=="===t.condition||"==="===t.condition)if("string"==typeof t.value||"number"==typeof t.value||"boolean"==typeof t.value)a=e[t.key]===t.value;else{let r=!1;t.value.forEach((function(a){e[t.key]===a&&(r=!0)})),r&&(a=!0)}else if("!="===t.condition||"!=="===t.condition)if("string"==typeof t.value||"number"==typeof t.value||"boolean"==typeof t.value)a=e[t.key]!==t.value;else{let r=!1;t.value.forEach((function(a){e[t.key]!==a&&(r=!0)})),r&&(a=!0)}a=!1!==r&&a})),a})(e,t))if("object"==typeof e[o]){let t=!1,r="";if((e[o].lg||0===e[o].lg)&&(t=!0,r="object"==typeof e[o].lg?S(e[o].lg,e[o].type).data:e[o].lg+(e[o].unit||""),n=n.concat(N(u,a,o,r))),(e[o].md||0===e[o].md)&&(t=!0,r="object"==typeof e[o].md?S(e[o].md,e[o].type).data:e[o].md+(e[o].unit||""),l=l.concat(N(u,a,o,r))),(e[o].sm||0===e[o].sm)&&(t=!0,r="object"==typeof e[o].sm?S(e[o].sm,e[o].type).data:e[o].sm+(e[o].unit||""),i=i.concat(N(u,a,o,r))),(e[o].xs||0===e[o].xs)&&(t=!0,r="object"==typeof e[o].xs?S(e[o].xs,e[o].type).data:e[o].xs+(e[o].unit||""),s=s.concat(N(u,a,o,r))),!t){const t=S(e[o],e[o].type),r=C(u,a);"object"==typeof t.data?0!==Object.keys(t.data).length&&(t.data.background&&c.push(r+t.data.background),E(t.data.lg)&&n.push(x(r,t.data.lg)),E(t.data.md)&&l.push(x(r,t.data.md)),E(t.data.sm)&&i.push(x(r,t.data.sm)),E(t.data.xs)&&s.push(x(r,t.data.xs)),t.data.simple&&c.push(r+t.data.simple),t.data.font&&n.unshift(t.data.font),t.data.shape&&(t.data.shape.forEach((function(e){c.push(r+e)})),E(t.data.data.lg)&&n.push(k(r,t.data.data.lg)),E(t.data.data.md)&&l.push(k(r,t.data.data.md)),E(t.data.data.sm)&&i.push(k(r,t.data.data.sm)),E(t.data.data.xs)&&s.push(k(r,t.data.data.xs)))):t.data&&-1===t.data.indexOf("{{")&&("append"===t.action?c.push(r+t.data):c.push(N(u,a,o,t.data)))}}else"hideTablet"===o?r&&(i=i.concat(N(u,a,o,e[o]))):"hideMobile"===o?r&&(s=s.concat(N(u,a,o,e[o]))):(e[o]||"0"==e[o])&&(c=c.concat(N(u,a,o,e[o])))}}))})),n.length>0&&(o+=n.join("")),l.length>0&&(o+="@media (max-width: 1024px) {"+l.join("")+"}"),i.length>0&&(o+="@media (max-width: 767px) {"+i.join("")+"}"),c.length>0&&(o+=c.join("")),r)return o;P(o,a)},P=function(e,t){const a="rttpg-block-css-"+t,r=document.querySelector("iframe[name=editor-canvas]");if(r)setTimeout((function(){const t=r.contentDocument;if(t){const r=t.getElementsByTagName("head")[0];if(null===t.getElementById(a)&&r){const t=document.createElement("style");t.id=a,t.innerHTML=e,r.appendChild(t)}else t.getElementById(a).innerHTML=e;if(null===t.getElementById("rttpg-frontend-css")){const e=t.createElement("link");e.rel="stylesheet",e.type="text/css",rttpgParams.hasPro?e.href=rttpgParams.plugin_pro_url+"/assets/css/tpg-block.min.css":e.href=rttpgParams.plugin_url+"/assets/css/tpg-block.min.css",e.setAttribute("id","rttpg-frontend-css"),r.appendChild(e)}}}),1);else{const t=window.document;if(null===t.getElementById(a)){const r=document.createElement("style");r.id=a,r.innerHTML=e,t.getElementsByTagName("head")[0].appendChild(r)}else t.getElementById(a).innerHTML=e}};var O=window.wp.apiFetch,M=a.n(O);const{__:__}=wp.i18n,T={},I=rttpgParams.plugin_url+"/assets/images";T.grid_preview=(0,e.createElement)("img",{src:`${I}/gutenberg/preview/grid-preview.png`,alt:__("Grid Layout")}),T.slider_preview=(0,e.createElement)("img",{src:`${I}/gutenberg/preview/slider-preview.png`,alt:__("Slider Layout")}),T.grid_hover_preview=(0,e.createElement)("img",{src:`${I}/gutenberg/preview/grid-hover-preview.png`,alt:__("Slider Layout")}),T.list_preview=(0,e.createElement)("img",{src:`${I}/gutenberg/preview/list-preview.png`,alt:__("Slider Layout")}),T.grid_layout1=(0,e.createElement)("img",{src:`${I}/layouts/grid1.png`,alt:__("Grid Layout 1")}),T.grid_layout2=(0,e.createElement)("img",{src:`${I}/layouts/grid_layout8.png`,alt:__("Grid Layout 2")}),T.grid_layout3=(0,e.createElement)("img",{src:`${I}/layouts/grid12.png`,alt:__("Grid Layout 3")}),T.grid_layout4=(0,e.createElement)("img",{src:`${I}/layouts/grid2.png`,alt:__("Grid Layout 4")}),T.grid_layout5=(0,e.createElement)("img",{src:`${I}/layouts/grid_layout9.png`,alt:__("Grid Layout 5")}),T.grid_layout6=(0,e.createElement)("img",{src:`${I}/layouts/grid_layout9-2.png`,alt:__("Grid Layout 6")}),T.grid_layout7=(0,e.createElement)("img",{src:`${I}/layouts/grid_layout10.png`,alt:__("Grid Layout 7")}),T.grid_layout8=(0,e.createElement)("img",{src:`${I}/layouts/grid_layout10-2.png`,alt:__("Grid Layout 8")}),T.grid_layout9=(0,e.createElement)("img",{src:`${I}/layouts/gallery.png`,alt:__("Grid Layout 9")}),T.list_layout1=(0,e.createElement)("img",{src:`${I}/layouts/list1.png`,alt:__("List Layout 1")}),T.list_layout2=(0,e.createElement)("img",{src:`${I}/layouts/list3.png`,alt:__("List Layout 2")}),T.list_layout3=(0,e.createElement)("img",{src:`${I}/layouts/list3-2.png`,alt:__("List Layout 3")}),T.list_layout4=(0,e.createElement)("img",{src:`${I}/layouts/list4.png`,alt:__("List Layout 4")}),T.list_layout5=(0,e.createElement)("img",{src:`${I}/layouts/list4-2.png`,alt:__("List Layout 5")}),T.list_layout6=(0,e.createElement)("img",{src:`${I}/layouts/list_layout1.png`,alt:__("List Layout 6")}),T.list_layout7=(0,e.createElement)("img",{src:`${I}/layouts/list_layout2.png`,alt:__("List Layout 7")}),T.grid_hover1=(0,e.createElement)("img",{src:`${I}/layouts/grid3.png`,alt:__("Grid Hover Layout 1")}),T.grid_hover2=(0,e.createElement)("img",{src:`${I}/layouts/grid4.png`,alt:__("Grid Hover Layout 2")}),T.grid_hover3=(0,e.createElement)("img",{src:`${I}/layouts/grid5.png`,alt:__("Grid Hover Layout 3")}),T.grid_hover4=(0,e.createElement)("img",{src:`${I}/layouts/grid16.png`,alt:__("Grid Hover Layout 4")}),T.grid_hover5=(0,e.createElement)("img",{src:`${I}/layouts/grid16-2.png`,alt:__("Grid Hover Layout 5")}),T.grid_hover6=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover10.png`,alt:__("Grid Hover Layout 6")}),T.grid_hover7=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover10-2.png`,alt:__("Grid Hover Layout 7")}),T.grid_hover8=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover11.png`,alt:__("Grid Hover Layout 8")}),T.grid_hover9=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover11-2.png`,alt:__("Grid Hover Layout 9")}),T.grid_hover10=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover12.png`,alt:__("Grid Hover Layout 10")}),T.grid_hover11=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover12-2.png`,alt:__("Grid Hover Layout 11")}),T.grid_hover12=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover13.png`,alt:__("Grid Hover Layout 12")}),T.grid_hover13=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover9.png`,alt:__("Grid Hover Layout 13")}),T.grid_hover14=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover9-2.png`,alt:__("Grid Hover Layout 14")}),T.grid_hover15=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover15.png`,alt:__("Grid Hover Layout 15")}),T.grid_hover16=(0,e.createElement)("img",{src:`${I}/layouts/grid_hover16.png`,alt:__("Grid Hover Layout 16")}),T.slider_layout1=(0,e.createElement)("img",{src:`${I}/layouts/carousel1.png`,alt:__("Slider Layout 1")}),T.slider_layout2=(0,e.createElement)("img",{src:`${I}/layouts/carousel1.1.png`,alt:__("Slider Layout 2")}),T.slider_layout3=(0,e.createElement)("img",{src:`${I}/layouts/carousel1.3.png`,alt:__("Slider Layout 3")}),T.slider_layout4=(0,e.createElement)("img",{src:`${I}/layouts/carousel2.2.png`,alt:__("Slider Layout 4")}),T.slider_layout5=(0,e.createElement)("img",{src:`${I}/layouts/carousel2.png`,alt:__("Slider Layout 5")}),T.slider_layout6=(0,e.createElement)("img",{src:`${I}/layouts/carousel6.6.png`,alt:__("Slider Layout 6")}),T.slider_layout7=(0,e.createElement)("img",{src:`${I}/layouts/carousel7.7.png`,alt:__("Slider Layout 7")}),T.slider_layout8=(0,e.createElement)("img",{src:`${I}/layouts/carousel8.8.png`,alt:__("Slider Layout 8")}),T.slider_layout9=(0,e.createElement)("img",{src:`${I}/layouts/carousel9.9.png`,alt:__("Slider Layout 9")}),T.slider_layout10=(0,e.createElement)("img",{src:`${I}/layouts/carousel10.2.png`,alt:__("Slider Layout 10")}),T.slider_layout11=(0,e.createElement)("img",{src:`${I}/layouts/slider_layout11.png`,alt:__("Slider Layout 11")}),T.slider_layout12=(0,e.createElement)("img",{src:`${I}/layouts/slider_layout12.png`,alt:__("Slider Layout 12")}),T.slider_layout13=(0,e.createElement)("img",{src:`${I}/layouts/slider_layout13.png`,alt:__("Slider Layout 13")}),T.slider_layout14=(0,e.createElement)("img",{src:`${I}/layouts/slider_layout14.png`,alt:__("Slider Layout 14")});var L=T;const{__:A}=wp.i18n,F=[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}],B=[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"},{label:"Box Hover",value:"box_hover"}],j=[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"},{label:"Active",value:"active"}],H=[{label:A("Classic","guten-blocks"),value:"classic"},{label:A("Gradient","guten-blocks"),value:"gradient"}],$=[{label:A("Default","guten-blocks"),value:""},{label:A("Left Top","guten-blocks"),value:"left top"},{label:A("Left Center","guten-blocks"),value:"left center"},{label:A("Left Bottom","guten-blocks"),value:"left bottom"},{label:A("Right Top","guten-blocks"),value:"right top"},{label:A("Right Center","guten-blocks"),value:"right center"},{label:A("Right Bottom","guten-blocks"),value:"right bottom"},{label:A("Center Top","guten-blocks"),value:"center top"},{label:A("Center Center","guten-blocks"),value:"center center"},{label:A("Center Bottom","guten-blocks"),value:"center bottom"}],R=[{label:A("Default","guten-blocks"),value:""},{label:A("Auto","guten-blocks"),value:"auto"},{label:A("Cover","guten-blocks"),value:"cover"},{label:A("Contain","guten-blocks"),value:"contain"}],V=[{label:A("Default","guten-blocks"),value:""},{label:A("No Repeat","guten-blocks"),value:"no-repeat"},{label:A("Repeat","guten-blocks"),value:"repeat"},{label:A("Repeat X","guten-blocks"),value:"repeat-x"},{label:A("Repeat Y","guten-blocks"),value:"repeat-y"}],z=[{label:A("Default","guten-blocks"),value:""},{label:A("Scroll","guten-blocks"),value:"scroll"},{label:A("Fixed","guten-blocks"),value:"fixed"}],q=[{label:A("None","guten-blocks"),value:"none"},{label:A("Lowercase","guten-blocks"),value:"lowercase"},{label:A("Capitalize","guten-blocks"),value:"capitalize"},{label:A("Uppercase","guten-blocks"),value:"uppercase"}],Y=[{label:A("Default","guten-blocks"),value:"default"},{label:A("Light","guten-blocks"),value:"300"},{label:A("Normal","guten-blocks"),value:"400"},{label:A("Medium","guten-blocks"),value:"500"},{label:A("Semi Bold","guten-blocks"),value:"600"},{label:A("Bold","guten-blocks"),value:"700"},{label:A("Extra Bold","guten-blocks"),value:"800"},{label:A("Heavy Bold","guten-blocks"),value:"900"}],G=[{label:A("H1","guten-blocks"),value:"h1"},{label:A("H2","guten-blocks"),value:"h2"},{label:A("H3","guten-blocks"),value:"h3"},{label:A("H4","guten-blocks"),value:"h4"},{label:A("H5","guten-blocks"),value:"h5"},{label:A("H6","guten-blocks"),value:"h6"}],U=(A("None"),A("Solid"),A("Dashed"),A("Dotted"),A("Double"),A("Groove"),A("Inset"),A("Outset"),A("Ridge"),A("Select Effect"),A("Bounce left to right"),A("Bounce right to left"),A("Bounce top to bottom"),A("Bounce bottom to top"),A("Rectangle out"),A("Rectangle in"),A("Shutter in horizontal"),A("Shutter out horizontal"),A("Shutter in vertical"),A("Shutter out vertical"),A("Select Direction"),A("Top to bottom"),A("Bottom to top"),A("Right to left"),A("Left to right"),A("Normal"),A("Top to bottom"),A("Bottom to top"),A("Right to left"),A("Left to right"),A("Zoom in"),A("Text Button"),A("Fill Button"),A("OutLine Button"),A("Icon Button"),A("Fill"),A("Fill Button With Outline"),A("OutLine Button"),A("Icon Button"),A("Position Aware"),A("S"),A("M"),A("L"),A("XL"),A("Default"),A("Bounce left to right"),A("Bounce right to left"),A("Bounce top to bottom"),A("Bounce bottom to top"),A("Rectangle out"),A("Rectangle in"),A("Shutter in horizontal"),A("Shutter out horizontal"),A("Shutter in vertical"),A("Shutter out vertical"),A("Slide down top left"),A("Slide down top right"),A("Slide up bottom left"),A("Slide up bottom right"),A("Swipe left to right"),A("Swipe right to left"),A("Swipe top to bottom"),A("Swipe bottom to top"),A("Default"),A("Spin"),A("Shake Y"),A("Bounce In"),A("Heart Beat"),A("Right to left"),A("Left to Right"),A("Top to bottom"),A("Bottom to top"),[{value:"grid-layout1",icon:L.grid_layout1,label:A("Layout 1")},{value:"grid-layout3",icon:L.grid_layout2,label:A("Layout 2")},{value:"grid-layout4",icon:L.grid_layout3,label:A("Layout 3")},{value:"grid-layout2",icon:L.grid_layout4,label:A("Layout 4"),isPro:1},{value:"grid-layout5",icon:L.grid_layout5,label:A("Layout 5"),isPro:1},{value:"grid-layout5-2",icon:L.grid_layout6,label:A("Layout 6"),isPro:1},{value:"grid-layout6",icon:L.grid_layout7,label:A("Layout 7"),isPro:1},{value:"grid-layout6-2",icon:L.grid_layout8,label:A("Layout 8"),isPro:1},{value:"grid-layout7",icon:L.grid_layout9,label:A("Layout 9"),isPro:1}]),W=[{value:"list-layout1",icon:L.list_layout1,label:A("Layout 1")},{value:"list-layout2",icon:L.list_layout2,label:A("Layout 2")},{value:"list-layout2-2",icon:L.list_layout3,label:A("Layout 3")},{value:"list-layout3",icon:L.list_layout4,label:A("Layout 4"),isPro:1},{value:"list-layout3-2",icon:L.list_layout5,label:A("Layout 5"),isPro:1},{value:"list-layout4",icon:L.list_layout6,label:A("Layout 6"),isPro:1},{value:"list-layout5",icon:L.list_layout7,label:A("Layout 7"),isPro:1}],J=[{value:"grid_hover-layout1",icon:L.grid_hover1,label:A("Layout 1")},{value:"grid_hover-layout2",icon:L.grid_hover2,label:A("Layout 2")},{value:"grid_hover-layout3",icon:L.grid_hover3,label:A("Layout 3")},{value:"grid_hover-layout4",icon:L.grid_hover4,label:A("Layout 4"),isPro:1},{value:"grid_hover-layout4-2",icon:L.grid_hover5,label:A("Layout 5"),isPro:1},{value:"grid_hover-layout5",icon:L.grid_hover6,label:A("Layout 6"),isPro:1},{value:"grid_hover-layout5-2",icon:L.grid_hover7,label:A("Layout 7"),isPro:1},{value:"grid_hover-layout6",icon:L.grid_hover8,label:A("Layout 8"),isPro:1},{value:"grid_hover-layout6-2",icon:L.grid_hover9,label:A("Layout 9"),isPro:1},{value:"grid_hover-layout7",icon:L.grid_hover10,label:A("Layout 10"),isPro:1},{value:"grid_hover-layout7-2",icon:L.grid_hover11,label:A("Layout 11"),isPro:1},{value:"grid_hover-layout8",icon:L.grid_hover12,label:A("Layout 12"),isPro:1},{value:"grid_hover-layout9",icon:L.grid_hover13,label:A("Layout 13"),isPro:1},{value:"grid_hover-layout9-2",icon:L.grid_hover14,label:A("Layout 14"),isPro:1},{value:"grid_hover-layout10",icon:L.grid_hover15,label:A("Layout 15"),isPro:1},{value:"grid_hover-layout11",icon:L.grid_hover16,label:A("Layout 16"),isPro:1}],Q=[{value:"slider-layout1",icon:L.slider_layout1,label:A("Layout 1")},{value:"slider-layout2",icon:L.slider_layout2,label:A("Layout 2")},{value:"slider-layout3",icon:L.slider_layout3,label:A("Layout 3")},{value:"slider-layout4",icon:L.slider_layout4,label:A("Layout 4")},{value:"slider-layout5",icon:L.slider_layout5,label:A("Layout 5")},{value:"slider-layout6",icon:L.slider_layout6,label:A("Layout 6")},{value:"slider-layout7",icon:L.slider_layout7,label:A("Layout 7")},{value:"slider-layout8",icon:L.slider_layout8,label:A("Layout 8")},{value:"slider-layout9",icon:L.slider_layout9,label:A("Layout 9")},{value:"slider-layout10",icon:L.slider_layout10,label:A("Layout 10")},{value:"slider-layout11",icon:L.slider_layout11,label:A("Layout 11")},{value:"slider-layout12",icon:L.slider_layout12,label:A("Layout 12")},{value:"slider-layout13",icon:L.slider_layout13,label:A("Layout 13")}],K=[{value:0,label:A("Default","the-post-grid")},{value:1,label:A("1 Col","the-post-grid")},{value:2,label:A("2 Col","the-post-grid")},{value:3,label:A("3 Col","the-post-grid")},{value:4,label:A("4 Col","the-post-grid")},{value:5,label:A("5 Col","the-post-grid")},{value:6,label:A("6 Col","the-post-grid")}],Z=[{value:"default",label:A("Default","the-post-grid")},{value:"style1",label:A("Style 1","the-post-grid")},{value:"style2",label:A("Style 2","the-post-grid")},{value:"style3",label:A("Style 3","the-post-grid")}],X=[{value:"page_title",label:A("Page Title","the-post-grid")},{value:"custom_title",label:A("Custom Title","the-post-grid")}],ee=[{value:"default",label:A("Default","the-post-grid")},{value:"one-line",label:A("Show in 1 line","the-post-grid")},{value:"two-line",label:A("Show in 2 lines","the-post-grid")},{value:"three-line",label:A("Show in 3 lines","the-post-grid")},{value:"custom",label:A("Custom","the-post-grid")}],te=[{value:"default",label:A("Default","the-post-grid")}];rttpgParams.hasPro&&(te.push({value:"above_image",label:A("Above Image","the-post-grid")}),te.push({value:"below_image",label:A("Below Image","the-post-grid")}));const ae=te,re=[{value:"date",label:A("Date","the-post-grid")},{value:"ID",label:A("Order by post ID","the-post-grid")},{value:"author",label:A("Author","the-post-grid")},{value:"title",label:A("Title","the-post-grid")},{value:"modified",label:A("Last modified date","the-post-grid")},{value:"parent",label:A("Post parent ID","the-post-grid")},{value:"comment_count",label:A("Number of comments","the-post-grid")},{value:"menu_order",label:A("Menu order","the-post-grid")}];rttpgParams.hasPro&&re.push({value:"rand",label:A("Random order","the-post-grid")});const oe=re,ne=[{value:"pagination",label:A("Default Pagination","the-post-grid")}];rttpgParams.hasPro&&(ne.push({value:"pagination_ajax",label:A("Ajax Pagination ( Only for Grid )","the-post-grid")}),ne.push({value:"load_more",label:A("Load More - On Click","the-post-grid")}),ne.push({value:"load_on_scroll",label:A("Load On Scroll","the-post-grid")}));const le=ne,ie=[{value:"default",label:A("Link to details page","the-post-grid")}];rttpgParams.hasPro&&(ie.push({value:"popup",label:A("Single Popup","the-post-grid")}),ie.push({value:"multi_popup",label:A("Multi Popup","the-post-grid")}));const se=ie,ce=[{value:"default",label:A("Default","the-post-grid")}];rttpgParams.hasPro&&(ce.push({value:"above_title",label:A("Above Title","the-post-grid")}),ce.push({value:"below_title",label:A("Below Title","the-post-grid")}),ce.push({value:"above_excerpt",label:A("Above excerpt","the-post-grid")}),ce.push({value:"below_excerpt",label:A("Below excerpt","the-post-grid")}));const ue=ce,fe=[{value:"tpg-even",label:A("Grid","the-post-grid")},{value:"tpg-full-height",label:A("Grid Equal Height","the-post-grid")}];rttpgParams.hasPro&&fe.push({value:"masonry",label:A("Masonry","the-post-grid")});const de=fe,pe=[{value:"character",label:A("Character","the-post-grid")},{value:"word",label:A("Word","the-post-grid")},{value:"full",label:A("Full Content","the-post-grid")}],me=[{value:"DESC",label:A("DESC","the-post-grid")},{value:"ASC",label:A("ASC","the-post-grid")}],ge=[];let he=rttpgParams.post_type;for(let e in he)ge.push({value:e,label:A(he[e],"the-post-grid")});const be=ge,ve=[{value:"",label:A("Choose Author","the-post-grid")}];let _e=rttpgParams.get_users;for(let e in _e)ve.push({value:e,label:A(_e[e],"the-post-grid")});const ye=ve,we=[{value:"OR",label:A("OR","the-post-grid")},{value:"AND",label:A("AND","the-post-grid")}],Ee=e=>{let t=[];for(let a in e)t.push({value:a,label:A(e[a],"the-post-grid")});return t},Ce=[{value:"always",label:A("Show Always","the-post-grid")},{value:"fadein-on-hover",label:A("FadeIn on hover","the-post-grid")},{value:"fadeout-on-hover",label:A("FadeOut on hover","the-post-grid")},{value:"slidein-on-hover",label:A("SlideIn on hover","the-post-grid")},{value:"slideout-on-hover",label:A("SlideOut on hover","the-post-grid")},{value:"zoomin-on-hover",label:A("ZoomIn on hover","the-post-grid")},{value:"zoomout-on-hover",label:A("ZoomOut on hover","the-post-grid")},{value:"zoominall-on-hover",label:A("ZoomIn Content on hover","the-post-grid")},{value:"zoomoutall-on-hover",label:A("ZoomOut Content on hover","the-post-grid")}],xe=[{value:"always",label:A("Show Always","the-post-grid")},{value:"fadein-on-hover",label:A("FadeIn on hover","the-post-grid")},{value:"fadeout-on-hover",label:A("FadeOut on hover","the-post-grid")},{value:"slidein-on-hover",label:A("SlideIn on hover","the-post-grid")},{value:"slideout-on-hover",label:A("SlideOut on hover","the-post-grid")},{value:"zoomin-on-hover",label:A("ZoomIn on hover","the-post-grid")},{value:"zoomout-on-hover",label:A("ZoomOut on hover","the-post-grid")},{value:"zoominall-on-hover",label:A("ZoomIn Content on hover","the-post-grid")},{value:"zoomoutall-on-hover",label:A("ZoomOut Content on hover","the-post-grid")},{value:"flipin-on-hover",label:A("FlipIn on hover","the-post-grid")},{value:"flipout-on-hover",label:A("FlipOut on hover","the-post-grid")}],ke=[{value:"author",label:"Author"},{value:"date",label:"Date"},{value:"category",label:"Category"},{value:"tags",label:"Tags"},{value:"comment_count",label:"Comment Count"},{value:"post_count",label:"Post View Count"}],Ne=rttpgParams.hasPro?"rttpg-has-pro":"rttpg-is-pro",Se=[{value:"default",label:A("Default","the-post-grid")},{value:"img_zoom_in",label:A("Zoom In","the-post-grid")},{value:"img_zoom_out",label:A("Zoom Out","the-post-grid")},{value:"img_no_effect",label:A("None","the-post-grid")}];rttpgParams.hasPro&&(Se.splice(3),Se.push({value:"slide_to_right",label:A("Slide to Right","the-post-grid")}),Se.push({value:"slide_to_left",label:A("Slide to Left","the-post-grid")}),Se.push({value:"img_no_effect",label:A("None","the-post-grid")}));const De=Se,Pe=[{name:"Color 1",color:"#72aee6"},{name:"Color 2",color:"#0074FF"},{name:"Color 3",color:"#15D38E"},{name:"Color 4",color:"#00D4FF"},{name:"Color 5",color:"#FF2D00"},{name:"Color 6",color:"#AE2D00"},{name:"Color 7",color:"#000000"},{name:"Color 8",color:"#AAAAAA"},{name:"Color 9",color:"#FFFFFF"}];var Oe=window.wp.components;const{__:Me}=wp.i18n;var Te=function(){return"rttpg-has-pro"===Ne?"":(0,e.createElement)(Oe.PanelBody,{className:"rttpg-go-to-premium-panel",title:Me("Go Premium for More Features","the-post-grid"),initialOpen:!0},(0,e.createElement)("div",{className:"rttpg-get-pro-message-wrapper"},(0,e.createElement)("h4",null,Me("Unlock more possibilities","the-post-grid")),(0,e.createElement)("div",{className:"rttpg-pro-message"},(0,e.createElement)("span",{className:"pro-feature"}," Get the ",(0,e.createElement)("a",{href:"//www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/",target:"_blank"},"Pro version")," for more stunning layouts and customization options.")),(0,e.createElement)("a",{className:"rttpg-button-go-pro",href:"//www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/",target:"_blank"},"Get Pro")))},Ie=a(196),Le=a.n(Ie);const{__:Ae}=wp.i18n;var Fe=function(t){const{label:a,value:r,onChange:o,className:n,changeQuery:l}=t,i=(e,t)=>{const a=JSON.parse(JSON.stringify(r));a[e]=t,o(a)};return(0,e.createElement)("div",{className:`rttpg-column-group ${n}`},a&&(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},a)),(0,e.createElement)("div",{className:"rttpg-column-group-inner"},(0,e.createElement)(Oe.SelectControl,{label:Ae("Desktop","the-post-grid"),className:"rttpg-control-field",value:r.lg||"",options:K,onChange:e=>{i("lg",e),l()}}),(0,e.createElement)(Oe.SelectControl,{label:Ae("Tablet","the-post-grid"),className:"rttpg-control-field",value:r.md||"",options:K,onChange:e=>i("md",e)}),(0,e.createElement)(Oe.SelectControl,{label:Ae("Mobile","the-post-grid"),className:"rttpg-control-field",value:r.sm||"",options:K,onChange:e=>i("sm",e)})))};function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Be.apply(this,arguments)}const{__:je}=wp.i18n;var He=t=>{const[a,r]=(0,Ie.useState)(!1),[o,n]=(0,Ie.useState)((()=>t.device||"lg")),l=(0,Ie.useRef)(),i=(0,Ie.useCallback)((()=>r(!1)),[]);(0,Ie.useEffect)((()=>{o&&(window.rttpgDevice=o)}),[]);const s=e=>{window.rttpgDevice=e,n(e),t.onChange(e),r((()=>!a))};return c=l,u=i,(0,Ie.useEffect)((()=>{let e=!1,t=!1;const a=a=>{!e&&t&&c.current&&!c.current.contains(a.target)&&u(a)},r=a=>{t=c.current,e=c.current&&c.current.contains(a.target)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),document.addEventListener("click",a),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r),document.removeEventListener("click",a)}}),[c,u]),(0,e.createElement)("div",{ref:l,className:`rttpg-device-switchers active-${o}${a?" rttpg-device-switchers-open":""} `,onClick:()=>r((()=>!a))},(0,e.createElement)("div",{className:"rttpg-device-switchers-wrap"},(0,e.createElement)("a",{className:"rttpg-device-switcher rttpg-device-switcher-desktop"+("lg"===o?" active":""),onClick:()=>s("lg"),"data-tooltip":je("Desktop")},(0,e.createElement)("i",{className:"fas fa-desktop"})),(0,e.createElement)("a",{className:"rttpg-device-switcher rttpg-device-switcher-laptop"+("md"===o?" active":""),onClick:()=>s("md"),"data-tooltip":je("Tablet")},(0,e.createElement)("i",{className:"fas fa-tablet-alt"})),(0,e.createElement)("a",{className:"rttpg-device-switcher rttpg-device-switcher-tablet"+("sm"===o?" active":""),onClick:()=>s("sm"),"data-tooltip":je("Mobile")},(0,e.createElement)("i",{className:"fas fa-mobile-alt"}))));var c,u};const{__:$e}=wp.i18n,{useState:Re}=wp.element,{RangeControl:Ve,Button:ze}=wp.components;var qe=function(t){const{label:a,value:r,onChange:o,responsive:n,min:l,max:i,units:s,step:c,defultValue:u={}}=t,[f,d]=Re((()=>window.rttpgDevice||"lg")),[p,m]=Re("px"),g={min:l,max:i,step:c},h=u;return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-range-wrap"},(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("div",{className:"rt-left-part"},a&&(0,e.createElement)("span",{className:"rttpg-label"},a),n&&(0,e.createElement)(He,{device:f,onChange:e=>{d(e);const t=JSON.parse(JSON.stringify(r));t[e]||(t[e]="",!1!==s&&(t.unit=t.unit||p)),o(t)}})),s&&(0,e.createElement)("div",{className:"rt-right-part"},(0,e.createElement)("div",{className:"rttpg-units-choices"},(s&&Array.isArray(s)?s:["px","em","%"]).map((t=>(0,e.createElement)("label",{className:(null==r?void 0:r.unit)!==t&&(null!=r&&r.unit||t!==p)?"":"active",onClick:()=>(e=>{const t=JSON.parse(JSON.stringify(r));!1!==s&&(t.unit=e),o(t),m(e)})(t)},t)))))),(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)(Ve,Be({className:"rttpg-control-field",value:r[f],onChange:e=>{(e=>{const t=JSON.parse(JSON.stringify(r));t[f]=e,!1!==s&&(t.unit=t.unit||p),o(t)})(e)}},g)),(r[f]||0!==r[f])&&(0,e.createElement)(ze,{isSmall:!0,className:"rttpg-undo-btn",icon:"image-rotate",onClick:()=>o(h)})))};const{__:Ye}=wp.i18n,{useState:Ge}=wp.element,{Tooltip:Ue}=wp.components;var We=t=>{const{value:a,responsive:r,onChange:o,label:n,content:l,options:i}=t,[s,c]=Ge((()=>window.rttpgDevice||"lg")),u=()=>a?r?a[s]:a:"",[f,d]=Ge({current:u()}),p=e=>{if(""==e)return;const t=r?Object.assign({},a,{[s]:e}):e;o(t),d({current:t})},m=i&&Array.isArray(i)?i:["left","center","right","justify"];return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-alignment-wrap"},(n||r)&&(0,e.createElement)("div",{className:"rttpg-cf-head"},n&&(0,e.createElement)("span",{className:"rttpg-label"},n),r&&(0,e.createElement)(He,{device:s,onChange:e=>{c(e);const t=JSON.parse(JSON.stringify(a));t[e]||(t[e]=""),o(t)}})),(0,e.createElement)("div",{className:"rttpg-cf-body rttpg-btn-group"},m.map(((t,a)=>l?(0,e.createElement)("button",{className:(u()==t.value?"active":"")+" rttpg-button",key:a,onClick:()=>p(u()==t.value?"":t.value)},(0,e.createElement)(Ue,{text:Ye(t.label,"the-post-grid")},(0,e.createElement)("span",null,Ye(t.label,"the-post-grid")))):(0,e.createElement)("button",{className:(u()==t?"active":"")+" rttpg-button",key:a,onClick:()=>p(u()==t?"":t)},("left"==t||"flex-start"===t)&&(0,e.createElement)(Ue,{text:Ye("Left")},(0,e.createElement)("i",{className:"fas fa-align-left"})),"center"==t&&(0,e.createElement)(Ue,{text:Ye("Middle")},(0,e.createElement)("i",{className:"fas fa-align-center"})),("right"==t||"flex-end"===t)&&(0,e.createElement)(Ue,{text:Ye("Right")},(0,e.createElement)("i",{class:"fas fa-align-right"})),"justify"==t&&(0,e.createElement)(Ue,{text:Ye("Right")},(0,e.createElement)("i",{class:"fas fa-align-justify"})))))))},Je=window.ReactDOM,Qe=a.n(Je),Ke=a(697),Ze=a.n(Ke),Xe=function(){return(Xe=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},et={success:function(e){return Le().createElement("svg",Xe({viewBox:"0 0 426.667 426.667",width:18,height:18},e),Le().createElement("path",{d:"M213.333 0C95.518 0 0 95.514 0 213.333s95.518 213.333 213.333 213.333c117.828 0 213.333-95.514 213.333-213.333S331.157 0 213.333 0zm-39.134 322.918l-93.935-93.931 31.309-31.309 62.626 62.622 140.894-140.898 31.309 31.309-172.203 172.207z",fill:"#6ac259"}))},warn:function(e){return Le().createElement("svg",Xe({viewBox:"0 0 310.285 310.285",width:18,height:18},e),Le().createElement("path",{d:"M264.845 45.441C235.542 16.139 196.583 0 155.142 0 113.702 0 74.743 16.139 45.44 45.441 16.138 74.743 0 113.703 0 155.144c0 41.439 16.138 80.399 45.44 109.701 29.303 29.303 68.262 45.44 109.702 45.44s80.399-16.138 109.702-45.44c29.303-29.302 45.44-68.262 45.44-109.701.001-41.441-16.137-80.401-45.439-109.703zm-132.673 3.895a12.587 12.587 0 0 1 9.119-3.873h28.04c3.482 0 6.72 1.403 9.114 3.888 2.395 2.485 3.643 5.804 3.514 9.284l-4.634 104.895c-.263 7.102-6.26 12.933-13.368 12.933H146.33c-7.112 0-13.099-5.839-13.345-12.945L128.64 58.594c-.121-3.48 1.133-6.773 3.532-9.258zm23.306 219.444c-16.266 0-28.532-12.844-28.532-29.876 0-17.223 12.122-30.211 28.196-30.211 16.602 0 28.196 12.423 28.196 30.211.001 17.591-11.456 29.876-27.86 29.876z",fill:"#FFDA44"}))},loading:function(e){return Le().createElement("div",Xe({className:"ct-icon-loading"},e))},info:function(e){return Le().createElement("svg",Xe({viewBox:"0 0 23.625 23.625",width:18,height:18},e),Le().createElement("path",{d:"M11.812 0C5.289 0 0 5.289 0 11.812s5.289 11.813 11.812 11.813 11.813-5.29 11.813-11.813S18.335 0 11.812 0zm2.459 18.307c-.608.24-1.092.422-1.455.548a3.838 3.838 0 0 1-1.262.189c-.736 0-1.309-.18-1.717-.539s-.611-.814-.611-1.367c0-.215.015-.435.045-.659a8.23 8.23 0 0 1 .147-.759l.761-2.688c.067-.258.125-.503.171-.731.046-.23.068-.441.068-.633 0-.342-.071-.582-.212-.717-.143-.135-.412-.201-.813-.201-.196 0-.398.029-.605.09-.205.063-.383.12-.529.176l.201-.828c.498-.203.975-.377 1.43-.521a4.225 4.225 0 0 1 1.29-.218c.731 0 1.295.178 1.692.53.395.353.594.812.594 1.376 0 .117-.014.323-.041.617a4.129 4.129 0 0 1-.152.811l-.757 2.68a7.582 7.582 0 0 0-.167.736 3.892 3.892 0 0 0-.073.626c0 .356.079.599.239.728.158.129.435.194.827.194.185 0 .392-.033.626-.097.232-.064.4-.121.506-.17l-.203.827zm-.134-10.878a1.807 1.807 0 0 1-1.275.492c-.496 0-.924-.164-1.28-.492a1.57 1.57 0 0 1-.533-1.193c0-.465.18-.865.533-1.196a1.812 1.812 0 0 1 1.28-.497c.497 0 .923.165 1.275.497.353.331.53.731.53 1.196 0 .467-.177.865-.53 1.193z",fill:"#006DF0"}))},error:function(e){return Le().createElement("svg",Xe({viewBox:"0 0 51.976 51.976",width:18,height:18},e),Le().createElement("path",{d:"M44.373 7.603c-10.137-10.137-26.632-10.138-36.77 0-10.138 10.138-10.137 26.632 0 36.77s26.632 10.138 36.77 0c10.137-10.138 10.137-26.633 0-36.77zm-8.132 28.638a2 2 0 0 1-2.828 0l-7.425-7.425-7.778 7.778a2 2 0 1 1-2.828-2.828l7.778-7.778-7.425-7.425a2 2 0 1 1 2.828-2.828l7.425 7.425 7.071-7.071a2 2 0 1 1 2.828 2.828l-7.071 7.071 7.425 7.425a2 2 0 0 1 0 2.828z",fill:"#D80027"}))}},tt={success:"#6EC05F",info:"#1271EC",warn:"#FED953",error:"#D60A2E",loading:"#0088ff"},at=function(e){var t,a,r,o,n="margin"+((e.position||"top-center").includes("bottom")?"Bottom":"Top"),l=["ct-toast",e.onClick?" ct-cursor-pointer":"","ct-toast-"+e.type].join(" "),i=((null===(a=e.bar)||void 0===a?void 0:a.size)||"3px")+" "+((null===(r=e.bar)||void 0===r?void 0:r.style)||"solid")+" "+((null===(o=e.bar)||void 0===o?void 0:o.color)||tt[e.type]),s=et[e.type],c=(0,Ie.useState)(((t={opacity:0})[n]=-15,t)),u=c[0],f=c[1],d=Xe({paddingLeft:e.heading?25:void 0,minHeight:e.heading?50:void 0,borderLeft:i},u),p=function(){var t;f(((t={opacity:0})[n]="-15px",t)),setTimeout((function(){e.onHide(e.id,e.position)}),300)};(0,Ie.useEffect)((function(){var t,a=setTimeout((function(){var e;f(((e={opacity:1})[n]="15px",e))}),50);return 0!==e.hideAfter&&(t=setTimeout((function(){p()}),1e3*e.hideAfter)),function(){clearTimeout(a),t&&clearTimeout(t)}}),[]),(0,Ie.useEffect)((function(){e.show||p()}),[e.show]);var m={tabIndex:0,onClick:e.onClick,onKeyPress:function(t){13===t.keyCode&&e.onClick(t)}};return Le().createElement("div",Xe({className:l,role:e.role?e.role:"status",style:d},e.onClick?m:{}),e.renderIcon?e.renderIcon():Le().createElement(s,null),Le().createElement("div",{className:e.heading?"ct-text-group-heading":"ct-text-group"},e.heading&&Le().createElement("h4",{className:"ct-heading"},e.heading),Le().createElement("div",{className:"ct-text"},e.text)))};at.propTypes={type:Ke.string.isRequired,text:(0,Ke.oneOfType)([Ke.string,Ke.node]).isRequired,show:Ke.bool,onHide:Ke.func,id:(0,Ke.oneOfType)([Ke.string,Ke.number]),hideAfter:Ke.number,heading:Ke.string,position:Ke.string,renderIcon:Ke.func,bar:(0,Ke.shape)({}),onClick:Ke.func,role:Ke.string},at.defaultProps={id:void 0,show:!0,onHide:void 0,hideAfter:3,heading:void 0,position:"top-center",renderIcon:void 0,bar:{},onClick:void 0,role:"status"};var rt=function(e){return e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},ot={topLeft:[],topCenter:[],topRight:[],bottomLeft:[],bottomCenter:[],bottomRight:[]},nt=function(e){var t=e.toast,a=e.hiddenID,r=(0,Ie.useState)(ot),o=r[0],n=r[1];(0,Ie.useEffect)((function(){t&&n((function(e){var a,r=rt(t.position||"top-center");return Xe(Xe({},e),((a={})[r]=function(){for(var e=0,t=0,a=arguments.length;t<a;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<a;t++)for(var n=arguments[t],l=0,i=n.length;l<i;l++,o++)r[o]=n[l];return r}(e[r],[t]),a))}))}),[t]);var l=function(e,t){n((function(a){var r,o=rt(t||"top-center");return Xe(Xe({},a),((r={})[o]=a[o].filter((function(t){return t.id!==e})),r))}))},i=["Left","Center","Right"];return Le().createElement(Le().Fragment,null,["top","bottom"].map((function(e){return Le().createElement("div",{key:"row_"+e,className:"ct-row"},i.map((function(t){var r=""+e+t,n=["ct-group","bottom"===e?"ct-flex-bottom":""].join(" ");return Le().createElement("div",{key:r,className:n},o[r].map((function(e){return Le().createElement(at,Xe({key:r+"_"+e.id},e,{id:e.id,text:e.text,type:e.type,onClick:e.onClick,hideAfter:e.hideAfter,show:a!==e.id,onHide:l}))})))})))})))};nt.propTypes={toast:(0,Ke.shape)({}),hiddenID:Ke.number},nt.defaultProps={toast:void 0,hiddenID:void 0},function(e,t){void 0===t&&(t={});var a=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===a&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("#ct-container {\n\tposition: fixed;\n\twidth: 100%;\n\theight: 100vh;\n\ttop: 0px;\n\tleft: 0px;\n\tz-index: 2000;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tpointer-events: none;\n}\n\n.ct-row {\n\tdisplay: flex;\n\tjustify-content: space-between;\n}\n\n.ct-group {\n\tflex: 1;\n\tmargin: 10px 20px;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n}\n\n.ct-group:first-child {\n\talign-items: flex-start;\n}\n\n.ct-group:last-child {\n\talign-items: flex-end;\n}\n\n.ct-flex-bottom {\n\tjustify-content: flex-end;\n}\n\n.ct-toast {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tpadding: 12px 20px;\n\tbackground-color: #fff;\n\tbox-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n\tcolor: #000;\n\tborder-radius: 4px;\n\tmargin: 0px;\n\topacity: 1;\n\ttransition: 0.3s all ease-in-out;\n\tmin-height: 45px;\n\tpointer-events: all;\n}\n\n.ct-toast:focus {\n\toutline: none;\n}\n\n.ct-toast svg {\n\tmin-width: 18px;\n}\n\n.ct-cursor-pointer {\n\tcursor: pointer;\n}\n\n.ct-icon-loading {\n\tdisplay: inline-block;\n\twidth: 20px;\n\theight: 20px;\n}\n\n.ct-icon-loading:after {\n\tcontent: ' ';\n\tdisplay: block;\n\twidth: 14px;\n\theight: 14px;\n\tmargin: 1px;\n\tborder-radius: 50%;\n\tborder: 2px solid #0088ff;\n\tborder-color: #0088ff transparent #0088ff transparent;\n\tanimation: ct-icon-loading 1.2s linear infinite;\n}\n\n@keyframes ct-icon-loading {\n\t0% {\n\t\ttransform: rotate(0deg);\n\t}\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n}\n\n.ct-text-group {\n\tmargin-left: 15px;\n}\n\n.ct-text-group-heading {\n\tmargin-left: 25px;\n}\n\n.ct-heading {\n\tfont-size: 18px;\n\tmargin: 0px;\n\tmargin-bottom: 5px;\n}\n\n.ct-text {\n\tfont-size: 14px;\n}\n\n@media (max-width: 768px) {\n\t.ct-row {\n\t\tjustify-content: flex-start;\n\t\tflex-direction: column;\n\t\tmargin: 7px 0px;\n\t}\n\n\t.ct-group {\n\t\tflex: none;\n\t\tmargin: 0px;\n\t}\n\n\t.ct-toast {\n\t\tmargin: 8px 15px;\n\t\twidth: initial;\n\t}\n}\n");var lt=0,it=function(e,t){var a,r,o=document.getElementById((null===(a=t)||void 0===a?void 0:a.toastContainerID)||"ct-container");o||((o=document.createElement("div")).id="ct-container",document.body.appendChild(o)),lt+=1;var n=1e3*(void 0===(null===(r=t)||void 0===r?void 0:r.hideAfter)?3:t.hideAfter),l=Xe({id:lt,text:e},t);Qe().render(Le().createElement(nt,{toast:l}),o);var i=new Promise((function(e){setTimeout((function(){e()}),n)}));return i.hide=function(){Qe().render(Le().createElement(nt,{hiddenID:l.id}),o)},i};it.success=function(e,t){return it(e,Xe(Xe({},t),{type:"success"}))},it.warn=function(e,t){return it(e,Xe(Xe({},t),{type:"warn"}))},it.info=function(e,t){return it(e,Xe(Xe({},t),{type:"info"}))},it.error=function(e,t){return it(e,Xe(Xe({},t),{type:"error"}))},it.loading=function(e,t){return it(e,Xe(Xe({},t),{type:"loading"}))};var st=it;const{__:ct}=wp.i18n;var ut=function(t){const{label:a,value:r,options:o,columns:n=3,onChange:l}=t;return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-styles-wrap"},a&&(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},a)),(0,e.createElement)("div",{className:`rttpg-style-list rttpg-style-columns-${n}`},o.map(((t,a)=>(0,e.createElement)("div",{role:"button",tabindex:a,"aria-label":t.label?t.label:"",onClick:()=>{!rttpgParams.hasPro&&t.isPro?st.warn('Please install "The Post Grid Pro" for this layout!',{position:"top-right"}):l(t.value)},className:`${r==t.value?"rttpg-active":""} ${!rttpgParams.hasPro&&t.isPro?"is-pro":""}`},t.icon&&(0,e.createElement)("span",{className:"rttpg-layout rttpg-style-icon"},t.icon),t.label&&(0,e.createElement)("span",{className:"rttpg-label"},t.label),!rttpgParams.hasPro&&t.isPro&&(0,e.createElement)("span",{className:"pro-lable"},ct("Pro","the-post-grid")))))))};const{__:ft}=wp.i18n;var dt=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{prefix:n,grid_column:l,grid_layout_style:i,ignore_sticky_posts:s,full_wrapper_align:c,list_layout_alignment:u,slider_column:f,middle_border:d}=a;let p=n+"_layout",m=U;return"list"===n?m=W:"grid_hover"===n?m=J:"slider"===n&&(m=Q),(0,e.createElement)(Oe.PanelBody,{title:ft("Layout","the-post-grid"),initialOpen:!0},(0,e.createElement)(ut,{value:a[p],onChange:e=>t.changeLayout(e),options:m}),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},ft("Layout Options:","the-post-grid")),["grid-layout6","grid-layout6-2"].includes(a[p])&&(0,e.createElement)(Oe.SelectControl,{label:ft("Middle Border?","the-post-grid"),className:"rttpg-control-field label-inline",value:d,options:[{value:"yes",label:ft("Yes","the-post-grid")},{value:"no",label:ft("No","the-post-grid")}],onChange:e=>{r({middle_border:e})}}),"slider"!==n&&(0,e.createElement)(e.Fragment,null,!["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","list-layout2","list-layout2-2","list-layout3","list-layout3-2","list-layout4","grid_hover-layout5","grid_hover-layout5-2","grid_hover-layout6","grid_hover-layout6-2","grid_hover-layout7","grid_hover-layout7-2","grid_hover-layout8","grid_hover-layout9","grid_hover-layout9-2"].includes(a[p])&&(0,e.createElement)(qe,{label:ft("Grid Column","the-post-grid"),responsive:!0,value:l,min:1,max:6,step:1,units:!1,onChange:e=>{r({grid_column:e})}}),(0,e.createElement)("small",{className:"rttpg-help"},ft("NB. By default grid-colum comes from layout","the-post-grid"))),"slider"===n&&!["slider-layout10","slider-layout11"].includes(a[p])&&(0,e.createElement)(Fe,{label:ft("Choose Slider Column","the-post-grid"),className:"rttpg-control-field",value:f,onChange:e=>{r({slider_column:e})},changeQuery:o}),!["grid-layout2","grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","grid-layout7","grid-layout7-2"].includes(a[p])&&"grid"===n&&(0,e.createElement)(Oe.SelectControl,{label:ft("Layout Style","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:i,options:de,onChange:e=>{r({grid_layout_style:e})}}),"masonry"===i&&(0,e.createElement)("small",{className:"rttpg-help"},ft("NB. Masonry will work only the front-end","the-post-grid")),"rttpg-is-pro"===Ne&&(0,e.createElement)("p",{className:"rttpg-help"},ft("NB. Please upgrade to pro for masonry layout","the-post-grid")),"tpg-full-height"===i&&(0,e.createElement)("small",{className:"rttpg-help"},ft("NB. Then Equal height will appear if you use card border ","the-post-grid")),"list"===n&&["list-layout1","list-layout5"].includes(a[p])&&(0,e.createElement)(Oe.SelectControl,{label:ft("Vertical Alignment","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:u,options:[{value:"",label:ft("Default","the-post-grid")},{value:"flex-start",label:ft("Start","the-post-grid")},{value:"center",label:ft("Center","the-post-grid")},{value:"flex-end",label:ft("End","the-post-grid")}],onChange:e=>{r({list_layout_alignment:e})}}),!(["grid-layout7","slider-layout4"].includes(a[p])&&"list"===n)&&(0,e.createElement)(We,{label:ft("Text Align","the-post-grid"),value:c,responsive:!0,options:["left","center","right"],onChange:e=>r({full_wrapper_align:e})}))},pt=function(){function e(e){var t=this;this._insertTag=function(e){var a;a=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,a),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),mt=Math.abs,gt=String.fromCharCode,ht=Object.assign;function bt(e){return e.trim()}function vt(e,t,a){return e.replace(t,a)}function _t(e,t){return e.indexOf(t)}function yt(e,t){return 0|e.charCodeAt(t)}function wt(e,t,a){return e.slice(t,a)}function Et(e){return e.length}function Ct(e){return e.length}function xt(e,t){return t.push(e),e}var kt=1,Nt=1,St=0,Dt=0,Pt=0,Ot="";function Mt(e,t,a,r,o,n,l){return{value:e,root:t,parent:a,type:r,props:o,children:n,line:kt,column:Nt,length:l,return:""}}function Tt(e,t){return ht(Mt("",null,null,"",null,null,0),e,{length:-e.length},t)}function It(){return Pt=Dt>0?yt(Ot,--Dt):0,Nt--,10===Pt&&(Nt=1,kt--),Pt}function Lt(){return Pt=Dt<St?yt(Ot,Dt++):0,Nt++,10===Pt&&(Nt=1,kt++),Pt}function At(){return yt(Ot,Dt)}function Ft(){return Dt}function Bt(e,t){return wt(Ot,e,t)}function jt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ht(e){return kt=Nt=1,St=Et(Ot=e),Dt=0,[]}function $t(e){return Ot="",e}function Rt(e){return bt(Bt(Dt-1,qt(91===e?e+2:40===e?e+1:e)))}function Vt(e){for(;(Pt=At())&&Pt<33;)Lt();return jt(e)>2||jt(Pt)>3?"":" "}function zt(e,t){for(;--t&&Lt()&&!(Pt<48||Pt>102||Pt>57&&Pt<65||Pt>70&&Pt<97););return Bt(e,Ft()+(t<6&&32==At()&&32==Lt()))}function qt(e){for(;Lt();)switch(Pt){case e:return Dt;case 34:case 39:34!==e&&39!==e&&qt(Pt);break;case 40:41===e&&qt(e);break;case 92:Lt()}return Dt}function Yt(e,t){for(;Lt()&&e+Pt!==57&&(e+Pt!==84||47!==At()););return"/*"+Bt(t,Dt-1)+"*"+gt(47===e?e:Lt())}function Gt(e){for(;!jt(At());)Lt();return Bt(e,Dt)}var Ut="-ms-",Wt="-moz-",Jt="-webkit-",Qt="comm",Kt="rule",Zt="decl",Xt="@keyframes";function ea(e,t){for(var a="",r=Ct(e),o=0;o<r;o++)a+=t(e[o],o,e,t)||"";return a}function ta(e,t,a,r){switch(e.type){case"@import":case Zt:return e.return=e.return||e.value;case Qt:return"";case Xt:return e.return=e.value+"{"+ea(e.children,r)+"}";case Kt:e.value=e.props.join(",")}return Et(a=ea(e.children,r))?e.return=e.value+"{"+a+"}":""}function aa(e,t){switch(function(e,t){return(((t<<2^yt(e,0))<<2^yt(e,1))<<2^yt(e,2))<<2^yt(e,3)}(e,t)){case 5103:return Jt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Jt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Jt+e+Wt+e+Ut+e+e;case 6828:case 4268:return Jt+e+Ut+e+e;case 6165:return Jt+e+Ut+"flex-"+e+e;case 5187:return Jt+e+vt(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Jt+e+Ut+"flex-item-"+vt(e,/flex-|-self/,"")+e;case 4675:return Jt+e+Ut+"flex-line-pack"+vt(e,/align-content|flex-|-self/,"")+e;case 5548:return Jt+e+Ut+vt(e,"shrink","negative")+e;case 5292:return Jt+e+Ut+vt(e,"basis","preferred-size")+e;case 6060:return Jt+"box-"+vt(e,"-grow","")+Jt+e+Ut+vt(e,"grow","positive")+e;case 4554:return Jt+vt(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return vt(vt(vt(e,/(zoom-|grab)/,Jt+"$1"),/(image-set)/,Jt+"$1"),e,"")+e;case 5495:case 3959:return vt(e,/(image-set\([^]*)/,Jt+"$1$`$1");case 4968:return vt(vt(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Jt+e+e;case 4095:case 3583:case 4068:case 2532:return vt(e,/(.+)-inline(.+)/,Jt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Et(e)-1-t>6)switch(yt(e,t+1)){case 109:if(45!==yt(e,t+4))break;case 102:return vt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+Wt+(108==yt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_t(e,"stretch")?aa(vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==yt(e,t+1))break;case 6444:switch(yt(e,Et(e)-3-(~_t(e,"!important")&&10))){case 107:return vt(e,":",":"+Jt)+e;case 101:return vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Jt+(45===yt(e,14)?"inline-":"")+"box$3$1"+Jt+"$2$3$1"+Ut+"$2box$3")+e}break;case 5936:switch(yt(e,t+11)){case 114:return Jt+e+Ut+vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jt+e+Ut+vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jt+e+Ut+vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Jt+e+Ut+e+e}return e}function ra(e){return $t(oa("",null,null,null,[""],e=Ht(e),0,[0],e))}function oa(e,t,a,r,o,n,l,i,s){for(var c=0,u=0,f=l,d=0,p=0,m=0,g=1,h=1,b=1,v=0,_="",y=o,w=n,E=r,C=_;h;)switch(m=v,v=Lt()){case 40:if(108!=m&&58==C.charCodeAt(f-1)){-1!=_t(C+=vt(Rt(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=Rt(v);break;case 9:case 10:case 13:case 32:C+=Vt(m);break;case 92:C+=zt(Ft()-1,7);continue;case 47:switch(At()){case 42:case 47:xt(la(Yt(Lt(),Ft()),t,a),s);break;default:C+="/"}break;case 123*g:i[c++]=Et(C)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+u:p>0&&Et(C)-f&&xt(p>32?ia(C+";",r,a,f-1):ia(vt(C," ","")+";",r,a,f-2),s);break;case 59:C+=";";default:if(xt(E=na(C,t,a,c,u,o,i,_,y=[],w=[],f),n),123===v)if(0===u)oa(C,t,E,E,y,n,f,i,w);else switch(d){case 100:case 109:case 115:oa(e,E,E,r&&xt(na(e,E,E,0,0,o,i,_,o,y=[],f),w),o,w,f,i,r?y:w);break;default:oa(C,E,E,E,[""],w,0,i,w)}}c=u=p=0,g=b=1,_=C="",f=l;break;case 58:f=1+Et(C),p=m;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==It())continue;switch(C+=gt(v),v*g){case 38:b=u>0?1:(C+="\f",-1);break;case 44:i[c++]=(Et(C)-1)*b,b=1;break;case 64:45===At()&&(C+=Rt(Lt())),d=At(),u=f=Et(_=C+=Gt(Ft())),v++;break;case 45:45===m&&2==Et(C)&&(g=0)}}return n}function na(e,t,a,r,o,n,l,i,s,c,u){for(var f=o-1,d=0===o?n:[""],p=Ct(d),m=0,g=0,h=0;m<r;++m)for(var b=0,v=wt(e,f+1,f=mt(g=l[m])),_=e;b<p;++b)(_=bt(g>0?d[b]+" "+v:vt(v,/&\f/g,d[b])))&&(s[h++]=_);return Mt(e,t,a,0===o?Kt:i,s,c,u)}function la(e,t,a){return Mt(e,t,a,Qt,gt(Pt),wt(e,2,-2),0)}function ia(e,t,a,r){return Mt(e,t,a,Zt,wt(e,0,r),wt(e,r+1,-1),r)}var sa=function(e,t,a){for(var r=0,o=0;r=o,o=At(),38===r&&12===o&&(t[a]=1),!jt(o);)Lt();return Bt(e,Dt)},ca=new WeakMap,ua=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,r=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ca.get(a))&&!r){ca.set(e,!0);for(var o=[],n=function(e,t){return $t(function(e,t){var a=-1,r=44;do{switch(jt(r)){case 0:38===r&&12===At()&&(t[a]=1),e[a]+=sa(Dt-1,t,a);break;case 2:e[a]+=Rt(r);break;case 4:if(44===r){e[++a]=58===At()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=gt(r)}}while(r=Lt());return e}(Ht(e),t))}(t,o),l=a.props,i=0,s=0;i<n.length;i++)for(var c=0;c<l.length;c++,s++)e.props[s]=o[i]?n[i].replace(/&\f/g,l[c]):l[c]+" "+n[i]}}},fa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},da=[function(e,t,a,r){if(e.length>-1&&!e.return)switch(e.type){case Zt:e.return=aa(e.value,e.length);break;case Xt:return ea([Tt(e,{value:vt(e.value,"@","@"+Jt)})],r);case Kt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ea([Tt(e,{props:[vt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ea([Tt(e,{props:[vt(t,/:(plac\w+)/,":-webkit-input-$1")]}),Tt(e,{props:[vt(t,/:(plac\w+)/,":-moz-$1")]}),Tt(e,{props:[vt(t,/:(plac\w+)/,Ut+"input-$1")]})],r)}return""}))}}],pa=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,n=e.stylisPlugins||da,l={},i=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a<t.length;a++)l[t[a]]=!0;i.push(e)}));var s,c,u,f,d=[ta,(f=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],p=(c=[ua,fa].concat(n,d),u=Ct(c),function(e,t,a,r){for(var o="",n=0;n<u;n++)o+=c[n](e,t,a,r)||"";return o});o=function(e,t,a,r){s=a,ea(ra(e?e+"{"+t.styles+"}":t.styles),p),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new pt({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:o};return m.sheet.hydrate(i),m};function ma(e,t,a){var r="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):r+=a+" "})),r}var ga=function(e,t,a){var r=e.key+"-"+t.name;!1===a&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ha=function(e,t,a){ga(e,t,a);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},ba=function(e){for(var t,a=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(o){case 3:a^=(255&e.charCodeAt(r+2))<<16;case 2:a^=(255&e.charCodeAt(r+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(r)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)},va={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_a=/[A-Z]|^ms/g,ya=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wa=function(e){return 45===e.charCodeAt(1)},Ea=function(e){return null!=e&&"boolean"!=typeof e},Ca=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=wa(a=e)?a:a.replace(_a,"-$&").toLowerCase()),t[e];var a}}(),xa=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ya,(function(e,t,a){return Na={name:t,styles:a,next:Na},t}))}return 1===va[e]||wa(e)||"number"!=typeof t||0===t?t:t+"px"};function ka(e,t,a){if(null==a)return"";if(void 0!==a.__emotion_styles)return a;switch(typeof a){case"boolean":return"";case"object":if(1===a.anim)return Na={name:a.name,styles:a.styles,next:Na},a.name;if(void 0!==a.styles){var r=a.next;if(void 0!==r)for(;void 0!==r;)Na={name:r.name,styles:r.styles,next:Na},r=r.next;return a.styles+";"}return function(e,t,a){var r="";if(Array.isArray(a))for(var o=0;o<a.length;o++)r+=ka(e,t,a[o])+";";else for(var n in a){var l=a[n];if("object"!=typeof l)null!=t&&void 0!==t[l]?r+=n+"{"+t[l]+"}":Ea(l)&&(r+=Ca(n)+":"+xa(n,l)+";");else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var i=ka(e,t,l);switch(n){case"animation":case"animationName":r+=Ca(n)+":"+i+";";break;default:r+=n+"{"+i+"}"}}else for(var s=0;s<l.length;s++)Ea(l[s])&&(r+=Ca(n)+":"+xa(n,l[s])+";")}return r}(e,t,a);case"function":if(void 0!==e){var o=Na,n=a(e);return Na=o,ka(e,t,n)}}if(null==t)return a;var l=t[a];return void 0!==l?l:a}var Na,Sa=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Da=function(e,t,a){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Na=void 0;var n=e[0];null==n||void 0===n.raw?(r=!1,o+=ka(a,t,n)):o+=n[0];for(var l=1;l<e.length;l++)o+=ka(a,t,e[l]),r&&(o+=n[l]);Sa.lastIndex=0;for(var i,s="";null!==(i=Sa.exec(o));)s+="-"+i[1];return{name:ba(o)+s,styles:o,next:Na}},Pa=!!Ie.useInsertionEffect&&Ie.useInsertionEffect,Oa=Pa||function(e){return e()},Ma=(Pa||Ie.useLayoutEffect,{}.hasOwnProperty),Ta=(0,Ie.createContext)("undefined"!=typeof HTMLElement?pa({key:"css"}):null),Ia=(Ta.Provider,function(e){return(0,Ie.forwardRef)((function(t,a){var r=(0,Ie.useContext)(Ta);return e(t,r,a)}))}),La=(0,Ie.createContext)({}),Aa="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fa=function(e,t){var a={};for(var r in t)Ma.call(t,r)&&(a[r]=t[r]);return a[Aa]=e,a},Ba=function(e){var t=e.cache,a=e.serialized,r=e.isStringTag;return ga(t,a,r),Oa((function(){return ha(t,a,r)})),null},ja=Ia((function(e,t,a){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Aa],n=[r],l="";"string"==typeof e.className?l=ma(t.registered,n,e.className):null!=e.className&&(l=e.className+" ");var i=Da(n,void 0,(0,Ie.useContext)(La));l+=t.key+"-"+i.name;var s={};for(var c in e)Ma.call(e,c)&&"css"!==c&&c!==Aa&&(s[c]=e[c]);return s.ref=a,s.className=l,(0,Ie.createElement)(Ie.Fragment,null,(0,Ie.createElement)(Ba,{cache:t,serialized:i,isStringTag:"string"==typeof o}),(0,Ie.createElement)(o,s))}));a(679);var Ha=function(e,t){var a=arguments;if(null==t||!Ma.call(t,"css"))return Ie.createElement.apply(void 0,a);var r=a.length,o=new Array(r);o[0]=ja,o[1]=Fa(e,t);for(var n=2;n<r;n++)o[n]=a[n];return Ie.createElement.apply(null,o)};function $a(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Da(t)}var Ra=function e(t){for(var a=t.length,r=0,o="";r<a;r++){var n=t[r];if(null!=n){var l=void 0;switch(typeof n){case"boolean":break;case"object":if(Array.isArray(n))l=e(n);else for(var i in l="",n)n[i]&&i&&(l&&(l+=" "),l+=i);break;default:l=n}l&&(o&&(o+=" "),o+=l)}}return o};function Va(e,t,a){var r=[],o=ma(e,r,a);return r.length<2?a:o+t(r)}var za=function(e){var t=e.cache,a=e.serializedArr;return Oa((function(){for(var e=0;e<a.length;e++)ha(t,a[e],!1)})),null},qa=Ia((function(e,t){var a=[],r=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var n=Da(r,t.registered);return a.push(n),ga(t,n,!1),t.key+"-"+n.name},o={css:r,cx:function(){for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];return Va(t.registered,r,Ra(a))},theme:(0,Ie.useContext)(La)},n=e.children(o);return(0,Ie.createElement)(Ie.Fragment,null,(0,Ie.createElement)(za,{cache:t,serializedArr:a}),n)}));function Ya(e,t){if(null==e)return{};var a,r,o=function(e,t){if(null==e)return{};var a,r,o={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(o[a]=e[a]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}function Ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function Ua(e,t){if(e){if("string"==typeof e)return Ga(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Ga(e,t):void 0}}function Wa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,o,n=[],_n=!0,l=!1;try{for(a=a.call(e);!(_n=(r=a.next()).done)&&(n.push(r.value),!t||n.length!==t);_n=!0);}catch(e){l=!0,o=e}finally{try{_n||null==a.return||a.return()}finally{if(l)throw o}}return n}}(e,t)||Ua(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ja(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qa(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ka(e,t,a){return t&&Qa(e.prototype,t),a&&Qa(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function Za(e,t){return Za=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Za(e,t)}function Xa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Za(e,t)}function er(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function tr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function ar(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function rr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(a),!0).forEach((function(t){tr(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ar(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function or(e){return or=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},or(e)}function nr(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=or(e);if(t){var o=or(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return nr(this,a)}}var ir=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],sr=function(){};function cr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ur(e,t,a){var r=[a];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(cr(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var fr=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===o(e)&&null!==e?[e]:[];var t},dr=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,rr({},Ya(e,ir))};function pr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function mr(e){return pr(e)?window.pageYOffset:e.scrollTop}function gr(e,t){pr(e)?window.scrollTo(0,t):e.scrollTop=t}function hr(e,t,a,r){return a*((e=e/r-1)*e*e+1)+t}function br(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:sr,o=mr(e),n=t-o,l=10,i=0;function s(){var t=hr(i+=l,o,n,a);gr(e,t),i<a?window.requestAnimationFrame(s):r(e)}s()}function vr(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var _r=!1,yr={get passive(){return _r=!0}},wr="undefined"!=typeof window?window:{};wr.addEventListener&&wr.removeEventListener&&(wr.addEventListener("p",sr,yr),wr.removeEventListener("p",sr,!1));var Er=_r;function Cr(e){return null!=e}function xr(e,t,a){return e?t:a}function kr(e){var t=e.maxHeight,a=e.menuEl,r=e.minHeight,o=e.placement,n=e.shouldScroll,l=e.isFixedPosition,i=e.theme.spacing,s=function(e){var t=getComputedStyle(e),a="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!a||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u,f=s.getBoundingClientRect().height,d=a.getBoundingClientRect(),p=d.bottom,m=d.height,g=d.top,h=a.offsetParent.getBoundingClientRect().top,b=l||pr(u=s)?window.innerHeight:u.clientHeight,v=mr(s),_=parseInt(getComputedStyle(a).marginBottom,10),y=parseInt(getComputedStyle(a).marginTop,10),w=h-y,E=b-g,C=w+v,x=f-v-g,k=p-b+v+_,N=v+g-y,S=160;switch(o){case"auto":case"bottom":if(E>=m)return{placement:"bottom",maxHeight:t};if(x>=m&&!l)return n&&br(s,k,S),{placement:"bottom",maxHeight:t};if(!l&&x>=r||l&&E>=r)return n&&br(s,k,S),{placement:"bottom",maxHeight:l?E-_:x-_};if("auto"===o||l){var D=t,P=l?w:C;return P>=r&&(D=Math.min(P-_-i.controlHeight,t)),{placement:"top",maxHeight:D}}if("bottom"===o)return n&&gr(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(C>=m&&!l)return n&&br(s,N,S),{placement:"top",maxHeight:t};if(!l&&C>=r||l&&w>=r){var O=t;return(!l&&C>=r||l&&w>=r)&&(O=l?w-y:C-y),n&&br(s,N,S),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Nr=function(e){return"auto"===e?"bottom":e},Sr=(0,Ie.createContext)({getPortalPlacement:null}),Dr=function(e){Xa(a,e);var t=lr(a);function a(){var e;Ja(this,a);for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var a=e.props,r=a.minMenuHeight,o=a.maxMenuHeight,n=a.menuPlacement,l=a.menuPosition,i=a.menuShouldScrollIntoView,s=a.theme;if(t){var c="fixed"===l,u=kr({maxHeight:o,menuEl:t,minHeight:r,placement:n,shouldScroll:i&&!c,isFixedPosition:c,theme:s}),f=e.context.getPortalPlacement;f&&f(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,a=e.state.placement||Nr(t);return rr(rr({},e.props),{},{placement:a,maxHeight:e.state.maxHeight})},e}return Ka(a,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),a}(Ie.Component);Dr.contextType=Sr;var Pr=function(e){var t=e.theme,a=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*a,"px ").concat(3*a,"px"),textAlign:"center"}},Or=Pr,Mr=Pr,Tr=function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps;return Ha("div",Be({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},a)},n),t)};Tr.defaultProps={children:"No options"};var Ir=function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps;return Ha("div",Be({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},a)},n),t)};Ir.defaultProps={children:"Loading..."};var Lr,Ar,Fr,Br=function(e){Xa(a,e);var t=lr(a);function a(){var e;Ja(this,a);for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var a=t.placement;a!==Nr(e.props.menuPlacement)&&e.setState({placement:a})},e}return Ka(a,[{key:"render",value:function(){var e=this.props,t=e.appendTo,a=e.children,r=e.className,o=e.controlElement,n=e.cx,l=e.innerProps,i=e.menuPlacement,s=e.menuPosition,c=e.getStyles,u="fixed"===s;if(!t&&!u||!o)return null;var f=this.state.placement||Nr(i),d=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),p=u?0:window.pageYOffset,m=d[f]+p,g=Ha("div",Be({css:c("menuPortal",{offset:m,position:s,rect:d}),className:n({"menu-portal":!0},r)},l),a);return Ha(Sr.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Je.createPortal)(g,t):g)}}]),a}(Ie.Component),jr=["size"],Hr={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},$r=function(e){var t=e.size,a=Ya(e,jr);return Ha("svg",Be({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Hr},a))},Rr=function(e){return Ha($r,Be({size:20},e),Ha("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Vr=function(e){return Ha($r,Be({size:20},e),Ha("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},zr=function(e){var t=e.isFocused,a=e.theme,r=a.spacing.baseUnit,o=a.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},qr=zr,Yr=zr,Gr=function(){var e=$a.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Lr||(Ar=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Fr||(Fr=Ar.slice(0)),Lr=Object.freeze(Object.defineProperties(Ar,{raw:{value:Object.freeze(Fr)}})))),Ur=function(e){var t=e.delay,a=e.offset;return Ha("span",{css:$a({animation:"".concat(Gr," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Wr=function(e){var t=e.className,a=e.cx,r=e.getStyles,o=e.innerProps,n=e.isRtl;return Ha("div",Be({css:r("loadingIndicator",e),className:a({indicator:!0,"loading-indicator":!0},t)},o),Ha(Ur,{delay:0,offset:n}),Ha(Ur,{delay:160,offset:!0}),Ha(Ur,{delay:320,offset:!n}))};Wr.defaultProps={size:4};var Jr=["data"],Qr=["innerRef","isDisabled","isHidden","inputClassName"],Kr={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Zr={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":rr({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Kr)},Xr=function(e){return rr({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Kr)},eo=function(e){var t=e.children,a=e.innerProps;return Ha("div",a,t)},to={ClearIndicator:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps;return Ha("div",Be({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},a)},n),t||Ha(Rr,null))},Control:function(e){var t=e.children,a=e.cx,r=e.getStyles,o=e.className,n=e.isDisabled,l=e.isFocused,i=e.innerRef,s=e.innerProps,c=e.menuIsOpen;return Ha("div",Be({ref:i,css:r("control",e),className:a({control:!0,"control--is-disabled":n,"control--is-focused":l,"control--menu-is-open":c},o)},s),t)},DropdownIndicator:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps;return Ha("div",Be({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},a)},n),t||Ha(Vr,null))},DownChevron:Vr,CrossIcon:Rr,Group:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.Heading,l=e.headingProps,i=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return Ha("div",Be({css:o("group",e),className:r({group:!0},a)},i),Ha(n,Be({},l,{selectProps:u,theme:c,getStyles:o,cx:r}),s),Ha("div",null,t))},GroupHeading:function(e){var t=e.getStyles,a=e.cx,r=e.className,o=dr(e);o.data;var n=Ya(o,Jr);return Ha("div",Be({css:t("groupHeading",e),className:a({"group-heading":!0},r)},n))},IndicatorsContainer:function(e){var t=e.children,a=e.className,r=e.cx,o=e.innerProps,n=e.getStyles;return Ha("div",Be({css:n("indicatorsContainer",e),className:r({indicators:!0},a)},o),t)},IndicatorSeparator:function(e){var t=e.className,a=e.cx,r=e.getStyles,o=e.innerProps;return Ha("span",Be({},o,{css:r("indicatorSeparator",e),className:a({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,a=e.cx,r=e.getStyles,o=e.value,n=dr(e),l=n.innerRef,i=n.isDisabled,s=n.isHidden,c=n.inputClassName,u=Ya(n,Qr);return Ha("div",{className:a({"input-container":!0},t),css:r("input",e),"data-value":o||""},Ha("input",Be({className:a({input:!0},c),ref:l,style:Xr(s),disabled:i},u)))},LoadingIndicator:Wr,Menu:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerRef,l=e.innerProps;return Ha("div",Be({css:o("menu",e),className:r({menu:!0},a),ref:n},l),t)},MenuList:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps,l=e.innerRef,i=e.isMulti;return Ha("div",Be({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":i},a),ref:l},n),t)},MenuPortal:Br,LoadingMessage:Ir,NoOptionsMessage:Tr,MultiValue:function(e){var t=e.children,a=e.className,r=e.components,o=e.cx,n=e.data,l=e.getStyles,i=e.innerProps,s=e.isDisabled,c=e.removeProps,u=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return Ha(qa,null,(function(r){var m=r.css,g=r.cx;return Ha(f,{data:n,innerProps:rr({className:g(m(l("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":s},a))},i),selectProps:u},Ha(d,{data:n,innerProps:{className:g(m(l("multiValueLabel",e)),o({"multi-value__label":!0},a))},selectProps:u},t),Ha(p,{data:n,innerProps:rr({className:g(m(l("multiValueRemove",e)),o({"multi-value__remove":!0},a)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:eo,MultiValueLabel:eo,MultiValueRemove:function(e){var t=e.children,a=e.innerProps;return Ha("div",Be({role:"button"},a),t||Ha(Rr,{size:14}))},Option:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.isDisabled,l=e.isFocused,i=e.isSelected,s=e.innerRef,c=e.innerProps;return Ha("div",Be({css:o("option",e),className:r({option:!0,"option--is-disabled":n,"option--is-focused":l,"option--is-selected":i},a),ref:s,"aria-disabled":n},c),t)},Placeholder:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps;return Ha("div",Be({css:o("placeholder",e),className:r({placeholder:!0},a)},n),t)},SelectContainer:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps,l=e.isDisabled,i=e.isRtl;return Ha("div",Be({css:o("container",e),className:r({"--is-disabled":l,"--is-rtl":i},a)},n),t)},SingleValue:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.isDisabled,l=e.innerProps;return Ha("div",Be({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":n},a)},l),t)},ValueContainer:function(e){var t=e.children,a=e.className,r=e.cx,o=e.innerProps,n=e.isMulti,l=e.getStyles,i=e.hasValue;return Ha("div",Be({css:l("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":n,"value-container--has-value":i},a)},o),t)}},ao=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ro(e){return function(e){if(Array.isArray(e))return Ga(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ua(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var oo=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function no(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((r=e[a])===(o=t[a])||oo(r)&&oo(o)))return!1;var r,o;return!0}for(var lo={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},io=function(e){return Ha("span",Be({css:lo},e))},so={guidance:function(e){var t=e.isSearchable,a=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,r=void 0===a?"":a,o=e.labels,n=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,n?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,r=e.options,o=e.label,n=void 0===o?"":o,l=e.selectValue,i=e.isDisabled,s=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&l)return"value ".concat(n," focused, ").concat(c(l,a),".");if("menu"===t){var u=i?" disabled":"",f="".concat(s?"selected":"focused").concat(u);return"option ".concat(n," ").concat(f,", ").concat(c(r,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},co=function(e){var t=e.ariaSelection,a=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,n=e.isFocused,l=e.selectValue,i=e.selectProps,s=e.id,c=i.ariaLiveMessages,u=i.getOptionLabel,f=i.inputValue,d=i.isMulti,p=i.isOptionDisabled,m=i.isSearchable,g=i.menuIsOpen,h=i.options,b=i.screenReaderStatus,v=i.tabSelectsValue,_=i["aria-label"],y=i["aria-live"],w=(0,Ie.useMemo)((function(){return rr(rr({},so),c||{})}),[c]),E=(0,Ie.useMemo)((function(){var e,a="";if(t&&w.onChange){var r=t.option,o=t.options,n=t.removedValue,i=t.removedValues,s=t.value,c=n||r||(e=s,Array.isArray(e)?null:e),f=c?u(c):"",d=o||i||void 0,m=d?d.map(u):[],g=rr({isDisabled:c&&p(c,l),label:f,labels:m},t);a=w.onChange(g)}return a}),[t,w,p,l,u]),C=(0,Ie.useMemo)((function(){var e="",t=a||r,o=!!(a&&l&&l.includes(a));if(t&&w.onFocus){var n={focused:t,label:u(t),isDisabled:p(t,l),isSelected:o,options:h,context:t===a?"menu":"value",selectValue:l};e=w.onFocus(n)}return e}),[a,r,u,p,w,h,l]),x=(0,Ie.useMemo)((function(){var e="";if(g&&h.length&&w.onFilter){var t=b({count:o.length});e=w.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,w,h,b]),k=(0,Ie.useMemo)((function(){var e="";if(w.guidance){var t=r?"value":g?"menu":"input";e=w.guidance({"aria-label":_,context:t,isDisabled:a&&p(a,l),isMulti:d,isSearchable:m,tabSelectsValue:v})}return e}),[_,a,r,d,p,m,g,w,l,v]),N="".concat(C," ").concat(x," ").concat(k),S=Ha(Ie.Fragment,null,Ha("span",{id:"aria-selection"},E),Ha("span",{id:"aria-context"},N)),D="initial-input-focus"===(null==t?void 0:t.action);return Ha(Ie.Fragment,null,Ha(io,{id:s},D&&S),Ha(io,{"aria-live":y,"aria-atomic":"false","aria-relevant":"additions text"},n&&!D&&S))},uo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],fo=new RegExp("["+uo.map((function(e){return e.letters})).join("")+"]","g"),po={},mo=0;mo<uo.length;mo++)for(var go=uo[mo],ho=0;ho<go.letters.length;ho++)po[go.letters[ho]]=go.base;var bo=function(e){return e.replace(fo,(function(e){return po[e]}))},vo=function(e,t){var a;void 0===t&&(t=no);var r,o=[],n=!1;return function(){for(var l=[],i=0;i<arguments.length;i++)l[i]=arguments[i];return n&&a===this&&t(l,o)||(r=e.apply(this,l),n=!0,a=this,o=l),r}}(bo),_o=function(e){return e.replace(/^\s+|\s+$/g,"")},yo=function(e){return"".concat(e.label," ").concat(e.value)},wo=["innerRef"];function Eo(e){var t=e.innerRef,a=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Wa(e,1)[0];return!a.includes(t)}));return o.reduce((function(e,t){var a=Wa(t,2),r=a[0],o=a[1];return e[r]=o,e}),{})}(Ya(e,wo),"onExited","in","enter","exit","appear");return Ha("input",Be({ref:t},a,{css:$a({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Co=["boxSizing","height","overflow","paddingRight","position"],xo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ko(e){e.preventDefault()}function No(e){e.stopPropagation()}function So(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function Do(){return"ontouchstart"in window||navigator.maxTouchPoints}var Po=!("undefined"==typeof window||!window.document||!window.document.createElement),Oo=0,Mo={capture:!1,passive:!1},To=function(){return document.activeElement&&document.activeElement.blur()},Io={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Lo(e){var t=e.children,a=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,a=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,n=e.onTopLeave,l=(0,Ie.useRef)(!1),i=(0,Ie.useRef)(!1),s=(0,Ie.useRef)(0),c=(0,Ie.useRef)(null),u=(0,Ie.useCallback)((function(e,t){if(null!==c.current){var s=c.current,u=s.scrollTop,f=s.scrollHeight,d=s.clientHeight,p=c.current,m=t>0,g=f-d-u,h=!1;g>t&&l.current&&(r&&r(e),l.current=!1),m&&i.current&&(n&&n(e),i.current=!1),m&&t>g?(a&&!l.current&&a(e),p.scrollTop=f,h=!0,l.current=!0):!m&&-t>u&&(o&&!i.current&&o(e),p.scrollTop=0,h=!0,i.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[a,r,o,n]),f=(0,Ie.useCallback)((function(e){u(e,e.deltaY)}),[u]),d=(0,Ie.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),p=(0,Ie.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,Ie.useCallback)((function(e){if(e){var t=!!Er&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",p,t)}}),[p,d,f]),g=(0,Ie.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",p,!1))}),[p,d,f]);return(0,Ie.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),n=function(e){var t=e.isEnabled,a=e.accountForScrollbars,r=void 0===a||a,o=(0,Ie.useRef)({}),n=(0,Ie.useRef)(null),l=(0,Ie.useCallback)((function(e){if(Po){var t=document.body,a=t&&t.style;if(r&&Co.forEach((function(e){var t=a&&a[e];o.current[e]=t})),r&&Oo<1){var n=parseInt(o.current.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,i=window.innerWidth-l+n||0;Object.keys(xo).forEach((function(e){var t=xo[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(i,"px"))}t&&Do()&&(t.addEventListener("touchmove",ko,Mo),e&&(e.addEventListener("touchstart",So,Mo),e.addEventListener("touchmove",No,Mo))),Oo+=1}}),[r]),i=(0,Ie.useCallback)((function(e){if(Po){var t=document.body,a=t&&t.style;Oo=Math.max(Oo-1,0),r&&Oo<1&&Co.forEach((function(e){var t=o.current[e];a&&(a[e]=t)})),t&&Do()&&(t.removeEventListener("touchmove",ko,Mo),e&&(e.removeEventListener("touchstart",So,Mo),e.removeEventListener("touchmove",No,Mo)))}}),[r]);return(0,Ie.useEffect)((function(){if(t){var e=n.current;return l(e),function(){i(e)}}}),[t,l,i]),function(e){n.current=e}}({isEnabled:a});return Ha(Ie.Fragment,null,a&&Ha("div",{onClick:To,css:Io}),t((function(e){o(e),n(e)})))}var Ao={clearIndicator:Yr,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,a=e.isFocused,r=e.theme,o=r.colors,n=r.borderRadius,l=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:a?o.primary:o.neutral20,borderRadius:n,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:a?o.primary:o.neutral30}}},dropdownIndicator:qr,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,a=e.theme,r=a.spacing.baseUnit,o=a.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,a=e.value,r=e.theme,o=r.spacing,n=r.colors;return rr({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:n.neutral80,transform:a?"translateZ(0)":""},Zr)},loadingIndicator:function(e){var t=e.isFocused,a=e.size,r=e.theme,o=r.colors,n=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*n,transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Mr,menu:function(e){var t,a=e.placement,r=e.theme,o=r.borderRadius,n=r.spacing,l=r.colors;return er(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(a),"100%"),er(t,"backgroundColor",l.neutral0),er(t,"borderRadius",o),er(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),er(t,"marginBottom",n.menuGutter),er(t,"marginTop",n.menuGutter),er(t,"position","absolute"),er(t,"width","100%"),er(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,a=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:a,paddingTop:a,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,a=e.offset,r=e.position;return{left:t.left,position:r,top:a,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,a=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:a.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,a=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:a/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,a=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Or,option:function(e){var t=e.isDisabled,a=e.isFocused,r=e.isSelected,o=e.theme,n=o.spacing,l=o.colors;return{label:"option",backgroundColor:r?l.primary:a?l.primary25:"transparent",color:t?l.neutral20:r?l.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*n.baseUnit,"px ").concat(3*n.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?l.primary:l.primary50}}},placeholder:function(e){var t=e.theme,a=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,a=e.theme,r=a.spacing,o=a.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,a=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:a&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Fo={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Bo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:vr(),captureMenuScroll:!vr(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=rr({ignoreCase:!0,ignoreAccents:!0,stringify:yo,trim:!0,matchFrom:"any"},undefined),r=a.ignoreCase,o=a.ignoreAccents,n=a.stringify,l=a.trim,i=a.matchFrom,s=l?_o(t):t,c=l?_o(n(e)):n(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),o&&(s=vo(s),c=bo(c)),"start"===i?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function jo(e,t,a,r){return{type:"option",data:t,isDisabled:qo(e,t,a),isSelected:Yo(e,t,a),label:Vo(e,t),value:zo(e,t),index:r}}function Ho(e,t){return e.options.map((function(a,r){if("options"in a){var o=a.options.map((function(a,r){return jo(e,a,t,r)})).filter((function(t){return Ro(e,t)}));return o.length>0?{type:"group",data:a,options:o,index:r}:void 0}var n=jo(e,a,t,r);return Ro(e,n)?n:void 0})).filter(Cr)}function $o(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ro(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ro(e,t){var a=e.inputValue,r=void 0===a?"":a,o=t.data,n=t.isSelected,l=t.label,i=t.value;return(!Uo(e)||!n)&&Go(e,{label:l,value:i,data:o},r)}var Vo=function(e,t){return e.getOptionLabel(t)},zo=function(e,t){return e.getOptionValue(t)};function qo(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function Yo(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var r=zo(e,t);return a.some((function(t){return zo(e,t)===r}))}function Go(e,t,a){return!e.filterOption||e.filterOption(t,a)}var Uo=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},Wo=1,Jo=function(e){Xa(a,e);var t=lr(a);function a(e){var r;return Ja(this,a),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var a=r.props,o=a.onChange,n=a.name;t.name=n,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,a){var o=r.props,n=o.closeMenuOnSelect,l=o.isMulti,i=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:i}),n&&(r.setState({inputIsHiddenAfterUpdate:!l}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:a})},r.selectOption=function(e){var t=r.props,a=t.blurInputOnSelect,o=t.isMulti,n=t.name,l=r.state.selectValue,i=o&&r.isOptionSelected(e,l),s=r.isOptionDisabled(e,l);if(i){var c=r.getOptionValue(e);r.setValue(l.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:n});o?r.setValue([].concat(ro(l),[e]),"select-option",e):r.setValue(e,"select-option")}a&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,a=r.state.selectValue,o=r.getOptionValue(e),n=a.filter((function(e){return r.getOptionValue(e)!==o})),l=xr(t,n,n[0]||null);r.onChange(l,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(xr(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,a=t[t.length-1],o=t.slice(0,t.length-1),n=xr(e,o,o[0]||null);r.onChange(n,{action:"pop-value",removedValue:a})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return ur.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Vo(r.props,e)},r.getOptionValue=function(e){return zo(r.props,e)},r.getStyles=function(e,t){var a=Ao[e](t);a.boxSizing="border-box";var o=r.props.styles[e];return o?o(a,t):a},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,rr(rr({},to),e.components);var e},r.buildCategorizedOptions=function(){return Ho(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return $o(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:rr({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,a=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&pr(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,a=t&&t.item(0);a&&(r.initialTouchX=a.clientX,r.initialTouchY=a.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,a=t&&t.item(0);if(a){var o=Math.abs(a.clientX-r.initialTouchX),n=Math.abs(a.clientY-r.initialTouchY);r.userIsDragging=o>5||n>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,a=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(a,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Uo(r.props)},r.onKeyDown=function(e){var t=r.props,a=t.isMulti,o=t.backspaceRemovesValue,n=t.escapeClearsValue,l=t.inputValue,i=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=r.state,m=p.focusedOption,g=p.focusedValue,h=p.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!a||l)return;r.focusValue("previous");break;case"ArrowRight":if(!a||l)return;r.focusValue("next");break;case"Delete":case"Backspace":if(l)return;if(g)r.removeValue(g);else{if(!o)return;a?r.popValue():i&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!f||!m||d&&r.isOptionSelected(m,h))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:l}),r.onMenuClose()):i&&n&&r.clearValue();break;case" ":if(l)return;if(!c){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Wo),r.state.selectValue=fr(e.value),r}return Ka(a,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,a,r,o,n,l=this.props,i=l.isDisabled,s=l.menuIsOpen,c=this.state.isFocused;(c&&!i&&e.isDisabled||c&&s&&!e.menuIsOpen)&&this.focusInput(),c&&i&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,a=this.focusedOptionRef,r=t.getBoundingClientRect(),o=a.getBoundingClientRect(),n=a.offsetHeight/3,o.bottom+n>r.bottom?gr(t,Math.min(a.offsetTop+a.clientHeight-t.offsetHeight+n,t.scrollHeight)):o.top-n<r.top&&gr(t,Math.max(a.offsetTop-n,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,a=this.state,r=a.selectValue,o=a.isFocused,n=this.buildFocusableOptions(),l="first"===e?0:n.length-1;if(!this.props.isMulti){var i=n.indexOf(r[0]);i>-1&&(l=i)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:n[l]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,a=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=a.indexOf(r);r||(o=-1);var n=a.length-1,l=-1;if(a.length){switch(e){case"previous":l=0===o?0:-1===o?n:o-1;break;case"next":o>-1&&o<n&&(l=o+1)}this.setState({inputIsHidden:-1!==l,focusedValue:a[l]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,a=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,n=r.indexOf(a);a||(n=-1),"up"===e?o=n>0?n-1:r.length-1:"down"===e?o=(n+1)%r.length:"pageup"===e?(o=n-t)<0&&(o=0):"pagedown"===e?(o=n+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Fo):rr(rr({},Fo),this.props.theme):Fo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,r=this.getValue,o=this.selectOption,n=this.setValue,l=this.props,i=l.isMulti,s=l.isRtl,c=l.options;return{clearValue:e,cx:t,getStyles:a,getValue:r,hasValue:this.hasValue(),isMulti:i,isRtl:s,options:c,selectOption:o,selectProps:l,setValue:n,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,a=e.isMulti;return void 0===t?a:t}},{key:"isOptionDisabled",value:function(e,t){return qo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Yo(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Go(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var a=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:a,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,a=e.isSearchable,r=e.inputId,o=e.inputValue,n=e.tabIndex,l=e.form,i=e.menuIsOpen,s=this.getComponents().Input,c=this.state,u=c.inputIsHidden,f=c.ariaSelection,d=this.commonProps,p=r||this.getElementId("input"),m=rr(rr(rr({"aria-autocomplete":"list","aria-expanded":i,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},i&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Ie.createElement(s,Be({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:n,form:l,type:"text",value:o},m)):Ie.createElement(Eo,Be({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:sr,onFocus:this.onInputFocus,disabled:t,tabIndex:n,inputMode:"none",form:l,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),a=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,n=t.MultiValueRemove,l=t.SingleValue,i=t.Placeholder,s=this.commonProps,c=this.props,u=c.controlShouldRenderValue,f=c.isDisabled,d=c.isMulti,p=c.inputValue,m=c.placeholder,g=this.state,h=g.selectValue,b=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!u)return p?null:Ie.createElement(i,Be({},s,{key:"placeholder",isDisabled:f,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(d)return h.map((function(t,l){var i=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Ie.createElement(a,Be({},s,{components:{Container:r,Label:o,Remove:n},isFocused:i,isDisabled:f,key:c,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var _=h[0];return Ie.createElement(l,Be({},s,{data:_,isDisabled:f}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,a=this.props,r=a.isDisabled,o=a.isLoading,n=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Ie.createElement(e,Be({},t,{innerProps:l,isFocused:n}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,a=this.props,r=a.isDisabled,o=a.isLoading,n=this.state.isFocused;return e&&o?Ie.createElement(e,Be({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:n})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,a=e.IndicatorSeparator;if(!t||!a)return null;var r=this.commonProps,o=this.props.isDisabled,n=this.state.isFocused;return Ie.createElement(a,Be({},r,{isDisabled:o,isFocused:n}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,a=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Ie.createElement(e,Be({},t,{innerProps:o,isDisabled:a,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),a=t.Group,r=t.GroupHeading,o=t.Menu,n=t.MenuList,l=t.MenuPortal,i=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,u=this.commonProps,f=this.state.focusedOption,d=this.props,p=d.captureMenuScroll,m=d.inputValue,g=d.isLoading,h=d.loadingMessage,b=d.minMenuHeight,v=d.maxMenuHeight,_=d.menuIsOpen,y=d.menuPlacement,w=d.menuPosition,E=d.menuPortalTarget,C=d.menuShouldBlockScroll,x=d.menuShouldScrollIntoView,k=d.noOptionsMessage,N=d.onMenuScrollToTop,S=d.onMenuScrollToBottom;if(!_)return null;var D,P=function(t,a){var r=t.type,o=t.data,n=t.isDisabled,l=t.isSelected,i=t.label,s=t.value,d=f===o,p=n?void 0:function(){return e.onOptionHover(o)},m=n?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(a),h={id:g,onClick:m,onMouseMove:p,onMouseOver:p,tabIndex:-1};return Ie.createElement(c,Be({},u,{innerProps:h,data:o,isDisabled:n,isSelected:l,key:g,label:i,type:r,value:s,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,n=t.options,l=t.index,i="".concat(e.getElementId("group"),"-").concat(l),s="".concat(i,"-heading");return Ie.createElement(a,Be({},u,{key:i,data:o,options:n,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(g){var O=h({inputValue:m});if(null===O)return null;D=Ie.createElement(i,u,O)}else{var M=k({inputValue:m});if(null===M)return null;D=Ie.createElement(s,u,M)}var T={minMenuHeight:b,maxMenuHeight:v,menuPlacement:y,menuPosition:w,menuShouldScrollIntoView:x},I=Ie.createElement(Dr,Be({},u,T),(function(t){var a=t.ref,r=t.placerProps,l=r.placement,i=r.maxHeight;return Ie.createElement(o,Be({},u,T,{innerRef:a,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:g,placement:l}),Ie.createElement(Lo,{captureEnabled:p,onTopArrive:N,onBottomArrive:S,lockEnabled:C},(function(t){return Ie.createElement(n,Be({},u,{innerRef:function(a){e.getMenuListRef(a),t(a)},isLoading:g,maxHeight:i,focusedOption:f}),D)})))}));return E||"fixed"===w?Ie.createElement(l,Be({},u,{appendTo:E,controlElement:this.controlRef,menuPlacement:y,menuPosition:w}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,r=t.isDisabled,o=t.isMulti,n=t.name,l=this.state.selectValue;if(n&&!r){if(o){if(a){var i=l.map((function(t){return e.getOptionValue(t)})).join(a);return Ie.createElement("input",{name:n,type:"hidden",value:i})}var s=l.length>0?l.map((function(t,a){return Ie.createElement("input",{key:"i-".concat(a),name:n,type:"hidden",value:e.getOptionValue(t)})})):Ie.createElement("input",{name:n,type:"hidden"});return Ie.createElement("div",null,s)}var c=l[0]?this.getOptionValue(l[0]):"";return Ie.createElement("input",{name:n,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,a=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,n=t.isFocused,l=t.selectValue,i=this.getFocusableOptions();return Ie.createElement(co,Be({},e,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:r,focusedValue:o,isFocused:n,selectValue:l,focusableOptions:i}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,a=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,n=this.props,l=n.className,i=n.id,s=n.isDisabled,c=n.menuIsOpen,u=this.state.isFocused,f=this.commonProps=this.getCommonProps();return Ie.createElement(r,Be({},f,{className:l,innerProps:{id:i,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:u}),this.renderLiveRegion(),Ie.createElement(t,Be({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:u,menuIsOpen:c}),Ie.createElement(o,Be({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),Ie.createElement(a,Be({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,n=t.ariaSelection,l=t.isFocused,i=t.prevWasFocused,s=e.options,c=e.value,u=e.menuIsOpen,f=e.inputValue,d=e.isMulti,p=fr(c),m={};if(a&&(c!==a.value||s!==a.options||u!==a.menuIsOpen||f!==a.inputValue)){var g=u?function(e,t){return $o(Ho(e,t))}(e,p):[],h=r?function(e,t){var a=e.focusedValue,r=e.selectValue.indexOf(a);if(r>-1){if(t.indexOf(a)>-1)return a;if(r<t.length)return t[r]}return null}(t,p):null,b=function(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}(t,g);m={selectValue:p,focusedOption:b,focusedValue:h,clearFocusValueOnUpdate:!1}}var v=null!=o&&e!==a?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=n,y=l&&i;return l&&!y&&(_={value:xr(d,p,p[0]||null),options:p,action:"initial-input-focus"},y=!i),"initial-input-focus"===(null==n?void 0:n.action)&&(_=null),rr(rr(rr({},m),v),{},{prevProps:e,ariaSelection:_,prevWasFocused:y})}}]),a}(Ie.Component);Jo.defaultProps=Bo;var Qo=(0,Ie.forwardRef)((function(e,t){var a=function(e){var t=e.defaultInputValue,a=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,n=e.defaultValue,l=void 0===n?null:n,i=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,p=e.value,m=Ya(e,ao),g=Wa((0,Ie.useState)(void 0!==i?i:a),2),h=g[0],b=g[1],v=Wa((0,Ie.useState)(void 0!==s?s:o),2),_=v[0],y=v[1],w=Wa((0,Ie.useState)(void 0!==p?p:l),2),E=w[0],C=w[1],x=(0,Ie.useCallback)((function(e,t){"function"==typeof c&&c(e,t),C(e)}),[c]),k=(0,Ie.useCallback)((function(e,t){var a;"function"==typeof u&&(a=u(e,t)),b(void 0!==a?a:e)}),[u]),N=(0,Ie.useCallback)((function(){"function"==typeof d&&d(),y(!0)}),[d]),S=(0,Ie.useCallback)((function(){"function"==typeof f&&f(),y(!1)}),[f]),D=void 0!==i?i:h,P=void 0!==s?s:_,O=void 0!==p?p:E;return rr(rr({},m),{},{inputValue:D,menuIsOpen:P,onChange:x,onInputChange:k,onMenuClose:S,onMenuOpen:N,value:O})}(e);return Ie.createElement(Jo,Be({ref:t},a))})),Ko=(Ie.Component,Qo),Zo=a(953);const{__:Xo}=wp.i18n;var en=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{ignore_sticky_posts:n,no_posts_found_text:l,post_type:i,post_id:s,exclude:c,post_limit:u,offset:f,author:d,post_keyword:p,relation:m,orderby:g,order:h,taxonomy_lists:b,start_date:v,end_date:_}=a,y=rttpgParams.all_term_list,w=rttpgParams.get_taxonomies;let E=new Set;for(let e in w){let t=w[e];t.object_type[0]===i&&E.add({value:t.name,name:t.label})}return E=[...E],(0,e.createElement)(Oe.PanelBody,{title:Xo("Query Build","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.SelectControl,{label:Xo("Post Source","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:i,options:be,onChange:e=>{r({post_type:e,page:1}),o()}}),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},Xo("Common Filters:","the-post-grid")),(0,e.createElement)(Oe.TextControl,{autocomplete:"off",label:Xo("Include only","the-post-grid"),help:Xo("Enter the post IDs separated by comma for include","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand has-help",placeholder:"Eg. 10, 15, 17",value:s,onChange:e=>{r({post_id:e}),o()}}),(0,e.createElement)(Oe.TextControl,{autocomplete:"off",label:Xo("Exclude","the-post-grid"),help:Xo("Enter the post IDs separated by comma for exclude","the-post-grid"),placeholder:"Eg. 12, 13",className:"rttpg-control-field label-inline rttpg-expand has-help",value:c,onChange:e=>{r({exclude:e}),o()}}),(0,e.createElement)(Oe.__experimentalNumberControl,{isShiftStepEnabled:!0,label:Xo("Limit","the-post-grid"),help:Xo("The number of posts to show. Enter -1 to show all found posts.","the-post-grid"),max:100,min:-1,value:u,onChange:e=>{r({post_limit:e}),o()},placeholder:Xo("Eg. 36","the-post-grid"),shiftStep:10,step:"1",className:"rttpg-control-field label-inline"}),(0,e.createElement)(Oe.__experimentalNumberControl,{isShiftStepEnabled:!0,label:Xo("Offset","the-post-grid"),max:100,min:0,value:f,onChange:e=>{r({offset:e}),o()},placeholder:Xo("Eg. 3","the-post-grid"),shiftStep:10,step:"1",className:"rttpg-control-field label-inline"}),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},Xo("Advanced Filters:","the-post-grid")),(0,e.createElement)("div",{className:"rttpg-ground-control"},E.map((a=>(0,e.createElement)("div",{className:"components-base-control rttpg-repeater"},(0,e.createElement)("label",{className:"components-base-control__label components-input-control__label",htmlFor:"react-select-2-input"},Xo("By "+a.name,"the-post-grid")),(0,e.createElement)(Ko,{options:Ee(y[a.value]),value:Object.keys(b).length>0&&void 0!==b[a.value]?b[a.value].options:[],onChange:e=>{t.changeTaxonomy(e,a.value)},isMulti:!0,closeMenuOnSelect:!0,isClearable:!1})))),(0,e.createElement)(Oe.SelectControl,{label:Xo("Taxonomies Relation","the-post-grid"),className:"rttpg-control-field label-inline",value:m,options:we,onChange:e=>{r({relation:e}),o()}})),(0,e.createElement)(Oe.SelectControl,{label:Xo("By Author","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:d,options:ye,onChange:e=>{r({author:e}),o()}}),(0,e.createElement)(Oe.TextControl,{autocomplete:"off",label:Xo("By Keyword","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",placeholder:"Search by keyword",value:p,onChange:e=>{r({post_keyword:e}),o()}}),(0,e.createElement)("div",{className:`rttpg-elm-wrapper ${Ne}`},(0,e.createElement)("label",null,Xo("Start Date","the-post-grid")),(0,e.createElement)(Zo.Z,{label:Xo("Start Date","the-post-grid"),options:{dateFormat:"M j, Y"},placeholder:"Choose Start Date...",value:v,onChange:e=>{let[t]=e;r({start_date:t}),o()}}),"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}})),(0,e.createElement)("div",{className:`rttpg-elm-wrapper ${Ne}`},(0,e.createElement)("label",null," ",Xo("End Date","the-post-grid")),(0,e.createElement)(Zo.Z,{label:Xo("End Date","the-post-grid"),options:{dateFormat:"M j, Y"},placeholder:"Choose End Date...",value:_,onChange:e=>{let[t]=e;r({end_date:t}),o()}}),"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}})),(0,e.createElement)(Oe.SelectControl,{label:Xo("Order By","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:g,options:oe,onChange:e=>{r({orderby:e}),o()}}),(0,e.createElement)(Oe.SelectControl,{label:Xo("Sort Order","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:h,options:me,onChange:e=>{r({order:e}),o()}}),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:`rttpg-elm-wrapper ${Ne}`},(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.ToggleControl,{label:Xo("Ignore sticky posts","the-post-grid"),className:"rttpg-toggle-control-field",checked:n,onChange:e=>{r({ignore_sticky_posts:e?"yes":""}),o()}}),"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}))),(0,e.createElement)("hr",null),(0,e.createElement)(Oe.TextControl,{autocomplete:"off",label:Xo("No Post Found Text","the-post-grid"),className:"rttpg-control-field",value:l,onChange:e=>{r({no_posts_found_text:e}),o()}}))};const{__:tn}=wp.i18n;var an=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{show_pagination:n,display_per_page:l,pagination_type:i,ajax_pagination_type:s,load_more_button_text:c}=a;return(0,e.createElement)(Oe.PanelBody,{title:tn("Pagination","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.ToggleControl,{label:tn("Show Pagination","the-post-grid"),className:"rttpg-toggle-control-field",checked:n,onChange:e=>{r({show_pagination:e?"show":""}),o()}}),"show"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.__experimentalNumberControl,{isShiftStepEnabled:!0,label:tn("Display Per Page","the-post-grid"),help:tn("Enter how may posts will display per page","the-post-grid"),max:100,min:0,value:l,onChange:e=>{r({display_per_page:e}),o()},shiftStep:10,step:"1",className:"rttpg-control-field label-inline"}),(0,e.createElement)(Oe.SelectControl,{label:tn("Pagination Type","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:le,value:i,onChange:e=>r({pagination_type:e})}),"pagination_ajax"===i&&(0,e.createElement)(Oe.ToggleControl,{label:tn("Enable Ajax Next Previous","the-post-grid"),className:"rttpg-toggle-control-field",checked:s,onChange:e=>r({ajax_pagination_type:e?"yes":""})}),"load_more"===i&&(0,e.createElement)(Oe.TextControl,{autocomplete:"off",label:tn("Button Text","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",placeholder:"Enter Button Text Here..",value:c,onChange:e=>r({load_more_button_text:e})}),"rttpg-is-pro"===Ne&&(0,e.createElement)("p",{className:"rttpg-help"},tn("NB. Please upgrade to pro for loadmore and ajax pagination","the-post-grid"))))};const{__:rn}=wp.i18n;var on=function(t){const{attributes:a,setAttributes:r}=t.data,{post_link_type:o,link_target:n,is_thumb_linked:l}=a;return(0,e.createElement)(Oe.PanelBody,{title:rn("Links","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.SelectControl,{label:rn("Post link type","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:se,value:o,onChange:e=>r({post_link_type:e})}),"rttpg-is-pro"===Ne&&(0,e.createElement)("p",{className:"rttpg-help"},rn("NB. Please upgrade to pro for popup options","the-post-grid")),"default"===o&&(0,e.createElement)(Oe.SelectControl,{label:rn("Link Target","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"_self",label:rn("Same Window","the-post-grid")},{value:"_blank",label:rn("New Window","the-post-grid")}],value:n,onChange:e=>r({link_target:e})}),(0,e.createElement)(Oe.SelectControl,{label:rn("Thumbnail Link","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"yes",label:rn("Yes","the-post-grid")},{value:"no",label:rn("No","the-post-grid")}],value:l,onChange:e=>r({is_thumb_linked:e})}))};const{__:nn}=wp.i18n;var ln=function(t){var a;const{attributes:r,setAttributes:o,changeQuery:n,postData:l}=t.data,{show_taxonomy_filter:i,show_author_filter:s,show_order_by:c,show_sort_order:u,show_search:f,filter_type:d,filter_btn_style:p,filter_post_count:m,tgp_filter_taxonomy_hierarchical:g,tpg_hide_all_button:h,tax_filter_all_text:b,author_filter_all_text:v,filter_taxonomy:_}=r,y=null==l||null===(a=l.query_info)||void 0===a?void 0:a.taxonomy,w=[];for(let e in y)w.push({value:e,label:nn(y[e],"the-post-grid")});return(0,e.createElement)(Oe.PanelBody,{title:nn("Filter (Front-end)","the-post-grid"),initialOpen:!1},(0,e.createElement)("div",{style:{position:"relative"}},"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}),(0,e.createElement)(Oe.ToggleControl,{label:nn("Taxonomy Filter","the-post-grid"),className:`rttpg-toggle-control-field ${Ne}`,checked:i,onChange:e=>{o({show_taxonomy_filter:e?"show":""}),n()}}),(0,e.createElement)(Oe.ToggleControl,{label:nn("Author filter","the-post-grid"),className:`rttpg-toggle-control-field ${Ne}`,checked:s,onChange:e=>{o({show_author_filter:e?"show":""}),n()}}),(0,e.createElement)(Oe.ToggleControl,{label:nn("Order By Filter","the-post-grid"),className:`rttpg-toggle-control-field ${Ne}`,checked:c,onChange:e=>{o({show_order_by:e?"show":""}),n()}}),(0,e.createElement)(Oe.ToggleControl,{label:nn("Sort Order Filter","the-post-grid"),className:`rttpg-toggle-control-field ${Ne}`,checked:u,onChange:e=>{o({show_sort_order:e?"show":""}),n()}}),(0,e.createElement)(Oe.ToggleControl,{label:nn("Search filter","the-post-grid"),className:`rttpg-toggle-control-field ${Ne}`,checked:f,onChange:e=>{o({show_search:e?"show":""}),n()}})),"rttpg-has-pro"===Ne&&("show"===i||"show"===s||"show"===c||"show"===u||"show"===f)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("hr",null),(0,e.createElement)(Oe.SelectControl,{label:nn("Filter Type","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"dropdown",label:nn("Dropdown","the-post-grid")},{value:"button",label:nn("Button","the-post-grid")}],value:d,onChange:e=>{o({filter_type:e}),n()}}),"button"===d&&(0,e.createElement)(Oe.SelectControl,{label:nn("Filter Style","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:nn("Default","the-post-grid")},{value:"carousel",label:nn("Collapsable","the-post-grid")}],value:p,help:nn("If you use collapsable then only category section show on the filter","the-post-grid"),onChange:e=>{o({filter_btn_style:e}),n()}}),"show"===i&&(0,e.createElement)(Oe.SelectControl,{label:nn("Choose Taxonomy","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:w,value:_,onChange:e=>{o({filter_taxonomy:e}),n()}}),(0,e.createElement)(Oe.SelectControl,{label:nn("Filter Post Count","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"yes",label:nn("Yes","the-post-grid")},{value:"no",label:nn("No","the-post-grid")}],value:m,onChange:e=>{o({filter_post_count:e}),n()}}),"button"===d&&"default"===p&&(0,e.createElement)(Oe.SelectControl,{label:nn("Tax Hierarchical","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"yes",label:nn("Yes","the-post-grid")},{value:"no",label:nn("No","the-post-grid")}],value:g,onChange:e=>{o({tgp_filter_taxonomy_hierarchical:e}),n()}}),"button"===d&&(0,e.createElement)(Oe.SelectControl,{label:nn("Hide (Show all button)","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"yes",label:nn("Show","the-post-grid")},{value:"no",label:nn("Hide","the-post-grid")}],value:h,onChange:e=>{o({tpg_hide_all_button:e}),n()}}),(0,e.createElement)(Oe.TextControl,{autocomplete:"off",label:nn("All Taxonomy Text","the-post-grid"),className:"rttpg-control-field label-inline",placeholder:"Enter All Category Text Here..",value:b,onChange:e=>{o({tax_filter_all_text:e}),n()}})),"show"===s&&"default"===p&&(0,e.createElement)(Oe.TextControl,{autocomplete:"off",label:nn("All Users Text","the-post-grid"),className:"rttpg-control-field label-inline",placeholder:"Enter All Users Text Here..",value:v,onChange:e=>{o({author_filter_all_text:e}),n()}}))};const{__:sn}=wp.i18n;var cn=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{prefix:n,post_type:l,show_section_title:i,show_title:s,show_thumb:c,show_excerpt:u,show_meta:f,show_date:d,show_category:p,show_tags:m,show_author:g,show_comment_count:h,show_post_count:b,show_read_more:v,show_social_share:_,show_woocommerce_rating:y,show_acf:w}=a;let E=n+"_layout";return(0,e.createElement)(Oe.PanelBody,{title:sn("Field Selection","the-post-grid"),initialOpen:!0},(0,e.createElement)(Oe.ToggleControl,{label:sn("Section Title","the-post-grid"),className:"rttpg-toggle-control-field",checked:i,onChange:e=>r({show_section_title:e?"show":""})}),"grid-layout7"!==a[E]&&(0,e.createElement)(Oe.ToggleControl,{label:sn("Post Title","the-post-grid"),className:"rttpg-toggle-control-field",checked:s,onChange:e=>r({show_title:e?"show":""})}),(0,e.createElement)(Oe.ToggleControl,{label:sn("Post Thumbnail","the-post-grid"),className:"rttpg-toggle-control-field",checked:c,onChange:e=>r({show_thumb:e?"show":""})}),!["grid-layout7","slider-layout4"].includes(a[E])&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.ToggleControl,{label:sn("Post Excerpt","the-post-grid"),className:"rttpg-toggle-control-field",checked:u,onChange:e=>r({show_excerpt:e?"show":""})}),(0,e.createElement)(Oe.ToggleControl,{label:sn("Meta Data","the-post-grid"),className:"rttpg-toggle-control-field",checked:f,onChange:e=>r({show_meta:e?"show":""})}),"show"===f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.ToggleControl,{label:sn("Post Date","the-post-grid"),className:"rttpg-toggle-control-field rttpg-padding-left",checked:d,onChange:e=>r({show_date:e?"show":""})}),(0,e.createElement)(Oe.ToggleControl,{label:sn("Post Category","the-post-grid"),className:"rttpg-toggle-control-field rttpg-padding-left",checked:p,onChange:e=>r({show_category:e?"show":""})}),"show"===p&&(0,e.createElement)("small",{className:"rttpg-help pl-30"},sn("NB: If needed, you can change category source from (Category & tags Settings)","the-post-grid")),(0,e.createElement)(Oe.ToggleControl,{label:sn("Post Tags","the-post-grid"),className:"rttpg-toggle-control-field rttpg-padding-left",checked:m,onChange:e=>r({show_tags:e?"show":""})}),"show"===m&&(0,e.createElement)("small",{className:"rttpg-help pl-30"},sn("NB: If needed, you can change tag source from (Meta Data Settings)","the-post-grid")),(0,e.createElement)(Oe.ToggleControl,{label:sn("Post Author","the-post-grid"),className:"rttpg-toggle-control-field rttpg-padding-left",checked:g,onChange:e=>r({show_author:e?"show":""})}),(0,e.createElement)(Oe.ToggleControl,{label:sn("Post Comment Count","the-post-grid"),className:"rttpg-toggle-control-field rttpg-padding-left",checked:h,onChange:e=>r({show_comment_count:e?"show":""})}),(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},(0,e.createElement)(Oe.ToggleControl,{label:sn("Post View Count","the-post-grid"),className:`rttpg-toggle-control-field rttpg-padding-left ${Ne}`,checked:b,onChange:e=>r({show_post_count:e?"show":""})}),"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}))),(0,e.createElement)(Oe.ToggleControl,{label:sn("Read More Button","the-post-grid"),className:"rttpg-toggle-control-field",checked:v,onChange:e=>r({show_read_more:e?"show":""})}),(0,e.createElement)(Oe.ToggleControl,{label:sn("Social Share","the-post-grid"),className:"rttpg-toggle-control-field",checked:_,onChange:e=>r({show_social_share:e?"show":""})}),"product"===l&&"grid-layout7"!==a[E]&&(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},(0,e.createElement)(Oe.ToggleControl,{label:sn("Woocommerce Rating","the-post-grid"),className:`rttpg-toggle-control-field ${Ne}`,checked:y,onChange:e=>r({show_woocommerce_rating:e?"show":""})})),rttpgParams.hasAcf&&!["grid-layout7","slider-layout4"].includes(a[E])&&(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},(0,e.createElement)(Oe.ToggleControl,{label:sn("Advanced Custom Field","the-post-grid"),className:`rttpg-toggle-control-field ${Ne}`,checked:w,onChange:e=>{r({show_acf:e?"show":""}),o()}}),"show"===w&&(0,e.createElement)("small",{className:"rttpg-help"},sn("NB. Please choose ACF group from below ACF settings","the-post-grid")),"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}))))};const{__:un}=wp.i18n;var fn=function(t){const{attributes:a,setAttributes:r}=t.data,{section_title_style:o,section_title_source:n,section_title_text:l,section_title_tag:i,show_section_title:s}=a;return"show"!==s?"":(0,e.createElement)(Oe.PanelBody,{title:un("Section Title","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.SelectControl,{label:un("Title Style","the-post-grid"),className:"rttpg-control-field label-inline",value:o,options:Z,onChange:e=>r({section_title_style:e})}),(0,e.createElement)(Oe.SelectControl,{label:un("Title Source","the-post-grid"),className:"rttpg-control-field label-inline",value:n,options:X,onChange:e=>r({section_title_source:e})}),"custom_title"===n&&(0,e.createElement)(Oe.TextControl,{autocomplete:"off",help:"Help text to explain the input.",label:"Enter Title",value:l,onChange:e=>r({section_title_text:e})}),(0,e.createElement)(Oe.SelectControl,{label:un("Title Tags","the-post-grid"),className:"rttpg-control-field label-inline",options:G,value:i,onChange:e=>r({section_title_tag:e})}))};const{__:dn}=wp.i18n;var pn=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,title_tag:n,title_visibility_style:l,title_limit:i,title_limit_type:s,title_position:c,title_hover_underline:u,show_title:f}=a;if("show"!==f)return"";let d=o+"_layout";return(0,e.createElement)(Oe.PanelBody,{title:dn("Post Title","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.SelectControl,{label:dn("Title Tags","the-post-grid"),className:"rttpg-control-field label-inline",options:G,value:n,onChange:e=>r({title_tag:e})}),(0,e.createElement)(Oe.SelectControl,{label:dn("Title Visibility Style","the-post-grid"),className:"rttpg-control-field label-inline",options:ee,value:l,onChange:e=>r({title_visibility_style:e})}),"custom"===l&&(0,e.createElement)(Oe.__experimentalNumberControl,{isShiftStepEnabled:!0,label:dn("Title Length","the-post-grid"),className:"rttpg-control-field label-inline",max:100,min:0,placeholder:"0",shiftStep:5,step:"1",value:i,onChange:e=>r({title_limit:e})}),i>0&&"custom"===l&&(0,e.createElement)(Oe.SelectControl,{label:dn("Title Crop by","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"word",label:dn("Words","the-post-grid")},{value:"character",label:dn("Characters","the-post-grid")}],value:s,onChange:e=>r({title_limit_type:e})}),["grid-layout1","grid-layout2","grid-layout3","grid-layout4","slider-layout1","slider-layout2","slider-layout3"].includes(a[d])&&(0,e.createElement)(Oe.SelectControl,{label:dn("Title Position","the-post-grid"),className:"rttpg-control-field label-inline",options:ae,value:c,onChange:e=>r({title_position:e})}),(0,e.createElement)(Oe.SelectControl,{label:dn("Title Hover Underline","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"default",label:dn("Default","the-post-grid")},{value:"enable",label:dn("Enable","the-post-grid")},{value:"disable",label:dn("Disable","the-post-grid")}],value:u,onChange:e=>r({title_hover_underline:e})}))};const{__:mn}=wp.i18n;var gn=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{excerpt_type:n,excerpt_limit:l,excerpt_more_text:i,show_excerpt:s}=a;return"show"!==s?"":(0,e.createElement)(Oe.PanelBody,{title:mn("Excerpt","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.SelectControl,{label:mn("Excerpt Type","the-post-grid"),className:"rttpg-control-field label-inline",options:pe,value:n,onChange:e=>{r({excerpt_type:e}),o()}}),["character","word"].includes(n)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.__experimentalNumberControl,{label:mn("Excerpt Limit","the-post-grid"),className:"rttpg-control-field label-inline",max:1e3,min:0,value:l,placeholder:"6",shiftStep:10,step:"1",onChange:e=>{r({excerpt_limit:e}),o()}}),(0,e.createElement)(Oe.TextControl,{autocomplete:"off",label:mn("Expansion Indicator","the-post-grid"),className:"rttpg-control-field label-inline",value:i,onChange:e=>{r({excerpt_more_text:e}),o()}})))};const{__:hn}=wp.i18n,{Component:bn}=wp.element,{MediaUpload:vn}=wp.blockEditor,{Tooltip:yn,Dashicon:wn}=wp.components;var En=class extends bn{setSettings(e){const{multiple:t,onChange:a,value:r}=this.props;if(t){let t=[];e.forEach((e=>{e&&e.url&&t.push({url:e.url,id:e.id})})),a(r?r.concat(t):t)}else e&&e.url&&a({url:e.url,id:e.id})}removeImage(e){const{multiple:t,onChange:a}=this.props;if(t){let t=this.props.value.slice();t.splice(e,1),a(t)}else a({})}isUrl(e){return-1!=["wbm","jpg","jpeg","gif","png","svg"].indexOf(e.split(".").pop().toLowerCase())?e:rttpgParams.plugin_url+"assets/images/tpg-placeholder.jpg"}render(){const{type:t,multiple:a,value:r,panel:o,video:n}=this.props;return(0,e.createElement)("div",{className:"rttpg-media"},this.props.label&&(0,e.createElement)("label",null,this.props.label),(0,e.createElement)(vn,{onSelect:e=>this.setSettings(e),allowedTypes:t.length?[...t]:["image"],multiple:a||!1,value:r,render:t=>{let{open:l}=t;return(0,e.createElement)("div",{className:"rttpg-single-img"},(0,e.createElement)("div",null,a?(0,e.createElement)("div",null,r.length>0&&r.map(((t,a)=>(0,e.createElement)("span",{className:"rttpg-media-image-parent"},(0,e.createElement)("img",{src:this.isUrl(t.url),alt:hn("image")}),o&&(0,e.createElement)("div",{className:"rttpg-media-actions rttpg-field-button-list"},(0,e.createElement)(yn,{text:hn("Edit")},(0,e.createElement)("button",{className:"rttpg-button","aria-label":hn("Edit"),onClick:l,role:"button"},(0,e.createElement)("span",{"aria-label":hn("Edit"),className:"fas fa-pencil-alt fa-fw"}))),(0,e.createElement)(yn,{text:hn("Remove")},(0,e.createElement)("button",{className:"rttpg-button","aria-label":hn("Remove"),onClick:()=>this.removeImage(a),role:"button"},(0,e.createElement)("span",{"aria-label":hn("Close"),className:"far fa-trash-alt fa-fw"}))))))),(0,e.createElement)("div",{onClick:l,className:"rttpg-placeholder-image"},(0,e.createElement)("div",{className:"dashicon dashicons dashicons-insert"}),(0,e.createElement)("div",null,hn("Insert")))):r&&r.url?(0,e.createElement)("span",{className:"rttpg-media-image-parent"},n?(0,e.createElement)("video",{controls:!0,autoPlay:!0,loop:!0,src:r.url}):(0,e.createElement)("img",{src:this.isUrl(r.url),alt:hn("image")}),o&&(0,e.createElement)("div",{className:"rttpg-media-actions rttpg-field-button-list"},(0,e.createElement)(yn,{text:hn("Edit")},(0,e.createElement)("button",{className:"rttpg-button","aria-label":hn("Edit"),onClick:l,role:"button"},(0,e.createElement)("span",{"aria-label":hn("Edit"),className:"fas fa-pencil-alt fa-fw"}))),(0,e.createElement)(yn,{text:hn("Remove")},(0,e.createElement)("button",{className:"rttpg-button","aria-label":hn("Remove"),onClick:()=>this.removeImage(r.id),role:"button"},(0,e.createElement)("span",{"aria-label":hn("Close"),className:"far fa-trash-alt fa-fw"}))))):(0,e.createElement)("div",{onClick:l,className:"rttpg-placeholder-image"},(0,e.createElement)("div",{className:"dashicon dashicons dashicons-insert"}),(0,e.createElement)("div",null,hn("Insert")))))}}))}};const{__:Cn}=wp.i18n;var xn=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,n=[...t.imageSizes],{prefix:l,media_source:i,image_size:s,img_crop_style:c,c_image_width:u,c_image_height:f,image_height:d,offset_image_height:p,image_offset_size:m,hover_animation:g,is_thumb_lightbox:h,is_default_img:b,default_image:v,list_image_side_width:_,show_thumb:y}=a;if("show"!==y)return"";let w=l+"_layout";return(0,e.createElement)(Oe.PanelBody,{title:Cn("Thumbnail","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.SelectControl,{label:Cn("Media Source","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"feature_image",label:Cn("Feature Image","the-post-grid")},{value:"first_image",label:Cn("First Image from content","the-post-grid")}],value:i,onChange:e=>{r({media_source:e}),o()}}),"feature_image"===i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.SelectControl,{label:Cn("Image Size","the-post-grid"),className:"rttpg-control-field label-inline",options:n,value:s,onChange:e=>{r({image_size:e}),o()}}),(0,e.createElement)("div",{className:`rttpg-arert-wrapper ${Ne}`},"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}),(0,e.createElement)(qe,{label:Cn("Image Height"),className:`rttpg-control-field label-inline ${Ne}`,responsive:!0,min:0,max:1e3,step:1,value:d,onChange:e=>r({image_height:e})})),"feature_image"===i&&["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","list-layout2","list-layout3","list-layout2-2","list-layout3-2","grid_hover-layout4","grid_hover-layout4-2","grid_hover-layout5","grid_hover-layout5-2","grid_hover-layout6","grid_hover-layout6-2","grid_hover-layout7","grid_hover-layout7-2","grid_hover-layout9","grid_hover-layout9-2","slider-layout10"].includes(a[w])&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.SelectControl,{label:Cn("Offset (Small) Image Size","the-post-grid"),className:"rttpg-control-field label-inline",options:n,value:m,onChange:e=>{r({image_offset_size:e}),o()},help:"Change offset small image size"}),(0,e.createElement)("div",{className:`rttpg-arert-wrapper ${Ne}`},"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}),(0,e.createElement)(qe,{label:Cn("Offset (Small) Image Height"),className:`rttpg-control-field label-inline ${Ne}`,responsive:!0,min:0,max:1e3,step:1,value:p,onChange:e=>r({offset_image_height:e})}))),"custom"===s&&"feature_image"===i&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Oe.SelectControl,{label:Cn("Image Crop Style","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"soft",label:Cn("Soft Crop","the-post-grid")},{value:"hard",label:Cn("Hard Crop","the-post-grid")}],value:c,onChange:e=>r({img_crop_style:e})}),(0,e.createElement)("div",{className:"rttpg-image-dimension"},(0,e.createElement)("label",{className:"components-base-control__label components-input-control__label",htmlFor:"react-select-2-input"},Cn("Image Dimension","the-post-grid")),(0,e.createElement)(Oe.__experimentalNumberControl,{className:"rttpg-control-field",max:2e3,min:1,placeholder:"Width",step:"1",value:u,onChange:e=>r({c_image_width:e})}),(0,e.createElement)(Oe.__experimentalNumberControl,{className:"rttpg-control-field",max:2e3,min:1,placeholder:"Height",step:"1",value:f,onChange:e=>r({c_image_height:e})})),(0,e.createElement)("small",{className:"rttpg-help danger"},Cn("NB: Custom image size works only on front-end.","the-post-grid")))),"list"===l&&["list-layout1","list-layout5"].includes(a[w])&&(0,e.createElement)(qe,{label:Cn("List Image Width"),responsive:!0,min:0,max:700,step:1,value:_,onChange:e=>r({list_image_side_width:e})}),(0,e.createElement)(Oe.SelectControl,{label:Cn("Image Hover Animation","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:De,value:g,onChange:e=>r({hover_animation:e})}),"rttpg-is-pro"===Ne&&(0,e.createElement)("p",{className:"rttpg-help"},Cn("Please upgrade to pro for more animation","the-post-grid")),(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}),(0,e.createElement)(Oe.SelectControl,{label:Cn("Light Box","the-post-grid"),className:`rttpg-control-field label-inline ${Ne}`,options:[{value:"default",label:Cn("Default","the-post-grid")},{value:"show",label:Cn("Show","the-post-grid")},{value:"hide",label:Cn("Hide","the-post-grid")}],value:h,onChange:e=>r({is_thumb_lightbox:e})}),(0,e.createElement)(Oe.ToggleControl,{label:Cn("Enable Default Image","the-post-grid"),className:`rttpg-toggle-control-field ${Ne}`,checked:b,onChange:e=>r({is_default_img:e?"yes":""})}),"yes"===b&&"rttpg-is-pro"!==Ne&&(0,e.createElement)(En,{label:Cn("Default Image","the-post-grid"),className:Ne,multiple:!1,type:["image"],panel:!0,value:v,onChange:e=>{r({default_image:e}),o()}})))};const{__:kn}=wp.i18n;var Nn=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{prefix:n,show_meta:l,show_category:i,category_position:s,category_style:c,show_cat_icon:u,category_source:f,tag_source:d,show_date:p,show_author:m,show_tags:g,show_comment_count:h,show_post_count:b,meta_position:v,meta_separator:_,author_prefix:y,show_meta_icon:w,author_icon_visibility:E,show_author_image:C,meta_ordering:x}=a;if("show"!==l||"show"!==p&&"show"!==i&&"show"!==m&&"show"!==g&&"show"!==h&&"show"!==b)return(0,e.createElement)(e.Fragment,null);let k=n+"_layout";const N=rttpgParams.get_taxonomies;let S=[];for(let e in N){let t=N[e];S.push({value:t.name,label:t.label})}return(0,e.createElement)(Oe.PanelBody,{title:kn("Meta Data","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.SelectControl,{label:kn("Meta Position","the-post-grid"),className:"rttpg-control-field label-inline",options:ue,value:v,onChange:e=>r({meta_position:e})}),"rttpg-is-pro"===Ne&&(0,e.createElement)("p",{className:"rttpg-help"},kn("Please upgrade to pro for meta position","the-post-grid")),(0,e.createElement)(Oe.ToggleControl,{label:kn("Show Meta Icon","the-post-grid"),className:"rttpg-toggle-control-field",checked:w,onChange:e=>r({show_meta_icon:e?"yes":""})}),(0,e.createElement)(Oe.SelectControl,{label:kn("Meta Separator","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"default",label:kn("Default - None","the-post-grid")},{value:".",label:kn("Dot ( . )","the-post-grid")},{value:"/",label:kn("Single Slash ( / )","the-post-grid")},{value:"//",label:kn("Double Slash ( // )","the-post-grid")},{value:"-",label:kn("Hyphen ( - )","the-post-grid")},{value:"|",label:kn("Vertical Pipe ( | )","the-post-grid")}],value:_,onChange:e=>r({meta_separator:e})}),(0,e.createElement)("hr",null),"show"===m&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},kn("Author Setting:","the-post-grid")),(0,e.createElement)(Oe.TextControl,{autocomplete:"off",label:kn("Author Prefix","the-post-grid"),placeholder:"By",className:"rttpg-control-field label-inline",value:y,onChange:e=>r({author_prefix:e})}),(0,e.createElement)(Oe.SelectControl,{label:kn("Author Icon Visibility","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"default",label:kn("Default","the-post-grid")},{value:"hide",label:kn("Hide","the-post-grid")},{value:"show",label:kn("Show","the-post-grid")}],value:E,onChange:e=>r({author_icon_visibility:e})}),"hide"!==E&&(0,e.createElement)(Oe.SelectControl,{label:kn("Author Image / Icon","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"image",label:kn("Image","the-post-grid")},{value:"icon",label:kn("Icon","the-post-grid")}],value:C,onChange:e=>r({show_author_image:e})})),"show"===l&&"show"===i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},kn("Category and Tags Setting:","the-post-grid")),(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},(0,e.createElement)(Oe.SelectControl,{label:kn("Category Position","the-post-grid"),className:`rttpg-control-field label-inline ${Ne}`,options:[{value:"default",label:kn("Default","the-post-grid")},{value:"above_title",label:kn("Above Title","the-post-grid")},{value:"with_meta",label:kn("With Meta","the-post-grid")},{value:"top_left",label:kn("Over image (Top Left)","the-post-grid")},{value:"top_right",label:kn("Over image (Top Right)","the-post-grid")},{value:"bottom_left",label:kn("Over image (Bottom Left)","the-post-grid")},{value:"bottom_right",label:kn("Over image (Bottom Right)","the-post-grid")},{value:"image_center",label:kn("Over image (Center)","the-post-grid")}],value:s,onChange:e=>{r({category_position:e}),o()}}),"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}})),("default"!==s||["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2"].includes(a[k]))&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.SelectControl,{label:kn("Category Style","the-post-grid"),className:"rttpg-control-field label-inline ",options:[{value:"style1",label:kn("Style 1 - Only Text","the-post-grid")},{value:"style2",label:kn("Style 2 - Background","the-post-grid")},{value:"style3",label:kn("Style 3","the-post-grid")}],value:c,onChange:e=>r({category_style:e})}),"with_meta"!==s&&(0,e.createElement)(Oe.ToggleControl,{label:kn("Show Over Image Category Icon","the-post-grid"),className:"rttpg-toggle-control-field",checked:u,onChange:e=>r({show_cat_icon:e?"yes":""})})),(0,e.createElement)(Oe.SelectControl,{label:kn("Category Source","the-post-grid"),className:"rttpg-control-field label-inline ",options:S,value:f,onChange:e=>{r({category_source:e}),o()}}),(0,e.createElement)(Oe.SelectControl,{label:kn("Tag Source","the-post-grid"),className:"rttpg-control-field label-inline ",options:S,value:d,onChange:e=>{r({tag_source:e}),o()}})),(0,e.createElement)("div",{className:"components-base-control rttpg-repeater"},(0,e.createElement)("label",{className:"components-base-control__label components-input-control__label",htmlFor:"react-select-2-input"},kn("Meta Ordering","the-post-grid")),(0,e.createElement)(Ko,{options:ke,value:x,onChange:e=>{r({meta_ordering:e}),o()},help:kn("Select sequentially from here for sort meta order.","the-post-grid"),isMulti:!0,closeMenuOnSelect:!1,isClearable:!1})))};const{Spinner:Sn}=wp.components,{__:Dn}=wp.i18n;var Pn=function(t){var a;const{attributes:r,setAttributes:o,changeQuery:n}=t.data,{show_acf:l,cf_hide_empty_value:i,cf_hide_group_title:s,cf_show_only_value:c,acf_data_lists:u,post_type:f}=r;if(!rttpgParams.hasAcf||!rttpgParams.hasPro||"show"!==l)return"";const d=[...t.acfData].find((e=>(null==e?void 0:e.post_type)===f));return(0,e.createElement)(Oe.PanelBody,{title:Dn("ACF","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},Dn("Choose ACF Field:","the-post-grid")),(0,e.createElement)("div",{className:"components-base-control rttpg-repeater"},(0,e.createElement)(Ko,{options:null==d?void 0:d.options,value:null===(a=u[(null==d?void 0:d.post_type)+"_cf_group"])||void 0===a?void 0:a.options,onChange:e=>{t.changeAcfData(e,(null==d?void 0:d.post_type)+"_cf_group")},isMulti:!0,closeMenuOnSelect:!0,isClearable:!1})),(0,e.createElement)(Oe.ToggleControl,{label:Dn("Hide field with empty value?","the-post-grid"),className:"rttpg-toggle-control-field",checked:i,onChange:e=>{o({cf_hide_empty_value:e?"show":""}),n()}}),(0,e.createElement)(Oe.ToggleControl,{label:Dn("Show group title?","the-post-grid"),className:"rttpg-toggle-control-field",checked:s,onChange:e=>{o({cf_hide_group_title:e?"show":""}),n()}}),(0,e.createElement)(Oe.ToggleControl,{label:Dn("Show label?","the-post-grid"),className:"rttpg-toggle-control-field",checked:c,onChange:e=>{o({cf_show_only_value:e?"show":""}),n()}}))},On=["fas fa-ad","fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-air-freshener","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-angry","fas fa-ankh","fas fa-apple-alt","fas fa-archive","fas fa-archway","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-atlas","fas fa-atom","fas fa-audio-description","fas fa-award","fas fa-baby","fas fa-baby-carriage","fas fa-backspace","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars","fas fa-baseball-ball","fas fa-basketball-ball","fas fa-bath","fas fa-battery-empty","fas fa-battery-full","fas fa-battery-half","fas fa-battery-quarter","fas fa-battery-three-quarters","fas fa-bed","fas fa-beer","fas fa-bell","fas fa-bell-slash","fas fa-bezier-curve","fas fa-bible","fas fa-bicycle","fas fa-binoculars","fas fa-biohazard","fas fa-birthday-cake","fas fa-blender","fas fa-blender-phone","fas fa-blind","fas fa-blog","fas fa-bold","fas fa-bolt","fas fa-bomb","fas fa-bone","fas fa-bong","fas fa-book","fas fa-book-dead","fas fa-book-open","fas fa-book-reader","fas fa-bookmark","fas fa-bowling-ball","fas fa-box","fas fa-box-open","fas fa-boxes","fas fa-braille","fas fa-brain","fas fa-briefcase","fas fa-briefcase-medical","fas fa-broadcast-tower","fas fa-broom","fas fa-brush","fas fa-bug","fas fa-building","fas fa-bullhorn","fas fa-bullseye","fas fa-burn","fas fa-bus","fas fa-bus-alt","fas fa-business-time","fas fa-calculator","fas fa-calendar","fas fa-calendar-alt","fas fa-calendar-check","fas fa-calendar-day","fas fa-calendar-minus","fas fa-calendar-plus","fas fa-calendar-times","fas fa-calendar-week","fas fa-camera","fas fa-camera-retro","fas fa-campground","fas fa-candy-cane","fas fa-cannabis","fas fa-capsules","fas fa-car","fas fa-car-alt","fas fa-car-battery","fas fa-car-crash","fas fa-car-side","fas fa-caret-down","fas fa-caret-left","fas fa-caret-right","fas fa-caret-square-down","fas fa-caret-square-left","fas fa-caret-square-right","fas fa-caret-square-up","fas fa-caret-up","fas fa-carrot","fas fa-cart-arrow-down","fas fa-cart-plus","fas fa-cash-register","fas fa-cat","fas fa-certificate","fas fa-chair","fas fa-chalkboard","fas fa-chalkboard-teacher","fas fa-charging-station","fas fa-chart-area","fas fa-chart-bar","fas fa-chart-line","fas fa-chart-pie","fas fa-check","fas fa-check-circle","fas fa-check-double","fas fa-check-square","fas fa-chess","fas fa-chess-bishop","fas fa-chess-board","fas fa-chess-king","fas fa-chess-knight","fas fa-chess-pawn","fas fa-chess-queen","fas fa-chess-rook","fas fa-chevron-circle-down","fas fa-chevron-circle-left","fas fa-chevron-circle-right","fas fa-chevron-circle-up","fas fa-chevron-down","fas fa-chevron-left","fas fa-chevron-right","fas fa-chevron-up","fas fa-child","fas fa-church","fas fa-circle","fas fa-circle-notch","fas fa-city","fas fa-clipboard","fas fa-clipboard-check","fas fa-clipboard-list","fas fa-clock","fas fa-clone","fas fa-closed-captioning","fas fa-cloud","fas fa-cloud-download-alt","fas fa-cloud-meatball","fas fa-cloud-moon","fas fa-cloud-moon-rain","fas fa-cloud-rain","fas fa-cloud-showers-heavy","fas fa-cloud-sun","fas fa-cloud-sun-rain","fas fa-cloud-upload-alt","fas fa-cocktail","fas fa-code","fas fa-code-branch","fas fa-coffee","fas fa-cog","fas fa-cogs","fas fa-coins","fas fa-columns","fas fa-comment","fas fa-comment-alt","fas fa-comment-dollar","fas fa-comment-dots","fas fa-comment-slash","fas fa-comments","fas fa-comments-dollar","fas fa-compact-disc","fas fa-compass","fas fa-compress","fas fa-compress-arrows-alt","fas fa-concierge-bell","fas fa-cookie","fas fa-cookie-bite","fas fa-copy","fas fa-copyright","fas fa-couch","fas fa-credit-card","fas fa-crop","fas fa-crop-alt","fas fa-cross","fas fa-crosshairs","fas fa-crow","fas fa-crown","fas fa-cube","fas fa-cubes","fas fa-cut","fas fa-database","fas fa-deaf","fas fa-democrat","fas fa-desktop","fas fa-dharmachakra","fas fa-diagnoses","fas fa-dice","fas fa-dice-d20","fas fa-dice-d6","fas fa-dice-five","fas fa-dice-four","fas fa-dice-one","fas fa-dice-six","fas fa-dice-three","fas fa-dice-two","fas fa-digital-tachograph","fas fa-directions","fas fa-divide","fas fa-dizzy","fas fa-dna","fas fa-dog","fas fa-dollar-sign","fas fa-dolly","fas fa-dolly-flatbed","fas fa-donate","fas fa-door-closed","fas fa-door-open","fas fa-dot-circle","fas fa-dove","fas fa-download","fas fa-drafting-compass","fas fa-dragon","fas fa-draw-polygon","fas fa-drum","fas fa-drum-steelpan","fas fa-drumstick-bite","fas fa-dumbbell","fas fa-dumpster","fas fa-dumpster-fire","fas fa-dungeon","fas fa-edit","fas fa-eject","fas fa-ellipsis-h","fas fa-ellipsis-v","fas fa-envelope","fas fa-envelope-open","fas fa-envelope-open-text","fas fa-envelope-square","fas fa-equals","fas fa-eraser","fas fa-ethernet","fas fa-euro-sign","fas fa-exchange-alt","fas fa-exclamation","fas fa-exclamation-circle","fas fa-exclamation-triangle","fas fa-expand","fas fa-expand-arrows-alt","fas fa-external-link-alt","fas fa-external-link-square-alt","fas fa-eye","fas fa-eye-dropper","fas fa-eye-slash","fas fa-fast-backward","fas fa-fast-forward","fas fa-fax","fas fa-feather","fas fa-feather-alt","fas fa-female","fas fa-fighter-jet","fas fa-file","fas fa-file-alt","fas fa-file-archive","fas fa-file-audio","fas fa-file-code","fas fa-file-contract","fas fa-file-csv","fas fa-file-download","fas fa-file-excel","fas fa-file-export","fas fa-file-image","fas fa-file-import","fas fa-file-invoice","fas fa-file-invoice-dollar","fas fa-file-medical","fas fa-file-medical-alt","fas fa-file-pdf","fas fa-file-powerpoint","fas fa-file-prescription","fas fa-file-signature","fas fa-file-upload","fas fa-file-video","fas fa-file-word","fas fa-fill","fas fa-fill-drip","fas fa-film","fas fa-filter","fas fa-fingerprint","fas fa-fire","fas fa-fire-alt","fas fa-fire-extinguisher","fas fa-first-aid","fas fa-fish","fas fa-fist-raised","fas fa-flag","fas fa-flag-checkered","fas fa-flag-usa","fas fa-flask","fas fa-flushed","fas fa-folder","fas fa-folder-minus","fas fa-folder-open","fas fa-folder-plus","fas fa-font","fas fa-football-ball","fas fa-forward","fas fa-frog","fas fa-frown","fas fa-frown-open","fas fa-funnel-dollar","fas fa-futbol","fas fa-gamepad","fas fa-gas-pump","fas fa-gavel","fas fa-gem","fas fa-genderless","fas fa-ghost","fas fa-gift","fas fa-gifts","fas fa-glass-cheers","fas fa-glass-martini","fas fa-glass-martini-alt","fas fa-glass-whiskey","fas fa-glasses","fas fa-globe","fas fa-globe-africa","fas fa-globe-americas","fas fa-globe-asia","fas fa-globe-europe","fas fa-golf-ball","fas fa-gopuram","fas fa-graduation-cap","fas fa-greater-than","fas fa-greater-than-equal","fas fa-grimace","fas fa-grin","fas fa-grin-alt","fas fa-grin-beam","fas fa-grin-beam-sweat","fas fa-grin-hearts","fas fa-grin-squint","fas fa-grin-squint-tears","fas fa-grin-stars","fas fa-grin-tears","fas fa-grin-tongue","fas fa-grin-tongue-squint","fas fa-grin-tongue-wink","fas fa-grin-wink","fas fa-grip-horizontal","fas fa-grip-lines","fas fa-grip-lines-vertical","fas fa-grip-vertical","fas fa-guitar","fas fa-h-square","fas fa-hammer","fas fa-hamsa","fas fa-hand-holding","fas fa-hand-holding-heart","fas fa-hand-holding-usd","fas fa-hand-lizard","fas fa-hand-paper","fas fa-hand-peace","fas fa-hand-point-down","fas fa-hand-point-left","fas fa-hand-point-right","fas fa-hand-point-up","fas fa-hand-pointer","fas fa-hand-rock","fas fa-hand-scissors","fas fa-hand-spock","fas fa-hands","fas fa-hands-helping","fas fa-handshake","fas fa-hanukiah","fas fa-hashtag","fas fa-hat-wizard","fas fa-haykal","fas fa-hdd","fas fa-heading","fas fa-headphones","fas fa-headphones-alt","fas fa-headset","fas fa-heart","fas fa-heart-broken","fas fa-heartbeat","fas fa-helicopter","fas fa-highlighter","fas fa-hiking","fas fa-hippo","fas fa-history","fas fa-hockey-puck","fas fa-holly-berry","fas fa-home","fas fa-horse","fas fa-horse-head","fas fa-hospital","fas fa-hospital-alt","fas fa-hospital-symbol","fas fa-hot-tub","fas fa-hotel","fas fa-hourglass","fas fa-hourglass-end","fas fa-hourglass-half","fas fa-hourglass-start","fas fa-house-damage","fas fa-hryvnia","fas fa-i-cursor","fas fa-icicles","fas fa-id-badge","fas fa-id-card","fas fa-id-card-alt","fas fa-igloo","fas fa-image","fas fa-images","fas fa-inbox","fas fa-indent","fas fa-industry","fas fa-infinity","fas fa-info","fas fa-info-circle","fas fa-italic","fas fa-jedi","fas fa-joint","fas fa-journal-whills","fas fa-kaaba","fas fa-key","fas fa-keyboard","fas fa-khanda","fas fa-kiss","fas fa-kiss-beam","fas fa-kiss-wink-heart","fas fa-kiwi-bird","fas fa-landmark","fas fa-language","fas fa-laptop","fas fa-laptop-code","fas fa-laugh","fas fa-laugh-beam","fas fa-laugh-squint","fas fa-laugh-wink","fas fa-layer-group","fas fa-leaf","fas fa-lemon","fas fa-less-than","fas fa-less-than-equal","fas fa-level-down-alt","fas fa-level-up-alt","fas fa-life-ring","fas fa-lightbulb","fas fa-link","fas fa-lira-sign","fas fa-list","fas fa-list-alt","fas fa-list-ol","fas fa-list-ul","fas fa-location-arrow","fas fa-lock","fas fa-lock-open","fas fa-long-arrow-alt-down","fas fa-long-arrow-alt-left","fas fa-long-arrow-alt-right","fas fa-long-arrow-alt-up","fas fa-low-vision","fas fa-luggage-cart","fas fa-magic","fas fa-magnet","fas fa-mail-bulk","fas fa-male","fas fa-map","fas fa-map-marked","fas fa-map-marked-alt","fas fa-map-marker","fas fa-map-marker-alt","fas fa-map-pin","fas fa-map-signs","fas fa-marker","fas fa-mars","fas fa-mars-double","fas fa-mars-stroke","fas fa-mars-stroke-h","fas fa-mars-stroke-v","fas fa-mask","fas fa-medal","fas fa-medkit","fas fa-meh","fas fa-meh-blank","fas fa-meh-rolling-eyes","fas fa-memory","fas fa-menorah","fas fa-mercury","fas fa-meteor","fas fa-microchip","fas fa-microphone","fas fa-microphone-alt","fas fa-microphone-alt-slash","fas fa-microphone-slash","fas fa-microscope","fas fa-minus","fas fa-minus-circle","fas fa-minus-square","fas fa-mitten","fas fa-mobile","fas fa-mobile-alt","fas fa-money-bill","fas fa-money-bill-alt","fas fa-money-bill-wave","fas fa-money-bill-wave-alt","fas fa-money-check","fas fa-money-check-alt","fas fa-monument","fas fa-moon","fas fa-mortar-pestle","fas fa-mosque","fas fa-motorcycle","fas fa-mountain","fas fa-mouse-pointer","fas fa-mug-hot","fas fa-music","fas fa-network-wired","fas fa-neuter","fas fa-newspaper","fas fa-not-equal","fas fa-notes-medical","fas fa-object-group","fas fa-object-ungroup","fas fa-oil-can","fas fa-om","fas fa-otter","fas fa-outdent","fas fa-paint-brush","fas fa-paint-roller","fas fa-palette","fas fa-pallet","fas fa-paper-plane","fas fa-paperclip","fas fa-parachute-box","fas fa-paragraph","fas fa-parking","fas fa-passport","fas fa-pastafarianism","fas fa-paste","fas fa-pause","fas fa-pause-circle","fas fa-paw","fas fa-peace","fas fa-pen","fas fa-pen-alt","fas fa-pen-fancy","fas fa-pen-nib","fas fa-pen-square","fas fa-pencil-alt","fas fa-pencil-ruler","fas fa-people-carry","fas fa-percent","fas fa-percentage","fas fa-person-booth","fas fa-phone","fas fa-phone-slash","fas fa-phone-square","fas fa-phone-volume","fas fa-piggy-bank","fas fa-pills","fas fa-place-of-worship","fas fa-plane","fas fa-plane-arrival","fas fa-plane-departure","fas fa-play","fas fa-play-circle","fas fa-plug","fas fa-plus","fas fa-plus-circle","fas fa-plus-square","fas fa-podcast","fas fa-poll","fas fa-poll-h","fas fa-poo","fas fa-poo-storm","fas fa-poop","fas fa-portrait","fas fa-pound-sign","fas fa-power-off","fas fa-pray","fas fa-praying-hands","fas fa-prescription","fas fa-prescription-bottle","fas fa-prescription-bottle-alt","fas fa-print","fas fa-procedures","fas fa-project-diagram","fas fa-puzzle-piece","fas fa-qrcode","fas fa-question","fas fa-question-circle","fas fa-quidditch","fas fa-quote-left","fas fa-quote-right","fas fa-quran","fas fa-radiation","fas fa-radiation-alt","fas fa-rainbow","fas fa-random","fas fa-receipt","fas fa-recycle","fas fa-redo","fas fa-redo-alt","fas fa-registered","fas fa-reply","fas fa-reply-all","fas fa-republican","fas fa-restroom","fas fa-retweet","fas fa-ribbon","fas fa-ring","fas fa-road","fas fa-robot","fas fa-rocket","fas fa-route","fas fa-rss","fas fa-rss-square","fas fa-ruble-sign","fas fa-ruler","fas fa-ruler-combined","fas fa-ruler-horizontal","fas fa-ruler-vertical","fas fa-running","fas fa-rupee-sign","fas fa-sad-cry","fas fa-sad-tear","fas fa-satellite","fas fa-satellite-dish","fas fa-save","fas fa-school","fas fa-screwdriver","fas fa-scroll","fas fa-sd-card","fas fa-search","fas fa-search-dollar","fas fa-search-location","fas fa-search-minus","fas fa-search-plus","fas fa-seedling","fas fa-server","fas fa-shapes","fas fa-share","fas fa-share-alt","fas fa-share-alt-square","fas fa-share-square","fas fa-shekel-sign","fas fa-shield-alt","fas fa-ship","fas fa-shipping-fast","fas fa-shoe-prints","fas fa-shopping-bag","fas fa-shopping-basket","fas fa-shopping-cart","fas fa-shower","fas fa-shuttle-van","fas fa-sign","fas fa-sign-in-alt","fas fa-sign-language","fas fa-sign-out-alt","fas fa-signal","fas fa-signature","fas fa-sim-card","fas fa-sitemap","fas fa-skating","fas fa-skiing","fas fa-skiing-nordic","fas fa-skull","fas fa-skull-crossbones","fas fa-slash","fas fa-sleigh","fas fa-sliders-h","fas fa-smile","fas fa-smile-beam","fas fa-smile-wink","fas fa-smog","fas fa-smoking","fas fa-smoking-ban","fas fa-sms","fas fa-snowboarding","fas fa-snowflake","fas fa-snowman","fas fa-snowplow","fas fa-socks","fas fa-solar-panel","fas fa-sort","fas fa-sort-alpha-down","fas fa-sort-alpha-up","fas fa-sort-amount-down","fas fa-sort-amount-up","fas fa-sort-down","fas fa-sort-numeric-down","fas fa-sort-numeric-up","fas fa-sort-up","fas fa-spa","fas fa-space-shuttle","fas fa-spider","fas fa-spinner","fas fa-splotch","fas fa-spray-can","fas fa-square","fas fa-square-full","fas fa-square-root-alt","fas fa-stamp","fas fa-star","fas fa-star-and-crescent","fas fa-star-half","fas fa-star-half-alt","fas fa-star-of-david","fas fa-star-of-life","fas fa-step-backward","fas fa-step-forward","fas fa-stethoscope","fas fa-sticky-note","fas fa-stop","fas fa-stop-circle","fas fa-stopwatch","fas fa-store","fas fa-store-alt","fas fa-stream","fas fa-street-view","fas fa-strikethrough","fas fa-stroopwafel","fas fa-subscript","fas fa-subway","fas fa-suitcase","fas fa-suitcase-rolling","fas fa-sun","fas fa-superscript","fas fa-surprise","fas fa-swatchbook","fas fa-swimmer","fas fa-swimming-pool","fas fa-synagogue","fas fa-sync","fas fa-sync-alt","fas fa-syringe","fas fa-table","fas fa-table-tennis","fas fa-tablet","fas fa-tablet-alt","fas fa-tablets","fas fa-tachometer-alt","fas fa-tag","fas fa-tags","fas fa-tape","fas fa-tasks","fas fa-taxi","fas fa-teeth","fas fa-teeth-open","fas fa-temperature-high","fas fa-temperature-low","fas fa-tenge","fas fa-terminal","fas fa-text-height","fas fa-text-width","fas fa-th","fas fa-th-large","fas fa-th-list","fas fa-theater-masks","fas fa-thermometer","fas fa-thermometer-empty","fas fa-thermometer-full","fas fa-thermometer-half","fas fa-thermometer-quarter","fas fa-thermometer-three-quarters","fas fa-thumbs-down","fas fa-thumbs-up","fas fa-thumbtack","fas fa-ticket-alt","fas fa-times","fas fa-times-circle","fas fa-tint","fas fa-tint-slash","fas fa-tired","fas fa-toggle-off","fas fa-toggle-on","fas fa-toilet","fas fa-toilet-paper","fas fa-toolbox","fas fa-tools","fas fa-tooth","fas fa-torah","fas fa-torii-gate","fas fa-tractor","fas fa-trademark","fas fa-traffic-light","fas fa-train","fas fa-tram","fas fa-transgender","fas fa-transgender-alt","fas fa-trash","fas fa-trash-alt","fas fa-tree","fas fa-trophy","fas fa-truck","fas fa-truck-loading","fas fa-truck-monster","fas fa-truck-moving","fas fa-truck-pickup","fas fa-tshirt","fas fa-tty","fas fa-tv","fas fa-umbrella","fas fa-umbrella-beach","fas fa-underline","fas fa-undo","fas fa-undo-alt","fas fa-universal-access","fas fa-university","fas fa-unlink","fas fa-unlock","fas fa-unlock-alt","fas fa-upload","fas fa-user","fas fa-user-alt","fas fa-user-alt-slash","fas fa-user-astronaut","fas fa-user-check","fas fa-user-circle","fas fa-user-clock","fas fa-user-cog","fas fa-user-edit","fas fa-user-friends","fas fa-user-graduate","fas fa-user-injured","fas fa-user-lock","fas fa-user-md","fas fa-user-minus","fas fa-user-ninja","fas fa-user-plus","fas fa-user-secret","fas fa-user-shield","fas fa-user-slash","fas fa-user-tag","fas fa-user-tie","fas fa-user-times","fas fa-users","fas fa-users-cog","fas fa-utensil-spoon","fas fa-utensils","fas fa-vector-square","fas fa-venus","fas fa-venus-double","fas fa-venus-mars","fas fa-vial","fas fa-vials","fas fa-video","fas fa-video-slash","fas fa-vihara","fas fa-volleyball-ball","fas fa-volume-down","fas fa-volume-mute","fas fa-volume-off","fas fa-volume-up","fas fa-vote-yea","fas fa-vr-cardboard","fas fa-walking","fas fa-wallet","fas fa-warehouse","fas fa-water","fas fa-weight","fas fa-weight-hanging","fas fa-wheelchair","fas fa-wifi","fas fa-wind","fas fa-window-close","fas fa-window-maximize","fas fa-window-minimize","fas fa-window-restore","fas fa-wine-bottle","fas fa-wine-glass","fas fa-wine-glass-alt","fas fa-won-sign","fas fa-wrench","fas fa-x-ray","fas fa-yen-sign","fas fa-yin-yang","far fa-address-book","far fa-address-card","far fa-angry","far fa-arrow-alt-circle-down","far fa-arrow-alt-circle-left","far fa-arrow-alt-circle-right","far fa-arrow-alt-circle-up","far fa-bell","far fa-bell-slash","far fa-bookmark","far fa-building","far fa-calendar","far fa-calendar-alt","far fa-calendar-check","far fa-calendar-minus","far fa-calendar-plus","far fa-calendar-times","far fa-caret-square-down","far fa-caret-square-left","far fa-caret-square-right","far fa-caret-square-up","far fa-chart-bar","far fa-check-circle","far fa-check-square","far fa-circle","far fa-clipboard","far fa-clock","far fa-clone","far fa-closed-captioning","far fa-comment","far fa-comment-alt","far fa-comment-dots","far fa-comments","far fa-compass","far fa-copy","far fa-copyright","far fa-credit-card","far fa-dizzy","far fa-dot-circle","far fa-edit","far fa-envelope","far fa-envelope-open","far fa-eye","far fa-eye-slash","far fa-file","far fa-file-alt","far fa-file-archive","far fa-file-audio","far fa-file-code","far fa-file-excel","far fa-file-image","far fa-file-pdf","far fa-file-powerpoint","far fa-file-video","far fa-file-word","far fa-flag","far fa-flushed","far fa-folder","far fa-folder-open","far fa-frown","far fa-frown-open","far fa-futbol","far fa-gem","far fa-grimace","far fa-grin","far fa-grin-alt","far fa-grin-beam","far fa-grin-beam-sweat","far fa-grin-hearts","far fa-grin-squint","far fa-grin-squint-tears","far fa-grin-stars","far fa-grin-tears","far fa-grin-tongue","far fa-grin-tongue-squint","far fa-grin-tongue-wink","far fa-grin-wink","far fa-hand-lizard","far fa-hand-paper","far fa-hand-peace","far fa-hand-point-down","far fa-hand-point-left","far fa-hand-point-right","far fa-hand-point-up","far fa-hand-pointer","far fa-hand-rock","far fa-hand-scissors","far fa-hand-spock","far fa-handshake","far fa-hdd","far fa-heart","far fa-hospital","far fa-hourglass","far fa-id-badge","far fa-id-card","far fa-image","far fa-images","far fa-keyboard","far fa-kiss","far fa-kiss-beam","far fa-kiss-wink-heart","far fa-laugh","far fa-laugh-beam","far fa-laugh-squint","far fa-laugh-wink","far fa-lemon","far fa-life-ring","far fa-lightbulb","far fa-list-alt","far fa-map","far fa-meh","far fa-meh-blank","far fa-meh-rolling-eyes","far fa-minus-square","far fa-money-bill-alt","far fa-moon","far fa-newspaper","far fa-object-group","far fa-object-ungroup","far fa-paper-plane","far fa-pause-circle","far fa-play-circle","far fa-plus-square","far fa-question-circle","far fa-registered","far fa-sad-cry","far fa-sad-tear","far fa-save","far fa-share-square","far fa-smile","far fa-smile-beam","far fa-smile-wink","far fa-snowflake","far fa-square","far fa-star","far fa-star-half","far fa-sticky-note","far fa-stop-circle","far fa-sun","far fa-surprise","far fa-thumbs-down","far fa-thumbs-up","far fa-times-circle","far fa-tired","far fa-trash-alt","far fa-user","far fa-user-circle","far fa-window-close","far fa-window-maximize","far fa-window-minimize","far fa-window-restore","fab fa-500px","fab fa-accessible-icon","fab fa-accusoft","fab fa-acquisitions-incorporated","fab fa-adn","fab fa-adobe","fab fa-adversal","fab fa-affiliatetheme","fab fa-algolia","fab fa-alipay","fab fa-amazon","fab fa-amazon-pay","fab fa-amilia","fab fa-android","fab fa-angellist","fab fa-angrycreative","fab fa-angular","fab fa-app-store","fab fa-app-store-ios","fab fa-apper","fab fa-apple","fab fa-apple-pay","fab fa-artstation","fab fa-asymmetrik","fab fa-atlassian","fab fa-audible","fab fa-autoprefixer","fab fa-avianex","fab fa-aviato","fab fa-aws","fab fa-bandcamp","fab fa-behance","fab fa-behance-square","fab fa-bimobject","fab fa-bitbucket","fab fa-bitcoin","fab fa-bity","fab fa-black-tie","fab fa-blackberry","fab fa-blogger","fab fa-blogger-b","fab fa-bluetooth","fab fa-bluetooth-b","fab fa-btc","fab fa-buromobelexperte","fab fa-buysellads","fab fa-canadian-maple-leaf","fab fa-cc-amazon-pay","fab fa-cc-amex","fab fa-cc-apple-pay","fab fa-cc-diners-club","fab fa-cc-discover","fab fa-cc-jcb","fab fa-cc-mastercard","fab fa-cc-paypal","fab fa-cc-stripe","fab fa-cc-visa","fab fa-centercode","fab fa-centos","fab fa-chrome","fab fa-cloudscale","fab fa-cloudsmith","fab fa-cloudversify","fab fa-codepen","fab fa-codiepie","fab fa-confluence","fab fa-connectdevelop","fab fa-contao","fab fa-cpanel","fab fa-creative-commons","fab fa-creative-commons-by","fab fa-creative-commons-nc","fab fa-creative-commons-nc-eu","fab fa-creative-commons-nc-jp","fab fa-creative-commons-nd","fab fa-creative-commons-pd","fab fa-creative-commons-pd-alt","fab fa-creative-commons-remix","fab fa-creative-commons-sa","fab fa-creative-commons-sampling","fab fa-creative-commons-sampling-plus","fab fa-creative-commons-share","fab fa-creative-commons-zero","fab fa-critical-role","fab fa-css3","fab fa-css3-alt","fab fa-cuttlefish","fab fa-d-and-d","fab fa-d-and-d-beyond","fab fa-dashcube","fab fa-delicious","fab fa-deploydog","fab fa-deskpro","fab fa-dev","fab fa-deviantart","fab fa-dhl","fab fa-diaspora","fab fa-digg","fab fa-digital-ocean","fab fa-discord","fab fa-discourse","fab fa-dochub","fab fa-docker","fab fa-draft2digital","fab fa-dribbble","fab fa-dribbble-square","fab fa-dropbox","fab fa-drupal","fab fa-dyalog","fab fa-earlybirds","fab fa-ebay","fab fa-edge","fab fa-elementor","fab fa-ello","fab fa-ember","fab fa-empire","fab fa-envira","fab fa-erlang","fab fa-ethereum","fab fa-etsy","fab fa-expeditedssl","fab fa-facebook","fab fa-facebook-f","fab fa-facebook-messenger","fab fa-facebook-square","fab fa-fantasy-flight-games","fab fa-fedex","fab fa-fedora","fab fa-figma","fab fa-firefox","fab fa-first-order","fab fa-first-order-alt","fab fa-firstdraft","fab fa-flickr","fab fa-flipboard","fab fa-fly","fab fa-font-awesome","fab fa-font-awesome-alt","fab fa-font-awesome-flag","fab fa-fonticons","fab fa-fonticons-fi","fab fa-fort-awesome","fab fa-fort-awesome-alt","fab fa-forumbee","fab fa-foursquare","fab fa-free-code-camp","fab fa-freebsd","fab fa-fulcrum","fab fa-galactic-republic","fab fa-galactic-senate","fab fa-get-pocket","fab fa-gg","fab fa-gg-circle","fab fa-git","fab fa-git-square","fab fa-github","fab fa-github-alt","fab fa-github-square","fab fa-gitkraken","fab fa-gitlab","fab fa-gitter","fab fa-glide","fab fa-glide-g","fab fa-gofore","fab fa-goodreads","fab fa-goodreads-g","fab fa-google","fab fa-google-drive","fab fa-google-play","fab fa-google-plus","fab fa-google-plus-g","fab fa-google-plus-square","fab fa-google-wallet","fab fa-gratipay","fab fa-grav","fab fa-gripfire","fab fa-grunt","fab fa-gulp","fab fa-hacker-news","fab fa-hacker-news-square","fab fa-hackerrank","fab fa-hips","fab fa-hire-a-helper","fab fa-hooli","fab fa-hornbill","fab fa-hotjar","fab fa-houzz","fab fa-html5","fab fa-hubspot","fab fa-imdb","fab fa-instagram","fab fa-intercom","fab fa-internet-explorer","fab fa-invision","fab fa-ioxhost","fab fa-itunes","fab fa-itunes-note","fab fa-java","fab fa-jedi-order","fab fa-jenkins","fab fa-jira","fab fa-joget","fab fa-joomla","fab fa-js","fab fa-js-square","fab fa-jsfiddle","fab fa-kaggle","fab fa-keybase","fab fa-keycdn","fab fa-kickstarter","fab fa-kickstarter-k","fab fa-korvue","fab fa-laravel","fab fa-lastfm","fab fa-lastfm-square","fab fa-leanpub","fab fa-less","fab fa-line","fab fa-linkedin","fab fa-linkedin-in","fab fa-linode","fab fa-linux","fab fa-lyft","fab fa-magento","fab fa-mailchimp","fab fa-mandalorian","fab fa-markdown","fab fa-mastodon","fab fa-maxcdn","fab fa-medapps","fab fa-medium","fab fa-medium-m","fab fa-medrt","fab fa-meetup","fab fa-megaport","fab fa-mendeley","fab fa-microsoft","fab fa-mix","fab fa-mixcloud","fab fa-mizuni","fab fa-modx","fab fa-monero","fab fa-napster","fab fa-neos","fab fa-nimblr","fab fa-nintendo-switch","fab fa-node","fab fa-node-js","fab fa-npm","fab fa-ns8","fab fa-nutritionix","fab fa-odnoklassniki","fab fa-odnoklassniki-square","fab fa-old-republic","fab fa-opencart","fab fa-openid","fab fa-opera","fab fa-optin-monster","fab fa-osi","fab fa-page4","fab fa-pagelines","fab fa-palfed","fab fa-patreon","fab fa-paypal","fab fa-penny-arcade","fab fa-periscope","fab fa-phabricator","fab fa-phoenix-framework","fab fa-phoenix-squadron","fab fa-php","fab fa-pied-piper","fab fa-pied-piper-alt","fab fa-pied-piper-hat","fab fa-pied-piper-pp","fab fa-pinterest","fab fa-pinterest-p","fab fa-pinterest-square","fab fa-playstation","fab fa-product-hunt","fab fa-pushed","fab fa-python","fab fa-qq","fab fa-quinscape","fab fa-quora","fab fa-r-project","fab fa-raspberry-pi","fab fa-ravelry","fab fa-react","fab fa-reacteurope","fab fa-readme","fab fa-rebel","fab fa-red-river","fab fa-reddit","fab fa-reddit-alien","fab fa-reddit-square","fab fa-redhat","fab fa-renren","fab fa-replyd","fab fa-researchgate","fab fa-resolving","fab fa-rev","fab fa-rocketchat","fab fa-rockrms","fab fa-safari","fab fa-sass","fab fa-schlix","fab fa-scribd","fab fa-searchengin","fab fa-sellcast","fab fa-sellsy","fab fa-servicestack","fab fa-shirtsinbulk","fab fa-shopware","fab fa-simplybuilt","fab fa-sistrix","fab fa-sith","fab fa-sketch","fab fa-skyatlas","fab fa-skype","fab fa-slack","fab fa-slack-hash","fab fa-slideshare","fab fa-snapchat","fab fa-snapchat-ghost","fab fa-snapchat-square","fab fa-soundcloud","fab fa-sourcetree","fab fa-speakap","fab fa-spotify","fab fa-squarespace","fab fa-stack-exchange","fab fa-stack-overflow","fab fa-staylinked","fab fa-steam","fab fa-steam-square","fab fa-steam-symbol","fab fa-sticker-mule","fab fa-strava","fab fa-stripe","fab fa-stripe-s","fab fa-studiovinari","fab fa-stumbleupon","fab fa-stumbleupon-circle","fab fa-superpowers","fab fa-supple","fab fa-suse","fab fa-teamspeak","fab fa-telegram","fab fa-telegram-plane","fab fa-tencent-weibo","fab fa-the-red-yeti","fab fa-themeco","fab fa-themeisle","fab fa-think-peaks","fab fa-trade-federation","fab fa-trello","fab fa-tripadvisor","fab fa-tumblr","fab fa-tumblr-square","fab fa-twitch","fab fa-twitter","fab fa-twitter-square","fab fa-typo3","fab fa-uber","fab fa-ubuntu","fab fa-uikit","fab fa-uniregistry","fab fa-untappd","fab fa-ups","fab fa-usb","fab fa-usps","fab fa-ussunnah","fab fa-vaadin","fab fa-viacoin","fab fa-viadeo","fab fa-viadeo-square","fab fa-viber","fab fa-vimeo","fab fa-vimeo-square","fab fa-vimeo-v","fab fa-vine","fab fa-vk","fab fa-vnv","fab fa-vuejs","fab fa-weebly","fab fa-weibo","fab fa-weixin","fab fa-whatsapp","fab fa-whatsapp-square","fab fa-whmcs","fab fa-wikipedia-w","fab fa-windows","fab fa-wix","fab fa-wizards-of-the-coast","fab fa-wolf-pack-battalion","fab fa-wordpress","fab fa-wordpress-simple","fab fa-wpbeginner","fab fa-wpexplorer","fab fa-wpforms","fab fa-wpressr","fab fa-xbox","fab fa-xing","fab fa-xing-square","fab fa-y-combinator","fab fa-yahoo","fab fa-yandex","fab fa-yandex-international","fab fa-yarn","fab fa-yelp","fab fa-yoast","fab fa-youtube","fab fa-youtube-square","fab fa-zhihu"];const{__:Mn}=wp.i18n,{Component:Tn,Fragment:In}=wp.element;var Ln=class extends Tn{state={isOpen:!1,filterText:"",showIcons:!1};render(){const{value:t,label:a,className:r}=this.props,{filterText:o,isOpen:n}=this.state;let l=[];o.length>2?On.forEach((e=>{e.includes(o)&&l.push(e)})):l=On;const i=t?"has-icon":"";return(0,e.createElement)("div",{className:`rttpg-field rttpg-icon-main-wrapper ${r}`},this.props.label&&(0,e.createElement)(In,null,(0,e.createElement)("label",{class:"components-input-control__label"},a)),(0,e.createElement)("div",{className:"icon-inner-wrapper"},t&&(0,e.createElement)("span",{onClick:()=>this.props.onChange(""),className:"rttpg-remove-icon far fa-trash-alt fa-fw"}),(0,e.createElement)("div",{className:`choose-icon ${i}`,onClick:e=>this.setState({isOpen:!this.state.isOpen})},t?(0,e.createElement)("span",{className:`default-icon ${t}`}):(0,e.createElement)("span",{className:"fas fa-plus"})),n&&(0,e.createElement)("div",{className:"rttpg-icon-wrapper"},(0,e.createElement)("span",{onClick:e=>this.setState({isOpen:!1}),className:"rttpg-remove-icon fas fa-times"}),(0,e.createElement)("input",{type:"text",value:this.state.filterText,placeholder:"Search...",onChange:e=>this.setState({filterText:e.target.value}),autoComplete:"off"}),(0,e.createElement)("div",{className:"rttpg-icon-list-icons"},l.map((a=>(0,e.createElement)("span",{className:t==a?"rttpg-active":"",onClick:e=>{this.props.onChange(a),this.setState({isOpen:!1})}},(0,e.createElement)("span",{className:a}))))))))}};const{__:An}=wp.i18n;var Fn=function(t){const{attributes:a,setAttributes:r}=t.data,{show_read_more:o,readmore_btn_style:n,read_more_label:l,show_btn_icon:i,readmore_btn_icon:s,readmore_icon_position:c}=a;return"show"!==o?"":(0,e.createElement)(Oe.PanelBody,{title:An("Read More","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.SelectControl,{label:An("Button Style","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default-style",label:An("Default from style","the-post-grid")},{value:"only-text",label:An("Text Button","the-post-grid")}],value:n,onChange:e=>r({readmore_btn_style:e})}),(0,e.createElement)(Oe.TextControl,{autocomplete:"off",label:An("Button Label","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",placeholder:"Type Read More Label here",value:l,onChange:e=>r({read_more_label:e})}),(0,e.createElement)(Oe.ToggleControl,{label:An("Show Button Icon","the-post-grid"),className:"rttpg-toggle-control-field",checked:i,onChange:e=>r({show_btn_icon:e?"yes":""})}),"yes"===i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ln,{label:An("Choose Icon","the-post-grid"),className:"components-base-control rttpg-toggle-control-field",value:s,onChange:e=>r({readmore_btn_icon:e})}),(0,e.createElement)(Oe.SelectControl,{label:An("Icon Position","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"left",label:An("Left","the-post-grid")},{value:"right",label:An("Right","the-post-grid")}],value:c,onChange:e=>r({readmore_icon_position:e})})))};const{__:Bn}=wp.i18n,{useState:jn,useEffect:Hn}=wp.element,{Dropdown:$n,Button:Rn,SelectControl:Vn}=wp.components;var zn=function(t){const{label:a,value:r,onChange:o}=t,n=(e,t)=>{const a=JSON.parse(JSON.stringify(r));a[t]=e,o(a)};return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-typography-wrap"},a&&(0,e.createElement)("span",{className:"rttpg-label"},a),(0,e.createElement)("div",{className:"rttpg-typography"},(0,e.createElement)($n,{className:"rttpg-typography-dropdown-icon",contentClassName:"rttpg-components-popover rttpg-cp-typography-content",position:"bottom right",renderToggle:t=>{let{isOpen:a,onToggle:r}=t;return(0,e.createElement)(Rn,{isSmall:!0,onClick:r,"aria-expanded":a,icon:"edit"})},renderContent:()=>(0,e.createElement)("div",{className:"rttpg-typography-content"},(0,e.createElement)(qe,{label:Bn("Font Size"),responsive:!0,value:r.size,units:["px","em","%"],min:1,max:"em"===r.size.unit?10:200,step:"em"===r.size.unit?.1:1,onChange:e=>n(e,"size")}),(0,e.createElement)(Vn,{label:Bn("Font Weight"),value:r.weight,options:Y,onChange:e=>n(e,"weight")}),(0,e.createElement)(Vn,{label:Bn("Text Transform"),value:r.transform,options:q,onChange:e=>n(e,"transform")}),(0,e.createElement)(qe,{label:Bn("Letter Spacing"),responsive:!0,value:r.spacing,units:["px","em"],min:-5,max:"em"===r.spacing.unit?10:100,step:"em"===r.spacing.unit?.1:1,onChange:e=>n(e,"spacing")}),(0,e.createElement)(qe,{label:Bn("Line Height"),responsive:!0,value:r.height,units:["px","em"],min:1,max:"em"===r.height.unit?10:100,step:"em"===r.height.unit?.1:1,onChange:e=>n(e,"height")}))})))};const{__:qn}=wp.i18n,{useState:Yn,useEffect:Gn}=wp.element,{Dropdown:Un,Tooltip:Wn,ColorPicker:Jn,Button:Qn}=wp.components;var Kn=function(t){let{label:a,color:r,onChange:o}=t;const[n,l]=Yn(r);return Gn((()=>{l(r)}),[r]),(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-color-wrap"},a&&(0,e.createElement)("span",{className:"rttpg-label"},a),(0,e.createElement)("div",{className:"rttpg-color"},(0,e.createElement)(Un,{contentClassName:"rttpg-components-popover rttpg-cp-color-content",renderToggle:t=>{let{isOpen:a,onToggle:o}=t;return(0,e.createElement)(Wn,{text:r||"default"},(0,e.createElement)("div",{className:"rttpg-color-ball"},(0,e.createElement)("div",{style:{height:25,width:25,borderRadius:"50%",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",backgroundColor:n},"aria-expanded":a,onClick:o,"aria-label":r||"default"})))},renderContent:()=>(0,e.createElement)(Jn,{color:r,onChangeComplete:e=>(e=>{let{rgb:t,hex:a}=e,r=t?`rgba(${t.r},${t.g},${t.b},${t.a})`:a;o(r)})(e)})}),n&&(0,e.createElement)(Qn,{isSmall:!0,className:"rttpg-undo-btn",icon:"image-rotate",onClick:()=>o(void 0)})))};const Zn=t=>{const{responsive:a,onChange:r,className:o,units:n,value:l,type:i}=t,[s,c]=(0,Ie.useState)((()=>window.rttpgDevice||"lg")),u={isLinked:!0,unit:"px",value:""},f=a?l[s]?l[s]:u:l||u,d=null==t?void 0:t.disableLink,p=null==t?void 0:t.allowDimension;!0===d&&(f.isLinked=!1),null!=t&&t.important&&(f.important=!0);const m=e=>{!0===d&&(e.isLinked=!1),e.type=i,r(e)};let g;if(f.isLinked){const e=null!=f&&f.value?f.value.split(" ")[0]:"";g=new Array(5).fill(e)}else g=null!=f&&f.value?f.value.split(" "):["","","",""];return(0,e.createElement)("div",{className:`rttpg-control-field rttpg-cf-dimension ${o}`},(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("div",{className:"rt-left-part"},(0,e.createElement)("div",{className:"rttpg-label"},t.label),a&&(0,e.createElement)(He,{device:s,onChange:e=>{c(e);const t=JSON.parse(JSON.stringify(l));t[e]||(t[e]=u,m(t))}})),(0,e.createElement)("div",{className:"rt-right-part"},(0,e.createElement)("div",{className:"rttpg-units-choices"},(n&&Array.isArray(n)?n:["px","em","%"]).map((t=>(0,e.createElement)("label",{className:(null==f?void 0:f.unit)!==t&&(null!=f&&f.unit||t!==u.unit)?"":"active",onClick:()=>(e=>{const t=JSON.parse(JSON.stringify(l));a?t[s].unit=e:t.unit=e,m(t)})(t)},t)))))),(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)("div",{className:"rttpg-control-dimensions"},["top","right","bottom","left"].map(((t,r)=>{let o=!1;return("vertical"===p&&["left","right"].includes(t)||"horizontal"===p&&["top","bottom"].includes(t))&&(o=!0),(0,e.createElement)("div",{className:"rttpg-control-dimension"},(0,e.createElement)("input",{type:"number",value:g[r],"data-setting":t,onChange:e=>((e,t)=>{let r=f.value?f.value.split(" "):["","","",""];(f.isLinked||r.length<4)&&(r=new Array(5).fill(r[0]||"0"));const[o,n,i,c]=r,u=JSON.parse(JSON.stringify(l)),d=f.isLinked?`${t} ${t} ${t} ${t}`:`${"top"===e?`${t}`:`${o}`} ${"right"===e?`${t}`:`${n}`} ${"bottom"===e?`${t}`:`${i}`} ${"left"===e?`${t}`:`${c}`}`;a?u[s].value=d:u.value=d,m(u)})(t,e.target.value),disabled:o}),(0,e.createElement)("label",{className:"rttpg-control-dimension-label"},t))})),(0,e.createElement)("div",{className:"rttpg-control-dimension linking"},(0,e.createElement)("button",{className:"rttpg-link-dimensions "+(null!=f&&f.isLinked?"admin-links linked":"editor-unlink"),onClick:()=>{if(!0===d)return;const e=JSON.parse(JSON.stringify(l));a?(e[s].isLinked=!e[s].isLinked,e[s].isLinked&&(e[s].value=e[s].value?e[s].value.split(" ")[0]:"")):e.isLinked=!e.isLinked,m(e)}},(0,e.createElement)("span",{className:"rt-dm-link-icon dashicons dashicons-"+(null!=f&&f.isLinked?"admin-links linked":"editor-unlink")}))))))};Zn.propTypes={label:Ze().string,value:Ze().object,onChange:Ze().func.isRequired,type:Ze().oneOf(["padding","margin","borderRadius"])};var Xn=Zn;const{__:el}=wp.i18n;var tl=function(t){const{attributes:a,setAttributes:r}=t.data,{pagination_style_tabs:o,show_pagination:n,pagination_typography:l,pagination_text_align:i,pagination_type:s,pagination_spacing:c,pagination_padding:u,pagination_border_radius:f,pagination_color:d,pagination_bg:p,pagination_border_color:m,pagination_color_hover:g,pagination_bg_hover:h,pagination_border_color_hover:b,pagination_color_active:v,pagination_bg_active:_,pagination_border_color_active:y}=a;return"show"!==n||"load_on_scroll"===s?"":(0,e.createElement)(Oe.PanelBody,{title:el("Pagination / LoadMore","the-post-grid"),initialOpen:!1},(0,e.createElement)(zn,{label:el("Typography"),value:l,onChange:e=>r({pagination_typography:e})}),(0,e.createElement)(We,{label:el("Alignment","the-post-grid"),options:["left","center","right"],value:i,responsive:!0,onChange:e=>r({pagination_text_align:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(Xn,{label:el("Button Vertical Spacing","the-post-grid"),type:"margin",responsive:!0,value:c,onChange:e=>{r({pagination_spacing:e})}}),(0,e.createElement)(Xn,{label:el("Button Padding","the-post-grid"),type:"padding",responsive:!0,value:u,onChange:e=>{r({pagination_padding:e})}}),(0,e.createElement)(Xn,{label:el("Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:f,onChange:e=>{r({pagination_border_radius:e})}}),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},el("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Oe.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},j.map(((t,a)=>(0,e.createElement)(Oe.Button,{key:a,isPrimary:o===t.value,isSecondary:o!==t.value,onClick:()=>r({pagination_style_tabs:t.value})},t.label)))),"normal"===o&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:el("Color","the-post-grid"),color:d,onChange:e=>r({pagination_color:e})}),(0,e.createElement)(Kn,{label:el("Background Color","the-post-grid"),color:p,onChange:e=>r({pagination_bg:e})}),(0,e.createElement)(Kn,{label:el("Border Color","the-post-grid"),color:m,onChange:e=>r({pagination_border_color:e})})),"hover"===o&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:el("Color - Hover","the-post-grid"),color:g,onChange:e=>r({pagination_color_hover:e})}),(0,e.createElement)(Kn,{label:el("Background Color - Hover","the-post-grid"),color:h,onChange:e=>r({pagination_bg_hover:e})}),(0,e.createElement)(Kn,{label:el("Border Color - Hover","the-post-grid"),color:b,onChange:e=>r({pagination_border_color_hover:e})})),"active"===o&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:el("Color - Active","the-post-grid"),color:v,onChange:e=>r({pagination_color_active:e})}),(0,e.createElement)(Kn,{label:el("Background Color - Active","the-post-grid"),color:_,onChange:e=>r({pagination_bg_active:e})}),(0,e.createElement)(Kn,{label:el("Border Color - Active","the-post-grid"),color:y,onChange:e=>r({pagination_border_color_active:e})})))};const{__:al}=wp.i18n;var rl=function(t){const{attributes:a,setAttributes:r}=t.data,{show_section_title:o,filter_btn_style:n,section_title_alignment:l,section_title_margin:i,section_title_typography:s,section_title_color:c,section_title_bg_color:u,section_title_dot_color:f,section_title_style:d,section_title_line_color:p}=a;return"show"!==o?"":(0,e.createElement)(Oe.PanelBody,{title:al("Section Title","the-post-grid"),initialOpen:!0},"carousel"!==n&&(0,e.createElement)(We,{label:al("Alignment","the-post-grid"),options:["left","center","right"],value:l,onChange:e=>r({section_title_alignment:e})}),(0,e.createElement)(Xn,{label:al("Margin","the-post-grid"),isLinked:!1,type:"margin",responsive:!0,value:i,onChange:e=>{r({section_title_margin:e})}}),(0,e.createElement)(zn,{label:al("Typography","the-post-grid"),value:s,onChange:e=>r({section_title_typography:e})}),(0,e.createElement)(Kn,{label:al("Title Color","the-post-grid"),color:c,onChange:e=>r({section_title_color:e})}),["style2","style3"].includes(d)&&(0,e.createElement)(Kn,{label:al("Title Background Color","the-post-grid"),color:u,onChange:e=>r({section_title_bg_color:e})}),"style1"===d&&(0,e.createElement)(Kn,{label:al("Dot Color","the-post-grid"),color:f,onChange:e=>r({section_title_dot_color:e})}),"default"!==d&&(0,e.createElement)(Kn,{label:al("Line / Border Color","the-post-grid"),color:p,onChange:e=>r({section_title_line_color:e})}))};const{__:ol}=wp.i18n;var nl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,title_spacing:n,title_padding:l,title_typography:i,title_offset_typography:s,title_border_visibility:c,title_alignment:u,title_box_hover_tab:f,title_color:d,title_bg_color:p,title_border_color:m,title_hover_border_color:g,title_hover_color:h,title_bg_color_hover:b,title_color_box_hover:v,title_bg_color_box_hover:_,title_border_color_hover:y,title_hover_underline:w,show_title:E}=a;if("show"!==E)return"";let C=o+"_layout";return(0,e.createElement)(Oe.PanelBody,{title:ol("Post Title","the-post-grid"),initialOpen:!1},(0,e.createElement)(zn,{label:ol("Typography"),value:i,onChange:e=>r({title_typography:e})}),["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2"].includes(a[C])&&(0,e.createElement)(zn,{label:ol("Offset Typography"),value:s,onChange:e=>r({title_offset_typography:e})}),"grid_hover-layout3"===a[C]&&(0,e.createElement)(Oe.SelectControl,{label:ol("Title Border Bottom","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:ol("Default","the-post-grid")},{value:"show",label:ol("Show","the-post-grid")},{value:"hide",label:ol("Hide","the-post-grid")}],value:c,onChange:e=>r({title_border_visibility:e})}),(0,e.createElement)(We,{label:ol("Alignment","the-post-grid"),options:["left","center","right"],value:u,onChange:e=>r({title_alignment:e})}),(0,e.createElement)(Xn,{label:ol("Title Margin","the-post-grid"),type:"margin",responsive:!0,value:n,onChange:e=>{r({title_spacing:e})}}),(0,e.createElement)(Xn,{label:ol("Title Padding","the-post-grid"),type:"padding",responsive:!0,value:l,onChange:e=>{r({title_padding:e})}}),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},ol("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Oe.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},B.map(((t,a)=>(0,e.createElement)(Oe.Button,{key:a,isPrimary:f===t.value,isSecondary:f!==t.value,onClick:()=>r({title_box_hover_tab:t.value})},t.label)))),"normal"===f&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:ol("Title Color","the-post-grid"),color:d,onChange:e=>r({title_color:e})}),(0,e.createElement)(Kn,{label:ol("Title Background","the-post-grid"),color:p,onChange:e=>r({title_bg_color:e})}),"hide"!==c&&"grid_hover-layout3"===a[C]&&(0,e.createElement)(Kn,{label:ol("Title Separator Color","the-post-grid"),color:m,onChange:e=>r({title_border_color:e})})),"hover"===f&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:ol("Title Color on Hover","the-post-grid"),color:h,onChange:e=>r({title_hover_color:e})}),(0,e.createElement)(Kn,{label:ol("Title Background on hover","the-post-grid"),color:b,onChange:e=>r({title_bg_color_hover:e})}),"enable"===w&&(0,e.createElement)(Kn,{label:ol("Title Hover Border Color","the-post-grid"),color:g,onChange:e=>r({title_hover_border_color:e})})),"box_hover"===f&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:ol("Title color on boxhover","the-post-grid"),color:v,onChange:e=>r({title_color_box_hover:e})}),(0,e.createElement)(Kn,{label:ol("Title Background on boxhover","the-post-grid"),color:_,onChange:e=>r({title_bg_color_box_hover:e})}),"hide"!==c&&"grid_hover-layout3"===a[C]&&(0,e.createElement)(Kn,{label:ol("Title Separator color - boxhover","the-post-grid"),color:y,onChange:e=>r({title_border_color_hover:e})})))};const{__:ll}=wp.i18n,{useState:il,useEffect:sl}=wp.element,{GradientPicker:cl}=wp.components;var ul=function(t){const{label:a,value:r,onChange:o}=t;return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-gradient-wrap"},a&&(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},a)),(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)(cl,{label:"helloooooo",value:r,onChange:e=>(e=>{o(e)})(e),gradients:[{name:"Green",gradient:"linear-gradient(135deg, #80F1A6 0%, #EFD000 100%)",slug:"green"},{name:"Blue",gradient:"linear-gradient(45deg, #0066FF 0%, #0A51BB 100%)",slug:"blue"},{name:"Dark Blue",gradient:"linear-gradient(50deg, #15D2E3 10%, #11D6E2 40%, #10D7E2 80%)",slug:"darkBlue"},{name:"Yellow",gradient:"linear-gradient(135deg, #FBDA61 2.88%, #F76B1C 98.13%)",slug:"yellow"},{name:"Merun",gradient:"linear-gradient(135deg, #E25544 2.88%, #620C90 98.14%)",slug:"merun"}]})))};const{__:fl}=wp.i18n;function dl(t){let{imageUrl:a,onDeleteImage:r,onEditImage:o=null}=t;return(0,e.createElement)("div",{className:"rttpg-image-avatar",style:{backgroundImage:`url(${a})`}},(0,e.createElement)("button",{className:"open-image-button",onClick:o}),(0,e.createElement)("div",{className:"rttpg-media-actions"},(0,e.createElement)("button",{className:"button rttpg-btn-delete",onClick:()=>r()},(0,e.createElement)("span",{"aria-label":fl("Close"),className:"far fa-trash-alt fa-fw"}))))}dl.propTypes={imageUrl:Ze().string.isRequired,onDeleteImage:Ze().func.isRequired};var pl=dl;const{useState:ml,useEffect:gl}=wp.element,{BaseControl:hl,SelectControl:bl,Button:vl}=wp.components;var _l=function(t){const{label:a,value:r,onChange:o,responsive:n,name:l,options:i}=t,[s,c]=ml((()=>window.rttpgDevice||"lg")),u={[s]:""};return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-bg-property"},(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},a),n&&(0,e.createElement)(He,{device:s,onChange:e=>{c(e);const t=JSON.parse(JSON.stringify(r));t[l]||(t[l]=u,o(t))}})),(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)(bl,{value:n?r[l][s]:r[l],options:i,onChange:e=>(e=>{const t=JSON.parse(JSON.stringify(r));n?t[l][s]=e:t[l]=e,o(t)})(e)})))};const{__:yl}=wp.i18n,{useState:wl,useEffect:El}=wp.element,{MediaUpload:Cl}=wp.blockEditor,{BaseControl:xl,Button:kl}=wp.components;var Nl=function(t){const[a,r]=wl((()=>window.rttpgDevice||"md")),{label:o,value:n,image:l,onChange:i}=t,s=["imgPosition","imgAttachment","imgRepeat","imgSize"],c=(e,t)=>{const a=JSON.parse(JSON.stringify(n));s.includes(t)?a.imgProperty=e:a[t]=e,i(a)},u=void 0!==n.img?n.img.imgURL:"",f=void 0!==n.img?n.img.imgID:"";return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-bg-img-wrap"},o&&(0,e.createElement)("span",{className:"rttpg-label"},o),(0,e.createElement)("div",{className:"rttpg-bg-img"},(0,e.createElement)(Kn,{label:yl("Color"),color:n.color||"",onChange:e=>c(e,"color")}),!1!==l&&(0,e.createElement)(xl,{label:yl("Image")},(0,e.createElement)(Cl,{onSelect:e=>{const t={imgURL:e.url,imgID:e.id};c(t,"img")},allowedTypes:["image"],value:f,render:t=>{let{open:a}=t;return u?(0,e.createElement)(pl,{imageUrl:u,onEditImage:a,onDeleteImage:()=>{c("","img")}}):(0,e.createElement)("div",{onClick:a,className:"rttpg-placeholder-image"},(0,e.createElement)("div",{className:"dashicon dashicons dashicons-insert"}),(0,e.createElement)("div",null,yl("Insert")))}}),u&&(0,e.createElement)(_l,{label:yl("Position"),responsive:!0,value:n.imgProperty,name:"imgPosition",options:$,onChange:e=>{c(e,"imgPosition")}}),u&&(0,e.createElement)(_l,{label:yl("Attachment"),responsive:!0,value:n.imgProperty,name:"imgAttachment",options:z,onChange:e=>c(e,"imgAttachment")}),u&&(0,e.createElement)(_l,{label:yl("Repeat"),responsive:!0,value:n.imgProperty,name:"imgRepeat",options:V,onChange:e=>c(e,"imgRepeat")}),u&&(0,e.createElement)(_l,{label:yl("Size"),responsive:!0,value:n.imgProperty,name:"imgSize",options:R,onChange:e=>c(e,"imgSize")}))))};const{__:Sl}=wp.i18n,{useState:Dl,useEffect:Pl}=wp.element,{Button:Ol,ButtonGroup:Ml,Tooltip:Tl}=wp.components;var Il=function(t){const a={openBGColor:0,type:"classic",classic:{color:"",img:{imgURL:"",imgID:""},imgProperty:{imgPosition:{lg:""},imgAttachment:{lg:""},imgRepeat:{lg:""},imgSize:{lg:""}}},gradient:""},{label:r,value:o,onChange:n}=t,l=(e,t)=>{n(Object.assign({},a,o||{},{openBGColor:1},{[t]:e}))};return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-background-wrap"},(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)("div",{className:"rttpg-cf-body-btn-wrap"},r&&(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},r)),(0,e.createElement)(Ml,{className:"rttpg-btn-group"},H.map((t=>(0,e.createElement)(Tl,{text:t.label,position:"top",delay:0},(0,e.createElement)(Ol,{isLarge:!0,isPrimary:o.type===t.value,isSecondary:o.type!==t.value,onClick:()=>l(t.value,"type")},"classic"===t.value?(0,e.createElement)("i",{className:"classic-btn fas fa-paint-brush"}):(0,e.createElement)("i",{className:"gradient-btn fas fa-barcode"})))))),(0!=Object.keys(o.classic).length||o.gradient)&&(0,e.createElement)(Ol,{isSmall:!0,className:"rttpg-undo-btn",icon:"image-rotate",onClick:()=>n(a)})),(0,e.createElement)("div",{className:"rttpg-cf-body-content-wrap"},"classic"===o.type&&(0,e.createElement)(Nl,{image:null==t?void 0:t.image,value:o.classic,onChange:e=>l(e,"classic")}),"gradient"===o.type&&(0,e.createElement)(ul,{value:o.gradient,onChange:e=>l(e,"gradient")}))))};const{__:Ll}=wp.i18n;var Al=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,img_border_radius:n,image_width:l,thumbnail_spacing:i,grid_hover_style_tabs:s,grid_hover_overlay_color:c,is_thumb_lightbox:u,thumb_lightbox_bg:f,thumb_lightbox_color:d,grid_hover_overlay_color_hover:p,thumb_lightbox_bg_hover:m,thumb_lightbox_color_hover:g,grid_hover_overlay_type:h,grid_hover_overlay_height:b,on_hover_overlay:v,show_thumb:_}=a;if("show"!==_)return"";let y=o+"_layout";return(0,e.createElement)(Oe.PanelBody,{title:Ll("Thumbnail","the-post-grid"),initialOpen:!1},(0,e.createElement)(Oe.SelectControl,{label:Ll("Image Width (Optional)","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"inherit",label:Ll("Default","the-post-grid")},{value:"100%",label:Ll("100%","the-post-grid")},{value:"auto",label:Ll("Auto","the-post-grid")}],value:l,onChange:e=>r({image_width:e})}),(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},(0,e.createElement)(Xn,{label:Ll("Border Radius","the-post-grid"),className:`rttpg-dimension-wrap ${Ne}`,type:"borderRadius",responsive:!0,value:n,onChange:e=>{r({img_border_radius:e})}}),"rttpg-is-pro"===Ne&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{st.warn("Please upgrade to pro for this feature.",{position:"top-right"})}})),(0,e.createElement)(Xn,{label:Ll("Thumbnail Margin","the-post-grid"),type:"margin",responsive:!0,value:i,onChange:e=>{r({thumbnail_spacing:e})}}),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},Ll("Overlay Style:","the-post-grid")),(0,e.createElement)(Oe.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},F.map(((t,a)=>(0,e.createElement)(Oe.Button,{key:a,isPrimary:s===t.value,isSecondary:s!==t.value,onClick:()=>r({grid_hover_style_tabs:t.value})},t.label)))),"normal"===s?(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Il,{label:Ll("Overlay BG","the-post-grid"),image:!1,value:c,onChange:e=>r({grid_hover_overlay_color:e})}),"show"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:Ll("Light Box Background","the-post-grid"),color:f,onChange:e=>r({thumb_lightbox_bg:e})}),(0,e.createElement)(Kn,{label:Ll("Light Box Color","the-post-grid"),color:d,onChange:e=>r({thumb_lightbox_color:e})}))):(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Il,{label:Ll("Overlay BG - Hover","the-post-grid"),image:!1,value:p,onChange:e=>r({grid_hover_overlay_color_hover:e})}),"show"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:Ll("Light Box Background - Hover","the-post-grid"),color:m,onChange:e=>r({thumb_lightbox_bg_hover:e})}),(0,e.createElement)(Kn,{label:Ll("Light Box Color - Hover","the-post-grid"),color:g,onChange:e=>r({thumb_lightbox_color_hover:e})}))),(0,e.createElement)("hr",null),(0,e.createElement)(Oe.SelectControl,{label:Ll("Overlay Interaction","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",help:Ll("If you don't choose overlay background then it will work only for some selected layout","the-post-grid"),value:h,options:["grid_hover","slider"].includes(o)?xe:Ce,onChange:e=>r({grid_hover_overlay_type:e})}),"grid_hover-layout3"!==a[y]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.SelectControl,{label:Ll("Overlay Height","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:Ll("Default","the-post-grid")},{value:"full",label:Ll("100%","the-post-grid")},{value:"auto",label:Ll("Auto","the-post-grid")}],value:b,onChange:e=>r({grid_hover_overlay_height:e})}),(0,e.createElement)(Oe.SelectControl,{label:Ll("Overlay Height on hover","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:Ll("Default","the-post-grid")},{value:"full",label:Ll("100%","the-post-grid")},{value:"auto",label:Ll("Auto","the-post-grid")}],value:v,onChange:e=>r({on_hover_overlay:e})})))};const{__:Fl}=wp.i18n;var Bl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,content_typography:n,excerpt_spacing:l,content_alignment:i,excerpt_style_tabs:s,excerpt_color:c,meta_position:u,excerpt_hover_color:f,excerpt_border_hover:d,excerpt_border:p,show_excerpt:m}=a;if("show"!==m)return"";let g=o+"_layout";return(0,e.createElement)(Oe.PanelBody,{title:Fl("Excerpt / Content","the-post-grid"),initialOpen:!1},(0,e.createElement)(zn,{label:Fl("Typography","the-post-grid"),value:n,onChange:e=>r({content_typography:e})}),(0,e.createElement)(Xn,{label:Fl("Excerpt Spacing","the-post-grid"),type:"margin",responsive:!0,value:l,onChange:e=>{r({excerpt_spacing:e})}}),(0,e.createElement)(We,{label:Fl("Alignment","the-post-grid"),options:["left","center","right"],value:i,responsive:!0,onChange:e=>r({content_alignment:e})}),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},Fl("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Oe.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},F.map(((t,a)=>(0,e.createElement)(Oe.Button,{key:a,isPrimary:s===t.value,isSecondary:s!==t.value,onClick:()=>r({excerpt_style_tabs:t.value})},t.label)))),"normal"===s&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:Fl("Excerpt color","the-post-grid"),color:c,onChange:e=>r({excerpt_color:e})}),"default"===u&&"grid-layout3"===a[g]&&(0,e.createElement)(Kn,{label:Fl("Border color - Hover","the-post-grid"),color:p,onChange:e=>r({excerpt_border:e})})),"hover"===s&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:Fl("Excerpt color - Hover","the-post-grid"),color:f,onChange:e=>r({excerpt_hover_color:e})}),"default"===u&&"grid-layout3"===a[g]&&(0,e.createElement)(Kn,{label:Fl("Border color - Hover","the-post-grid"),color:d,onChange:e=>r({excerpt_border_hover:e})})))};const{RangeControl:jl,Button:Hl}=wp.components;var $l=function(t){const{label:a,value:r,onChange:o,min:n,max:l,step:i,reset:s}=t,c={min:n,max:l,step:i};return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-range-wrap"},a&&(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},a)),(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)(jl,Be({value:r,onChange:e=>{(e=>{o(e)})(e)}},c)),s&&r?(0,e.createElement)(Hl,{isSmall:!0,className:"rttpg-undo-btn",icon:"image-rotate",onClick:()=>o(null)}):""))};const{__:Rl}=wp.i18n;var Vl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,show_meta:n,post_meta_typography:l,postmeta_alignment:i,meta_spacing:s,category_position:c,separator_cat_typography:u,category_margin_bottom:f,category_radius:d,meta_info_style_tabs:p,meta_info_color:m,meta_link_color:g,meta_separator_color:h,meta_icon_color:b,separate_category_color:v,separate_category_bg:_,show_cat_icon:y,separate_category_icon_color:w,meta_link_colo_hover:E,separate_category_color_hover:C,separate_category_bg_hover:x,meta_link_colo_box_hover:k,separate_category_color_box_hover:N,separate_category_bg_box_hover:S,separate_category_icon_color_box_hover:D,category_style:P,meta_separator:O}=a;return"grid-layout7"===a[o+"_layout"]||"show"!==n?"":(0,e.createElement)(Oe.PanelBody,{title:Rl("Meta Data","the-post-grid"),initialOpen:!1},(0,e.createElement)(zn,{label:Rl("Meta Typography"),value:l,onChange:e=>r({post_meta_typography:e})}),(0,e.createElement)(We,{label:Rl("Alignment","the-post-grid"),options:["left","center","right"],responsive:!0,value:i,onChange:e=>r({postmeta_alignment:e})}),(0,e.createElement)(Xn,{label:Rl("Meta Spacing","the-post-grid"),type:"margin",responsive:!0,value:s,onChange:e=>{r({meta_spacing:e})}}),"default"!==c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},Rl("Separate Category:","the-post-grid")),(0,e.createElement)(zn,{label:Rl("Separate Cat Typography"),value:u,onChange:e=>r({separator_cat_typography:e})})),"above_title"===c&&(0,e.createElement)($l,{label:Rl("Category Margin Bottom"),reset:!0,value:f,onChange:e=>r({category_margin_bottom:e}),min:0,max:50,step:1}),"style3"!==P&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Xn,{label:Rl("Category Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:d,onChange:e=>{r({category_radius:e})}}),(0,e.createElement)("small",{className:"rttpg-help"},Rl("NB. If you use a separate category or there is a background on a category then it will work.","the-post-grid"))),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},Rl("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Oe.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},B.map(((t,a)=>(0,e.createElement)(Oe.Button,{key:a,isPrimary:p===t.value,isSecondary:p!==t.value,onClick:()=>r({meta_info_style_tabs:t.value})},t.label)))),"normal"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:Rl("Meta Color","the-post-grid"),color:m,onChange:e=>r({meta_info_color:e})}),(0,e.createElement)(Kn,{label:Rl("Meta Link Color","the-post-grid"),color:g,onChange:e=>r({meta_link_color:e})}),"default"!==O&&(0,e.createElement)(Kn,{label:Rl("Separator Color","the-post-grid"),color:h,onChange:e=>r({meta_separator_color:e})}),(0,e.createElement)(Kn,{label:Rl("Icon Color","the-post-grid"),color:b,onChange:e=>r({meta_icon_color:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(Kn,{label:Rl("Category Color","the-post-grid"),color:v,onChange:e=>r({separate_category_color:e})}),(0,e.createElement)(Kn,{label:Rl("Category Background","the-post-grid"),color:_,onChange:e=>r({separate_category_bg:e})}),"yes"===y&&(0,e.createElement)(Kn,{label:Rl("Category Icon Color","the-post-grid"),color:w,onChange:e=>r({separate_category_icon_color:e})})),"hover"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:Rl("Meta Link Color - Hover","the-post-grid"),color:E,onChange:e=>r({meta_link_colo_hover:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(Kn,{label:Rl("Category Color - Hover","the-post-grid"),color:C,onChange:e=>r({separate_category_color_hover:e})}),(0,e.createElement)(Kn,{label:Rl("Category Background - Hover","the-post-grid"),color:x,onChange:e=>r({separate_category_bg_hover:e})})),"box_hover"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:Rl("Meta Color - Box Hover","the-post-grid"),color:k,onChange:e=>r({meta_link_colo_box_hover:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(Kn,{label:Rl("Category Color - Hover","the-post-grid"),color:N,onChange:e=>r({separate_category_color_box_hover:e})}),(0,e.createElement)(Kn,{label:Rl("Category Background - Box Hover","the-post-grid"),color:S,onChange:e=>r({separate_category_bg_box_hover:e})}),"yes"===y&&(0,e.createElement)(Kn,{label:Rl("Category Icon Color - Box Hover","the-post-grid"),color:D,onChange:e=>r({separate_category_icon_color_box_hover:e})})))};const{__:zl}=wp.i18n;var ql=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,show_social_share:n,social_icon_margin:l,social_wrapper_margin:i,social_icon_radius:s,icon_font_size:c,main_wrapper_hover_tab:u,social_icon_color:f,social_icon_bg_color:d,social_icon_border:p,social_icon_color_hover:m,social_icon_bg_color_hover:g,social_icon_border_hover:h,social_icon_width:b,social_icon_height:v,social_icon_color_box_hover:_,social_icon_bg_color_box_hover:y}=a;return"show"!==n||"grid-layout7"===a[o+"_layout"]?"":(0,e.createElement)(Oe.PanelBody,{title:zl("Social Share","the-post-grid"),initialOpen:!1},(0,e.createElement)(Xn,{label:zl("Icon Margin","the-post-grid"),type:"margin",responsive:!0,value:l,onChange:e=>{r({social_icon_margin:e})}}),(0,e.createElement)(Xn,{label:zl("Icon Wrapper Spacing","the-post-grid"),type:"margin",responsive:!0,value:i,onChange:e=>{r({social_wrapper_margin:e})}}),(0,e.createElement)(Xn,{label:zl("Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:s,onChange:e=>{r({social_icon_radius:e})}}),(0,e.createElement)("div",{className:"rttpg-image-dimension"},(0,e.createElement)("label",{className:"components-base-control__label components-input-control__label",htmlFor:"react-select-2-input"},zl("Icon Width & Height","the-post-grid")),(0,e.createElement)(Oe.__experimentalNumberControl,{className:"rttpg-control-field",max:2e3,min:1,placeholder:"Width",step:"1",value:b,onChange:e=>r({social_icon_width:e})}),(0,e.createElement)(Oe.__experimentalNumberControl,{className:"rttpg-control-field",max:2e3,min:1,placeholder:"Height",step:"1",value:v,onChange:e=>r({social_icon_height:e})})),(0,e.createElement)(qe,{label:zl("Icon Size"),responsive:!0,value:c,min:0,max:100,step:1,onChange:e=>r({icon_font_size:e})}),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},zl("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Oe.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},B.map(((t,a)=>(0,e.createElement)(Oe.Button,{key:a,isPrimary:u===t.value,isSecondary:u!==t.value,onClick:()=>r({main_wrapper_hover_tab:t.value})},t.label)))),"normal"===u&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:zl("Icon color","the-post-grid"),color:f,onChange:e=>r({social_icon_color:e})}),(0,e.createElement)(Kn,{label:zl("Icon Background","the-post-grid"),color:d,onChange:e=>r({social_icon_bg_color:e})}),(0,e.createElement)(Oe.__experimentalBorderControl,{colors:Pe,value:p,label:zl("Icon Border","the-post-grid"),onChange:e=>{const t={openTpgBorder:1,...e};r({social_icon_border:t})},withSlider:!0})),"hover"===u&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:zl("Icon color - Hover","the-post-grid"),color:m,onChange:e=>r({social_icon_color_hover:e})}),(0,e.createElement)(Kn,{label:zl("Icon Background - Hover","the-post-grid"),color:g,onChange:e=>r({social_icon_bg_color_hover:e})}),(0,e.createElement)(Oe.__experimentalBorderControl,{colors:Pe,value:h,label:zl("Icon Border - Hover","the-post-grid"),onChange:e=>{const t={openTpgBorder:1,...e};r({social_icon_border_hover:t})},withSlider:!0})),"box_hover"===u&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:zl("Icon color - Hover","the-post-grid"),color:_,onChange:e=>r({social_icon_color_box_hover:e})}),(0,e.createElement)(Kn,{label:zl("Icon Background - Hover","the-post-grid"),color:y,onChange:e=>r({social_icon_bg_color_box_hover:e})})))};const{__:Yl}=wp.i18n;var Gl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,show_acf:n,acf_group_title_typography:l,acf_typography:i,cf_show_only_value:s,acf_label_style:c,acf_label_width:u,acf_alignment:f,acf_style_tabs:d,acf_group_title_color:p,acf_label_color:m,acf_value_color:g,acf_group_title_color_hover:h,acf_label_color_hover:b,acf_value_color_hover:v,cf_hide_group_title:_}=a;let y=o+"_layout";return"show"!==n||"grid-layout7"===a[y]?"":(0,e.createElement)(Oe.PanelBody,{title:Yl("Advanced Custom Field (ACF)","the-post-grid"),initialOpen:!1},(0,e.createElement)(zn,{label:Yl("Group Title Typography","the-post-grid"),value:l,onChange:e=>r({acf_group_title_typography:e})}),(0,e.createElement)(zn,{label:Yl("ACF Fields Typography","the-post-grid"),value:i,onChange:e=>r({acf_typography:e})}),"yes"===s&&(0,e.createElement)(Oe.SelectControl,{label:Yl("Label Style","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:Yl("Default","the-post-grid")},{value:"inline",label:Yl("Inline","the-post-grid")},{value:"block",label:Yl("Block","the-post-grid")}],value:c,onChange:e=>r({acf_label_style:e})}),"default"===c&&(0,e.createElement)(qe,{label:Yl("Label Min Width"),responsive:!0,value:u,min:0,max:500,step:1,onChange:e=>r({acf_label_width:e})}),"grid-layout7"!==a[y]&&(0,e.createElement)(We,{label:Yl("Text Align","the-post-grid"),options:["left","center","right"],value:f,onChange:e=>r({acf_alignment:e})}),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},Yl("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Oe.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},F.map(((t,a)=>(0,e.createElement)(Oe.Button,{key:a,isPrimary:d===t.value,isSecondary:d!==t.value,onClick:()=>r({acf_style_tabs:t.value})},t.label)))),"normal"===d?(0,e.createElement)("div",{className:"rttpg-ground-control"},"yes"===_&&(0,e.createElement)(Kn,{label:Yl("Group Title Color","the-post-grid"),color:p,onChange:e=>r({acf_group_title_color:e})}),"yes"===s&&(0,e.createElement)(Kn,{label:Yl("Label Color","the-post-grid"),color:m,onChange:e=>r({acf_label_color:e})}),(0,e.createElement)(Kn,{label:Yl("Value Color","the-post-grid"),color:g,onChange:e=>r({acf_value_color:e})})):(0,e.createElement)("div",{className:"rttpg-ground-control"},"yes"===_&&(0,e.createElement)(Kn,{label:Yl("Group Title Color - BoxHover","the-post-grid"),color:h,onChange:e=>r({acf_group_title_color_hover:e})}),"yes"===s&&(0,e.createElement)(Kn,{label:Yl("Label Color - BoxHover","the-post-grid"),color:b,onChange:e=>r({acf_label_color_hover:e})}),(0,e.createElement)(Kn,{label:Yl("Value Color - BoxHover","the-post-grid"),color:v,onChange:e=>r({acf_value_color_hover:e})})))};const{__:Ul}=wp.i18n;var Wl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,show_read_more:n,readmore_typography:l,readmore_spacing:i,readmore_btn_style:s,readmore_padding:c,readmore_btn_alignment:u,readmore_icon_size:f,readmore_icon_y_position:d,readmore_style_tabs:p,readmore_text_color:m,readmore_icon_color:g,readmore_bg:h,border_radius:b,readmore_border:v,readmore_icon_margin:_,readmore_text_color_hover:y,readmore_icon_color_hover:w,readmore_bg_hover:E,border_radius_hover:C,readmore_border_hover:x,show_btn_icon:k,readmore_icon_margin_hover:N,readmore_text_color_box_hover:S,readmore_icon_color_box_hover:D,readmore_bg_box_hover:P,readmore_border_box_hover:O}=a;return"show"!==n||"grid-layout7"===a[o+"_layout"]?"":(0,e.createElement)(Oe.PanelBody,{title:Ul("Read More","the-post-grid"),initialOpen:!1},(0,e.createElement)(zn,{label:Ul("Typography"),value:l,onChange:e=>r({readmore_typography:e})}),(0,e.createElement)(We,{label:Ul("Button Alignment","the-post-grid"),options:["left","center","right"],responsive:!0,value:u,onChange:e=>r({readmore_btn_alignment:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(Xn,{label:Ul("Button Spacing","the-post-grid"),type:"margin",responsive:!0,value:i,onChange:e=>{r({readmore_spacing:e})}}),"default-style"===s&&(0,e.createElement)(Xn,{label:Ul("Button Padding","the-post-grid"),type:"padding",responsive:!0,value:c,onChange:e=>{r({readmore_padding:e})}}),"yes"===k&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(qe,{label:Ul("Icon Size"),responsive:!0,min:10,max:50,step:1,value:f,onChange:e=>r({readmore_icon_size:e})}),(0,e.createElement)(qe,{label:Ul("Icon Vertical Position"),responsive:!0,min:-20,max:20,step:1,value:d,onChange:e=>r({readmore_icon_y_position:e})})),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},Ul("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Oe.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},B.map(((t,a)=>(0,e.createElement)(Oe.Button,{key:a,isPrimary:p===t.value,isSecondary:p!==t.value,onClick:()=>r({readmore_style_tabs:t.value})},t.label)))),"normal"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:Ul("Text Color","the-post-grid"),color:m,onChange:e=>r({readmore_text_color:e})}),"yes"===k&&(0,e.createElement)(Kn,{label:Ul("Icon Color","the-post-grid"),color:g,onChange:e=>r({readmore_icon_color:e})}),"default-style"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:Ul("Background Color","the-post-grid"),color:h,onChange:e=>r({readmore_bg:e})}),(0,e.createElement)(Xn,{label:Ul("Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:b,onChange:e=>{r({border_radius:e})}}),(0,e.createElement)(Oe.__experimentalBorderControl,{colors:Pe,value:v,label:Ul("Button Border","the-post-grid"),onChange:e=>{const t={openTpgBorder:1,...e};r({readmore_border:t})},withSlider:!0})),"yes"===k&&(0,e.createElement)(Xn,{label:Ul("Icon Spacing","the-post-grid"),type:"margin",responsive:!0,value:_,onChange:e=>{r({readmore_icon_margin:e})}})),"hover"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:Ul("Text Color hover","the-post-grid"),color:y,onChange:e=>r({readmore_text_color_hover:e})}),"yes"===k&&(0,e.createElement)(Kn,{label:Ul("Icon Color - Hover","the-post-grid"),color:w,onChange:e=>r({readmore_icon_color_hover:e})}),"default-style"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:Ul("Background Color - Hover","the-post-grid"),color:E,onChange:e=>r({readmore_bg_hover:e})}),(0,e.createElement)(Xn,{label:Ul("Border Radius - Hover","the-post-grid"),type:"borderRadius",responsive:!0,value:C,onChange:e=>{r({border_radius_hover:e})}}),(0,e.createElement)(Oe.__experimentalBorderControl,{colors:Pe,value:x,label:Ul("Button Border - Hover","the-post-grid"),onChange:e=>{const t={openTpgBorder:1,important:1,...e};r({readmore_border_hover:t})},withSlider:!0})),"yes"===k&&(0,e.createElement)(Xn,{label:Ul("Icon Spacing - Hover","the-post-grid"),type:"margin",responsive:!0,value:N,onChange:e=>{r({readmore_icon_margin_hover:e})}})),"box_hover"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:Ul("Text Color - BoxHover","the-post-grid"),color:S,onChange:e=>r({readmore_text_color_box_hover:e})}),"yes"===k&&(0,e.createElement)(Kn,{label:Ul("Icon Color - BoxHover","the-post-grid"),color:D,onChange:e=>r({readmore_icon_color_box_hover:e})}),"default-style"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:Ul("Background Color - BoxHover","the-post-grid"),color:P,onChange:e=>r({readmore_bg_box_hover:e})}),(0,e.createElement)(Oe.__experimentalBorderControl,{colors:Pe,value:O,label:Ul("Button Border - BoxHover","the-post-grid"),onChange:e=>{const t={openTpgBorder:1,...e};r({readmore_border_box_hover:t})},withSlider:!0}))))};const{__:Jl}=wp.i18n;var Ql=function(t){const{attributes:a,setAttributes:r}=t.data,{front_filter_typography:o,filter_type:n,filter_btn_style:l,filter_text_alignment:i,filter_button_width:s,filter_next_prev_btn:c,section_title_style:u,border_style:f,filter_h_alignment:d,filter_btn_radius:p,frontend_filter_style_tabs:m,filter_color:g,filter_bg_color:h,filter_border_color:b,filter_search_bg:v,sub_menu_color_heading:_,sub_menu_bg_color:y,sub_menu_color:w,sub_menu_border_bottom:E,filter_nav_color:C,filter_nav_bg:x,filter_nav_border:k,filter_color_hover:N,filter_bg_color_hover:S,filter_border_color_hover:D,filter_search_bg_hover:P,sub_menu_color_heading_hover:O,sub_menu_bg_color_hover:M,sub_menu_color_hover:T,sub_menu_border_bottom_hover:I,filter_nav_color_hover:L,filter_nav_bg_hover:A,filter_nav_border_hover:B,show_taxonomy_filter:j,show_author_filter:H,show_order_by:$,show_sort_order:R,show_search:V}=a;return"show"!==j&&"show"!==H&&"show"!==$&&"show"!==R&&"show"!==V?"":(console.log(i),(0,e.createElement)(Oe.PanelBody,{title:Jl("Front-End Filter","the-post-grid"),initialOpen:!1},(0,e.createElement)(zn,{label:Jl("Typography","the-post-grid"),value:o,onChange:e=>r({front_filter_typography:e})}),"button"===n&&"carousel"===l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(qe,{label:Jl("Filter Width"),responsive:!0,value:s,min:0,max:1e3,step:1,onChange:e=>r({filter_button_width:e})}),(0,e.createElement)(Oe.SelectControl,{label:Jl("Next/Prev Button","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"visible",label:Jl("Visible","the-post-grid")},{value:"hidden",label:Jl("Hidden","the-post-grid")}],value:c,onChange:e=>r({filter_next_prev_btn:e})}),["style2","style3"].includes(u)&&(0,e.createElement)(Oe.SelectControl,{label:Jl("Filter Border","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"disable",label:Jl("Disable","the-post-grid")},{value:"enable",label:Jl("Enable","the-post-grid")}],value:f,onChange:e=>r({border_style:e})})),"dropdown"===n?(0,e.createElement)(Oe.SelectControl,{label:Jl("Vertical Alignment","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"",label:Jl("Default","the-post-grid")},{value:"left",label:Jl("Left","the-post-grid")},{value:"center",label:Jl("Center","the-post-grid")},{value:"right",label:Jl("Right","the-post-grid")}],value:d,onChange:e=>r({filter_h_alignment:e})}):(0,e.createElement)(Oe.SelectControl,{label:Jl("Text Align","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"",label:Jl("Default","the-post-grid")},{value:"left",label:Jl("Left","the-post-grid")},{value:"center",label:Jl("Center","the-post-grid")},{value:"right",label:Jl("Right","the-post-grid")}],value:i,onChange:e=>r({filter_text_alignment:e})}),"default"!==n&&(0,e.createElement)(Xn,{label:Jl("Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:p,onChange:e=>{r({filter_btn_radius:e})}}),(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},Jl("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Oe.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},F.map(((t,a)=>(0,e.createElement)(Oe.Button,{key:a,isPrimary:m===t.value,isSecondary:m!==t.value,onClick:()=>r({frontend_filter_style_tabs:t.value})},t.label)))),"normal"===m?(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:Jl("Filter Color","the-post-grid"),color:g,onChange:e=>r({filter_color:e})}),(0,e.createElement)(Kn,{label:Jl("Filter Background","the-post-grid"),color:h,onChange:e=>r({filter_bg_color:e})}),(0,e.createElement)(Kn,{label:Jl("Filter Border Color","the-post-grid"),color:b,onChange:e=>r({filter_border_color:e})}),"show"===V&&"default"===l&&(0,e.createElement)(Kn,{label:Jl("Search Background","the-post-grid"),color:v,onChange:e=>r({filter_search_bg:e})}),"dropdown"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:Jl("Sub Menu Options","the-post-grid"),color:_,onChange:e=>r({sub_menu_color_heading:e})}),(0,e.createElement)(Kn,{label:Jl("Submenu Background","the-post-grid"),color:y,onChange:e=>r({sub_menu_bg_color:e})}),(0,e.createElement)(Kn,{label:Jl("Submenu Color","the-post-grid"),color:w,onChange:e=>r({sub_menu_color:e})}),(0,e.createElement)(Kn,{label:Jl("Submenu Border","the-post-grid"),color:E,onChange:e=>r({sub_menu_border_bottom:e})})),"visible"===c&&"carousel"===l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:Jl("Filter Nav Color","the-post-grid"),color:C,onChange:e=>r({filter_nav_color:e})}),(0,e.createElement)(Kn,{label:Jl("Filter Nav Background","the-post-grid"),color:x,onChange:e=>r({filter_nav_bg:e})}),(0,e.createElement)(Kn,{label:Jl("Filter Nav Border","the-post-grid"),color:k,onChange:e=>r({filter_nav_border:e})}))):(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Kn,{label:Jl("Filter Color - Hover/Active","the-post-grid"),color:N,onChange:e=>r({filter_color_hover:e})}),(0,e.createElement)(Kn,{label:Jl("Filter Background - Hover/Active","the-post-grid"),color:S,onChange:e=>r({filter_bg_color_hover:e})}),(0,e.createElement)(Kn,{label:Jl("Filter Border Color - Hover/Active","the-post-grid"),color:D,onChange:e=>r({filter_border_color_hover:e})}),"show"===V&&"default"===l&&(0,e.createElement)(Kn,{label:Jl("Search Background - Hover/Active","the-post-grid"),color:P,onChange:e=>r({filter_search_bg_hover:e})}),"dropdown"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:Jl("Sub Menu Options - Hover","the-post-grid"),color:O,onChange:e=>r({sub_menu_color_heading_hover:e})}),(0,e.createElement)(Kn,{label:Jl("Submenu Background - Hover","the-post-grid"),color:M,onChange:e=>r({sub_menu_bg_color_hover:e})}),(0,e.createElement)(Kn,{label:Jl("Submenu Color - Hover","the-post-grid"),color:T,onChange:e=>r({sub_menu_color_hover:e})}),(0,e.createElement)(Kn,{label:Jl("Submenu Border - Hover","the-post-grid"),color:I,onChange:e=>r({sub_menu_border_bottom_hover:e})})),"visible"===c&&"carousel"===l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:Jl("Filter Nav Color - Hover","the-post-grid"),color:L,onChange:e=>r({filter_nav_color_hover:e})}),(0,e.createElement)(Kn,{label:Jl("Filter Nav Background - Hover","the-post-grid"),color:A,onChange:e=>r({filter_nav_bg_hover:e})}),(0,e.createElement)(Kn,{label:Jl("Filter Nav Border - Hover","the-post-grid"),color:B,onChange:e=>r({filter_nav_border_hover:e})})))))};const{__:Kl}=wp.i18n,{useState:Zl,useEffect:Xl}=wp.element,{Dropdown:ei,Button:ti,SelectControl:ai,RangeControl:ri,ToggleControl:oi}=wp.components;var ni=function(t){const{label:a,value:r,onChange:o,transition:n}=t,l=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=JSON.parse(JSON.stringify(r));"width"===t?n[t][a]=e:n[t]=e,o(n)};return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-typography-wrap"},a&&(0,e.createElement)("span",{className:"rttpg-label"},a),(0,e.createElement)("div",{className:"rttpg-typography"},(0,e.createElement)(ei,{className:"rttpg-typography-dropdown-icon",contentClassName:"rttpg-components-popover rttpg-cp-typography-content",position:"bottom right",renderToggle:t=>{let{isOpen:a,onToggle:r}=t;return(0,e.createElement)(ti,{isSmall:!0,onClick:r,"aria-expanded":a,icon:"edit"})},renderContent:()=>(0,e.createElement)("div",{className:"rttpg-typography-content"},(0,e.createElement)(Kn,{label:Kl("Color"),color:r.color,onChange:e=>l(e,"color")}),(0,e.createElement)($l,{label:Kl("Horizontal Offset"),reset:!0,value:r.width.top,onChange:e=>l(e,"width","top"),min:0,max:100}),(0,e.createElement)($l,{label:Kl("Vertical Offset"),reset:!0,value:r.width.right,onChange:e=>l(e,"width","right"),min:0,max:100}),(0,e.createElement)($l,{label:Kl("Shadow Blur"),reset:!0,value:r.width.bottom,onChange:e=>l(e,"width","bottom"),min:0,max:100}),(0,e.createElement)($l,{label:Kl("Shadow Spread"),reset:!0,value:r.width.left,onChange:e=>l(e,"width","left"),min:0,max:100}),(0,e.createElement)("div",{className:"rttpg-toggle-control-field"},(0,e.createElement)(oi,{label:"Inset",checked:r.inset,onChange:e=>l(e,"inset")})),n&&(0,e.createElement)($l,{label:Kl("Shadow Transition"),reset:!0,value:r.transition,onChange:e=>l(e,"transition"),min:0,max:5,step:.1}))})))};const{__:li}=wp.i18n;var ii=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,box_margin:n,content_box_padding:l,content_box_padding_2:i,content_box_padding_offset:s,box_radius:c,is_box_border:u,box_style_tabs:f,box_background:d,box_border:p,box_box_shadow_normal:m,box_background2:g,box_background_hover:h,box_box_shadow2:b,box_background_hover2:v,box_border_hover:_,box_box_shadow_hover:y,box_box_shadow_hover2:w}=a;let E=o+"_layout";return(0,e.createElement)(Oe.PanelBody,{title:li("Card (Post Item)","the-post-grid"),initialOpen:!1},!["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","list-layout2","list-layout2-2","list-layout3","list-layout3-2","list-layout4","grid_hover-layout4","grid_hover-layout4-2","grid_hover-layout5","grid_hover-layout5-2","grid_hover-layout6","grid_hover-layout6-2","grid_hover-layout7","grid_hover-layout7-2","grid_hover-layout8","grid_hover-layout9","grid_hover-layout9-2"].includes(a[E])&&(0,e.createElement)(Xn,{label:li("Card Gap","the-post-grid"),type:"padding",responsive:!0,value:n,onChange:e=>{r({box_margin:e})}}),!["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","grid-layout7","list-layout1","list-layout2","list-layout2-2","list-layout3","list-layout3-2","list-layout4","list-layout5","slider-layout1","slider-layout2","slider-layout3"].includes(a[E])&&"grid_hover"!==o&&(0,e.createElement)(Xn,{label:li("Content Padding","the-post-grid"),type:"padding",responsive:!0,value:l,onChange:e=>{r({content_box_padding:e})}}),["grid-layout5","grid-layout5-2","list-layout4"].includes(a[E])&&(0,e.createElement)(Xn,{label:li("Content Padding","the-post-grid"),type:"padding",responsive:!0,value:s,onChange:e=>{r({content_box_padding_offset:e})}}),["slider-layout13"].includes(a[E])&&(0,e.createElement)(Xn,{label:li("Content Padding","the-post-grid"),type:"padding",responsive:!0,value:i,onChange:e=>{r({content_box_padding_2:e})}}),!["list-layout2","list-layout2-2","list-layout3","list-layout3-2","list-layout4","list-layout4-2","list-layout5","list-layout5-2","slider-layout11","slider-layout12","slider-layout13"].includes(a[E])&&(0,e.createElement)(Xn,{label:li("Card Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:c,onChange:e=>{r({box_radius:e})}}),["grid","list"].includes(o)&&(0,e.createElement)(Oe.SelectControl,{label:li("Enable Border & Box Shadow","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:li("Default","the-post-grid")},{value:"enable",label:li("Enable","the-post-grid")},{value:"disable",label:li("Disable","the-post-grid")}],value:u,onChange:e=>r({is_box_border:e})}),"grid_hover"!==o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe.__experimentalHeading,{className:"rttpg-control-heading"},li("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Oe.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},F.map(((t,a)=>(0,e.createElement)(Oe.Button,{key:a,isPrimary:f===t.value,isSecondary:f!==t.value,onClick:()=>r({box_style_tabs:t.value})},t.label)))),"normal"===f?(0,e.createElement)("div",{className:"rttpg-ground-control"},!["slider-layout13"].includes(a[E])&&(0,e.createElement)(Il,{image:!1,label:li("Background","the-post-grid"),value:d,onChange:e=>r({box_background:e})}),["slider-layout13"].includes(a[E])&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Il,{image:!1,label:li("Background","the-post-grid"),value:g,onChange:e=>r({box_background2:e})}),(0,e.createElement)(ni,{label:li("Box Shadow","the-post-grid"),value:b,onChange:e=>r({box_box_shadow2:e}),transitioin:"0.4"})),["grid","list"].includes(o)&&"enable"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:li("Border Color","the-post-grid"),color:p,onChange:e=>r({box_border:e})}),(0,e.createElement)(ni,{label:li("Box Shadow","the-post-grid"),value:m,onChange:e=>r({box_box_shadow_normal:e})}))):(0,e.createElement)("div",{className:"rttpg-ground-control"},!["slider-layout13"].includes(a[E])&&(0,e.createElement)(Il,{image:!1,label:li("Background - Hover","the-post-grid"),value:h,onChange:e=>r({box_background_hover:e})}),["slider-layout13"].includes(a[E])&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Il,{image:!1,label:li("Background","the-post-grid"),value:v,onChange:e=>r({box_background_hover2:e})}),(0,e.createElement)(ni,{label:li("Box Shadow - Hover","the-post-grid"),value:w,onChange:e=>r({box_box_shadow_hover2:e}),transitioin:"0.4"})),["grid","list"].includes(o)&&"enable"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kn,{label:li("Border Color - Hover","the-post-grid"),color:_,onChange:e=>r({box_border_hover:e})}),(0,e.createElement)(ni,{label:li("Box Shadow - Hover","the-post-grid"),value:y,onChange:e=>r({box_box_shadow_hover:e}),transitioin:"0.4"})))))};const{__:si}=wp.i18n;var ci=function(t){const{attributes:a,setAttributes:r}=t.data,{tpg_wrapper_padding:o,tpg_wrapper_margin:n,tpg_wrapper_width:l,tpg_wrapper_background:i}=a;return(0,e.createElement)(Oe.PanelBody,{title:si("Main Wrapper","the-post-grid"),initialOpen:!1},(0,e.createElement)(Xn,{label:si("Main Wrapper Padding","the-post-grid"),type:"padding",responsive:!0,value:o,onChange:e=>{r({tpg_wrapper_padding:e})}}),(0,e.createElement)(Xn,{label:si("Main Wrapper Margin","the-post-grid"),type:"margin",responsive:!0,value:n,disableLink:!0,onChange:e=>{r({tpg_wrapper_margin:e})}}),(0,e.createElement)("small",{className:"rttpg-help"},si("NB. If you use The Post Grid Fullwidth template then margin-left and margin-right will not work.","the-post-grid")),(0,e.createElement)(qe,{label:si("Wrapper Width"),responsive:!0,value:l,min:300,max:3e3,step:1,onChange:e=>r({tpg_wrapper_width:e}),help:"Default width is 1200px for large device. If you want you can increase or decrease the size."}),(0,e.createElement)(Il,{label:si("Wrapper Background","the-post-grid"),value:i,onChange:e=>r({tpg_wrapper_background:e})}),(0,e.createElement)("p",{style:{background:"#dff6ff",borderLeft:"3px solid #005bc9",padding:"5px 15px"}},(0,e.createElement)("ul",null,(0,e.createElement)("li",null,si("If you would like to use section background then there are two way to do it. ","the-post-grid")),(0,e.createElement)("li",null,si("1. Full Width the the block from AdvancedControls bar then just change wrapper width","the-post-grid")),(0,e.createElement)("li",null,si("2. Secondly, you can use The Post Grid Fullwidth template","the-post-grid")))))};const{InspectorControls:ui}=wp.blockEditor;var fi=function(t){const{attributes:a,setAttributes:r,changeQuery:o,acfData:n,imageSizes:l}=t,{prefix:i,taxonomy_lists:s,ignore_sticky_posts:c,acf_data_lists:u}=a;let f=i+"_layout";const d=e=>{r(a[f]=e),o()},p=(e,t)=>{let a={...s,[t]:{name:t,options:e}};r({taxonomy_lists:a}),o()},m=(e,t)=>{let a={...u,[t]:{name:t,options:e}};r({acf_data_lists:a}),o()};return(0,e.createElement)(ui,{key:"controls"},(0,e.createElement)("div",{className:"rttpg-panel-control-wrapper"},(0,e.createElement)(Oe.TabPanel,{className:"rttpg-tab-panel",activeClass:"active-tab",tabs:[{name:"content",title:"Content",className:"rttpg-tab-btn content"},{name:"settings",title:"Settings",className:"rttpg-tab-btn settings"},{name:"styles",title:"Styles",className:"rttpg-tab-btn styles"}]},(r=>(0,e.createElement)("div",{className:"rttpg-tab-content"},"content"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(dt,{data:t,changeLayout:d}),(0,e.createElement)(en,{data:t,changeTaxonomy:p}),(0,e.createElement)(ln,{data:t}),(0,e.createElement)(an,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(on,{data:t}),(0,e.createElement)(Te,null)),"settings"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(cn,{data:t}),(0,e.createElement)(fn,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(pn,{data:t}),(0,e.createElement)(xn,{data:t,imageSizes:l}),"grid-layout7"!==a[f]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(gn,{data:t}),(0,e.createElement)(Nn,{data:t}),(0,e.createElement)(Pn,{data:t,changeAcfData:m,acfData:n}),(0,e.createElement)(Fn,{data:t}))),"styles"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(rl,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(nl,{data:t}),(0,e.createElement)(Al,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Bl,{data:t}),(0,e.createElement)(Vl,{data:t}),(0,e.createElement)(ql,{data:t}),(0,e.createElement)(Gl,{data:t}),(0,e.createElement)(Wl,{data:t}),(0,e.createElement)(tl,{data:t})),(0,e.createElement)(e.Fragment,null,rttpgParams.hasPro&&(0,e.createElement)(Ql,{data:t}),(0,e.createElement)(ii,{data:t}),(0,e.createElement)(ci,{data:t}))))))))};function di(e){let{props:t}=e;const{attributes:a,className:r}=t,{full_wrapper_align:o,filter_type:n,section_title_style:l,section_title_alignment:i,show_pagination:s,ajax_pagination_type:c,show_meta:u,hover_animation:f,title_visibility_style:d,title_position:p,title_hover_underline:m,meta_position:g,author_icon_visibility:h,show_author_image:b,category_position:v,readmore_btn_style:_,grid_hover_overlay_type:y,grid_hover_overlay_height:w,on_hover_overlay:E,title_border_visibility:C,title_alignment:x,filter_v_alignment:k,border_style:N,filter_next_prev_btn:S,filter_h_alignment:D,is_box_border:P,arrow_position:O,dots:M,dots_style:T,lazyLoad:I,carousel_overflow:L,slider_direction:A,dots_text_align:F,acf_label_style:B,acf_alignment:j}=a;let H;return H=" "+r,H+=null!=o&&o.lg?" tpg-wrapper-align-"+(null==o?void 0:o.lg):" ",H+=" tpg-filter-type-"+n,H+=" pagination-visibility-"+s,H+=" ajax-pagination-type-next-prev-"+c,H+=" meta-visibility-"+u,H+=" section-title-style-"+l,H+=" section-title-align-"+i,H+=" img_hover_animation_"+f,H+=" title-"+d,H+=" title_position_"+p,H+=" title_hover_border_"+m,H+=" meta_position_"+g,H+=" tpg-is-author-icon-"+h,H+=" author-image-visibility-"+b,H+=" tpg-category-position-"+v,H+=" readmore-btn-"+_,H+=" grid-hover-overlay-type-"+y,H+=" grid-hover-overlay-height-"+w,H+=" hover-overlay-height-"+E,H+=" tpg-title-border-"+C,H+=" title-alignment-"+x,H+=" tpg-filter-alignment-"+k,H+=" filter-button-border-"+N,H+=" filter-nex-prev-btn-"+S,H+=" tpg-filter-h-alignment-"+D,H+=" tpg-el-box-border-"+P,H+=" slider-arrow-position-"+O,H+=" slider-dot-enable-"+M,H+=" slider-dots-style-"+T,H+=" is-lazy-load-"+I,H+=" is-carousel-overflow-"+L,H+=" slider-direction-"+A,H+=" slider-dots-align-"+F,H+=" act-label-style-"+B,H+=" tpg-acf-align-"+j,H}function pi(t){let{attributes:a,post:r}=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cat-over-image";const{prefix:n,show_meta:l,show_category:i,category_position:s,category_style:c,show_cat_icon:u}=a;let f=n+"_layout";if("show"!==l||"show"!==i)return null;const{category:d}=r,p=d.length;let m=s;return["grid-layout4","slider-layout3"].includes(a[f])&&"default"===s&&(m="top_left"),(0,e.createElement)("div",{className:`tpg-separate-category ${c} ${m} ${o}`},(0,e.createElement)("span",{className:"categories-links"},"yes"===u&&(0,e.createElement)("i",{className:"fas fa-folder-open"}),d&&d.map(((t,a)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{href:"#"},t),a+1!==p&&(0,e.createElement)("span",{className:"rt-separator"},","))))))}const mi=(e,t)=>!("default"===t&&["grid-layout4","grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","list-layout4","list-layout5","grid_hover-layout5","grid_hover-layout6","grid_hover-layout7","grid_hover-layout8","grid_hover-layout9","grid_hover-layout10","grid_hover-layout5-2","grid_hover-layout6-2","grid_hover-layout7-2","grid_hover-layout9-2","grid_hover-layout11","slider-layout3","slider-layout5","slider-layout6","slider-layout7","slider-layout8","slider-layout9","slider-layout11","slider-layout12"].includes(e));var gi=function(t){const a=t.attributes,r=t.post,{prefix:o,category_position:n,show_category:l,is_thumb_lightbox:i}=a;let s=o+"_layout",c=!("above_title"===n||"default"===n);("grid-layout4"===a[s]&&"default"===n||"default"===n&&["grid-layout4","grid_hover-layout11","slider-layout3"].includes(a[s]))&&(c=!0);let u="";return"yes"===(null==t?void 0:t.offset)&&r.offset_image_url?u=r.offset_image_url:r.image_url&&(u=r.image_url),(0,e.createElement)("div",{className:"rt-img-holder tpg-el-image-wrap"},rttpgParams.hasPro&&"show"===l&&c&&"with_meta"!==n&&pi({attributes:a,post:r}),u&&(0,e.createElement)("img",{src:u,className:"rt-img-responsive",alt:r.title}),("show"===i||["grid-layout7","slider-layout4"].includes(a[s])&&["default","show"].includes(i))&&(0,e.createElement)("a",{className:"tpg-zoom",href:"#"},(0,e.createElement)("i",{className:"fa fa-plus"})),(0,e.createElement)("div",{className:"overlay grid-hover-content"}))},hi=function(t){let{attributes:a,post:r}=t;const{prefix:o,category_position:n,title_tag:l}=a;let i=o+"_layout";const s=`${l}`;return(0,e.createElement)("div",{className:"entry-title-wrapper"},(rttpgParams.hasPro&&"above_title"===n||!mi(a[i],n))&&pi({attributes:a,post:r},"cat-above-title"),(0,e.createElement)(s,{className:"entry-title"},(0,e.createElement)("a",{href:"#",dangerouslySetInnerHTML:{__html:r.title}})))},bi=function(t){let{attributes:a,post:r}=t;const{prefix:o,show_author:n,show_author_image:l,show_meta_icon:i,author_prefix:s,show_category:c,category_position:u,show_date:f,show_tags:d,show_comment_count:p,show_post_count:m,meta_separator:g,meta_ordering:h,author_icon_visibility:b}=a,{avatar_url:v,author_name:_,category:y,tags:w,post_date:E,comment_count:C,post_count:x}=r;let k=null;"show"===l&&(k="has-author-avatar");let N=y&&"show"===c&&mi(a[o+"_layout"],u)&&["default","with_meta"].includes(u);rttpgParams.hasPro||(N=y&&"show"===c);const S=y.length,D=w.length;let P=g&&"default"!==g?(0,e.createElement)("span",{className:"separator"},g):null;const O={};O.author="show"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:`autho ${k}`},"yes"===i&&"hide"!==b&&(0,e.createElement)(e.Fragment,null,"image"===l?(0,e.createElement)("img",{src:v}):(0,e.createElement)("i",{className:"fa fa-user"})),s&&(0,e.createElement)("span",{className:"author-prefix"},s),(0,e.createElement)("a",{href:"#"},_)),P),O.category=y&&N&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"categories-links"},"yes"===i&&(0,e.createElement)("i",{className:"fas fa-folder-open"}),y.map(((t,a)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{href:"#"},t),a!==S-1&&(0,e.createElement)("span",{className:"rt-separator"},","))))),P),O.date="show"===f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"date"},"yes"===i&&(0,e.createElement)("i",{className:"far fa-calendar-alt"}),(0,e.createElement)("a",{href:"#"},E)),P),O.tags=w&&"show"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"post-tags-links"},"yes"===i&&(0,e.createElement)("i",{className:"fa fa-tags"}),w.map(((t,a)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{href:"#"},t),a!==D-1&&(0,e.createElement)("span",{className:"rt-separator"},","))))),P),O.comment_count="show"===p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"comment-count"},"yes"===i&&(0,e.createElement)("i",{className:"fas fa-comments"}),C),P),O.post_count=rttpgParams.hasPro&&"show"===m&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"post-count"},"yes"===i&&(0,e.createElement)("i",{className:"fa fa-eye"}),x),P);const M=Object.keys(O),T=[...h],I=T.map((e=>e.value));return M.length!=h.length&&I.length&&M.filter((e=>!I.includes(e))).map((e=>T.push({value:e,label:e}))),(0,e.createElement)("div",{className:"post-meta-tags rt-el-post-meta"},T.length?T.map((e=>O[e.value])):M.map((e=>O[e])))};const vi=rttpgParams.ssList;var _i=function(){return(0,e.createElement)("div",{className:"rt-tpg-social-share"},vi.includes("facebook")&&(0,e.createElement)("a",{href:"#",className:"facebook"},(0,e.createElement)("i",{className:"fab fa-facebook-f","aria-hidden":"true"})),vi.includes("twitter")&&(0,e.createElement)("a",{href:"#",className:"twitter"},(0,e.createElement)("i",{className:"fab fa-twitter","aria-hidden":"true"})),vi.includes("linkedin")&&(0,e.createElement)("a",{href:"#",className:"linkedin"},(0,e.createElement)("i",{className:"fab fa-linkedin-in","aria-hidden":"true"})),vi.includes("pinterest")&&(0,e.createElement)("a",{href:"#",className:"pinterest"},(0,e.createElement)("i",{className:"fab fa-pinterest","aria-hidden":"true"})),vi.includes("reddit")&&(0,e.createElement)("a",{href:"#",className:"reddit"},(0,e.createElement)("i",{className:"fab fa-reddit-alien","aria-hidden":"true"})),vi.includes("email")&&(0,e.createElement)("a",{href:"#",className:"email"},(0,e.createElement)("i",{className:"fa fa-envelope"})))},yi=function(t){let{attributes:a}=t;const{read_more_label:r,post_link_type:o,show_btn_icon:n,readmore_btn_icon:l,readmore_icon_position:i}=a;let s=" tpg-post-link";return"popup"===o?s+=" tpg-single-popup":"multi_popup"===o&&(s+=" tpg-multi-popup"),r?(0,e.createElement)("div",{className:"post-footer"},(0,e.createElement)("div",{className:"read-more"},(0,e.createElement)("a",{href:"#",className:s},"left"===i&&"yes"===n&&(0,e.createElement)("i",{className:`left-icon ${l}`}),r,"right"===i&&"yes"===n&&(0,e.createElement)("i",{className:`right-icon ${l}`})))):""},wi=function(t){let{attributes:a,post:r}=t;const{show_excerpt:o}=a;return(0,e.createElement)("div",{className:"tpg-excerpt tpg-el-excerpt"},"show"===o&&r.excerpt&&(0,e.createElement)("div",{className:"tpg-excerpt-inner",dangerouslySetInnerHTML:{__html:r.excerpt}}),r.acf_data&&(0,e.createElement)("div",{dangerouslySetInnerHTML:{__html:r.acf_data}}))},Ei=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-item";return b+=" "+n,"masonry"===l&&(b+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a}))))},Ci=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-item";return b+=" "+n,"masonry"===l&&(b+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a}))))},xi=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-item";return b+=" "+n,"masonry"===l&&(b+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a}))))},ki=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,show_thumb:l,show_title:i,show_meta:s,show_excerpt:c,show_acf:u,show_social_share:f,show_read_more:d}=a;let p={...o};const m=Object.keys(p);m.length&&m.map((function(e){"1"==p[e]?p[e]="12":"2"==p[e]?p[e]="6":"3"==p[e]?p[e]="4":"4"==p[e]?p[e]="3":"5"==p[e]?p[e]="24":"6"==p[e]&&(p[e]="2")}));let g="rt-col-md-"+(null!=p&&p.lg?p.lg:"6")+" rt-col-sm-"+(null!=p&&p.md?p.md:"6")+" rt-col-xs-"+(null!=p&&p.sm?p.sm:"12"),h=" rt-grid-item";return h+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+g+" "+h},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper-flex"},"show"===l&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"post-right-content"},"show"===i&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===c||"show"===u)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===f&&(0,e.createElement)(_i,null),"show"===d&&(0,e.createElement)(yi,{attributes:a})))))},Ni=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a,{tpg_post_count:d}=r;let p=" ";return p+=" "+o,(0,e.createElement)("div",{className:`offset-item ${r.post_class} ${p}`},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"offset-content"},"show"===l&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===s||"show"===c)&&1==d&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&1==d&&(0,e.createElement)(_i,null),"show"===f&&1==d&&(0,e.createElement)(yi,{attributes:a})))))},Si=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a,{tpg_post_count:d}=r;let p=" ";return p+=" "+o,(0,e.createElement)("div",{className:`offset-item ${r.post_class} ${p}`},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"offset-content"},"show"===l&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===s||"show"===c)&&1==d&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&1==d&&(0,e.createElement)(_i,null),"show"===f&&1==d&&(0,e.createElement)(yi,{attributes:a})))))},Di=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a,{tpg_post_count:d}=r;let p=" ";return p+=" "+o,(0,e.createElement)("div",{className:`offset-item ${r.post_class} ${p}`},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"offset-content"},"show"===l&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===s||"show"===c)&&1==d&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&1==d&&(0,e.createElement)(_i,null),"show"===f&&1==d&&(0,e.createElement)(yi,{attributes:a})))))},Pi=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a,{tpg_post_count:d}=r;let p=" ";return p+=" "+o,(0,e.createElement)("div",{className:`offset-item ${r.post_class} ${p}`},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"offset-content"},"show"===l&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===s||"show"===c)&&1==d&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&1==d&&(0,e.createElement)(_i,null),"show"===f&&1==d&&(0,e.createElement)(yi,{attributes:a})))))},Oi=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i}=a;let s={...o};const c=Object.keys(s);c.length&&c.map((function(e){"1"==s[e]?s[e]="12":"2"==s[e]?s[e]="6":"3"==s[e]?s[e]="4":"4"==s[e]?s[e]="3":"5"==s[e]?s[e]="24":"6"==s[e]&&(s[e]="2")}));let u="rt-col-md-"+(null!=s&&s.lg?s.lg:"4")+" rt-col-sm-"+(null!=s&&s.md?s.md:"6")+" rt-col-xs-"+(null!=s&&s.sm?s.sm:"12"),f=" rt-grid-item";return f+=" "+n,"masonry"===l&&(f+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+u+" "+f,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)("div",{className:"rt-img-holder tpg-el-image-wrap"},(0,e.createElement)(gi,{attributes:a,post:r})))))},Mi=function(t){let{attributes:a,post:r}=t;const{prefix:o}=a;let n=(0,e.createElement)(Ei,{attributes:a,post:r});return"grid-layout3"===a[o+"_layout"]?n=(0,e.createElement)(Ci,{attributes:a,post:r}):"grid-layout4"===a[o+"_layout"]?n=(0,e.createElement)(xi,{attributes:a,post:r}):"grid-layout2"===a[o+"_layout"]?n=(0,e.createElement)(ki,{attributes:a,post:r}):"grid-layout5"===a[o+"_layout"]?n=(0,e.createElement)(Ni,{attributes:a,post:r}):"grid-layout5-2"===a[o+"_layout"]?n=(0,e.createElement)(Si,{attributes:a,post:r}):"grid-layout6"===a[o+"_layout"]?n=(0,e.createElement)(Di,{attributes:a,post:r}):"grid-layout6-2"===a[o+"_layout"]?n=(0,e.createElement)(Pi,{attributes:a,post:r}):"grid-layout7"===a[o+"_layout"]&&(n=(0,e.createElement)(Oi,{attributes:a,post:r})),n},Ti=window.wp.blockEditor,Ii=t=>{let{attributes:a,setAttributes:r}=t;const{show_section_title:o,section_title_style:n,section_title_source:l,section_title_text:i,section_title_tag:s}=a;if("show"!==o)return"";const c=`${s}`;return(0,e.createElement)("div",{className:`tpg-widget-heading-wrapper rt-clear heading-${n}`},(0,e.createElement)("span",{className:"tpg-widget-heading-line line-left"}),(0,e.createElement)(c,{className:"tpg-widget-heading"},(0,e.createElement)("span",null,"page_title"===l?rttpgParams.pageTitle:(0,e.createElement)(Ti.RichText,{allowedFormats:["core/bold","core/italic"],value:i,onChange:e=>r({section_title_text:e})}))),(0,e.createElement)("span",{className:"tpg-widget-heading-line line-right"}))},Li=a(184),Ai=a.n(Li);const{Component:Fi}=wp.element,{__:Bi}=wp.i18n;class ji extends Fi{render(){const{className:t,isCurrent:a,isDots:r,children:o,pageKey:n,onClick:l}=this.props,i=Ai()(t,{active:a},{dots:r});return(0,e.createElement)("li",{className:i},(0,e.createElement)("a",{onClick:()=>l(),href:"#"},"prev"===n&&(0,e.createElement)("span",{className:"fa fa-angle-double-left"}),Bi(o),"next"===n&&(0,e.createElement)("span",{className:"fa fa-angle-double-right"})))}}ji.defaultProps={isCurrent:!1,isDots:!1,className:""},ji.propTypes={isCurrent:Ze().bool,className:Ze().string,key:Ze().string,isDots:Ze().bool,onClick:Ze().func};var Hi=ji;const{Component:$i}=wp.element;class Ri extends $i{render(){const{total:t,current:a,prevText:r,nextText:o,baseClassName:n,onClickPage:l}=this.props;if(!t)return null;let i=this.props.endSize<1?1:this.props.endSize,s=this.props.midSize<0?2:this.props.midSize,c=!1,u=[];a&&a>1&&u.push({isCurrent:!1,key:"prev",onClick:()=>l(a-1),text:r});for(let e=1;e<=this.props.total;e++)e===a?(c=!0,u.push({isCurrent:!0,key:e,onClick:()=>l(e),className:"pages",text:e})):e<=i||a&&e>=a-s&&e<=a+s||e>t-i?(u.push({isLink:!0,key:e,onClick:()=>l(e),className:"pages",text:e}),c=!0):c&&(u.push({isDots:!0,key:e,onClick:()=>console.log("dots"),className:"pages",text:"..."}),c=!1);return a&&a<t&&u.push({isCurrent:!1,key:"next",onClick:()=>l(a+1),text:o}),(0,e.createElement)("div",{className:n},(0,e.createElement)("ul",{className:"pagination-list"},u.map((t=>{let{isCurrent:a,key:r,text:o,className:n,onClick:l,isDots:i,isLink:s}=t;return(0,e.createElement)(Hi,{isCurrent:a,key:r,pageKey:r,onClick:()=>l(),className:n,isDots:i,isLink:s},o)}))))}}Ri.defaultProps={total:0,current:1,prevText:"",nextText:"",endSize:1,midSize:2,baseClassName:"rt-pagination"},Ri.propTypes={total:Ze().number,current:Ze().number,prevText:Ze().string,nextText:Ze().string,endSize:Ze().number,midSize:Ze().number,baseClassName:Ze().string,onClickPage:Ze().func};var Vi=function(t){let{props:a,totalPages:r}=t;const{attributes:o,setAttributes:n}=a,{show_pagination:l,page:i,pagination_type:s,load_more_button_text:c,query_change:u,ajax_pagination_type:f}=o;return"show"!==l||r<2?"":(0,e.createElement)("div",{className:"rt-pagination-wrap"},["pagination","pagination_ajax"].includes(s)&&("yes"===f?(0,e.createElement)("div",{className:"rt-pagination"},(0,e.createElement)("ul",{className:"pagination-list"},(0,e.createElement)("li",{className:""},(0,e.createElement)("a",{href:"#"},(0,e.createElement)("i",{className:"fa fa-angle-double-left"}))),(0,e.createElement)("li",{className:""},(0,e.createElement)("a",{href:"#"},(0,e.createElement)("i",{className:"fa fa-angle-double-right"}))))):(0,e.createElement)(Ri,{total:r,current:i,onClickPage:e=>n({page:e,query_change:!0})})),"load_more"===s&&(0,e.createElement)("div",{className:"rt-loadmore-btn rt-loadmore-action rt-loadmore-style"},(0,e.createElement)("span",{className:"rt-loadmore-text"},c||"Load More")))};const{Spinner:zi}=wp.components,{useEffect:qi,useRef:Yi}=wp.element;var Gi=function(t){let{props:a,postData:r,filterMarkup:o}=t;const{attributes:n,setAttributes:l,clientId:i}=a,{prefix:s,uniqueId:c,filter_btn_style:u,filter_type:f,grid_layout_style:d,display_per_page:p,query_change:m,middle_border:g}=n,h=r.posts,b=Math.ceil(r.total_post/p);let v=di({props:a});const _=i.substr(0,6);let y=Yi();qi((()=>{c?c&&c!==_&&l({uniqueId:_}):l({uniqueId:_}),y.current.addEventListener("click",(function(e){e.target.classList.contains("rt-filter-item-wrap")&&st.warn("N.B: This field works front-end only.")}))}),[]);let w="";rttpgParams.hasPro&&"carousel"===u&&"button"===f&&(w="carousel");let E="masonry"===d?"tpg-even":d,C=n[s+"_layout"].replace(/-2/g,"");C+=" grid-behaviour",C+=" "+E,C+=" "+s+"_layout_wrapper",["grid-layout6","grid-layout6-2"].includes(n[s+"_layout"])&&"no"===g&&(C+=" disable-middle-border"),m&&(C+=" tpg-editor-loading");const x=t=>{let{posts:a}=t;return a.map((t=>t?t.message?(0,e.createElement)("div",{className:"message"},t.message):(0,e.createElement)(Mi,{attributes:n,post:t}):null))};return(0,e.createElement)("div",{ref:y,className:"rttpg-block-postgrid rttpg-block-"+c+" "+v},(0,e.createElement)("div",{className:`rt-container-fluid rt-tpg-container tpg-el-main-wrapper clearfix ${n[s+"_layout"]}-main`,"data-el-settings":"","data-el-query":"","data-el-path":""},h&&h.length&&(0,e.createElement)("div",{className:`tpg-header-wrapper ${w}`},(0,e.createElement)(Ii,{attributes:n,setAttributes:l}),rttpgParams.hasPro&&(0,e.createElement)("div",{className:"rt-layout-filter-container rt-clear",dangerouslySetInnerHTML:{__html:o}})),(0,e.createElement)("div",{className:`rt-row rt-content-loader ${C}`},h&&h.length?(0,e.createElement)((t=>{let{posts:a,layout:r}=t;if(["grid-layout5","grid-layout5-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-sm-6 rt-col-xs-12 offset-left-wrap offset-left"},(0,e.createElement)(x,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-sm-6 rt-col-xs-12 offset-right"},(0,e.createElement)(x,{posts:t})))}if(["grid-layout6","grid-layout6-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-sm-6 rt-col-md-7 rt-col-xs-12 offset-left-wrap offset-left"},(0,e.createElement)(x,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-sm-6 rt-col-md-5 rt-col-xs-12 offset-right"},(0,e.createElement)(x,{posts:t})))}return(0,e.createElement)(x,{posts:a})}),{posts:h,layout:n[s+"_layout"]}):(0,e.createElement)("div",{className:"rttpg-postgrid-is-loading"},null!=r&&r.message&&r.message?r.message:(0,e.createElement)(zi,null))),(0,e.createElement)(Vi,{props:a,totalPages:b})))};const{useEffect:Ui,useState:Wi}=wp.element;(0,t.registerBlockType)("rttpg/tpg-grid-layout",{title:(0,r.__)("Grid Layout","the-post-grid"),category:"rttpg",description:"The post grid block, Grid layout",icon:(0,e.createElement)("img",{src:rttpgParams.plugin_url+"/assets/images/gutenberg/grid-layout.svg",alt:(0,r.__)("Grid Layout")}),example:{attributes:{preview:!0}},supports:{align:["center","wide","full"]},keywords:[(0,r.__)("post grid"),(0,r.__)("the post grid"),(0,r.__)("grid layout"),(0,r.__)("the post"),(0,r.__)("the"),(0,r.__)("grid"),(0,r.__)("post")],save:()=>null,edit:t=>{const{isSelected:a,attributes:r,setAttributes:o}=t,{preview:n,prefix:l,uniqueId:i,grid_layout:s,post_id:c,exclude:u,post_limit:f,offset:d,post_keyword:p,display_per_page:m,layout_style:g,ignore_sticky_posts:h,no_posts_found_text:b,show_pagination:v,media_source:_,image_size:y,image_offset_size:w,default_image:E,category_position:C,category_source:x,tag_source:k,taxonomy_lists:N,start_date:S,end_date:P,hover_animation:O,excerpt_type:T,excerpt_limit:I,excerpt_more_text:A,page:F,query_change:B,acf_data_lists:j,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V,post_type:z,author:q,order:Y,orderby:G,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}=r;if(n)return L.grid_preview;const[ue,fe]=Wi([]),[de,pe]=Wi(),[me,ge]=Wi(!1),[he,be]=Wi([]),[ve,_e]=Wi([]),[ye,we]=Wi([]),Ee="undefined"==typeof AbortController?void 0:new AbortController,Ce=()=>{null==de||de.abort(),pe(Ee),M()({path:"/rttpg/v1/image-size",signal:null==Ee?void 0:Ee.signal}).then((e=>{_e(e)}))};return Ui((()=>{null==de||de.abort(),pe(Ee),fe({}),M()({path:"/rttpg/v1/query",signal:null==Ee?void 0:Ee.signal,method:"POST",data:{prefix:l,post_type:z,grid_layout:s,post_id:c,exclude:u,post_limit:f,offset:d,show_pagination:v,ignore_sticky_posts:h,orderby:G,order:Y,display_per_page:m,layout_style:g,author:q,start_date:S,end_date:P,media_source:_,image_size:y,image_offset_size:w,show_taxonomy_filter:U,relation:ne,post_keyword:p,no_posts_found_text:b,default_image:E,category_position:C,taxonomy_lists:N,category_source:x,tag_source:k,hover_animation:O,excerpt_type:T,excerpt_limit:I,excerpt_more_text:A,page:F,acf_data_lists:j,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V}}).then((e=>{o({query_change:!1}),fe(e)})),null==de||de.abort(),pe(Ee),M()({path:"/rttpg/v1/acf",signal:null==Ee?void 0:Ee.signal}).then((e=>{let t=[];Object.keys(e).map((a=>{t.push(e[a])})),be(t)})),rttpgParams.hasPro&&(null==de||de.abort(),pe(Ee),M()({path:"/rttpg/v1/filter",method:"POST",signal:null==Ee?void 0:Ee.signal,data:{prefix:l,post_type:z,author:q,order:Y,orderby:G,taxonomy_lists:N,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}}).then((e=>{o({query_change:!1}),we(null==e?void 0:e.markup)})))}),[me,F]),Ui((()=>{Ce();const e=document.querySelector(".interface-interface-skeleton__sidebar");e.classList.add("tpg-sidebar"),e.addEventListener("click",(function(e){e.target.classList.contains("rttpg-tab-btn")&&("Content"!==e.target.textContent?this.classList.add("tpg-settings-enable"):this.classList.remove("tpg-settings-enable"))})),e.addEventListener("scroll",(function(e){e.target.scrollTop>86?this.classList.add("tpg-should-collapse"):this.classList.remove("tpg-should-collapse")}))}),[]),Ui((()=>{Ce()}),[]),Ui((()=>{const e=document.querySelector(".interface-interface-skeleton__sidebar");e.classList.add("tpg-sidebar"),e.classList.remove("tpg-settings-enable"),e.addEventListener("click",(function(e){e.target.classList.contains("rttpg-tab-btn")&&("Content"!==e.target.textContent?this.classList.add("tpg-settings-enable"):this.classList.remove("tpg-settings-enable"))})),e.addEventListener("scroll",(function(e){e.target.scrollTop>86?this.classList.add("tpg-should-collapse"):this.classList.remove("tpg-should-collapse")}))}),[a]),i&&D(r,"tpg-grid-layout",i),[a&&(0,e.createElement)(fi,{attributes:r,setAttributes:o,changeQuery:()=>{ge(!me),o({query_change:!0,page:1})},acfData:he,imageSizes:ve,postData:ue}),(0,e.createElement)(Gi,{props:t,postData:ue,filterMarkup:ye})]}}),window.wp.data;const{InspectorControls:Ji}=wp.blockEditor;var Qi=function(t){const{attributes:a,setAttributes:r,changeQuery:o,acfData:n,imageSizes:l}=t,{prefix:i,taxonomy_lists:s,ignore_sticky_posts:c,acf_data_lists:u}=a;let f=i+"_layout";const d=e=>{r(a[f]=e),o()},p=(e,t)=>{let a={...s,[t]:{name:t,options:e}};r({taxonomy_lists:a}),o()},m=(e,t)=>{let a={...u,[t]:{name:t,options:e}};r({acf_data_lists:a}),o()};return(0,e.createElement)(Ji,{key:"controls"},(0,e.createElement)("div",{className:"rttpg-panel-control-wrapper"},(0,e.createElement)(Oe.TabPanel,{className:"rttpg-tab-panel",activeClass:"active-tab",tabs:[{name:"content",title:"Content",className:"rttpg-tab-btn content"},{name:"settings",title:"Settings",className:"rttpg-tab-btn settings"},{name:"styles",title:"Styles",className:"rttpg-tab-btn styles"}]},(a=>(0,e.createElement)("div",{className:"rttpg-tab-content"},"content"===a.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(dt,{data:t,changeLayout:d}),(0,e.createElement)(en,{data:t,changeTaxonomy:p}),(0,e.createElement)(ln,{data:t}),(0,e.createElement)(an,{data:t}),(0,e.createElement)(on,{data:t}),(0,e.createElement)(Te,null)),"settings"===a.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(cn,{data:t}),(0,e.createElement)(fn,{data:t}),(0,e.createElement)(pn,{data:t}),(0,e.createElement)(xn,{data:t,imageSizes:l}),(0,e.createElement)(gn,{data:t}),(0,e.createElement)(Nn,{data:t}),(0,e.createElement)(Pn,{data:t,changeAcfData:m,acfData:n}),(0,e.createElement)(Fn,{data:t})),"styles"===a.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(rl,{data:t}),(0,e.createElement)(nl,{data:t}),(0,e.createElement)(Al,{data:t}),(0,e.createElement)(Bl,{data:t}),(0,e.createElement)(Vl,{data:t}),(0,e.createElement)(ql,{data:t}),(0,e.createElement)(Gl,{data:t}),(0,e.createElement)(Wl,{data:t}),(0,e.createElement)(tl,{data:t}),rttpgParams.hasPro&&(0,e.createElement)(Ql,{data:t}),(0,e.createElement)(ii,{data:t}),(0,e.createElement)(ci,{data:t})))))))},Ki=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"12")+" rt-col-sm-"+(null!=m&&m.md?m.md:"12")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-list-item rt-grid-item";return b+=" "+n,"masonry"===l&&(b+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"post-right-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a})))))},Zi=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h=" rt-list-item rt-grid-item";h+=" "+n,"masonry"===l&&(h+=" masonry-grid-item");let b="rt-col-md-"+(null!=m&&m.lg?m.lg:"6")+" rt-col-sm-"+(null!=m&&m.md?m.md:"12")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12");return 1==r.tpg_post_count&&(b="rt-col-md-12 rt-col-sm-12 rt-col-xs-12"),(0,e.createElement)("div",{className:r.post_class+" "+b+" "+h,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(e.Fragment,null,1==r.tpg_post_count?(0,e.createElement)(gi,{attributes:a,post:r}):(0,e.createElement)(gi,{attributes:a,post:r,offset:"yes"})),(0,e.createElement)("div",{className:"post-right-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&1==r.tpg_post_count&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&1==r.tpg_post_count&&(0,e.createElement)(_i,null),"show"===p&&1==r.tpg_post_count&&(0,e.createElement)(yi,{attributes:a})))))},Xi=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,layout_style:n,show_thumb:l,show_title:i,show_meta:s,show_excerpt:c,show_acf:u,show_social_share:f,show_read_more:d}=a;let p=" rt-list-item rt-grid-item";return p+=" "+o,"masonry"===n&&(p+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" rt-col-md-12 rt-col-sm-12 rt-col-xs-12 "+p,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===l&&(0,e.createElement)(e.Fragment,null,1==r.tpg_post_count?(0,e.createElement)(gi,{attributes:a,post:r}):(0,e.createElement)(gi,{attributes:a,post:r,offset:"yes"})),(0,e.createElement)("div",{className:"post-right-content"},"show"===i&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===c||"show"===u)&&1==r.tpg_post_count&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===f&&(0,e.createElement)(_i,null),"show"===d&&1==r.tpg_post_count&&(0,e.createElement)(yi,{attributes:a})))))},es=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"12")+" rt-col-sm-"+(null!=m&&m.md?m.md:"12")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-list-item rt-grid-item";return b+=" "+n,"masonry"===l&&(b+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"post-right-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a})))))},ts=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-list-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"post-right-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a})))))},as=function(t){let{attributes:a,post:r}=t;const{prefix:o}=a;let n=(0,e.createElement)(Ki,{attributes:a,post:r});return"list-layout2"===a[o+"_layout"]||"list-layout2-2"===a[o+"_layout"]?n=(0,e.createElement)(Zi,{attributes:a,post:r}):"list-layout3"===a[o+"_layout"]||"list-layout3-2"===a[o+"_layout"]?n=(0,e.createElement)(Xi,{attributes:a,post:r}):"list-layout4"===a[o+"_layout"]?n=(0,e.createElement)(es,{attributes:a,post:r}):"list-layout5"===a[o+"_layout"]&&(n=(0,e.createElement)(ts,{attributes:a,post:r})),n};const{Spinner:rs}=wp.components,{useEffect:os,useRef:ns}=wp.element;var ls=function(t){let{props:a,postData:r,filterMarkup:o}=t;const{attributes:n,setAttributes:l,clientId:i}=a,{prefix:s,uniqueId:c,filter_btn_style:u,filter_type:f,grid_layout_style:d,display_per_page:p,query_change:m}=n,g=r.posts,h=Math.ceil(r.total_post/p);let b=di({props:a});const v=i.substr(0,6);let _=ns();os((()=>{c?c&&c!==v&&l({uniqueId:v}):l({uniqueId:v}),_.current.addEventListener("click",(function(e){e.target.classList.contains("rt-filter-item-wrap")&&st.warn("N.B: This field works front-end only.")}))}),[]);let y="";rttpgParams.hasPro&&"carousel"===u&&"button"===f&&(y="carousel");let w=n[s+"_layout"].replace(/-2/g,"");w+=" list-behaviour",w+=" "+d,w+=" "+s+"-layout-wrapper",m&&(w+=" tpg-editor-loading");const E=t=>{let{posts:a}=t;return a.map((t=>t?t.message?(0,e.createElement)("div",{className:"message"},t.message):(0,e.createElement)(as,{attributes:n,post:t}):null))};return(0,e.createElement)("div",{ref:_,className:"rttpg-block-postgrid rttpg-block-"+c+" "+b},(0,e.createElement)("div",{className:`rt-container-fluid rt-tpg-container tpg-el-main-wrapper clearfix ${n[s+"_layout"]}-main`,"data-el-settings":"","data-el-query":"","data-el-path":""},g&&g.length&&(0,e.createElement)("div",{className:`tpg-header-wrapper ${y}`},(0,e.createElement)(Ii,{attributes:n,setAttributes:l}),rttpgParams.hasPro&&(0,e.createElement)("div",{className:"rt-layout-filter-container rt-clear",dangerouslySetInnerHTML:{__html:o}})),(0,e.createElement)("div",{className:`rt-row rt-content-loader ${w}`},g&&g.length?(0,e.createElement)((t=>{let{posts:a,layout:r}=t;if(["list-layout2","list-layout2-2","list-layout3","list-layout3-2"].includes(r)){const t=[...a].slice(1);let o="rt-col-xs-12 rt-col-md-4 rt-col-sm-5 offset-left-wrap offset-left",n="rt-col-xs-12 rt-col-md-8 rt-col-sm-7 offset-right";return["list-layout3","list-layout3-2"].includes(r)&&(o="rt-col-md-6 rt-col-sm-5 offset-left-wrap offset-left",n="rt-col-md-6 rt-col-sm-7 offset-right"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:o},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:n},(0,e.createElement)("div",{className:"rt-row"},(0,e.createElement)(E,{posts:t}))))}return(0,e.createElement)(E,{posts:a})}),{posts:g,layout:n[s+"_layout"]}):(0,e.createElement)("div",{className:"rttpg-postgrid-is-loading"},null!=r&&r.message&&r.message?r.message:(0,e.createElement)(rs,null))),(0,e.createElement)(Vi,{props:a,totalPages:h})))};const{useEffect:is,useState:ss}=wp.element;(0,t.registerBlockType)("rttpg/tpg-list-layout",{title:(0,r.__)("List Layout","the-post-grid"),category:"rttpg",description:"The post grid block, List layout",icon:(0,e.createElement)("img",{src:rttpgParams.plugin_url+"/assets/images/gutenberg/list-layout.svg",alt:(0,r.__)("Grid Layout")}),example:{attributes:{preview:!0}},supports:{align:["center","wide","full"]},keywords:[(0,r.__)("post grid"),(0,r.__)("the post grid"),(0,r.__)("list layout"),(0,r.__)("the post"),(0,r.__)("list"),(0,r.__)("the"),(0,r.__)("grid"),(0,r.__)("post")],save:()=>null,edit:t=>{const{isSelected:a,attributes:r,setAttributes:o}=t,{preview:n,prefix:l,list_layout:i,uniqueId:s,post_id:c,exclude:u,post_limit:f,offset:d,post_keyword:p,display_per_page:m,layout_style:g,ignore_sticky_posts:h,no_posts_found_text:b,show_pagination:v,media_source:_,image_size:y,image_offset_size:w,default_image:E,category_position:C,category_source:x,tag_source:k,taxonomy_lists:N,start_date:S,end_date:P,hover_animation:O,excerpt_type:T,excerpt_limit:I,excerpt_more_text:A,page:F,query_change:B,acf_data_lists:j,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V,post_type:z,author:q,order:Y,orderby:G,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}=r;if(n)return L.list_preview;const[ue,fe]=ss([]),[de,pe]=ss(),[me,ge]=ss(!1),[he,be]=ss([]),[ve,_e]=ss([]),[ye,we]=ss([]),Ee="undefined"==typeof AbortController?void 0:new AbortController;return is((()=>{null==de||de.abort(),pe(Ee),fe({}),M()({path:"/rttpg/v1/query",method:"POST",signal:null==Ee?void 0:Ee.signal,data:{prefix:l,post_type:z,list_layout:i,post_id:c,exclude:u,post_limit:f,offset:d,show_pagination:v,ignore_sticky_posts:h,orderby:G,order:Y,display_per_page:m,layout_style:g,author:q,start_date:S,end_date:P,media_source:_,image_size:y,image_offset_size:w,show_taxonomy_filter:U,relation:ne,post_keyword:p,no_posts_found_text:b,default_image:E,category_position:C,taxonomy_lists:N,category_source:x,tag_source:k,hover_animation:O,excerpt_type:T,excerpt_limit:I,excerpt_more_text:A,page:F,acf_data_lists:j,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V}}).then((e=>{o({query_change:!1}),fe(e)})),null==de||de.abort(),pe(Ee),M()({path:"/rttpg/v1/acf",signal:null==Ee?void 0:Ee.signal}).then((e=>{let t=[];Object.keys(e).map((a=>{t.push(e[a])})),be(t)})),rttpgParams.hasPro&&(null==de||de.abort(),pe(Ee),M()({path:"/rttpg/v1/filter",signal:null==Ee?void 0:Ee.signal,method:"POST",data:{prefix:l,post_type:z,author:q,order:Y,orderby:G,taxonomy_lists:N,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}}).then((e=>{o({query_change:!1}),we(null==e?void 0:e.markup)})))}),[me,F]),(0,Ti.useBlockProps)(),is((()=>{null==de||de.abort(),pe(Ee),M()({path:"/rttpg/v1/image-size",signal:null==Ee?void 0:Ee.signal}).then((e=>{_e(e)}))}),[]),is((()=>{const e=document.querySelector(".interface-interface-skeleton__sidebar");e.classList.add("tpg-sidebar"),e.classList.remove("tpg-settings-enable"),e.addEventListener("click",(function(e){e.target.classList.contains("rttpg-tab-btn")&&("Content"!==e.target.textContent?this.classList.add("tpg-settings-enable"):this.classList.remove("tpg-settings-enable"))})),e.addEventListener("scroll",(function(e){e.target.scrollTop>86?this.classList.add("tpg-should-collapse"):this.classList.remove("tpg-should-collapse")}))}),[a]),s&&D(r,"tpg-list-layout",s),[a&&(0,e.createElement)(Qi,{attributes:r,setAttributes:o,changeQuery:()=>{ge(!me),o({query_change:!0,page:1})},acfData:he,imageSizes:ve,postData:ue}),(0,e.createElement)(ls,{props:t,postData:ue,filterMarkup:ye})]}});const{InspectorControls:cs}=wp.blockEditor;var us=function(t){const{attributes:a,setAttributes:r,changeQuery:o,acfData:n,imageSizes:l}=t,{prefix:i,taxonomy_lists:s,ignore_sticky_posts:c,acf_data_lists:u}=a;let f=i+"_layout";const d=e=>{r(a[f]=e),o()},p=(e,t)=>{let a={...s,[t]:{name:t,options:e}};r({taxonomy_lists:a}),o()},m=(e,t)=>{let a={...u,[t]:{name:t,options:e}};r({acf_data_lists:a}),o()};return(0,e.createElement)(cs,{key:"controls"},(0,e.createElement)("div",{className:"rttpg-panel-control-wrapper"},(0,e.createElement)(Oe.TabPanel,{className:"rttpg-tab-panel",activeClass:"active-tab",tabs:[{name:"content",title:"Content",className:"rttpg-tab-btn content"},{name:"settings",title:"Settings",className:"rttpg-tab-btn settings"},{name:"styles",title:"Styles",className:"rttpg-tab-btn styles"}]},(r=>(0,e.createElement)("div",{className:"rttpg-tab-content"},"content"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(dt,{data:t,changeLayout:d}),(0,e.createElement)(en,{data:t,changeTaxonomy:p}),(0,e.createElement)(ln,{data:t}),(0,e.createElement)(an,{data:t}),(0,e.createElement)(on,{data:t}),(0,e.createElement)(Te,null)),"settings"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(cn,{data:t}),(0,e.createElement)(fn,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(pn,{data:t}),(0,e.createElement)(xn,{data:t,imageSizes:l}),"grid-layout7"!==a[f]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(gn,{data:t}),(0,e.createElement)(Nn,{data:t}),(0,e.createElement)(Pn,{data:t,changeAcfData:m,acfData:n}),(0,e.createElement)(Fn,{data:t}))),"styles"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(rl,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(nl,{data:t}),(0,e.createElement)(Al,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Bl,{data:t}),(0,e.createElement)(Vl,{data:t}),(0,e.createElement)(ql,{data:t}),(0,e.createElement)(Gl,{data:t}),(0,e.createElement)(Wl,{data:t}),(0,e.createElement)(tl,{data:t}),rttpgParams.hasPro&&(0,e.createElement)(Ql,{data:t}),(0,e.createElement)(ii,{data:t}),(0,e.createElement)(ci,{data:t}))))))))},fs=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-hover-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a})))))},ds=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-hover-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a})))))},ps=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-hover-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a})))))},ms=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h=" rt-grid-hover-item rt-grid-item";h+=" "+n;let b="rt-col-md-"+(null!=m&&m.lg?m.lg:"6")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12");return 1==r.tpg_post_count&&(b="rt-col-md-12 rt-col-sm-12 rt-col-xs-12 tpg-reset-margin"),(0,e.createElement)("div",{className:r.post_class+" "+b+" "+h,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&1==r.tpg_post_count&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&1==r.tpg_post_count&&(0,e.createElement)(_i,null),"show"===p&&1==r.tpg_post_count&&(0,e.createElement)(yi,{attributes:a})))))},gs=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m=" rt-grid-hover-item rt-grid-item";m+=" "+n;let g="rt-col-md-12 rt-col-sm-12 rt-col-xs-12";return 1==r.tpg_post_count&&(g="rt-col-md-12 rt-col-sm-12 rt-col-xs-12 tpg-reset-margin"),(0,e.createElement)("div",{className:r.post_class+" "+g+" "+m,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a})))))},hs=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a;let d=" "+o,p="rt-col-md-6 rt-col-sm-6 rt-col-xs-12 rt-grid-hover-item rt-grid-item";return 1!=r.tpg_post_count&&2!=r.tpg_post_count||(p=""),(0,e.createElement)("div",{className:r.post_class+" "+p+" "+d,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===l&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===s||"show"===c)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&(0,e.createElement)(_i,null),"show"===f&&(0,e.createElement)(yi,{attributes:a})))))},bs=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,layout_style:n,show_thumb:l,show_title:i,show_meta:s,show_excerpt:c,show_acf:u,show_social_share:f,show_read_more:d}=a;let p=" rt-grid-hover-item rt-grid-item";p+=" "+o;let m="rt-col-md-6 rt-col-sm-6 rt-col-xs-12";return 1==r.tpg_post_count&&(m=" tpg-reset-margin"),(0,e.createElement)("div",{className:r.post_class+" "+m+" "+p,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===l&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===i&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===c||"show"===u)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===f&&(0,e.createElement)(_i,null),"show"===d&&(0,e.createElement)(yi,{attributes:a})))))},vs=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,layout_style:n,show_thumb:l,show_title:i,show_meta:s,show_excerpt:c,show_acf:u,show_social_share:f,show_read_more:d}=a;let p=" rt-grid-hover-item rt-grid-item";return p+=" "+o,(0,e.createElement)("div",{className:r.post_class+" "+p,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===l&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===i&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===c||"show"===u)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===f&&(0,e.createElement)(_i,null),"show"===d&&(0,e.createElement)(yi,{attributes:a})))))},_s=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a;let d="rt-col-md-12 rt-col-sm-12 rt-col-xs-12";1==r.tpg_post_count&&(d=" ");let p=" rt-grid-hover-item rt-grid-item";return p+=" "+o,(0,e.createElement)("div",{className:r.post_class+" "+d+" "+p,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===l&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===s||"show"===c&&1==r.tpg_post_count)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&(0,e.createElement)(_i,null),"show"===f&&(0,e.createElement)(yi,{attributes:a})))))},ys=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"6")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-hover-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a})))))},ws=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"6")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-hover-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(gi,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(hi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(bi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(wi,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(_i,null),"show"===p&&(0,e.createElement)(yi,{attributes:a})))))},Es=function(t){let{attributes:a,post:r}=t;const{prefix:o}=a;let n=(0,e.createElement)(fs,{attributes:a,post:r});return"grid_hover-layout2"===a[o+"_layout"]?n=(0,e.createElement)(ds,{attributes:a,post:r}):"grid_hover-layout3"===a[o+"_layout"]?n=(0,e.createElement)(ps,{attributes:a,post:r}):"grid_hover-layout4"===a[o+"_layout"]||"grid_hover-layout4-2"===a[o+"_layout"]?n=(0,e.createElement)(ms,{attributes:a,post:r}):"grid_hover-layout5"===a[o+"_layout"]||"grid_hover-layout5-2"===a[o+"_layout"]?n=(0,e.createElement)(gs,{attributes:a,post:r}):"grid_hover-layout6"===a[o+"_layout"]||"grid_hover-layout6-2"===a[o+"_layout"]?n=(0,e.createElement)(hs,{attributes:a,post:r}):"grid_hover-layout7"===a[o+"_layout"]||"grid_hover-layout7-2"===a[o+"_layout"]?n=(0,e.createElement)(bs,{attributes:a,post:r}):"grid_hover-layout8"===a[o+"_layout"]?n=(0,e.createElement)(vs,{attributes:a,post:r}):"grid_hover-layout9"===a[o+"_layout"]||"grid_hover-layout9-2"===a[o+"_layout"]?n=(0,e.createElement)(_s,{attributes:a,post:r}):"grid_hover-layout10"===a[o+"_layout"]?n=(0,e.createElement)(ys,{attributes:a,post:r}):"grid_hover-layout11"===a[o+"_layout"]&&(n=(0,e.createElement)(ws,{attributes:a,post:r})),n};const{Spinner:Cs}=wp.components,{useEffect:xs,useRef:ks}=wp.element;var Ns=function(t){let{props:a,postData:r,filterMarkup:o}=t;const{attributes:n,setAttributes:l,clientId:i}=a,{prefix:s,uniqueId:c,filter_btn_style:u,filter_type:f,grid_layout_style:d,display_per_page:p,query_change:m}=n,g=r.posts,h=Math.ceil(r.total_post/p);let b=di({props:a});const v=i.substr(0,6);let _=ks();xs((()=>{c?c&&c!==v&&l({uniqueId:v}):l({uniqueId:v}),_.current.addEventListener("click",(function(e){e.target.classList.contains("rt-filter-item-wrap")&&st.warn("N.B: This field works front-end only.")}))}),[]);let y="";rttpgParams.hasPro&&"carousel"===u&&"button"===f&&(y="carousel");let w=n[s+"_layout"].replace(/-2/g,"");w+=" grid-behaviour",w+=" "+d,w+=" "+s+"_layout_wrapper",["grid_hover-layout6","grid_hover-layout7","grid_hover-layout8","grid_hover-layout9","grid_hover-layout10","grid_hover-layout11","grid_hover-layout5-2","grid_hover-layout6-2","grid_hover-layout7-2","grid_hover-layout9-2"].includes(n[s+"_layout"])&&(w+=" grid_hover-layout5"),m&&(w+=" tpg-editor-loading");const E=t=>{let{posts:a}=t;return a.map((t=>t?t.message?(0,e.createElement)("div",{className:"message"},t.message):(0,e.createElement)(Es,{attributes:n,post:t}):null))};return(0,e.createElement)("div",{ref:_,className:"rttpg-block-postgrid rttpg-block-"+c+" "+b},(0,e.createElement)("div",{className:`rt-container-fluid rt-tpg-container tpg-el-main-wrapper clearfix ${n[s+"_layout"]}-main`,"data-sc-id":"elementor","data-el-settings":"","data-el-query":"","data-el-path":""},g&&g.length&&(0,e.createElement)("div",{className:`tpg-header-wrapper ${y}`},(0,e.createElement)(Ii,{attributes:n,setAttributes:l}),rttpgParams.hasPro&&(0,e.createElement)("div",{className:"rt-layout-filter-container rt-clear",dangerouslySetInnerHTML:{__html:o}})),(0,e.createElement)("div",{className:`rt-row rt-content-loader ${w}`},g&&g.length?(0,e.createElement)((t=>{let{posts:a,layout:r}=t;if(["grid_hover-layout4","grid_hover-layout4-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-md-6 rt-col-sm-6 offset-left-wrap offset-left"},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-md-6 rt-col-sm-6 offset-right"},(0,e.createElement)("div",{className:"rt-row rt-row-inner"},(0,e.createElement)(E,{posts:t}))))}if(["grid_hover-layout5","grid_hover-layout5-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-md-7 rt-col-sm-6 offset-left-wrap offset-left"},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-md-5 rt-col-sm-6 offset-right"},(0,e.createElement)("div",{className:"rt-row rt-row-inner"},(0,e.createElement)(E,{posts:t}))))}if(["grid_hover-layout6","grid_hover-layout6-2"].includes(r)){const t=[...a].slice(2);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-6 rt-col-sm-6 rt-grid-hover-item rt-grid-item offset-left-wrap offset-left"},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-6 rt-col-sm-6 offset-right"},(0,e.createElement)("div",{className:"rt-row rt-row-inner"},(0,e.createElement)("div",{className:"rt-col-xs-12 default rt-grid-hover-item rt-grid-item"},(0,e.createElement)(E,{posts:[a[1]]})),(0,e.createElement)(E,{posts:t}))))}if(["grid_hover-layout7","grid_hover-layout7-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-4 rt-col-sm-5 offset-left-wrap offset-left"},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-8 rt-col-sm-7 offset-right"},(0,e.createElement)("div",{className:"rt-row rt-row-inner"},(0,e.createElement)(E,{posts:t}))))}if("grid_hover-layout8"===r){let t=[];for(let e=0;e<a.length;e+=5)t.push(a.slice(e,e+5));return t.map((function(t){return(0,e.createElement)("div",{className:"display-grid-wrapper"},(0,e.createElement)(E,{posts:t}))}))}if(["grid_hover-layout9","grid_hover-layout9-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-7 rt-col-sm-6 offset-left-wrap offset-left"},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-5 rt-col-sm-6 offset-right"},(0,e.createElement)("div",{className:"rt-row rt-row-inner"},(0,e.createElement)(E,{posts:t}))))}return(0,e.createElement)(E,{posts:a})}),{posts:g,layout:n[s+"_layout"]}):(0,e.createElement)("div",{className:"rttpg-postgrid-is-loading"},null!=r&&r.message&&r.message?r.message:(0,e.createElement)(Cs,null))),(0,e.createElement)(Vi,{props:a,totalPages:h})))};const{useEffect:Ss,useState:Ds}=wp.element;(0,t.registerBlockType)("rttpg/tpg-grid-hover-layout",{title:(0,r.__)("Grid Hover Layout","the-post-grid"),category:"rttpg",description:"The post grid block, Grid Hover layout",icon:(0,e.createElement)("img",{src:rttpgParams.plugin_url+"/assets/images/gutenberg/grid-hover-layout.svg",alt:(0,r.__)("Grid Layout")}),example:{attributes:{preview:!0}},supports:{align:["center","wide","full"]},keywords:[(0,r.__)("post grid"),(0,r.__)("the post grid"),(0,r.__)("grid hover layout"),(0,r.__)("hover layout"),(0,r.__)("the post"),(0,r.__)("list"),(0,r.__)("the"),(0,r.__)("grid"),(0,r.__)("post")],save:()=>null,edit:t=>{const{isSelected:a,attributes:r,setAttributes:o}=t,{preview:n,prefix:l,uniqueId:i,grid_hover_layout:s,post_id:c,exclude:u,post_limit:f,offset:d,post_keyword:p,display_per_page:m,layout_style:g,ignore_sticky_posts:h,no_posts_found_text:b,show_pagination:v,media_source:_,image_size:y,image_offset_size:w,default_image:E,category_position:C,category_source:x,tag_source:k,taxonomy_lists:N,start_date:S,end_date:P,hover_animation:O,excerpt_type:T,excerpt_limit:I,excerpt_more_text:A,page:F,query_change:B,acf_data_lists:j,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V,post_type:z,author:q,order:Y,orderby:G,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}=r;if(n)return L.grid_hover_preview;const[ue,fe]=Ds([]),[de,pe]=Ds(),[me,ge]=Ds(!1),[he,be]=Ds([]),[ve,_e]=Ds([]),[ye,we]=Ds([]),Ee="undefined"==typeof AbortController?void 0:new AbortController;return Ss((()=>{null==de||de.abort(),pe(Ee),fe({}),M()({path:"/rttpg/v1/query",method:"POST",data:{prefix:l,post_type:z,grid_hover_layout:s,post_id:c,exclude:u,post_limit:f,offset:d,show_pagination:v,ignore_sticky_posts:h,orderby:G,order:Y,display_per_page:m,layout_style:g,author:q,start_date:S,end_date:P,media_source:_,image_size:y,image_offset_size:w,show_taxonomy_filter:U,relation:ne,post_keyword:p,no_posts_found_text:b,default_image:E,category_position:C,taxonomy_lists:N,category_source:x,tag_source:k,hover_animation:O,excerpt_type:T,excerpt_limit:I,excerpt_more_text:A,page:F,acf_data_lists:j,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V}}).then((e=>{o({query_change:!1}),fe(e)})),null==de||de.abort(),pe(Ee),M()({path:"/rttpg/v1/acf",signal:null==Ee?void 0:Ee.signal}).then((e=>{let t=[];Object.keys(e).map((a=>{t.push(e[a])})),be(t)})),rttpgParams.hasPro&&(null==de||de.abort(),pe(Ee),M()({path:"/rttpg/v1/filter",method:"POST",signal:null==Ee?void 0:Ee.signal,data:{prefix:l,post_type:z,author:q,order:Y,orderby:G,taxonomy_lists:N,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}}).then((e=>{o({query_change:!1}),we(null==e?void 0:e.markup)})))}),[me,F]),Ss((()=>{null==de||de.abort(),pe(Ee),M()({path:"/rttpg/v1/image-size",signal:null==Ee?void 0:Ee.signal}).then((e=>{_e(e)}))}),[]),Ss((()=>{const e=document.querySelector(".interface-interface-skeleton__sidebar");e.classList.add("tpg-sidebar"),e.classList.remove("tpg-settings-enable"),e.addEventListener("click",(function(e){e.target.classList.contains("rttpg-tab-btn")&&("Content"!==e.target.textContent?this.classList.add("tpg-settings-enable"):this.classList.remove("tpg-settings-enable"))})),e.addEventListener("scroll",(function(e){e.target.scrollTop>86?this.classList.add("tpg-should-collapse"):this.classList.remove("tpg-should-collapse")}))}),[a]),i&&D(r,"tpg-grid-layout",i),[a&&(0,e.createElement)(us,{attributes:r,setAttributes:o,changeQuery:()=>{ge(!me),o({query_change:!0,page:1})},acfData:he,imageSizes:ve,postData:ue}),(0,e.createElement)(Ns,{props:t,postData:ue,filterMarkup:ye})]}});const{select:Ps}=wp.data,Os=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a="";return!0===t&&(a="",t=!1),e.map((e=>{const{attributes:t,name:r}=e,[o,n]=r.split("/");"rttpg"===o&&t.uniqueId&&(a+=D(t,n,t.uniqueId,!0)),e.innerBlocks&&e.innerBlocks.length>0&&(a+=Os(e.innerBlocks))})),a},Ms=e=>{let t=!1;return e.forEach((function(e){const{name:a,innerBlocks:r=[]}=e,[o,n]=a.split("/");"rttpg"===o&&(t=!0),!t&&r.length>0&&(t=Ms(r))})),t},Ts=e=>{e.forEach((function(e){var t;-1!==e.name.indexOf("core/block")&&(t=e.attributes.ref,jQuery.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{postId:t,action:"rttpg_block_css_get_posts"}}).then((function(e){if(e.success){const t=Os(wp.blocks.parse(e.data),!0);t.css&&jQuery.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{inner_css:t.css,post_id:wp.data.select("core/editor").getCurrentPostId(),action:"rttpg_block_css_appended"}}).done((function(e){e.success}))}}))),e.innerBlocks&&e.innerBlocks.length>0&&Ts(e.innerBlocks)}))};const{__:Is}=wp.i18n;window.rttpgDevice="lg",window.bindCss=!1,wp.data.subscribe((()=>{try{const e=wp.data.select("core/editor");if(!e)return;const t=e.isSavingPost,a=e.isAutosavingPost;t()&&!a()&&function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.bindCss=!0;const t=Ps("core/block-editor").getBlocks(),{getCurrentPostId:a}=Ps("core/editor"),r=Ms(t),o=Os(t,!0);e&&(Ts(t),jQuery.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{block_css:o,post_id:a,has_block:r,action:"rttpg_block_css_save"}})),setTimeout((function(){window.bindCss=!1}),900)}()}catch(e){console.error(e)}})),(0,t.updateCategory)("rttpg",{icon:(0,e.createElement)("img",{src:rttpgParams.plugin_url+"/assets/images/icon-20x20.png",alt:Is("The Post Grid")})})}()}();
1
+ !function(){var e={184:function(e,t){var a;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var l=o.apply(null,a);l&&e.push(l)}}else if("object"===n){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var i in a)r.call(a,i)&&a[i]&&e.push(i)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(a=function(){return o}.apply(t,[]))||(e.exports=a)}()},527:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return T}});var r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],o={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var a=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-a.getTime())/864e5-3+(a.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},n={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},l=n,i=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},s=function(e){return!0===e?1:0};function c(e,t){var a;return function(){var r=this,o=arguments;clearTimeout(a),a=setTimeout((function(){return e.apply(r,o)}),t)}}var u=function(e){return e instanceof Array?e:[e]};function f(e,t,a){if(!0===a)return e.classList.add(t);e.classList.remove(t)}function d(e,t,a){var r=window.document.createElement(e);return t=t||"",a=a||"",r.className=t,void 0!==a&&(r.textContent=a),r}function p(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function m(e,t){return t(e)?e:e.parentNode?m(e.parentNode,t):void 0}function g(e,t){var a=d("div","numInputWrapper"),r=d("input","numInput "+e),o=d("span","arrowUp"),n=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var l in t)r.setAttribute(l,t[l]);return a.appendChild(r),a.appendChild(o),a.appendChild(n),a}function h(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var b=function(){},v=function(e,t,a){return a.months[t?"shorthand":"longhand"][e]},_={D:b,F:function(e,t,a){e.setMonth(a.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,a){e.setHours(e.getHours()%12+12*s(new RegExp(a.amPM[1],"i").test(t)))},M:function(e,t,a){e.setMonth(a.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,a){var r=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+a.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:b,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:b,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},y={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},w={Z:function(e){return e.toISOString()},D:function(e,t,a){return t.weekdays.shorthand[w.w(e,t,a)]},F:function(e,t,a){return v(w.n(e,t,a)-1,!1,t)},G:function(e,t,a){return i(w.h(e,t,a))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[s(e.getHours()>11)]},M:function(e,t){return v(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,a){return a.getWeek(e)},Y:function(e){return i(e.getFullYear(),4)},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},E=function(e){var t=e.config,a=void 0===t?o:t,r=e.l10n,l=void 0===r?n:r,i=e.isMobile,s=void 0!==i&&i;return function(e,t,r){var o=r||l;return void 0===a.formatDate||s?t.split("").map((function(t,r,n){return w[t]&&"\\"!==n[r-1]?w[t](e,o,a):"\\"!==t?t:""})).join(""):a.formatDate(e,t,o)}},C=function(e){var t=e.config,a=void 0===t?o:t,r=e.l10n,l=void 0===r?n:r;return function(e,t,r,n){if(0===e||e){var i,s=n||l,c=e;if(e instanceof Date)i=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)i=new Date(e);else if("string"==typeof e){var u=t||(a||o).dateFormat,f=String(e).trim();if("today"===f)i=new Date,r=!0;else if(a&&a.parseDate)i=a.parseDate(e,u);else if(/Z$/.test(f)||/GMT$/.test(f))i=new Date(e);else{for(var d=void 0,p=[],m=0,g=0,h="";m<u.length;m++){var b=u[m],v="\\"===b,w="\\"===u[m-1]||v;if(y[b]&&!w){h+=y[b];var E=new RegExp(h).exec(e);E&&(d=!0)&&p["Y"!==b?"push":"unshift"]({fn:_[b],val:E[++g]})}else v||(h+=".")}i=a&&a.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),p.forEach((function(e){var t=e.fn,a=e.val;return i=t(i,a,s)||i})),i=d?i:void 0}}if(i instanceof Date&&!isNaN(i.getTime()))return!0===r&&i.setHours(0,0,0,0),i;a.errorHandler(new Error("Invalid date provided: "+c))}}};function x(e,t,a){return void 0===a&&(a=!0),!1!==a?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var k=function(e,t,a){return 3600*e+60*t+a};function N(e){var t=e.defaultHour,a=e.defaultMinute,r=e.defaultSeconds;if(void 0!==e.minDate){var o=e.minDate.getHours(),n=e.minDate.getMinutes(),l=e.minDate.getSeconds();t<o&&(t=o),t===o&&a<n&&(a=n),t===o&&a===n&&r<l&&(r=e.minDate.getSeconds())}if(void 0!==e.maxDate){var i=e.maxDate.getHours(),s=e.maxDate.getMinutes();(t=Math.min(t,i))===i&&(a=Math.min(s,a)),t===i&&a===s&&(r=e.maxDate.getSeconds())}return{hours:t,minutes:a,seconds:r}}a(895);var S=function(){return S=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S.apply(this,arguments)},D=function(){for(var e=0,t=0,a=arguments.length;t<a;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<a;t++)for(var n=arguments[t],l=0,i=n.length;l<i;l++,o++)r[o]=n[l];return r};function P(e,t){var a={config:S(S({},o),M.defaultConfig),l10n:l};function n(){var e;return(null===(e=a.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function b(e){return e.bind(a)}function _(){var e=a.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==a.calendarContainer&&(a.calendarContainer.style.visibility="hidden",a.calendarContainer.style.display="block"),void 0!==a.daysContainer){var t=(a.days.offsetWidth+1)*e.showMonths;a.daysContainer.style.width=t+"px",a.calendarContainer.style.width=t+(void 0!==a.weekWrapper?a.weekWrapper.offsetWidth:0)+"px",a.calendarContainer.style.removeProperty("visibility"),a.calendarContainer.style.removeProperty("display")}}))}function w(e){if(0===a.selectedDates.length){var t=void 0===a.config.minDate||x(new Date,a.config.minDate)>=0?new Date:new Date(a.config.minDate.getTime()),r=N(a.config);t.setHours(r.hours,r.minutes,r.seconds,t.getMilliseconds()),a.selectedDates=[t],a.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,r=h(e),o=r;void 0!==a.amPM&&r===a.amPM&&(a.amPM.textContent=a.l10n.amPM[s(a.amPM.textContent===a.l10n.amPM[0])]);var n=parseFloat(o.getAttribute("min")),l=parseFloat(o.getAttribute("max")),c=parseFloat(o.getAttribute("step")),u=parseInt(o.value,10),f=u+c*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==o.value&&2===o.value.length){var d=o===a.hourElement,p=o===a.minuteElement;f<n?(f=l+f+s(!d)+(s(d)&&s(!a.amPM)),p&&j(void 0,-1,a.hourElement)):f>l&&(f=o===a.hourElement?f-l-s(!a.amPM):n,p&&j(void 0,1,a.hourElement)),a.amPM&&d&&(1===c?f+u===23:Math.abs(f-u)>c)&&(a.amPM.textContent=a.l10n.amPM[s(a.amPM.textContent===a.l10n.amPM[0])]),o.value=i(f)}}(e);var o=a._input.value;P(),Ee(),a._input.value!==o&&a._debouncedChange()}function P(){if(void 0!==a.hourElement&&void 0!==a.minuteElement){var e,t,r=(parseInt(a.hourElement.value.slice(-2),10)||0)%24,o=(parseInt(a.minuteElement.value,10)||0)%60,n=void 0!==a.secondElement?(parseInt(a.secondElement.value,10)||0)%60:0;void 0!==a.amPM&&(e=r,t=a.amPM.textContent,r=e%12+12*s(t===a.l10n.amPM[1]));var l=void 0!==a.config.minTime||a.config.minDate&&a.minDateHasTime&&a.latestSelectedDateObj&&0===x(a.latestSelectedDateObj,a.config.minDate,!0),i=void 0!==a.config.maxTime||a.config.maxDate&&a.maxDateHasTime&&a.latestSelectedDateObj&&0===x(a.latestSelectedDateObj,a.config.maxDate,!0);if(void 0!==a.config.maxTime&&void 0!==a.config.minTime&&a.config.minTime>a.config.maxTime){var c=k(a.config.minTime.getHours(),a.config.minTime.getMinutes(),a.config.minTime.getSeconds()),u=k(a.config.maxTime.getHours(),a.config.maxTime.getMinutes(),a.config.maxTime.getSeconds()),f=k(r,o,n);if(f>u&&f<c){var d=function(e){var t=Math.floor(e/3600),a=(e-3600*t)/60;return[t,a,e-3600*t-60*a]}(c);r=d[0],o=d[1],n=d[2]}}else{if(i){var p=void 0!==a.config.maxTime?a.config.maxTime:a.config.maxDate;(r=Math.min(r,p.getHours()))===p.getHours()&&(o=Math.min(o,p.getMinutes())),o===p.getMinutes()&&(n=Math.min(n,p.getSeconds()))}if(l){var m=void 0!==a.config.minTime?a.config.minTime:a.config.minDate;(r=Math.max(r,m.getHours()))===m.getHours()&&o<m.getMinutes()&&(o=m.getMinutes()),o===m.getMinutes()&&(n=Math.max(n,m.getSeconds()))}}T(r,o,n)}}function O(e){var t=e||a.latestSelectedDateObj;t&&t instanceof Date&&T(t.getHours(),t.getMinutes(),t.getSeconds())}function T(e,t,r){void 0!==a.latestSelectedDateObj&&a.latestSelectedDateObj.setHours(e%24,t,r||0,0),a.hourElement&&a.minuteElement&&!a.isMobile&&(a.hourElement.value=i(a.config.time_24hr?e:(12+e)%12+12*s(e%12==0)),a.minuteElement.value=i(t),void 0!==a.amPM&&(a.amPM.textContent=a.l10n.amPM[s(e>=12)]),void 0!==a.secondElement&&(a.secondElement.value=i(r)))}function I(e){var t=h(e),a=parseInt(t.value)+(e.delta||0);(a/1e3>1||"Enter"===e.key&&!/[^\d]/.test(a.toString()))&&X(a)}function L(e,t,r,o){return t instanceof Array?t.forEach((function(t){return L(e,t,r,o)})):e instanceof Array?e.forEach((function(e){return L(e,t,r,o)})):(e.addEventListener(t,r,o),void a._handlers.push({remove:function(){return e.removeEventListener(t,r,o)}}))}function A(){be("onChange")}function F(e,t){var r=void 0!==e?a.parseDate(e):a.latestSelectedDateObj||(a.config.minDate&&a.config.minDate>a.now?a.config.minDate:a.config.maxDate&&a.config.maxDate<a.now?a.config.maxDate:a.now),o=a.currentYear,n=a.currentMonth;try{void 0!==r&&(a.currentYear=r.getFullYear(),a.currentMonth=r.getMonth())}catch(e){e.message="Invalid date supplied: "+r,a.config.errorHandler(e)}t&&a.currentYear!==o&&(be("onYearChange"),Y()),!t||a.currentYear===o&&a.currentMonth===n||be("onMonthChange"),a.redraw()}function B(e){var t=h(e);~t.className.indexOf("arrow")&&j(e,t.classList.contains("arrowUp")?1:-1)}function j(e,t,a){var r=e&&h(e),o=a||r&&r.parentNode&&r.parentNode.firstChild,n=ve("increment");n.delta=t,o&&o.dispatchEvent(n)}function H(e,t,r,o){var n=ee(t,!0),l=d("span",e,t.getDate().toString());return l.dateObj=t,l.$i=o,l.setAttribute("aria-label",a.formatDate(t,a.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===x(t,a.now)&&(a.todayDateElem=l,l.classList.add("today"),l.setAttribute("aria-current","date")),n?(l.tabIndex=-1,_e(t)&&(l.classList.add("selected"),a.selectedDateElem=l,"range"===a.config.mode&&(f(l,"startRange",a.selectedDates[0]&&0===x(t,a.selectedDates[0],!0)),f(l,"endRange",a.selectedDates[1]&&0===x(t,a.selectedDates[1],!0)),"nextMonthDay"===e&&l.classList.add("inRange")))):l.classList.add("flatpickr-disabled"),"range"===a.config.mode&&function(e){return!("range"!==a.config.mode||a.selectedDates.length<2)&&x(e,a.selectedDates[0])>=0&&x(e,a.selectedDates[1])<=0}(t)&&!_e(t)&&l.classList.add("inRange"),a.weekNumbers&&1===a.config.showMonths&&"prevMonthDay"!==e&&o%7==6&&a.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+a.config.getWeek(t)+"</span>"),be("onDayCreate",l),l}function $(e){e.focus(),"range"===a.config.mode&&oe(e)}function R(e){for(var t=e>0?0:a.config.showMonths-1,r=e>0?a.config.showMonths:-1,o=t;o!=r;o+=e)for(var n=a.daysContainer.children[o],l=e>0?0:n.children.length-1,i=e>0?n.children.length:-1,s=l;s!=i;s+=e){var c=n.children[s];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj))return c}}function V(e,t){var r=n(),o=te(r||document.body),l=void 0!==e?e:o?r:void 0!==a.selectedDateElem&&te(a.selectedDateElem)?a.selectedDateElem:void 0!==a.todayDateElem&&te(a.todayDateElem)?a.todayDateElem:R(t>0?1:-1);void 0===l?a._input.focus():o?function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():a.currentMonth,o=t>0?a.config.showMonths:-1,n=t>0?1:-1,l=r-a.currentMonth;l!=o;l+=n)for(var i=a.daysContainer.children[l],s=r-a.currentMonth===l?e.$i+t:t<0?i.children.length-1:0,c=i.children.length,u=s;u>=0&&u<c&&u!=(t>0?c:-1);u+=n){var f=i.children[u];if(-1===f.className.indexOf("hidden")&&ee(f.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return $(f)}a.changeMonth(n),V(R(n),0)}(l,t):$(l)}function z(e,t){for(var r=(new Date(e,t,1).getDay()-a.l10n.firstDayOfWeek+7)%7,o=a.utils.getDaysInMonth((t-1+12)%12,e),n=a.utils.getDaysInMonth(t,e),l=window.document.createDocumentFragment(),i=a.config.showMonths>1,s=i?"prevMonthDay hidden":"prevMonthDay",c=i?"nextMonthDay hidden":"nextMonthDay",u=o+1-r,f=0;u<=o;u++,f++)l.appendChild(H("flatpickr-day "+s,new Date(e,t-1,u),0,f));for(u=1;u<=n;u++,f++)l.appendChild(H("flatpickr-day",new Date(e,t,u),0,f));for(var p=n+1;p<=42-r&&(1===a.config.showMonths||f%7!=0);p++,f++)l.appendChild(H("flatpickr-day "+c,new Date(e,t+1,p%n),0,f));var m=d("div","dayContainer");return m.appendChild(l),m}function q(){if(void 0!==a.daysContainer){p(a.daysContainer),a.weekNumbers&&p(a.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<a.config.showMonths;t++){var r=new Date(a.currentYear,a.currentMonth,1);r.setMonth(a.currentMonth+t),e.appendChild(z(r.getFullYear(),r.getMonth()))}a.daysContainer.appendChild(e),a.days=a.daysContainer.firstChild,"range"===a.config.mode&&1===a.selectedDates.length&&oe()}}function Y(){if(!(a.config.showMonths>1||"dropdown"!==a.config.monthSelectorType)){var e=function(e){return!(void 0!==a.config.minDate&&a.currentYear===a.config.minDate.getFullYear()&&e<a.config.minDate.getMonth()||void 0!==a.config.maxDate&&a.currentYear===a.config.maxDate.getFullYear()&&e>a.config.maxDate.getMonth())};a.monthsDropdownContainer.tabIndex=-1,a.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var r=d("option","flatpickr-monthDropdown-month");r.value=new Date(a.currentYear,t).getMonth().toString(),r.textContent=v(t,a.config.shorthandCurrentMonth,a.l10n),r.tabIndex=-1,a.currentMonth===t&&(r.selected=!0),a.monthsDropdownContainer.appendChild(r)}}}function G(){var e,t=d("div","flatpickr-month"),r=window.document.createDocumentFragment();a.config.showMonths>1||"static"===a.config.monthSelectorType?e=d("span","cur-month"):(a.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),a.monthsDropdownContainer.setAttribute("aria-label",a.l10n.monthAriaLabel),L(a.monthsDropdownContainer,"change",(function(e){var t=h(e),r=parseInt(t.value,10);a.changeMonth(r-a.currentMonth),be("onMonthChange")})),Y(),e=a.monthsDropdownContainer);var o=g("cur-year",{tabindex:"-1"}),n=o.getElementsByTagName("input")[0];n.setAttribute("aria-label",a.l10n.yearAriaLabel),a.config.minDate&&n.setAttribute("min",a.config.minDate.getFullYear().toString()),a.config.maxDate&&(n.setAttribute("max",a.config.maxDate.getFullYear().toString()),n.disabled=!!a.config.minDate&&a.config.minDate.getFullYear()===a.config.maxDate.getFullYear());var l=d("div","flatpickr-current-month");return l.appendChild(e),l.appendChild(o),r.appendChild(l),t.appendChild(r),{container:t,yearElement:n,monthElement:e}}function U(){p(a.monthNav),a.monthNav.appendChild(a.prevMonthNav),a.config.showMonths&&(a.yearElements=[],a.monthElements=[]);for(var e=a.config.showMonths;e--;){var t=G();a.yearElements.push(t.yearElement),a.monthElements.push(t.monthElement),a.monthNav.appendChild(t.container)}a.monthNav.appendChild(a.nextMonthNav)}function W(){a.weekdayContainer?p(a.weekdayContainer):a.weekdayContainer=d("div","flatpickr-weekdays");for(var e=a.config.showMonths;e--;){var t=d("div","flatpickr-weekdaycontainer");a.weekdayContainer.appendChild(t)}return J(),a.weekdayContainer}function J(){if(a.weekdayContainer){var e=a.l10n.firstDayOfWeek,t=D(a.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=D(t.splice(e,t.length),t.splice(0,e)));for(var r=a.config.showMonths;r--;)a.weekdayContainer.children[r].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,t){void 0===t&&(t=!0);var r=t?e:e-a.currentMonth;r<0&&!0===a._hidePrevMonthArrow||r>0&&!0===a._hideNextMonthArrow||(a.currentMonth+=r,(a.currentMonth<0||a.currentMonth>11)&&(a.currentYear+=a.currentMonth>11?1:-1,a.currentMonth=(a.currentMonth+12)%12,be("onYearChange"),Y()),q(),be("onMonthChange"),ye())}function K(e){return a.calendarContainer.contains(e)}function Z(e){if(a.isOpen&&!a.config.inline){var t=h(e),r=K(t),o=!(t===a.input||t===a.altInput||a.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(a.input)||~e.path.indexOf(a.altInput))||r||K(e.relatedTarget)),n=!a.config.ignoredFocusElements.some((function(e){return e.contains(t)}));o&&n&&(a.config.allowInput&&a.setDate(a._input.value,!1,a.config.altInput?a.config.altFormat:a.config.dateFormat),void 0!==a.timeContainer&&void 0!==a.minuteElement&&void 0!==a.hourElement&&""!==a.input.value&&void 0!==a.input.value&&w(),a.close(),a.config&&"range"===a.config.mode&&1===a.selectedDates.length&&a.clear(!1))}}function X(e){if(!(!e||a.config.minDate&&e<a.config.minDate.getFullYear()||a.config.maxDate&&e>a.config.maxDate.getFullYear())){var t=e,r=a.currentYear!==t;a.currentYear=t||a.currentYear,a.config.maxDate&&a.currentYear===a.config.maxDate.getFullYear()?a.currentMonth=Math.min(a.config.maxDate.getMonth(),a.currentMonth):a.config.minDate&&a.currentYear===a.config.minDate.getFullYear()&&(a.currentMonth=Math.max(a.config.minDate.getMonth(),a.currentMonth)),r&&(a.redraw(),be("onYearChange"),Y())}}function ee(e,t){var r;void 0===t&&(t=!0);var o=a.parseDate(e,void 0,t);if(a.config.minDate&&o&&x(o,a.config.minDate,void 0!==t?t:!a.minDateHasTime)<0||a.config.maxDate&&o&&x(o,a.config.maxDate,void 0!==t?t:!a.maxDateHasTime)>0)return!1;if(!a.config.enable&&0===a.config.disable.length)return!0;if(void 0===o)return!1;for(var n=!!a.config.enable,l=null!==(r=a.config.enable)&&void 0!==r?r:a.config.disable,i=0,s=void 0;i<l.length;i++){if("function"==typeof(s=l[i])&&s(o))return n;if(s instanceof Date&&void 0!==o&&s.getTime()===o.getTime())return n;if("string"==typeof s){var c=a.parseDate(s,void 0,!0);return c&&c.getTime()===o.getTime()?n:!n}if("object"==typeof s&&void 0!==o&&s.from&&s.to&&o.getTime()>=s.from.getTime()&&o.getTime()<=s.to.getTime())return n}return!n}function te(e){return void 0!==a.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&a.daysContainer.contains(e)}function ae(e){var t=e.target===a._input,r=a._input.value.trimEnd()!==we();!t||!r||e.relatedTarget&&K(e.relatedTarget)||a.setDate(a._input.value,!0,e.target===a.altInput?a.config.altFormat:a.config.dateFormat)}function re(t){var r=h(t),o=a.config.wrap?e.contains(r):r===a._input,l=a.config.allowInput,i=a.isOpen&&(!l||!o),s=a.config.inline&&o&&!l;if(13===t.keyCode&&o){if(l)return a.setDate(a._input.value,!0,r===a.altInput?a.config.altFormat:a.config.dateFormat),a.close(),r.blur();a.open()}else if(K(r)||i||s){var c=!!a.timeContainer&&a.timeContainer.contains(r);switch(t.keyCode){case 13:c?(t.preventDefault(),w(),fe()):de(t);break;case 27:t.preventDefault(),fe();break;case 8:case 46:o&&!a.config.allowInput&&(t.preventDefault(),a.clear());break;case 37:case 39:if(c||o)a.hourElement&&a.hourElement.focus();else{t.preventDefault();var u=n();if(void 0!==a.daysContainer&&(!1===l||u&&te(u))){var f=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),Q(f),V(R(1),0)):V(void 0,f)}}break;case 38:case 40:t.preventDefault();var d=40===t.keyCode?1:-1;a.daysContainer&&void 0!==r.$i||r===a.input||r===a.altInput?t.ctrlKey?(t.stopPropagation(),X(a.currentYear-d),V(R(1),0)):c||V(void 0,7*d):r===a.currentYearElement?X(a.currentYear-d):a.config.enableTime&&(!c&&a.hourElement&&a.hourElement.focus(),w(t),a._debouncedChange());break;case 9:if(c){var p=[a.hourElement,a.minuteElement,a.secondElement,a.amPM].concat(a.pluginElements).filter((function(e){return e})),m=p.indexOf(r);if(-1!==m){var g=p[m+(t.shiftKey?-1:1)];t.preventDefault(),(g||a._input).focus()}}else!a.config.noCalendar&&a.daysContainer&&a.daysContainer.contains(r)&&t.shiftKey&&(t.preventDefault(),a._input.focus())}}if(void 0!==a.amPM&&r===a.amPM)switch(t.key){case a.l10n.amPM[0].charAt(0):case a.l10n.amPM[0].charAt(0).toLowerCase():a.amPM.textContent=a.l10n.amPM[0],P(),Ee();break;case a.l10n.amPM[1].charAt(0):case a.l10n.amPM[1].charAt(0).toLowerCase():a.amPM.textContent=a.l10n.amPM[1],P(),Ee()}(o||K(r))&&be("onKeyDown",t)}function oe(e,t){if(void 0===t&&(t="flatpickr-day"),1===a.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var r=e?e.dateObj.getTime():a.days.firstElementChild.dateObj.getTime(),o=a.parseDate(a.selectedDates[0],void 0,!0).getTime(),n=Math.min(r,a.selectedDates[0].getTime()),l=Math.max(r,a.selectedDates[0].getTime()),i=!1,s=0,c=0,u=n;u<l;u+=864e5)ee(new Date(u),!0)||(i=i||u>n&&u<l,u<o&&(!s||u>s)?s=u:u>o&&(!c||u<c)&&(c=u));Array.from(a.rContainer.querySelectorAll("*:nth-child(-n+"+a.config.showMonths+") > ."+t)).forEach((function(t){var n,l,u,f=t.dateObj.getTime(),d=s>0&&f<s||c>0&&f>c;if(d)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));i&&!d||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(r<=a.selectedDates[0].getTime()?"startRange":"endRange"),o<r&&f===o?t.classList.add("startRange"):o>r&&f===o&&t.classList.add("endRange"),f>=s&&(0===c||f<=c)&&(l=o,u=r,(n=f)>Math.min(l,u)&&n<Math.max(l,u))&&t.classList.add("inRange")))}))}}function ne(){!a.isOpen||a.config.static||a.config.inline||ce()}function le(e){return function(t){var r=a.config["_"+e+"Date"]=a.parseDate(t,a.config.dateFormat),o=a.config["_"+("min"===e?"max":"min")+"Date"];void 0!==r&&(a["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),a.selectedDates&&(a.selectedDates=a.selectedDates.filter((function(e){return ee(e)})),a.selectedDates.length||"min"!==e||O(r),Ee()),a.daysContainer&&(ue(),void 0!==r?a.currentYearElement[e]=r.getFullYear().toString():a.currentYearElement.removeAttribute(e),a.currentYearElement.disabled=!!o&&void 0!==r&&o.getFullYear()===r.getFullYear())}}function ie(){return a.config.wrap?e.querySelector("[data-input]"):e}function se(){"object"!=typeof a.config.locale&&void 0===M.l10ns[a.config.locale]&&a.config.errorHandler(new Error("flatpickr: invalid locale "+a.config.locale)),a.l10n=S(S({},M.l10ns.default),"object"==typeof a.config.locale?a.config.locale:"default"!==a.config.locale?M.l10ns[a.config.locale]:void 0),y.D="("+a.l10n.weekdays.shorthand.join("|")+")",y.l="("+a.l10n.weekdays.longhand.join("|")+")",y.M="("+a.l10n.months.shorthand.join("|")+")",y.F="("+a.l10n.months.longhand.join("|")+")",y.K="("+a.l10n.amPM[0]+"|"+a.l10n.amPM[1]+"|"+a.l10n.amPM[0].toLowerCase()+"|"+a.l10n.amPM[1].toLowerCase()+")",void 0===S(S({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===M.defaultConfig.time_24hr&&(a.config.time_24hr=a.l10n.time_24hr),a.formatDate=E(a),a.parseDate=C({config:a.config,l10n:a.l10n})}function ce(e){if("function"!=typeof a.config.position){if(void 0!==a.calendarContainer){be("onPreCalendarPosition");var t=e||a._positionElement,r=Array.prototype.reduce.call(a.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),o=a.calendarContainer.offsetWidth,n=a.config.position.split(" "),l=n[0],i=n.length>1?n[1]:null,s=t.getBoundingClientRect(),c=window.innerHeight-s.bottom,u="above"===l||"below"!==l&&c<r&&s.top>r,d=window.pageYOffset+s.top+(u?-r-2:t.offsetHeight+2);if(f(a.calendarContainer,"arrowTop",!u),f(a.calendarContainer,"arrowBottom",u),!a.config.inline){var p=window.pageXOffset+s.left,m=!1,g=!1;"center"===i?(p-=(o-s.width)/2,m=!0):"right"===i&&(p-=o-s.width,g=!0),f(a.calendarContainer,"arrowLeft",!m&&!g),f(a.calendarContainer,"arrowCenter",m),f(a.calendarContainer,"arrowRight",g);var h=window.document.body.offsetWidth-(window.pageXOffset+s.right),b=p+o>window.document.body.offsetWidth,v=h+o>window.document.body.offsetWidth;if(f(a.calendarContainer,"rightMost",b),!a.config.static)if(a.calendarContainer.style.top=d+"px",b)if(v){var _=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var a=document.styleSheets[t];if(a.cssRules){try{a.cssRules}catch(e){continue}e=a;break}}return null!=e?e:(r=document.createElement("style"),document.head.appendChild(r),r.sheet);var r}();if(void 0===_)return;var y=window.document.body.offsetWidth,w=Math.max(0,y/2-o/2),E=_.cssRules.length,C="{left:"+s.left+"px;right:auto;}";f(a.calendarContainer,"rightMost",!1),f(a.calendarContainer,"centerMost",!0),_.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,E),a.calendarContainer.style.left=w+"px",a.calendarContainer.style.right="auto"}else a.calendarContainer.style.left="auto",a.calendarContainer.style.right=h+"px";else a.calendarContainer.style.left=p+"px",a.calendarContainer.style.right="auto"}}}else a.config.position(a,e)}function ue(){a.config.noCalendar||a.isMobile||(Y(),ye(),q())}function fe(){a._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(a.close,0):a.close()}function de(e){e.preventDefault(),e.stopPropagation();var t=m(h(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var r=t,o=a.latestSelectedDateObj=new Date(r.dateObj.getTime()),n=(o.getMonth()<a.currentMonth||o.getMonth()>a.currentMonth+a.config.showMonths-1)&&"range"!==a.config.mode;if(a.selectedDateElem=r,"single"===a.config.mode)a.selectedDates=[o];else if("multiple"===a.config.mode){var l=_e(o);l?a.selectedDates.splice(parseInt(l),1):a.selectedDates.push(o)}else"range"===a.config.mode&&(2===a.selectedDates.length&&a.clear(!1,!1),a.latestSelectedDateObj=o,a.selectedDates.push(o),0!==x(o,a.selectedDates[0],!0)&&a.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(P(),n){var i=a.currentYear!==o.getFullYear();a.currentYear=o.getFullYear(),a.currentMonth=o.getMonth(),i&&(be("onYearChange"),Y()),be("onMonthChange")}if(ye(),q(),Ee(),n||"range"===a.config.mode||1!==a.config.showMonths?void 0!==a.selectedDateElem&&void 0===a.hourElement&&a.selectedDateElem&&a.selectedDateElem.focus():$(r),void 0!==a.hourElement&&void 0!==a.hourElement&&a.hourElement.focus(),a.config.closeOnSelect){var s="single"===a.config.mode&&!a.config.enableTime,c="range"===a.config.mode&&2===a.selectedDates.length&&!a.config.enableTime;(s||c)&&fe()}A()}}a.parseDate=C({config:a.config,l10n:a.l10n}),a._handlers=[],a.pluginElements=[],a.loadedPlugins=[],a._bind=L,a._setHoursFromDate=O,a._positionCalendar=ce,a.changeMonth=Q,a.changeYear=X,a.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),a.input.value="",void 0!==a.altInput&&(a.altInput.value=""),void 0!==a.mobileInput&&(a.mobileInput.value=""),a.selectedDates=[],a.latestSelectedDateObj=void 0,!0===t&&(a.currentYear=a._initialDate.getFullYear(),a.currentMonth=a._initialDate.getMonth()),!0===a.config.enableTime){var r=N(a.config);T(r.hours,r.minutes,r.seconds)}a.redraw(),e&&be("onChange")},a.close=function(){a.isOpen=!1,a.isMobile||(void 0!==a.calendarContainer&&a.calendarContainer.classList.remove("open"),void 0!==a._input&&a._input.classList.remove("active")),be("onClose")},a.onMouseOver=oe,a._createElement=d,a.createDay=H,a.destroy=function(){void 0!==a.config&&be("onDestroy");for(var e=a._handlers.length;e--;)a._handlers[e].remove();if(a._handlers=[],a.mobileInput)a.mobileInput.parentNode&&a.mobileInput.parentNode.removeChild(a.mobileInput),a.mobileInput=void 0;else if(a.calendarContainer&&a.calendarContainer.parentNode)if(a.config.static&&a.calendarContainer.parentNode){var t=a.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else a.calendarContainer.parentNode.removeChild(a.calendarContainer);a.altInput&&(a.input.type="text",a.altInput.parentNode&&a.altInput.parentNode.removeChild(a.altInput),delete a.altInput),a.input&&(a.input.type=a.input._type,a.input.classList.remove("flatpickr-input"),a.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete a[e]}catch(e){}}))},a.isEnabled=ee,a.jumpToDate=F,a.updateValue=Ee,a.open=function(e,t){if(void 0===t&&(t=a._positionElement),!0===a.isMobile){if(e){e.preventDefault();var r=h(e);r&&r.blur()}return void 0!==a.mobileInput&&(a.mobileInput.focus(),a.mobileInput.click()),void be("onOpen")}if(!a._input.disabled&&!a.config.inline){var o=a.isOpen;a.isOpen=!0,o||(a.calendarContainer.classList.add("open"),a._input.classList.add("active"),be("onOpen"),ce(t)),!0===a.config.enableTime&&!0===a.config.noCalendar&&(!1!==a.config.allowInput||void 0!==e&&a.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return a.hourElement.select()}),50))}},a.redraw=ue,a.set=function(e,t){if(null!==e&&"object"==typeof e)for(var o in Object.assign(a.config,e),e)void 0!==pe[o]&&pe[o].forEach((function(e){return e()}));else a.config[e]=t,void 0!==pe[e]?pe[e].forEach((function(e){return e()})):r.indexOf(e)>-1&&(a.config[e]=u(t));a.redraw(),Ee(!0)},a.setDate=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=a.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return a.clear(t);me(e,r),a.latestSelectedDateObj=a.selectedDates[a.selectedDates.length-1],a.redraw(),F(void 0,t),O(),0===a.selectedDates.length&&a.clear(!1),Ee(t),t&&be("onChange")},a.toggle=function(e){if(!0===a.isOpen)return a.close();a.open(e)};var pe={locale:[se,J],showMonths:[U,_,W],minDate:[F],maxDate:[F],positionElement:[he],clickOpens:[function(){!0===a.config.clickOpens?(L(a._input,"focus",a.open),L(a._input,"click",a.open)):(a._input.removeEventListener("focus",a.open),a._input.removeEventListener("click",a.open))}]};function me(e,t){var r=[];if(e instanceof Array)r=e.map((function(e){return a.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)r=[a.parseDate(e,t)];else if("string"==typeof e)switch(a.config.mode){case"single":case"time":r=[a.parseDate(e,t)];break;case"multiple":r=e.split(a.config.conjunction).map((function(e){return a.parseDate(e,t)}));break;case"range":r=e.split(a.l10n.rangeSeparator).map((function(e){return a.parseDate(e,t)}))}else a.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));a.selectedDates=a.config.allowInvalidPreload?r:r.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===a.config.mode&&a.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ge(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?a.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:a.parseDate(e.from,void 0),to:a.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function he(){a._positionElement=a.config.positionElement||a._input}function be(e,t){if(void 0!==a.config){var r=a.config[e];if(void 0!==r&&r.length>0)for(var o=0;r[o]&&o<r.length;o++)r[o](a.selectedDates,a.input.value,a,t);"onChange"===e&&(a.input.dispatchEvent(ve("change")),a.input.dispatchEvent(ve("input")))}}function ve(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function _e(e){for(var t=0;t<a.selectedDates.length;t++){var r=a.selectedDates[t];if(r instanceof Date&&0===x(r,e))return""+t}return!1}function ye(){a.config.noCalendar||a.isMobile||!a.monthNav||(a.yearElements.forEach((function(e,t){var r=new Date(a.currentYear,a.currentMonth,1);r.setMonth(a.currentMonth+t),a.config.showMonths>1||"static"===a.config.monthSelectorType?a.monthElements[t].textContent=v(r.getMonth(),a.config.shorthandCurrentMonth,a.l10n)+" ":a.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()})),a._hidePrevMonthArrow=void 0!==a.config.minDate&&(a.currentYear===a.config.minDate.getFullYear()?a.currentMonth<=a.config.minDate.getMonth():a.currentYear<a.config.minDate.getFullYear()),a._hideNextMonthArrow=void 0!==a.config.maxDate&&(a.currentYear===a.config.maxDate.getFullYear()?a.currentMonth+1>a.config.maxDate.getMonth():a.currentYear>a.config.maxDate.getFullYear()))}function we(e){var t=e||(a.config.altInput?a.config.altFormat:a.config.dateFormat);return a.selectedDates.map((function(e){return a.formatDate(e,t)})).filter((function(e,t,r){return"range"!==a.config.mode||a.config.enableTime||r.indexOf(e)===t})).join("range"!==a.config.mode?a.config.conjunction:a.l10n.rangeSeparator)}function Ee(e){void 0===e&&(e=!0),void 0!==a.mobileInput&&a.mobileFormatStr&&(a.mobileInput.value=void 0!==a.latestSelectedDateObj?a.formatDate(a.latestSelectedDateObj,a.mobileFormatStr):""),a.input.value=we(a.config.dateFormat),void 0!==a.altInput&&(a.altInput.value=we(a.config.altFormat)),!1!==e&&be("onValueUpdate")}function Ce(e){var t=h(e),r=a.prevMonthNav.contains(t),o=a.nextMonthNav.contains(t);r||o?Q(r?-1:1):a.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?a.changeYear(a.currentYear+1):t.classList.contains("arrowDown")&&a.changeYear(a.currentYear-1)}return function(){a.element=a.input=e,a.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],l=S(S({},JSON.parse(JSON.stringify(e.dataset||{}))),t),i={};a.config.parseDate=l.parseDate,a.config.formatDate=l.formatDate,Object.defineProperty(a.config,"enable",{get:function(){return a.config._enable},set:function(e){a.config._enable=ge(e)}}),Object.defineProperty(a.config,"disable",{get:function(){return a.config._disable},set:function(e){a.config._disable=ge(e)}});var s="time"===l.mode;if(!l.dateFormat&&(l.enableTime||s)){var c=M.defaultConfig.dateFormat||o.dateFormat;i.dateFormat=l.noCalendar||s?"H:i"+(l.enableSeconds?":S":""):c+" H:i"+(l.enableSeconds?":S":"")}if(l.altInput&&(l.enableTime||s)&&!l.altFormat){var f=M.defaultConfig.altFormat||o.altFormat;i.altFormat=l.noCalendar||s?"h:i"+(l.enableSeconds?":S K":" K"):f+" h:i"+(l.enableSeconds?":S":"")+" K"}Object.defineProperty(a.config,"minDate",{get:function(){return a.config._minDate},set:le("min")}),Object.defineProperty(a.config,"maxDate",{get:function(){return a.config._maxDate},set:le("max")});var d=function(e){return function(t){a.config["min"===e?"_minTime":"_maxTime"]=a.parseDate(t,"H:i:S")}};Object.defineProperty(a.config,"minTime",{get:function(){return a.config._minTime},set:d("min")}),Object.defineProperty(a.config,"maxTime",{get:function(){return a.config._maxTime},set:d("max")}),"time"===l.mode&&(a.config.noCalendar=!0,a.config.enableTime=!0),Object.assign(a.config,i,l);for(var p=0;p<n.length;p++)a.config[n[p]]=!0===a.config[n[p]]||"true"===a.config[n[p]];for(r.filter((function(e){return void 0!==a.config[e]})).forEach((function(e){a.config[e]=u(a.config[e]||[]).map(b)})),a.isMobile=!a.config.disableMobile&&!a.config.inline&&"single"===a.config.mode&&!a.config.disable.length&&!a.config.enable&&!a.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),p=0;p<a.config.plugins.length;p++){var m=a.config.plugins[p](a)||{};for(var g in m)r.indexOf(g)>-1?a.config[g]=u(m[g]).map(b).concat(a.config[g]):void 0===l[g]&&(a.config[g]=m[g])}l.altInputClass||(a.config.altInputClass=ie().className+" "+a.config.altInputClass),be("onParseConfig")}(),se(),a.input=ie(),a.input?(a.input._type=a.input.type,a.input.type="text",a.input.classList.add("flatpickr-input"),a._input=a.input,a.config.altInput&&(a.altInput=d(a.input.nodeName,a.config.altInputClass),a._input=a.altInput,a.altInput.placeholder=a.input.placeholder,a.altInput.disabled=a.input.disabled,a.altInput.required=a.input.required,a.altInput.tabIndex=a.input.tabIndex,a.altInput.type="text",a.input.setAttribute("type","hidden"),!a.config.static&&a.input.parentNode&&a.input.parentNode.insertBefore(a.altInput,a.input.nextSibling)),a.config.allowInput||a._input.setAttribute("readonly","readonly"),he()):a.config.errorHandler(new Error("Invalid input element specified")),function(){a.selectedDates=[],a.now=a.parseDate(a.config.now)||new Date;var e=a.config.defaultDate||("INPUT"!==a.input.nodeName&&"TEXTAREA"!==a.input.nodeName||!a.input.placeholder||a.input.value!==a.input.placeholder?a.input.value:null);e&&me(e,a.config.dateFormat),a._initialDate=a.selectedDates.length>0?a.selectedDates[0]:a.config.minDate&&a.config.minDate.getTime()>a.now.getTime()?a.config.minDate:a.config.maxDate&&a.config.maxDate.getTime()<a.now.getTime()?a.config.maxDate:a.now,a.currentYear=a._initialDate.getFullYear(),a.currentMonth=a._initialDate.getMonth(),a.selectedDates.length>0&&(a.latestSelectedDateObj=a.selectedDates[0]),void 0!==a.config.minTime&&(a.config.minTime=a.parseDate(a.config.minTime,"H:i")),void 0!==a.config.maxTime&&(a.config.maxTime=a.parseDate(a.config.maxTime,"H:i")),a.minDateHasTime=!!a.config.minDate&&(a.config.minDate.getHours()>0||a.config.minDate.getMinutes()>0||a.config.minDate.getSeconds()>0),a.maxDateHasTime=!!a.config.maxDate&&(a.config.maxDate.getHours()>0||a.config.maxDate.getMinutes()>0||a.config.maxDate.getSeconds()>0)}(),a.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=a.currentMonth),void 0===t&&(t=a.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:a.l10n.daysInMonth[e]}},a.isMobile||function(){var e=window.document.createDocumentFragment();if(a.calendarContainer=d("div","flatpickr-calendar"),a.calendarContainer.tabIndex=-1,!a.config.noCalendar){if(e.appendChild((a.monthNav=d("div","flatpickr-months"),a.yearElements=[],a.monthElements=[],a.prevMonthNav=d("span","flatpickr-prev-month"),a.prevMonthNav.innerHTML=a.config.prevArrow,a.nextMonthNav=d("span","flatpickr-next-month"),a.nextMonthNav.innerHTML=a.config.nextArrow,U(),Object.defineProperty(a,"_hidePrevMonthArrow",{get:function(){return a.__hidePrevMonthArrow},set:function(e){a.__hidePrevMonthArrow!==e&&(f(a.prevMonthNav,"flatpickr-disabled",e),a.__hidePrevMonthArrow=e)}}),Object.defineProperty(a,"_hideNextMonthArrow",{get:function(){return a.__hideNextMonthArrow},set:function(e){a.__hideNextMonthArrow!==e&&(f(a.nextMonthNav,"flatpickr-disabled",e),a.__hideNextMonthArrow=e)}}),a.currentYearElement=a.yearElements[0],ye(),a.monthNav)),a.innerContainer=d("div","flatpickr-innerContainer"),a.config.weekNumbers){var t=function(){a.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",a.l10n.weekAbbreviation));var t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),r=t.weekWrapper,o=t.weekNumbers;a.innerContainer.appendChild(r),a.weekNumbers=o,a.weekWrapper=r}a.rContainer=d("div","flatpickr-rContainer"),a.rContainer.appendChild(W()),a.daysContainer||(a.daysContainer=d("div","flatpickr-days"),a.daysContainer.tabIndex=-1),q(),a.rContainer.appendChild(a.daysContainer),a.innerContainer.appendChild(a.rContainer),e.appendChild(a.innerContainer)}a.config.enableTime&&e.appendChild(function(){a.calendarContainer.classList.add("hasTime"),a.config.noCalendar&&a.calendarContainer.classList.add("noCalendar");var e=N(a.config);a.timeContainer=d("div","flatpickr-time"),a.timeContainer.tabIndex=-1;var t=d("span","flatpickr-time-separator",":"),r=g("flatpickr-hour",{"aria-label":a.l10n.hourAriaLabel});a.hourElement=r.getElementsByTagName("input")[0];var o=g("flatpickr-minute",{"aria-label":a.l10n.minuteAriaLabel});if(a.minuteElement=o.getElementsByTagName("input")[0],a.hourElement.tabIndex=a.minuteElement.tabIndex=-1,a.hourElement.value=i(a.latestSelectedDateObj?a.latestSelectedDateObj.getHours():a.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),a.minuteElement.value=i(a.latestSelectedDateObj?a.latestSelectedDateObj.getMinutes():e.minutes),a.hourElement.setAttribute("step",a.config.hourIncrement.toString()),a.minuteElement.setAttribute("step",a.config.minuteIncrement.toString()),a.hourElement.setAttribute("min",a.config.time_24hr?"0":"1"),a.hourElement.setAttribute("max",a.config.time_24hr?"23":"12"),a.hourElement.setAttribute("maxlength","2"),a.minuteElement.setAttribute("min","0"),a.minuteElement.setAttribute("max","59"),a.minuteElement.setAttribute("maxlength","2"),a.timeContainer.appendChild(r),a.timeContainer.appendChild(t),a.timeContainer.appendChild(o),a.config.time_24hr&&a.timeContainer.classList.add("time24hr"),a.config.enableSeconds){a.timeContainer.classList.add("hasSeconds");var n=g("flatpickr-second");a.secondElement=n.getElementsByTagName("input")[0],a.secondElement.value=i(a.latestSelectedDateObj?a.latestSelectedDateObj.getSeconds():e.seconds),a.secondElement.setAttribute("step",a.minuteElement.getAttribute("step")),a.secondElement.setAttribute("min","0"),a.secondElement.setAttribute("max","59"),a.secondElement.setAttribute("maxlength","2"),a.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),a.timeContainer.appendChild(n)}return a.config.time_24hr||(a.amPM=d("span","flatpickr-am-pm",a.l10n.amPM[s((a.latestSelectedDateObj?a.hourElement.value:a.config.defaultHour)>11)]),a.amPM.title=a.l10n.toggleTitle,a.amPM.tabIndex=-1,a.timeContainer.appendChild(a.amPM)),a.timeContainer}()),f(a.calendarContainer,"rangeMode","range"===a.config.mode),f(a.calendarContainer,"animate",!0===a.config.animate),f(a.calendarContainer,"multiMonth",a.config.showMonths>1),a.calendarContainer.appendChild(e);var n=void 0!==a.config.appendTo&&void 0!==a.config.appendTo.nodeType;if((a.config.inline||a.config.static)&&(a.calendarContainer.classList.add(a.config.inline?"inline":"static"),a.config.inline&&(!n&&a.element.parentNode?a.element.parentNode.insertBefore(a.calendarContainer,a._input.nextSibling):void 0!==a.config.appendTo&&a.config.appendTo.appendChild(a.calendarContainer)),a.config.static)){var l=d("div","flatpickr-wrapper");a.element.parentNode&&a.element.parentNode.insertBefore(l,a.element),l.appendChild(a.element),a.altInput&&l.appendChild(a.altInput),l.appendChild(a.calendarContainer)}a.config.static||a.config.inline||(void 0!==a.config.appendTo?a.config.appendTo:window.document.body).appendChild(a.calendarContainer)}(),function(){if(a.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(a.element.querySelectorAll("[data-"+e+"]"),(function(t){return L(t,"click",a[e])}))})),a.isMobile)!function(){var e=a.config.enableTime?a.config.noCalendar?"time":"datetime-local":"date";a.mobileInput=d("input",a.input.className+" flatpickr-mobile"),a.mobileInput.tabIndex=1,a.mobileInput.type=e,a.mobileInput.disabled=a.input.disabled,a.mobileInput.required=a.input.required,a.mobileInput.placeholder=a.input.placeholder,a.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",a.selectedDates.length>0&&(a.mobileInput.defaultValue=a.mobileInput.value=a.formatDate(a.selectedDates[0],a.mobileFormatStr)),a.config.minDate&&(a.mobileInput.min=a.formatDate(a.config.minDate,"Y-m-d")),a.config.maxDate&&(a.mobileInput.max=a.formatDate(a.config.maxDate,"Y-m-d")),a.input.getAttribute("step")&&(a.mobileInput.step=String(a.input.getAttribute("step"))),a.input.type="hidden",void 0!==a.altInput&&(a.altInput.type="hidden");try{a.input.parentNode&&a.input.parentNode.insertBefore(a.mobileInput,a.input.nextSibling)}catch(e){}L(a.mobileInput,"change",(function(e){a.setDate(h(e).value,!1,a.mobileFormatStr),be("onChange"),be("onClose")}))}();else{var e=c(ne,50);if(a._debouncedChange=c(A,300),a.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&L(a.daysContainer,"mouseover",(function(e){"range"===a.config.mode&&oe(h(e))})),L(a._input,"keydown",re),void 0!==a.calendarContainer&&L(a.calendarContainer,"keydown",re),a.config.inline||a.config.static||L(window,"resize",e),void 0!==window.ontouchstart?L(window.document,"touchstart",Z):L(window.document,"mousedown",Z),L(window.document,"focus",Z,{capture:!0}),!0===a.config.clickOpens&&(L(a._input,"focus",a.open),L(a._input,"click",a.open)),void 0!==a.daysContainer&&(L(a.monthNav,"click",Ce),L(a.monthNav,["keyup","increment"],I),L(a.daysContainer,"click",de)),void 0!==a.timeContainer&&void 0!==a.minuteElement&&void 0!==a.hourElement){L(a.timeContainer,["increment"],w),L(a.timeContainer,"blur",w,{capture:!0}),L(a.timeContainer,"click",B),L([a.hourElement,a.minuteElement],["focus","click"],(function(e){return h(e).select()})),void 0!==a.secondElement&&L(a.secondElement,"focus",(function(){return a.secondElement&&a.secondElement.select()})),void 0!==a.amPM&&L(a.amPM,"click",(function(e){w(e)}))}a.config.allowInput&&L(a._input,"blur",ae)}}(),(a.selectedDates.length||a.config.noCalendar)&&(a.config.enableTime&&O(a.config.noCalendar?a.latestSelectedDateObj:void 0),Ee(!1)),_();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!a.isMobile&&n&&ce(),be("onReady")}(),a}function O(e,t){for(var a=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),r=[],o=0;o<a.length;o++){var n=a[o];try{if(null!==n.getAttribute("data-fp-omit"))continue;void 0!==n._flatpickr&&(n._flatpickr.destroy(),n._flatpickr=void 0),n._flatpickr=P(n,t||{}),r.push(n._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return O(this,e)},HTMLElement.prototype.flatpickr=function(e){return O([this],e)});var M=function(e,t){return"string"==typeof e?O(window.document.querySelectorAll(e),t):e instanceof Node?O([e],t):O(e,t)};M.defaultConfig={},M.l10ns={en:S({},l),default:S({},l)},M.localize=function(e){M.l10ns.default=S(S({},M.l10ns.default),e)},M.setDefaults=function(e){M.defaultConfig=S(S({},M.defaultConfig),e)},M.parseDate=C({}),M.formatDate=E({}),M.compareDates=x,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return O(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=M);var T=M},895:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach((function(a){return e[a]=t[a]}))},o=0,n=t;o<n.length;o++){var l=n[o];r(l)}return e})},679:function(e,t,a){"use strict";var r=a(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function s(e){return r.isMemo(e)?l:i[e.$$typeof]||o}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=l;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,a,r){if("string"!=typeof a){if(m){var o=p(a);o&&o!==m&&e(t,o,r)}var l=u(a);f&&(l=l.concat(f(a)));for(var i=s(t),g=s(a),h=0;h<l.length;++h){var b=l[h];if(!(n[b]||r&&r[b]||g&&g[b]||i&&i[b])){var v=d(a,b);try{c(t,b,v)}catch(e){}}}}return t}},103:function(e,t){"use strict";var a="function"==typeof Symbol&&Symbol.for,r=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,n=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,d=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.suspense_list"):60120,g=a?Symbol.for("react.memo"):60115,h=a?Symbol.for("react.lazy"):60116,b=a?Symbol.for("react.block"):60121,v=a?Symbol.for("react.fundamental"):60117,_=a?Symbol.for("react.responder"):60118,y=a?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case n:case i:case l:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case h:case g:case s:return e;default:return t}}case o:return t}}}function E(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=n,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=i,t.StrictMode=l,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===n},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===i},t.isStrictMode=function(e){return w(e)===l},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===i||e===l||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===_||e.$$typeof===y||e.$$typeof===b)},t.typeOf=w},296:function(e,t,a){"use strict";e.exports=a(103)},703:function(e,t,a){"use strict";var r=a(414);function o(){}function n(){}n.resetWarningCache=o,e.exports=function(){function e(e,t,a,o,n,l){if(l!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:o};return a.PropTypes=a,a}},697:function(e,t,a){e.exports=a(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},953:function(e,t,a){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=o?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}return a.default=e,t&&t.set(e,a),a}(a(196)),n=i(a(697)),l=i(a(527));function i(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u.apply(this,arguments)}function f(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?f(Object(a),!0).forEach((function(t){_(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):f(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function h(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function _(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var y=["onChange","onOpen","onClose","onMonthChange","onYearChange","onReady","onValueUpdate","onDayCreate"],w=n.default.oneOfType([n.default.func,n.default.arrayOf(n.default.func)]),E=["onCreate","onDestroy"],C=n.default.func,x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,a,r,n,i=(r=s,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(r);if(n){var a=v(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return h(this,e)});function s(){var e;p(this,s);for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return _(b(e=i.call.apply(i,[this].concat(a))),"createFlatpickrInstance",(function(){var t=d({onClose:function(){e.node.blur&&e.node.blur()}},e.props.options);t=k(t,e.props),e.flatpickr=(0,l.default)(e.node,t),e.props.hasOwnProperty("value")&&e.flatpickr.setDate(e.props.value,!1);var a=e.props.onCreate;a&&a(e.flatpickr)})),_(b(e),"destroyFlatpickrInstance",(function(){var t=e.props.onDestroy;t&&t(e.flatpickr),e.flatpickr.destroy(),e.flatpickr=null})),_(b(e),"handleNodeChange",(function(t){e.node=t,e.flatpickr&&(e.destroyFlatpickrInstance(),e.createFlatpickrInstance())})),e}return t=s,(a=[{key:"componentDidUpdate",value:function(e){var t=this.props.options,a=e.options;t=k(t,this.props),a=k(a,e);for(var r=Object.getOwnPropertyNames(t),o=r.length-1;o>=0;o--){var n=r[o],l=t[n];l!==a[n]&&(-1===y.indexOf(n)||Array.isArray(l)||(l=[l]),this.flatpickr.set(n,l))}!this.props.hasOwnProperty("value")||this.props.value&&Array.isArray(this.props.value)&&e.value&&Array.isArray(e.value)&&this.props.value.every((function(t,a){e[a]}))||this.props.value===e.value||this.flatpickr.setDate(this.props.value,!1)}},{key:"componentDidMount",value:function(){this.createFlatpickrInstance()}},{key:"componentWillUnmount",value:function(){this.destroyFlatpickrInstance()}},{key:"render",value:function(){var e=this.props,t=e.options,a=e.defaultValue,r=e.value,n=e.children,l=e.render,i=function(e,t){if(null==e)return{};var a,r,o=function(e,t){if(null==e)return{};var a,r,o={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(o[a]=e[a]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}(e,["options","defaultValue","value","children","render"]);return y.forEach((function(e){delete i[e]})),E.forEach((function(e){delete i[e]})),l?l(d(d({},i),{},{defaultValue:a,value:r}),this.handleNodeChange):t.wrap?o.default.createElement("div",u({},i,{ref:this.handleNodeChange}),n):o.default.createElement("input",u({},i,{defaultValue:a,ref:this.handleNodeChange}))}}])&&m(t.prototype,a),s}(o.Component);function k(e,t){var a=d({},e);return y.forEach((function(e){if(t.hasOwnProperty(e)){var r;a[e]&&!Array.isArray(a[e])?a[e]=[a[e]]:a[e]||(a[e]=[]);var o=Array.isArray(t[e])?t[e]:[t[e]];(r=a[e]).push.apply(r,function(e){if(Array.isArray(e))return c(e)}(n=o)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var n})),a}_(x,"propTypes",{defaultValue:n.default.string,options:n.default.object,onChange:w,onOpen:w,onClose:w,onMonthChange:w,onYearChange:w,onReady:w,onValueUpdate:w,onDayCreate:w,onCreate:C,onDestroy:C,value:n.default.oneOfType([n.default.string,n.default.array,n.default.object,n.default.number]),children:n.default.node,className:n.default.string,render:n.default.func}),_(x,"defaultProps",{options:{}});var N=x;t.Z=N},196:function(e){"use strict";e.exports=window.React}},t={};function a(r){var o=t[r];if(void 0!==o)return o.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,a),n.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=window.wp.element;function t(e){return t="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},t(e)}var r=function(e,t){let a="linear"===e.type?"linear-gradient("+e.direction+"deg, ":"radial-gradient( circle at "+e.radial+" , ";return a+=e.color1+" "+e.start+"%,"+e.color2+" "+e.stop+"%)","object"===t?{background:a}:(a="background:"+a+(e.clip?"-webkit-background-clip: text; -webkit-text-fill-color: transparent;":""),"{"+a+"}")},o=function(e){let t="{";return t+="box-shadow:"+(e.inset?"inset":"")+" "+e.width.top+"px "+e.width.right+"px "+e.width.bottom+"px "+e.width.left+"px "+e.color+";",void 0!==e.transition&&(t+="transition: box-shadow "+e.transition+"s;"),t+="}",t},n=function(e){let t="{";return void 0!==e.opacity&&""!==e.opacity&&(t+="opacity:"+e.opacity+";"),t+="filter:brightness("+e.filter.brightness+"% ) contrast("+e.filter.contrast+"% ) saturate("+e.filter.saturate+"% ) blur("+e.filter.blur+"px ) hue-rotate("+e.filter["hue-rotate"]+"deg );",void 0!==e.transition&&""!==e.transition&&(t+="transition: filter "+e.transition+"s;"),t+="}",t},l=function(e){return(e=Object.assign({},{type:"solid",width:{},color:"#e5e5e5"},e)).width.unit&&e.width.unit,"{ border-color: "+(e.color?e.color:"#555d66")+"; border-style: "+(e.type?e.type:"solid")+"; border-width: "+u(e.width)+"; }"};const i=function(e,t){let a={};return e&&e.lg&&(a.lg=t.replace(new RegExp("{{key}}","g"),e.lg+(e.unit||""))),e&&e.md&&(a.md=t.replace(new RegExp("{{key}}","g"),e.md+(e.unit||""))),e&&e.sm&&(a.sm=t.replace(new RegExp("{{key}}","g"),e.sm+(e.unit||""))),e&&e.xs&&(a.xs=t.replace(new RegExp("{{key}}","g"),e.xs+(e.unit||""))),a},s=function(e,t){return e.lg&&t.lg.push(e.lg),e.md&&t.md.push(e.md),e.sm&&t.sm.push(e.sm),e.xs&&t.xs.push(e.xs),t};var c=function(e){let t="";e.family&&"none"!==e.family&&(["Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia"].includes(e.family)||(t="@import url('https://fonts.googleapis.com/css?family="+e.family.replace(" ","+")+":"+(e.weight||400)+"');"));let a={lg:[],md:[],sm:[],xs:[]};e.size&&(a=s(i(e.size,"font-size:{{key}}"),a)),e.height&&(a=s(i(e.height,"line-height:{{key}} !important"),a)),e.spacing&&(a=s(i(e.spacing,"letter-spacing:{{key}}"),a));const r="{"+(e.family&&"none"!==e.family?"font-family:'"+e.family+"',"+(e.type||"sans-serif")+";":"")+(e.weight?"font-weight:"+e.weight+";":"")+(e.color?"color:"+e.color+";":"")+(e.style?"font-style:"+e.style+";":"")+(e.transform?"text-transform:"+e.transform+";":"")+(e.decoration?"text-decoration:"+e.decoration+";":"")+"}";return{lg:a.lg,md:a.md,sm:a.sm,xs:a.xs,simple:r,font:t}};const u=function(e){const t=e.unit?e.unit:"px";let a="";return(e.top||0===e.top)&&(a+=e.top+t+" "),(e.right||0===e.right)&&(a+=e.right+t+" "),(e.bottom||0===e.bottom)&&(a+=e.bottom+t+" "),(e.left||0===e.left)&&(a+=e.left+t+" "),a},f=function(e){let t="{";return t+=function(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2],r=arguments[3],o=arguments[4],n=arguments[5],l=arguments[6],i=arguments[7];let s=l?"background-color:"+l+";":"";return"image"===e?s+=(t.hasOwnProperty("url")?"background-image:url("+t.url+");":"")+(a?"background-position:"+a+";":"")+(r?"background-attachment:"+r+";":"")+(o?"background-repeat:"+o+";":"")+(n?"background-size:"+n+";":""):"gradient"===e&&(i&&"linear"===i.type?s+="background-image: linear-gradient("+i.direction+"deg, "+i.color1+" "+i.start+"%,"+i.color2+" "+i.stop+"%);":s+="background-image: radial-gradient( circle at "+i.radial+" , "+i.color1+" "+i.start+"%,"+i.color2+" "+i.stop+"%);"),s}(e.bgType,e.bgImage,e.bgimgPosition,e.bgimgAttachment,e.bgimgRepeat,e.bgimgSize,e.bgDefaultColor,e.bgGradient),t+="}","video"===e.bgType&&e.bgVideoFallback&&e.bgVideoFallback.url&&(t+="background-image: url("+e.bgVideoFallback.url+"); background-position: center; background-repeat: no-repeat; background-size: cover;"),"{}"!==t?t:{}},d=function(e){let t=e.clip?"-webkit-background-clip: text; -webkit-text-fill-color: transparent;":"";return"color"===e.type?t+=e.color?"background-image: none; background-color: "+e.color+";":"":"gradient"===e.type&&e.gradient&&(e.gradient&&"linear"===e.gradient.type?t+="background-image : linear-gradient("+e.gradient.direction+"deg, "+e.gradient.color1+" "+e.gradient.start+"%,"+e.gradient.color2+" "+e.gradient.stop+"%);":t+="background-image : radial-gradient( circle at "+e.gradient.radial+" , "+e.gradient.color1+" "+e.gradient.start+"%,"+e.gradient.color2+" "+e.gradient.stop+"%);"),e.replace?t:"{"+t+"}"},p=e=>{let t={lg:[],md:[],sm:[],xs:[]},a="";if("classic"===e.type){e.classic.imgProperty.imgPosition&&(t=s(i(e.classic.imgProperty.imgPosition,"background-position:{{key}} !important"),t)),e.classic.imgProperty.imgAttachment&&(t=s(i(e.classic.imgProperty.imgAttachment,"background-attachment:{{key}} !important"),t)),e.classic.imgProperty.imgRepeat&&(t=s(i(e.classic.imgProperty.imgRepeat,"background-repeat:{{key}} !important"),t)),e.classic.imgProperty.imgSize&&(t=s(i(e.classic.imgProperty.imgSize,"background-size:{{key}} !important"),t));let r=void 0!==e.classic.img?e.classic.img.imgURL:"";a+=e.classic.color?"background:"+e.classic.color+";":"",a+=r?"background-image:url("+r+");":""}else"gradient"===e.type&&e.gradient&&(a+=e.gradient?"background-image :"+e.gradient:"");const r="{"+a+"}";return{lg:t.lg,md:t.md,sm:t.sm,xs:t.xs,simple:r}},m=(e,t)=>{let a="",r="";const o=e.unit||"px";if(null!=e&&e.important&&(r="!important"),null!=e&&e.isLinked){const n=e.value.split(" ")[0];a=n?`${t}:${n}${o}${r}`:""}else{let n=e.value?e.value.split(" "):["","","",""];""===n[0]||""===n[1]||""===n[2]||""===n[3]?(n[0]&&(a+=`${t}-top:${n[0]}${"0"!==n[0]?o:""} ${r};`),n[1]&&(a+=`${t}-right:${n[1]}${"0"!==n[1]?o:""} ${r};`),n[2]&&(a+=`${t}-bottom:${n[2]}${"0"!==n[2]?o:""} ${r};`),n[3]&&(a+=`${t}-left:${n[3]}${"0"!==n[3]?o:""} ${r};`)):a=`${t}:${n[0]?n[0]:"0"}${o} ${n[1]?n[1]:"0"}${o} ${n[2]?n[2]:"0"}${o} ${n[3]?n[3]:"0"}${o} ${r};`}let n="";return"border-radius"===t&&(n="overflow:hidden;"),a="{"+n+a+"}",a},g=e=>m(e,"border-radius"),h=e=>m(e,"margin"),b=e=>function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="";const o=e.unit||"px";if(null!=e&&e.isLinked)r=`${t}${a}:${e.value.split(" ")[0]||"0"}${o} `;else{let n=e.value?e.value.split(" "):["0","0","0","0"];""===n[0]||""===n[1]||""===n[2]||""===n[3]?(n[0]&&(r+=`${t}-top${a}:${n[0]}${"0"!==n[0]?o:""};`),n[1]&&(r+=`${t}-right${a}:${n[1]}${"0"!==n[1]?o:""};`),n[2]&&(r+=`${t}-bottom${a}:${n[2]}${"0"!==n[2]?o:""};`),n[3]&&(r+=`${t}-left${a}:${n[3]}${"0"!==n[3]?o:""};`)):r=`${t}${a}:${n[0]?n[0]:"0"}${o} ${n[1]?n[1]:"0"}${o} ${n[2]?n[2]:"0"}${o} ${n[3]?n[3]:"0"}${o}`}return r="{"+r+"}",r}(e,"border","-width"),v=e=>{let t="{";return e.width&&"undefined"!=e.width&&(t+=`border-width:${e.width} ${null!=e&&e.important?"!important":""};`),e.color&&(t+=`border-color:${e.color} ${null!=e&&e.important?"!important":""};`),e.color&&!e.style?t+=`border-style: solid ${null!=e&&e.important?"!important":""};`:e.style&&(t+=`border-style:${e.style} ${null!=e&&e.important?"!important":""};`),t+="}",t},_=(e,t,a)=>e.replace(new RegExp(t,"g"),a),y=e=>"object"===(void 0===e?"undefined":t(e))&&0!==Object.keys(e).length,w=(e,t)=>(e=e.replace(new RegExp("{{RTTPG}}","g"),".rttpg-block-postgrid.rttpg-block-"+t)).replace(new RegExp("{{RTTPG_ID}}","g"),"block-"+t),E=(e,t)=>{let a="";return t.forEach((function(e){a+=e+";"})),e+"{"+a+"}"},C=(e,t)=>{let a="";return t.forEach((function(t){a+=e+t})),a},x=(e,t,a,r)=>{if(r="object"!=typeof r?r:k(r).data,"string"==typeof e){if(e){if(r||"0"==r){const o=w(e,t);return"boolean"==typeof r?[o]:-1===o.indexOf("{{")&&o.indexOf("{")<0?[o+r]:[_(o,"{{"+a+"}}",r)]}return[]}return[w(r,t)]}{const o=[];return e.forEach((function(e){o.push(_(w(e,t),"{{"+a+"}}",r))})),o}},k=(e,t)=>{return e.openTypography?{data:c(e),action:"append"}:e.openBg?{data:f(e),action:"append"}:e.openBorder?{data:l(e),action:"append"}:e.openShadow&&e.color?{data:o(e),action:"append"}:e.openFilter?{data:n(e),action:"append"}:e.direction?{data:r(e,"return"),action:"append"}:void 0!==e.top||void 0!==e.left||void 0!==e.right||void 0!==e.bottom?{data:u(e),action:"replace"}:e.openColor?e.replace?{data:d(e),action:"replace"}:{data:d(e),action:"append"}:e.openBGColor?{data:p(e),action:"append"}:"padding"===t?{data:(a=e,m(a,"padding")),action:"append"}:"borderRadius"===t?{data:g(e),action:"append"}:"margin"===t?{data:h(e),action:"append"}:"border"===t?{data:b(e),action:"append"}:e.openTpgBorder?{data:v(e),action:"append"}:{data:"",action:"append"};var a},N=(e,t,a,r)=>{if(!a)return;let o="",n=[],l=[],i=[],s=[],c=[];if(Object.keys(e).forEach((function(o){var u;const f="string"==typeof t?null===(u=wp.blocks.getBlockType("rttpg/"+t))||void 0===u?void 0:u.attributes:t;f&&f[o]&&f[o].hasOwnProperty("style")&&f[o].style.forEach(((t,u)=>{if(t.hasOwnProperty("selector")){const u=t.selector;if(((e,t)=>{let a=!0;return t.hasOwnProperty("depends")&&t.depends.forEach((t=>{const r=a;if("=="===t.condition||"==="===t.condition)if("string"==typeof t.value||"number"==typeof t.value||"boolean"==typeof t.value)a=e[t.key]===t.value;else{let r=!1;t.value.forEach((function(a){e[t.key]===a&&(r=!0)})),r&&(a=!0)}else if("!="===t.condition||"!=="===t.condition)if("string"==typeof t.value||"number"==typeof t.value||"boolean"==typeof t.value)a=e[t.key]!==t.value;else{let r=!1;t.value.forEach((function(a){e[t.key]!==a&&(r=!0)})),r&&(a=!0)}a=!1!==r&&a})),a})(e,t))if("object"==typeof e[o]){let t=!1,r="";if((e[o].lg||0===e[o].lg)&&(t=!0,r="object"==typeof e[o].lg?k(e[o].lg,e[o].type).data:e[o].lg+(e[o].unit||""),n=n.concat(x(u,a,o,r))),(e[o].md||0===e[o].md)&&(t=!0,r="object"==typeof e[o].md?k(e[o].md,e[o].type).data:e[o].md+(e[o].unit||""),l=l.concat(x(u,a,o,r))),(e[o].sm||0===e[o].sm)&&(t=!0,r="object"==typeof e[o].sm?k(e[o].sm,e[o].type).data:e[o].sm+(e[o].unit||""),i=i.concat(x(u,a,o,r))),(e[o].xs||0===e[o].xs)&&(t=!0,r="object"==typeof e[o].xs?k(e[o].xs,e[o].type).data:e[o].xs+(e[o].unit||""),s=s.concat(x(u,a,o,r))),!t){const t=k(e[o],e[o].type),r=w(u,a);"object"==typeof t.data?0!==Object.keys(t.data).length&&(t.data.background&&c.push(r+t.data.background),y(t.data.lg)&&n.push(E(r,t.data.lg)),y(t.data.md)&&l.push(E(r,t.data.md)),y(t.data.sm)&&i.push(E(r,t.data.sm)),y(t.data.xs)&&s.push(E(r,t.data.xs)),t.data.simple&&c.push(r+t.data.simple),t.data.font&&n.unshift(t.data.font),t.data.shape&&(t.data.shape.forEach((function(e){c.push(r+e)})),y(t.data.data.lg)&&n.push(C(r,t.data.data.lg)),y(t.data.data.md)&&l.push(C(r,t.data.data.md)),y(t.data.data.sm)&&i.push(C(r,t.data.data.sm)),y(t.data.data.xs)&&s.push(C(r,t.data.data.xs)))):t.data&&-1===t.data.indexOf("{{")&&("append"===t.action?c.push(r+t.data):c.push(x(u,a,o,t.data)))}}else"hideTablet"===o?r&&(i=i.concat(x(u,a,o,e[o]))):"hideMobile"===o?r&&(s=s.concat(x(u,a,o,e[o]))):(e[o]||"0"==e[o])&&(c=c.concat(x(u,a,o,e[o])))}}))})),n.length>0&&(o+=n.join("")),l.length>0&&(o+="@media (max-width: 1024px) {"+l.join("")+"}"),i.length>0&&(o+="@media (max-width: 767px) {"+i.join("")+"}"),c.length>0&&(o+=c.join("")),r)return o;S(o,a)},S=function(e,t){const a="rttpg-block-css-"+t,r=document.querySelector("iframe[name=editor-canvas]");if(r)setTimeout((function(){const t=r.contentDocument;if(t){const r=t.getElementsByTagName("head")[0];if(null===t.getElementById(a)&&r){const t=document.createElement("style");t.id=a,t.innerHTML=e,r.appendChild(t)}else t.getElementById(a).innerHTML=e;if(null===t.getElementById("rttpg-frontend-css")){const e=t.createElement("link");e.rel="stylesheet",e.type="text/css",rttpgParams.hasPro?e.href=rttpgParams.plugin_pro_url+"/assets/css/tpg-block.min.css":e.href=rttpgParams.plugin_url+"/assets/css/tpg-block.min.css",e.setAttribute("id","rttpg-frontend-css"),r.appendChild(e)}}}),1);else{const t=window.document;if(null===t.getElementById(a)){const r=document.createElement("style");r.id=a,r.innerHTML=e,t.getElementsByTagName("head")[0].appendChild(r)}else t.getElementById(a).innerHTML=e}},{select:D}=wp.data,P=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a="";return!0===t&&(a="",t=!1),e.map((e=>{const{attributes:t,name:r}=e,[o,n]=r.split("/");"rttpg"===o&&t.uniqueId&&(a+=N(t,n,t.uniqueId,!0)),e.innerBlocks&&e.innerBlocks.length>0&&(a+=P(e.innerBlocks))})),a},O=e=>{let t=!1;return e.forEach((function(e){const{name:a,innerBlocks:r=[]}=e,[o,n]=a.split("/");"rttpg"===o&&(t=!0),!t&&r.length>0&&(t=O(r))})),t},M=e=>{e.forEach((function(e){var t;-1!==e.name.indexOf("core/block")&&(t=e.attributes.ref,jQuery.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{postId:t,action:"rttpg_block_css_get_posts"}}).then((function(e){if(e.success){const t=P(wp.blocks.parse(e.data),!0);t.css&&jQuery.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{inner_css:t.css,post_id:wp.data.select("core/editor").getCurrentPostId(),action:"rttpg_block_css_appended"}}).done((function(e){e.success}))}}))),e.innerBlocks&&e.innerBlocks.length>0&&M(e.innerBlocks)}))};var T=window.wp.blocks,I=window.wp.i18n,L=window.wp.apiFetch,A=a.n(L);const{__:__}=wp.i18n,F={},B=rttpgParams.plugin_url+"/assets/images";F.postgrid_logo=`${B}/icon-32x32.png`,F.grid_preview=(0,e.createElement)("img",{src:`${B}/gutenberg/preview/grid-preview.png`,alt:__("Grid Layout")}),F.slider_preview=(0,e.createElement)("img",{src:`${B}/gutenberg/preview/slider-preview.png`,alt:__("Slider Layout")}),F.grid_hover_preview=(0,e.createElement)("img",{src:`${B}/gutenberg/preview/grid-hover-preview.png`,alt:__("Slider Layout")}),F.list_preview=(0,e.createElement)("img",{src:`${B}/gutenberg/preview/list-preview.png`,alt:__("Slider Layout")}),F.grid_layout1=(0,e.createElement)("img",{src:`${B}/layouts/grid1.png`,alt:__("Grid Layout 1")}),F.grid_layout2=(0,e.createElement)("img",{src:`${B}/layouts/grid_layout8.png`,alt:__("Grid Layout 2")}),F.grid_layout3=(0,e.createElement)("img",{src:`${B}/layouts/grid12.png`,alt:__("Grid Layout 3")}),F.grid_layout4=(0,e.createElement)("img",{src:`${B}/layouts/grid2.png`,alt:__("Grid Layout 4")}),F.grid_layout5=(0,e.createElement)("img",{src:`${B}/layouts/grid_layout9.png`,alt:__("Grid Layout 5")}),F.grid_layout6=(0,e.createElement)("img",{src:`${B}/layouts/grid_layout9-2.png`,alt:__("Grid Layout 6")}),F.grid_layout7=(0,e.createElement)("img",{src:`${B}/layouts/grid_layout10.png`,alt:__("Grid Layout 7")}),F.grid_layout8=(0,e.createElement)("img",{src:`${B}/layouts/grid_layout10-2.png`,alt:__("Grid Layout 8")}),F.grid_layout9=(0,e.createElement)("img",{src:`${B}/layouts/gallery.png`,alt:__("Grid Layout 9")}),F.list_layout1=(0,e.createElement)("img",{src:`${B}/layouts/list1.png`,alt:__("List Layout 1")}),F.list_layout2=(0,e.createElement)("img",{src:`${B}/layouts/list3.png`,alt:__("List Layout 2")}),F.list_layout3=(0,e.createElement)("img",{src:`${B}/layouts/list3-2.png`,alt:__("List Layout 3")}),F.list_layout4=(0,e.createElement)("img",{src:`${B}/layouts/list4.png`,alt:__("List Layout 4")}),F.list_layout5=(0,e.createElement)("img",{src:`${B}/layouts/list4-2.png`,alt:__("List Layout 5")}),F.list_layout6=(0,e.createElement)("img",{src:`${B}/layouts/list_layout1.png`,alt:__("List Layout 6")}),F.list_layout7=(0,e.createElement)("img",{src:`${B}/layouts/list_layout2.png`,alt:__("List Layout 7")}),F.grid_hover1=(0,e.createElement)("img",{src:`${B}/layouts/grid3.png`,alt:__("Grid Hover Layout 1")}),F.grid_hover2=(0,e.createElement)("img",{src:`${B}/layouts/grid4.png`,alt:__("Grid Hover Layout 2")}),F.grid_hover3=(0,e.createElement)("img",{src:`${B}/layouts/grid5.png`,alt:__("Grid Hover Layout 3")}),F.grid_hover4=(0,e.createElement)("img",{src:`${B}/layouts/grid16.png`,alt:__("Grid Hover Layout 4")}),F.grid_hover5=(0,e.createElement)("img",{src:`${B}/layouts/grid16-2.png`,alt:__("Grid Hover Layout 5")}),F.grid_hover6=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover10.png`,alt:__("Grid Hover Layout 6")}),F.grid_hover7=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover10-2.png`,alt:__("Grid Hover Layout 7")}),F.grid_hover8=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover11.png`,alt:__("Grid Hover Layout 8")}),F.grid_hover9=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover11-2.png`,alt:__("Grid Hover Layout 9")}),F.grid_hover10=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover12.png`,alt:__("Grid Hover Layout 10")}),F.grid_hover11=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover12-2.png`,alt:__("Grid Hover Layout 11")}),F.grid_hover12=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover13.png`,alt:__("Grid Hover Layout 12")}),F.grid_hover13=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover9.png`,alt:__("Grid Hover Layout 13")}),F.grid_hover14=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover9-2.png`,alt:__("Grid Hover Layout 14")}),F.grid_hover15=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover15.png`,alt:__("Grid Hover Layout 15")}),F.grid_hover16=(0,e.createElement)("img",{src:`${B}/layouts/grid_hover16.png`,alt:__("Grid Hover Layout 16")}),F.slider_layout1=(0,e.createElement)("img",{src:`${B}/layouts/carousel1.png`,alt:__("Slider Layout 1")}),F.slider_layout2=(0,e.createElement)("img",{src:`${B}/layouts/carousel1.1.png`,alt:__("Slider Layout 2")}),F.slider_layout3=(0,e.createElement)("img",{src:`${B}/layouts/carousel1.3.png`,alt:__("Slider Layout 3")}),F.slider_layout4=(0,e.createElement)("img",{src:`${B}/layouts/carousel2.2.png`,alt:__("Slider Layout 4")}),F.slider_layout5=(0,e.createElement)("img",{src:`${B}/layouts/carousel2.png`,alt:__("Slider Layout 5")}),F.slider_layout6=(0,e.createElement)("img",{src:`${B}/layouts/carousel6.6.png`,alt:__("Slider Layout 6")}),F.slider_layout7=(0,e.createElement)("img",{src:`${B}/layouts/carousel7.7.png`,alt:__("Slider Layout 7")}),F.slider_layout8=(0,e.createElement)("img",{src:`${B}/layouts/carousel8.8.png`,alt:__("Slider Layout 8")}),F.slider_layout9=(0,e.createElement)("img",{src:`${B}/layouts/carousel9.9.png`,alt:__("Slider Layout 9")}),F.slider_layout10=(0,e.createElement)("img",{src:`${B}/layouts/carousel10.2.png`,alt:__("Slider Layout 10")}),F.slider_layout11=(0,e.createElement)("img",{src:`${B}/layouts/slider_layout11.png`,alt:__("Slider Layout 11")}),F.slider_layout12=(0,e.createElement)("img",{src:`${B}/layouts/slider_layout12.png`,alt:__("Slider Layout 12")}),F.slider_layout13=(0,e.createElement)("img",{src:`${B}/layouts/slider_layout13.png`,alt:__("Slider Layout 13")}),F.slider_layout14=(0,e.createElement)("img",{src:`${B}/layouts/slider_layout14.png`,alt:__("Slider Layout 14")});var j=F;const{__:H}=wp.i18n,$=(j.postgrid_logo,[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}]),R=[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"},{label:"Box Hover",value:"box_hover"}],V=[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"},{label:"Active",value:"active"}],z=[{label:H("Classic","guten-blocks"),value:"classic"},{label:H("Gradient","guten-blocks"),value:"gradient"}],q=[{label:H("Default","guten-blocks"),value:""},{label:H("Left Top","guten-blocks"),value:"left top"},{label:H("Left Center","guten-blocks"),value:"left center"},{label:H("Left Bottom","guten-blocks"),value:"left bottom"},{label:H("Right Top","guten-blocks"),value:"right top"},{label:H("Right Center","guten-blocks"),value:"right center"},{label:H("Right Bottom","guten-blocks"),value:"right bottom"},{label:H("Center Top","guten-blocks"),value:"center top"},{label:H("Center Center","guten-blocks"),value:"center center"},{label:H("Center Bottom","guten-blocks"),value:"center bottom"}],Y=[{label:H("Default","guten-blocks"),value:""},{label:H("Auto","guten-blocks"),value:"auto"},{label:H("Cover","guten-blocks"),value:"cover"},{label:H("Contain","guten-blocks"),value:"contain"}],G=[{label:H("Default","guten-blocks"),value:""},{label:H("No Repeat","guten-blocks"),value:"no-repeat"},{label:H("Repeat","guten-blocks"),value:"repeat"},{label:H("Repeat X","guten-blocks"),value:"repeat-x"},{label:H("Repeat Y","guten-blocks"),value:"repeat-y"}],U=[{label:H("Default","guten-blocks"),value:""},{label:H("Scroll","guten-blocks"),value:"scroll"},{label:H("Fixed","guten-blocks"),value:"fixed"}],W=[{label:H("None","guten-blocks"),value:"none"},{label:H("Lowercase","guten-blocks"),value:"lowercase"},{label:H("Capitalize","guten-blocks"),value:"capitalize"},{label:H("Uppercase","guten-blocks"),value:"uppercase"}],J=[{label:H("Default","guten-blocks"),value:"default"},{label:H("Light","guten-blocks"),value:"300"},{label:H("Normal","guten-blocks"),value:"400"},{label:H("Medium","guten-blocks"),value:"500"},{label:H("Semi Bold","guten-blocks"),value:"600"},{label:H("Bold","guten-blocks"),value:"700"},{label:H("Extra Bold","guten-blocks"),value:"800"},{label:H("Heavy Bold","guten-blocks"),value:"900"}],Q=[{label:H("H1","guten-blocks"),value:"h1"},{label:H("H2","guten-blocks"),value:"h2"},{label:H("H3","guten-blocks"),value:"h3"},{label:H("H4","guten-blocks"),value:"h4"},{label:H("H5","guten-blocks"),value:"h5"},{label:H("H6","guten-blocks"),value:"h6"}],K=(H("None"),H("Solid"),H("Dashed"),H("Dotted"),H("Double"),H("Groove"),H("Inset"),H("Outset"),H("Ridge"),H("Select Effect"),H("Bounce left to right"),H("Bounce right to left"),H("Bounce top to bottom"),H("Bounce bottom to top"),H("Rectangle out"),H("Rectangle in"),H("Shutter in horizontal"),H("Shutter out horizontal"),H("Shutter in vertical"),H("Shutter out vertical"),H("Select Direction"),H("Top to bottom"),H("Bottom to top"),H("Right to left"),H("Left to right"),H("Normal"),H("Top to bottom"),H("Bottom to top"),H("Right to left"),H("Left to right"),H("Zoom in"),H("Text Button"),H("Fill Button"),H("OutLine Button"),H("Icon Button"),H("Fill"),H("Fill Button With Outline"),H("OutLine Button"),H("Icon Button"),H("Position Aware"),H("S"),H("M"),H("L"),H("XL"),H("Default"),H("Bounce left to right"),H("Bounce right to left"),H("Bounce top to bottom"),H("Bounce bottom to top"),H("Rectangle out"),H("Rectangle in"),H("Shutter in horizontal"),H("Shutter out horizontal"),H("Shutter in vertical"),H("Shutter out vertical"),H("Slide down top left"),H("Slide down top right"),H("Slide up bottom left"),H("Slide up bottom right"),H("Swipe left to right"),H("Swipe right to left"),H("Swipe top to bottom"),H("Swipe bottom to top"),H("Default"),H("Spin"),H("Shake Y"),H("Bounce In"),H("Heart Beat"),H("Right to left"),H("Left to Right"),H("Top to bottom"),H("Bottom to top"),[{value:"grid-layout1",icon:j.grid_layout1,label:H("Layout 1")},{value:"grid-layout3",icon:j.grid_layout2,label:H("Layout 2")},{value:"grid-layout4",icon:j.grid_layout3,label:H("Layout 3")},{value:"grid-layout2",icon:j.grid_layout4,label:H("Layout 4"),isPro:1},{value:"grid-layout5",icon:j.grid_layout5,label:H("Layout 5"),isPro:1},{value:"grid-layout5-2",icon:j.grid_layout6,label:H("Layout 6"),isPro:1},{value:"grid-layout6",icon:j.grid_layout7,label:H("Layout 7"),isPro:1},{value:"grid-layout6-2",icon:j.grid_layout8,label:H("Layout 8"),isPro:1},{value:"grid-layout7",icon:j.grid_layout9,label:H("Layout 9"),isPro:1}]),Z=[{value:"list-layout1",icon:j.list_layout1,label:H("Layout 1")},{value:"list-layout2",icon:j.list_layout2,label:H("Layout 2")},{value:"list-layout2-2",icon:j.list_layout3,label:H("Layout 3")},{value:"list-layout3",icon:j.list_layout4,label:H("Layout 4"),isPro:1},{value:"list-layout3-2",icon:j.list_layout5,label:H("Layout 5"),isPro:1},{value:"list-layout4",icon:j.list_layout6,label:H("Layout 6"),isPro:1},{value:"list-layout5",icon:j.list_layout7,label:H("Layout 7"),isPro:1}],X=[{value:"grid_hover-layout1",icon:j.grid_hover1,label:H("Layout 1")},{value:"grid_hover-layout2",icon:j.grid_hover2,label:H("Layout 2")},{value:"grid_hover-layout3",icon:j.grid_hover3,label:H("Layout 3")},{value:"grid_hover-layout4",icon:j.grid_hover4,label:H("Layout 4"),isPro:1},{value:"grid_hover-layout4-2",icon:j.grid_hover5,label:H("Layout 5"),isPro:1},{value:"grid_hover-layout5",icon:j.grid_hover6,label:H("Layout 6"),isPro:1},{value:"grid_hover-layout5-2",icon:j.grid_hover7,label:H("Layout 7"),isPro:1},{value:"grid_hover-layout6",icon:j.grid_hover8,label:H("Layout 8"),isPro:1},{value:"grid_hover-layout6-2",icon:j.grid_hover9,label:H("Layout 9"),isPro:1},{value:"grid_hover-layout7",icon:j.grid_hover10,label:H("Layout 10"),isPro:1},{value:"grid_hover-layout7-2",icon:j.grid_hover11,label:H("Layout 11"),isPro:1},{value:"grid_hover-layout8",icon:j.grid_hover12,label:H("Layout 12"),isPro:1},{value:"grid_hover-layout9",icon:j.grid_hover13,label:H("Layout 13"),isPro:1},{value:"grid_hover-layout9-2",icon:j.grid_hover14,label:H("Layout 14"),isPro:1},{value:"grid_hover-layout10",icon:j.grid_hover15,label:H("Layout 15"),isPro:1},{value:"grid_hover-layout11",icon:j.grid_hover16,label:H("Layout 16"),isPro:1}],ee=[{value:"slider-layout1",icon:j.slider_layout1,label:H("Layout 1")},{value:"slider-layout2",icon:j.slider_layout2,label:H("Layout 2")},{value:"slider-layout3",icon:j.slider_layout3,label:H("Layout 3")},{value:"slider-layout4",icon:j.slider_layout4,label:H("Layout 4")},{value:"slider-layout5",icon:j.slider_layout5,label:H("Layout 5")},{value:"slider-layout6",icon:j.slider_layout6,label:H("Layout 6")},{value:"slider-layout7",icon:j.slider_layout7,label:H("Layout 7")},{value:"slider-layout8",icon:j.slider_layout8,label:H("Layout 8")},{value:"slider-layout9",icon:j.slider_layout9,label:H("Layout 9")},{value:"slider-layout10",icon:j.slider_layout10,label:H("Layout 10")},{value:"slider-layout11",icon:j.slider_layout11,label:H("Layout 11")},{value:"slider-layout12",icon:j.slider_layout12,label:H("Layout 12")},{value:"slider-layout13",icon:j.slider_layout13,label:H("Layout 13")}],te=[{value:0,label:H("Default","the-post-grid")},{value:1,label:H("1 Col","the-post-grid")},{value:2,label:H("2 Col","the-post-grid")},{value:3,label:H("3 Col","the-post-grid")},{value:4,label:H("4 Col","the-post-grid")},{value:5,label:H("5 Col","the-post-grid")},{value:6,label:H("6 Col","the-post-grid")}],ae=[{value:"default",label:H("Default","the-post-grid")},{value:"style1",label:H("Style 1","the-post-grid")},{value:"style2",label:H("Style 2","the-post-grid")},{value:"style3",label:H("Style 3","the-post-grid")}],re=[{value:"page_title",label:H("Page Title","the-post-grid")},{value:"custom_title",label:H("Custom Title","the-post-grid")}],oe=[{value:"default",label:H("Default","the-post-grid")},{value:"one-line",label:H("Show in 1 line","the-post-grid")},{value:"two-line",label:H("Show in 2 lines","the-post-grid")},{value:"three-line",label:H("Show in 3 lines","the-post-grid")},{value:"custom",label:H("Custom","the-post-grid")}],ne=[{value:"default",label:H("Default","the-post-grid")}];rttpgParams.hasPro&&(ne.push({value:"above_image",label:H("Above Image","the-post-grid")}),ne.push({value:"below_image",label:H("Below Image","the-post-grid")}));const le=ne,ie=[{value:"date",label:H("Date","the-post-grid")},{value:"ID",label:H("Order by post ID","the-post-grid")},{value:"author",label:H("Author","the-post-grid")},{value:"title",label:H("Title","the-post-grid")},{value:"modified",label:H("Last modified date","the-post-grid")},{value:"parent",label:H("Post parent ID","the-post-grid")},{value:"comment_count",label:H("Number of comments","the-post-grid")},{value:"menu_order",label:H("Menu order","the-post-grid")}];rttpgParams.hasPro&&ie.push({value:"rand",label:H("Random order","the-post-grid")});const se=ie,ce=[{value:"pagination",label:H("Default Pagination","the-post-grid")}];rttpgParams.hasPro&&(ce.push({value:"pagination_ajax",label:H("Ajax Pagination ( Only for Grid )","the-post-grid")}),ce.push({value:"load_more",label:H("Load More - On Click","the-post-grid")}),ce.push({value:"load_on_scroll",label:H("Load On Scroll","the-post-grid")}));const ue=ce,fe=[{value:"default",label:H("Link to details page","the-post-grid")}];rttpgParams.hasPro&&(fe.push({value:"popup",label:H("Single Popup","the-post-grid")}),fe.push({value:"multi_popup",label:H("Multi Popup","the-post-grid")}));const de=fe,pe=[{value:"default",label:H("Default","the-post-grid")}];rttpgParams.hasPro&&(pe.push({value:"above_title",label:H("Above Title","the-post-grid")}),pe.push({value:"below_title",label:H("Below Title","the-post-grid")}),pe.push({value:"above_excerpt",label:H("Above excerpt","the-post-grid")}),pe.push({value:"below_excerpt",label:H("Below excerpt","the-post-grid")}));const me=pe,ge=[{value:"tpg-even",label:H("Grid","the-post-grid")},{value:"tpg-full-height",label:H("Grid Equal Height","the-post-grid")}];rttpgParams.hasPro&&ge.push({value:"masonry",label:H("Masonry","the-post-grid")});const he=ge,be=[{value:"character",label:H("Character","the-post-grid")},{value:"word",label:H("Word","the-post-grid")},{value:"full",label:H("Full Content","the-post-grid")}],ve=[{value:"DESC",label:H("DESC","the-post-grid")},{value:"ASC",label:H("ASC","the-post-grid")}],_e=[];let ye=rttpgParams.post_type;for(let e in ye)_e.push({value:e,label:H(ye[e],"the-post-grid")});const we=_e,Ee=[{value:"",label:H("Choose Author","the-post-grid")}];let Ce=rttpgParams.get_users;for(let e in Ce)Ee.push({value:e,label:H(Ce[e],"the-post-grid")});const xe=Ee,ke=[{value:"OR",label:H("OR","the-post-grid")},{value:"AND",label:H("AND","the-post-grid")}],Ne=e=>{let t=[];for(let a in e)t.push({value:a,label:H(e[a],"the-post-grid")});return t},Se=[{value:"always",label:H("Show Always","the-post-grid")},{value:"fadein-on-hover",label:H("FadeIn on hover","the-post-grid")},{value:"fadeout-on-hover",label:H("FadeOut on hover","the-post-grid")},{value:"slidein-on-hover",label:H("SlideIn on hover","the-post-grid")},{value:"slideout-on-hover",label:H("SlideOut on hover","the-post-grid")},{value:"zoomin-on-hover",label:H("ZoomIn on hover","the-post-grid")},{value:"zoomout-on-hover",label:H("ZoomOut on hover","the-post-grid")},{value:"zoominall-on-hover",label:H("ZoomIn Content on hover","the-post-grid")},{value:"zoomoutall-on-hover",label:H("ZoomOut Content on hover","the-post-grid")}],De=[{value:"always",label:H("Show Always","the-post-grid")},{value:"fadein-on-hover",label:H("FadeIn on hover","the-post-grid")},{value:"fadeout-on-hover",label:H("FadeOut on hover","the-post-grid")},{value:"slidein-on-hover",label:H("SlideIn on hover","the-post-grid")},{value:"slideout-on-hover",label:H("SlideOut on hover","the-post-grid")},{value:"zoomin-on-hover",label:H("ZoomIn on hover","the-post-grid")},{value:"zoomout-on-hover",label:H("ZoomOut on hover","the-post-grid")},{value:"zoominall-on-hover",label:H("ZoomIn Content on hover","the-post-grid")},{value:"zoomoutall-on-hover",label:H("ZoomOut Content on hover","the-post-grid")},{value:"flipin-on-hover",label:H("FlipIn on hover","the-post-grid")},{value:"flipout-on-hover",label:H("FlipOut on hover","the-post-grid")}],Pe=[{value:"author",label:"Author"},{value:"date",label:"Date"},{value:"category",label:"Category"},{value:"tags",label:"Tags"},{value:"comment_count",label:"Comment Count"},{value:"post_count",label:"Post View Count"}],Oe=rttpgParams.hasPro?"rttpg-has-pro":"rttpg-is-pro",Me=[{value:"default",label:H("Default","the-post-grid")},{value:"img_zoom_in",label:H("Zoom In","the-post-grid")},{value:"img_zoom_out",label:H("Zoom Out","the-post-grid")},{value:"img_no_effect",label:H("None","the-post-grid")}];rttpgParams.hasPro&&(Me.splice(3),Me.push({value:"slide_to_right",label:H("Slide to Right","the-post-grid")}),Me.push({value:"slide_to_left",label:H("Slide to Left","the-post-grid")}),Me.push({value:"img_no_effect",label:H("None","the-post-grid")}));const Te=Me,Ie=[{name:"Color 1",color:"#72aee6"},{name:"Color 2",color:"#0074FF"},{name:"Color 3",color:"#15D38E"},{name:"Color 4",color:"#00D4FF"},{name:"Color 5",color:"#FF2D00"},{name:"Color 6",color:"#AE2D00"},{name:"Color 7",color:"#000000"},{name:"Color 8",color:"#AAAAAA"},{name:"Color 9",color:"#FFFFFF"}];var Le=window.wp.components;const{__:Ae}=wp.i18n;var Fe=function(){return"rttpg-has-pro"===Oe?"":(0,e.createElement)(Le.PanelBody,{className:"rttpg-go-to-premium-panel",title:Ae("Go Premium for More Features","the-post-grid"),initialOpen:!0},(0,e.createElement)("div",{className:"rttpg-get-pro-message-wrapper"},(0,e.createElement)("h4",null,Ae("Unlock more possibilities","the-post-grid")),(0,e.createElement)("div",{className:"rttpg-pro-message"},(0,e.createElement)("span",{className:"pro-feature"}," Get the ",(0,e.createElement)("a",{href:"//www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/",target:"_blank"},"Pro version")," for more stunning layouts and customization options.")),(0,e.createElement)("a",{className:"rttpg-button-go-pro",href:"//www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/",target:"_blank"},"Get Pro")))},Be=a(196),je=a.n(Be);const{__:He}=wp.i18n;var $e=function(t){const{label:a,value:r,onChange:o,className:n,changeQuery:l}=t,i=(e,t)=>{const a=JSON.parse(JSON.stringify(r));a[e]=t,o(a)};return(0,e.createElement)("div",{className:`rttpg-column-group ${n}`},a&&(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},a)),(0,e.createElement)("div",{className:"rttpg-column-group-inner"},(0,e.createElement)(Le.SelectControl,{label:He("Desktop","the-post-grid"),className:"rttpg-control-field",value:r.lg||"",options:te,onChange:e=>{i("lg",e),l()}}),(0,e.createElement)(Le.SelectControl,{label:He("Tablet","the-post-grid"),className:"rttpg-control-field",value:r.md||"",options:te,onChange:e=>i("md",e)}),(0,e.createElement)(Le.SelectControl,{label:He("Mobile","the-post-grid"),className:"rttpg-control-field",value:r.sm||"",options:te,onChange:e=>i("sm",e)})))};function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Re.apply(this,arguments)}const{__:Ve}=wp.i18n;var ze=t=>{const[a,r]=(0,Be.useState)(!1),[o,n]=(0,Be.useState)((()=>t.device||"lg")),l=(0,Be.useRef)(),i=(0,Be.useCallback)((()=>r(!1)),[]);(0,Be.useEffect)((()=>{o&&(window.rttpgDevice=o)}),[]);const s=e=>{window.rttpgDevice=e,n(e),t.onChange(e),r((()=>!a))};return c=l,u=i,(0,Be.useEffect)((()=>{let e=!1,t=!1;const a=a=>{!e&&t&&c.current&&!c.current.contains(a.target)&&u(a)},r=a=>{t=c.current,e=c.current&&c.current.contains(a.target)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),document.addEventListener("click",a),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r),document.removeEventListener("click",a)}}),[c,u]),(0,e.createElement)("div",{ref:l,className:`rttpg-device-switchers active-${o}${a?" rttpg-device-switchers-open":""} `,onClick:()=>r((()=>!a))},(0,e.createElement)("div",{className:"rttpg-device-switchers-wrap"},(0,e.createElement)("a",{className:"rttpg-device-switcher rttpg-device-switcher-desktop"+("lg"===o?" active":""),onClick:()=>s("lg"),"data-tooltip":Ve("Desktop")},(0,e.createElement)("i",{className:"fas fa-desktop"})),(0,e.createElement)("a",{className:"rttpg-device-switcher rttpg-device-switcher-laptop"+("md"===o?" active":""),onClick:()=>s("md"),"data-tooltip":Ve("Tablet")},(0,e.createElement)("i",{className:"fas fa-tablet-alt"})),(0,e.createElement)("a",{className:"rttpg-device-switcher rttpg-device-switcher-tablet"+("sm"===o?" active":""),onClick:()=>s("sm"),"data-tooltip":Ve("Mobile")},(0,e.createElement)("i",{className:"fas fa-mobile-alt"}))));var c,u};const{__:qe}=wp.i18n,{useState:Ye}=wp.element,{RangeControl:Ge,Button:Ue}=wp.components;var We=function(t){const{label:a,value:r,onChange:o,responsive:n,min:l,max:i,units:s,step:c,defultValue:u={}}=t,[f,d]=Ye((()=>window.rttpgDevice||"lg")),[p,m]=Ye("px"),g={min:l,max:i,step:c},h=u;return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-range-wrap"},(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("div",{className:"rt-left-part"},a&&(0,e.createElement)("span",{className:"rttpg-label"},a),n&&(0,e.createElement)(ze,{device:f,onChange:e=>{d(e);const t=JSON.parse(JSON.stringify(r));t[e]||(t[e]="",!1!==s&&(t.unit=t.unit||p)),o(t)}})),s&&(0,e.createElement)("div",{className:"rt-right-part"},(0,e.createElement)("div",{className:"rttpg-units-choices"},(s&&Array.isArray(s)?s:["px","em","%"]).map((t=>(0,e.createElement)("label",{className:(null==r?void 0:r.unit)!==t&&(null!=r&&r.unit||t!==p)?"":"active",onClick:()=>(e=>{const t=JSON.parse(JSON.stringify(r));!1!==s&&(t.unit=e),o(t),m(e)})(t)},t)))))),(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)(Ge,Re({className:"rttpg-control-field",value:r[f],onChange:e=>{(e=>{const t=JSON.parse(JSON.stringify(r));t[f]=e,!1!==s&&(t.unit=t.unit||p),o(t)})(e)}},g)),(r[f]||0!==r[f])&&(0,e.createElement)(Ue,{isSmall:!0,className:"rttpg-undo-btn",icon:"image-rotate",onClick:()=>o(h)})))};const{__:Je}=wp.i18n,{useState:Qe}=wp.element,{Tooltip:Ke}=wp.components;var Ze=t=>{const{value:a,responsive:r,onChange:o,label:n,content:l,options:i}=t,[s,c]=Qe((()=>window.rttpgDevice||"lg")),u=()=>a?r?a[s]:a:"",[f,d]=Qe({current:u()}),p=e=>{if(""==e)return;const t=r?Object.assign({},a,{[s]:e}):e;o(t),d({current:t})},m=i&&Array.isArray(i)?i:["left","center","right","justify"];return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-alignment-wrap"},(n||r)&&(0,e.createElement)("div",{className:"rttpg-cf-head"},n&&(0,e.createElement)("span",{className:"rttpg-label"},n),r&&(0,e.createElement)(ze,{device:s,onChange:e=>{c(e);const t=JSON.parse(JSON.stringify(a));t[e]||(t[e]=""),o(t)}})),(0,e.createElement)("div",{className:"rttpg-cf-body rttpg-btn-group"},m.map(((t,a)=>l?(0,e.createElement)("button",{className:(u()==t.value?"active":"")+" rttpg-button",key:a,onClick:()=>p(u()==t.value?"":t.value)},(0,e.createElement)(Ke,{text:Je(t.label,"the-post-grid")},(0,e.createElement)("span",null,Je(t.label,"the-post-grid")))):(0,e.createElement)("button",{className:(u()==t?"active":"")+" rttpg-button",key:a,onClick:()=>p(u()==t?"":t)},("left"==t||"flex-start"===t)&&(0,e.createElement)(Ke,{text:Je("Left")},(0,e.createElement)("i",{className:"fas fa-align-left"})),"center"==t&&(0,e.createElement)(Ke,{text:Je("Middle")},(0,e.createElement)("i",{className:"fas fa-align-center"})),("right"==t||"flex-end"===t)&&(0,e.createElement)(Ke,{text:Je("Right")},(0,e.createElement)("i",{class:"fas fa-align-right"})),"justify"==t&&(0,e.createElement)(Ke,{text:Je("Right")},(0,e.createElement)("i",{class:"fas fa-align-justify"})))))))},Xe=window.ReactDOM,et=a.n(Xe),tt=a(697),at=a.n(tt),rt=function(){return(rt=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ot={success:function(e){return je().createElement("svg",rt({viewBox:"0 0 426.667 426.667",width:18,height:18},e),je().createElement("path",{d:"M213.333 0C95.518 0 0 95.514 0 213.333s95.518 213.333 213.333 213.333c117.828 0 213.333-95.514 213.333-213.333S331.157 0 213.333 0zm-39.134 322.918l-93.935-93.931 31.309-31.309 62.626 62.622 140.894-140.898 31.309 31.309-172.203 172.207z",fill:"#6ac259"}))},warn:function(e){return je().createElement("svg",rt({viewBox:"0 0 310.285 310.285",width:18,height:18},e),je().createElement("path",{d:"M264.845 45.441C235.542 16.139 196.583 0 155.142 0 113.702 0 74.743 16.139 45.44 45.441 16.138 74.743 0 113.703 0 155.144c0 41.439 16.138 80.399 45.44 109.701 29.303 29.303 68.262 45.44 109.702 45.44s80.399-16.138 109.702-45.44c29.303-29.302 45.44-68.262 45.44-109.701.001-41.441-16.137-80.401-45.439-109.703zm-132.673 3.895a12.587 12.587 0 0 1 9.119-3.873h28.04c3.482 0 6.72 1.403 9.114 3.888 2.395 2.485 3.643 5.804 3.514 9.284l-4.634 104.895c-.263 7.102-6.26 12.933-13.368 12.933H146.33c-7.112 0-13.099-5.839-13.345-12.945L128.64 58.594c-.121-3.48 1.133-6.773 3.532-9.258zm23.306 219.444c-16.266 0-28.532-12.844-28.532-29.876 0-17.223 12.122-30.211 28.196-30.211 16.602 0 28.196 12.423 28.196 30.211.001 17.591-11.456 29.876-27.86 29.876z",fill:"#FFDA44"}))},loading:function(e){return je().createElement("div",rt({className:"ct-icon-loading"},e))},info:function(e){return je().createElement("svg",rt({viewBox:"0 0 23.625 23.625",width:18,height:18},e),je().createElement("path",{d:"M11.812 0C5.289 0 0 5.289 0 11.812s5.289 11.813 11.812 11.813 11.813-5.29 11.813-11.813S18.335 0 11.812 0zm2.459 18.307c-.608.24-1.092.422-1.455.548a3.838 3.838 0 0 1-1.262.189c-.736 0-1.309-.18-1.717-.539s-.611-.814-.611-1.367c0-.215.015-.435.045-.659a8.23 8.23 0 0 1 .147-.759l.761-2.688c.067-.258.125-.503.171-.731.046-.23.068-.441.068-.633 0-.342-.071-.582-.212-.717-.143-.135-.412-.201-.813-.201-.196 0-.398.029-.605.09-.205.063-.383.12-.529.176l.201-.828c.498-.203.975-.377 1.43-.521a4.225 4.225 0 0 1 1.29-.218c.731 0 1.295.178 1.692.53.395.353.594.812.594 1.376 0 .117-.014.323-.041.617a4.129 4.129 0 0 1-.152.811l-.757 2.68a7.582 7.582 0 0 0-.167.736 3.892 3.892 0 0 0-.073.626c0 .356.079.599.239.728.158.129.435.194.827.194.185 0 .392-.033.626-.097.232-.064.4-.121.506-.17l-.203.827zm-.134-10.878a1.807 1.807 0 0 1-1.275.492c-.496 0-.924-.164-1.28-.492a1.57 1.57 0 0 1-.533-1.193c0-.465.18-.865.533-1.196a1.812 1.812 0 0 1 1.28-.497c.497 0 .923.165 1.275.497.353.331.53.731.53 1.196 0 .467-.177.865-.53 1.193z",fill:"#006DF0"}))},error:function(e){return je().createElement("svg",rt({viewBox:"0 0 51.976 51.976",width:18,height:18},e),je().createElement("path",{d:"M44.373 7.603c-10.137-10.137-26.632-10.138-36.77 0-10.138 10.138-10.137 26.632 0 36.77s26.632 10.138 36.77 0c10.137-10.138 10.137-26.633 0-36.77zm-8.132 28.638a2 2 0 0 1-2.828 0l-7.425-7.425-7.778 7.778a2 2 0 1 1-2.828-2.828l7.778-7.778-7.425-7.425a2 2 0 1 1 2.828-2.828l7.425 7.425 7.071-7.071a2 2 0 1 1 2.828 2.828l-7.071 7.071 7.425 7.425a2 2 0 0 1 0 2.828z",fill:"#D80027"}))}},nt={success:"#6EC05F",info:"#1271EC",warn:"#FED953",error:"#D60A2E",loading:"#0088ff"},lt=function(e){var t,a,r,o,n="margin"+((e.position||"top-center").includes("bottom")?"Bottom":"Top"),l=["ct-toast",e.onClick?" ct-cursor-pointer":"","ct-toast-"+e.type].join(" "),i=((null===(a=e.bar)||void 0===a?void 0:a.size)||"3px")+" "+((null===(r=e.bar)||void 0===r?void 0:r.style)||"solid")+" "+((null===(o=e.bar)||void 0===o?void 0:o.color)||nt[e.type]),s=ot[e.type],c=(0,Be.useState)(((t={opacity:0})[n]=-15,t)),u=c[0],f=c[1],d=rt({paddingLeft:e.heading?25:void 0,minHeight:e.heading?50:void 0,borderLeft:i},u),p=function(){var t;f(((t={opacity:0})[n]="-15px",t)),setTimeout((function(){e.onHide(e.id,e.position)}),300)};(0,Be.useEffect)((function(){var t,a=setTimeout((function(){var e;f(((e={opacity:1})[n]="15px",e))}),50);return 0!==e.hideAfter&&(t=setTimeout((function(){p()}),1e3*e.hideAfter)),function(){clearTimeout(a),t&&clearTimeout(t)}}),[]),(0,Be.useEffect)((function(){e.show||p()}),[e.show]);var m={tabIndex:0,onClick:e.onClick,onKeyPress:function(t){13===t.keyCode&&e.onClick(t)}};return je().createElement("div",rt({className:l,role:e.role?e.role:"status",style:d},e.onClick?m:{}),e.renderIcon?e.renderIcon():je().createElement(s,null),je().createElement("div",{className:e.heading?"ct-text-group-heading":"ct-text-group"},e.heading&&je().createElement("h4",{className:"ct-heading"},e.heading),je().createElement("div",{className:"ct-text"},e.text)))};lt.propTypes={type:tt.string.isRequired,text:(0,tt.oneOfType)([tt.string,tt.node]).isRequired,show:tt.bool,onHide:tt.func,id:(0,tt.oneOfType)([tt.string,tt.number]),hideAfter:tt.number,heading:tt.string,position:tt.string,renderIcon:tt.func,bar:(0,tt.shape)({}),onClick:tt.func,role:tt.string},lt.defaultProps={id:void 0,show:!0,onHide:void 0,hideAfter:3,heading:void 0,position:"top-center",renderIcon:void 0,bar:{},onClick:void 0,role:"status"};var it=function(e){return e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},st={topLeft:[],topCenter:[],topRight:[],bottomLeft:[],bottomCenter:[],bottomRight:[]},ct=function(e){var t=e.toast,a=e.hiddenID,r=(0,Be.useState)(st),o=r[0],n=r[1];(0,Be.useEffect)((function(){t&&n((function(e){var a,r=it(t.position||"top-center");return rt(rt({},e),((a={})[r]=function(){for(var e=0,t=0,a=arguments.length;t<a;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<a;t++)for(var n=arguments[t],l=0,i=n.length;l<i;l++,o++)r[o]=n[l];return r}(e[r],[t]),a))}))}),[t]);var l=function(e,t){n((function(a){var r,o=it(t||"top-center");return rt(rt({},a),((r={})[o]=a[o].filter((function(t){return t.id!==e})),r))}))},i=["Left","Center","Right"];return je().createElement(je().Fragment,null,["top","bottom"].map((function(e){return je().createElement("div",{key:"row_"+e,className:"ct-row"},i.map((function(t){var r=""+e+t,n=["ct-group","bottom"===e?"ct-flex-bottom":""].join(" ");return je().createElement("div",{key:r,className:n},o[r].map((function(e){return je().createElement(lt,rt({key:r+"_"+e.id},e,{id:e.id,text:e.text,type:e.type,onClick:e.onClick,hideAfter:e.hideAfter,show:a!==e.id,onHide:l}))})))})))})))};ct.propTypes={toast:(0,tt.shape)({}),hiddenID:tt.number},ct.defaultProps={toast:void 0,hiddenID:void 0},function(e,t){void 0===t&&(t={});var a=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===a&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("#ct-container {\n\tposition: fixed;\n\twidth: 100%;\n\theight: 100vh;\n\ttop: 0px;\n\tleft: 0px;\n\tz-index: 2000;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tpointer-events: none;\n}\n\n.ct-row {\n\tdisplay: flex;\n\tjustify-content: space-between;\n}\n\n.ct-group {\n\tflex: 1;\n\tmargin: 10px 20px;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n}\n\n.ct-group:first-child {\n\talign-items: flex-start;\n}\n\n.ct-group:last-child {\n\talign-items: flex-end;\n}\n\n.ct-flex-bottom {\n\tjustify-content: flex-end;\n}\n\n.ct-toast {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tpadding: 12px 20px;\n\tbackground-color: #fff;\n\tbox-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n\tcolor: #000;\n\tborder-radius: 4px;\n\tmargin: 0px;\n\topacity: 1;\n\ttransition: 0.3s all ease-in-out;\n\tmin-height: 45px;\n\tpointer-events: all;\n}\n\n.ct-toast:focus {\n\toutline: none;\n}\n\n.ct-toast svg {\n\tmin-width: 18px;\n}\n\n.ct-cursor-pointer {\n\tcursor: pointer;\n}\n\n.ct-icon-loading {\n\tdisplay: inline-block;\n\twidth: 20px;\n\theight: 20px;\n}\n\n.ct-icon-loading:after {\n\tcontent: ' ';\n\tdisplay: block;\n\twidth: 14px;\n\theight: 14px;\n\tmargin: 1px;\n\tborder-radius: 50%;\n\tborder: 2px solid #0088ff;\n\tborder-color: #0088ff transparent #0088ff transparent;\n\tanimation: ct-icon-loading 1.2s linear infinite;\n}\n\n@keyframes ct-icon-loading {\n\t0% {\n\t\ttransform: rotate(0deg);\n\t}\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n}\n\n.ct-text-group {\n\tmargin-left: 15px;\n}\n\n.ct-text-group-heading {\n\tmargin-left: 25px;\n}\n\n.ct-heading {\n\tfont-size: 18px;\n\tmargin: 0px;\n\tmargin-bottom: 5px;\n}\n\n.ct-text {\n\tfont-size: 14px;\n}\n\n@media (max-width: 768px) {\n\t.ct-row {\n\t\tjustify-content: flex-start;\n\t\tflex-direction: column;\n\t\tmargin: 7px 0px;\n\t}\n\n\t.ct-group {\n\t\tflex: none;\n\t\tmargin: 0px;\n\t}\n\n\t.ct-toast {\n\t\tmargin: 8px 15px;\n\t\twidth: initial;\n\t}\n}\n");var ut=0,ft=function(e,t){var a,r,o=document.getElementById((null===(a=t)||void 0===a?void 0:a.toastContainerID)||"ct-container");o||((o=document.createElement("div")).id="ct-container",document.body.appendChild(o)),ut+=1;var n=1e3*(void 0===(null===(r=t)||void 0===r?void 0:r.hideAfter)?3:t.hideAfter),l=rt({id:ut,text:e},t);et().render(je().createElement(ct,{toast:l}),o);var i=new Promise((function(e){setTimeout((function(){e()}),n)}));return i.hide=function(){et().render(je().createElement(ct,{hiddenID:l.id}),o)},i};ft.success=function(e,t){return ft(e,rt(rt({},t),{type:"success"}))},ft.warn=function(e,t){return ft(e,rt(rt({},t),{type:"warn"}))},ft.info=function(e,t){return ft(e,rt(rt({},t),{type:"info"}))},ft.error=function(e,t){return ft(e,rt(rt({},t),{type:"error"}))},ft.loading=function(e,t){return ft(e,rt(rt({},t),{type:"loading"}))};var dt=ft;const{__:pt}=wp.i18n;var mt=function(t){const{label:a,value:r,options:o,columns:n=3,onChange:l}=t;return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-styles-wrap"},a&&(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},a)),(0,e.createElement)("div",{className:`rttpg-style-list rttpg-style-columns-${n}`},o.map(((t,a)=>(0,e.createElement)("div",{role:"button",tabindex:a,"aria-label":t.label?t.label:"",onClick:()=>{!rttpgParams.hasPro&&t.isPro?dt.warn('Please install "The Post Grid Pro" for this layout!',{position:"top-right"}):l(t.value)},className:`${r==t.value?"rttpg-active":""} ${!rttpgParams.hasPro&&t.isPro?"is-pro":""}`},t.icon&&(0,e.createElement)("span",{className:"rttpg-layout rttpg-style-icon"},t.icon),t.label&&(0,e.createElement)("span",{className:"rttpg-label"},t.label),!rttpgParams.hasPro&&t.isPro&&(0,e.createElement)("span",{className:"pro-lable"},pt("Pro","the-post-grid")))))))};const{__:gt}=wp.i18n;var ht=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{prefix:n,grid_column:l,grid_layout_style:i,ignore_sticky_posts:s,full_wrapper_align:c,list_layout_alignment:u,slider_column:f,middle_border:d}=a;let p=n+"_layout",m=K;return"list"===n?m=Z:"grid_hover"===n?m=X:"slider"===n&&(m=ee),(0,e.createElement)(Le.PanelBody,{title:gt("Layout","the-post-grid"),initialOpen:!0},(0,e.createElement)(mt,{value:a[p],onChange:e=>t.changeLayout(e),options:m}),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},gt("Layout Options:","the-post-grid")),["grid-layout6","grid-layout6-2"].includes(a[p])&&(0,e.createElement)(Le.SelectControl,{label:gt("Middle Border?","the-post-grid"),className:"rttpg-control-field label-inline",value:d,options:[{value:"yes",label:gt("Yes","the-post-grid")},{value:"no",label:gt("No","the-post-grid")}],onChange:e=>{r({middle_border:e})}}),"slider"!==n&&(0,e.createElement)(e.Fragment,null,!["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","list-layout2","list-layout2-2","list-layout3","list-layout3-2","list-layout4","grid_hover-layout5","grid_hover-layout5-2","grid_hover-layout6","grid_hover-layout6-2","grid_hover-layout7","grid_hover-layout7-2","grid_hover-layout8","grid_hover-layout9","grid_hover-layout9-2"].includes(a[p])&&(0,e.createElement)(We,{label:gt("Grid Column","the-post-grid"),responsive:!0,value:l,min:1,max:6,step:1,units:!1,onChange:e=>{r({grid_column:e})}}),(0,e.createElement)("small",{className:"rttpg-help"},gt("NB. By default grid-colum comes from layout","the-post-grid"))),"slider"===n&&!["slider-layout10","slider-layout11"].includes(a[p])&&(0,e.createElement)($e,{label:gt("Choose Slider Column","the-post-grid"),className:"rttpg-control-field",value:f,onChange:e=>{r({slider_column:e})},changeQuery:o}),!["grid-layout2","grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","grid-layout7","grid-layout7-2"].includes(a[p])&&"grid"===n&&(0,e.createElement)(Le.SelectControl,{label:gt("Layout Style","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:i,options:he,onChange:e=>{r({grid_layout_style:e})}}),"masonry"===i&&(0,e.createElement)("small",{className:"rttpg-help"},gt("NB. Masonry will work only the front-end","the-post-grid")),"rttpg-is-pro"===Oe&&(0,e.createElement)("p",{className:"rttpg-help"},gt("NB. Please upgrade to pro for masonry layout","the-post-grid")),"tpg-full-height"===i&&(0,e.createElement)("small",{className:"rttpg-help"},gt("NB. Then Equal height will appear if you use card border ","the-post-grid")),"list"===n&&["list-layout1","list-layout5"].includes(a[p])&&(0,e.createElement)(Le.SelectControl,{label:gt("Vertical Alignment","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:u,options:[{value:"",label:gt("Default","the-post-grid")},{value:"flex-start",label:gt("Start","the-post-grid")},{value:"center",label:gt("Center","the-post-grid")},{value:"flex-end",label:gt("End","the-post-grid")}],onChange:e=>{r({list_layout_alignment:e})}}),!(["grid-layout7","slider-layout4"].includes(a[p])&&"list"===n)&&(0,e.createElement)(Ze,{label:gt("Text Align","the-post-grid"),value:c,responsive:!0,options:["left","center","right"],onChange:e=>r({full_wrapper_align:e})}))},bt=function(){function e(e){var t=this;this._insertTag=function(e){var a;a=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,a),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),vt=Math.abs,_t=String.fromCharCode,yt=Object.assign;function wt(e){return e.trim()}function Et(e,t,a){return e.replace(t,a)}function Ct(e,t){return e.indexOf(t)}function xt(e,t){return 0|e.charCodeAt(t)}function kt(e,t,a){return e.slice(t,a)}function Nt(e){return e.length}function St(e){return e.length}function Dt(e,t){return t.push(e),e}var Pt=1,Ot=1,Mt=0,Tt=0,It=0,Lt="";function At(e,t,a,r,o,n,l){return{value:e,root:t,parent:a,type:r,props:o,children:n,line:Pt,column:Ot,length:l,return:""}}function Ft(e,t){return yt(At("",null,null,"",null,null,0),e,{length:-e.length},t)}function Bt(){return It=Tt>0?xt(Lt,--Tt):0,Ot--,10===It&&(Ot=1,Pt--),It}function jt(){return It=Tt<Mt?xt(Lt,Tt++):0,Ot++,10===It&&(Ot=1,Pt++),It}function Ht(){return xt(Lt,Tt)}function $t(){return Tt}function Rt(e,t){return kt(Lt,e,t)}function Vt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zt(e){return Pt=Ot=1,Mt=Nt(Lt=e),Tt=0,[]}function qt(e){return Lt="",e}function Yt(e){return wt(Rt(Tt-1,Wt(91===e?e+2:40===e?e+1:e)))}function Gt(e){for(;(It=Ht())&&It<33;)jt();return Vt(e)>2||Vt(It)>3?"":" "}function Ut(e,t){for(;--t&&jt()&&!(It<48||It>102||It>57&&It<65||It>70&&It<97););return Rt(e,$t()+(t<6&&32==Ht()&&32==jt()))}function Wt(e){for(;jt();)switch(It){case e:return Tt;case 34:case 39:34!==e&&39!==e&&Wt(It);break;case 40:41===e&&Wt(e);break;case 92:jt()}return Tt}function Jt(e,t){for(;jt()&&e+It!==57&&(e+It!==84||47!==Ht()););return"/*"+Rt(t,Tt-1)+"*"+_t(47===e?e:jt())}function Qt(e){for(;!Vt(Ht());)jt();return Rt(e,Tt)}var Kt="-ms-",Zt="-moz-",Xt="-webkit-",ea="comm",ta="rule",aa="decl",ra="@keyframes";function oa(e,t){for(var a="",r=St(e),o=0;o<r;o++)a+=t(e[o],o,e,t)||"";return a}function na(e,t,a,r){switch(e.type){case"@import":case aa:return e.return=e.return||e.value;case ea:return"";case ra:return e.return=e.value+"{"+oa(e.children,r)+"}";case ta:e.value=e.props.join(",")}return Nt(a=oa(e.children,r))?e.return=e.value+"{"+a+"}":""}function la(e,t){switch(function(e,t){return(((t<<2^xt(e,0))<<2^xt(e,1))<<2^xt(e,2))<<2^xt(e,3)}(e,t)){case 5103:return Xt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Xt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xt+e+Zt+e+Kt+e+e;case 6828:case 4268:return Xt+e+Kt+e+e;case 6165:return Xt+e+Kt+"flex-"+e+e;case 5187:return Xt+e+Et(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Xt+e+Kt+"flex-item-"+Et(e,/flex-|-self/,"")+e;case 4675:return Xt+e+Kt+"flex-line-pack"+Et(e,/align-content|flex-|-self/,"")+e;case 5548:return Xt+e+Kt+Et(e,"shrink","negative")+e;case 5292:return Xt+e+Kt+Et(e,"basis","preferred-size")+e;case 6060:return Xt+"box-"+Et(e,"-grow","")+Xt+e+Kt+Et(e,"grow","positive")+e;case 4554:return Xt+Et(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Et(Et(Et(e,/(zoom-|grab)/,Xt+"$1"),/(image-set)/,Xt+"$1"),e,"")+e;case 5495:case 3959:return Et(e,/(image-set\([^]*)/,Xt+"$1$`$1");case 4968:return Et(Et(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xt+e+e;case 4095:case 3583:case 4068:case 2532:return Et(e,/(.+)-inline(.+)/,Xt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Nt(e)-1-t>6)switch(xt(e,t+1)){case 109:if(45!==xt(e,t+4))break;case 102:return Et(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+Zt+(108==xt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ct(e,"stretch")?la(Et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==xt(e,t+1))break;case 6444:switch(xt(e,Nt(e)-3-(~Ct(e,"!important")&&10))){case 107:return Et(e,":",":"+Xt)+e;case 101:return Et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xt+(45===xt(e,14)?"inline-":"")+"box$3$1"+Xt+"$2$3$1"+Kt+"$2box$3")+e}break;case 5936:switch(xt(e,t+11)){case 114:return Xt+e+Kt+Et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xt+e+Kt+Et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xt+e+Kt+Et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xt+e+Kt+e+e}return e}function ia(e){return qt(sa("",null,null,null,[""],e=zt(e),0,[0],e))}function sa(e,t,a,r,o,n,l,i,s){for(var c=0,u=0,f=l,d=0,p=0,m=0,g=1,h=1,b=1,v=0,_="",y=o,w=n,E=r,C=_;h;)switch(m=v,v=jt()){case 40:if(108!=m&&58==C.charCodeAt(f-1)){-1!=Ct(C+=Et(Yt(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=Yt(v);break;case 9:case 10:case 13:case 32:C+=Gt(m);break;case 92:C+=Ut($t()-1,7);continue;case 47:switch(Ht()){case 42:case 47:Dt(ua(Jt(jt(),$t()),t,a),s);break;default:C+="/"}break;case 123*g:i[c++]=Nt(C)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+u:p>0&&Nt(C)-f&&Dt(p>32?fa(C+";",r,a,f-1):fa(Et(C," ","")+";",r,a,f-2),s);break;case 59:C+=";";default:if(Dt(E=ca(C,t,a,c,u,o,i,_,y=[],w=[],f),n),123===v)if(0===u)sa(C,t,E,E,y,n,f,i,w);else switch(d){case 100:case 109:case 115:sa(e,E,E,r&&Dt(ca(e,E,E,0,0,o,i,_,o,y=[],f),w),o,w,f,i,r?y:w);break;default:sa(C,E,E,E,[""],w,0,i,w)}}c=u=p=0,g=b=1,_=C="",f=l;break;case 58:f=1+Nt(C),p=m;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Bt())continue;switch(C+=_t(v),v*g){case 38:b=u>0?1:(C+="\f",-1);break;case 44:i[c++]=(Nt(C)-1)*b,b=1;break;case 64:45===Ht()&&(C+=Yt(jt())),d=Ht(),u=f=Nt(_=C+=Qt($t())),v++;break;case 45:45===m&&2==Nt(C)&&(g=0)}}return n}function ca(e,t,a,r,o,n,l,i,s,c,u){for(var f=o-1,d=0===o?n:[""],p=St(d),m=0,g=0,h=0;m<r;++m)for(var b=0,v=kt(e,f+1,f=vt(g=l[m])),_=e;b<p;++b)(_=wt(g>0?d[b]+" "+v:Et(v,/&\f/g,d[b])))&&(s[h++]=_);return At(e,t,a,0===o?ta:i,s,c,u)}function ua(e,t,a){return At(e,t,a,ea,_t(It),kt(e,2,-2),0)}function fa(e,t,a,r){return At(e,t,a,aa,kt(e,0,r),kt(e,r+1,-1),r)}var da=function(e,t,a){for(var r=0,o=0;r=o,o=Ht(),38===r&&12===o&&(t[a]=1),!Vt(o);)jt();return Rt(e,Tt)},pa=new WeakMap,ma=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,r=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pa.get(a))&&!r){pa.set(e,!0);for(var o=[],n=function(e,t){return qt(function(e,t){var a=-1,r=44;do{switch(Vt(r)){case 0:38===r&&12===Ht()&&(t[a]=1),e[a]+=da(Tt-1,t,a);break;case 2:e[a]+=Yt(r);break;case 4:if(44===r){e[++a]=58===Ht()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=_t(r)}}while(r=jt());return e}(zt(e),t))}(t,o),l=a.props,i=0,s=0;i<n.length;i++)for(var c=0;c<l.length;c++,s++)e.props[s]=o[i]?n[i].replace(/&\f/g,l[c]):l[c]+" "+n[i]}}},ga=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ha=[function(e,t,a,r){if(e.length>-1&&!e.return)switch(e.type){case aa:e.return=la(e.value,e.length);break;case ra:return oa([Ft(e,{value:Et(e.value,"@","@"+Xt)})],r);case ta:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return oa([Ft(e,{props:[Et(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return oa([Ft(e,{props:[Et(t,/:(plac\w+)/,":-webkit-input-$1")]}),Ft(e,{props:[Et(t,/:(plac\w+)/,":-moz-$1")]}),Ft(e,{props:[Et(t,/:(plac\w+)/,Kt+"input-$1")]})],r)}return""}))}}],ba=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,n=e.stylisPlugins||ha,l={},i=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a<t.length;a++)l[t[a]]=!0;i.push(e)}));var s,c,u,f,d=[na,(f=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],p=(c=[ma,ga].concat(n,d),u=St(c),function(e,t,a,r){for(var o="",n=0;n<u;n++)o+=c[n](e,t,a,r)||"";return o});o=function(e,t,a,r){s=a,oa(ia(e?e+"{"+t.styles+"}":t.styles),p),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new bt({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:o};return m.sheet.hydrate(i),m};function va(e,t,a){var r="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):r+=a+" "})),r}var _a=function(e,t,a){var r=e.key+"-"+t.name;!1===a&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ya=function(e,t,a){_a(e,t,a);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},wa=function(e){for(var t,a=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(o){case 3:a^=(255&e.charCodeAt(r+2))<<16;case 2:a^=(255&e.charCodeAt(r+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(r)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)},Ea={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ca=/[A-Z]|^ms/g,xa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ka=function(e){return 45===e.charCodeAt(1)},Na=function(e){return null!=e&&"boolean"!=typeof e},Sa=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=ka(a=e)?a:a.replace(Ca,"-$&").toLowerCase()),t[e];var a}}(),Da=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(xa,(function(e,t,a){return Oa={name:t,styles:a,next:Oa},t}))}return 1===Ea[e]||ka(e)||"number"!=typeof t||0===t?t:t+"px"};function Pa(e,t,a){if(null==a)return"";if(void 0!==a.__emotion_styles)return a;switch(typeof a){case"boolean":return"";case"object":if(1===a.anim)return Oa={name:a.name,styles:a.styles,next:Oa},a.name;if(void 0!==a.styles){var r=a.next;if(void 0!==r)for(;void 0!==r;)Oa={name:r.name,styles:r.styles,next:Oa},r=r.next;return a.styles+";"}return function(e,t,a){var r="";if(Array.isArray(a))for(var o=0;o<a.length;o++)r+=Pa(e,t,a[o])+";";else for(var n in a){var l=a[n];if("object"!=typeof l)null!=t&&void 0!==t[l]?r+=n+"{"+t[l]+"}":Na(l)&&(r+=Sa(n)+":"+Da(n,l)+";");else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var i=Pa(e,t,l);switch(n){case"animation":case"animationName":r+=Sa(n)+":"+i+";";break;default:r+=n+"{"+i+"}"}}else for(var s=0;s<l.length;s++)Na(l[s])&&(r+=Sa(n)+":"+Da(n,l[s])+";")}return r}(e,t,a);case"function":if(void 0!==e){var o=Oa,n=a(e);return Oa=o,Pa(e,t,n)}}if(null==t)return a;var l=t[a];return void 0!==l?l:a}var Oa,Ma=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ta=function(e,t,a){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Oa=void 0;var n=e[0];null==n||void 0===n.raw?(r=!1,o+=Pa(a,t,n)):o+=n[0];for(var l=1;l<e.length;l++)o+=Pa(a,t,e[l]),r&&(o+=n[l]);Ma.lastIndex=0;for(var i,s="";null!==(i=Ma.exec(o));)s+="-"+i[1];return{name:wa(o)+s,styles:o,next:Oa}},Ia=!!Be.useInsertionEffect&&Be.useInsertionEffect,La=Ia||function(e){return e()},Aa=(Ia||Be.useLayoutEffect,{}.hasOwnProperty),Fa=(0,Be.createContext)("undefined"!=typeof HTMLElement?ba({key:"css"}):null),Ba=(Fa.Provider,function(e){return(0,Be.forwardRef)((function(t,a){var r=(0,Be.useContext)(Fa);return e(t,r,a)}))}),ja=(0,Be.createContext)({}),Ha="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$a=function(e,t){var a={};for(var r in t)Aa.call(t,r)&&(a[r]=t[r]);return a[Ha]=e,a},Ra=function(e){var t=e.cache,a=e.serialized,r=e.isStringTag;return _a(t,a,r),La((function(){return ya(t,a,r)})),null},Va=Ba((function(e,t,a){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ha],n=[r],l="";"string"==typeof e.className?l=va(t.registered,n,e.className):null!=e.className&&(l=e.className+" ");var i=Ta(n,void 0,(0,Be.useContext)(ja));l+=t.key+"-"+i.name;var s={};for(var c in e)Aa.call(e,c)&&"css"!==c&&c!==Ha&&(s[c]=e[c]);return s.ref=a,s.className=l,(0,Be.createElement)(Be.Fragment,null,(0,Be.createElement)(Ra,{cache:t,serialized:i,isStringTag:"string"==typeof o}),(0,Be.createElement)(o,s))}));a(679);var za=function(e,t){var a=arguments;if(null==t||!Aa.call(t,"css"))return Be.createElement.apply(void 0,a);var r=a.length,o=new Array(r);o[0]=Va,o[1]=$a(e,t);for(var n=2;n<r;n++)o[n]=a[n];return Be.createElement.apply(null,o)};function qa(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Ta(t)}var Ya=function e(t){for(var a=t.length,r=0,o="";r<a;r++){var n=t[r];if(null!=n){var l=void 0;switch(typeof n){case"boolean":break;case"object":if(Array.isArray(n))l=e(n);else for(var i in l="",n)n[i]&&i&&(l&&(l+=" "),l+=i);break;default:l=n}l&&(o&&(o+=" "),o+=l)}}return o};function Ga(e,t,a){var r=[],o=va(e,r,a);return r.length<2?a:o+t(r)}var Ua=function(e){var t=e.cache,a=e.serializedArr;return La((function(){for(var e=0;e<a.length;e++)ya(t,a[e],!1)})),null},Wa=Ba((function(e,t){var a=[],r=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var n=Ta(r,t.registered);return a.push(n),_a(t,n,!1),t.key+"-"+n.name},o={css:r,cx:function(){for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];return Ga(t.registered,r,Ya(a))},theme:(0,Be.useContext)(ja)},n=e.children(o);return(0,Be.createElement)(Be.Fragment,null,(0,Be.createElement)(Ua,{cache:t,serializedArr:a}),n)}));function Ja(e,t){if(null==e)return{};var a,r,o=function(e,t){if(null==e)return{};var a,r,o={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(o[a]=e[a]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function Ka(e,t){if(e){if("string"==typeof e)return Qa(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Qa(e,t):void 0}}function Za(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,o,n=[],_n=!0,l=!1;try{for(a=a.call(e);!(_n=(r=a.next()).done)&&(n.push(r.value),!t||n.length!==t);_n=!0);}catch(e){l=!0,o=e}finally{try{_n||null==a.return||a.return()}finally{if(l)throw o}}return n}}(e,t)||Ka(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tr(e,t,a){return t&&er(e.prototype,t),a&&er(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function ar(e,t){return ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ar(e,t)}function rr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ar(e,t)}function or(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function nr(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function lr(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function ir(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(a),!0).forEach((function(t){nr(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):lr(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function sr(e){return sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sr(e)}function cr(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=sr(e);if(t){var o=sr(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return cr(this,a)}}var fr=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],dr=function(){};function pr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function mr(e,t,a){var r=[a];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(pr(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var gr=function(e){return a=e,Array.isArray(a)?e.filter(Boolean):"object"===t(e)&&null!==e?[e]:[];var a},hr=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ir({},Ja(e,fr))};function br(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function vr(e){return br(e)?window.pageYOffset:e.scrollTop}function _r(e,t){br(e)?window.scrollTo(0,t):e.scrollTop=t}function yr(e,t,a,r){return a*((e=e/r-1)*e*e+1)+t}function wr(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:dr,o=vr(e),n=t-o,l=10,i=0;function s(){var t=yr(i+=l,o,n,a);_r(e,t),i<a?window.requestAnimationFrame(s):r(e)}s()}function Er(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Cr=!1,xr={get passive(){return Cr=!0}},kr="undefined"!=typeof window?window:{};kr.addEventListener&&kr.removeEventListener&&(kr.addEventListener("p",dr,xr),kr.removeEventListener("p",dr,!1));var Nr=Cr;function Sr(e){return null!=e}function Dr(e,t,a){return e?t:a}function Pr(e){var t=e.maxHeight,a=e.menuEl,r=e.minHeight,o=e.placement,n=e.shouldScroll,l=e.isFixedPosition,i=e.theme.spacing,s=function(e){var t=getComputedStyle(e),a="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!a||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u,f=s.getBoundingClientRect().height,d=a.getBoundingClientRect(),p=d.bottom,m=d.height,g=d.top,h=a.offsetParent.getBoundingClientRect().top,b=l||br(u=s)?window.innerHeight:u.clientHeight,v=vr(s),_=parseInt(getComputedStyle(a).marginBottom,10),y=parseInt(getComputedStyle(a).marginTop,10),w=h-y,E=b-g,C=w+v,x=f-v-g,k=p-b+v+_,N=v+g-y,S=160;switch(o){case"auto":case"bottom":if(E>=m)return{placement:"bottom",maxHeight:t};if(x>=m&&!l)return n&&wr(s,k,S),{placement:"bottom",maxHeight:t};if(!l&&x>=r||l&&E>=r)return n&&wr(s,k,S),{placement:"bottom",maxHeight:l?E-_:x-_};if("auto"===o||l){var D=t,P=l?w:C;return P>=r&&(D=Math.min(P-_-i.controlHeight,t)),{placement:"top",maxHeight:D}}if("bottom"===o)return n&&_r(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(C>=m&&!l)return n&&wr(s,N,S),{placement:"top",maxHeight:t};if(!l&&C>=r||l&&w>=r){var O=t;return(!l&&C>=r||l&&w>=r)&&(O=l?w-y:C-y),n&&wr(s,N,S),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Or=function(e){return"auto"===e?"bottom":e},Mr=(0,Be.createContext)({getPortalPlacement:null}),Tr=function(e){rr(a,e);var t=ur(a);function a(){var e;Xa(this,a);for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var a=e.props,r=a.minMenuHeight,o=a.maxMenuHeight,n=a.menuPlacement,l=a.menuPosition,i=a.menuShouldScrollIntoView,s=a.theme;if(t){var c="fixed"===l,u=Pr({maxHeight:o,menuEl:t,minHeight:r,placement:n,shouldScroll:i&&!c,isFixedPosition:c,theme:s}),f=e.context.getPortalPlacement;f&&f(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,a=e.state.placement||Or(t);return ir(ir({},e.props),{},{placement:a,maxHeight:e.state.maxHeight})},e}return tr(a,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),a}(Be.Component);Tr.contextType=Mr;var Ir=function(e){var t=e.theme,a=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*a,"px ").concat(3*a,"px"),textAlign:"center"}},Lr=Ir,Ar=Ir,Fr=function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps;return za("div",Re({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},a)},n),t)};Fr.defaultProps={children:"No options"};var Br=function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps;return za("div",Re({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},a)},n),t)};Br.defaultProps={children:"Loading..."};var jr,Hr,$r,Rr=function(e){rr(a,e);var t=ur(a);function a(){var e;Xa(this,a);for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var a=t.placement;a!==Or(e.props.menuPlacement)&&e.setState({placement:a})},e}return tr(a,[{key:"render",value:function(){var e=this.props,t=e.appendTo,a=e.children,r=e.className,o=e.controlElement,n=e.cx,l=e.innerProps,i=e.menuPlacement,s=e.menuPosition,c=e.getStyles,u="fixed"===s;if(!t&&!u||!o)return null;var f=this.state.placement||Or(i),d=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),p=u?0:window.pageYOffset,m=d[f]+p,g=za("div",Re({css:c("menuPortal",{offset:m,position:s,rect:d}),className:n({"menu-portal":!0},r)},l),a);return za(Mr.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Xe.createPortal)(g,t):g)}}]),a}(Be.Component),Vr=["size"],zr={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},qr=function(e){var t=e.size,a=Ja(e,Vr);return za("svg",Re({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:zr},a))},Yr=function(e){return za(qr,Re({size:20},e),za("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Gr=function(e){return za(qr,Re({size:20},e),za("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ur=function(e){var t=e.isFocused,a=e.theme,r=a.spacing.baseUnit,o=a.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Wr=Ur,Jr=Ur,Qr=function(){var e=qa.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(jr||(Hr=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],$r||($r=Hr.slice(0)),jr=Object.freeze(Object.defineProperties(Hr,{raw:{value:Object.freeze($r)}})))),Kr=function(e){var t=e.delay,a=e.offset;return za("span",{css:qa({animation:"".concat(Qr," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Zr=function(e){var t=e.className,a=e.cx,r=e.getStyles,o=e.innerProps,n=e.isRtl;return za("div",Re({css:r("loadingIndicator",e),className:a({indicator:!0,"loading-indicator":!0},t)},o),za(Kr,{delay:0,offset:n}),za(Kr,{delay:160,offset:!0}),za(Kr,{delay:320,offset:!n}))};Zr.defaultProps={size:4};var Xr=["data"],eo=["innerRef","isDisabled","isHidden","inputClassName"],to={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ao={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ir({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},to)},ro=function(e){return ir({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},to)},oo=function(e){var t=e.children,a=e.innerProps;return za("div",a,t)},no={ClearIndicator:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps;return za("div",Re({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},a)},n),t||za(Yr,null))},Control:function(e){var t=e.children,a=e.cx,r=e.getStyles,o=e.className,n=e.isDisabled,l=e.isFocused,i=e.innerRef,s=e.innerProps,c=e.menuIsOpen;return za("div",Re({ref:i,css:r("control",e),className:a({control:!0,"control--is-disabled":n,"control--is-focused":l,"control--menu-is-open":c},o)},s),t)},DropdownIndicator:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps;return za("div",Re({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},a)},n),t||za(Gr,null))},DownChevron:Gr,CrossIcon:Yr,Group:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.Heading,l=e.headingProps,i=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return za("div",Re({css:o("group",e),className:r({group:!0},a)},i),za(n,Re({},l,{selectProps:u,theme:c,getStyles:o,cx:r}),s),za("div",null,t))},GroupHeading:function(e){var t=e.getStyles,a=e.cx,r=e.className,o=hr(e);o.data;var n=Ja(o,Xr);return za("div",Re({css:t("groupHeading",e),className:a({"group-heading":!0},r)},n))},IndicatorsContainer:function(e){var t=e.children,a=e.className,r=e.cx,o=e.innerProps,n=e.getStyles;return za("div",Re({css:n("indicatorsContainer",e),className:r({indicators:!0},a)},o),t)},IndicatorSeparator:function(e){var t=e.className,a=e.cx,r=e.getStyles,o=e.innerProps;return za("span",Re({},o,{css:r("indicatorSeparator",e),className:a({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,a=e.cx,r=e.getStyles,o=e.value,n=hr(e),l=n.innerRef,i=n.isDisabled,s=n.isHidden,c=n.inputClassName,u=Ja(n,eo);return za("div",{className:a({"input-container":!0},t),css:r("input",e),"data-value":o||""},za("input",Re({className:a({input:!0},c),ref:l,style:ro(s),disabled:i},u)))},LoadingIndicator:Zr,Menu:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerRef,l=e.innerProps;return za("div",Re({css:o("menu",e),className:r({menu:!0},a),ref:n},l),t)},MenuList:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps,l=e.innerRef,i=e.isMulti;return za("div",Re({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":i},a),ref:l},n),t)},MenuPortal:Rr,LoadingMessage:Br,NoOptionsMessage:Fr,MultiValue:function(e){var t=e.children,a=e.className,r=e.components,o=e.cx,n=e.data,l=e.getStyles,i=e.innerProps,s=e.isDisabled,c=e.removeProps,u=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return za(Wa,null,(function(r){var m=r.css,g=r.cx;return za(f,{data:n,innerProps:ir({className:g(m(l("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":s},a))},i),selectProps:u},za(d,{data:n,innerProps:{className:g(m(l("multiValueLabel",e)),o({"multi-value__label":!0},a))},selectProps:u},t),za(p,{data:n,innerProps:ir({className:g(m(l("multiValueRemove",e)),o({"multi-value__remove":!0},a)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:oo,MultiValueLabel:oo,MultiValueRemove:function(e){var t=e.children,a=e.innerProps;return za("div",Re({role:"button"},a),t||za(Yr,{size:14}))},Option:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.isDisabled,l=e.isFocused,i=e.isSelected,s=e.innerRef,c=e.innerProps;return za("div",Re({css:o("option",e),className:r({option:!0,"option--is-disabled":n,"option--is-focused":l,"option--is-selected":i},a),ref:s,"aria-disabled":n},c),t)},Placeholder:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps;return za("div",Re({css:o("placeholder",e),className:r({placeholder:!0},a)},n),t)},SelectContainer:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.innerProps,l=e.isDisabled,i=e.isRtl;return za("div",Re({css:o("container",e),className:r({"--is-disabled":l,"--is-rtl":i},a)},n),t)},SingleValue:function(e){var t=e.children,a=e.className,r=e.cx,o=e.getStyles,n=e.isDisabled,l=e.innerProps;return za("div",Re({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":n},a)},l),t)},ValueContainer:function(e){var t=e.children,a=e.className,r=e.cx,o=e.innerProps,n=e.isMulti,l=e.getStyles,i=e.hasValue;return za("div",Re({css:l("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":n,"value-container--has-value":i},a)},o),t)}},lo=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function io(e){return function(e){if(Array.isArray(e))return Qa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ka(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var so=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function co(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((r=e[a])===(o=t[a])||so(r)&&so(o)))return!1;var r,o;return!0}for(var uo={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},fo=function(e){return za("span",Re({css:uo},e))},po={guidance:function(e){var t=e.isSearchable,a=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,r=void 0===a?"":a,o=e.labels,n=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,n?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,r=e.options,o=e.label,n=void 0===o?"":o,l=e.selectValue,i=e.isDisabled,s=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&l)return"value ".concat(n," focused, ").concat(c(l,a),".");if("menu"===t){var u=i?" disabled":"",f="".concat(s?"selected":"focused").concat(u);return"option ".concat(n," ").concat(f,", ").concat(c(r,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},mo=function(e){var t=e.ariaSelection,a=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,n=e.isFocused,l=e.selectValue,i=e.selectProps,s=e.id,c=i.ariaLiveMessages,u=i.getOptionLabel,f=i.inputValue,d=i.isMulti,p=i.isOptionDisabled,m=i.isSearchable,g=i.menuIsOpen,h=i.options,b=i.screenReaderStatus,v=i.tabSelectsValue,_=i["aria-label"],y=i["aria-live"],w=(0,Be.useMemo)((function(){return ir(ir({},po),c||{})}),[c]),E=(0,Be.useMemo)((function(){var e,a="";if(t&&w.onChange){var r=t.option,o=t.options,n=t.removedValue,i=t.removedValues,s=t.value,c=n||r||(e=s,Array.isArray(e)?null:e),f=c?u(c):"",d=o||i||void 0,m=d?d.map(u):[],g=ir({isDisabled:c&&p(c,l),label:f,labels:m},t);a=w.onChange(g)}return a}),[t,w,p,l,u]),C=(0,Be.useMemo)((function(){var e="",t=a||r,o=!!(a&&l&&l.includes(a));if(t&&w.onFocus){var n={focused:t,label:u(t),isDisabled:p(t,l),isSelected:o,options:h,context:t===a?"menu":"value",selectValue:l};e=w.onFocus(n)}return e}),[a,r,u,p,w,h,l]),x=(0,Be.useMemo)((function(){var e="";if(g&&h.length&&w.onFilter){var t=b({count:o.length});e=w.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,w,h,b]),k=(0,Be.useMemo)((function(){var e="";if(w.guidance){var t=r?"value":g?"menu":"input";e=w.guidance({"aria-label":_,context:t,isDisabled:a&&p(a,l),isMulti:d,isSearchable:m,tabSelectsValue:v})}return e}),[_,a,r,d,p,m,g,w,l,v]),N="".concat(C," ").concat(x," ").concat(k),S=za(Be.Fragment,null,za("span",{id:"aria-selection"},E),za("span",{id:"aria-context"},N)),D="initial-input-focus"===(null==t?void 0:t.action);return za(Be.Fragment,null,za(fo,{id:s},D&&S),za(fo,{"aria-live":y,"aria-atomic":"false","aria-relevant":"additions text"},n&&!D&&S))},go=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ho=new RegExp("["+go.map((function(e){return e.letters})).join("")+"]","g"),bo={},vo=0;vo<go.length;vo++)for(var _o=go[vo],yo=0;yo<_o.letters.length;yo++)bo[_o.letters[yo]]=_o.base;var wo=function(e){return e.replace(ho,(function(e){return bo[e]}))},Eo=function(e,t){var a;void 0===t&&(t=co);var r,o=[],n=!1;return function(){for(var l=[],i=0;i<arguments.length;i++)l[i]=arguments[i];return n&&a===this&&t(l,o)||(r=e.apply(this,l),n=!0,a=this,o=l),r}}(wo),Co=function(e){return e.replace(/^\s+|\s+$/g,"")},xo=function(e){return"".concat(e.label," ").concat(e.value)},ko=["innerRef"];function No(e){var t=e.innerRef,a=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Za(e,1)[0];return!a.includes(t)}));return o.reduce((function(e,t){var a=Za(t,2),r=a[0],o=a[1];return e[r]=o,e}),{})}(Ja(e,ko),"onExited","in","enter","exit","appear");return za("input",Re({ref:t},a,{css:qa({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var So=["boxSizing","height","overflow","paddingRight","position"],Do={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Po(e){e.preventDefault()}function Oo(e){e.stopPropagation()}function Mo(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function To(){return"ontouchstart"in window||navigator.maxTouchPoints}var Io=!("undefined"==typeof window||!window.document||!window.document.createElement),Lo=0,Ao={capture:!1,passive:!1},Fo=function(){return document.activeElement&&document.activeElement.blur()},Bo={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function jo(e){var t=e.children,a=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,a=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,n=e.onTopLeave,l=(0,Be.useRef)(!1),i=(0,Be.useRef)(!1),s=(0,Be.useRef)(0),c=(0,Be.useRef)(null),u=(0,Be.useCallback)((function(e,t){if(null!==c.current){var s=c.current,u=s.scrollTop,f=s.scrollHeight,d=s.clientHeight,p=c.current,m=t>0,g=f-d-u,h=!1;g>t&&l.current&&(r&&r(e),l.current=!1),m&&i.current&&(n&&n(e),i.current=!1),m&&t>g?(a&&!l.current&&a(e),p.scrollTop=f,h=!0,l.current=!0):!m&&-t>u&&(o&&!i.current&&o(e),p.scrollTop=0,h=!0,i.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[a,r,o,n]),f=(0,Be.useCallback)((function(e){u(e,e.deltaY)}),[u]),d=(0,Be.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),p=(0,Be.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,Be.useCallback)((function(e){if(e){var t=!!Nr&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",p,t)}}),[p,d,f]),g=(0,Be.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",p,!1))}),[p,d,f]);return(0,Be.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),n=function(e){var t=e.isEnabled,a=e.accountForScrollbars,r=void 0===a||a,o=(0,Be.useRef)({}),n=(0,Be.useRef)(null),l=(0,Be.useCallback)((function(e){if(Io){var t=document.body,a=t&&t.style;if(r&&So.forEach((function(e){var t=a&&a[e];o.current[e]=t})),r&&Lo<1){var n=parseInt(o.current.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,i=window.innerWidth-l+n||0;Object.keys(Do).forEach((function(e){var t=Do[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(i,"px"))}t&&To()&&(t.addEventListener("touchmove",Po,Ao),e&&(e.addEventListener("touchstart",Mo,Ao),e.addEventListener("touchmove",Oo,Ao))),Lo+=1}}),[r]),i=(0,Be.useCallback)((function(e){if(Io){var t=document.body,a=t&&t.style;Lo=Math.max(Lo-1,0),r&&Lo<1&&So.forEach((function(e){var t=o.current[e];a&&(a[e]=t)})),t&&To()&&(t.removeEventListener("touchmove",Po,Ao),e&&(e.removeEventListener("touchstart",Mo,Ao),e.removeEventListener("touchmove",Oo,Ao)))}}),[r]);return(0,Be.useEffect)((function(){if(t){var e=n.current;return l(e),function(){i(e)}}}),[t,l,i]),function(e){n.current=e}}({isEnabled:a});return za(Be.Fragment,null,a&&za("div",{onClick:Fo,css:Bo}),t((function(e){o(e),n(e)})))}var Ho={clearIndicator:Jr,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,a=e.isFocused,r=e.theme,o=r.colors,n=r.borderRadius,l=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:a?o.primary:o.neutral20,borderRadius:n,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:a?o.primary:o.neutral30}}},dropdownIndicator:Wr,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,a=e.theme,r=a.spacing.baseUnit,o=a.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,a=e.value,r=e.theme,o=r.spacing,n=r.colors;return ir({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:n.neutral80,transform:a?"translateZ(0)":""},ao)},loadingIndicator:function(e){var t=e.isFocused,a=e.size,r=e.theme,o=r.colors,n=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*n,transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Ar,menu:function(e){var t,a=e.placement,r=e.theme,o=r.borderRadius,n=r.spacing,l=r.colors;return or(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(a),"100%"),or(t,"backgroundColor",l.neutral0),or(t,"borderRadius",o),or(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),or(t,"marginBottom",n.menuGutter),or(t,"marginTop",n.menuGutter),or(t,"position","absolute"),or(t,"width","100%"),or(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,a=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:a,paddingTop:a,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,a=e.offset,r=e.position;return{left:t.left,position:r,top:a,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,a=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:a.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,a=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:a/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,a=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Lr,option:function(e){var t=e.isDisabled,a=e.isFocused,r=e.isSelected,o=e.theme,n=o.spacing,l=o.colors;return{label:"option",backgroundColor:r?l.primary:a?l.primary25:"transparent",color:t?l.neutral20:r?l.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*n.baseUnit,"px ").concat(3*n.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?l.primary:l.primary50}}},placeholder:function(e){var t=e.theme,a=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,a=e.theme,r=a.spacing,o=a.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,a=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:a&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},$o={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ro={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Er(),captureMenuScroll:!Er(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=ir({ignoreCase:!0,ignoreAccents:!0,stringify:xo,trim:!0,matchFrom:"any"},undefined),r=a.ignoreCase,o=a.ignoreAccents,n=a.stringify,l=a.trim,i=a.matchFrom,s=l?Co(t):t,c=l?Co(n(e)):n(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),o&&(s=Eo(s),c=wo(c)),"start"===i?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Vo(e,t,a,r){return{type:"option",data:t,isDisabled:Wo(e,t,a),isSelected:Jo(e,t,a),label:Go(e,t),value:Uo(e,t),index:r}}function zo(e,t){return e.options.map((function(a,r){if("options"in a){var o=a.options.map((function(a,r){return Vo(e,a,t,r)})).filter((function(t){return Yo(e,t)}));return o.length>0?{type:"group",data:a,options:o,index:r}:void 0}var n=Vo(e,a,t,r);return Yo(e,n)?n:void 0})).filter(Sr)}function qo(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,io(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Yo(e,t){var a=e.inputValue,r=void 0===a?"":a,o=t.data,n=t.isSelected,l=t.label,i=t.value;return(!Ko(e)||!n)&&Qo(e,{label:l,value:i,data:o},r)}var Go=function(e,t){return e.getOptionLabel(t)},Uo=function(e,t){return e.getOptionValue(t)};function Wo(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function Jo(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var r=Uo(e,t);return a.some((function(t){return Uo(e,t)===r}))}function Qo(e,t,a){return!e.filterOption||e.filterOption(t,a)}var Ko=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},Zo=1,Xo=function(e){rr(a,e);var t=ur(a);function a(e){var r;return Xa(this,a),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var a=r.props,o=a.onChange,n=a.name;t.name=n,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,a){var o=r.props,n=o.closeMenuOnSelect,l=o.isMulti,i=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:i}),n&&(r.setState({inputIsHiddenAfterUpdate:!l}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:a})},r.selectOption=function(e){var t=r.props,a=t.blurInputOnSelect,o=t.isMulti,n=t.name,l=r.state.selectValue,i=o&&r.isOptionSelected(e,l),s=r.isOptionDisabled(e,l);if(i){var c=r.getOptionValue(e);r.setValue(l.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:n});o?r.setValue([].concat(io(l),[e]),"select-option",e):r.setValue(e,"select-option")}a&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,a=r.state.selectValue,o=r.getOptionValue(e),n=a.filter((function(e){return r.getOptionValue(e)!==o})),l=Dr(t,n,n[0]||null);r.onChange(l,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Dr(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,a=t[t.length-1],o=t.slice(0,t.length-1),n=Dr(e,o,o[0]||null);r.onChange(n,{action:"pop-value",removedValue:a})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return mr.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Go(r.props,e)},r.getOptionValue=function(e){return Uo(r.props,e)},r.getStyles=function(e,t){var a=Ho[e](t);a.boxSizing="border-box";var o=r.props.styles[e];return o?o(a,t):a},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,ir(ir({},no),e.components);var e},r.buildCategorizedOptions=function(){return zo(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return qo(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:ir({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,a=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&br(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,a=t&&t.item(0);a&&(r.initialTouchX=a.clientX,r.initialTouchY=a.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,a=t&&t.item(0);if(a){var o=Math.abs(a.clientX-r.initialTouchX),n=Math.abs(a.clientY-r.initialTouchY);r.userIsDragging=o>5||n>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,a=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(a,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Ko(r.props)},r.onKeyDown=function(e){var t=r.props,a=t.isMulti,o=t.backspaceRemovesValue,n=t.escapeClearsValue,l=t.inputValue,i=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=r.state,m=p.focusedOption,g=p.focusedValue,h=p.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!a||l)return;r.focusValue("previous");break;case"ArrowRight":if(!a||l)return;r.focusValue("next");break;case"Delete":case"Backspace":if(l)return;if(g)r.removeValue(g);else{if(!o)return;a?r.popValue():i&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!f||!m||d&&r.isOptionSelected(m,h))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:l}),r.onMenuClose()):i&&n&&r.clearValue();break;case" ":if(l)return;if(!c){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Zo),r.state.selectValue=gr(e.value),r}return tr(a,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,a,r,o,n,l=this.props,i=l.isDisabled,s=l.menuIsOpen,c=this.state.isFocused;(c&&!i&&e.isDisabled||c&&s&&!e.menuIsOpen)&&this.focusInput(),c&&i&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,a=this.focusedOptionRef,r=t.getBoundingClientRect(),o=a.getBoundingClientRect(),n=a.offsetHeight/3,o.bottom+n>r.bottom?_r(t,Math.min(a.offsetTop+a.clientHeight-t.offsetHeight+n,t.scrollHeight)):o.top-n<r.top&&_r(t,Math.max(a.offsetTop-n,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,a=this.state,r=a.selectValue,o=a.isFocused,n=this.buildFocusableOptions(),l="first"===e?0:n.length-1;if(!this.props.isMulti){var i=n.indexOf(r[0]);i>-1&&(l=i)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:n[l]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,a=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=a.indexOf(r);r||(o=-1);var n=a.length-1,l=-1;if(a.length){switch(e){case"previous":l=0===o?0:-1===o?n:o-1;break;case"next":o>-1&&o<n&&(l=o+1)}this.setState({inputIsHidden:-1!==l,focusedValue:a[l]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,a=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,n=r.indexOf(a);a||(n=-1),"up"===e?o=n>0?n-1:r.length-1:"down"===e?o=(n+1)%r.length:"pageup"===e?(o=n-t)<0&&(o=0):"pagedown"===e?(o=n+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($o):ir(ir({},$o),this.props.theme):$o}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,r=this.getValue,o=this.selectOption,n=this.setValue,l=this.props,i=l.isMulti,s=l.isRtl,c=l.options;return{clearValue:e,cx:t,getStyles:a,getValue:r,hasValue:this.hasValue(),isMulti:i,isRtl:s,options:c,selectOption:o,selectProps:l,setValue:n,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,a=e.isMulti;return void 0===t?a:t}},{key:"isOptionDisabled",value:function(e,t){return Wo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Jo(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Qo(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var a=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:a,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,a=e.isSearchable,r=e.inputId,o=e.inputValue,n=e.tabIndex,l=e.form,i=e.menuIsOpen,s=this.getComponents().Input,c=this.state,u=c.inputIsHidden,f=c.ariaSelection,d=this.commonProps,p=r||this.getElementId("input"),m=ir(ir(ir({"aria-autocomplete":"list","aria-expanded":i,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},i&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Be.createElement(s,Re({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:n,form:l,type:"text",value:o},m)):Be.createElement(No,Re({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:dr,onFocus:this.onInputFocus,disabled:t,tabIndex:n,inputMode:"none",form:l,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),a=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,n=t.MultiValueRemove,l=t.SingleValue,i=t.Placeholder,s=this.commonProps,c=this.props,u=c.controlShouldRenderValue,f=c.isDisabled,d=c.isMulti,p=c.inputValue,m=c.placeholder,g=this.state,h=g.selectValue,b=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!u)return p?null:Be.createElement(i,Re({},s,{key:"placeholder",isDisabled:f,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(d)return h.map((function(t,l){var i=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Be.createElement(a,Re({},s,{components:{Container:r,Label:o,Remove:n},isFocused:i,isDisabled:f,key:c,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var _=h[0];return Be.createElement(l,Re({},s,{data:_,isDisabled:f}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,a=this.props,r=a.isDisabled,o=a.isLoading,n=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Be.createElement(e,Re({},t,{innerProps:l,isFocused:n}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,a=this.props,r=a.isDisabled,o=a.isLoading,n=this.state.isFocused;return e&&o?Be.createElement(e,Re({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:n})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,a=e.IndicatorSeparator;if(!t||!a)return null;var r=this.commonProps,o=this.props.isDisabled,n=this.state.isFocused;return Be.createElement(a,Re({},r,{isDisabled:o,isFocused:n}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,a=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Be.createElement(e,Re({},t,{innerProps:o,isDisabled:a,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),a=t.Group,r=t.GroupHeading,o=t.Menu,n=t.MenuList,l=t.MenuPortal,i=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,u=this.commonProps,f=this.state.focusedOption,d=this.props,p=d.captureMenuScroll,m=d.inputValue,g=d.isLoading,h=d.loadingMessage,b=d.minMenuHeight,v=d.maxMenuHeight,_=d.menuIsOpen,y=d.menuPlacement,w=d.menuPosition,E=d.menuPortalTarget,C=d.menuShouldBlockScroll,x=d.menuShouldScrollIntoView,k=d.noOptionsMessage,N=d.onMenuScrollToTop,S=d.onMenuScrollToBottom;if(!_)return null;var D,P=function(t,a){var r=t.type,o=t.data,n=t.isDisabled,l=t.isSelected,i=t.label,s=t.value,d=f===o,p=n?void 0:function(){return e.onOptionHover(o)},m=n?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(a),h={id:g,onClick:m,onMouseMove:p,onMouseOver:p,tabIndex:-1};return Be.createElement(c,Re({},u,{innerProps:h,data:o,isDisabled:n,isSelected:l,key:g,label:i,type:r,value:s,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,n=t.options,l=t.index,i="".concat(e.getElementId("group"),"-").concat(l),s="".concat(i,"-heading");return Be.createElement(a,Re({},u,{key:i,data:o,options:n,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(g){var O=h({inputValue:m});if(null===O)return null;D=Be.createElement(i,u,O)}else{var M=k({inputValue:m});if(null===M)return null;D=Be.createElement(s,u,M)}var T={minMenuHeight:b,maxMenuHeight:v,menuPlacement:y,menuPosition:w,menuShouldScrollIntoView:x},I=Be.createElement(Tr,Re({},u,T),(function(t){var a=t.ref,r=t.placerProps,l=r.placement,i=r.maxHeight;return Be.createElement(o,Re({},u,T,{innerRef:a,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:g,placement:l}),Be.createElement(jo,{captureEnabled:p,onTopArrive:N,onBottomArrive:S,lockEnabled:C},(function(t){return Be.createElement(n,Re({},u,{innerRef:function(a){e.getMenuListRef(a),t(a)},isLoading:g,maxHeight:i,focusedOption:f}),D)})))}));return E||"fixed"===w?Be.createElement(l,Re({},u,{appendTo:E,controlElement:this.controlRef,menuPlacement:y,menuPosition:w}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,r=t.isDisabled,o=t.isMulti,n=t.name,l=this.state.selectValue;if(n&&!r){if(o){if(a){var i=l.map((function(t){return e.getOptionValue(t)})).join(a);return Be.createElement("input",{name:n,type:"hidden",value:i})}var s=l.length>0?l.map((function(t,a){return Be.createElement("input",{key:"i-".concat(a),name:n,type:"hidden",value:e.getOptionValue(t)})})):Be.createElement("input",{name:n,type:"hidden"});return Be.createElement("div",null,s)}var c=l[0]?this.getOptionValue(l[0]):"";return Be.createElement("input",{name:n,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,a=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,n=t.isFocused,l=t.selectValue,i=this.getFocusableOptions();return Be.createElement(mo,Re({},e,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:r,focusedValue:o,isFocused:n,selectValue:l,focusableOptions:i}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,a=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,n=this.props,l=n.className,i=n.id,s=n.isDisabled,c=n.menuIsOpen,u=this.state.isFocused,f=this.commonProps=this.getCommonProps();return Be.createElement(r,Re({},f,{className:l,innerProps:{id:i,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:u}),this.renderLiveRegion(),Be.createElement(t,Re({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:u,menuIsOpen:c}),Be.createElement(o,Re({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),Be.createElement(a,Re({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,n=t.ariaSelection,l=t.isFocused,i=t.prevWasFocused,s=e.options,c=e.value,u=e.menuIsOpen,f=e.inputValue,d=e.isMulti,p=gr(c),m={};if(a&&(c!==a.value||s!==a.options||u!==a.menuIsOpen||f!==a.inputValue)){var g=u?function(e,t){return qo(zo(e,t))}(e,p):[],h=r?function(e,t){var a=e.focusedValue,r=e.selectValue.indexOf(a);if(r>-1){if(t.indexOf(a)>-1)return a;if(r<t.length)return t[r]}return null}(t,p):null,b=function(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}(t,g);m={selectValue:p,focusedOption:b,focusedValue:h,clearFocusValueOnUpdate:!1}}var v=null!=o&&e!==a?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=n,y=l&&i;return l&&!y&&(_={value:Dr(d,p,p[0]||null),options:p,action:"initial-input-focus"},y=!i),"initial-input-focus"===(null==n?void 0:n.action)&&(_=null),ir(ir(ir({},m),v),{},{prevProps:e,ariaSelection:_,prevWasFocused:y})}}]),a}(Be.Component);Xo.defaultProps=Ro;var en=(0,Be.forwardRef)((function(e,t){var a=function(e){var t=e.defaultInputValue,a=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,n=e.defaultValue,l=void 0===n?null:n,i=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,p=e.value,m=Ja(e,lo),g=Za((0,Be.useState)(void 0!==i?i:a),2),h=g[0],b=g[1],v=Za((0,Be.useState)(void 0!==s?s:o),2),_=v[0],y=v[1],w=Za((0,Be.useState)(void 0!==p?p:l),2),E=w[0],C=w[1],x=(0,Be.useCallback)((function(e,t){"function"==typeof c&&c(e,t),C(e)}),[c]),k=(0,Be.useCallback)((function(e,t){var a;"function"==typeof u&&(a=u(e,t)),b(void 0!==a?a:e)}),[u]),N=(0,Be.useCallback)((function(){"function"==typeof d&&d(),y(!0)}),[d]),S=(0,Be.useCallback)((function(){"function"==typeof f&&f(),y(!1)}),[f]),D=void 0!==i?i:h,P=void 0!==s?s:_,O=void 0!==p?p:E;return ir(ir({},m),{},{inputValue:D,menuIsOpen:P,onChange:x,onInputChange:k,onMenuClose:S,onMenuOpen:N,value:O})}(e);return Be.createElement(Xo,Re({ref:t},a))})),tn=(Be.Component,en),an=a(953);const{__:rn}=wp.i18n;var on=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{ignore_sticky_posts:n,no_posts_found_text:l,post_type:i,post_id:s,exclude:c,post_limit:u,offset:f,author:d,post_keyword:p,relation:m,orderby:g,order:h,taxonomy_lists:b,start_date:v,end_date:_}=a,y=rttpgParams.all_term_list,w=rttpgParams.get_taxonomies;let E=new Set;for(let e in w){let t=w[e];t.object_type[0]===i&&E.add({value:t.name,name:t.label})}return E=[...E],(0,e.createElement)(Le.PanelBody,{title:rn("Query Build","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.SelectControl,{label:rn("Post Source","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:i,options:we,onChange:e=>{r({post_type:e,page:1}),o()}}),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},rn("Common Filters:","the-post-grid")),(0,e.createElement)(Le.TextControl,{autocomplete:"off",label:rn("Include only","the-post-grid"),help:rn("Enter the post IDs separated by comma for include","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand has-help",placeholder:"Eg. 10, 15, 17",value:s,onChange:e=>{r({post_id:e}),o()}}),(0,e.createElement)(Le.TextControl,{autocomplete:"off",label:rn("Exclude","the-post-grid"),help:rn("Enter the post IDs separated by comma for exclude","the-post-grid"),placeholder:"Eg. 12, 13",className:"rttpg-control-field label-inline rttpg-expand has-help",value:c,onChange:e=>{r({exclude:e}),o()}}),(0,e.createElement)(Le.__experimentalNumberControl,{isShiftStepEnabled:!0,label:rn("Limit","the-post-grid"),help:rn("The number of posts to show. Enter -1 to show all found posts.","the-post-grid"),max:100,min:-1,value:u,onChange:e=>{r({post_limit:e}),o()},placeholder:rn("Eg. 36","the-post-grid"),shiftStep:10,step:"1",className:"rttpg-control-field label-inline"}),(0,e.createElement)(Le.__experimentalNumberControl,{isShiftStepEnabled:!0,label:rn("Offset","the-post-grid"),max:100,min:0,value:f,onChange:e=>{r({offset:e}),o()},placeholder:rn("Eg. 3","the-post-grid"),shiftStep:10,step:"1",className:"rttpg-control-field label-inline"}),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},rn("Advanced Filters:","the-post-grid")),(0,e.createElement)("div",{className:"rttpg-ground-control"},E.map((a=>(0,e.createElement)("div",{className:"components-base-control rttpg-repeater"},(0,e.createElement)("label",{className:"components-base-control__label components-input-control__label",htmlFor:"react-select-2-input"},rn("By "+a.name,"the-post-grid")),(0,e.createElement)(tn,{options:Ne(y[a.value]),value:Object.keys(b).length>0&&void 0!==b[a.value]?b[a.value].options:[],onChange:e=>{t.changeTaxonomy(e,a.value)},isMulti:!0,closeMenuOnSelect:!0,isClearable:!1})))),(0,e.createElement)(Le.SelectControl,{label:rn("Taxonomies Relation","the-post-grid"),className:"rttpg-control-field label-inline",value:m,options:ke,onChange:e=>{r({relation:e}),o()}})),(0,e.createElement)(Le.SelectControl,{label:rn("By Author","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:d,options:xe,onChange:e=>{r({author:e}),o()}}),(0,e.createElement)(Le.TextControl,{autocomplete:"off",label:rn("By Keyword","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",placeholder:"Search by keyword",value:p,onChange:e=>{r({post_keyword:e}),o()}}),(0,e.createElement)("div",{className:`rttpg-elm-wrapper ${Oe}`},(0,e.createElement)("label",null,rn("Start Date","the-post-grid")),(0,e.createElement)(an.Z,{label:rn("Start Date","the-post-grid"),options:{dateFormat:"M j, Y"},placeholder:"Choose Start Date...",value:v,onChange:e=>{let[t]=e;r({start_date:t}),o()}}),"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}})),(0,e.createElement)("div",{className:`rttpg-elm-wrapper ${Oe}`},(0,e.createElement)("label",null," ",rn("End Date","the-post-grid")),(0,e.createElement)(an.Z,{label:rn("End Date","the-post-grid"),options:{dateFormat:"M j, Y"},placeholder:"Choose End Date...",value:_,onChange:e=>{let[t]=e;r({end_date:t}),o()}}),"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}})),(0,e.createElement)(Le.SelectControl,{label:rn("Order By","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:g,options:se,onChange:e=>{r({orderby:e}),o()}}),(0,e.createElement)(Le.SelectControl,{label:rn("Sort Order","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",value:h,options:ve,onChange:e=>{r({order:e}),o()}}),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:`rttpg-elm-wrapper ${Oe}`},(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.ToggleControl,{label:rn("Ignore sticky posts","the-post-grid"),className:"rttpg-toggle-control-field",checked:n,onChange:e=>{r({ignore_sticky_posts:e?"yes":""}),o()}}),"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}))),(0,e.createElement)("hr",null),(0,e.createElement)(Le.TextControl,{autocomplete:"off",label:rn("No Post Found Text","the-post-grid"),className:"rttpg-control-field",value:l,onChange:e=>{r({no_posts_found_text:e}),o()}}))};const{__:nn}=wp.i18n;var ln=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{show_pagination:n,display_per_page:l,pagination_type:i,ajax_pagination_type:s,load_more_button_text:c}=a;return(0,e.createElement)(Le.PanelBody,{title:nn("Pagination","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.ToggleControl,{label:nn("Show Pagination","the-post-grid"),className:"rttpg-toggle-control-field",checked:n,onChange:e=>{r({show_pagination:e?"show":""}),o()}}),"show"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.__experimentalNumberControl,{isShiftStepEnabled:!0,label:nn("Display Per Page","the-post-grid"),help:nn("Enter how may posts will display per page","the-post-grid"),max:100,min:0,value:l,onChange:e=>{r({display_per_page:e}),o()},shiftStep:10,step:"1",className:"rttpg-control-field label-inline"}),(0,e.createElement)(Le.SelectControl,{label:nn("Pagination Type","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:ue,value:i,onChange:e=>r({pagination_type:e})}),"pagination_ajax"===i&&(0,e.createElement)(Le.ToggleControl,{label:nn("Enable Ajax Next Previous","the-post-grid"),className:"rttpg-toggle-control-field",checked:s,onChange:e=>r({ajax_pagination_type:e?"yes":""})}),"load_more"===i&&(0,e.createElement)(Le.TextControl,{autocomplete:"off",label:nn("Button Text","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",placeholder:"Enter Button Text Here..",value:c,onChange:e=>r({load_more_button_text:e})}),"rttpg-is-pro"===Oe&&(0,e.createElement)("p",{className:"rttpg-help"},nn("NB. Please upgrade to pro for loadmore and ajax pagination","the-post-grid"))))};const{__:sn}=wp.i18n;var cn=function(t){const{attributes:a,setAttributes:r}=t.data,{post_link_type:o,link_target:n,is_thumb_linked:l}=a;return(0,e.createElement)(Le.PanelBody,{title:sn("Links","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.SelectControl,{label:sn("Post link type","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:de,value:o,onChange:e=>r({post_link_type:e})}),"rttpg-is-pro"===Oe&&(0,e.createElement)("p",{className:"rttpg-help"},sn("NB. Please upgrade to pro for popup options","the-post-grid")),"default"===o&&(0,e.createElement)(Le.SelectControl,{label:sn("Link Target","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"_self",label:sn("Same Window","the-post-grid")},{value:"_blank",label:sn("New Window","the-post-grid")}],value:n,onChange:e=>r({link_target:e})}),(0,e.createElement)(Le.SelectControl,{label:sn("Thumbnail Link","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"yes",label:sn("Yes","the-post-grid")},{value:"no",label:sn("No","the-post-grid")}],value:l,onChange:e=>r({is_thumb_linked:e})}))};const{__:un}=wp.i18n;var fn=function(t){var a;const{attributes:r,setAttributes:o,changeQuery:n,postData:l}=t.data,{show_taxonomy_filter:i,show_author_filter:s,show_order_by:c,show_sort_order:u,show_search:f,filter_type:d,filter_btn_style:p,filter_post_count:m,tgp_filter_taxonomy_hierarchical:g,tpg_hide_all_button:h,tax_filter_all_text:b,author_filter_all_text:v,filter_taxonomy:_}=r,y=null==l||null===(a=l.query_info)||void 0===a?void 0:a.taxonomy,w=[];for(let e in y)w.push({value:e,label:un(y[e],"the-post-grid")});return(0,e.createElement)(Le.PanelBody,{title:un("Filter (Front-end)","the-post-grid"),initialOpen:!1},(0,e.createElement)("div",{style:{position:"relative"}},"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}),(0,e.createElement)(Le.ToggleControl,{label:un("Taxonomy Filter","the-post-grid"),className:`rttpg-toggle-control-field ${Oe}`,checked:i,onChange:e=>{o({show_taxonomy_filter:e?"show":""}),n()}}),(0,e.createElement)(Le.ToggleControl,{label:un("Author filter","the-post-grid"),className:`rttpg-toggle-control-field ${Oe}`,checked:s,onChange:e=>{o({show_author_filter:e?"show":""}),n()}}),(0,e.createElement)(Le.ToggleControl,{label:un("Order By Filter","the-post-grid"),className:`rttpg-toggle-control-field ${Oe}`,checked:c,onChange:e=>{o({show_order_by:e?"show":""}),n()}}),(0,e.createElement)(Le.ToggleControl,{label:un("Sort Order Filter","the-post-grid"),className:`rttpg-toggle-control-field ${Oe}`,checked:u,onChange:e=>{o({show_sort_order:e?"show":""}),n()}}),(0,e.createElement)(Le.ToggleControl,{label:un("Search filter","the-post-grid"),className:`rttpg-toggle-control-field ${Oe}`,checked:f,onChange:e=>{o({show_search:e?"show":""}),n()}})),"rttpg-has-pro"===Oe&&("show"===i||"show"===s||"show"===c||"show"===u||"show"===f)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("hr",null),(0,e.createElement)(Le.SelectControl,{label:un("Filter Type","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"dropdown",label:un("Dropdown","the-post-grid")},{value:"button",label:un("Button","the-post-grid")}],value:d,onChange:e=>{o({filter_type:e}),n()}}),"button"===d&&(0,e.createElement)(Le.SelectControl,{label:un("Filter Style","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:un("Default","the-post-grid")},{value:"carousel",label:un("Collapsable","the-post-grid")}],value:p,help:un("If you use collapsable then only category section show on the filter","the-post-grid"),onChange:e=>{o({filter_btn_style:e}),n()}}),"show"===i&&(0,e.createElement)(Le.SelectControl,{label:un("Choose Taxonomy","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:w,value:_,onChange:e=>{o({filter_taxonomy:e}),n()}}),(0,e.createElement)(Le.SelectControl,{label:un("Filter Post Count","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"yes",label:un("Yes","the-post-grid")},{value:"no",label:un("No","the-post-grid")}],value:m,onChange:e=>{o({filter_post_count:e}),n()}}),"button"===d&&"default"===p&&(0,e.createElement)(Le.SelectControl,{label:un("Tax Hierarchical","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"yes",label:un("Yes","the-post-grid")},{value:"no",label:un("No","the-post-grid")}],value:g,onChange:e=>{o({tgp_filter_taxonomy_hierarchical:e}),n()}}),"button"===d&&(0,e.createElement)(Le.SelectControl,{label:un("Hide (Show all button)","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"yes",label:un("Show","the-post-grid")},{value:"no",label:un("Hide","the-post-grid")}],value:h,onChange:e=>{o({tpg_hide_all_button:e}),n()}}),(0,e.createElement)(Le.TextControl,{autocomplete:"off",label:un("All Taxonomy Text","the-post-grid"),className:"rttpg-control-field label-inline",placeholder:"Enter All Category Text Here..",value:b,onChange:e=>{o({tax_filter_all_text:e}),n()}})),"show"===s&&"default"===p&&(0,e.createElement)(Le.TextControl,{autocomplete:"off",label:un("All Users Text","the-post-grid"),className:"rttpg-control-field label-inline",placeholder:"Enter All Users Text Here..",value:v,onChange:e=>{o({author_filter_all_text:e}),n()}}))};const{__:dn}=wp.i18n;var pn=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{prefix:n,post_type:l,show_section_title:i,show_title:s,show_thumb:c,show_excerpt:u,show_meta:f,show_date:d,show_category:p,show_tags:m,show_author:g,show_comment_count:h,show_post_count:b,show_read_more:v,show_social_share:_,show_woocommerce_rating:y,show_acf:w}=a;let E=n+"_layout";return(0,e.createElement)(Le.PanelBody,{title:dn("Field Selection","the-post-grid"),initialOpen:!0},(0,e.createElement)(Le.ToggleControl,{label:dn("Section Title","the-post-grid"),className:"rttpg-toggle-control-field",checked:i,onChange:e=>r({show_section_title:e?"show":""})}),"grid-layout7"!==a[E]&&(0,e.createElement)(Le.ToggleControl,{label:dn("Post Title","the-post-grid"),className:"rttpg-toggle-control-field",checked:s,onChange:e=>r({show_title:e?"show":""})}),(0,e.createElement)(Le.ToggleControl,{label:dn("Post Thumbnail","the-post-grid"),className:"rttpg-toggle-control-field",checked:c,onChange:e=>r({show_thumb:e?"show":""})}),!["grid-layout7","slider-layout4"].includes(a[E])&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.ToggleControl,{label:dn("Post Excerpt","the-post-grid"),className:"rttpg-toggle-control-field",checked:u,onChange:e=>r({show_excerpt:e?"show":""})}),(0,e.createElement)(Le.ToggleControl,{label:dn("Meta Data","the-post-grid"),className:"rttpg-toggle-control-field",checked:f,onChange:e=>r({show_meta:e?"show":""})}),"show"===f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.ToggleControl,{label:dn("Post Date","the-post-grid"),className:"rttpg-toggle-control-field rttpg-padding-left",checked:d,onChange:e=>r({show_date:e?"show":""})}),(0,e.createElement)(Le.ToggleControl,{label:dn("Post Category","the-post-grid"),className:"rttpg-toggle-control-field rttpg-padding-left",checked:p,onChange:e=>r({show_category:e?"show":""})}),"show"===p&&(0,e.createElement)("small",{className:"rttpg-help pl-30"},dn("NB: If needed, you can change category source from (Category & tags Settings)","the-post-grid")),(0,e.createElement)(Le.ToggleControl,{label:dn("Post Tags","the-post-grid"),className:"rttpg-toggle-control-field rttpg-padding-left",checked:m,onChange:e=>r({show_tags:e?"show":""})}),"show"===m&&(0,e.createElement)("small",{className:"rttpg-help pl-30"},dn("NB: If needed, you can change tag source from (Meta Data Settings)","the-post-grid")),(0,e.createElement)(Le.ToggleControl,{label:dn("Post Author","the-post-grid"),className:"rttpg-toggle-control-field rttpg-padding-left",checked:g,onChange:e=>r({show_author:e?"show":""})}),(0,e.createElement)(Le.ToggleControl,{label:dn("Post Comment Count","the-post-grid"),className:"rttpg-toggle-control-field rttpg-padding-left",checked:h,onChange:e=>r({show_comment_count:e?"show":""})}),(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},(0,e.createElement)(Le.ToggleControl,{label:dn("Post View Count","the-post-grid"),className:`rttpg-toggle-control-field rttpg-padding-left ${Oe}`,checked:b,onChange:e=>r({show_post_count:e?"show":""})}),"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}))),(0,e.createElement)(Le.ToggleControl,{label:dn("Read More Button","the-post-grid"),className:"rttpg-toggle-control-field",checked:v,onChange:e=>r({show_read_more:e?"show":""})}),(0,e.createElement)(Le.ToggleControl,{label:dn("Social Share","the-post-grid"),className:"rttpg-toggle-control-field",checked:_,onChange:e=>r({show_social_share:e?"show":""})}),"product"===l&&"grid-layout7"!==a[E]&&(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},(0,e.createElement)(Le.ToggleControl,{label:dn("Woocommerce Rating","the-post-grid"),className:`rttpg-toggle-control-field ${Oe}`,checked:y,onChange:e=>r({show_woocommerce_rating:e?"show":""})})),rttpgParams.hasAcf&&!["grid-layout7","slider-layout4"].includes(a[E])&&(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},(0,e.createElement)(Le.ToggleControl,{label:dn("Advanced Custom Field","the-post-grid"),className:`rttpg-toggle-control-field ${Oe}`,checked:w,onChange:e=>{r({show_acf:e?"show":""}),o()}}),"show"===w&&(0,e.createElement)("small",{className:"rttpg-help"},dn("NB. Please choose ACF group from below ACF settings","the-post-grid")),"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}))))};const{__:mn}=wp.i18n;var gn=function(t){const{attributes:a,setAttributes:r}=t.data,{section_title_style:o,section_title_source:n,section_title_text:l,section_title_tag:i,show_section_title:s}=a;return"show"!==s?"":(0,e.createElement)(Le.PanelBody,{title:mn("Section Title","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.SelectControl,{label:mn("Title Style","the-post-grid"),className:"rttpg-control-field label-inline",value:o,options:ae,onChange:e=>r({section_title_style:e})}),(0,e.createElement)(Le.SelectControl,{label:mn("Title Source","the-post-grid"),className:"rttpg-control-field label-inline",value:n,options:re,onChange:e=>r({section_title_source:e})}),"custom_title"===n&&(0,e.createElement)(Le.TextControl,{autocomplete:"off",help:"Help text to explain the input.",label:"Enter Title",value:l,onChange:e=>r({section_title_text:e})}),(0,e.createElement)(Le.SelectControl,{label:mn("Title Tags","the-post-grid"),className:"rttpg-control-field label-inline",options:Q,value:i,onChange:e=>r({section_title_tag:e})}))};const{__:hn}=wp.i18n;var bn=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,title_tag:n,title_visibility_style:l,title_limit:i,title_limit_type:s,title_position:c,title_hover_underline:u,show_title:f}=a;if("show"!==f)return"";let d=o+"_layout";return(0,e.createElement)(Le.PanelBody,{title:hn("Post Title","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.SelectControl,{label:hn("Title Tags","the-post-grid"),className:"rttpg-control-field label-inline",options:Q,value:n,onChange:e=>r({title_tag:e})}),(0,e.createElement)(Le.SelectControl,{label:hn("Title Visibility Style","the-post-grid"),className:"rttpg-control-field label-inline",options:oe,value:l,onChange:e=>r({title_visibility_style:e})}),"custom"===l&&(0,e.createElement)(Le.__experimentalNumberControl,{isShiftStepEnabled:!0,label:hn("Title Length","the-post-grid"),className:"rttpg-control-field label-inline",max:100,min:0,placeholder:"0",shiftStep:5,step:"1",value:i,onChange:e=>r({title_limit:e})}),i>0&&"custom"===l&&(0,e.createElement)(Le.SelectControl,{label:hn("Title Crop by","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"word",label:hn("Words","the-post-grid")},{value:"character",label:hn("Characters","the-post-grid")}],value:s,onChange:e=>r({title_limit_type:e})}),["grid-layout1","grid-layout2","grid-layout3","grid-layout4","slider-layout1","slider-layout2","slider-layout3"].includes(a[d])&&(0,e.createElement)(Le.SelectControl,{label:hn("Title Position","the-post-grid"),className:"rttpg-control-field label-inline",options:le,value:c,onChange:e=>r({title_position:e})}),(0,e.createElement)(Le.SelectControl,{label:hn("Title Hover Underline","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"default",label:hn("Default","the-post-grid")},{value:"enable",label:hn("Enable","the-post-grid")},{value:"disable",label:hn("Disable","the-post-grid")}],value:u,onChange:e=>r({title_hover_underline:e})}))};const{__:vn}=wp.i18n;var yn=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{excerpt_type:n,excerpt_limit:l,excerpt_more_text:i,show_excerpt:s}=a;return"show"!==s?"":(0,e.createElement)(Le.PanelBody,{title:vn("Excerpt","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.SelectControl,{label:vn("Excerpt Type","the-post-grid"),className:"rttpg-control-field label-inline",options:be,value:n,onChange:e=>{r({excerpt_type:e}),o()}}),["character","word"].includes(n)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.__experimentalNumberControl,{label:vn("Excerpt Limit","the-post-grid"),className:"rttpg-control-field label-inline",max:1e3,min:0,value:l,placeholder:"6",shiftStep:10,step:"1",onChange:e=>{r({excerpt_limit:e}),o()}}),(0,e.createElement)(Le.TextControl,{autocomplete:"off",label:vn("Expansion Indicator","the-post-grid"),className:"rttpg-control-field label-inline",value:i,onChange:e=>{r({excerpt_more_text:e}),o()}})))};const{__:wn}=wp.i18n,{Component:En}=wp.element,{MediaUpload:Cn}=wp.blockEditor,{Tooltip:xn,Dashicon:kn}=wp.components;var Nn=class extends En{setSettings(e){const{multiple:t,onChange:a,value:r}=this.props;if(t){let t=[];e.forEach((e=>{e&&e.url&&t.push({url:e.url,id:e.id})})),a(r?r.concat(t):t)}else e&&e.url&&a({url:e.url,id:e.id})}removeImage(e){const{multiple:t,onChange:a}=this.props;if(t){let t=this.props.value.slice();t.splice(e,1),a(t)}else a({})}isUrl(e){return-1!=["wbm","jpg","jpeg","gif","png","svg"].indexOf(e.split(".").pop().toLowerCase())?e:rttpgParams.plugin_url+"assets/images/tpg-placeholder.jpg"}render(){const{type:t,multiple:a,value:r,panel:o,video:n}=this.props;return(0,e.createElement)("div",{className:"rttpg-media"},this.props.label&&(0,e.createElement)("label",null,this.props.label),(0,e.createElement)(Cn,{onSelect:e=>this.setSettings(e),allowedTypes:t.length?[...t]:["image"],multiple:a||!1,value:r,render:t=>{let{open:l}=t;return(0,e.createElement)("div",{className:"rttpg-single-img"},(0,e.createElement)("div",null,a?(0,e.createElement)("div",null,r.length>0&&r.map(((t,a)=>(0,e.createElement)("span",{className:"rttpg-media-image-parent"},(0,e.createElement)("img",{src:this.isUrl(t.url),alt:wn("image")}),o&&(0,e.createElement)("div",{className:"rttpg-media-actions rttpg-field-button-list"},(0,e.createElement)(xn,{text:wn("Edit")},(0,e.createElement)("button",{className:"rttpg-button","aria-label":wn("Edit"),onClick:l,role:"button"},(0,e.createElement)("span",{"aria-label":wn("Edit"),className:"fas fa-pencil-alt fa-fw"}))),(0,e.createElement)(xn,{text:wn("Remove")},(0,e.createElement)("button",{className:"rttpg-button","aria-label":wn("Remove"),onClick:()=>this.removeImage(a),role:"button"},(0,e.createElement)("span",{"aria-label":wn("Close"),className:"far fa-trash-alt fa-fw"}))))))),(0,e.createElement)("div",{onClick:l,className:"rttpg-placeholder-image"},(0,e.createElement)("div",{className:"dashicon dashicons dashicons-insert"}),(0,e.createElement)("div",null,wn("Insert")))):r&&r.url?(0,e.createElement)("span",{className:"rttpg-media-image-parent"},n?(0,e.createElement)("video",{controls:!0,autoPlay:!0,loop:!0,src:r.url}):(0,e.createElement)("img",{src:this.isUrl(r.url),alt:wn("image")}),o&&(0,e.createElement)("div",{className:"rttpg-media-actions rttpg-field-button-list"},(0,e.createElement)(xn,{text:wn("Edit")},(0,e.createElement)("button",{className:"rttpg-button","aria-label":wn("Edit"),onClick:l,role:"button"},(0,e.createElement)("span",{"aria-label":wn("Edit"),className:"fas fa-pencil-alt fa-fw"}))),(0,e.createElement)(xn,{text:wn("Remove")},(0,e.createElement)("button",{className:"rttpg-button","aria-label":wn("Remove"),onClick:()=>this.removeImage(r.id),role:"button"},(0,e.createElement)("span",{"aria-label":wn("Close"),className:"far fa-trash-alt fa-fw"}))))):(0,e.createElement)("div",{onClick:l,className:"rttpg-placeholder-image"},(0,e.createElement)("div",{className:"dashicon dashicons dashicons-insert"}),(0,e.createElement)("div",null,wn("Insert")))))}}))}};const{__:Sn}=wp.i18n;var Dn=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,n=[...t.imageSizes],{prefix:l,media_source:i,image_size:s,img_crop_style:c,c_image_width:u,c_image_height:f,image_height:d,offset_image_height:p,image_offset_size:m,hover_animation:g,is_thumb_lightbox:h,is_default_img:b,default_image:v,list_image_side_width:_,show_thumb:y}=a;if("show"!==y)return"";let w=l+"_layout";return(0,e.createElement)(Le.PanelBody,{title:Sn("Thumbnail","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.SelectControl,{label:Sn("Media Source","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"feature_image",label:Sn("Feature Image","the-post-grid")},{value:"first_image",label:Sn("First Image from content","the-post-grid")}],value:i,onChange:e=>{r({media_source:e}),o()}}),"feature_image"===i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.SelectControl,{label:Sn("Image Size","the-post-grid"),className:"rttpg-control-field label-inline",options:n,value:s,onChange:e=>{r({image_size:e}),o()}}),(0,e.createElement)("div",{className:`rttpg-arert-wrapper ${Oe}`},"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}),(0,e.createElement)(We,{label:Sn("Image Height"),className:`rttpg-control-field label-inline ${Oe}`,responsive:!0,min:0,max:1e3,step:1,value:d,onChange:e=>r({image_height:e})})),"feature_image"===i&&["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","list-layout2","list-layout3","list-layout2-2","list-layout3-2","grid_hover-layout4","grid_hover-layout4-2","grid_hover-layout5","grid_hover-layout5-2","grid_hover-layout6","grid_hover-layout6-2","grid_hover-layout7","grid_hover-layout7-2","grid_hover-layout9","grid_hover-layout9-2","slider-layout10"].includes(a[w])&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.SelectControl,{label:Sn("Offset (Small) Image Size","the-post-grid"),className:"rttpg-control-field label-inline",options:n,value:m,onChange:e=>{r({image_offset_size:e}),o()},help:"Change offset small image size"}),(0,e.createElement)("div",{className:`rttpg-arert-wrapper ${Oe}`},"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}),(0,e.createElement)(We,{label:Sn("Offset (Small) Image Height"),className:`rttpg-control-field label-inline ${Oe}`,responsive:!0,min:0,max:1e3,step:1,value:p,onChange:e=>r({offset_image_height:e})}))),"custom"===s&&"feature_image"===i&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Le.SelectControl,{label:Sn("Image Crop Style","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"soft",label:Sn("Soft Crop","the-post-grid")},{value:"hard",label:Sn("Hard Crop","the-post-grid")}],value:c,onChange:e=>r({img_crop_style:e})}),(0,e.createElement)("div",{className:"rttpg-image-dimension"},(0,e.createElement)("label",{className:"components-base-control__label components-input-control__label",htmlFor:"react-select-2-input"},Sn("Image Dimension","the-post-grid")),(0,e.createElement)(Le.__experimentalNumberControl,{className:"rttpg-control-field",max:2e3,min:1,placeholder:"Width",step:"1",value:u,onChange:e=>r({c_image_width:e})}),(0,e.createElement)(Le.__experimentalNumberControl,{className:"rttpg-control-field",max:2e3,min:1,placeholder:"Height",step:"1",value:f,onChange:e=>r({c_image_height:e})})),(0,e.createElement)("small",{className:"rttpg-help danger"},Sn("NB: Custom image size works only on front-end.","the-post-grid")))),"list"===l&&["list-layout1","list-layout5"].includes(a[w])&&(0,e.createElement)(We,{label:Sn("List Image Width"),responsive:!0,min:0,max:700,step:1,value:_,onChange:e=>r({list_image_side_width:e})}),(0,e.createElement)(Le.SelectControl,{label:Sn("Image Hover Animation","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:Te,value:g,onChange:e=>r({hover_animation:e})}),"rttpg-is-pro"===Oe&&(0,e.createElement)("p",{className:"rttpg-help"},Sn("Please upgrade to pro for more animation","the-post-grid")),(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}}),(0,e.createElement)(Le.SelectControl,{label:Sn("Light Box","the-post-grid"),className:`rttpg-control-field label-inline ${Oe}`,options:[{value:"default",label:Sn("Default","the-post-grid")},{value:"show",label:Sn("Show","the-post-grid")},{value:"hide",label:Sn("Hide","the-post-grid")}],value:h,onChange:e=>r({is_thumb_lightbox:e})}),(0,e.createElement)(Le.ToggleControl,{label:Sn("Enable Default Image","the-post-grid"),className:`rttpg-toggle-control-field ${Oe}`,checked:b,onChange:e=>r({is_default_img:e?"yes":""})}),"yes"===b&&"rttpg-is-pro"!==Oe&&(0,e.createElement)(Nn,{label:Sn("Default Image","the-post-grid"),className:Oe,multiple:!1,type:["image"],panel:!0,value:v,onChange:e=>{r({default_image:e}),o()}})))};const{__:Pn}=wp.i18n;var On=function(t){const{attributes:a,setAttributes:r,changeQuery:o}=t.data,{prefix:n,show_meta:l,show_category:i,category_position:s,category_style:c,show_cat_icon:u,category_source:f,tag_source:d,show_date:p,show_author:m,show_tags:g,show_comment_count:h,show_post_count:b,meta_position:v,meta_separator:_,author_prefix:y,show_meta_icon:w,author_icon_visibility:E,show_author_image:C,meta_ordering:x}=a;if("show"!==l||"show"!==p&&"show"!==i&&"show"!==m&&"show"!==g&&"show"!==h&&"show"!==b)return(0,e.createElement)(e.Fragment,null);let k=n+"_layout";const N=rttpgParams.get_taxonomies;let S=[];for(let e in N){let t=N[e];S.push({value:t.name,label:t.label})}return(0,e.createElement)(Le.PanelBody,{title:Pn("Meta Data","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.SelectControl,{label:Pn("Meta Position","the-post-grid"),className:"rttpg-control-field label-inline",options:me,value:v,onChange:e=>r({meta_position:e})}),"rttpg-is-pro"===Oe&&(0,e.createElement)("p",{className:"rttpg-help"},Pn("Please upgrade to pro for meta position","the-post-grid")),(0,e.createElement)(Le.ToggleControl,{label:Pn("Show Meta Icon","the-post-grid"),className:"rttpg-toggle-control-field",checked:w,onChange:e=>r({show_meta_icon:e?"yes":""})}),(0,e.createElement)(Le.SelectControl,{label:Pn("Meta Separator","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"default",label:Pn("Default - None","the-post-grid")},{value:".",label:Pn("Dot ( . )","the-post-grid")},{value:"/",label:Pn("Single Slash ( / )","the-post-grid")},{value:"//",label:Pn("Double Slash ( // )","the-post-grid")},{value:"-",label:Pn("Hyphen ( - )","the-post-grid")},{value:"|",label:Pn("Vertical Pipe ( | )","the-post-grid")}],value:_,onChange:e=>r({meta_separator:e})}),(0,e.createElement)("hr",null),"show"===m&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},Pn("Author Setting:","the-post-grid")),(0,e.createElement)(Le.TextControl,{autocomplete:"off",label:Pn("Author Prefix","the-post-grid"),placeholder:"By",className:"rttpg-control-field label-inline",value:y,onChange:e=>r({author_prefix:e})}),(0,e.createElement)(Le.SelectControl,{label:Pn("Author Icon Visibility","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"default",label:Pn("Default","the-post-grid")},{value:"hide",label:Pn("Hide","the-post-grid")},{value:"show",label:Pn("Show","the-post-grid")}],value:E,onChange:e=>r({author_icon_visibility:e})}),"hide"!==E&&(0,e.createElement)(Le.SelectControl,{label:Pn("Author Image / Icon","the-post-grid"),className:"rttpg-control-field label-inline",options:[{value:"image",label:Pn("Image","the-post-grid")},{value:"icon",label:Pn("Icon","the-post-grid")}],value:C,onChange:e=>r({show_author_image:e})})),"show"===l&&"show"===i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},Pn("Category and Tags Setting:","the-post-grid")),(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},(0,e.createElement)(Le.SelectControl,{label:Pn("Category Position","the-post-grid"),className:`rttpg-control-field label-inline ${Oe}`,options:[{value:"default",label:Pn("Default","the-post-grid")},{value:"above_title",label:Pn("Above Title","the-post-grid")},{value:"with_meta",label:Pn("With Meta","the-post-grid")},{value:"top_left",label:Pn("Over image (Top Left)","the-post-grid")},{value:"top_right",label:Pn("Over image (Top Right)","the-post-grid")},{value:"bottom_left",label:Pn("Over image (Bottom Left)","the-post-grid")},{value:"bottom_right",label:Pn("Over image (Bottom Right)","the-post-grid")},{value:"image_center",label:Pn("Over image (Center)","the-post-grid")}],value:s,onChange:e=>{r({category_position:e}),o()}}),"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}})),("default"!==s||["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2"].includes(a[k]))&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.SelectControl,{label:Pn("Category Style","the-post-grid"),className:"rttpg-control-field label-inline ",options:[{value:"style1",label:Pn("Style 1 - Only Text","the-post-grid")},{value:"style2",label:Pn("Style 2 - Background","the-post-grid")},{value:"style3",label:Pn("Style 3","the-post-grid")}],value:c,onChange:e=>r({category_style:e})}),"with_meta"!==s&&(0,e.createElement)(Le.ToggleControl,{label:Pn("Show Over Image Category Icon","the-post-grid"),className:"rttpg-toggle-control-field",checked:u,onChange:e=>r({show_cat_icon:e?"yes":""})})),(0,e.createElement)(Le.SelectControl,{label:Pn("Category Source","the-post-grid"),className:"rttpg-control-field label-inline ",options:S,value:f,onChange:e=>{r({category_source:e}),o()}}),(0,e.createElement)(Le.SelectControl,{label:Pn("Tag Source","the-post-grid"),className:"rttpg-control-field label-inline ",options:S,value:d,onChange:e=>{r({tag_source:e}),o()}})),(0,e.createElement)("div",{className:"components-base-control rttpg-repeater"},(0,e.createElement)("label",{className:"components-base-control__label components-input-control__label",htmlFor:"react-select-2-input"},Pn("Meta Ordering","the-post-grid")),(0,e.createElement)(tn,{options:Pe,value:x,onChange:e=>{r({meta_ordering:e}),o()},help:Pn("Select sequentially from here for sort meta order.","the-post-grid"),isMulti:!0,closeMenuOnSelect:!1,isClearable:!1})))};const{Spinner:Mn}=wp.components,{__:Tn}=wp.i18n;var In=function(t){var a;const{attributes:r,setAttributes:o,changeQuery:n}=t.data,{show_acf:l,cf_hide_empty_value:i,cf_hide_group_title:s,cf_show_only_value:c,acf_data_lists:u,post_type:f}=r;if(!rttpgParams.hasAcf||!rttpgParams.hasPro||"show"!==l)return"";const d=[...t.acfData].find((e=>(null==e?void 0:e.post_type)===f));return(0,e.createElement)(Le.PanelBody,{title:Tn("ACF","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},Tn("Choose ACF Field:","the-post-grid")),(0,e.createElement)("div",{className:"components-base-control rttpg-repeater"},(0,e.createElement)(tn,{options:null==d?void 0:d.options,value:null===(a=u[(null==d?void 0:d.post_type)+"_cf_group"])||void 0===a?void 0:a.options,onChange:e=>{t.changeAcfData(e,(null==d?void 0:d.post_type)+"_cf_group")},isMulti:!0,closeMenuOnSelect:!0,isClearable:!1})),(0,e.createElement)(Le.ToggleControl,{label:Tn("Hide field with empty value?","the-post-grid"),className:"rttpg-toggle-control-field",checked:i,onChange:e=>{o({cf_hide_empty_value:e?"show":""}),n()}}),(0,e.createElement)(Le.ToggleControl,{label:Tn("Show group title?","the-post-grid"),className:"rttpg-toggle-control-field",checked:s,onChange:e=>{o({cf_hide_group_title:e?"show":""}),n()}}),(0,e.createElement)(Le.ToggleControl,{label:Tn("Show label?","the-post-grid"),className:"rttpg-toggle-control-field",checked:c,onChange:e=>{o({cf_show_only_value:e?"show":""}),n()}}))},Ln=["fas fa-ad","fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-air-freshener","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-angry","fas fa-ankh","fas fa-apple-alt","fas fa-archive","fas fa-archway","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-atlas","fas fa-atom","fas fa-audio-description","fas fa-award","fas fa-baby","fas fa-baby-carriage","fas fa-backspace","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars","fas fa-baseball-ball","fas fa-basketball-ball","fas fa-bath","fas fa-battery-empty","fas fa-battery-full","fas fa-battery-half","fas fa-battery-quarter","fas fa-battery-three-quarters","fas fa-bed","fas fa-beer","fas fa-bell","fas fa-bell-slash","fas fa-bezier-curve","fas fa-bible","fas fa-bicycle","fas fa-binoculars","fas fa-biohazard","fas fa-birthday-cake","fas fa-blender","fas fa-blender-phone","fas fa-blind","fas fa-blog","fas fa-bold","fas fa-bolt","fas fa-bomb","fas fa-bone","fas fa-bong","fas fa-book","fas fa-book-dead","fas fa-book-open","fas fa-book-reader","fas fa-bookmark","fas fa-bowling-ball","fas fa-box","fas fa-box-open","fas fa-boxes","fas fa-braille","fas fa-brain","fas fa-briefcase","fas fa-briefcase-medical","fas fa-broadcast-tower","fas fa-broom","fas fa-brush","fas fa-bug","fas fa-building","fas fa-bullhorn","fas fa-bullseye","fas fa-burn","fas fa-bus","fas fa-bus-alt","fas fa-business-time","fas fa-calculator","fas fa-calendar","fas fa-calendar-alt","fas fa-calendar-check","fas fa-calendar-day","fas fa-calendar-minus","fas fa-calendar-plus","fas fa-calendar-times","fas fa-calendar-week","fas fa-camera","fas fa-camera-retro","fas fa-campground","fas fa-candy-cane","fas fa-cannabis","fas fa-capsules","fas fa-car","fas fa-car-alt","fas fa-car-battery","fas fa-car-crash","fas fa-car-side","fas fa-caret-down","fas fa-caret-left","fas fa-caret-right","fas fa-caret-square-down","fas fa-caret-square-left","fas fa-caret-square-right","fas fa-caret-square-up","fas fa-caret-up","fas fa-carrot","fas fa-cart-arrow-down","fas fa-cart-plus","fas fa-cash-register","fas fa-cat","fas fa-certificate","fas fa-chair","fas fa-chalkboard","fas fa-chalkboard-teacher","fas fa-charging-station","fas fa-chart-area","fas fa-chart-bar","fas fa-chart-line","fas fa-chart-pie","fas fa-check","fas fa-check-circle","fas fa-check-double","fas fa-check-square","fas fa-chess","fas fa-chess-bishop","fas fa-chess-board","fas fa-chess-king","fas fa-chess-knight","fas fa-chess-pawn","fas fa-chess-queen","fas fa-chess-rook","fas fa-chevron-circle-down","fas fa-chevron-circle-left","fas fa-chevron-circle-right","fas fa-chevron-circle-up","fas fa-chevron-down","fas fa-chevron-left","fas fa-chevron-right","fas fa-chevron-up","fas fa-child","fas fa-church","fas fa-circle","fas fa-circle-notch","fas fa-city","fas fa-clipboard","fas fa-clipboard-check","fas fa-clipboard-list","fas fa-clock","fas fa-clone","fas fa-closed-captioning","fas fa-cloud","fas fa-cloud-download-alt","fas fa-cloud-meatball","fas fa-cloud-moon","fas fa-cloud-moon-rain","fas fa-cloud-rain","fas fa-cloud-showers-heavy","fas fa-cloud-sun","fas fa-cloud-sun-rain","fas fa-cloud-upload-alt","fas fa-cocktail","fas fa-code","fas fa-code-branch","fas fa-coffee","fas fa-cog","fas fa-cogs","fas fa-coins","fas fa-columns","fas fa-comment","fas fa-comment-alt","fas fa-comment-dollar","fas fa-comment-dots","fas fa-comment-slash","fas fa-comments","fas fa-comments-dollar","fas fa-compact-disc","fas fa-compass","fas fa-compress","fas fa-compress-arrows-alt","fas fa-concierge-bell","fas fa-cookie","fas fa-cookie-bite","fas fa-copy","fas fa-copyright","fas fa-couch","fas fa-credit-card","fas fa-crop","fas fa-crop-alt","fas fa-cross","fas fa-crosshairs","fas fa-crow","fas fa-crown","fas fa-cube","fas fa-cubes","fas fa-cut","fas fa-database","fas fa-deaf","fas fa-democrat","fas fa-desktop","fas fa-dharmachakra","fas fa-diagnoses","fas fa-dice","fas fa-dice-d20","fas fa-dice-d6","fas fa-dice-five","fas fa-dice-four","fas fa-dice-one","fas fa-dice-six","fas fa-dice-three","fas fa-dice-two","fas fa-digital-tachograph","fas fa-directions","fas fa-divide","fas fa-dizzy","fas fa-dna","fas fa-dog","fas fa-dollar-sign","fas fa-dolly","fas fa-dolly-flatbed","fas fa-donate","fas fa-door-closed","fas fa-door-open","fas fa-dot-circle","fas fa-dove","fas fa-download","fas fa-drafting-compass","fas fa-dragon","fas fa-draw-polygon","fas fa-drum","fas fa-drum-steelpan","fas fa-drumstick-bite","fas fa-dumbbell","fas fa-dumpster","fas fa-dumpster-fire","fas fa-dungeon","fas fa-edit","fas fa-eject","fas fa-ellipsis-h","fas fa-ellipsis-v","fas fa-envelope","fas fa-envelope-open","fas fa-envelope-open-text","fas fa-envelope-square","fas fa-equals","fas fa-eraser","fas fa-ethernet","fas fa-euro-sign","fas fa-exchange-alt","fas fa-exclamation","fas fa-exclamation-circle","fas fa-exclamation-triangle","fas fa-expand","fas fa-expand-arrows-alt","fas fa-external-link-alt","fas fa-external-link-square-alt","fas fa-eye","fas fa-eye-dropper","fas fa-eye-slash","fas fa-fast-backward","fas fa-fast-forward","fas fa-fax","fas fa-feather","fas fa-feather-alt","fas fa-female","fas fa-fighter-jet","fas fa-file","fas fa-file-alt","fas fa-file-archive","fas fa-file-audio","fas fa-file-code","fas fa-file-contract","fas fa-file-csv","fas fa-file-download","fas fa-file-excel","fas fa-file-export","fas fa-file-image","fas fa-file-import","fas fa-file-invoice","fas fa-file-invoice-dollar","fas fa-file-medical","fas fa-file-medical-alt","fas fa-file-pdf","fas fa-file-powerpoint","fas fa-file-prescription","fas fa-file-signature","fas fa-file-upload","fas fa-file-video","fas fa-file-word","fas fa-fill","fas fa-fill-drip","fas fa-film","fas fa-filter","fas fa-fingerprint","fas fa-fire","fas fa-fire-alt","fas fa-fire-extinguisher","fas fa-first-aid","fas fa-fish","fas fa-fist-raised","fas fa-flag","fas fa-flag-checkered","fas fa-flag-usa","fas fa-flask","fas fa-flushed","fas fa-folder","fas fa-folder-minus","fas fa-folder-open","fas fa-folder-plus","fas fa-font","fas fa-football-ball","fas fa-forward","fas fa-frog","fas fa-frown","fas fa-frown-open","fas fa-funnel-dollar","fas fa-futbol","fas fa-gamepad","fas fa-gas-pump","fas fa-gavel","fas fa-gem","fas fa-genderless","fas fa-ghost","fas fa-gift","fas fa-gifts","fas fa-glass-cheers","fas fa-glass-martini","fas fa-glass-martini-alt","fas fa-glass-whiskey","fas fa-glasses","fas fa-globe","fas fa-globe-africa","fas fa-globe-americas","fas fa-globe-asia","fas fa-globe-europe","fas fa-golf-ball","fas fa-gopuram","fas fa-graduation-cap","fas fa-greater-than","fas fa-greater-than-equal","fas fa-grimace","fas fa-grin","fas fa-grin-alt","fas fa-grin-beam","fas fa-grin-beam-sweat","fas fa-grin-hearts","fas fa-grin-squint","fas fa-grin-squint-tears","fas fa-grin-stars","fas fa-grin-tears","fas fa-grin-tongue","fas fa-grin-tongue-squint","fas fa-grin-tongue-wink","fas fa-grin-wink","fas fa-grip-horizontal","fas fa-grip-lines","fas fa-grip-lines-vertical","fas fa-grip-vertical","fas fa-guitar","fas fa-h-square","fas fa-hammer","fas fa-hamsa","fas fa-hand-holding","fas fa-hand-holding-heart","fas fa-hand-holding-usd","fas fa-hand-lizard","fas fa-hand-paper","fas fa-hand-peace","fas fa-hand-point-down","fas fa-hand-point-left","fas fa-hand-point-right","fas fa-hand-point-up","fas fa-hand-pointer","fas fa-hand-rock","fas fa-hand-scissors","fas fa-hand-spock","fas fa-hands","fas fa-hands-helping","fas fa-handshake","fas fa-hanukiah","fas fa-hashtag","fas fa-hat-wizard","fas fa-haykal","fas fa-hdd","fas fa-heading","fas fa-headphones","fas fa-headphones-alt","fas fa-headset","fas fa-heart","fas fa-heart-broken","fas fa-heartbeat","fas fa-helicopter","fas fa-highlighter","fas fa-hiking","fas fa-hippo","fas fa-history","fas fa-hockey-puck","fas fa-holly-berry","fas fa-home","fas fa-horse","fas fa-horse-head","fas fa-hospital","fas fa-hospital-alt","fas fa-hospital-symbol","fas fa-hot-tub","fas fa-hotel","fas fa-hourglass","fas fa-hourglass-end","fas fa-hourglass-half","fas fa-hourglass-start","fas fa-house-damage","fas fa-hryvnia","fas fa-i-cursor","fas fa-icicles","fas fa-id-badge","fas fa-id-card","fas fa-id-card-alt","fas fa-igloo","fas fa-image","fas fa-images","fas fa-inbox","fas fa-indent","fas fa-industry","fas fa-infinity","fas fa-info","fas fa-info-circle","fas fa-italic","fas fa-jedi","fas fa-joint","fas fa-journal-whills","fas fa-kaaba","fas fa-key","fas fa-keyboard","fas fa-khanda","fas fa-kiss","fas fa-kiss-beam","fas fa-kiss-wink-heart","fas fa-kiwi-bird","fas fa-landmark","fas fa-language","fas fa-laptop","fas fa-laptop-code","fas fa-laugh","fas fa-laugh-beam","fas fa-laugh-squint","fas fa-laugh-wink","fas fa-layer-group","fas fa-leaf","fas fa-lemon","fas fa-less-than","fas fa-less-than-equal","fas fa-level-down-alt","fas fa-level-up-alt","fas fa-life-ring","fas fa-lightbulb","fas fa-link","fas fa-lira-sign","fas fa-list","fas fa-list-alt","fas fa-list-ol","fas fa-list-ul","fas fa-location-arrow","fas fa-lock","fas fa-lock-open","fas fa-long-arrow-alt-down","fas fa-long-arrow-alt-left","fas fa-long-arrow-alt-right","fas fa-long-arrow-alt-up","fas fa-low-vision","fas fa-luggage-cart","fas fa-magic","fas fa-magnet","fas fa-mail-bulk","fas fa-male","fas fa-map","fas fa-map-marked","fas fa-map-marked-alt","fas fa-map-marker","fas fa-map-marker-alt","fas fa-map-pin","fas fa-map-signs","fas fa-marker","fas fa-mars","fas fa-mars-double","fas fa-mars-stroke","fas fa-mars-stroke-h","fas fa-mars-stroke-v","fas fa-mask","fas fa-medal","fas fa-medkit","fas fa-meh","fas fa-meh-blank","fas fa-meh-rolling-eyes","fas fa-memory","fas fa-menorah","fas fa-mercury","fas fa-meteor","fas fa-microchip","fas fa-microphone","fas fa-microphone-alt","fas fa-microphone-alt-slash","fas fa-microphone-slash","fas fa-microscope","fas fa-minus","fas fa-minus-circle","fas fa-minus-square","fas fa-mitten","fas fa-mobile","fas fa-mobile-alt","fas fa-money-bill","fas fa-money-bill-alt","fas fa-money-bill-wave","fas fa-money-bill-wave-alt","fas fa-money-check","fas fa-money-check-alt","fas fa-monument","fas fa-moon","fas fa-mortar-pestle","fas fa-mosque","fas fa-motorcycle","fas fa-mountain","fas fa-mouse-pointer","fas fa-mug-hot","fas fa-music","fas fa-network-wired","fas fa-neuter","fas fa-newspaper","fas fa-not-equal","fas fa-notes-medical","fas fa-object-group","fas fa-object-ungroup","fas fa-oil-can","fas fa-om","fas fa-otter","fas fa-outdent","fas fa-paint-brush","fas fa-paint-roller","fas fa-palette","fas fa-pallet","fas fa-paper-plane","fas fa-paperclip","fas fa-parachute-box","fas fa-paragraph","fas fa-parking","fas fa-passport","fas fa-pastafarianism","fas fa-paste","fas fa-pause","fas fa-pause-circle","fas fa-paw","fas fa-peace","fas fa-pen","fas fa-pen-alt","fas fa-pen-fancy","fas fa-pen-nib","fas fa-pen-square","fas fa-pencil-alt","fas fa-pencil-ruler","fas fa-people-carry","fas fa-percent","fas fa-percentage","fas fa-person-booth","fas fa-phone","fas fa-phone-slash","fas fa-phone-square","fas fa-phone-volume","fas fa-piggy-bank","fas fa-pills","fas fa-place-of-worship","fas fa-plane","fas fa-plane-arrival","fas fa-plane-departure","fas fa-play","fas fa-play-circle","fas fa-plug","fas fa-plus","fas fa-plus-circle","fas fa-plus-square","fas fa-podcast","fas fa-poll","fas fa-poll-h","fas fa-poo","fas fa-poo-storm","fas fa-poop","fas fa-portrait","fas fa-pound-sign","fas fa-power-off","fas fa-pray","fas fa-praying-hands","fas fa-prescription","fas fa-prescription-bottle","fas fa-prescription-bottle-alt","fas fa-print","fas fa-procedures","fas fa-project-diagram","fas fa-puzzle-piece","fas fa-qrcode","fas fa-question","fas fa-question-circle","fas fa-quidditch","fas fa-quote-left","fas fa-quote-right","fas fa-quran","fas fa-radiation","fas fa-radiation-alt","fas fa-rainbow","fas fa-random","fas fa-receipt","fas fa-recycle","fas fa-redo","fas fa-redo-alt","fas fa-registered","fas fa-reply","fas fa-reply-all","fas fa-republican","fas fa-restroom","fas fa-retweet","fas fa-ribbon","fas fa-ring","fas fa-road","fas fa-robot","fas fa-rocket","fas fa-route","fas fa-rss","fas fa-rss-square","fas fa-ruble-sign","fas fa-ruler","fas fa-ruler-combined","fas fa-ruler-horizontal","fas fa-ruler-vertical","fas fa-running","fas fa-rupee-sign","fas fa-sad-cry","fas fa-sad-tear","fas fa-satellite","fas fa-satellite-dish","fas fa-save","fas fa-school","fas fa-screwdriver","fas fa-scroll","fas fa-sd-card","fas fa-search","fas fa-search-dollar","fas fa-search-location","fas fa-search-minus","fas fa-search-plus","fas fa-seedling","fas fa-server","fas fa-shapes","fas fa-share","fas fa-share-alt","fas fa-share-alt-square","fas fa-share-square","fas fa-shekel-sign","fas fa-shield-alt","fas fa-ship","fas fa-shipping-fast","fas fa-shoe-prints","fas fa-shopping-bag","fas fa-shopping-basket","fas fa-shopping-cart","fas fa-shower","fas fa-shuttle-van","fas fa-sign","fas fa-sign-in-alt","fas fa-sign-language","fas fa-sign-out-alt","fas fa-signal","fas fa-signature","fas fa-sim-card","fas fa-sitemap","fas fa-skating","fas fa-skiing","fas fa-skiing-nordic","fas fa-skull","fas fa-skull-crossbones","fas fa-slash","fas fa-sleigh","fas fa-sliders-h","fas fa-smile","fas fa-smile-beam","fas fa-smile-wink","fas fa-smog","fas fa-smoking","fas fa-smoking-ban","fas fa-sms","fas fa-snowboarding","fas fa-snowflake","fas fa-snowman","fas fa-snowplow","fas fa-socks","fas fa-solar-panel","fas fa-sort","fas fa-sort-alpha-down","fas fa-sort-alpha-up","fas fa-sort-amount-down","fas fa-sort-amount-up","fas fa-sort-down","fas fa-sort-numeric-down","fas fa-sort-numeric-up","fas fa-sort-up","fas fa-spa","fas fa-space-shuttle","fas fa-spider","fas fa-spinner","fas fa-splotch","fas fa-spray-can","fas fa-square","fas fa-square-full","fas fa-square-root-alt","fas fa-stamp","fas fa-star","fas fa-star-and-crescent","fas fa-star-half","fas fa-star-half-alt","fas fa-star-of-david","fas fa-star-of-life","fas fa-step-backward","fas fa-step-forward","fas fa-stethoscope","fas fa-sticky-note","fas fa-stop","fas fa-stop-circle","fas fa-stopwatch","fas fa-store","fas fa-store-alt","fas fa-stream","fas fa-street-view","fas fa-strikethrough","fas fa-stroopwafel","fas fa-subscript","fas fa-subway","fas fa-suitcase","fas fa-suitcase-rolling","fas fa-sun","fas fa-superscript","fas fa-surprise","fas fa-swatchbook","fas fa-swimmer","fas fa-swimming-pool","fas fa-synagogue","fas fa-sync","fas fa-sync-alt","fas fa-syringe","fas fa-table","fas fa-table-tennis","fas fa-tablet","fas fa-tablet-alt","fas fa-tablets","fas fa-tachometer-alt","fas fa-tag","fas fa-tags","fas fa-tape","fas fa-tasks","fas fa-taxi","fas fa-teeth","fas fa-teeth-open","fas fa-temperature-high","fas fa-temperature-low","fas fa-tenge","fas fa-terminal","fas fa-text-height","fas fa-text-width","fas fa-th","fas fa-th-large","fas fa-th-list","fas fa-theater-masks","fas fa-thermometer","fas fa-thermometer-empty","fas fa-thermometer-full","fas fa-thermometer-half","fas fa-thermometer-quarter","fas fa-thermometer-three-quarters","fas fa-thumbs-down","fas fa-thumbs-up","fas fa-thumbtack","fas fa-ticket-alt","fas fa-times","fas fa-times-circle","fas fa-tint","fas fa-tint-slash","fas fa-tired","fas fa-toggle-off","fas fa-toggle-on","fas fa-toilet","fas fa-toilet-paper","fas fa-toolbox","fas fa-tools","fas fa-tooth","fas fa-torah","fas fa-torii-gate","fas fa-tractor","fas fa-trademark","fas fa-traffic-light","fas fa-train","fas fa-tram","fas fa-transgender","fas fa-transgender-alt","fas fa-trash","fas fa-trash-alt","fas fa-tree","fas fa-trophy","fas fa-truck","fas fa-truck-loading","fas fa-truck-monster","fas fa-truck-moving","fas fa-truck-pickup","fas fa-tshirt","fas fa-tty","fas fa-tv","fas fa-umbrella","fas fa-umbrella-beach","fas fa-underline","fas fa-undo","fas fa-undo-alt","fas fa-universal-access","fas fa-university","fas fa-unlink","fas fa-unlock","fas fa-unlock-alt","fas fa-upload","fas fa-user","fas fa-user-alt","fas fa-user-alt-slash","fas fa-user-astronaut","fas fa-user-check","fas fa-user-circle","fas fa-user-clock","fas fa-user-cog","fas fa-user-edit","fas fa-user-friends","fas fa-user-graduate","fas fa-user-injured","fas fa-user-lock","fas fa-user-md","fas fa-user-minus","fas fa-user-ninja","fas fa-user-plus","fas fa-user-secret","fas fa-user-shield","fas fa-user-slash","fas fa-user-tag","fas fa-user-tie","fas fa-user-times","fas fa-users","fas fa-users-cog","fas fa-utensil-spoon","fas fa-utensils","fas fa-vector-square","fas fa-venus","fas fa-venus-double","fas fa-venus-mars","fas fa-vial","fas fa-vials","fas fa-video","fas fa-video-slash","fas fa-vihara","fas fa-volleyball-ball","fas fa-volume-down","fas fa-volume-mute","fas fa-volume-off","fas fa-volume-up","fas fa-vote-yea","fas fa-vr-cardboard","fas fa-walking","fas fa-wallet","fas fa-warehouse","fas fa-water","fas fa-weight","fas fa-weight-hanging","fas fa-wheelchair","fas fa-wifi","fas fa-wind","fas fa-window-close","fas fa-window-maximize","fas fa-window-minimize","fas fa-window-restore","fas fa-wine-bottle","fas fa-wine-glass","fas fa-wine-glass-alt","fas fa-won-sign","fas fa-wrench","fas fa-x-ray","fas fa-yen-sign","fas fa-yin-yang","far fa-address-book","far fa-address-card","far fa-angry","far fa-arrow-alt-circle-down","far fa-arrow-alt-circle-left","far fa-arrow-alt-circle-right","far fa-arrow-alt-circle-up","far fa-bell","far fa-bell-slash","far fa-bookmark","far fa-building","far fa-calendar","far fa-calendar-alt","far fa-calendar-check","far fa-calendar-minus","far fa-calendar-plus","far fa-calendar-times","far fa-caret-square-down","far fa-caret-square-left","far fa-caret-square-right","far fa-caret-square-up","far fa-chart-bar","far fa-check-circle","far fa-check-square","far fa-circle","far fa-clipboard","far fa-clock","far fa-clone","far fa-closed-captioning","far fa-comment","far fa-comment-alt","far fa-comment-dots","far fa-comments","far fa-compass","far fa-copy","far fa-copyright","far fa-credit-card","far fa-dizzy","far fa-dot-circle","far fa-edit","far fa-envelope","far fa-envelope-open","far fa-eye","far fa-eye-slash","far fa-file","far fa-file-alt","far fa-file-archive","far fa-file-audio","far fa-file-code","far fa-file-excel","far fa-file-image","far fa-file-pdf","far fa-file-powerpoint","far fa-file-video","far fa-file-word","far fa-flag","far fa-flushed","far fa-folder","far fa-folder-open","far fa-frown","far fa-frown-open","far fa-futbol","far fa-gem","far fa-grimace","far fa-grin","far fa-grin-alt","far fa-grin-beam","far fa-grin-beam-sweat","far fa-grin-hearts","far fa-grin-squint","far fa-grin-squint-tears","far fa-grin-stars","far fa-grin-tears","far fa-grin-tongue","far fa-grin-tongue-squint","far fa-grin-tongue-wink","far fa-grin-wink","far fa-hand-lizard","far fa-hand-paper","far fa-hand-peace","far fa-hand-point-down","far fa-hand-point-left","far fa-hand-point-right","far fa-hand-point-up","far fa-hand-pointer","far fa-hand-rock","far fa-hand-scissors","far fa-hand-spock","far fa-handshake","far fa-hdd","far fa-heart","far fa-hospital","far fa-hourglass","far fa-id-badge","far fa-id-card","far fa-image","far fa-images","far fa-keyboard","far fa-kiss","far fa-kiss-beam","far fa-kiss-wink-heart","far fa-laugh","far fa-laugh-beam","far fa-laugh-squint","far fa-laugh-wink","far fa-lemon","far fa-life-ring","far fa-lightbulb","far fa-list-alt","far fa-map","far fa-meh","far fa-meh-blank","far fa-meh-rolling-eyes","far fa-minus-square","far fa-money-bill-alt","far fa-moon","far fa-newspaper","far fa-object-group","far fa-object-ungroup","far fa-paper-plane","far fa-pause-circle","far fa-play-circle","far fa-plus-square","far fa-question-circle","far fa-registered","far fa-sad-cry","far fa-sad-tear","far fa-save","far fa-share-square","far fa-smile","far fa-smile-beam","far fa-smile-wink","far fa-snowflake","far fa-square","far fa-star","far fa-star-half","far fa-sticky-note","far fa-stop-circle","far fa-sun","far fa-surprise","far fa-thumbs-down","far fa-thumbs-up","far fa-times-circle","far fa-tired","far fa-trash-alt","far fa-user","far fa-user-circle","far fa-window-close","far fa-window-maximize","far fa-window-minimize","far fa-window-restore","fab fa-500px","fab fa-accessible-icon","fab fa-accusoft","fab fa-acquisitions-incorporated","fab fa-adn","fab fa-adobe","fab fa-adversal","fab fa-affiliatetheme","fab fa-algolia","fab fa-alipay","fab fa-amazon","fab fa-amazon-pay","fab fa-amilia","fab fa-android","fab fa-angellist","fab fa-angrycreative","fab fa-angular","fab fa-app-store","fab fa-app-store-ios","fab fa-apper","fab fa-apple","fab fa-apple-pay","fab fa-artstation","fab fa-asymmetrik","fab fa-atlassian","fab fa-audible","fab fa-autoprefixer","fab fa-avianex","fab fa-aviato","fab fa-aws","fab fa-bandcamp","fab fa-behance","fab fa-behance-square","fab fa-bimobject","fab fa-bitbucket","fab fa-bitcoin","fab fa-bity","fab fa-black-tie","fab fa-blackberry","fab fa-blogger","fab fa-blogger-b","fab fa-bluetooth","fab fa-bluetooth-b","fab fa-btc","fab fa-buromobelexperte","fab fa-buysellads","fab fa-canadian-maple-leaf","fab fa-cc-amazon-pay","fab fa-cc-amex","fab fa-cc-apple-pay","fab fa-cc-diners-club","fab fa-cc-discover","fab fa-cc-jcb","fab fa-cc-mastercard","fab fa-cc-paypal","fab fa-cc-stripe","fab fa-cc-visa","fab fa-centercode","fab fa-centos","fab fa-chrome","fab fa-cloudscale","fab fa-cloudsmith","fab fa-cloudversify","fab fa-codepen","fab fa-codiepie","fab fa-confluence","fab fa-connectdevelop","fab fa-contao","fab fa-cpanel","fab fa-creative-commons","fab fa-creative-commons-by","fab fa-creative-commons-nc","fab fa-creative-commons-nc-eu","fab fa-creative-commons-nc-jp","fab fa-creative-commons-nd","fab fa-creative-commons-pd","fab fa-creative-commons-pd-alt","fab fa-creative-commons-remix","fab fa-creative-commons-sa","fab fa-creative-commons-sampling","fab fa-creative-commons-sampling-plus","fab fa-creative-commons-share","fab fa-creative-commons-zero","fab fa-critical-role","fab fa-css3","fab fa-css3-alt","fab fa-cuttlefish","fab fa-d-and-d","fab fa-d-and-d-beyond","fab fa-dashcube","fab fa-delicious","fab fa-deploydog","fab fa-deskpro","fab fa-dev","fab fa-deviantart","fab fa-dhl","fab fa-diaspora","fab fa-digg","fab fa-digital-ocean","fab fa-discord","fab fa-discourse","fab fa-dochub","fab fa-docker","fab fa-draft2digital","fab fa-dribbble","fab fa-dribbble-square","fab fa-dropbox","fab fa-drupal","fab fa-dyalog","fab fa-earlybirds","fab fa-ebay","fab fa-edge","fab fa-elementor","fab fa-ello","fab fa-ember","fab fa-empire","fab fa-envira","fab fa-erlang","fab fa-ethereum","fab fa-etsy","fab fa-expeditedssl","fab fa-facebook","fab fa-facebook-f","fab fa-facebook-messenger","fab fa-facebook-square","fab fa-fantasy-flight-games","fab fa-fedex","fab fa-fedora","fab fa-figma","fab fa-firefox","fab fa-first-order","fab fa-first-order-alt","fab fa-firstdraft","fab fa-flickr","fab fa-flipboard","fab fa-fly","fab fa-font-awesome","fab fa-font-awesome-alt","fab fa-font-awesome-flag","fab fa-fonticons","fab fa-fonticons-fi","fab fa-fort-awesome","fab fa-fort-awesome-alt","fab fa-forumbee","fab fa-foursquare","fab fa-free-code-camp","fab fa-freebsd","fab fa-fulcrum","fab fa-galactic-republic","fab fa-galactic-senate","fab fa-get-pocket","fab fa-gg","fab fa-gg-circle","fab fa-git","fab fa-git-square","fab fa-github","fab fa-github-alt","fab fa-github-square","fab fa-gitkraken","fab fa-gitlab","fab fa-gitter","fab fa-glide","fab fa-glide-g","fab fa-gofore","fab fa-goodreads","fab fa-goodreads-g","fab fa-google","fab fa-google-drive","fab fa-google-play","fab fa-google-plus","fab fa-google-plus-g","fab fa-google-plus-square","fab fa-google-wallet","fab fa-gratipay","fab fa-grav","fab fa-gripfire","fab fa-grunt","fab fa-gulp","fab fa-hacker-news","fab fa-hacker-news-square","fab fa-hackerrank","fab fa-hips","fab fa-hire-a-helper","fab fa-hooli","fab fa-hornbill","fab fa-hotjar","fab fa-houzz","fab fa-html5","fab fa-hubspot","fab fa-imdb","fab fa-instagram","fab fa-intercom","fab fa-internet-explorer","fab fa-invision","fab fa-ioxhost","fab fa-itunes","fab fa-itunes-note","fab fa-java","fab fa-jedi-order","fab fa-jenkins","fab fa-jira","fab fa-joget","fab fa-joomla","fab fa-js","fab fa-js-square","fab fa-jsfiddle","fab fa-kaggle","fab fa-keybase","fab fa-keycdn","fab fa-kickstarter","fab fa-kickstarter-k","fab fa-korvue","fab fa-laravel","fab fa-lastfm","fab fa-lastfm-square","fab fa-leanpub","fab fa-less","fab fa-line","fab fa-linkedin","fab fa-linkedin-in","fab fa-linode","fab fa-linux","fab fa-lyft","fab fa-magento","fab fa-mailchimp","fab fa-mandalorian","fab fa-markdown","fab fa-mastodon","fab fa-maxcdn","fab fa-medapps","fab fa-medium","fab fa-medium-m","fab fa-medrt","fab fa-meetup","fab fa-megaport","fab fa-mendeley","fab fa-microsoft","fab fa-mix","fab fa-mixcloud","fab fa-mizuni","fab fa-modx","fab fa-monero","fab fa-napster","fab fa-neos","fab fa-nimblr","fab fa-nintendo-switch","fab fa-node","fab fa-node-js","fab fa-npm","fab fa-ns8","fab fa-nutritionix","fab fa-odnoklassniki","fab fa-odnoklassniki-square","fab fa-old-republic","fab fa-opencart","fab fa-openid","fab fa-opera","fab fa-optin-monster","fab fa-osi","fab fa-page4","fab fa-pagelines","fab fa-palfed","fab fa-patreon","fab fa-paypal","fab fa-penny-arcade","fab fa-periscope","fab fa-phabricator","fab fa-phoenix-framework","fab fa-phoenix-squadron","fab fa-php","fab fa-pied-piper","fab fa-pied-piper-alt","fab fa-pied-piper-hat","fab fa-pied-piper-pp","fab fa-pinterest","fab fa-pinterest-p","fab fa-pinterest-square","fab fa-playstation","fab fa-product-hunt","fab fa-pushed","fab fa-python","fab fa-qq","fab fa-quinscape","fab fa-quora","fab fa-r-project","fab fa-raspberry-pi","fab fa-ravelry","fab fa-react","fab fa-reacteurope","fab fa-readme","fab fa-rebel","fab fa-red-river","fab fa-reddit","fab fa-reddit-alien","fab fa-reddit-square","fab fa-redhat","fab fa-renren","fab fa-replyd","fab fa-researchgate","fab fa-resolving","fab fa-rev","fab fa-rocketchat","fab fa-rockrms","fab fa-safari","fab fa-sass","fab fa-schlix","fab fa-scribd","fab fa-searchengin","fab fa-sellcast","fab fa-sellsy","fab fa-servicestack","fab fa-shirtsinbulk","fab fa-shopware","fab fa-simplybuilt","fab fa-sistrix","fab fa-sith","fab fa-sketch","fab fa-skyatlas","fab fa-skype","fab fa-slack","fab fa-slack-hash","fab fa-slideshare","fab fa-snapchat","fab fa-snapchat-ghost","fab fa-snapchat-square","fab fa-soundcloud","fab fa-sourcetree","fab fa-speakap","fab fa-spotify","fab fa-squarespace","fab fa-stack-exchange","fab fa-stack-overflow","fab fa-staylinked","fab fa-steam","fab fa-steam-square","fab fa-steam-symbol","fab fa-sticker-mule","fab fa-strava","fab fa-stripe","fab fa-stripe-s","fab fa-studiovinari","fab fa-stumbleupon","fab fa-stumbleupon-circle","fab fa-superpowers","fab fa-supple","fab fa-suse","fab fa-teamspeak","fab fa-telegram","fab fa-telegram-plane","fab fa-tencent-weibo","fab fa-the-red-yeti","fab fa-themeco","fab fa-themeisle","fab fa-think-peaks","fab fa-trade-federation","fab fa-trello","fab fa-tripadvisor","fab fa-tumblr","fab fa-tumblr-square","fab fa-twitch","fab fa-twitter","fab fa-twitter-square","fab fa-typo3","fab fa-uber","fab fa-ubuntu","fab fa-uikit","fab fa-uniregistry","fab fa-untappd","fab fa-ups","fab fa-usb","fab fa-usps","fab fa-ussunnah","fab fa-vaadin","fab fa-viacoin","fab fa-viadeo","fab fa-viadeo-square","fab fa-viber","fab fa-vimeo","fab fa-vimeo-square","fab fa-vimeo-v","fab fa-vine","fab fa-vk","fab fa-vnv","fab fa-vuejs","fab fa-weebly","fab fa-weibo","fab fa-weixin","fab fa-whatsapp","fab fa-whatsapp-square","fab fa-whmcs","fab fa-wikipedia-w","fab fa-windows","fab fa-wix","fab fa-wizards-of-the-coast","fab fa-wolf-pack-battalion","fab fa-wordpress","fab fa-wordpress-simple","fab fa-wpbeginner","fab fa-wpexplorer","fab fa-wpforms","fab fa-wpressr","fab fa-xbox","fab fa-xing","fab fa-xing-square","fab fa-y-combinator","fab fa-yahoo","fab fa-yandex","fab fa-yandex-international","fab fa-yarn","fab fa-yelp","fab fa-yoast","fab fa-youtube","fab fa-youtube-square","fab fa-zhihu"];const{__:An}=wp.i18n,{Component:Fn,Fragment:Bn}=wp.element;var jn=class extends Fn{state={isOpen:!1,filterText:"",showIcons:!1};render(){const{value:t,label:a,className:r}=this.props,{filterText:o,isOpen:n}=this.state;let l=[];o.length>2?Ln.forEach((e=>{e.includes(o)&&l.push(e)})):l=Ln;const i=t?"has-icon":"";return(0,e.createElement)("div",{className:`rttpg-field rttpg-icon-main-wrapper ${r}`},this.props.label&&(0,e.createElement)(Bn,null,(0,e.createElement)("label",{class:"components-input-control__label"},a)),(0,e.createElement)("div",{className:"icon-inner-wrapper"},t&&(0,e.createElement)("span",{onClick:()=>this.props.onChange(""),className:"rttpg-remove-icon far fa-trash-alt fa-fw"}),(0,e.createElement)("div",{className:`choose-icon ${i}`,onClick:e=>this.setState({isOpen:!this.state.isOpen})},t?(0,e.createElement)("span",{className:`default-icon ${t}`}):(0,e.createElement)("span",{className:"fas fa-plus"})),n&&(0,e.createElement)("div",{className:"rttpg-icon-wrapper"},(0,e.createElement)("span",{onClick:e=>this.setState({isOpen:!1}),className:"rttpg-remove-icon fas fa-times"}),(0,e.createElement)("input",{type:"text",value:this.state.filterText,placeholder:"Search...",onChange:e=>this.setState({filterText:e.target.value}),autoComplete:"off"}),(0,e.createElement)("div",{className:"rttpg-icon-list-icons"},l.map((a=>(0,e.createElement)("span",{className:t==a?"rttpg-active":"",onClick:e=>{this.props.onChange(a),this.setState({isOpen:!1})}},(0,e.createElement)("span",{className:a}))))))))}};const{__:Hn}=wp.i18n;var $n=function(t){const{attributes:a,setAttributes:r}=t.data,{show_read_more:o,readmore_btn_style:n,read_more_label:l,show_btn_icon:i,readmore_btn_icon:s,readmore_icon_position:c}=a;return"show"!==o?"":(0,e.createElement)(Le.PanelBody,{title:Hn("Read More","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.SelectControl,{label:Hn("Button Style","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default-style",label:Hn("Default from style","the-post-grid")},{value:"only-text",label:Hn("Text Button","the-post-grid")}],value:n,onChange:e=>r({readmore_btn_style:e})}),(0,e.createElement)(Le.TextControl,{autocomplete:"off",label:Hn("Button Label","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",placeholder:"Type Read More Label here",value:l,onChange:e=>r({read_more_label:e})}),(0,e.createElement)(Le.ToggleControl,{label:Hn("Show Button Icon","the-post-grid"),className:"rttpg-toggle-control-field",checked:i,onChange:e=>r({show_btn_icon:e?"yes":""})}),"yes"===i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(jn,{label:Hn("Choose Icon","the-post-grid"),className:"components-base-control rttpg-toggle-control-field",value:s,onChange:e=>r({readmore_btn_icon:e})}),(0,e.createElement)(Le.SelectControl,{label:Hn("Icon Position","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"left",label:Hn("Left","the-post-grid")},{value:"right",label:Hn("Right","the-post-grid")}],value:c,onChange:e=>r({readmore_icon_position:e})})))};const{__:Rn}=wp.i18n,{useState:Vn,useEffect:zn}=wp.element,{Dropdown:qn,Button:Yn,SelectControl:Gn}=wp.components;var Un=function(t){const{label:a,value:r,onChange:o}=t,n=(e,t)=>{const a=JSON.parse(JSON.stringify(r));a[t]=e,o(a)};return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-typography-wrap"},a&&(0,e.createElement)("span",{className:"rttpg-label"},a),(0,e.createElement)("div",{className:"rttpg-typography"},(0,e.createElement)(qn,{className:"rttpg-typography-dropdown-icon",contentClassName:"rttpg-components-popover rttpg-cp-typography-content",position:"bottom right",renderToggle:t=>{let{isOpen:a,onToggle:r}=t;return(0,e.createElement)(Yn,{isSmall:!0,onClick:r,"aria-expanded":a,icon:"edit"})},renderContent:()=>(0,e.createElement)("div",{className:"rttpg-typography-content"},(0,e.createElement)(We,{label:Rn("Font Size"),responsive:!0,value:r.size,units:["px","em","%"],min:1,max:"em"===r.size.unit?10:200,step:"em"===r.size.unit?.1:1,onChange:e=>n(e,"size")}),(0,e.createElement)(Gn,{label:Rn("Font Weight"),value:r.weight,options:J,onChange:e=>n(e,"weight")}),(0,e.createElement)(Gn,{label:Rn("Text Transform"),value:r.transform,options:W,onChange:e=>n(e,"transform")}),(0,e.createElement)(We,{label:Rn("Letter Spacing"),responsive:!0,value:r.spacing,units:["px","em"],min:-5,max:"em"===r.spacing.unit?10:100,step:"em"===r.spacing.unit?.1:1,onChange:e=>n(e,"spacing")}),(0,e.createElement)(We,{label:Rn("Line Height"),responsive:!0,value:r.height,units:["px","em"],min:1,max:"em"===r.height.unit?10:100,step:"em"===r.height.unit?.1:1,onChange:e=>n(e,"height")}))})))};const{__:Wn}=wp.i18n,{useState:Jn,useEffect:Qn}=wp.element,{Dropdown:Kn,Tooltip:Zn,ColorPicker:Xn,Button:el}=wp.components;var tl=function(t){let{label:a,color:r,onChange:o}=t;const[n,l]=Jn(r);return Qn((()=>{l(r)}),[r]),(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-color-wrap"},a&&(0,e.createElement)("span",{className:"rttpg-label"},a),(0,e.createElement)("div",{className:"rttpg-color"},(0,e.createElement)(Kn,{contentClassName:"rttpg-components-popover rttpg-cp-color-content",renderToggle:t=>{let{isOpen:a,onToggle:o}=t;return(0,e.createElement)(Zn,{text:r||"default"},(0,e.createElement)("div",{className:"rttpg-color-ball"},(0,e.createElement)("div",{style:{height:25,width:25,borderRadius:"50%",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",backgroundColor:n},"aria-expanded":a,onClick:o,"aria-label":r||"default"})))},renderContent:()=>(0,e.createElement)(Xn,{color:r,onChangeComplete:e=>(e=>{let{rgb:t,hex:a}=e,r=t?`rgba(${t.r},${t.g},${t.b},${t.a})`:a;o(r)})(e)})}),n&&(0,e.createElement)(el,{isSmall:!0,className:"rttpg-undo-btn",icon:"image-rotate",onClick:()=>o(void 0)})))};const al=t=>{const{responsive:a,onChange:r,className:o,units:n,value:l,type:i}=t,[s,c]=(0,Be.useState)((()=>window.rttpgDevice||"lg")),u={isLinked:!0,unit:"px",value:""},f=a?l[s]?l[s]:u:l||u,d=null==t?void 0:t.disableLink,p=null==t?void 0:t.allowDimension;!0===d&&(f.isLinked=!1),null!=t&&t.important&&(f.important=!0);const m=e=>{!0===d&&(e.isLinked=!1),e.type=i,r(e)};let g;if(f.isLinked){const e=null!=f&&f.value?f.value.split(" ")[0]:"";g=new Array(5).fill(e)}else g=null!=f&&f.value?f.value.split(" "):["","","",""];return(0,e.createElement)("div",{className:`rttpg-control-field rttpg-cf-dimension ${o}`},(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("div",{className:"rt-left-part"},(0,e.createElement)("div",{className:"rttpg-label"},t.label),a&&(0,e.createElement)(ze,{device:s,onChange:e=>{c(e);const t=JSON.parse(JSON.stringify(l));t[e]||(t[e]=u,m(t))}})),(0,e.createElement)("div",{className:"rt-right-part"},(0,e.createElement)("div",{className:"rttpg-units-choices"},(n&&Array.isArray(n)?n:["px","em","%"]).map((t=>(0,e.createElement)("label",{className:(null==f?void 0:f.unit)!==t&&(null!=f&&f.unit||t!==u.unit)?"":"active",onClick:()=>(e=>{const t=JSON.parse(JSON.stringify(l));a?t[s].unit=e:t.unit=e,m(t)})(t)},t)))))),(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)("div",{className:"rttpg-control-dimensions"},["top","right","bottom","left"].map(((t,r)=>{let o=!1;return("vertical"===p&&["left","right"].includes(t)||"horizontal"===p&&["top","bottom"].includes(t))&&(o=!0),(0,e.createElement)("div",{className:"rttpg-control-dimension"},(0,e.createElement)("input",{type:"number",value:g[r],"data-setting":t,onChange:e=>((e,t)=>{let r=f.value?f.value.split(" "):["","","",""];(f.isLinked||r.length<4)&&(r=new Array(5).fill(r[0]||"0"));const[o,n,i,c]=r,u=JSON.parse(JSON.stringify(l)),d=f.isLinked?`${t} ${t} ${t} ${t}`:`${"top"===e?`${t}`:`${o}`} ${"right"===e?`${t}`:`${n}`} ${"bottom"===e?`${t}`:`${i}`} ${"left"===e?`${t}`:`${c}`}`;a?u[s].value=d:u.value=d,m(u)})(t,e.target.value),disabled:o}),(0,e.createElement)("label",{className:"rttpg-control-dimension-label"},t))})),(0,e.createElement)("div",{className:"rttpg-control-dimension linking"},(0,e.createElement)("button",{className:"rttpg-link-dimensions "+(null!=f&&f.isLinked?"admin-links linked":"editor-unlink"),onClick:()=>{if(!0===d)return;const e=JSON.parse(JSON.stringify(l));a?(e[s].isLinked=!e[s].isLinked,e[s].isLinked&&(e[s].value=e[s].value?e[s].value.split(" ")[0]:"")):e.isLinked=!e.isLinked,m(e)}},(0,e.createElement)("span",{className:"rt-dm-link-icon dashicons dashicons-"+(null!=f&&f.isLinked?"admin-links linked":"editor-unlink")}))))))};al.propTypes={label:at().string,value:at().object,onChange:at().func.isRequired,type:at().oneOf(["padding","margin","borderRadius"])};var rl=al;const{__:ol}=wp.i18n;var nl=function(t){const{attributes:a,setAttributes:r}=t.data,{pagination_style_tabs:o,show_pagination:n,pagination_typography:l,pagination_text_align:i,pagination_type:s,pagination_spacing:c,pagination_padding:u,pagination_border_radius:f,pagination_color:d,pagination_bg:p,pagination_border_color:m,pagination_color_hover:g,pagination_bg_hover:h,pagination_border_color_hover:b,pagination_color_active:v,pagination_bg_active:_,pagination_border_color_active:y}=a;return"show"!==n||"load_on_scroll"===s?"":(0,e.createElement)(Le.PanelBody,{title:ol("Pagination / LoadMore","the-post-grid"),initialOpen:!1},(0,e.createElement)(Un,{label:ol("Typography"),value:l,onChange:e=>r({pagination_typography:e})}),(0,e.createElement)(Ze,{label:ol("Alignment","the-post-grid"),options:["left","center","right"],value:i,responsive:!0,onChange:e=>r({pagination_text_align:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(rl,{label:ol("Button Vertical Spacing","the-post-grid"),type:"margin",responsive:!0,value:c,onChange:e=>{r({pagination_spacing:e})}}),(0,e.createElement)(rl,{label:ol("Button Padding","the-post-grid"),type:"padding",responsive:!0,value:u,onChange:e=>{r({pagination_padding:e})}}),(0,e.createElement)(rl,{label:ol("Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:f,onChange:e=>{r({pagination_border_radius:e})}}),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},ol("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Le.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},V.map(((t,a)=>(0,e.createElement)(Le.Button,{key:a,isPrimary:o===t.value,isSecondary:o!==t.value,onClick:()=>r({pagination_style_tabs:t.value})},t.label)))),"normal"===o&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:ol("Color","the-post-grid"),color:d,onChange:e=>r({pagination_color:e})}),(0,e.createElement)(tl,{label:ol("Background Color","the-post-grid"),color:p,onChange:e=>r({pagination_bg:e})}),(0,e.createElement)(tl,{label:ol("Border Color","the-post-grid"),color:m,onChange:e=>r({pagination_border_color:e})})),"hover"===o&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:ol("Color - Hover","the-post-grid"),color:g,onChange:e=>r({pagination_color_hover:e})}),(0,e.createElement)(tl,{label:ol("Background Color - Hover","the-post-grid"),color:h,onChange:e=>r({pagination_bg_hover:e})}),(0,e.createElement)(tl,{label:ol("Border Color - Hover","the-post-grid"),color:b,onChange:e=>r({pagination_border_color_hover:e})})),"active"===o&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:ol("Color - Active","the-post-grid"),color:v,onChange:e=>r({pagination_color_active:e})}),(0,e.createElement)(tl,{label:ol("Background Color - Active","the-post-grid"),color:_,onChange:e=>r({pagination_bg_active:e})}),(0,e.createElement)(tl,{label:ol("Border Color - Active","the-post-grid"),color:y,onChange:e=>r({pagination_border_color_active:e})})))};const{__:ll}=wp.i18n;var il=function(t){const{attributes:a,setAttributes:r}=t.data,{show_section_title:o,filter_btn_style:n,section_title_alignment:l,section_title_margin:i,section_title_typography:s,section_title_color:c,section_title_bg_color:u,section_title_dot_color:f,section_title_style:d,section_title_line_color:p}=a;return"show"!==o?"":(0,e.createElement)(Le.PanelBody,{title:ll("Section Title","the-post-grid"),initialOpen:!0},"carousel"!==n&&(0,e.createElement)(Ze,{label:ll("Alignment","the-post-grid"),options:["left","center","right"],value:l,onChange:e=>r({section_title_alignment:e})}),(0,e.createElement)(rl,{label:ll("Margin","the-post-grid"),isLinked:!1,type:"margin",responsive:!0,value:i,onChange:e=>{r({section_title_margin:e})}}),(0,e.createElement)(Un,{label:ll("Typography","the-post-grid"),value:s,onChange:e=>r({section_title_typography:e})}),(0,e.createElement)(tl,{label:ll("Title Color","the-post-grid"),color:c,onChange:e=>r({section_title_color:e})}),["style2","style3"].includes(d)&&(0,e.createElement)(tl,{label:ll("Title Background Color","the-post-grid"),color:u,onChange:e=>r({section_title_bg_color:e})}),"style1"===d&&(0,e.createElement)(tl,{label:ll("Dot Color","the-post-grid"),color:f,onChange:e=>r({section_title_dot_color:e})}),"default"!==d&&(0,e.createElement)(tl,{label:ll("Line / Border Color","the-post-grid"),color:p,onChange:e=>r({section_title_line_color:e})}))};const{__:sl}=wp.i18n;var cl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,title_spacing:n,title_padding:l,title_typography:i,title_offset_typography:s,title_border_visibility:c,title_alignment:u,title_box_hover_tab:f,title_color:d,title_bg_color:p,title_border_color:m,title_hover_border_color:g,title_hover_color:h,title_bg_color_hover:b,title_color_box_hover:v,title_bg_color_box_hover:_,title_border_color_hover:y,title_hover_underline:w,show_title:E}=a;if("show"!==E)return"";let C=o+"_layout";return(0,e.createElement)(Le.PanelBody,{title:sl("Post Title","the-post-grid"),initialOpen:!1},(0,e.createElement)(Un,{label:sl("Typography"),value:i,onChange:e=>r({title_typography:e})}),["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2"].includes(a[C])&&(0,e.createElement)(Un,{label:sl("Offset Typography"),value:s,onChange:e=>r({title_offset_typography:e})}),"grid_hover-layout3"===a[C]&&(0,e.createElement)(Le.SelectControl,{label:sl("Title Border Bottom","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:sl("Default","the-post-grid")},{value:"show",label:sl("Show","the-post-grid")},{value:"hide",label:sl("Hide","the-post-grid")}],value:c,onChange:e=>r({title_border_visibility:e})}),(0,e.createElement)(Ze,{label:sl("Alignment","the-post-grid"),options:["left","center","right"],value:u,onChange:e=>r({title_alignment:e})}),(0,e.createElement)(rl,{label:sl("Title Margin","the-post-grid"),type:"margin",responsive:!0,value:n,onChange:e=>{r({title_spacing:e})}}),(0,e.createElement)(rl,{label:sl("Title Padding","the-post-grid"),type:"padding",responsive:!0,value:l,onChange:e=>{r({title_padding:e})}}),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},sl("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Le.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},R.map(((t,a)=>(0,e.createElement)(Le.Button,{key:a,isPrimary:f===t.value,isSecondary:f!==t.value,onClick:()=>r({title_box_hover_tab:t.value})},t.label)))),"normal"===f&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:sl("Title Color","the-post-grid"),color:d,onChange:e=>r({title_color:e})}),(0,e.createElement)(tl,{label:sl("Title Background","the-post-grid"),color:p,onChange:e=>r({title_bg_color:e})}),"hide"!==c&&"grid_hover-layout3"===a[C]&&(0,e.createElement)(tl,{label:sl("Title Separator Color","the-post-grid"),color:m,onChange:e=>r({title_border_color:e})})),"hover"===f&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:sl("Title Color on Hover","the-post-grid"),color:h,onChange:e=>r({title_hover_color:e})}),(0,e.createElement)(tl,{label:sl("Title Background on hover","the-post-grid"),color:b,onChange:e=>r({title_bg_color_hover:e})}),"enable"===w&&(0,e.createElement)(tl,{label:sl("Title Hover Border Color","the-post-grid"),color:g,onChange:e=>r({title_hover_border_color:e})})),"box_hover"===f&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:sl("Title color on boxhover","the-post-grid"),color:v,onChange:e=>r({title_color_box_hover:e})}),(0,e.createElement)(tl,{label:sl("Title Background on boxhover","the-post-grid"),color:_,onChange:e=>r({title_bg_color_box_hover:e})}),"hide"!==c&&"grid_hover-layout3"===a[C]&&(0,e.createElement)(tl,{label:sl("Title Separator color - boxhover","the-post-grid"),color:y,onChange:e=>r({title_border_color_hover:e})})))};const{__:ul}=wp.i18n,{useState:fl,useEffect:dl}=wp.element,{GradientPicker:pl}=wp.components;var ml=function(t){const{label:a,value:r,onChange:o}=t;return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-gradient-wrap"},a&&(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},a)),(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)(pl,{label:"helloooooo",value:r,onChange:e=>(e=>{o(e)})(e),gradients:[{name:"Green",gradient:"linear-gradient(135deg, #80F1A6 0%, #EFD000 100%)",slug:"green"},{name:"Blue",gradient:"linear-gradient(45deg, #0066FF 0%, #0A51BB 100%)",slug:"blue"},{name:"Dark Blue",gradient:"linear-gradient(50deg, #15D2E3 10%, #11D6E2 40%, #10D7E2 80%)",slug:"darkBlue"},{name:"Yellow",gradient:"linear-gradient(135deg, #FBDA61 2.88%, #F76B1C 98.13%)",slug:"yellow"},{name:"Merun",gradient:"linear-gradient(135deg, #E25544 2.88%, #620C90 98.14%)",slug:"merun"}]})))};const{__:gl}=wp.i18n;function hl(t){let{imageUrl:a,onDeleteImage:r,onEditImage:o=null}=t;return(0,e.createElement)("div",{className:"rttpg-image-avatar",style:{backgroundImage:`url(${a})`}},(0,e.createElement)("button",{className:"open-image-button",onClick:o}),(0,e.createElement)("div",{className:"rttpg-media-actions"},(0,e.createElement)("button",{className:"button rttpg-btn-delete",onClick:()=>r()},(0,e.createElement)("span",{"aria-label":gl("Close"),className:"far fa-trash-alt fa-fw"}))))}hl.propTypes={imageUrl:at().string.isRequired,onDeleteImage:at().func.isRequired};var bl=hl;const{useState:vl,useEffect:_l}=wp.element,{BaseControl:yl,SelectControl:wl,Button:El}=wp.components;var Cl=function(t){const{label:a,value:r,onChange:o,responsive:n,name:l,options:i}=t,[s,c]=vl((()=>window.rttpgDevice||"lg")),u={[s]:""};return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-bg-property"},(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},a),n&&(0,e.createElement)(ze,{device:s,onChange:e=>{c(e);const t=JSON.parse(JSON.stringify(r));t[l]||(t[l]=u,o(t))}})),(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)(wl,{value:n?r[l][s]:r[l],options:i,onChange:e=>(e=>{const t=JSON.parse(JSON.stringify(r));n?t[l][s]=e:t[l]=e,o(t)})(e)})))};const{__:xl}=wp.i18n,{useState:kl,useEffect:Nl}=wp.element,{MediaUpload:Sl}=wp.blockEditor,{BaseControl:Dl,Button:Pl}=wp.components;var Ol=function(t){const[a,r]=kl((()=>window.rttpgDevice||"md")),{label:o,value:n,image:l,onChange:i}=t,s=["imgPosition","imgAttachment","imgRepeat","imgSize"],c=(e,t)=>{const a=JSON.parse(JSON.stringify(n));s.includes(t)?a.imgProperty=e:a[t]=e,i(a)},u=void 0!==n.img?n.img.imgURL:"",f=void 0!==n.img?n.img.imgID:"";return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-bg-img-wrap"},o&&(0,e.createElement)("span",{className:"rttpg-label"},o),(0,e.createElement)("div",{className:"rttpg-bg-img"},(0,e.createElement)(tl,{label:xl("Color"),color:n.color||"",onChange:e=>c(e,"color")}),!1!==l&&(0,e.createElement)(Dl,{label:xl("Image")},(0,e.createElement)(Sl,{onSelect:e=>{const t={imgURL:e.url,imgID:e.id};c(t,"img")},allowedTypes:["image"],value:f,render:t=>{let{open:a}=t;return u?(0,e.createElement)(bl,{imageUrl:u,onEditImage:a,onDeleteImage:()=>{c("","img")}}):(0,e.createElement)("div",{onClick:a,className:"rttpg-placeholder-image"},(0,e.createElement)("div",{className:"dashicon dashicons dashicons-insert"}),(0,e.createElement)("div",null,xl("Insert")))}}),u&&(0,e.createElement)(Cl,{label:xl("Position"),responsive:!0,value:n.imgProperty,name:"imgPosition",options:q,onChange:e=>{c(e,"imgPosition")}}),u&&(0,e.createElement)(Cl,{label:xl("Attachment"),responsive:!0,value:n.imgProperty,name:"imgAttachment",options:U,onChange:e=>c(e,"imgAttachment")}),u&&(0,e.createElement)(Cl,{label:xl("Repeat"),responsive:!0,value:n.imgProperty,name:"imgRepeat",options:G,onChange:e=>c(e,"imgRepeat")}),u&&(0,e.createElement)(Cl,{label:xl("Size"),responsive:!0,value:n.imgProperty,name:"imgSize",options:Y,onChange:e=>c(e,"imgSize")}))))};const{__:Ml}=wp.i18n,{useState:Tl,useEffect:Il}=wp.element,{Button:Ll,ButtonGroup:Al,Tooltip:Fl}=wp.components;var Bl=function(t){const a={openBGColor:0,type:"classic",classic:{color:"",img:{imgURL:"",imgID:""},imgProperty:{imgPosition:{lg:""},imgAttachment:{lg:""},imgRepeat:{lg:""},imgSize:{lg:""}}},gradient:""},{label:r,value:o,onChange:n}=t,l=(e,t)=>{n(Object.assign({},a,o||{},{openBGColor:1},{[t]:e}))};return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-background-wrap"},(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)("div",{className:"rttpg-cf-body-btn-wrap"},r&&(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},r)),(0,e.createElement)(Al,{className:"rttpg-btn-group"},z.map((t=>(0,e.createElement)(Fl,{text:t.label,position:"top",delay:0},(0,e.createElement)(Ll,{isLarge:!0,isPrimary:o.type===t.value,isSecondary:o.type!==t.value,onClick:()=>l(t.value,"type")},"classic"===t.value?(0,e.createElement)("i",{className:"classic-btn fas fa-paint-brush"}):(0,e.createElement)("i",{className:"gradient-btn fas fa-barcode"})))))),(0!=Object.keys(o.classic).length||o.gradient)&&(0,e.createElement)(Ll,{isSmall:!0,className:"rttpg-undo-btn",icon:"image-rotate",onClick:()=>n(a)})),(0,e.createElement)("div",{className:"rttpg-cf-body-content-wrap"},"classic"===o.type&&(0,e.createElement)(Ol,{image:null==t?void 0:t.image,value:o.classic,onChange:e=>l(e,"classic")}),"gradient"===o.type&&(0,e.createElement)(ml,{value:o.gradient,onChange:e=>l(e,"gradient")}))))};const{__:jl}=wp.i18n;var Hl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,img_border_radius:n,image_width:l,thumbnail_spacing:i,grid_hover_style_tabs:s,grid_hover_overlay_color:c,is_thumb_lightbox:u,thumb_lightbox_bg:f,thumb_lightbox_color:d,grid_hover_overlay_color_hover:p,thumb_lightbox_bg_hover:m,thumb_lightbox_color_hover:g,grid_hover_overlay_type:h,grid_hover_overlay_height:b,on_hover_overlay:v,show_thumb:_}=a;if("show"!==_)return"";let y=o+"_layout";return(0,e.createElement)(Le.PanelBody,{title:jl("Thumbnail","the-post-grid"),initialOpen:!1},(0,e.createElement)(Le.SelectControl,{label:jl("Image Width (Optional)","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"inherit",label:jl("Default","the-post-grid")},{value:"100%",label:jl("100%","the-post-grid")},{value:"auto",label:jl("Auto","the-post-grid")}],value:l,onChange:e=>r({image_width:e})}),(0,e.createElement)("div",{className:"rttpg-arert-wrapper"},(0,e.createElement)(rl,{label:jl("Border Radius","the-post-grid"),className:`rttpg-dimension-wrap ${Oe}`,type:"borderRadius",responsive:!0,value:n,onChange:e=>{r({img_border_radius:e})}}),"rttpg-is-pro"===Oe&&(0,e.createElement)("div",{className:"rttpg-alert-message",onClick:()=>{dt.warn("Please upgrade to pro for this feature.",{position:"top-right"})}})),(0,e.createElement)(rl,{label:jl("Thumbnail Margin","the-post-grid"),type:"margin",responsive:!0,value:i,onChange:e=>{r({thumbnail_spacing:e})}}),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},jl("Overlay Style:","the-post-grid")),(0,e.createElement)(Le.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},$.map(((t,a)=>(0,e.createElement)(Le.Button,{key:a,isPrimary:s===t.value,isSecondary:s!==t.value,onClick:()=>r({grid_hover_style_tabs:t.value})},t.label)))),"normal"===s?(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Bl,{label:jl("Overlay BG","the-post-grid"),image:!1,value:c,onChange:e=>r({grid_hover_overlay_color:e})}),"show"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:jl("Light Box Background","the-post-grid"),color:f,onChange:e=>r({thumb_lightbox_bg:e})}),(0,e.createElement)(tl,{label:jl("Light Box Color","the-post-grid"),color:d,onChange:e=>r({thumb_lightbox_color:e})}))):(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(Bl,{label:jl("Overlay BG - Hover","the-post-grid"),image:!1,value:p,onChange:e=>r({grid_hover_overlay_color_hover:e})}),"show"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:jl("Light Box Background - Hover","the-post-grid"),color:m,onChange:e=>r({thumb_lightbox_bg_hover:e})}),(0,e.createElement)(tl,{label:jl("Light Box Color - Hover","the-post-grid"),color:g,onChange:e=>r({thumb_lightbox_color_hover:e})}))),(0,e.createElement)("hr",null),(0,e.createElement)(Le.SelectControl,{label:jl("Overlay Interaction","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",help:jl("If you don't choose overlay background then it will work only for some selected layout","the-post-grid"),value:h,options:["grid_hover","slider"].includes(o)?De:Se,onChange:e=>r({grid_hover_overlay_type:e})}),"grid_hover-layout3"!==a[y]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.SelectControl,{label:jl("Overlay Height","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:jl("Default","the-post-grid")},{value:"full",label:jl("100%","the-post-grid")},{value:"auto",label:jl("Auto","the-post-grid")}],value:b,onChange:e=>r({grid_hover_overlay_height:e})}),(0,e.createElement)(Le.SelectControl,{label:jl("Overlay Height on hover","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:jl("Default","the-post-grid")},{value:"full",label:jl("100%","the-post-grid")},{value:"auto",label:jl("Auto","the-post-grid")}],value:v,onChange:e=>r({on_hover_overlay:e})})))};const{__:$l}=wp.i18n;var Rl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,content_typography:n,excerpt_spacing:l,content_alignment:i,excerpt_style_tabs:s,excerpt_color:c,meta_position:u,excerpt_hover_color:f,excerpt_border_hover:d,excerpt_border:p,show_excerpt:m}=a;if("show"!==m)return"";let g=o+"_layout";return(0,e.createElement)(Le.PanelBody,{title:$l("Excerpt / Content","the-post-grid"),initialOpen:!1},(0,e.createElement)(Un,{label:$l("Typography","the-post-grid"),value:n,onChange:e=>r({content_typography:e})}),(0,e.createElement)(rl,{label:$l("Excerpt Spacing","the-post-grid"),type:"margin",responsive:!0,value:l,onChange:e=>{r({excerpt_spacing:e})}}),(0,e.createElement)(Ze,{label:$l("Alignment","the-post-grid"),options:["left","center","right"],value:i,responsive:!0,onChange:e=>r({content_alignment:e})}),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},$l("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Le.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},$.map(((t,a)=>(0,e.createElement)(Le.Button,{key:a,isPrimary:s===t.value,isSecondary:s!==t.value,onClick:()=>r({excerpt_style_tabs:t.value})},t.label)))),"normal"===s&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:$l("Excerpt color","the-post-grid"),color:c,onChange:e=>r({excerpt_color:e})}),"default"===u&&"grid-layout3"===a[g]&&(0,e.createElement)(tl,{label:$l("Border color - Hover","the-post-grid"),color:p,onChange:e=>r({excerpt_border:e})})),"hover"===s&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:$l("Excerpt color - Hover","the-post-grid"),color:f,onChange:e=>r({excerpt_hover_color:e})}),"default"===u&&"grid-layout3"===a[g]&&(0,e.createElement)(tl,{label:$l("Border color - Hover","the-post-grid"),color:d,onChange:e=>r({excerpt_border_hover:e})})))};const{RangeControl:Vl,Button:zl}=wp.components;var ql=function(t){const{label:a,value:r,onChange:o,min:n,max:l,step:i,reset:s}=t,c={min:n,max:l,step:i};return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-range-wrap"},a&&(0,e.createElement)("div",{className:"rttpg-cf-head"},(0,e.createElement)("span",{className:"rttpg-label"},a)),(0,e.createElement)("div",{className:"rttpg-cf-body"},(0,e.createElement)(Vl,Re({value:r,onChange:e=>{(e=>{o(e)})(e)}},c)),s&&r?(0,e.createElement)(zl,{isSmall:!0,className:"rttpg-undo-btn",icon:"image-rotate",onClick:()=>o(null)}):""))};const{__:Yl}=wp.i18n;var Gl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,show_meta:n,post_meta_typography:l,postmeta_alignment:i,meta_spacing:s,category_position:c,separator_cat_typography:u,category_margin_bottom:f,category_radius:d,meta_info_style_tabs:p,meta_info_color:m,meta_link_color:g,meta_separator_color:h,meta_icon_color:b,separate_category_color:v,separate_category_bg:_,show_cat_icon:y,separate_category_icon_color:w,meta_link_colo_hover:E,separate_category_color_hover:C,separate_category_bg_hover:x,meta_link_colo_box_hover:k,separate_category_color_box_hover:N,separate_category_bg_box_hover:S,separate_category_icon_color_box_hover:D,category_style:P,meta_separator:O}=a;return"grid-layout7"===a[o+"_layout"]||"show"!==n?"":(0,e.createElement)(Le.PanelBody,{title:Yl("Meta Data","the-post-grid"),initialOpen:!1},(0,e.createElement)(Un,{label:Yl("Meta Typography"),value:l,onChange:e=>r({post_meta_typography:e})}),(0,e.createElement)(Ze,{label:Yl("Alignment","the-post-grid"),options:["left","center","right"],responsive:!0,value:i,onChange:e=>r({postmeta_alignment:e})}),(0,e.createElement)(rl,{label:Yl("Meta Spacing","the-post-grid"),type:"margin",responsive:!0,value:s,onChange:e=>{r({meta_spacing:e})}}),"default"!==c&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},Yl("Separate Category:","the-post-grid")),(0,e.createElement)(Un,{label:Yl("Separate Cat Typography"),value:u,onChange:e=>r({separator_cat_typography:e})})),"above_title"===c&&(0,e.createElement)(ql,{label:Yl("Category Margin Bottom"),reset:!0,value:f,onChange:e=>r({category_margin_bottom:e}),min:0,max:50,step:1}),"style3"!==P&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(rl,{label:Yl("Category Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:d,onChange:e=>{r({category_radius:e})}}),(0,e.createElement)("small",{className:"rttpg-help"},Yl("NB. If you use a separate category or there is a background on a category then it will work.","the-post-grid"))),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},Yl("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Le.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},R.map(((t,a)=>(0,e.createElement)(Le.Button,{key:a,isPrimary:p===t.value,isSecondary:p!==t.value,onClick:()=>r({meta_info_style_tabs:t.value})},t.label)))),"normal"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Yl("Meta Color","the-post-grid"),color:m,onChange:e=>r({meta_info_color:e})}),(0,e.createElement)(tl,{label:Yl("Meta Link Color","the-post-grid"),color:g,onChange:e=>r({meta_link_color:e})}),"default"!==O&&(0,e.createElement)(tl,{label:Yl("Separator Color","the-post-grid"),color:h,onChange:e=>r({meta_separator_color:e})}),(0,e.createElement)(tl,{label:Yl("Icon Color","the-post-grid"),color:b,onChange:e=>r({meta_icon_color:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(tl,{label:Yl("Category Color","the-post-grid"),color:v,onChange:e=>r({separate_category_color:e})}),(0,e.createElement)(tl,{label:Yl("Category Background","the-post-grid"),color:_,onChange:e=>r({separate_category_bg:e})}),"yes"===y&&(0,e.createElement)(tl,{label:Yl("Category Icon Color","the-post-grid"),color:w,onChange:e=>r({separate_category_icon_color:e})})),"hover"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Yl("Meta Link Color - Hover","the-post-grid"),color:E,onChange:e=>r({meta_link_colo_hover:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(tl,{label:Yl("Category Color - Hover","the-post-grid"),color:C,onChange:e=>r({separate_category_color_hover:e})}),(0,e.createElement)(tl,{label:Yl("Category Background - Hover","the-post-grid"),color:x,onChange:e=>r({separate_category_bg_hover:e})})),"box_hover"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Yl("Meta Color - Box Hover","the-post-grid"),color:k,onChange:e=>r({meta_link_colo_box_hover:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(tl,{label:Yl("Category Color - Hover","the-post-grid"),color:N,onChange:e=>r({separate_category_color_box_hover:e})}),(0,e.createElement)(tl,{label:Yl("Category Background - Box Hover","the-post-grid"),color:S,onChange:e=>r({separate_category_bg_box_hover:e})}),"yes"===y&&(0,e.createElement)(tl,{label:Yl("Category Icon Color - Box Hover","the-post-grid"),color:D,onChange:e=>r({separate_category_icon_color_box_hover:e})})))};const{__:Ul}=wp.i18n;var Wl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,show_social_share:n,social_icon_margin:l,social_wrapper_margin:i,social_icon_radius:s,icon_font_size:c,main_wrapper_hover_tab:u,social_icon_color:f,social_icon_bg_color:d,social_icon_border:p,social_icon_color_hover:m,social_icon_bg_color_hover:g,social_icon_border_hover:h,social_icon_width:b,social_icon_height:v,social_icon_color_box_hover:_,social_icon_bg_color_box_hover:y}=a;return"show"!==n||"grid-layout7"===a[o+"_layout"]?"":(0,e.createElement)(Le.PanelBody,{title:Ul("Social Share","the-post-grid"),initialOpen:!1},(0,e.createElement)(rl,{label:Ul("Icon Margin","the-post-grid"),type:"margin",responsive:!0,value:l,onChange:e=>{r({social_icon_margin:e})}}),(0,e.createElement)(rl,{label:Ul("Icon Wrapper Spacing","the-post-grid"),type:"margin",responsive:!0,value:i,onChange:e=>{r({social_wrapper_margin:e})}}),(0,e.createElement)(rl,{label:Ul("Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:s,onChange:e=>{r({social_icon_radius:e})}}),(0,e.createElement)("div",{className:"rttpg-image-dimension"},(0,e.createElement)("label",{className:"components-base-control__label components-input-control__label",htmlFor:"react-select-2-input"},Ul("Icon Width & Height","the-post-grid")),(0,e.createElement)(Le.__experimentalNumberControl,{className:"rttpg-control-field",max:2e3,min:1,placeholder:"Width",step:"1",value:b,onChange:e=>r({social_icon_width:e})}),(0,e.createElement)(Le.__experimentalNumberControl,{className:"rttpg-control-field",max:2e3,min:1,placeholder:"Height",step:"1",value:v,onChange:e=>r({social_icon_height:e})})),(0,e.createElement)(We,{label:Ul("Icon Size"),responsive:!0,value:c,min:0,max:100,step:1,onChange:e=>r({icon_font_size:e})}),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},Ul("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Le.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},R.map(((t,a)=>(0,e.createElement)(Le.Button,{key:a,isPrimary:u===t.value,isSecondary:u!==t.value,onClick:()=>r({main_wrapper_hover_tab:t.value})},t.label)))),"normal"===u&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Ul("Icon color","the-post-grid"),color:f,onChange:e=>r({social_icon_color:e})}),(0,e.createElement)(tl,{label:Ul("Icon Background","the-post-grid"),color:d,onChange:e=>r({social_icon_bg_color:e})}),(0,e.createElement)(Le.__experimentalBorderControl,{colors:Ie,value:p,label:Ul("Icon Border","the-post-grid"),onChange:e=>{const t={openTpgBorder:1,...e};r({social_icon_border:t})},withSlider:!0})),"hover"===u&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Ul("Icon color - Hover","the-post-grid"),color:m,onChange:e=>r({social_icon_color_hover:e})}),(0,e.createElement)(tl,{label:Ul("Icon Background - Hover","the-post-grid"),color:g,onChange:e=>r({social_icon_bg_color_hover:e})}),(0,e.createElement)(Le.__experimentalBorderControl,{colors:Ie,value:h,label:Ul("Icon Border - Hover","the-post-grid"),onChange:e=>{const t={openTpgBorder:1,...e};r({social_icon_border_hover:t})},withSlider:!0})),"box_hover"===u&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Ul("Icon color - Hover","the-post-grid"),color:_,onChange:e=>r({social_icon_color_box_hover:e})}),(0,e.createElement)(tl,{label:Ul("Icon Background - Hover","the-post-grid"),color:y,onChange:e=>r({social_icon_bg_color_box_hover:e})})))};const{__:Jl}=wp.i18n;var Ql=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,show_acf:n,acf_group_title_typography:l,acf_typography:i,cf_show_only_value:s,acf_label_style:c,acf_label_width:u,acf_alignment:f,acf_style_tabs:d,acf_group_title_color:p,acf_label_color:m,acf_value_color:g,acf_group_title_color_hover:h,acf_label_color_hover:b,acf_value_color_hover:v,cf_hide_group_title:_}=a;let y=o+"_layout";return"show"!==n||"grid-layout7"===a[y]?"":(0,e.createElement)(Le.PanelBody,{title:Jl("Advanced Custom Field (ACF)","the-post-grid"),initialOpen:!1},(0,e.createElement)(Un,{label:Jl("Group Title Typography","the-post-grid"),value:l,onChange:e=>r({acf_group_title_typography:e})}),(0,e.createElement)(Un,{label:Jl("ACF Fields Typography","the-post-grid"),value:i,onChange:e=>r({acf_typography:e})}),"yes"===s&&(0,e.createElement)(Le.SelectControl,{label:Jl("Label Style","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:Jl("Default","the-post-grid")},{value:"inline",label:Jl("Inline","the-post-grid")},{value:"block",label:Jl("Block","the-post-grid")}],value:c,onChange:e=>r({acf_label_style:e})}),"default"===c&&(0,e.createElement)(We,{label:Jl("Label Min Width"),responsive:!0,value:u,min:0,max:500,step:1,onChange:e=>r({acf_label_width:e})}),"grid-layout7"!==a[y]&&(0,e.createElement)(Ze,{label:Jl("Text Align","the-post-grid"),options:["left","center","right"],value:f,onChange:e=>r({acf_alignment:e})}),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},Jl("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Le.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},$.map(((t,a)=>(0,e.createElement)(Le.Button,{key:a,isPrimary:d===t.value,isSecondary:d!==t.value,onClick:()=>r({acf_style_tabs:t.value})},t.label)))),"normal"===d?(0,e.createElement)("div",{className:"rttpg-ground-control"},"yes"===_&&(0,e.createElement)(tl,{label:Jl("Group Title Color","the-post-grid"),color:p,onChange:e=>r({acf_group_title_color:e})}),"yes"===s&&(0,e.createElement)(tl,{label:Jl("Label Color","the-post-grid"),color:m,onChange:e=>r({acf_label_color:e})}),(0,e.createElement)(tl,{label:Jl("Value Color","the-post-grid"),color:g,onChange:e=>r({acf_value_color:e})})):(0,e.createElement)("div",{className:"rttpg-ground-control"},"yes"===_&&(0,e.createElement)(tl,{label:Jl("Group Title Color - BoxHover","the-post-grid"),color:h,onChange:e=>r({acf_group_title_color_hover:e})}),"yes"===s&&(0,e.createElement)(tl,{label:Jl("Label Color - BoxHover","the-post-grid"),color:b,onChange:e=>r({acf_label_color_hover:e})}),(0,e.createElement)(tl,{label:Jl("Value Color - BoxHover","the-post-grid"),color:v,onChange:e=>r({acf_value_color_hover:e})})))};const{__:Kl}=wp.i18n;var Zl=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,show_read_more:n,readmore_typography:l,readmore_spacing:i,readmore_btn_style:s,readmore_padding:c,readmore_btn_alignment:u,readmore_icon_size:f,readmore_icon_y_position:d,readmore_style_tabs:p,readmore_text_color:m,readmore_icon_color:g,readmore_bg:h,border_radius:b,readmore_border:v,readmore_icon_margin:_,readmore_text_color_hover:y,readmore_icon_color_hover:w,readmore_bg_hover:E,border_radius_hover:C,readmore_border_hover:x,show_btn_icon:k,readmore_icon_margin_hover:N,readmore_text_color_box_hover:S,readmore_icon_color_box_hover:D,readmore_bg_box_hover:P,readmore_border_box_hover:O}=a;return"show"!==n||"grid-layout7"===a[o+"_layout"]?"":(0,e.createElement)(Le.PanelBody,{title:Kl("Read More","the-post-grid"),initialOpen:!1},(0,e.createElement)(Un,{label:Kl("Typography"),value:l,onChange:e=>r({readmore_typography:e})}),(0,e.createElement)(Ze,{label:Kl("Button Alignment","the-post-grid"),options:["left","center","right"],responsive:!0,value:u,onChange:e=>r({readmore_btn_alignment:e})}),(0,e.createElement)("hr",null),(0,e.createElement)(rl,{label:Kl("Button Spacing","the-post-grid"),type:"margin",responsive:!0,value:i,onChange:e=>{r({readmore_spacing:e})}}),"default-style"===s&&(0,e.createElement)(rl,{label:Kl("Button Padding","the-post-grid"),type:"padding",responsive:!0,value:c,onChange:e=>{r({readmore_padding:e})}}),"yes"===k&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(We,{label:Kl("Icon Size"),responsive:!0,min:10,max:50,step:1,value:f,onChange:e=>r({readmore_icon_size:e})}),(0,e.createElement)(We,{label:Kl("Icon Vertical Position"),responsive:!0,min:-20,max:20,step:1,value:d,onChange:e=>r({readmore_icon_y_position:e})})),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},Kl("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Le.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},R.map(((t,a)=>(0,e.createElement)(Le.Button,{key:a,isPrimary:p===t.value,isSecondary:p!==t.value,onClick:()=>r({readmore_style_tabs:t.value})},t.label)))),"normal"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Kl("Text Color","the-post-grid"),color:m,onChange:e=>r({readmore_text_color:e})}),"yes"===k&&(0,e.createElement)(tl,{label:Kl("Icon Color","the-post-grid"),color:g,onChange:e=>r({readmore_icon_color:e})}),"default-style"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:Kl("Background Color","the-post-grid"),color:h,onChange:e=>r({readmore_bg:e})}),(0,e.createElement)(rl,{label:Kl("Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:b,onChange:e=>{r({border_radius:e})}}),(0,e.createElement)(Le.__experimentalBorderControl,{colors:Ie,value:v,label:Kl("Button Border","the-post-grid"),onChange:e=>{const t={openTpgBorder:1,...e};r({readmore_border:t})},withSlider:!0})),"yes"===k&&(0,e.createElement)(rl,{label:Kl("Icon Spacing","the-post-grid"),type:"margin",responsive:!0,value:_,onChange:e=>{r({readmore_icon_margin:e})}})),"hover"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Kl("Text Color hover","the-post-grid"),color:y,onChange:e=>r({readmore_text_color_hover:e})}),"yes"===k&&(0,e.createElement)(tl,{label:Kl("Icon Color - Hover","the-post-grid"),color:w,onChange:e=>r({readmore_icon_color_hover:e})}),"default-style"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:Kl("Background Color - Hover","the-post-grid"),color:E,onChange:e=>r({readmore_bg_hover:e})}),(0,e.createElement)(rl,{label:Kl("Border Radius - Hover","the-post-grid"),type:"borderRadius",responsive:!0,value:C,onChange:e=>{r({border_radius_hover:e})}}),(0,e.createElement)(Le.__experimentalBorderControl,{colors:Ie,value:x,label:Kl("Button Border - Hover","the-post-grid"),onChange:e=>{const t={openTpgBorder:1,important:1,...e};r({readmore_border_hover:t})},withSlider:!0})),"yes"===k&&(0,e.createElement)(rl,{label:Kl("Icon Spacing - Hover","the-post-grid"),type:"margin",responsive:!0,value:N,onChange:e=>{r({readmore_icon_margin_hover:e})}})),"box_hover"===p&&(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Kl("Text Color - BoxHover","the-post-grid"),color:S,onChange:e=>r({readmore_text_color_box_hover:e})}),"yes"===k&&(0,e.createElement)(tl,{label:Kl("Icon Color - BoxHover","the-post-grid"),color:D,onChange:e=>r({readmore_icon_color_box_hover:e})}),"default-style"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:Kl("Background Color - BoxHover","the-post-grid"),color:P,onChange:e=>r({readmore_bg_box_hover:e})}),(0,e.createElement)(Le.__experimentalBorderControl,{colors:Ie,value:O,label:Kl("Button Border - BoxHover","the-post-grid"),onChange:e=>{const t={openTpgBorder:1,...e};r({readmore_border_box_hover:t})},withSlider:!0}))))};const{__:Xl}=wp.i18n;var ei=function(t){const{attributes:a,setAttributes:r}=t.data,{front_filter_typography:o,filter_type:n,filter_btn_style:l,filter_text_alignment:i,filter_button_width:s,filter_next_prev_btn:c,section_title_style:u,border_style:f,filter_h_alignment:d,filter_btn_radius:p,frontend_filter_style_tabs:m,filter_color:g,filter_bg_color:h,filter_border_color:b,filter_search_bg:v,sub_menu_color_heading:_,sub_menu_bg_color:y,sub_menu_color:w,sub_menu_border_bottom:E,filter_nav_color:C,filter_nav_bg:x,filter_nav_border:k,filter_color_hover:N,filter_bg_color_hover:S,filter_border_color_hover:D,filter_search_bg_hover:P,sub_menu_color_heading_hover:O,sub_menu_bg_color_hover:M,sub_menu_color_hover:T,sub_menu_border_bottom_hover:I,filter_nav_color_hover:L,filter_nav_bg_hover:A,filter_nav_border_hover:F,show_taxonomy_filter:B,show_author_filter:j,show_order_by:H,show_sort_order:R,show_search:V}=a;return"show"!==B&&"show"!==j&&"show"!==H&&"show"!==R&&"show"!==V?"":(console.log(i),(0,e.createElement)(Le.PanelBody,{title:Xl("Front-End Filter","the-post-grid"),initialOpen:!1},(0,e.createElement)(Un,{label:Xl("Typography","the-post-grid"),value:o,onChange:e=>r({front_filter_typography:e})}),"button"===n&&"carousel"===l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(We,{label:Xl("Filter Width"),responsive:!0,value:s,min:0,max:1e3,step:1,onChange:e=>r({filter_button_width:e})}),(0,e.createElement)(Le.SelectControl,{label:Xl("Next/Prev Button","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"visible",label:Xl("Visible","the-post-grid")},{value:"hidden",label:Xl("Hidden","the-post-grid")}],value:c,onChange:e=>r({filter_next_prev_btn:e})}),["style2","style3"].includes(u)&&(0,e.createElement)(Le.SelectControl,{label:Xl("Filter Border","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"disable",label:Xl("Disable","the-post-grid")},{value:"enable",label:Xl("Enable","the-post-grid")}],value:f,onChange:e=>r({border_style:e})})),"dropdown"===n?(0,e.createElement)(Le.SelectControl,{label:Xl("Vertical Alignment","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"",label:Xl("Default","the-post-grid")},{value:"left",label:Xl("Left","the-post-grid")},{value:"center",label:Xl("Center","the-post-grid")},{value:"right",label:Xl("Right","the-post-grid")}],value:d,onChange:e=>r({filter_h_alignment:e})}):(0,e.createElement)(Le.SelectControl,{label:Xl("Text Align","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"",label:Xl("Default","the-post-grid")},{value:"left",label:Xl("Left","the-post-grid")},{value:"center",label:Xl("Center","the-post-grid")},{value:"right",label:Xl("Right","the-post-grid")}],value:i,onChange:e=>r({filter_text_alignment:e})}),"default"!==n&&(0,e.createElement)(rl,{label:Xl("Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:p,onChange:e=>{r({filter_btn_radius:e})}}),(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},Xl("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Le.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},$.map(((t,a)=>(0,e.createElement)(Le.Button,{key:a,isPrimary:m===t.value,isSecondary:m!==t.value,onClick:()=>r({frontend_filter_style_tabs:t.value})},t.label)))),"normal"===m?(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Xl("Filter Color","the-post-grid"),color:g,onChange:e=>r({filter_color:e})}),(0,e.createElement)(tl,{label:Xl("Filter Background","the-post-grid"),color:h,onChange:e=>r({filter_bg_color:e})}),(0,e.createElement)(tl,{label:Xl("Filter Border Color","the-post-grid"),color:b,onChange:e=>r({filter_border_color:e})}),"show"===V&&"default"===l&&(0,e.createElement)(tl,{label:Xl("Search Background","the-post-grid"),color:v,onChange:e=>r({filter_search_bg:e})}),"dropdown"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:Xl("Sub Menu Options","the-post-grid"),color:_,onChange:e=>r({sub_menu_color_heading:e})}),(0,e.createElement)(tl,{label:Xl("Submenu Background","the-post-grid"),color:y,onChange:e=>r({sub_menu_bg_color:e})}),(0,e.createElement)(tl,{label:Xl("Submenu Color","the-post-grid"),color:w,onChange:e=>r({sub_menu_color:e})}),(0,e.createElement)(tl,{label:Xl("Submenu Border","the-post-grid"),color:E,onChange:e=>r({sub_menu_border_bottom:e})})),"visible"===c&&"carousel"===l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:Xl("Filter Nav Color","the-post-grid"),color:C,onChange:e=>r({filter_nav_color:e})}),(0,e.createElement)(tl,{label:Xl("Filter Nav Background","the-post-grid"),color:x,onChange:e=>r({filter_nav_bg:e})}),(0,e.createElement)(tl,{label:Xl("Filter Nav Border","the-post-grid"),color:k,onChange:e=>r({filter_nav_border:e})}))):(0,e.createElement)("div",{className:"rttpg-ground-control"},(0,e.createElement)(tl,{label:Xl("Filter Color - Hover/Active","the-post-grid"),color:N,onChange:e=>r({filter_color_hover:e})}),(0,e.createElement)(tl,{label:Xl("Filter Background - Hover/Active","the-post-grid"),color:S,onChange:e=>r({filter_bg_color_hover:e})}),(0,e.createElement)(tl,{label:Xl("Filter Border Color - Hover/Active","the-post-grid"),color:D,onChange:e=>r({filter_border_color_hover:e})}),"show"===V&&"default"===l&&(0,e.createElement)(tl,{label:Xl("Search Background - Hover/Active","the-post-grid"),color:P,onChange:e=>r({filter_search_bg_hover:e})}),"dropdown"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:Xl("Sub Menu Options - Hover","the-post-grid"),color:O,onChange:e=>r({sub_menu_color_heading_hover:e})}),(0,e.createElement)(tl,{label:Xl("Submenu Background - Hover","the-post-grid"),color:M,onChange:e=>r({sub_menu_bg_color_hover:e})}),(0,e.createElement)(tl,{label:Xl("Submenu Color - Hover","the-post-grid"),color:T,onChange:e=>r({sub_menu_color_hover:e})}),(0,e.createElement)(tl,{label:Xl("Submenu Border - Hover","the-post-grid"),color:I,onChange:e=>r({sub_menu_border_bottom_hover:e})})),"visible"===c&&"carousel"===l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:Xl("Filter Nav Color - Hover","the-post-grid"),color:L,onChange:e=>r({filter_nav_color_hover:e})}),(0,e.createElement)(tl,{label:Xl("Filter Nav Background - Hover","the-post-grid"),color:A,onChange:e=>r({filter_nav_bg_hover:e})}),(0,e.createElement)(tl,{label:Xl("Filter Nav Border - Hover","the-post-grid"),color:F,onChange:e=>r({filter_nav_border_hover:e})})))))};const{__:ti}=wp.i18n,{useState:ai,useEffect:ri}=wp.element,{Dropdown:oi,Button:ni,SelectControl:li,RangeControl:ii,ToggleControl:si}=wp.components;var ci=function(t){const{label:a,value:r,onChange:o,transition:n}=t,l=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=JSON.parse(JSON.stringify(r));"width"===t?n[t][a]=e:n[t]=e,o(n)};return(0,e.createElement)("div",{className:"rttpg-control-field rttpg-cf-typography-wrap"},a&&(0,e.createElement)("span",{className:"rttpg-label"},a),(0,e.createElement)("div",{className:"rttpg-typography"},(0,e.createElement)(oi,{className:"rttpg-typography-dropdown-icon",contentClassName:"rttpg-components-popover rttpg-cp-typography-content",position:"bottom right",renderToggle:t=>{let{isOpen:a,onToggle:r}=t;return(0,e.createElement)(ni,{isSmall:!0,onClick:r,"aria-expanded":a,icon:"edit"})},renderContent:()=>(0,e.createElement)("div",{className:"rttpg-typography-content"},(0,e.createElement)(tl,{label:ti("Color"),color:r.color,onChange:e=>l(e,"color")}),(0,e.createElement)(ql,{label:ti("Horizontal Offset"),reset:!0,value:r.width.top,onChange:e=>l(e,"width","top"),min:0,max:100}),(0,e.createElement)(ql,{label:ti("Vertical Offset"),reset:!0,value:r.width.right,onChange:e=>l(e,"width","right"),min:0,max:100}),(0,e.createElement)(ql,{label:ti("Shadow Blur"),reset:!0,value:r.width.bottom,onChange:e=>l(e,"width","bottom"),min:0,max:100}),(0,e.createElement)(ql,{label:ti("Shadow Spread"),reset:!0,value:r.width.left,onChange:e=>l(e,"width","left"),min:0,max:100}),(0,e.createElement)("div",{className:"rttpg-toggle-control-field"},(0,e.createElement)(si,{label:"Inset",checked:r.inset,onChange:e=>l(e,"inset")})),n&&(0,e.createElement)(ql,{label:ti("Shadow Transition"),reset:!0,value:r.transition,onChange:e=>l(e,"transition"),min:0,max:5,step:.1}))})))};const{__:ui}=wp.i18n;var fi=function(t){const{attributes:a,setAttributes:r}=t.data,{prefix:o,box_margin:n,content_box_padding:l,content_box_padding_2:i,content_box_padding_offset:s,box_radius:c,is_box_border:u,box_style_tabs:f,box_background:d,box_border:p,box_box_shadow_normal:m,box_background2:g,box_background_hover:h,box_box_shadow2:b,box_background_hover2:v,box_border_hover:_,box_box_shadow_hover:y,box_box_shadow_hover2:w}=a;let E=o+"_layout";return(0,e.createElement)(Le.PanelBody,{title:ui("Card (Post Item)","the-post-grid"),initialOpen:!1},!["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","list-layout2","list-layout2-2","list-layout3","list-layout3-2","list-layout4","grid_hover-layout4","grid_hover-layout4-2","grid_hover-layout5","grid_hover-layout5-2","grid_hover-layout6","grid_hover-layout6-2","grid_hover-layout7","grid_hover-layout7-2","grid_hover-layout8","grid_hover-layout9","grid_hover-layout9-2"].includes(a[E])&&(0,e.createElement)(rl,{label:ui("Card Gap","the-post-grid"),type:"padding",responsive:!0,value:n,onChange:e=>{r({box_margin:e})}}),!["grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","grid-layout7","list-layout1","list-layout2","list-layout2-2","list-layout3","list-layout3-2","list-layout4","list-layout5","slider-layout1","slider-layout2","slider-layout3"].includes(a[E])&&"grid_hover"!==o&&(0,e.createElement)(rl,{label:ui("Content Padding","the-post-grid"),type:"padding",responsive:!0,value:l,onChange:e=>{r({content_box_padding:e})}}),["grid-layout5","grid-layout5-2","list-layout4"].includes(a[E])&&(0,e.createElement)(rl,{label:ui("Content Padding","the-post-grid"),type:"padding",responsive:!0,value:s,onChange:e=>{r({content_box_padding_offset:e})}}),["slider-layout13"].includes(a[E])&&(0,e.createElement)(rl,{label:ui("Content Padding","the-post-grid"),type:"padding",responsive:!0,value:i,onChange:e=>{r({content_box_padding_2:e})}}),!["list-layout2","list-layout2-2","list-layout3","list-layout3-2","list-layout4","list-layout4-2","list-layout5","list-layout5-2","slider-layout11","slider-layout12","slider-layout13"].includes(a[E])&&(0,e.createElement)(rl,{label:ui("Card Border Radius","the-post-grid"),type:"borderRadius",responsive:!0,value:c,onChange:e=>{r({box_radius:e})}}),["grid","list"].includes(o)&&(0,e.createElement)(Le.SelectControl,{label:ui("Enable Border & Box Shadow","the-post-grid"),className:"rttpg-control-field label-inline rttpg-expand",options:[{value:"default",label:ui("Default","the-post-grid")},{value:"enable",label:ui("Enable","the-post-grid")},{value:"disable",label:ui("Disable","the-post-grid")}],value:u,onChange:e=>r({is_box_border:e})}),"grid_hover"!==o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Le.__experimentalHeading,{className:"rttpg-control-heading"},ui("Appearance & Behavior:","the-post-grid")),(0,e.createElement)(Le.ButtonGroup,{className:"rttpg-btn-group rttpg-btn-group-state rttpg-bottom-border-radius-none"},$.map(((t,a)=>(0,e.createElement)(Le.Button,{key:a,isPrimary:f===t.value,isSecondary:f!==t.value,onClick:()=>r({box_style_tabs:t.value})},t.label)))),"normal"===f?(0,e.createElement)("div",{className:"rttpg-ground-control"},!["slider-layout13"].includes(a[E])&&(0,e.createElement)(Bl,{image:!1,label:ui("Background","the-post-grid"),value:d,onChange:e=>r({box_background:e})}),["slider-layout13"].includes(a[E])&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Bl,{image:!1,label:ui("Background","the-post-grid"),value:g,onChange:e=>r({box_background2:e})}),(0,e.createElement)(ci,{label:ui("Box Shadow","the-post-grid"),value:b,onChange:e=>r({box_box_shadow2:e}),transitioin:"0.4"})),["grid","list"].includes(o)&&"enable"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:ui("Border Color","the-post-grid"),color:p,onChange:e=>r({box_border:e})}),(0,e.createElement)(ci,{label:ui("Box Shadow","the-post-grid"),value:m,onChange:e=>r({box_box_shadow_normal:e})}))):(0,e.createElement)("div",{className:"rttpg-ground-control"},!["slider-layout13"].includes(a[E])&&(0,e.createElement)(Bl,{image:!1,label:ui("Background - Hover","the-post-grid"),value:h,onChange:e=>r({box_background_hover:e})}),["slider-layout13"].includes(a[E])&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Bl,{image:!1,label:ui("Background","the-post-grid"),value:v,onChange:e=>r({box_background_hover2:e})}),(0,e.createElement)(ci,{label:ui("Box Shadow - Hover","the-post-grid"),value:w,onChange:e=>r({box_box_shadow_hover2:e}),transitioin:"0.4"})),["grid","list"].includes(o)&&"enable"===u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(tl,{label:ui("Border Color - Hover","the-post-grid"),color:_,onChange:e=>r({box_border_hover:e})}),(0,e.createElement)(ci,{label:ui("Box Shadow - Hover","the-post-grid"),value:y,onChange:e=>r({box_box_shadow_hover:e}),transitioin:"0.4"})))))};const{__:di}=wp.i18n;var pi=function(t){const{attributes:a,setAttributes:r}=t.data,{tpg_wrapper_padding:o,tpg_wrapper_margin:n,tpg_wrapper_width:l,tpg_wrapper_background:i}=a;return(0,e.createElement)(Le.PanelBody,{title:di("Main Wrapper","the-post-grid"),initialOpen:!1},(0,e.createElement)(rl,{label:di("Main Wrapper Padding","the-post-grid"),type:"padding",responsive:!0,value:o,onChange:e=>{r({tpg_wrapper_padding:e})}}),(0,e.createElement)(rl,{label:di("Main Wrapper Margin","the-post-grid"),type:"margin",responsive:!0,value:n,disableLink:!0,onChange:e=>{r({tpg_wrapper_margin:e})}}),(0,e.createElement)("small",{className:"rttpg-help"},di("NB. If you use The Post Grid Fullwidth template then margin-left and margin-right will not work.","the-post-grid")),(0,e.createElement)(We,{label:di("Wrapper Width"),responsive:!0,value:l,min:300,max:3e3,step:1,onChange:e=>r({tpg_wrapper_width:e}),help:"Default width is 1200px for large device. If you want you can increase or decrease the size."}),(0,e.createElement)(Bl,{label:di("Wrapper Background","the-post-grid"),value:i,onChange:e=>r({tpg_wrapper_background:e})}),(0,e.createElement)("p",{style:{background:"#dff6ff",borderLeft:"3px solid #005bc9",padding:"5px 15px"}},(0,e.createElement)("ul",null,(0,e.createElement)("li",null,di("If you would like to use section background then there are two way to do it. ","the-post-grid")),(0,e.createElement)("li",null,di("1. Full Width the the block from AdvancedControls bar then just change wrapper width","the-post-grid")),(0,e.createElement)("li",null,di("2. Secondly, you can use The Post Grid Fullwidth template","the-post-grid")))))};const{InspectorControls:mi}=wp.blockEditor;var gi=function(t){const{attributes:a,setAttributes:r,changeQuery:o,acfData:n,imageSizes:l}=t,{prefix:i,taxonomy_lists:s,ignore_sticky_posts:c,acf_data_lists:u}=a;let f=i+"_layout";const d=e=>{r(a[f]=e),o()},p=(e,t)=>{let a={...s,[t]:{name:t,options:e}};r({taxonomy_lists:a}),o()},m=(e,t)=>{let a={...u,[t]:{name:t,options:e}};r({acf_data_lists:a}),o()};return(0,e.createElement)(mi,{key:"controls"},(0,e.createElement)("div",{className:"rttpg-panel-control-wrapper"},(0,e.createElement)(Le.TabPanel,{className:"rttpg-tab-panel",activeClass:"active-tab",tabs:[{name:"content",title:"Content",className:"rttpg-tab-btn content"},{name:"settings",title:"Settings",className:"rttpg-tab-btn settings"},{name:"styles",title:"Styles",className:"rttpg-tab-btn styles"}]},(r=>(0,e.createElement)("div",{className:"rttpg-tab-content"},"content"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ht,{data:t,changeLayout:d}),(0,e.createElement)(on,{data:t,changeTaxonomy:p}),(0,e.createElement)(fn,{data:t}),(0,e.createElement)(ln,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(cn,{data:t}),(0,e.createElement)(Fe,null)),"settings"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(pn,{data:t}),(0,e.createElement)(gn,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(bn,{data:t}),(0,e.createElement)(Dn,{data:t,imageSizes:l}),"grid-layout7"!==a[f]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(yn,{data:t}),(0,e.createElement)(On,{data:t}),(0,e.createElement)(In,{data:t,changeAcfData:m,acfData:n}),(0,e.createElement)($n,{data:t}))),"styles"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(il,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(cl,{data:t}),(0,e.createElement)(Hl,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Rl,{data:t}),(0,e.createElement)(Gl,{data:t}),(0,e.createElement)(Wl,{data:t}),(0,e.createElement)(Ql,{data:t}),(0,e.createElement)(Zl,{data:t}),(0,e.createElement)(nl,{data:t})),(0,e.createElement)(e.Fragment,null,rttpgParams.hasPro&&(0,e.createElement)(ei,{data:t}),(0,e.createElement)(fi,{data:t}),(0,e.createElement)(pi,{data:t}))))))))};function hi(e){let{props:t}=e;const{attributes:a,className:r}=t,{full_wrapper_align:o,filter_type:n,section_title_style:l,section_title_alignment:i,show_pagination:s,ajax_pagination_type:c,show_meta:u,hover_animation:f,title_visibility_style:d,title_position:p,title_hover_underline:m,meta_position:g,author_icon_visibility:h,show_author_image:b,category_position:v,readmore_btn_style:_,grid_hover_overlay_type:y,grid_hover_overlay_height:w,on_hover_overlay:E,title_border_visibility:C,title_alignment:x,filter_v_alignment:k,border_style:N,filter_next_prev_btn:S,filter_h_alignment:D,is_box_border:P,arrow_position:O,dots:M,dots_style:T,lazyLoad:I,carousel_overflow:L,slider_direction:A,dots_text_align:F,acf_label_style:B,acf_alignment:j}=a;let H;return H=" "+r,H+=null!=o&&o.lg?" tpg-wrapper-align-"+(null==o?void 0:o.lg):" ",H+=" tpg-filter-type-"+n,H+=" pagination-visibility-"+s,H+=" ajax-pagination-type-next-prev-"+c,H+=" meta-visibility-"+u,H+=" section-title-style-"+l,H+=" section-title-align-"+i,H+=" img_hover_animation_"+f,H+=" title-"+d,H+=" title_position_"+p,H+=" title_hover_border_"+m,H+=" meta_position_"+g,H+=" tpg-is-author-icon-"+h,H+=" author-image-visibility-"+b,H+=" tpg-category-position-"+v,H+=" readmore-btn-"+_,H+=" grid-hover-overlay-type-"+y,H+=" grid-hover-overlay-height-"+w,H+=" hover-overlay-height-"+E,H+=" tpg-title-border-"+C,H+=" title-alignment-"+x,H+=" tpg-filter-alignment-"+k,H+=" filter-button-border-"+N,H+=" filter-nex-prev-btn-"+S,H+=" tpg-filter-h-alignment-"+D,H+=" tpg-el-box-border-"+P,H+=" slider-arrow-position-"+O,H+=" slider-dot-enable-"+M,H+=" slider-dots-style-"+T,H+=" is-lazy-load-"+I,H+=" is-carousel-overflow-"+L,H+=" slider-direction-"+A,H+=" slider-dots-align-"+F,H+=" act-label-style-"+B,H+=" tpg-acf-align-"+j,H}function bi(t){let{attributes:a,post:r}=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cat-over-image";const{prefix:n,show_meta:l,show_category:i,category_position:s,category_style:c,show_cat_icon:u}=a;let f=n+"_layout";if("show"!==l||"show"!==i)return null;const{category:d,category_bg:p}=r,m=d.length;let g=s;return["grid-layout4","slider-layout3"].includes(a[f])&&"default"===s&&(g="top_left"),(0,e.createElement)("div",{className:`tpg-separate-category ${c} ${g} ${o}`},(0,e.createElement)("span",{className:"categories-links"},"yes"===u&&(0,e.createElement)("i",{className:"fas fa-folder-open"}),d&&d.map(((t,a)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{href:"#",style:{"--tpg-primary-color":p[a]?p[a]:""}},t),a+1!==m&&(0,e.createElement)("span",{className:"rt-separator"},","))))))}const vi=(e,t)=>!("default"===t&&["grid-layout4","grid-layout5","grid-layout5-2","grid-layout6","grid-layout6-2","list-layout4","list-layout5","grid_hover-layout5","grid_hover-layout6","grid_hover-layout7","grid_hover-layout8","grid_hover-layout9","grid_hover-layout10","grid_hover-layout5-2","grid_hover-layout6-2","grid_hover-layout7-2","grid_hover-layout9-2","grid_hover-layout11","slider-layout3","slider-layout5","slider-layout6","slider-layout7","slider-layout8","slider-layout9","slider-layout11","slider-layout12"].includes(e));var _i=function(t){const a=t.attributes,r=t.post,{prefix:o,category_position:n,show_category:l,is_thumb_lightbox:i}=a;let s=o+"_layout",c=!("above_title"===n||"default"===n);("grid-layout4"===a[s]&&"default"===n||"default"===n&&["grid-layout4","grid_hover-layout11","slider-layout3"].includes(a[s]))&&(c=!0);let u="";return"yes"===(null==t?void 0:t.offset)&&r.offset_image_url?u=r.offset_image_url:r.image_url&&(u=r.image_url),(0,e.createElement)("div",{className:"rt-img-holder tpg-el-image-wrap"},rttpgParams.hasPro&&"show"===l&&c&&"with_meta"!==n&&bi({attributes:a,post:r}),u&&(0,e.createElement)("img",{src:u,className:"rt-img-responsive",alt:r.title}),("show"===i||["grid-layout7","slider-layout4"].includes(a[s])&&["default","show"].includes(i))&&(0,e.createElement)("a",{className:"tpg-zoom",href:"#"},(0,e.createElement)("i",{className:"fa fa-plus"})),(0,e.createElement)("div",{className:"overlay grid-hover-content"}))},yi=function(t){let{attributes:a,post:r}=t;const{prefix:o,category_position:n,title_tag:l}=a;let i=o+"_layout";const s=`${l}`;return(0,e.createElement)("div",{className:"entry-title-wrapper"},(rttpgParams.hasPro&&"above_title"===n||!vi(a[i],n))&&bi({attributes:a,post:r},"cat-above-title"),(0,e.createElement)(s,{className:"entry-title"},(0,e.createElement)("a",{href:"#",dangerouslySetInnerHTML:{__html:r.title}})))},wi=function(t){let{attributes:a,post:r}=t;const{prefix:o,show_author:n,show_author_image:l,show_meta_icon:i,author_prefix:s,show_category:c,category_position:u,show_date:f,show_tags:d,show_comment_count:p,show_post_count:m,meta_separator:g,meta_ordering:h,author_icon_visibility:b}=a,{avatar_url:v,author_name:_,category:y,tags:w,post_date:E,comment_count:C,post_count:x,category_bg:k}=r;let N=null;"show"===l&&(N="has-author-avatar");let S=y&&"show"===c&&vi(a[o+"_layout"],u)&&["default","with_meta"].includes(u);rttpgParams.hasPro||(S=y&&"show"===c);const D=y.length,P=w.length;let O=g&&"default"!==g?(0,e.createElement)("span",{className:"separator"},g):null;const M={};M.author="show"===n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:`autho ${N}`},"yes"===i&&"hide"!==b&&(0,e.createElement)(e.Fragment,null,"image"===l?(0,e.createElement)("img",{src:v}):(0,e.createElement)("i",{className:"fa fa-user"})),s&&(0,e.createElement)("span",{className:"author-prefix"},s),(0,e.createElement)("a",{href:"#"},_)),O),M.category=y&&S&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"categories-links"},"yes"===i&&(0,e.createElement)("i",{className:"fas fa-folder-open"}),y.map(((t,a)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{href:"#",style:{"--tpg-primary-color":k[a]?k[a]:""}},t),a!==D-1&&(0,e.createElement)("span",{className:"rt-separator"},","))))),O),M.date="show"===f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"date"},"yes"===i&&(0,e.createElement)("i",{className:"far fa-calendar-alt"}),(0,e.createElement)("a",{href:"#"},E)),O),M.tags=w&&"show"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"post-tags-links"},"yes"===i&&(0,e.createElement)("i",{className:"fa fa-tags"}),w.map(((t,a)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{href:"#"},t),a!==P-1&&(0,e.createElement)("span",{className:"rt-separator"},","))))),O),M.comment_count="show"===p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"comment-count"},"yes"===i&&(0,e.createElement)("i",{className:"fas fa-comments"}),C),O),M.post_count=rttpgParams.hasPro&&"show"===m&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"post-count"},"yes"===i&&(0,e.createElement)("i",{className:"fa fa-eye"}),x),O);const T=Object.keys(M),I=[...h],L=I.map((e=>e.value));return T.length!=h.length&&L.length&&T.filter((e=>!L.includes(e))).map((e=>I.push({value:e,label:e}))),(0,e.createElement)("div",{className:"post-meta-tags rt-el-post-meta"},I.length?I.map((e=>M[e.value])):T.map((e=>M[e])))};const Ei=rttpgParams.ssList;var Ci=function(){return(0,e.createElement)("div",{className:"rt-tpg-social-share"},Ei.includes("facebook")&&(0,e.createElement)("a",{href:"#",className:"facebook"},(0,e.createElement)("i",{className:"fab fa-facebook-f","aria-hidden":"true"})),Ei.includes("twitter")&&(0,e.createElement)("a",{href:"#",className:"twitter"},(0,e.createElement)("i",{className:"fab fa-twitter","aria-hidden":"true"})),Ei.includes("linkedin")&&(0,e.createElement)("a",{href:"#",className:"linkedin"},(0,e.createElement)("i",{className:"fab fa-linkedin-in","aria-hidden":"true"})),Ei.includes("pinterest")&&(0,e.createElement)("a",{href:"#",className:"pinterest"},(0,e.createElement)("i",{className:"fab fa-pinterest","aria-hidden":"true"})),Ei.includes("reddit")&&(0,e.createElement)("a",{href:"#",className:"reddit"},(0,e.createElement)("i",{className:"fab fa-reddit-alien","aria-hidden":"true"})),Ei.includes("email")&&(0,e.createElement)("a",{href:"#",className:"email"},(0,e.createElement)("i",{className:"fa fa-envelope"})))},xi=function(t){let{attributes:a}=t;const{read_more_label:r,post_link_type:o,show_btn_icon:n,readmore_btn_icon:l,readmore_icon_position:i}=a;let s=" tpg-post-link";return"popup"===o?s+=" tpg-single-popup":"multi_popup"===o&&(s+=" tpg-multi-popup"),r?(0,e.createElement)("div",{className:"post-footer"},(0,e.createElement)("div",{className:"read-more"},(0,e.createElement)("a",{href:"#",className:s},"left"===i&&"yes"===n&&(0,e.createElement)("i",{className:`left-icon ${l}`}),r,"right"===i&&"yes"===n&&(0,e.createElement)("i",{className:`right-icon ${l}`})))):""},ki=function(t){let{attributes:a,post:r}=t;const{show_excerpt:o}=a;return(0,e.createElement)("div",{className:"tpg-excerpt tpg-el-excerpt"},"show"===o&&r.excerpt&&(0,e.createElement)("div",{className:"tpg-excerpt-inner",dangerouslySetInnerHTML:{__html:r.excerpt}}),r.acf_data&&(0,e.createElement)("div",{dangerouslySetInnerHTML:{__html:r.acf_data}}))},Ni=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-item";return b+=" "+n,"masonry"===l&&(b+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a}))))},Si=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-item";return b+=" "+n,"masonry"===l&&(b+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a}))))},Di=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-item";return b+=" "+n,"masonry"===l&&(b+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a}))))},Pi=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,show_thumb:l,show_title:i,show_meta:s,show_excerpt:c,show_acf:u,show_social_share:f,show_read_more:d}=a;let p={...o};const m=Object.keys(p);m.length&&m.map((function(e){"1"==p[e]?p[e]="12":"2"==p[e]?p[e]="6":"3"==p[e]?p[e]="4":"4"==p[e]?p[e]="3":"5"==p[e]?p[e]="24":"6"==p[e]&&(p[e]="2")}));let g="rt-col-md-"+(null!=p&&p.lg?p.lg:"6")+" rt-col-sm-"+(null!=p&&p.md?p.md:"6")+" rt-col-xs-"+(null!=p&&p.sm?p.sm:"12"),h=" rt-grid-item";return h+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+g+" "+h},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper-flex"},"show"===l&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"post-right-content"},"show"===i&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===c||"show"===u)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===f&&(0,e.createElement)(Ci,null),"show"===d&&(0,e.createElement)(xi,{attributes:a})))))},Oi=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a,{tpg_post_count:d}=r;let p=" ";return p+=" "+o,(0,e.createElement)("div",{className:`offset-item ${r.post_class} ${p}`},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"offset-content"},"show"===l&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===s||"show"===c)&&1==d&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&1==d&&(0,e.createElement)(Ci,null),"show"===f&&1==d&&(0,e.createElement)(xi,{attributes:a})))))},Mi=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a,{tpg_post_count:d}=r;let p=" ";return p+=" "+o,(0,e.createElement)("div",{className:`offset-item ${r.post_class} ${p}`},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"offset-content"},"show"===l&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===s||"show"===c)&&1==d&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&1==d&&(0,e.createElement)(Ci,null),"show"===f&&1==d&&(0,e.createElement)(xi,{attributes:a})))))},Ti=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a,{tpg_post_count:d}=r;let p=" ";return p+=" "+o,(0,e.createElement)("div",{className:`offset-item ${r.post_class} ${p}`},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"offset-content"},"show"===l&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===s||"show"===c)&&1==d&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&1==d&&(0,e.createElement)(Ci,null),"show"===f&&1==d&&(0,e.createElement)(xi,{attributes:a})))))},Ii=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a,{tpg_post_count:d}=r;let p=" ";return p+=" "+o,(0,e.createElement)("div",{className:`offset-item ${r.post_class} ${p}`},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"offset-content"},"show"===l&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===s||"show"===c)&&1==d&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&1==d&&(0,e.createElement)(Ci,null),"show"===f&&1==d&&(0,e.createElement)(xi,{attributes:a})))))},Li=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i}=a;let s={...o};const c=Object.keys(s);c.length&&c.map((function(e){"1"==s[e]?s[e]="12":"2"==s[e]?s[e]="6":"3"==s[e]?s[e]="4":"4"==s[e]?s[e]="3":"5"==s[e]?s[e]="24":"6"==s[e]&&(s[e]="2")}));let u="rt-col-md-"+(null!=s&&s.lg?s.lg:"4")+" rt-col-sm-"+(null!=s&&s.md?s.md:"6")+" rt-col-xs-"+(null!=s&&s.sm?s.sm:"12"),f=" rt-grid-item";return f+=" "+n,"masonry"===l&&(f+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+u+" "+f,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)("div",{className:"rt-img-holder tpg-el-image-wrap"},(0,e.createElement)(_i,{attributes:a,post:r})))))},Ai=function(t){let{attributes:a,post:r}=t;const{prefix:o}=a;let n=(0,e.createElement)(Ni,{attributes:a,post:r});return"grid-layout3"===a[o+"_layout"]?n=(0,e.createElement)(Si,{attributes:a,post:r}):"grid-layout4"===a[o+"_layout"]?n=(0,e.createElement)(Di,{attributes:a,post:r}):"grid-layout2"===a[o+"_layout"]?n=(0,e.createElement)(Pi,{attributes:a,post:r}):"grid-layout5"===a[o+"_layout"]?n=(0,e.createElement)(Oi,{attributes:a,post:r}):"grid-layout5-2"===a[o+"_layout"]?n=(0,e.createElement)(Mi,{attributes:a,post:r}):"grid-layout6"===a[o+"_layout"]?n=(0,e.createElement)(Ti,{attributes:a,post:r}):"grid-layout6-2"===a[o+"_layout"]?n=(0,e.createElement)(Ii,{attributes:a,post:r}):"grid-layout7"===a[o+"_layout"]&&(n=(0,e.createElement)(Li,{attributes:a,post:r})),n},Fi=window.wp.blockEditor,Bi=t=>{let{attributes:a,setAttributes:r}=t;const{show_section_title:o,section_title_style:n,section_title_source:l,section_title_text:i,section_title_tag:s}=a;if("show"!==o)return"";const c=`${s}`;return(0,e.createElement)("div",{className:`tpg-widget-heading-wrapper rt-clear heading-${n}`},(0,e.createElement)("span",{className:"tpg-widget-heading-line line-left"}),(0,e.createElement)(c,{className:"tpg-widget-heading"},(0,e.createElement)("span",null,"page_title"===l?rttpgParams.pageTitle:(0,e.createElement)(Fi.RichText,{allowedFormats:["core/bold","core/italic"],value:i,onChange:e=>r({section_title_text:e})}))),(0,e.createElement)("span",{className:"tpg-widget-heading-line line-right"}))},ji=a(184),Hi=a.n(ji);const{Component:$i}=wp.element,{__:Ri}=wp.i18n;class Vi extends $i{render(){const{className:t,isCurrent:a,isDots:r,children:o,pageKey:n,onClick:l}=this.props,i=Hi()(t,{active:a},{dots:r});return(0,e.createElement)("li",{className:i},(0,e.createElement)("a",{onClick:()=>l(),href:"#"},"prev"===n&&(0,e.createElement)("span",{className:"fa fa-angle-double-left"}),Ri(o),"next"===n&&(0,e.createElement)("span",{className:"fa fa-angle-double-right"})))}}Vi.defaultProps={isCurrent:!1,isDots:!1,className:""},Vi.propTypes={isCurrent:at().bool,className:at().string,key:at().string,isDots:at().bool,onClick:at().func};var zi=Vi;const{Component:qi}=wp.element;class Yi extends qi{render(){const{total:t,current:a,prevText:r,nextText:o,baseClassName:n,onClickPage:l}=this.props;if(!t)return null;let i=this.props.endSize<1?1:this.props.endSize,s=this.props.midSize<0?2:this.props.midSize,c=!1,u=[];a&&a>1&&u.push({isCurrent:!1,key:"prev",onClick:()=>l(a-1),text:r});for(let e=1;e<=this.props.total;e++)e===a?(c=!0,u.push({isCurrent:!0,key:e,onClick:()=>l(e),className:"pages",text:e})):e<=i||a&&e>=a-s&&e<=a+s||e>t-i?(u.push({isLink:!0,key:e,onClick:()=>l(e),className:"pages",text:e}),c=!0):c&&(u.push({isDots:!0,key:e,onClick:()=>console.log("dots"),className:"pages",text:"..."}),c=!1);return a&&a<t&&u.push({isCurrent:!1,key:"next",onClick:()=>l(a+1),text:o}),(0,e.createElement)("div",{className:n},(0,e.createElement)("ul",{className:"pagination-list"},u.map((t=>{let{isCurrent:a,key:r,text:o,className:n,onClick:l,isDots:i,isLink:s}=t;return(0,e.createElement)(zi,{isCurrent:a,key:r,pageKey:r,onClick:()=>l(),className:n,isDots:i,isLink:s},o)}))))}}Yi.defaultProps={total:0,current:1,prevText:"",nextText:"",endSize:1,midSize:2,baseClassName:"rt-pagination"},Yi.propTypes={total:at().number,current:at().number,prevText:at().string,nextText:at().string,endSize:at().number,midSize:at().number,baseClassName:at().string,onClickPage:at().func};var Gi=function(t){let{props:a,totalPages:r}=t;const{attributes:o,setAttributes:n}=a,{show_pagination:l,page:i,pagination_type:s,load_more_button_text:c,query_change:u,ajax_pagination_type:f}=o;return"show"!==l||r<2?"":(0,e.createElement)("div",{className:"rt-pagination-wrap"},["pagination","pagination_ajax"].includes(s)&&("yes"===f?(0,e.createElement)("div",{className:"rt-pagination"},(0,e.createElement)("ul",{className:"pagination-list"},(0,e.createElement)("li",{className:""},(0,e.createElement)("a",{href:"#"},(0,e.createElement)("i",{className:"fa fa-angle-double-left"}))),(0,e.createElement)("li",{className:""},(0,e.createElement)("a",{href:"#"},(0,e.createElement)("i",{className:"fa fa-angle-double-right"}))))):(0,e.createElement)(Yi,{total:r,current:i,onClickPage:e=>n({page:e,query_change:!0})})),"load_more"===s&&(0,e.createElement)("div",{className:"rt-loadmore-btn rt-loadmore-action rt-loadmore-style"},(0,e.createElement)("span",{className:"rt-loadmore-text"},c||"Load More")))};const{Spinner:Ui}=wp.components,{useEffect:Wi,useRef:Ji}=wp.element;var Qi=function(t){let{props:a,postData:r,filterMarkup:o}=t;const{attributes:n,setAttributes:l,clientId:i}=a,{prefix:s,uniqueId:c,filter_btn_style:u,filter_type:f,grid_layout_style:d,display_per_page:p,query_change:m,middle_border:g}=n,h=r.posts,b=Math.ceil(r.total_post/p);let v=hi({props:a});const _=i.substr(0,6);let y=Ji();Wi((()=>{c?c&&c!==_&&l({uniqueId:_}):l({uniqueId:_}),y.current.addEventListener("click",(function(e){e.target.classList.contains("rt-filter-item-wrap")&&dt.warn("N.B: This field works front-end only.")}))}),[]);let w="";rttpgParams.hasPro&&"carousel"===u&&"button"===f&&(w="carousel");let E="masonry"===d?"tpg-even":d,C=n[s+"_layout"].replace(/-2/g,"");C+=" grid-behaviour",C+=" "+E,C+=" "+s+"_layout_wrapper",["grid-layout6","grid-layout6-2"].includes(n[s+"_layout"])&&"no"===g&&(C+=" disable-middle-border"),m&&(C+=" tpg-editor-loading");const x=t=>{let{posts:a}=t;return a.map((t=>t?t.message?(0,e.createElement)("div",{className:"message"},t.message):(0,e.createElement)(Ai,{attributes:n,post:t}):null))};return(0,e.createElement)("div",{ref:y,className:"rttpg-block-postgrid rttpg-block-"+c+" "+v},(0,e.createElement)("div",{className:`rt-container-fluid rt-tpg-container tpg-el-main-wrapper clearfix ${n[s+"_layout"]}-main`,"data-el-settings":"","data-el-query":"","data-el-path":""},h&&h.length&&(0,e.createElement)("div",{className:`tpg-header-wrapper ${w}`},(0,e.createElement)(Bi,{attributes:n,setAttributes:l}),rttpgParams.hasPro&&(0,e.createElement)("div",{className:"rt-layout-filter-container rt-clear",dangerouslySetInnerHTML:{__html:o}})),(0,e.createElement)("div",{className:`rt-row rt-content-loader ${C}`},h&&h.length?(0,e.createElement)((t=>{let{posts:a,layout:r}=t;if(["grid-layout5","grid-layout5-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-sm-6 rt-col-xs-12 offset-left-wrap offset-left"},(0,e.createElement)(x,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-sm-6 rt-col-xs-12 offset-right"},(0,e.createElement)(x,{posts:t})))}if(["grid-layout6","grid-layout6-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-sm-6 rt-col-md-7 rt-col-xs-12 offset-left-wrap offset-left"},(0,e.createElement)(x,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-sm-6 rt-col-md-5 rt-col-xs-12 offset-right"},(0,e.createElement)(x,{posts:t})))}return(0,e.createElement)(x,{posts:a})}),{posts:h,layout:n[s+"_layout"]}):(0,e.createElement)("div",{className:"rttpg-postgrid-is-loading"},null!=r&&r.message&&r.message?r.message:(0,e.createElement)(Ui,null))),(0,e.createElement)(Gi,{props:a,totalPages:b})))};const{useEffect:Ki,useState:Zi}=wp.element;(0,T.registerBlockType)("rttpg/tpg-grid-layout",{title:(0,I.__)("Grid Layout","the-post-grid"),category:"rttpg",description:"The post grid block, Grid layout",icon:(0,e.createElement)("img",{src:rttpgParams.plugin_url+"/assets/images/gutenberg/grid-layout.svg",alt:(0,I.__)("Grid Layout")}),example:{attributes:{preview:!0}},supports:{align:["center","wide","full"]},keywords:[(0,I.__)("post grid"),(0,I.__)("the post grid"),(0,I.__)("grid layout"),(0,I.__)("the post"),(0,I.__)("the"),(0,I.__)("grid"),(0,I.__)("post")],save:()=>null,edit:t=>{const{isSelected:a,attributes:r,setAttributes:o}=t,{preview:n,prefix:l,uniqueId:i,grid_layout:s,post_id:c,exclude:u,post_limit:f,offset:d,post_keyword:p,display_per_page:m,layout_style:g,ignore_sticky_posts:h,no_posts_found_text:b,show_pagination:v,media_source:_,image_size:y,image_offset_size:w,default_image:E,category_position:C,category_source:x,tag_source:k,taxonomy_lists:S,start_date:D,end_date:P,hover_animation:O,excerpt_type:M,excerpt_limit:T,excerpt_more_text:I,page:L,query_change:F,acf_data_lists:B,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V,post_type:z,author:q,order:Y,orderby:G,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}=r;if(n)return j.grid_preview;const[ue,fe]=Zi([]),[de,pe]=Zi(),[me,ge]=Zi(!1),[he,be]=Zi([]),[ve,_e]=Zi([]),[ye,we]=Zi([]),Ee="undefined"==typeof AbortController?void 0:new AbortController,Ce=()=>{null==de||de.abort(),pe(Ee),A()({path:"/rttpg/v1/image-size",signal:null==Ee?void 0:Ee.signal}).then((e=>{_e(e)}))};return Ki((()=>{null==de||de.abort(),pe(Ee),fe({}),A()({path:"/rttpg/v1/query",signal:null==Ee?void 0:Ee.signal,method:"POST",data:{prefix:l,post_type:z,grid_layout:s,post_id:c,exclude:u,post_limit:f,offset:d,show_pagination:v,ignore_sticky_posts:h,orderby:G,order:Y,display_per_page:m,layout_style:g,author:q,start_date:D,end_date:P,media_source:_,image_size:y,image_offset_size:w,show_taxonomy_filter:U,relation:ne,post_keyword:p,no_posts_found_text:b,default_image:E,category_position:C,taxonomy_lists:S,category_source:x,tag_source:k,hover_animation:O,excerpt_type:M,excerpt_limit:T,excerpt_more_text:I,page:L,acf_data_lists:B,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V}}).then((e=>{o({query_change:!1}),fe(e)})),null==de||de.abort(),pe(Ee),A()({path:"/rttpg/v1/acf",signal:null==Ee?void 0:Ee.signal}).then((e=>{let t=[];Object.keys(e).map((a=>{t.push(e[a])})),be(t)})),rttpgParams.hasPro&&(null==de||de.abort(),pe(Ee),A()({path:"/rttpg/v1/filter",method:"POST",signal:null==Ee?void 0:Ee.signal,data:{prefix:l,post_type:z,author:q,order:Y,orderby:G,taxonomy_lists:S,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}}).then((e=>{o({query_change:!1}),we(null==e?void 0:e.markup)})))}),[me,L]),Ki((()=>{Ce();const e=document.querySelector(".interface-interface-skeleton__sidebar");e.classList.add("tpg-sidebar"),e.addEventListener("click",(function(e){e.target.classList.contains("rttpg-tab-btn")&&("Content"!==e.target.textContent?this.classList.add("tpg-settings-enable"):this.classList.remove("tpg-settings-enable"))})),e.addEventListener("scroll",(function(e){e.target.scrollTop>86?this.classList.add("tpg-should-collapse"):this.classList.remove("tpg-should-collapse")}))}),[]),Ki((()=>{Ce()}),[]),Ki((()=>{const e=document.querySelector(".interface-interface-skeleton__sidebar");e.classList.add("tpg-sidebar"),e.classList.remove("tpg-settings-enable"),e.addEventListener("click",(function(e){e.target.classList.contains("rttpg-tab-btn")&&("Content"!==e.target.textContent?this.classList.add("tpg-settings-enable"):this.classList.remove("tpg-settings-enable"))})),e.addEventListener("scroll",(function(e){e.target.scrollTop>86?this.classList.add("tpg-should-collapse"):this.classList.remove("tpg-should-collapse")}))}),[a]),i&&N(r,"tpg-grid-layout",i),[a&&(0,e.createElement)(gi,{attributes:r,setAttributes:o,changeQuery:()=>{ge(!me),o({query_change:!0,page:1})},acfData:he,imageSizes:ve,postData:ue}),(0,e.createElement)(Qi,{props:t,postData:ue,filterMarkup:ye})]}}),window.wp.data;const{InspectorControls:Xi}=wp.blockEditor;var es=function(t){const{attributes:a,setAttributes:r,changeQuery:o,acfData:n,imageSizes:l}=t,{prefix:i,taxonomy_lists:s,ignore_sticky_posts:c,acf_data_lists:u}=a;let f=i+"_layout";const d=e=>{r(a[f]=e),o()},p=(e,t)=>{let a={...s,[t]:{name:t,options:e}};r({taxonomy_lists:a}),o()},m=(e,t)=>{let a={...u,[t]:{name:t,options:e}};r({acf_data_lists:a}),o()};return(0,e.createElement)(Xi,{key:"controls"},(0,e.createElement)("div",{className:"rttpg-panel-control-wrapper"},(0,e.createElement)(Le.TabPanel,{className:"rttpg-tab-panel",activeClass:"active-tab",tabs:[{name:"content",title:"Content",className:"rttpg-tab-btn content"},{name:"settings",title:"Settings",className:"rttpg-tab-btn settings"},{name:"styles",title:"Styles",className:"rttpg-tab-btn styles"}]},(a=>(0,e.createElement)("div",{className:"rttpg-tab-content"},"content"===a.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ht,{data:t,changeLayout:d}),(0,e.createElement)(on,{data:t,changeTaxonomy:p}),(0,e.createElement)(fn,{data:t}),(0,e.createElement)(ln,{data:t}),(0,e.createElement)(cn,{data:t}),(0,e.createElement)(Fe,null)),"settings"===a.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(pn,{data:t}),(0,e.createElement)(gn,{data:t}),(0,e.createElement)(bn,{data:t}),(0,e.createElement)(Dn,{data:t,imageSizes:l}),(0,e.createElement)(yn,{data:t}),(0,e.createElement)(On,{data:t}),(0,e.createElement)(In,{data:t,changeAcfData:m,acfData:n}),(0,e.createElement)($n,{data:t})),"styles"===a.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(il,{data:t}),(0,e.createElement)(cl,{data:t}),(0,e.createElement)(Hl,{data:t}),(0,e.createElement)(Rl,{data:t}),(0,e.createElement)(Gl,{data:t}),(0,e.createElement)(Wl,{data:t}),(0,e.createElement)(Ql,{data:t}),(0,e.createElement)(Zl,{data:t}),(0,e.createElement)(nl,{data:t}),rttpgParams.hasPro&&(0,e.createElement)(ei,{data:t}),(0,e.createElement)(fi,{data:t}),(0,e.createElement)(pi,{data:t})))))))},ts=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"12")+" rt-col-sm-"+(null!=m&&m.md?m.md:"12")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-list-item rt-grid-item";return b+=" "+n,"masonry"===l&&(b+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"post-right-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a})))))},as=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h=" rt-list-item rt-grid-item";h+=" "+n,"masonry"===l&&(h+=" masonry-grid-item");let b="rt-col-md-"+(null!=m&&m.lg?m.lg:"6")+" rt-col-sm-"+(null!=m&&m.md?m.md:"12")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12");return 1==r.tpg_post_count&&(b="rt-col-md-12 rt-col-sm-12 rt-col-xs-12"),(0,e.createElement)("div",{className:r.post_class+" "+b+" "+h,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(e.Fragment,null,1==r.tpg_post_count?(0,e.createElement)(_i,{attributes:a,post:r}):(0,e.createElement)(_i,{attributes:a,post:r,offset:"yes"})),(0,e.createElement)("div",{className:"post-right-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&1==r.tpg_post_count&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&1==r.tpg_post_count&&(0,e.createElement)(Ci,null),"show"===p&&1==r.tpg_post_count&&(0,e.createElement)(xi,{attributes:a})))))},rs=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,layout_style:n,show_thumb:l,show_title:i,show_meta:s,show_excerpt:c,show_acf:u,show_social_share:f,show_read_more:d}=a;let p=" rt-list-item rt-grid-item";return p+=" "+o,"masonry"===n&&(p+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" rt-col-md-12 rt-col-sm-12 rt-col-xs-12 "+p,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===l&&(0,e.createElement)(e.Fragment,null,1==r.tpg_post_count?(0,e.createElement)(_i,{attributes:a,post:r}):(0,e.createElement)(_i,{attributes:a,post:r,offset:"yes"})),(0,e.createElement)("div",{className:"post-right-content"},"show"===i&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===c||"show"===u)&&1==r.tpg_post_count&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===f&&(0,e.createElement)(Ci,null),"show"===d&&1==r.tpg_post_count&&(0,e.createElement)(xi,{attributes:a})))))},os=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"12")+" rt-col-sm-"+(null!=m&&m.md?m.md:"12")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-list-item rt-grid-item";return b+=" "+n,"masonry"===l&&(b+=" masonry-grid-item"),(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"post-right-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a})))))},ns=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-list-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"post-right-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a})))))},ls=function(t){let{attributes:a,post:r}=t;const{prefix:o}=a;let n=(0,e.createElement)(ts,{attributes:a,post:r});return"list-layout2"===a[o+"_layout"]||"list-layout2-2"===a[o+"_layout"]?n=(0,e.createElement)(as,{attributes:a,post:r}):"list-layout3"===a[o+"_layout"]||"list-layout3-2"===a[o+"_layout"]?n=(0,e.createElement)(rs,{attributes:a,post:r}):"list-layout4"===a[o+"_layout"]?n=(0,e.createElement)(os,{attributes:a,post:r}):"list-layout5"===a[o+"_layout"]&&(n=(0,e.createElement)(ns,{attributes:a,post:r})),n};const{Spinner:is}=wp.components,{useEffect:ss,useRef:cs}=wp.element;var us=function(t){let{props:a,postData:r,filterMarkup:o}=t;const{attributes:n,setAttributes:l,clientId:i}=a,{prefix:s,uniqueId:c,filter_btn_style:u,filter_type:f,grid_layout_style:d,display_per_page:p,query_change:m}=n,g=r.posts,h=Math.ceil(r.total_post/p);let b=hi({props:a});const v=i.substr(0,6);let _=cs();ss((()=>{c?c&&c!==v&&l({uniqueId:v}):l({uniqueId:v}),_.current.addEventListener("click",(function(e){e.target.classList.contains("rt-filter-item-wrap")&&dt.warn("N.B: This field works front-end only.")}))}),[]);let y="";rttpgParams.hasPro&&"carousel"===u&&"button"===f&&(y="carousel");let w=n[s+"_layout"].replace(/-2/g,"");w+=" list-behaviour",w+=" "+d,w+=" "+s+"-layout-wrapper",m&&(w+=" tpg-editor-loading");const E=t=>{let{posts:a}=t;return a.map((t=>t?t.message?(0,e.createElement)("div",{className:"message"},t.message):(0,e.createElement)(ls,{attributes:n,post:t}):null))};return(0,e.createElement)("div",{ref:_,className:"rttpg-block-postgrid rttpg-block-"+c+" "+b},(0,e.createElement)("div",{className:`rt-container-fluid rt-tpg-container tpg-el-main-wrapper clearfix ${n[s+"_layout"]}-main`,"data-el-settings":"","data-el-query":"","data-el-path":""},g&&g.length&&(0,e.createElement)("div",{className:`tpg-header-wrapper ${y}`},(0,e.createElement)(Bi,{attributes:n,setAttributes:l}),rttpgParams.hasPro&&(0,e.createElement)("div",{className:"rt-layout-filter-container rt-clear",dangerouslySetInnerHTML:{__html:o}})),(0,e.createElement)("div",{className:`rt-row rt-content-loader ${w}`},g&&g.length?(0,e.createElement)((t=>{let{posts:a,layout:r}=t;if(["list-layout2","list-layout2-2","list-layout3","list-layout3-2"].includes(r)){const t=[...a].slice(1);let o="rt-col-xs-12 rt-col-md-4 rt-col-sm-5 offset-left-wrap offset-left",n="rt-col-xs-12 rt-col-md-8 rt-col-sm-7 offset-right";return["list-layout3","list-layout3-2"].includes(r)&&(o="rt-col-md-6 rt-col-sm-5 offset-left-wrap offset-left",n="rt-col-md-6 rt-col-sm-7 offset-right"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:o},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:n},(0,e.createElement)("div",{className:"rt-row"},(0,e.createElement)(E,{posts:t}))))}return(0,e.createElement)(E,{posts:a})}),{posts:g,layout:n[s+"_layout"]}):(0,e.createElement)("div",{className:"rttpg-postgrid-is-loading"},null!=r&&r.message&&r.message?r.message:(0,e.createElement)(is,null))),(0,e.createElement)(Gi,{props:a,totalPages:h})))};const{useEffect:fs,useState:ds}=wp.element;(0,T.registerBlockType)("rttpg/tpg-list-layout",{title:(0,I.__)("List Layout","the-post-grid"),category:"rttpg",description:"The post grid block, List layout",icon:(0,e.createElement)("img",{src:rttpgParams.plugin_url+"/assets/images/gutenberg/list-layout.svg",alt:(0,I.__)("Grid Layout")}),example:{attributes:{preview:!0}},supports:{align:["center","wide","full"]},keywords:[(0,I.__)("post grid"),(0,I.__)("the post grid"),(0,I.__)("list layout"),(0,I.__)("the post"),(0,I.__)("list"),(0,I.__)("the"),(0,I.__)("grid"),(0,I.__)("post")],save:()=>null,edit:t=>{const{isSelected:a,attributes:r,setAttributes:o}=t,{preview:n,prefix:l,list_layout:i,uniqueId:s,post_id:c,exclude:u,post_limit:f,offset:d,post_keyword:p,display_per_page:m,layout_style:g,ignore_sticky_posts:h,no_posts_found_text:b,show_pagination:v,media_source:_,image_size:y,image_offset_size:w,default_image:E,category_position:C,category_source:x,tag_source:k,taxonomy_lists:S,start_date:D,end_date:P,hover_animation:O,excerpt_type:M,excerpt_limit:T,excerpt_more_text:I,page:L,query_change:F,acf_data_lists:B,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V,post_type:z,author:q,order:Y,orderby:G,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}=r;if(n)return j.list_preview;const[ue,fe]=ds([]),[de,pe]=ds(),[me,ge]=ds(!1),[he,be]=ds([]),[ve,_e]=ds([]),[ye,we]=ds([]),Ee="undefined"==typeof AbortController?void 0:new AbortController;return fs((()=>{null==de||de.abort(),pe(Ee),fe({}),A()({path:"/rttpg/v1/query",method:"POST",signal:null==Ee?void 0:Ee.signal,data:{prefix:l,post_type:z,list_layout:i,post_id:c,exclude:u,post_limit:f,offset:d,show_pagination:v,ignore_sticky_posts:h,orderby:G,order:Y,display_per_page:m,layout_style:g,author:q,start_date:D,end_date:P,media_source:_,image_size:y,image_offset_size:w,show_taxonomy_filter:U,relation:ne,post_keyword:p,no_posts_found_text:b,default_image:E,category_position:C,taxonomy_lists:S,category_source:x,tag_source:k,hover_animation:O,excerpt_type:M,excerpt_limit:T,excerpt_more_text:I,page:L,acf_data_lists:B,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V}}).then((e=>{o({query_change:!1}),fe(e)})),null==de||de.abort(),pe(Ee),A()({path:"/rttpg/v1/acf",signal:null==Ee?void 0:Ee.signal}).then((e=>{let t=[];Object.keys(e).map((a=>{t.push(e[a])})),be(t)})),rttpgParams.hasPro&&(null==de||de.abort(),pe(Ee),A()({path:"/rttpg/v1/filter",signal:null==Ee?void 0:Ee.signal,method:"POST",data:{prefix:l,post_type:z,author:q,order:Y,orderby:G,taxonomy_lists:S,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}}).then((e=>{o({query_change:!1}),we(null==e?void 0:e.markup)})))}),[me,L]),(0,Fi.useBlockProps)(),fs((()=>{null==de||de.abort(),pe(Ee),A()({path:"/rttpg/v1/image-size",signal:null==Ee?void 0:Ee.signal}).then((e=>{_e(e)}))}),[]),fs((()=>{const e=document.querySelector(".interface-interface-skeleton__sidebar");e.classList.add("tpg-sidebar"),e.classList.remove("tpg-settings-enable"),e.addEventListener("click",(function(e){e.target.classList.contains("rttpg-tab-btn")&&("Content"!==e.target.textContent?this.classList.add("tpg-settings-enable"):this.classList.remove("tpg-settings-enable"))})),e.addEventListener("scroll",(function(e){e.target.scrollTop>86?this.classList.add("tpg-should-collapse"):this.classList.remove("tpg-should-collapse")}))}),[a]),s&&N(r,"tpg-list-layout",s),[a&&(0,e.createElement)(es,{attributes:r,setAttributes:o,changeQuery:()=>{ge(!me),o({query_change:!0,page:1})},acfData:he,imageSizes:ve,postData:ue}),(0,e.createElement)(us,{props:t,postData:ue,filterMarkup:ye})]}});const{InspectorControls:ps}=wp.blockEditor;var ms=function(t){const{attributes:a,setAttributes:r,changeQuery:o,acfData:n,imageSizes:l}=t,{prefix:i,taxonomy_lists:s,ignore_sticky_posts:c,acf_data_lists:u}=a;let f=i+"_layout";const d=e=>{r(a[f]=e),o()},p=(e,t)=>{let a={...s,[t]:{name:t,options:e}};r({taxonomy_lists:a}),o()},m=(e,t)=>{let a={...u,[t]:{name:t,options:e}};r({acf_data_lists:a}),o()};return(0,e.createElement)(ps,{key:"controls"},(0,e.createElement)("div",{className:"rttpg-panel-control-wrapper"},(0,e.createElement)(Le.TabPanel,{className:"rttpg-tab-panel",activeClass:"active-tab",tabs:[{name:"content",title:"Content",className:"rttpg-tab-btn content"},{name:"settings",title:"Settings",className:"rttpg-tab-btn settings"},{name:"styles",title:"Styles",className:"rttpg-tab-btn styles"}]},(r=>(0,e.createElement)("div",{className:"rttpg-tab-content"},"content"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ht,{data:t,changeLayout:d}),(0,e.createElement)(on,{data:t,changeTaxonomy:p}),(0,e.createElement)(fn,{data:t}),(0,e.createElement)(ln,{data:t}),(0,e.createElement)(cn,{data:t}),(0,e.createElement)(Fe,null)),"settings"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(pn,{data:t}),(0,e.createElement)(gn,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(bn,{data:t}),(0,e.createElement)(Dn,{data:t,imageSizes:l}),"grid-layout7"!==a[f]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(yn,{data:t}),(0,e.createElement)(On,{data:t}),(0,e.createElement)(In,{data:t,changeAcfData:m,acfData:n}),(0,e.createElement)($n,{data:t}))),"styles"===r.name&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(il,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(cl,{data:t}),(0,e.createElement)(Hl,{data:t}),"grid-layout7"!==a[f]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Rl,{data:t}),(0,e.createElement)(Gl,{data:t}),(0,e.createElement)(Wl,{data:t}),(0,e.createElement)(Ql,{data:t}),(0,e.createElement)(Zl,{data:t}),(0,e.createElement)(nl,{data:t}),rttpgParams.hasPro&&(0,e.createElement)(ei,{data:t}),(0,e.createElement)(fi,{data:t}),(0,e.createElement)(pi,{data:t}))))))))},gs=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-hover-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a})))))},hs=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-hover-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a})))))},bs=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"4")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-hover-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a})))))},vs=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h=" rt-grid-hover-item rt-grid-item";h+=" "+n;let b="rt-col-md-"+(null!=m&&m.lg?m.lg:"6")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12");return 1==r.tpg_post_count&&(b="rt-col-md-12 rt-col-sm-12 rt-col-xs-12 tpg-reset-margin"),(0,e.createElement)("div",{className:r.post_class+" "+b+" "+h,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&1==r.tpg_post_count&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&1==r.tpg_post_count&&(0,e.createElement)(Ci,null),"show"===p&&1==r.tpg_post_count&&(0,e.createElement)(xi,{attributes:a})))))},_s=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m=" rt-grid-hover-item rt-grid-item";m+=" "+n;let g="rt-col-md-12 rt-col-sm-12 rt-col-xs-12";return 1==r.tpg_post_count&&(g="rt-col-md-12 rt-col-sm-12 rt-col-xs-12 tpg-reset-margin"),(0,e.createElement)("div",{className:r.post_class+" "+g+" "+m,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a})))))},ys=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a;let d=" "+o,p="rt-col-md-6 rt-col-sm-6 rt-col-xs-12 rt-grid-hover-item rt-grid-item";return 1!=r.tpg_post_count&&2!=r.tpg_post_count||(p=""),(0,e.createElement)("div",{className:r.post_class+" "+p+" "+d,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===l&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===s||"show"===c)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&(0,e.createElement)(Ci,null),"show"===f&&(0,e.createElement)(xi,{attributes:a})))))},ws=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,layout_style:n,show_thumb:l,show_title:i,show_meta:s,show_excerpt:c,show_acf:u,show_social_share:f,show_read_more:d}=a;let p=" rt-grid-hover-item rt-grid-item";p+=" "+o;let m="rt-col-md-6 rt-col-sm-6 rt-col-xs-12";return 1==r.tpg_post_count&&(m=" tpg-reset-margin"),(0,e.createElement)("div",{className:r.post_class+" "+m+" "+p,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===l&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===i&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===c||"show"===u)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===f&&(0,e.createElement)(Ci,null),"show"===d&&(0,e.createElement)(xi,{attributes:a})))))},Es=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,layout_style:n,show_thumb:l,show_title:i,show_meta:s,show_excerpt:c,show_acf:u,show_social_share:f,show_read_more:d}=a;let p=" rt-grid-hover-item rt-grid-item";return p+=" "+o,(0,e.createElement)("div",{className:r.post_class+" "+p,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===l&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===i&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===s&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===c||"show"===u)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===f&&(0,e.createElement)(Ci,null),"show"===d&&(0,e.createElement)(xi,{attributes:a})))))},Cs=function(t){let{attributes:a,post:r}=t;const{hover_animation:o,show_thumb:n,show_title:l,show_meta:i,show_excerpt:s,show_acf:c,show_social_share:u,show_read_more:f}=a;let d="rt-col-md-12 rt-col-sm-12 rt-col-xs-12";1==r.tpg_post_count&&(d=" ");let p=" rt-grid-hover-item rt-grid-item";return p+=" "+o,(0,e.createElement)("div",{className:r.post_class+" "+d+" "+p,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===n&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===l&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===i&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===s||"show"===c&&1==r.tpg_post_count)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===u&&(0,e.createElement)(Ci,null),"show"===f&&(0,e.createElement)(xi,{attributes:a})))))},xs=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"6")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-hover-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a})))))},ks=function(t){let{attributes:a,post:r}=t;const{grid_column:o,hover_animation:n,layout_style:l,show_thumb:i,show_title:s,show_meta:c,show_excerpt:u,show_acf:f,show_social_share:d,show_read_more:p}=a;let m={...o};const g=Object.keys(m);g.length&&g.map((function(e){"1"==m[e]?m[e]="12":"2"==m[e]?m[e]="6":"3"==m[e]?m[e]="4":"4"==m[e]?m[e]="3":"5"==m[e]?m[e]="24":"6"==m[e]&&(m[e]="2")}));let h="rt-col-md-"+(null!=m&&m.lg?m.lg:"6")+" rt-col-sm-"+(null!=m&&m.md?m.md:"6")+" rt-col-xs-"+(null!=m&&m.sm?m.sm:"12"),b=" rt-grid-hover-item rt-grid-item";return b+=" "+n,(0,e.createElement)("div",{className:r.post_class+" "+h+" "+b,"data-id":r.id},(0,e.createElement)("div",{className:"rt-holder tpg-post-holder"},(0,e.createElement)("div",{className:"rt-detail rt-el-content-wrapper"},"show"===i&&(0,e.createElement)(_i,{attributes:a,post:r}),(0,e.createElement)("div",{className:"grid-hover-content"},"show"===s&&(0,e.createElement)(yi,{attributes:a,post:r}),"show"===c&&(0,e.createElement)(wi,{attributes:a,post:r}),("show"===u||"show"===f)&&(0,e.createElement)(ki,{attributes:a,post:r}),rttpgParams.hasPro&&"show"===d&&(0,e.createElement)(Ci,null),"show"===p&&(0,e.createElement)(xi,{attributes:a})))))},Ns=function(t){let{attributes:a,post:r}=t;const{prefix:o}=a;let n=(0,e.createElement)(gs,{attributes:a,post:r});return"grid_hover-layout2"===a[o+"_layout"]?n=(0,e.createElement)(hs,{attributes:a,post:r}):"grid_hover-layout3"===a[o+"_layout"]?n=(0,e.createElement)(bs,{attributes:a,post:r}):"grid_hover-layout4"===a[o+"_layout"]||"grid_hover-layout4-2"===a[o+"_layout"]?n=(0,e.createElement)(vs,{attributes:a,post:r}):"grid_hover-layout5"===a[o+"_layout"]||"grid_hover-layout5-2"===a[o+"_layout"]?n=(0,e.createElement)(_s,{attributes:a,post:r}):"grid_hover-layout6"===a[o+"_layout"]||"grid_hover-layout6-2"===a[o+"_layout"]?n=(0,e.createElement)(ys,{attributes:a,post:r}):"grid_hover-layout7"===a[o+"_layout"]||"grid_hover-layout7-2"===a[o+"_layout"]?n=(0,e.createElement)(ws,{attributes:a,post:r}):"grid_hover-layout8"===a[o+"_layout"]?n=(0,e.createElement)(Es,{attributes:a,post:r}):"grid_hover-layout9"===a[o+"_layout"]||"grid_hover-layout9-2"===a[o+"_layout"]?n=(0,e.createElement)(Cs,{attributes:a,post:r}):"grid_hover-layout10"===a[o+"_layout"]?n=(0,e.createElement)(xs,{attributes:a,post:r}):"grid_hover-layout11"===a[o+"_layout"]&&(n=(0,e.createElement)(ks,{attributes:a,post:r})),n};const{Spinner:Ss}=wp.components,{useEffect:Ds,useRef:Ps}=wp.element;var Os=function(t){let{props:a,postData:r,filterMarkup:o}=t;const{attributes:n,setAttributes:l,clientId:i}=a,{prefix:s,uniqueId:c,filter_btn_style:u,filter_type:f,grid_layout_style:d,display_per_page:p,query_change:m}=n,g=r.posts,h=Math.ceil(r.total_post/p);let b=hi({props:a});const v=i.substr(0,6);let _=Ps();Ds((()=>{c?c&&c!==v&&l({uniqueId:v}):l({uniqueId:v}),_.current.addEventListener("click",(function(e){e.target.classList.contains("rt-filter-item-wrap")&&dt.warn("N.B: This field works front-end only.")}))}),[]);let y="";rttpgParams.hasPro&&"carousel"===u&&"button"===f&&(y="carousel");let w=n[s+"_layout"].replace(/-2/g,"");w+=" grid-behaviour",w+=" "+d,w+=" "+s+"_layout_wrapper",["grid_hover-layout6","grid_hover-layout7","grid_hover-layout8","grid_hover-layout9","grid_hover-layout10","grid_hover-layout11","grid_hover-layout5-2","grid_hover-layout6-2","grid_hover-layout7-2","grid_hover-layout9-2"].includes(n[s+"_layout"])&&(w+=" grid_hover-layout5"),m&&(w+=" tpg-editor-loading");const E=t=>{let{posts:a}=t;return a.map((t=>t?t.message?(0,e.createElement)("div",{className:"message"},t.message):(0,e.createElement)(Ns,{attributes:n,post:t}):null))};return(0,e.createElement)("div",{ref:_,className:"rttpg-block-postgrid rttpg-block-"+c+" "+b},(0,e.createElement)("div",{className:`rt-container-fluid rt-tpg-container tpg-el-main-wrapper clearfix ${n[s+"_layout"]}-main`,"data-sc-id":"elementor","data-el-settings":"","data-el-query":"","data-el-path":""},g&&g.length&&(0,e.createElement)("div",{className:`tpg-header-wrapper ${y}`},(0,e.createElement)(Bi,{attributes:n,setAttributes:l}),rttpgParams.hasPro&&(0,e.createElement)("div",{className:"rt-layout-filter-container rt-clear",dangerouslySetInnerHTML:{__html:o}})),(0,e.createElement)("div",{className:`rt-row rt-content-loader ${w}`},g&&g.length?(0,e.createElement)((t=>{let{posts:a,layout:r}=t;if(["grid_hover-layout4","grid_hover-layout4-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-md-6 rt-col-sm-6 offset-left-wrap offset-left"},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-md-6 rt-col-sm-6 offset-right"},(0,e.createElement)("div",{className:"rt-row rt-row-inner"},(0,e.createElement)(E,{posts:t}))))}if(["grid_hover-layout5","grid_hover-layout5-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-md-7 rt-col-sm-6 offset-left-wrap offset-left"},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-md-5 rt-col-sm-6 offset-right"},(0,e.createElement)("div",{className:"rt-row rt-row-inner"},(0,e.createElement)(E,{posts:t}))))}if(["grid_hover-layout6","grid_hover-layout6-2"].includes(r)){const t=[...a].slice(2);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-6 rt-col-sm-6 rt-grid-hover-item rt-grid-item offset-left-wrap offset-left"},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-6 rt-col-sm-6 offset-right"},(0,e.createElement)("div",{className:"rt-row rt-row-inner"},(0,e.createElement)("div",{className:"rt-col-xs-12 default rt-grid-hover-item rt-grid-item"},(0,e.createElement)(E,{posts:[a[1]]})),(0,e.createElement)(E,{posts:t}))))}if(["grid_hover-layout7","grid_hover-layout7-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-4 rt-col-sm-5 offset-left-wrap offset-left"},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-8 rt-col-sm-7 offset-right"},(0,e.createElement)("div",{className:"rt-row rt-row-inner"},(0,e.createElement)(E,{posts:t}))))}if("grid_hover-layout8"===r){let t=[];for(let e=0;e<a.length;e+=5)t.push(a.slice(e,e+5));return t.map((function(t){return(0,e.createElement)("div",{className:"display-grid-wrapper"},(0,e.createElement)(E,{posts:t}))}))}if(["grid_hover-layout9","grid_hover-layout9-2"].includes(r)){const t=[...a].slice(1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-7 rt-col-sm-6 offset-left-wrap offset-left"},(0,e.createElement)(E,{posts:[a[0]]})),(0,e.createElement)("div",{className:"rt-col-xs-12 rt-col-md-5 rt-col-sm-6 offset-right"},(0,e.createElement)("div",{className:"rt-row rt-row-inner"},(0,e.createElement)(E,{posts:t}))))}return(0,e.createElement)(E,{posts:a})}),{posts:g,layout:n[s+"_layout"]}):(0,e.createElement)("div",{className:"rttpg-postgrid-is-loading"},null!=r&&r.message&&r.message?r.message:(0,e.createElement)(Ss,null))),(0,e.createElement)(Gi,{props:a,totalPages:h})))};const{useEffect:Ms,useState:Ts}=wp.element;(0,T.registerBlockType)("rttpg/tpg-grid-hover-layout",{title:(0,I.__)("Grid Hover Layout","the-post-grid"),category:"rttpg",description:"The post grid block, Grid Hover layout",icon:(0,e.createElement)("img",{src:rttpgParams.plugin_url+"/assets/images/gutenberg/grid-hover-layout.svg",alt:(0,I.__)("Grid Layout")}),example:{attributes:{preview:!0}},supports:{align:["center","wide","full"]},keywords:[(0,I.__)("post grid"),(0,I.__)("the post grid"),(0,I.__)("grid hover layout"),(0,I.__)("hover layout"),(0,I.__)("the post"),(0,I.__)("list"),(0,I.__)("the"),(0,I.__)("grid"),(0,I.__)("post")],save:()=>null,edit:t=>{const{isSelected:a,attributes:r,setAttributes:o}=t,{preview:n,prefix:l,uniqueId:i,grid_hover_layout:s,post_id:c,exclude:u,post_limit:f,offset:d,post_keyword:p,display_per_page:m,layout_style:g,ignore_sticky_posts:h,no_posts_found_text:b,show_pagination:v,media_source:_,image_size:y,image_offset_size:w,default_image:E,category_position:C,category_source:x,tag_source:k,taxonomy_lists:S,start_date:D,end_date:P,hover_animation:O,excerpt_type:M,excerpt_limit:T,excerpt_more_text:I,page:L,query_change:F,acf_data_lists:B,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V,post_type:z,author:q,order:Y,orderby:G,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}=r;if(n)return j.grid_hover_preview;const[ue,fe]=Ts([]),[de,pe]=Ts(),[me,ge]=Ts(!1),[he,be]=Ts([]),[ve,_e]=Ts([]),[ye,we]=Ts([]),Ee="undefined"==typeof AbortController?void 0:new AbortController;return Ms((()=>{null==de||de.abort(),pe(Ee),fe({}),A()({path:"/rttpg/v1/query",method:"POST",data:{prefix:l,post_type:z,grid_hover_layout:s,post_id:c,exclude:u,post_limit:f,offset:d,show_pagination:v,ignore_sticky_posts:h,orderby:G,order:Y,display_per_page:m,layout_style:g,author:q,start_date:D,end_date:P,media_source:_,image_size:y,image_offset_size:w,show_taxonomy_filter:U,relation:ne,post_keyword:p,no_posts_found_text:b,default_image:E,category_position:C,taxonomy_lists:S,category_source:x,tag_source:k,hover_animation:O,excerpt_type:M,excerpt_limit:T,excerpt_more_text:I,page:L,acf_data_lists:B,show_acf:H,cf_hide_empty_value:$,cf_show_only_value:R,cf_hide_group_title:V}}).then((e=>{o({query_change:!1}),fe(e)})),null==de||de.abort(),pe(Ee),A()({path:"/rttpg/v1/acf",signal:null==Ee?void 0:Ee.signal}).then((e=>{let t=[];Object.keys(e).map((a=>{t.push(e[a])})),be(t)})),rttpgParams.hasPro&&(null==de||de.abort(),pe(Ee),A()({path:"/rttpg/v1/filter",method:"POST",signal:null==Ee?void 0:Ee.signal,data:{prefix:l,post_type:z,author:q,order:Y,orderby:G,taxonomy_lists:S,show_taxonomy_filter:U,show_author_filter:W,show_order_by:J,show_sort_order:Q,show_search:K,filter_btn_style:Z,filter_btn_item_per_page_mobile:X,filter_btn_item_per_page_tablet:ee,filter_btn_item_per_page:te,filter_type:ae,filter_taxonomy:re,filter_post_count:oe,relation:ne,tax_filter_all_text:le,tgp_filter_taxonomy_hierarchical:ie,author_filter_all_text:se,tpg_hide_all_button:ce}}).then((e=>{o({query_change:!1}),we(null==e?void 0:e.markup)})))}),[me,L]),Ms((()=>{null==de||de.abort(),pe(Ee),A()({path:"/rttpg/v1/image-size",signal:null==Ee?void 0:Ee.signal}).then((e=>{_e(e)}))}),[]),Ms((()=>{const e=document.querySelector(".interface-interface-skeleton__sidebar");e.classList.add("tpg-sidebar"),e.classList.remove("tpg-settings-enable"),e.addEventListener("click",(function(e){e.target.classList.contains("rttpg-tab-btn")&&("Content"!==e.target.textContent?this.classList.add("tpg-settings-enable"):this.classList.remove("tpg-settings-enable"))})),e.addEventListener("scroll",(function(e){e.target.scrollTop>86?this.classList.add("tpg-should-collapse"):this.classList.remove("tpg-should-collapse")}))}),[a]),i&&N(r,"tpg-grid-layout",i),[a&&(0,e.createElement)(ms,{attributes:r,setAttributes:o,changeQuery:()=>{ge(!me),o({query_change:!0,page:1})},acfData:he,imageSizes:ve,postData:ue}),(0,e.createElement)(Os,{props:t,postData:ue,filterMarkup:ye})]}});const{__:Is}=wp.i18n;window.rttpgDevice="lg",window.bindCss=!1,wp.data.subscribe((()=>{try{const e=wp.data.select("core/editor");if(!e)return;const t=e.isSavingPost,a=e.isAutosavingPost;t()&&!a()&&function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.bindCss=!0;const t=D("core/block-editor").getBlocks(),{getCurrentPostId:a}=D("core/editor"),r=O(t),o=P(t,!0);e&&(M(t),jQuery.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{block_css:o,post_id:a,has_block:r,action:"rttpg_block_css_save"}})),setTimeout((function(){window.bindCss=!1}),900)}()}catch(e){console.error(e)}})),(0,T.updateCategory)("rttpg",{icon:(0,e.createElement)("img",{src:rttpgParams.plugin_url+"/assets/images/icon-20x20.png",alt:Is("The Post Grid")})})}()}();
assets/css/thepostgrid.min.css CHANGED
@@ -1 +1 @@
1
- body .tpg-el-main-wrapper .rt-grid-item{background:none;padding:0 15px}body .tpg-el-main-wrapper .offset-left,body .tpg-el-main-wrapper .offset-right{padding-bottom:0!important}.rt-tpg-container div a{text-decoration:none}.ast-single-post .entry-content .rt-tpg-container a{text-decoration:inherit}.rt-model-open,body.rt-model-open,html.rt-model-open{overflow:hidden}.rt-tpg-container img{height:auto;max-width:100%;-o-object-fit:cover;object-fit:cover}.rt-tpg-container *{box-sizing:border-box}.entry .rt-tpg-container .entry-title:before{content:none}.rt-tpg-container .entry{margin-top:0}.rt-tpg-container :after,.rt-tpg-container :before{box-sizing:border-box}.rt-container,.rt-container-fluid{margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px}.rt-container-fluid.slider-layout13-main{padding:0 0 15px}.rt-tpg-container ul{margin:0}img,svg{vertical-align:middle}a:link,a:visited{transition:all .31s ease}.clearfix:after,.clearfix:before,.rt-container-fluid:after,.rt-container-fluid:before,.rt-row:after,.rt-row:before{content:" ";display:table}.clearfix:after,.rt-container-fluid:after,.rt-container:after,.rt-row:after{clear:both}.rt-row{margin-left:-15px;margin-right:-15px}.grid-layout2.rt-row{margin-left:0;margin-right:0}.rt-row>.rt-row{padding-left:15px;padding-right:15px}.grid_hover6.rt-row{margin-left:-2px;margin-right:-2px}.rt-col-lg-1,.rt-col-lg-2,.rt-col-lg-3,.rt-col-lg-4,.rt-col-lg-5,.rt-col-lg-6,.rt-col-lg-7,.rt-col-lg-8,.rt-col-lg-9,.rt-col-lg-10,.rt-col-lg-11,.rt-col-lg-12,.rt-col-lg-24,.rt-col-md-1,.rt-col-md-2,.rt-col-md-3,.rt-col-md-4,.rt-col-md-5,.rt-col-md-6,.rt-col-md-7,.rt-col-md-8,.rt-col-md-9,.rt-col-md-10,.rt-col-md-11,.rt-col-md-12,.rt-col-md-24,.rt-col-sm-1,.rt-col-sm-2,.rt-col-sm-3,.rt-col-sm-4,.rt-col-sm-5,.rt-col-sm-6,.rt-col-sm-7,.rt-col-sm-8,.rt-col-sm-9,.rt-col-sm-10,.rt-col-sm-11,.rt-col-sm-12,.rt-col-sm-24,.rt-col-xs-1,.rt-col-xs-2,.rt-col-xs-3,.rt-col-xs-4,.rt-col-xs-5,.rt-col-xs-6,.rt-col-xs-7,.rt-col-xs-8,.rt-col-xs-9,.rt-col-xs-10,.rt-col-xs-11,.rt-col-xs-12,.rt-col-xs-24{min-height:1px;padding-left:15px;padding-right:15px;position:relative}.rt-col-xs-1,.rt-col-xs-2,.rt-col-xs-3,.rt-col-xs-4,.rt-col-xs-5,.rt-col-xs-6,.rt-col-xs-7,.rt-col-xs-8,.rt-col-xs-9,.rt-col-xs-10,.rt-col-xs-11,.rt-col-xs-12,.rt-col-xs-24{float:left}.rt-col-xs-24{width:20%}.rt-col-xs-12{width:100%}.rt-col-xs-11{width:91.66666667%}.rt-col-xs-10{width:83.33333333%}.rt-col-xs-9{width:75%}.rt-col-xs-8{width:66.66666667%}.rt-col-xs-7{width:58.33333333%}.rt-col-xs-6{width:50%}.rt-col-xs-5{width:41.66666667%}.rt-col-xs-4{width:33.33333333%}.rt-col-xs-3{width:25%}.rt-col-xs-2{width:16.66666667%}.rt-col-xs-1{width:8.33333333%}#rt-main{margin:35px auto}.rt-tpg-container h3.entry-title{line-height:1.25;margin:0 0 12px}.rt-tpg-container .offset-small-wrap .rt-holder .overlay{min-height:60px!important}.rt-tpg-container .offset-small-wrap .rt-holder .rt-img-responsive{height:auto;-o-object-fit:cover;object-fit:cover;width:100%}.rt-tpg-container .offset-small-wrap .rt-col-md-6 .rt-holder .rt-img-responsive{height:auto}.rt-tpg-container .offset-small-wrap .rt-holder .overlay h3 a{-webkit-line-clamp:1!important;-webkit-box-orient:vertical;display:-webkit-box!important;overflow:hidden!important;text-overflow:ellipsis!important}.rt-tpg-container .offset-big .post-meta-user.above_title{margin-top:15px}.rt-tpg-container .offset-big .post-meta-user.above_title+h3.entry-title{margin-top:0}.rt-tpg-container .offset-big h3.entry-title{margin:20px 0 15px}.rt-tpg-container .offset-big .cat-above-title{margin-bottom:-15px;padding-top:10px}.rt-tpg-container .owl-controls .owl-dots{margin-top:15px}.rt-popup-content .rt-tpg-container i{margin-right:5px}.rt-popup-content ol,.rt-popup-content ul{list-style-position:inside}.paginationjs{box-sizing:initial;font-family:Marmelad,Lucida Grande,Arial,Hiragino Sans GB,Georgia,sans-serif;font-size:14px;line-height:1.6}.paginationjs:after{clear:both;content:" ";display:table}.paginationjs .paginationjs-pages{float:left}.paginationjs .paginationjs-pages ul{float:left;margin:0;padding:0}.paginationjs .paginationjs-go-button,.paginationjs .paginationjs-go-input,.paginationjs .paginationjs-nav{float:left;font-size:14px;margin-left:10px}.paginationjs .paginationjs-pages li{border:1px solid #aaa;border-right:none;float:left;list-style:none}.paginationjs .paginationjs-pages li>a{background:#fff;color:#333;display:block;font-size:14px;height:28px;line-height:28px;min-width:30px;text-align:center;text-decoration:none}.paginationjs .paginationjs-pages li:hover>a{background:var(--tpg-primary-color,#0d6efd);border-color:var(--tpg-primary-color,#0d6efd)!important;color:#fff!important}.paginationjs .paginationjs-pages li.active{border:none}.paginationjs .paginationjs-pages li.active>a{background:#aaa;color:#fff;height:30px;line-height:30px}.paginationjs .paginationjs-pages li.disabled>a{opacity:.3}.paginationjs .paginationjs-pages li.disabled>a:hover{background:0 0}.paginationjs .paginationjs-pages li:first-child,.paginationjs .paginationjs-pages li:first-child>a{border-radius:3px 0 0 3px}.paginationjs .paginationjs-pages li:last-child{border-radius:0 3px 3px 0;border-right:1px solid #aaa}.paginationjs .paginationjs-pages li:last-child>a{border-radius:0 3px 3px 0}.paginationjs .paginationjs-go-input>input[type=text]{box-sizing:initial;height:28px;padding:0;width:30px}.paginationjs .paginationjs-go-button>input[type=button],.paginationjs .paginationjs-go-input>input[type=text]{background:#fff;border:1px solid #aaa;border-radius:3px;box-shadow:none;font-size:14px;outline:0;text-align:center;vertical-align:baseline}.paginationjs .paginationjs-go-button>input[type=button]{color:#333;cursor:pointer;height:30px;line-height:28px;min-width:40px;padding:0 8px;vertical-align:middle\9}.paginationjs.paginationjs-theme-blue .paginationjs-go-input>input[type=text],.paginationjs.paginationjs-theme-blue .paginationjs-pages li{border-color:#289de9}.paginationjs .paginationjs-go-button>input[type=button]:hover{background-color:#f8f8f8}.paginationjs .paginationjs-nav{height:30px;line-height:30px}.paginationjs .paginationjs-go-button,.paginationjs .paginationjs-go-input{margin-left:5px\9}.paginationjs.paginationjs-small{font-size:12px}.paginationjs.paginationjs-small .paginationjs-pages li>a{font-size:12px;height:24px;line-height:24px;min-width:26px}.paginationjs.paginationjs-small .paginationjs-pages li.active>a{height:26px;line-height:26px}.paginationjs.paginationjs-small .paginationjs-go-input{font-size:12px}.paginationjs.paginationjs-small .paginationjs-go-input>input[type=text]{font-size:12px;height:24px;width:26px}.paginationjs.paginationjs-small .paginationjs-go-button{font-size:12px}.paginationjs.paginationjs-small .paginationjs-go-button>input[type=button]{font-size:12px;height:26px;line-height:24px;min-width:30px;padding:0 6px}.paginationjs.paginationjs-small .paginationjs-nav{font-size:12px;height:26px;line-height:26px}.paginationjs.paginationjs-big{font-size:16px}.paginationjs.paginationjs-big .paginationjs-pages li>a{font-size:16px;height:34px;line-height:34px;min-width:36px}.paginationjs.paginationjs-big .paginationjs-pages li.active>a{height:36px;line-height:36px}.paginationjs.paginationjs-big .paginationjs-go-input{font-size:16px}.paginationjs.paginationjs-big .paginationjs-go-input>input[type=text]{font-size:16px;height:34px;width:36px}.paginationjs.paginationjs-big .paginationjs-go-button{font-size:16px}.paginationjs.paginationjs-big .paginationjs-go-button>input[type=button]{font-size:16px;height:36px;line-height:34px;min-width:50px;padding:0 12px}.paginationjs.paginationjs-big .paginationjs-nav{font-size:16px;height:36px;line-height:36px}.paginationjs.paginationjs-theme-blue .paginationjs-pages li>a{color:#289de9}.paginationjs.paginationjs-theme-blue .paginationjs-pages li:hover>a{background:#e9f4fc}.paginationjs.paginationjs-theme-blue .paginationjs-pages li.active>a{background:#289de9;color:#fff}.paginationjs.paginationjs-theme-blue .paginationjs-pages li.disabled:hover>a{background:0 0}.paginationjs.paginationjs-theme-blue .paginationjs-go-button>input[type=button]{background:#289de9;border-color:#289de9;color:#fff}.paginationjs.paginationjs-theme-green .paginationjs-go-input>input[type=text],.paginationjs.paginationjs-theme-green .paginationjs-pages li{border-color:#449d44}.paginationjs.paginationjs-theme-blue .paginationjs-go-button>input[type=button]:hover{background-color:#3ca5ea}.paginationjs.paginationjs-theme-green .paginationjs-pages li>a{color:#449d44}.paginationjs.paginationjs-theme-green .paginationjs-pages li:hover>a{background:#ebf4eb}.paginationjs.paginationjs-theme-green .paginationjs-pages li.active>a{background:#449d44;color:#fff}.paginationjs.paginationjs-theme-green .paginationjs-pages li.disabled:hover>a{background:0 0}.paginationjs.paginationjs-theme-green .paginationjs-go-button>input[type=button]{background:#449d44;border-color:#449d44;color:#fff}.paginationjs.paginationjs-theme-yellow .paginationjs-go-input>input[type=text],.paginationjs.paginationjs-theme-yellow .paginationjs-pages li{border-color:#ec971f}.paginationjs.paginationjs-theme-green .paginationjs-go-button>input[type=button]:hover{background-color:#55a555}.paginationjs.paginationjs-theme-yellow .paginationjs-pages li>a{color:#ec971f}.paginationjs.paginationjs-theme-yellow .paginationjs-pages li:hover>a{background:#fdf5e9}.paginationjs.paginationjs-theme-yellow .paginationjs-pages li.active>a{background:#ec971f;color:#fff}.paginationjs.paginationjs-theme-yellow .paginationjs-pages li.disabled:hover>a{background:0 0}.paginationjs.paginationjs-theme-yellow .paginationjs-go-button>input[type=button]{background:#ec971f;border-color:#ec971f;color:#fff}.paginationjs.paginationjs-theme-red .paginationjs-go-input>input[type=text],.paginationjs.paginationjs-theme-red .paginationjs-pages li{border-color:#c9302c}.paginationjs.paginationjs-theme-yellow .paginationjs-go-button>input[type=button]:hover{background-color:#eea135}.paginationjs.paginationjs-theme-red .paginationjs-pages li>a{color:#c9302c}.paginationjs.paginationjs-theme-red .paginationjs-pages li:hover>a{background:#faeaea}.paginationjs.paginationjs-theme-red .paginationjs-pages li.active>a{background:#c9302c;color:#fff}.paginationjs.paginationjs-theme-red .paginationjs-pages li.disabled:hover>a{background:0 0}.paginationjs.paginationjs-theme-red .paginationjs-go-button>input[type=button]{background:#c9302c;border-color:#c9302c;color:#fff}.paginationjs.paginationjs-theme-red .paginationjs-go-button>input[type=button]:hover{background-color:#ce4541}.paginationjs .paginationjs-pages li.paginationjs-next{border-right:1px solid\9}.paginationjs .paginationjs-go-input>input[type=text]{line-height:28px\9;vertical-align:middle\9}.paginationjs.paginationjs-big .paginationjs-pages li>a{line-height:36px\9}.paginationjs.paginationjs-big .paginationjs-go-input>input[type=text]{height:36px\9;line-height:36px\9}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li:not(.paginationjs-next):not(.paginationjs-prev){display:none}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li{color:#fff}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li>a{background-color:var(--tpg-primary-color,#0d6efd);color:#fff}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li:hover a{background-color:var(--tpg-secondary-color,#0654c4)}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li.paginationjs-page:nth-child(2){display:inline-block;pointer-events:none;position:relative}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li.paginationjs-page:nth-child(2) a{pointer-events:none;text-indent:-99999px}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li.paginationjs-page:nth-child(2):before{content:"\f100";font-family:Font Awesome\ 5 Free;font-weight:900;left:50%;opacity:.5;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:99}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li.paginationjs-prev+li{display:none!important}.rt-tpg-container button{border:none;padding:10px 15px}.rt-tpg-container .rt-tgp-load-more button{background:#8e8e8e;border-radius:4px}.rt-tpg-container .tpg-wc-product-filter{margin-bottom:15px;padding-right:15px;text-align:right}.rt-img-holder>a{display:block;text-align:center}.rt-img-responsive{display:block;height:auto;max-width:100%;transition:.4s ease-in-out}@media (max-width:991px){.rt-img-holder>a,.rt-img-responsive{width:100%}}.rt-tpg-container .no-margin{margin:0!important;padding:0!important}span.more-loading{background:url(../images/loading.gif) 100% no-repeat;display:inline-block;padding-right:20px}.rt-tgp-load-more,.rt-tgp-scroll-load-more{display:block;margin:30px 0 20px;text-align:center}.post-meta-tags,.post-meta-user{font-size:95%;line-height:1.5;margin-bottom:15px;padding:0}.post-meta-tags span,.post-meta-user span{display:inline-block;padding-right:8px}.post-meta-tags span.rt-separator,.post-meta-user span.rt-separator{display:inline-block;padding-right:5px}.post-meta-user span.comment-link{float:right;padding-right:0;text-align:right}.rt-holder .entry-title a{color:#000}.rt-tpg-container .rt-holder .post-meta.center .read-more{float:none}.rt-tpg-container .rt-holder .post-meta .rt-tpg-social-share{display:block;float:none;margin-bottom:15px;text-align:left;width:100%}.rt-tpg-container .post-tags-links .fa-tags{font-size:12px!important;font-weight:900!important}.rt-tpg-container .rt-holder .post-meta.center .rt-tpg-social-share,.rt-tpg-container .rt-holder .post-meta.right .rt-tpg-social-share{text-align:left}.rt-tpg-container .rt-holder .read-more a{display:inline-block;font-size:15px;line-height:1.5}.rt-tpg-container .rt-holder .tpg-excerpt{margin-bottom:10px}.rt-tpg-container .rt-holder .tpg-excerpt iframe{max-height:250px;width:100%}.rt-tpg-container .tpg-iso-filter{margin:15px 0 45px;text-align:center}.rt-tpg-container .tpg-iso-filter input[type=text]{border-radius:3px;display:inline-block;margin-left:4px;padding:12px 10px}.rt-tpg-container .tpg-iso-filter>div{display:inline-block}.rt-tpg-container .rt-tpg-isotope-buttons .selected{background:var(--tpg-primary-color,#0d6efd)}.rt-tpg-container .rt-tpg-isotope-buttons button{background:#8e8e8e;border:none;border-radius:3px;box-shadow:none!important;color:#fff;font-size:15px;font-weight:400;line-height:1.8;margin:4px;outline:0;padding:8px 20px;text-shadow:none!important;text-transform:none}.rt-tpg-container .tpg-pre-loader{overflow:hidden;position:relative}.rt-tpg-container .hentry:not(.offset-item){margin-bottom:0!important}.rt-tpg-container .rt-loading-overlay{background-color:#fff;height:100%;left:0;opacity:0;position:absolute;top:0;visibility:hidden;width:100%;z-index:10}.rt-tpg-container .rt-loading{color:var(--tpg-primary-color,#0d6efd);left:50%;margin-left:-16px;opacity:0;position:absolute;top:40%;visibility:hidden;z-index:2}.rt-tpg-container .tpg-pre-loader .rt-loading-overlay{opacity:.8;visibility:visible}.tpg-carousel-main .tpg-pre-loader .rt-loading-overlay{opacity:1}.rt-tpg-container .tpg-pre-loader .rt-loading{opacity:1;visibility:visible}.rt-ball-clip-rotate{color:#fff;display:block;font-size:0;height:32px;width:32px}.rt-ball-clip-rotate,.rt-ball-clip-rotate>div{box-sizing:border-box;position:relative}.rt-ball-clip-rotate>div{animation:ball-clip-rotate .75s linear infinite;background-color:currentColor;background:transparent;border-radius:100%;border:2px solid;border-bottom:2px solid transparent;display:inline-block;float:none;height:32px;width:32px}.rt-layout-filter-container.rt-clear:after{clear:both;content:"";display:block}.rt-clear::-ms-ticks-after,.rt-clear:after{clear:both;content:"";display:block}.rt-layout-filter-container{font-size:0;line-height:0;margin:-5px -5px 30px;padding:0}.rt-filter-item-wrap.rt-filter-button-wrap span.rt-filter-button-item{border:1px solid;display:inline-block;margin:4px;padding:8px 10px;transition:.4s}.rt-filter-item-wrap.rt-filter-button-wrap span.rt-filter-button-item.selected,.rt-filter-item-wrap.rt-filter-button-wrap span.rt-filter-button-item:hover{background:#222;color:#b4b4b4}.tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap{padding-right:82px}.tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap .filter-left-wrapper{margin-right:0;position:static;width:100%}.tpg-header-wrapper.carousel{align-items:center;display:flex;margin-bottom:30px;overflow:hidden}.section-title-style-default .tpg-header-wrapper.carousel,.section-title-style-style1 .tpg-header-wrapper.carousel{min-height:36px}.tpg-header-wrapper.carousel .swiper{overflow:hidden}.section-title-style-style2 .tpg-header-wrapper.carousel .swiper,.section-title-style-style3 .tpg-header-wrapper.carousel .swiper{height:51px;margin-bottom:-.5px}.tpg-header-wrapper.carousel .swiper .swiper-navigation{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:9}.tpg-header-wrapper.carousel .swiper .swiper-button-next,.tpg-header-wrapper.carousel .swiper .swiper-button-prev{margin-top:0;top:0}.tpg-header-wrapper.carousel .tpg-widget-heading-wrapper{flex:1;margin:0;padding-right:10px}.tpg-header-wrapper.carousel .rt-layout-filter-container{flex:0 0 60%;margin:0;max-width:60%}.tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper{box-sizing:content-box;display:flex;height:100%;margin:0;position:relative;transition-property:transform;width:100%;z-index:1}.tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide{align-items:center;border:none;color:#212121;display:flex;font-size:15px;height:auto;justify-content:center;margin:0;padding:0 10px;position:relative;text-align:center;text-transform:none;white-space:nowrap;width:auto}.section-title-style-style2 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:before,.section-title-style-style3 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:before{border-bottom:7px solid var(--tpg-primary-color,#0d6efd);border-left:7px solid transparent;border-right:7px solid transparent;border-top:0 solid transparent;bottom:0;content:"";height:0;left:50%;opacity:0;position:absolute;transform:translateX(-50%);transition:all .3s ease;visibility:hidden;width:0}.section-title-style-style2 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide.selected:before,.section-title-style-style2 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:hover:before,.section-title-style-style3 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide.selected:before,.section-title-style-style3 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:hover:before{opacity:1;visibility:visible}.tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide.selected,.tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:hover{color:var(--tpg-primary-color,#0d6efd)}.tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap .filter-right-wrapper,.tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap .rt-author-filter{display:none}.tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.swiper-wrapper{letter-spacing:0}.tpg-header-wrapper.carousel .swiper-button-next.swiper-button-disabled,.tpg-header-wrapper.carousel .swiper-button-prev.swiper-button-disabled{opacity:1}.tpg-header-wrapper.carousel .swiper-button-next.swiper-button-disabled:after,.tpg-header-wrapper.carousel .swiper-button-prev.swiper-button-disabled:after{opacity:.35}.filter-button-border-enable .tpg-header-wrapper.carousel .rt-layout-filter-container{border:1px solid #ddd;border-radius:3px}.filter-button-border-enable .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide{padding:6px 15px;white-space:nowrap}.filter-button-border-enable .tpg-header-wrapper.carousel .swiper .swiper-navigation{right:3px}.filter-nex-prev-btn-hidden .tpg-header-wrapper.carousel .swiper .swiper-navigation{display:none}.filter-nex-prev-btn-hidden .tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap{margin-right:0;padding-right:0}@media (max-width:767px){.tpg-header-wrapper.carousel{display:block}.tpg-header-wrapper.carousel .rt-layout-filter-container{margin-bottom:8px;margin-left:-9px;margin-top:10px;max-width:100%;position:relative}}.rt-filter-item-wrap.rt-filter-button-wrap span.rt-filter-button-item.selected,.rt-filter-item-wrap.rt-filter-button-wrap span.rt-filter-button-item:hover{background:none;color:#000}.rt-filter-item-wrap.rt-order-by-action,.rt-filter-item-wrap.rt-sort-order-action{float:right}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap{color:#666;cursor:pointer;display:inline-block;font-size:13px;letter-spacing:.1em;line-height:1.55;margin:4px;padding:7px 10px;position:relative;text-transform:uppercase;transition:background-color .2s ease-in-out,color .2s ease-in-out,border-color .2s ease-in-out;-webkit-transition:background-color .2s ease-in-out,color .2s ease-in-out,border-color .2s ease-in-out;-ms-transition:background-color .2s ease-in-out,color .2s ease-in-out,border-color .2s ease-in-out;user-select:none;-webkit-user-select:none;-moz-user-select:none;vertical-align:top}.rt-layout-filter-container .rt-filter-wrap .rt-filter-button-wrap{margin-left:0;margin-top:0;padding:0}@media (max-width:767px){.rt-layout-filter-container .rt-filter-wrap .rt-filter-button-wrap{display:inline}}.rt-layout-filter-container .rt-filter-wrap .rt-filter-button-item .rt-filter-sub-tax{display:none}.rt-layout-filter-container .rt-filter-sub-tax.sub-button-group{margin:0 4px}.rt-layout-filter-container .rt-filter-sub-tax.sub-button-group .rt-filter-button-item{cursor:pointer}.rt-layout-filter-container>.rt-filter-sub-tax.sub-button-group>span{border:1px solid;display:inline-block;font-size:13px;letter-spacing:.1em;line-height:1.55;margin:4px;padding:8px 10px;text-transform:uppercase;vertical-align:top}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap{border:1px solid;color:#666;position:relative}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap:hover{border-color:#222;color:#222}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-sort-order-action:hover{border-color:#222}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap>.rt-filter-dropdown-default{display:block;max-width:135px;min-width:135px;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap .rt-filter-dropdown{background-color:#222;border:none;border-top:1px solid transparent;display:block;left:-1px;margin-top:1px;opacity:0;position:absolute;right:-1px;top:100%;transition:opacity .3s ease-in-out,visibility .3s ease-in-out;-webkit-transition:opacity .3s ease-in-out,visibility .3s ease-in-out;-ms-transition:opacity .3s ease-in-out,visibility .3s ease-in-out;visibility:hidden;z-index:20}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap:hover .rt-filter-dropdown{border-top-color:#000}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap .rt-filter-dropdown .rt-filter-dropdown-item.selected{background:#000}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap.active-dropdown .rt-filter-dropdown{opacity:1;visibility:visible}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap.active-dropdown .rt-arrow-angle{transform:rotate(180deg);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg)}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap .rt-filter-dropdown .rt-filter-dropdown-item{border-bottom:1px solid rgba(0,0,0,.2);color:#b4b4b4;display:block;padding:10px 15px 9px;text-align:center}.rt-filter-dropdown-default .sub-dropdown-wrap,.rt-filter-dropdown-item .sub-dropdown-wrap{display:none!important}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap .rt-arrow-angle{backface-visibility:hidden;-webkit-backface-visibility:hidden;letter-spacing:0;transition:transform .2s ease-in-out;-webkit-transition:transform .2s ease-in-out;-ms-transition:transform .2s ease-in-out}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-sort-order-action{border:1px solid;color:#666;min-width:38px;position:relative}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow{position:static}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow>span{backface-visibility:hidden;-webkit-backface-visibility:hidden;display:block;height:8px;left:50%;margin-left:-7px;margin-top:-4px;position:absolute;top:50%;transition:transform .2s ease-in-out;-webkit-transition:transform .2s ease-in-out;-ms-transition:transform .2s ease-in-out;width:14px}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow[data-sort-order=ASC]>span{transform:rotate(180deg);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg)}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow>span:before{left:3px;transform:rotate(-45deg);-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg)}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow>span:after,.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow>span:before{background-color:#666;content:"";display:block;height:9px;position:absolute;top:0;transition:background-color .2s ease-in-out;-webkit-transition:background-color .2s ease-in-out;-ms-transition:background-color .2s ease-in-out;width:2px}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow>span:after{left:9px;transform:rotate(45deg);-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg)}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-search-filter-wrap{float:right;padding:0;position:relative}.rt-filter-item-wrap.rt-search-filter-wrap input.rt-search-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid #666;border-radius:0;color:#666;font-family:Dosis,sans-serif;font-size:12px;font-weight:600;height:39px;padding:11px}.rt-filter-item-wrap.rt-search-filter-wrap input.rt-search-input:focus{box-shadow:none;outline:none}.rt-filter-item-wrap.rt-search-filter-wrap span.rt-action{cursor:pointer;display:inline-block;font-size:15px;position:absolute;right:5px;top:6px}.rt-filter-item-wrap.rt-search-filter-wrap .rt-search-input::-webkit-input-placeholder{font-family:Dosis,sans-serif;font-size:12px;font-weight:600}.rt-filter-item-wrap.rt-search-filter-wrap .rt-search-input::-moz-placeholder{font-family:Dosis,sans-serif;font-size:12px;font-weight:600}.rt-filter-item-wrap.rt-search-filter-wrap .rt-search-input:-ms-input-placeholder{font-family:Dosis,sans-serif;font-size:12px;font-weight:600}.rt-filter-item-wrap.rt-search-filter-wrap .rt-search-input:-moz-placeholder{font-family:Dosis,sans-serif;font-size:12px;font-weight:600}@media (max-width:600px){.rt-filter-item-wrap.rt-tax-filter.rt-filter-dropdown-wrap{display:block;margin-bottom:10px}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap>.rt-filter-dropdown-default{margin:0 auto}}.rt-tpg-social-share.a{position:relative}body>.rt-tooltip{background:#666;border-radius:3px;border-width:2px;-o-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa;color:#fff;font-size:100%;opacity:0;padding:5px 10px;pointer-events:none;position:absolute;transition:opacity 1s ease-in-out;z-index:9999}body>.rt-tooltip .rt-tooltip-content{font-size:90%}body>.rt-tooltip,body>.rt-tooltip .rt-tooltip-bottom:after{background:#000;border-radius:2px}body>.rt-tooltip .rt-tooltip-bottom{bottom:-16px;height:18px;left:50%;margin-left:-32px;overflow:hidden;position:absolute;width:70px}body>.rt-tooltip .rt-tooltip-bottom:after{tranform:rotate(45deg);content:"";height:25px;left:20px;position:absolute;top:-20px;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:25px}.rt-tpg-container .rt-holder .rt-img-holder{overflow:hidden;position:relative}.rt-tpg-container .rt-holder .tpg-el-image-wrap{margin:-15px -16px 15px}.rt-tpg-container .list-behaviour .rt-holder .tpg-el-image-wrap{margin:0}.rt-tpg-container .img_zoom_out .rt-holder .rt-img-holder img:not(.avatar),.rt-tpg-container .rt-holder:hover .rt-img-holder img:not(.avatar){transform:scale(1.1)}.rt-tpg-container .img_no_effect .rt-holder:hover .rt-img-holder img,.rt-tpg-container .img_zoom_out .rt-holder:hover .rt-img-holder img{transform:scale(1)}.rt-tpg-container .rt-holder .rt-detail{padding:15px 15px 0}.rt-tpg-container .layout2 .rt-holder .rt-detail,.rt-tpg-container .layout3 .rt-holder .rt-detail,.rt-tpg-container .offset01 .rt-detail,.rt-tpg-container .offset02 .rt-holder .rt-detail{padding:0}.rt-tpg-container .offset01 .rt-detail,.rt-tpg-container .offset02 .rt-holder .rt-detail{padding-left:5px}.rt-tpg-container .entry-title-wrapper .entry-title{font-size:26px;font-weight:500;line-height:1.3;margin:0 0 18px;padding-bottom:2px}@media (max-width:767px){.rt-tpg-container .entry-title-wrapper .entry-title{font-size:20px;margin:0 0 15px}}.rt-tpg-container .rt-holder .rt-detail .entry-title-wrapper{margin-bottom:15px}.rt-tpg-container .rt-detail .tpg-excerpt-inner .acf-custom-field-wrap{padding-top:15px}.rt-tpg-container .list-layout2 .rt-detail .tpg-excerpt-inner,.rt-tpg-container .list-layout3 .rt-detail .tpg-excerpt-inner{margin-bottom:0}.rt-tpg-container .rt-holder .rt-detail .post-meta{line-height:25px;overflow:hidden}.rt-tpg-container .rt-holder .rt-detail .read-more a{align-items:center;background-color:hsla(0,0%,100%,.7);border:1px solid #e5e5e5;color:#646464;display:inline-flex;flex-direction:row;flex-wrap:wrap;font-size:15px;justify-content:left;line-height:1.8;overflow:hidden;padding:6px 20px}.rt-tpg-container .rt-holder .rt-detail .read-more a:hover{background-color:#fff;border-color:var(--tpg-primary-color,#0d6efd);color:var(--tpg-primary-color,#0d6efd)}.rt-tpg-container .rt-grid-hover-item .rt-detail .read-more a{border-color:hsla(0,0%,100%,.7)}.rt-tpg-container .rt-grid-hover-item .rt-detail .read-more a:hover{border-color:#fff}.rt-tpg-container .rt-holder .rt-detail .read-more a{color:#1a1a1a}.rt-tpg-container .rt-holder .rt-detail .post-meta.right{text-align:right}.rt-tpg-container .rt-holder .rt-detail .post-meta.center{text-align:center}@keyframes ball-scale-multiple{0%{opacity:0;transform:scale(0)}5%{opacity:.75}to{opacity:0;transform:scale(1)}}@keyframes ball-clip-rotate{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.rt-container-fluid{position:relative}#bottom-script-loader{background:hsla(0,0%,100%,.95);height:calc(100% + 60px);margin:-30px;position:absolute;width:calc(100% + 60px);z-index:999}#bottom-script-loader .rt-ball-clip-rotate{color:var(--tpg-primary-color,#0d6efd);margin-right:-16px;position:absolute;right:50%;top:80px;z-index:2}.tpg-widget-heading-wrapper{display:flex;margin-bottom:30px;position:relative}.tpg-widget-heading-wrapper .tpg-widget-heading{font-size:30px;line-height:1;margin-bottom:-1px!important;margin-top:0;padding-right:15px;padding-top:0;position:relative}.search .tpg-widget-heading-wrapper .tpg-widget-heading{line-height:1.5}@meia (max-width: 767px){.tpg-widget-heading-wrapper .tpg-widget-heading{line-height:1.2}}.tpg-widget-heading-wrapper.center .tpg-widget-heading{margin:0;padding:0}.tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading:before{background-color:var(--tpg-primary-color,#0d6efd);border-radius:50%;content:"";display:inline-block;height:8px;margin-right:7px;margin-top:-4px;position:absolute;right:-7.5px;top:50%;width:8px}.tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line.line-left,.tpg-widget-heading-wrapper.heading-style1.center .tpg-widget-heading:before{display:none}.tpg-widget-heading-wrapper.heading-style1.center .tpg-widget-heading-line.line-left{display:block;margin-left:0;margin-right:15px}.tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line,.tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line-left{-webkit-box-flex:1;align-self:center;border-color:#e5e5e5;border-style:solid;border-width:1px 0;flex-grow:1;height:4px;margin-left:15px}.tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading,.tpg-widget-heading-wrapper.heading-style3 .tpg-widget-heading{background-color:var(--tpg-primary-color,#0d6efd);color:#fff;line-height:1.4;margin-bottom:-.5px;padding:5px 15px}.tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading a,.tpg-widget-heading-wrapper.heading-style3 .tpg-widget-heading a{color:inherit}.tpg-widget-heading-wrapper.center{justify-content:center}.tpg-widget-heading-wrapper.right{flex-direction:row-reverse}.tpg-widget-heading-wrapper.right .tpg-widget-heading{padding-left:15px;padding-right:0}.tpg-widget-heading-wrapper.right .tpg-widget-heading:before{left:0;right:auto}.tpg-widget-heading-wrapper.right .tpg-widget-heading-line{margin-left:0;margin-right:15px}.tpg-el-main-wrapper .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:before,.tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:after{border-left:0 solid transparent;border-bottom:0 solid var(--tpg-primary-color,#0d6efd);border-right:12px solid transparent;border-top:12px solid var(--tpg-primary-color,#0d6efd);content:"";position:absolute;right:-11px;top:0}.section-title-align-right .tpg-el-main-wrapper .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:before,.section-title-align-right .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:after{left:-3px;right:auto;transform:skewX(225deg)}.section-title-align-center .tpg-el-main-wrapper .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:before,.tpg-widget-heading-wrapper.heading-style2.right .tpg-widget-heading:after{border-width:12px 0 0 12px;left:-11px;right:auto}.tpg-widget-heading-wrapper.heading-style2.center .tpg-widget-heading:after{content:none}.section-title-style-style2 .tpg-header-wrapper.carousel,.section-title-style-style2 .tpg-header-wrapper:not(.carousel) .tpg-widget-heading-wrapper,.section-title-style-style3 .tpg-header-wrapper.carousel,.section-title-style-style3 .tpg-header-wrapper:not(.carousel) .tpg-widget-heading-wrapper{border-bottom:2px solid var(--tpg-primary-color,#0d6efd)}.tpg-even,.tpg-full-height{display:flex;flex-wrap:wrap}@media (max-width:767px){.rt-content-loader .rt-holder,.tpg-even .rt-holder{flex-direction:column}}.rt-tpg-container .rt-pagination-wrap .rt-cb-page-prev-next>*{background-color:#bcbcbc;bottom:auto;color:#fff;cursor:pointer;display:inline-block;font-size:18px;height:30px;line-height:30px;margin-left:1px;margin-right:1px;text-align:center;transition:background-color .2s ease-in-out,color .2s ease-in-out,opacity .2s ease-in-out,visibility .2s ease-in-out;-webkit-transition:background-color .2s ease-in-out,color .2s ease-in-out,opacity .2s ease-in-out,visibility .2s ease-in-out;-ms-transition:background-color .2s ease-in-out,color .2s ease-in-out,opacity .2s ease-in-out,visibility .2s ease-in-out;width:30px}.rt-tpg-container .rt-pagination-wrap .rt-cb-page-prev-next>* i{line-height:1}.rt-tpg-container .rt-pagination-wrap .rt-cb-page-prev-next>.rt-disabled{opacity:.5;pointer-events:none}.rt-cb-page-prev-next{text-align:left}.rt-tpg-container .rt-pagination-wrap .rt-loadmore-style .rt-loadmore-loading{color:#fff;left:50%;margin-left:-32px;margin-top:-32px;opacity:0;position:absolute;top:50%;visibility:hidden}.rt-ball-scale-multiple.rt-2x,.rt-ball-scale-multiple.rt-2x>div{height:64px;width:64px}.rt-ball-scale-multiple,.rt-ball-scale-multiple>div{box-sizing:border-box;position:relative}.rt-ball-scale-multiple>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.rt-ball-scale-multiple>div:nth-child(2){animation-delay:.2s}.rt-ball-scale-multiple>div{animation:ball-scale-multiple 1s linear 0s infinite;border-radius:100%;height:32px;left:0;opacity:0;position:absolute;top:0;width:32px}.rt-tpg-container .rt-pagination-wrap{display:inline-block;margin-top:10px;text-align:center;width:100%}.tpg-el-main-wrapper .rt-pagination-wrap{display:flex;flex-direction:row;justify-content:center;margin-top:30px}.tpg-el-main-wrapper .rt-pagination-wrap .rt-pagination{margin:0}.rt-tpg-container .rt-pagination-wrap .rt-loadmore-style{cursor:pointer;position:relative;-moz-user-select:none;user-select:none;-webkit-user-select:none}.rt-tpg-container .rt-pagination-wrap .rt-cb-page-prev-next.rt-hidden-elm,.rt-tpg-container .rt-pagination-wrap .rt-infinite-action.rt-hidden-elm,.rt-tpg-container .rt-pagination-wrap .rt-loadmore-style.rt-hidden-elm,.rt-tpg-container .rt-pagination-wrap .rt-page-numbers.rt-hidden-elm{display:none!important}.rt-tpg-container .rt-pagination-wrap .rt-loadmore-style.rt-lm-loading .rt-loadmore-text{opacity:0;visibility:hidden}.rt-tpg-container .rt-pagination-wrap .rt-loadmore-style.rt-lm-loading .rt-loadmore-loading{opacity:1;visibility:visible}.rt-tpg-container .rt-pagination-wrap .rt-loadmore-btn{background-color:var(--tpg-primary-color,#0d6efd);color:#fff;display:inline-block;font-size:13px;letter-spacing:.1em;margin-top:30px;padding:9px 20px;text-decoration:none;text-transform:uppercase;transition:color .2s ease-in-out,background-color .2s ease-in-out;-webkit-transition:color .2s ease-in-out,background-color .2s ease-in-out;-ms-transition:color .2s ease-in-out,background-color .2s ease-in-out}.rt-tpg-container .rt-loadmore-btn:hover{background-color:var(--tpg-secondary-color,#0654c4)}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages{float:none;padding-bottom:.1px;padding-top:.1px}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers.rt-lm-loading{opacity:.5;pointer-events:none}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul{float:none;font-size:0;line-height:0;margin:-2px;text-align:center}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li{border:none;display:inline-block;float:none;font-size:16px;line-height:1.55;min-height:45px;min-width:48px;padding:2px}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li>a{border:1px solid #dee2e6;border-radius:3px;color:#212121;display:block;font-size:16px;font-weight:400;letter-spacing:0;line-height:45px;min-height:45px;min-width:48px;padding-left:8px;padding-right:8px;text-decoration:none}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li.active>a{background-color:var(--tpg-primary-color,#0d6efd);border-color:var(--tpg-primary-color,#0d6efd);color:#fff}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li.paginationjs-ellipsis{min-width:auto;padding:0}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li.paginationjs-ellipsis a{background:none!important;border:none!important;color:#000!important;font-size:18px;min-width:auto;opacity:1;pointer-events:none!important}.rt-pagination{margin:30px 0;text-align:center}.rt-pagination .pagination-list{background:transparent;border-radius:4px;border-top:0;display:inline-block;padding-left:0}.rt-pagination .pagination-list a{box-shadow:none}.rt-pagination .pagination-list>li{display:inline-block;margin:2px}.rt-pagination .pagination-list>li>a,.rt-pagination .pagination-list>li>span{background-color:#fff;border:1px solid #ddd;border-radius:3px;color:#212121;display:block;line-height:1;margin-left:-1px;padding:13px 17px;position:relative;text-decoration:none;transition:.4s ease-in-out}.rt-pagination .pagination-list>li>a:focus,.rt-pagination .pagination-list>li>a:hover,.rt-pagination .pagination-list>li>span:focus,.rt-pagination .pagination-list>li>span:hover{background-color:var(--tpg-primary-color,#0d6efd);border-color:var(--tpg-primary-color,#0d6efd);color:#fff;z-index:2}.rt-pagination .pagination-list>.active>a,.rt-pagination .pagination-list>.active>a:focus,.rt-pagination .pagination-list>.active>a:hover,.rt-pagination .pagination-list>.active>span,.rt-pagination .pagination-list>.active>span:focus,.rt-pagination .pagination-list>.active>span:hover{background-color:var(--tpg-primary-color,#0d6efd);border-color:var(--tpg-primary-color,#0d6efd);color:#fff;cursor:default;z-index:3}.rt-pagination .pagination-list>.disabled>a,.rt-pagination .pagination-list>.disabled>a:focus,.rt-pagination .pagination-list>.disabled>a:hover,.rt-pagination .pagination-list>.disabled>span,.rt-pagination .pagination-list>.disabled>span:focus,.rt-pagination .pagination-list>.disabled>span:hover{background-color:#fff;border-color:#ddd;color:#212121;cursor:not-allowed}.rt-tpg-container .swiper-pagination-bullet{background:#d6d6d6;height:10px;opacity:1;width:10px}.rt-tpg-container .swiper-wrapper{padding-bottom:45px}.rt-tpg-container.slider-layout13-main .swiper-wrapper{padding-bottom:0}.rt-tpg-container .swiper-pagination-bullets.swiper-pagination-horizontal{bottom:0}.rt-tpg-container .swiper-pagination-bullet.swiper-pagination-bullet-active-main{background:#007bff}.rt-tpg-container>div{position:relative}.rt-tpg-container .slider-main-wrapper{opacity:0;position:relative}.rt-tpg-container .swiper-navigation .slider-btn{align-items:center;background-color:#fff;background-image:none;border:1px solid #e5e5e5;border-radius:3px;color:#2962ff;display:inline-flex;font-size:14px;height:32px;justify-content:center;position:absolute;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;width:34px}.rt-tpg-container .tpg-header-wrapper .swiper-navigation .slider-btn,.slider-arrow-position-top-left .rt-tpg-container .swiper-navigation .slider-btn,.slider-arrow-position-top-right .rt-tpg-container .swiper-navigation .slider-btn{position:static}.rt-tpg-container .swiper-navigation .slider-btn:hover{background-color:#2962ff;border-color:#2962ff;color:#fff}.rt-tpg-container .swiper-navigation .slider-btn:focus{box-shadow:none;outline:0}.rt-tpg-container .swiper-navigation .slider-btn.swiper-button-next{margin-left:3px}.rt-tpg-container .swiper-navigation .swiper-button-next:after,.rt-tpg-container .swiper-navigation .swiper-button-prev:after{font-size:inherit}.rt-tpg-container .tpg-cf-group-title{font-size:16px;margin-bottom:0!important}.rt-tpg-container .tpg-cf-fields{font-size:95%;line-height:1.6;margin-top:0}.tpg-el-main-wrapper .tpg-cf-wrap{margin:10px 0 0}.rt-tpg-container .tpg-cf-wrap:empty{margin:0}.act-label-style-inline .tgp-cf-field-label{margin-right:8px;min-width:inherit}.act-label-style-inline .tgp-cf-field-label:after{content:":"}.act-label-style-block .tgp-cf-field-label{display:block!important;float:none;margin-right:0;min-width:inherit}.act-label-style-block .tpg-cf-fields{display:block;margin-bottom:5px}.rt-tpg-container .rt-holder .tgp-cf-field-value *{color:inherit;display:inline;margin:0;transition:none}.isotope-term-no-post{min-height:30px}.isotope-term-no-post p{display:none;margin-bottom:0}.tpg-el-main-wrapper.loading{min-height:300px;transition:.4s}.tpg-el-main-wrapper.loading:before{animation:ball-clip-rotate .75s linear infinite;background:transparent;border:2px solid;border-bottom:2px solid transparent;border-radius:100%;color:red;display:inline-block;float:none;height:32px;left:50%;position:absolute;top:50%;width:32px;z-index:9999999999}.tpg-el-main-wrapper .rt-content-loader .offset-left [class*=rt-col]{padding-left:0;padding-right:0}.mfp-fade.mfp-bg{opacity:0;transition:all .15s ease-out}.mfp-fade.mfp-bg.mfp-ready{opacity:.8}.mfp-fade.mfp-bg.mfp-removing{opacity:0}.mfp-fade.mfp-wrap .mfp-content{opacity:0;transition:all .15s ease-out}.mfp-fade.mfp-wrap.mfp-ready .mfp-content{opacity:1}.mfp-fade.mfp-wrap .mfp-content figure{transform:scale(0);transition:all .15s ease-out}.mfp-fade.mfp-wrap.mfp-ready .mfp-content figure{transform:scale(1)}.mfp-fade.mfp-wrap.mfp-removing .mfp-content{opacity:0}.mfp-fade.mfp-wrap .mfp-content .mfp-figure:after{background:none;box-shadow:none}.tpg-shortcode-main-wrapper .even-grid-item,.tpg-shortcode-main-wrapper .masonry-grid-item{margin-bottom:30px}.tpg-shortcode-main-wrapper i{margin-right:5px}.tpg-shortcode-main-wrapper .product-more i{margin-right:0}.tpg-shortcode-main-wrapper .grid_hover1 .even-grid-item,.tpg-shortcode-main-wrapper .grid_hover1 .masonry-grid-item,.tpg-shortcode-main-wrapper .grid_hover2 .even-grid-item,.tpg-shortcode-main-wrapper .grid_hover2 .masonry-grid-item,.tpg-shortcode-main-wrapper .grid_hover3 .even-grid-item,.tpg-shortcode-main-wrapper .grid_hover3 .masonry-grid-item,.tpg-shortcode-main-wrapper .grid_hover4 .even-grid-item,.tpg-shortcode-main-wrapper .grid_hover4 .masonry-grid-item,.tpg-shortcode-main-wrapper .grid_hover5 .even-grid-item,.tpg-shortcode-main-wrapper .grid_hover5 .masonry-grid-item,.tpg-shortcode-main-wrapper .list_layout1 .even-grid-item,.tpg-shortcode-main-wrapper .list_layout1 .masonry-grid-item{margin-bottom:0}.layout3 .rt-img-responsive{display:inline-block}.list_layout2 .post-meta-tags,.list_layout2 .post-meta-user{color:#a5a6aa;font-size:14px}.rt-content-loader.layout14 .post-meta-tags,.rt-content-loader.layout14 .post-meta-user{margin-bottom:0}.offset06 .post-meta-tags span,.offset06 .post-meta-user span{color:#a5a6aa;font-size:14px;font-weight:500;padding-right:15px}.offset06 .post-meta-tags span a,.offset06 .post-meta-user span a{color:#444}.offset06 .post-meta-tags span a:hover,.offset06 .post-meta-user span a:hover{color:#2962ff}.tpg-shortcode-main-wrapper .rt-detail .entry-title a{text-decoration:none}.categories-links{display:inline-block;line-height:1.3}.tpg-shortcode-main-wrapper .rt-holder{overflow:hidden}.tpg-shortcode-main-wrapper .grid_hover6 .rt-grid-item{margin-bottom:4px;overflow:hidden;padding:0 2px}.tpg-shortcode-main-wrapper .grid_hover6 .rt-grid-item .post-img img,.tpg-shortcode-main-wrapper .grid_hover7 .rt-grid-item .post-img img{min-height:350px;-o-object-fit:cover;object-fit:cover}.grid_hover4 .rt-grid-item{padding:0}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-img-holder,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-img-holder,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-img-holder{overflow:hidden;position:relative}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-img-holder img,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-img-holder img,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-img-holder img{max-width:100%;transition:all 1.1s ease}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-img-holder:hover img,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-img-holder:hover img,.tpg-shortcode-main-wrapper .layout1 .img_zoom_out .rt-holder .rt-img-holder img,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-img-holder:hover img{transform:scale(1.1)}.tpg-shortcode-main-wrapper .layout1 .img_no_effect .rt-holder .rt-img-holder:hover img,.tpg-shortcode-main-wrapper .layout1 .img_zoom_out .rt-holder .rt-img-holder:hover img{transform:scale(1)}.tpg-shortcode-main-wrapper .carousel1 .rt-holder,.tpg-shortcode-main-wrapper .isotope1 .rt-holder,.tpg-shortcode-main-wrapper .layout1 .rt-holder{box-shadow:0 0 2px 0 rgba(0,0,0,.3);-webkit-box-shadow:0 0 2px 0 rgba(0,0,0,.3);-moz-box-shadow:0 0 2px 0 rgba(0,0,0,.3)}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail{background:#fff;padding:15px}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail h4,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail h4,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail h4{font-size:26px;font-weight:400;line-height:1.25;margin:0 0 18px}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail.rt-with-title h2,.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail.rt-with-title h3,.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail.rt-with-title h4,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail.rt-with-title h2,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail.rt-with-title h3,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail.rt-with-title h4,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail.rt-with-title h2,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail.rt-with-title h3,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail.rt-with-title h4{margin-bottom:15px}.tpg-shortcode-main-wrapper .rt-holder .rt-detail.rt-with-title{padding-top:0}.tpg-shortcode-main-wrapper .isotope1 .rt-detail .tpg-excerpt,.tpg-shortcode-main-wrapper .layout1 .rt-detail .tpg-excerpt{margin-bottom:20px}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail .post-meta,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail .post-meta,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail .post-meta{line-height:25px;overflow:hidden}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail .read-more a,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail .read-more a,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail .read-more a{border:1px solid hsla(0,0%,80%,.4);color:#1a1a1a;display:inline-block;font-size:15px;line-height:1.8;padding:8px 20px}.tpg-shortcode-main-wrapper .rt-holder .rt-detail .post-meta.right{text-align:right}.tpg-shortcode-main-wrapper .rt-holder .rt-detail .post-meta.center{text-align:center}.tpg-img-circle .rt-img-holder img{border-radius:50%!important}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-img-holder{overflow:hidden;position:relative}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-img-holder img{max-width:100%;transition:all 1.1s ease}.tpg-shortcode-main-wrapper .layout2 .img_zoom_out .rt-holder .rt-img-holder img,.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-img-holder:hover img{transform:scale(1.1)}.tpg-shortcode-main-wrapper .layout2 .img_no_effect .rt-holder .rt-img-holder:hover img,.tpg-shortcode-main-wrapper .layout2 .img_no_effect .rt-holder .rt-img-holder img,.tpg-shortcode-main-wrapper .layout2 .img_zoom_out .rt-holder .rt-img-holder:hover img{transform:scale(1)}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail h4{font-size:26px;font-weight:400;line-height:1.25;margin:0 0 15px}.tpg-shortcode-main-wrapper .layout2 .rt-detail .tpg-excerpt{margin-bottom:20px}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail .read-more a{border-radius:5px;display:inline-block;line-height:1.8}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail .read-more{display:inline-block;width:100%}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail .read-more.right{text-align:right}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail .read-more.center{text-align:center}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail .rt-tpg-social-share{margin-bottom:15px}@media (max-width:767px){.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail,.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail{padding:15px 0}}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail p{margin-bottom:20px}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail h4{font-size:26px;font-weight:400;line-height:1.25;margin:0 0 18px}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-img-holder .overlay{background:rgba(0,0,0,.7);display:block;height:100%;opacity:0;position:absolute;text-align:center;transition:all .3s ease-out 0s;width:100%;z-index:1}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail .read-more a{display:inline-block;line-height:1.8}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-img-holder,.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-img-holder>a.rounded img{border-radius:50%;overflow:hidden}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail .read-more{display:inline-block;width:100%}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail .read-more.right{text-align:right}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail .read-more.center{text-align:center}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail .rt-tpg-social-share{margin-bottom:15px}.tpg-shortcode-main-wrapper .carousel2 .rt-holder,.tpg-shortcode-main-wrapper .isotope2 .rt-holder,.tpg-shortcode-main-wrapper .layout5 .rt-holder,.tpg-shortcode-main-wrapper .offset03 .rt-holder{overflow:hidden;position:relative}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay{background:rgba(235,0,0,.8);bottom:0;display:block;height:25%;left:0;min-height:150px;opacity:1;padding:20px;position:absolute;transition:all 1s ease;width:100%;z-index:1}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay .rt-detail,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay .rt-detail,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .rt-detail{color:#fff;max-height:0;opacity:0;padding:0;transition:all .8s ease-in-out;visibility:hidden}.tpg-shortcode-main-wrapper .carousel2 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .isotope2 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .layout5 .rt-holder:hover .overlay .rt-detail{max-height:450px;transition:all 1.2s ease-in-out .2s}.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay .rt-detail{color:#fff;padding:0 0 15px}.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay .rt-detail>:not(.post-meta-user){opacity:0;visibility:hidden}.tpg-shortcode-main-wrapper .offset03 .rt-holder:hover .overlay .rt-detail>:not(.post-meta-user){opacity:1;visibility:visible}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay .post-meta-user a{color:#fff}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h4,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h4,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h4,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h4{color:#fff;font-size:22px;font-weight:400;line-height:1.3;margin:0 0 10px}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h4 a,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h4 a,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h4 a,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h4 a{color:#fff}.tpg-shortcode-main-wrapper .carousel2 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .isotope2 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .layout5 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .offset03 .rt-holder:hover .overlay{height:100%;width:100%}.tpg-shortcode-main-wrapper .carousel2 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .isotope2 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .layout5 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .offset03 .rt-holder:hover .overlay .rt-detail{opacity:1;visibility:visible}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay .post-meta-user{display:block}.tpg-shortcode-main-wrapper .isotope2 .rt-holder .post-meta,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .post-meta .rt-tpg-social-share{text-align:center}.tpg-shortcode-main-wrapper .isotope2 .rt-holder .post-meta.left{text-align:left}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay>:not(.entry-title),.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .rt-detail,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay>:not(.entry-title){max-height:0;opacity:0;overflow:hidden;transition:.6s!important}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .overlay>:not(.entry-title),.tpg-shortcode-main-wrapper .layout5 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover .overlay>:not(.entry-title){max-height:300px;opacity:1}.tpg-shortcode-main-wrapper .layout5 .rt-holder{display:flex;min-height:250px}.tpg-shortcode-main-wrapper .layout5 .rt-holder .rt-img-responsive{height:100%;-o-object-fit:cover;object-fit:cover}.tpg-shortcode-main-wrapper .carousel3 .rt-holder,.tpg-shortcode-main-wrapper .isotope3 .rt-holder,.tpg-shortcode-main-wrapper .layout6 .rt-holder{position:relative}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay{align-items:center;background:rgba(0,0,0,.7);display:flex;flex-direction:column;height:100%;justify-content:center;opacity:0;padding:15px;position:absolute;text-align:center;text-decoration:none;transition:all .3s ease-out;width:100%;z-index:9}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .line,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .line,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .line{background-color:#fff;height:2px;margin:12px auto;min-height:2px;transition:all .5s ease-out;width:0}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay:hover .line,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay:hover .line,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay:hover .line{width:40%}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h4,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h4,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h4{color:#fff;font-size:22px;font-weight:400;line-height:1.25;margin:0 0 18px;padding-top:5%}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h4 a,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h4 a,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h4 a{color:#fff}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta.left,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta.left,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta.left{text-align:left}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta.right,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta.right,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta.right{text-align:right}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .rt-tpg-social-share,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .rt-tpg-social-share,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .rt-tpg-social-share{float:none;text-align:center}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .read-more,.tpg-shortcode-main-wrapper .layout6 .rt-holder .read-more{float:none}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta-user{color:#fff}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta-user p,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta-user p,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta-user p{margin-bottom:0}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .carousel3 .rt-holder:hover .overlay .tpg-excerpt,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .isotope3 .rt-holder:hover .overlay .tpg-excerpt,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .layout6 .rt-holder:hover .overlay .tpg-excerpt{color:#fff}.tpg-shortcode-main-wrapper .carousel3 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .isotope3 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .layout6 .rt-holder:hover .overlay{opacity:1}.tpg-shortcode-main-wrapper .carousel4 .rt-holder,.tpg-shortcode-main-wrapper .isotope4 .rt-holder,.tpg-shortcode-main-wrapper .layout7 .rt-holder{position:relative}.tpg-shortcode-main-wrapper .carousel4 .rt-holder img,.tpg-shortcode-main-wrapper .isotope4 .rt-holder img,.tpg-shortcode-main-wrapper .layout7 .rt-holder img{opacity:.9;transition:opacity .35s}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay{align-items:center;background:rgba(0,0,0,.3);display:flex;flex-direction:column;height:100%;justify-content:center;left:0;padding:0 12px;position:absolute;top:0;width:100%}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay:hover,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay:hover,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay:hover{background:rgba(0,0,0,.5)}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay:before,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay:before,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay:before{border:2px solid #fff;bottom:20px;box-shadow:0 0 0 30px hsla(0,0%,100%,.2);content:"";left:20px;opacity:0;position:absolute;right:20px;top:20px;transform:scale3d(1.4,1.4,1);transition:opacity .35s,transform .35s}.tpg-shortcode-main-wrapper .carousel7 .rt-holder .cat-above-title,.tpg-shortcode-main-wrapper .carousel11 .rt-holder .post-info .cat-above-title,.tpg-shortcode-main-wrapper .carousel12 .rt-holder .post-info .cat-above-title{color:#fff;text-align:center}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .cat-above-title,.tpg-shortcode-main-wrapper .carousel5 .rt-holder .cat-above-title{color:#fff;margin-top:30px;opacity:0;text-align:center}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .cat-above-title a,.tpg-shortcode-main-wrapper .carousel5 .rt-holder .cat-above-title a,.tpg-shortcode-main-wrapper .carousel7 .rt-holder .cat-above-title a,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .cat-above-title *,.tpg-shortcode-main-wrapper .carousel12 .rt-holder .post-info .cat-above-title *{color:inherit}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .cat-above-title,.tpg-shortcode-main-wrapper .carousel5 .rt-holder:hover .cat-above-title{opacity:1}.tpg-shortcode-main-wrapper .carousel5 .rt-holder:hover .cat-above-title+.entry-title,.tpg-shortcode-main-wrapper .carousel11 .rt-holder .post-info .cat-above-title,.tpg-shortcode-main-wrapper .carousel12 .rt-holder .post-info .cat-above-title{padding-top:10px}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .cat-above-title+.entry-title{margin-top:10px}.tpg-shortcode-main-wrapper .carousel4 .rt-holder h2,.tpg-shortcode-main-wrapper .carousel4 .rt-holder h3,.tpg-shortcode-main-wrapper .carousel4 .rt-holder h4,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h2,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h3,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h4,.tpg-shortcode-main-wrapper .layout7 .rt-holder h2,.tpg-shortcode-main-wrapper .layout7 .rt-holder h3,.tpg-shortcode-main-wrapper .layout7 .rt-holder h4{color:#fff;font-size:22px;font-weight:400;line-height:1.25;margin:30% 0 10px;text-align:center;transition:transform .35s}.tpg-shortcode-main-wrapper .carousel4 .rt-holder h2 a,.tpg-shortcode-main-wrapper .carousel4 .rt-holder h3 a,.tpg-shortcode-main-wrapper .carousel4 .rt-holder h4 a,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h2 a,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h3 a,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h4 a,.tpg-shortcode-main-wrapper .layout7 .rt-holder h2 a,.tpg-shortcode-main-wrapper .layout7 .rt-holder h3 a,.tpg-shortcode-main-wrapper .layout7 .rt-holder h4 a{color:#fff}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .tpg-excerpt,.tpg-shortcode-main-wrapper .carousel4 .rt-holder p,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .tpg-excerpt,.tpg-shortcode-main-wrapper .isotope4 .rt-holder p,.tpg-shortcode-main-wrapper .layout7 .rt-holder .tpg-excerpt,.tpg-shortcode-main-wrapper .layout7 .rt-holder p{color:#fff;opacity:0;padding:0 15px;text-align:center;transform:scale(1.5);transition:opacity .35s,transform .35s}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .post-meta-user p,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .post-meta-user p,.tpg-shortcode-main-wrapper .layout7 .rt-holder .post-meta-user p{margin-bottom:0}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .post-meta-user a,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .post-meta-user a,.tpg-shortcode-main-wrapper .layout7 .rt-holder .post-meta-user a{color:#fff}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover h3,.tpg-shortcode-main-wrapper .isotope4 .rt-holder:hover h3,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover h3{margin:7% 0 10px;transform:scale(.9)}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .overlay:before,.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .tpg-excerpt,.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover p,.tpg-shortcode-main-wrapper .isotope4 .rt-holder:hover .overlay:before,.tpg-shortcode-main-wrapper .isotope4 .rt-holder:hover .tpg-excerpt,.tpg-shortcode-main-wrapper .isotope4 .rt-holder:hover p,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover .overlay:before,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover .tpg-excerpt,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover p{opacity:1;transform:scaleX(1)}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay .post-meta,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay .post-meta,.tpg-shortcode-main-wrapper .layout7 .rt-holder .cat-above-title,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay .post-meta{color:#fff;opacity:0;overflow:hidden;text-align:center}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay .post-meta.left,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay .post-meta.left,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay .post-meta.left{text-align:left}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay .post-meta.right,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay .post-meta.right,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay .post-meta.right{text-align:right}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .overlay .post-meta,.tpg-shortcode-main-wrapper .isotope4 .rt-holder:hover .overlay .post-meta,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover .cat-above-title,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover .overlay .post-meta{opacity:1;transform:scale(1);transition:opacity .35s,transform .35s}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay .rt-tpg-social-share,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay .rt-tpg-social-share,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay .rt-tpg-social-share{float:none;text-align:center}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .read-more,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .read-more,.tpg-shortcode-main-wrapper .layout7 .rt-holder .read-more{float:none}.tpg-shortcode-main-wrapper .carousel4 .rt-holder h3,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay .entry-title{margin:0!important;transition:.4s}.tpg-shortcode-main-wrapper .carousel8 .rt-holder,.tpg-shortcode-main-wrapper .isotope8 .rt-holder,.tpg-shortcode-main-wrapper .layout12 .rt-holder{background:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.22)}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-img-holder,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-img-holder,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-img-holder{overflow:hidden;position:relative}.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover img,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover img,.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover img{transform:scale(1.05);-webkit-transform:scale(1.05);-moz-transform:scale(1.05);-ms-transform:scale(1.05);-o-transform:scale(1.05);-webkit-transition:all .25s ease-in-out}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail{background:#fff;display:inline-block;padding:25px;transition:all .3s ease-out 0s;width:100%}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail.rt-with-title,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail.rt-with-title,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail.rt-with-title{padding-bottom:0;padding-top:0}.tpg-shortcode-main-wrapper .carousel8 .rt-holder.rt-with-title-below h2.entry-title,.tpg-shortcode-main-wrapper .carousel8 .rt-holder.rt-with-title-below h3.entry-title,.tpg-shortcode-main-wrapper .carousel8 .rt-holder.rt-with-title-below h4.entry-title,.tpg-shortcode-main-wrapper .isotope8 .rt-holder.rt-with-title-below h2.entry-title,.tpg-shortcode-main-wrapper .isotope8 .rt-holder.rt-with-title-below h3.entry-title,.tpg-shortcode-main-wrapper .isotope8 .rt-holder.rt-with-title-below h4.entry-title,.tpg-shortcode-main-wrapper .layout12 .rt-holder.rt-with-title-below h2.entry-title,.tpg-shortcode-main-wrapper .layout12 .rt-holder.rt-with-title-below h3.entry-title,.tpg-shortcode-main-wrapper .layout12 .rt-holder.rt-with-title-below h4.entry-title{margin-top:0}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail.rt-with-title .entry-title,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail.rt-with-title .entry-title,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail.rt-with-title .entry-title{display:inline-block}.tpg-shortcode-main-wrapper .carousel8 .rt-holder.rt-with-title .post-meta-user,.tpg-shortcode-main-wrapper .isotope8 .rt-holder.rt-with-title .post-meta-user,.tpg-shortcode-main-wrapper .layout12 .rt-holder.rt-with-title .post-meta-user{margin-bottom:15px}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h4,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h4,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h4{font-size:22px;font-weight:400;line-height:1.25;margin:15px 0}.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h4{font-weight:500}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h2 a,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h3 a,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h4 a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h2 a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h3 a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h4 a,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h2 a,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h3 a,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h4 a{color:#000}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h2 a:hover,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h3 a:hover,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h4 a:hover,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h2 a:hover,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h3 a:hover,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h4 a:hover,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h2 a:hover,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h3 a:hover,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h4 a:hover{color:#fff}.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail{flex-grow:1}.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail,.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover .rt-detail{background:#0850d0;color:#fff}.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail a,.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover .rt-detail a{color:#fff}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail .read-more,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail .read-more,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail .read-more{text-align:right}.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail .post-meta-user,.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail .post-meta-user .meta-data,.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail .post-meta-user a,.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail .post-meta-user i[class^=fa],.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail h3 a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail .post-meta-user,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail .post-meta-user .meta-data,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail .post-meta-user a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail .post-meta-user i[class^=fa],.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover .rt-detail .post-meta-user,.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover .rt-detail .post-meta-user a,.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover .rt-detail i{color:#fff!important}@media (min-width:992px){.rt-container{width:970px}}@media (min-width:1200px){.rt-container{width:1170px}}@media (max-width:767px){.hidden-xs{display:none!important}}@media screen and (max-width:768px){.rt-member-description-container,.rt-member-feature-img{float:none;width:100%}}@media (min-width:768px){.rt-col-sm-1,.rt-col-sm-2,.rt-col-sm-3,.rt-col-sm-4,.rt-col-sm-5,.rt-col-sm-6,.rt-col-sm-7,.rt-col-sm-8,.rt-col-sm-9,.rt-col-sm-10,.rt-col-sm-11,.rt-col-sm-12,.rt-col-sm-24{float:left}.rt-col-sm-24{width:20%}.rt-col-sm-12{width:100%}.rt-col-sm-11{width:91.66666667%}.rt-col-sm-10{width:83.33333333%}.rt-col-sm-9{width:75%}.rt-col-sm-8{width:66.66666667%}.rt-col-sm-7{width:58.33333333%}.rt-col-sm-6{width:50%}.rt-col-sm-5{width:41.66666667%}.rt-col-sm-4{width:33.33333333%}.rt-col-sm-3{width:25%}.rt-col-sm-2{width:16.66666667%}.rt-col-sm-1{width:8.33333333%}}@media (min-width:992px){.rt-col-md-1,.rt-col-md-2,.rt-col-md-3,.rt-col-md-4,.rt-col-md-5,.rt-col-md-6,.rt-col-md-7,.rt-col-md-8,.rt-col-md-9,.rt-col-md-10,.rt-col-md-11,.rt-col-md-12,.rt-col-md-24{float:left}.rt-col-md-24{width:20%}.rt-col-md-12{width:100%}.rt-col-md-11{width:91.66666667%}.rt-col-md-10{width:83.33333333%}.rt-col-md-9{width:75%}.rt-col-md-8{width:66.66666667%}.rt-col-md-7{width:58.33333333%}.rt-col-md-6{width:50%}.rt-col-md-5{width:41.66666667%}.rt-col-md-4{width:33.33333333%}.rt-col-md-3{width:25%}.rt-col-md-2{width:16.66666667%}.rt-col-md-1{width:8.33333333%}}@media (min-width:1200px){.rt-col-lg-1,.rt-col-lg-2,.rt-col-lg-3,.rt-col-lg-4,.rt-col-lg-5,.rt-col-lg-6,.rt-col-lg-7,.rt-col-lg-8,.rt-col-lg-9,.rt-col-lg-10,.rt-col-lg-11,.rt-col-lg-12{float:left}.rt-col-lg-24{width:20%}.rt-col-lg-12{width:100%}.rt-col-lg-11{width:91.66666667%}.rt-col-lg-10{width:83.33333333%}.rt-col-lg-9{width:75%}.rt-col-lg-8{width:66.66666667%}.rt-col-lg-7{width:58.33333333%}.rt-col-lg-6{width:50%}.rt-col-lg-5{width:41.66666667%}.rt-col-lg-4{width:33.33333333%}.rt-col-lg-3{width:25%}.rt-col-lg-2{width:16.66666667%}.rt-col-lg-1{width:8.33333333%}}.rt-img-holder{overflow:hidden}.layout4 .rt-img-holder,.layout4 .rt-img-holder a,.layout4 .rt-img-holder img{height:100%}.img_zoom_in img.rt-img-responsive,.img_zoom_out img.rt-img-responsive{min-width:100%;transition:all 1s!important}.img_zoom_in:hover img.rt-img-responsive,.img_zoom_out img.rt-img-responsive{transform:scale(1.2)!important}.img_zoom_out:hover img.rt-img-responsive{transform:scale(1)!important}.tpg-shortcode-main-wrapper .img_no_effect:hover img.rt-img-responsive{transform:none}.tpg-even .rt-holder{display:flex;height:100%}.tpg-even.edd1 .rt-holder,.tpg-even.layout1 .rt-holder,.tpg-even.layout12 .rt-holder,.tpg-even.offset01 .offset-big .rt-holder,.tpg-even.offset02 .offset-big .rt-holder{flex-direction:column}.tpg-even.edd1 .rt-holder .rt-img-holder,.tpg-even.layout1 .rt-holder .rt-img-holder,.tpg-even.layout11 .rt-holder .rt-img-holder,.tpg-even.layout11 .rt-holder .rt-img-holder *{height:auto}@media (min-width:768px) and (max-width:991px){.tpg-even.layout4 .even-grid-item:nth-of-type(4n+2) .rt-holder [class*=rt-col]:first-child,.tpg-even.layout4 .even-grid-item:nth-of-type(4n+3) .rt-holder [class*=rt-col]:first-child{order:2}}@media (max-width:767px){.tpg-even.layout4 .even-grid-item .rt-holder .layoutInner-img{order:-1!important}}.tpg-shortcode-main-wrapper .rt-holder .overlay,.tpg-shortcode-main-wrapper .rt-holder .overlay>a[data-id],.tpg-shortcode-main-wrapper .rt-holder>a[data-id]{width:100%}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay,.tpg-shortcode-main-wrapper .carousel5 .rt-holder .overlay,.tpg-shortcode-main-wrapper .carousel7 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .carousel11 .rt-holder .overlay .post-info .tpg-shortcode-main-wrapper .layout13 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .carousel11 .rt-holder .post-info,.tpg-shortcode-main-wrapper .carousel12 .rt-holder .post-info,.tpg-shortcode-main-wrapper .isotope2 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .isotope5 .rt-holder .overlay,.tpg-shortcode-main-wrapper .isotope7 .rt-holder .post-info,.tpg-shortcode-main-wrapper .isotope9 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .isotope11 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .isotope12 .rt-holder .post-info,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay,.tpg-shortcode-main-wrapper .layout8 .rt-holder .overlay,.tpg-shortcode-main-wrapper .layout10 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .layout15 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .layout16 .rt-holder .overlay .post-info{display:flex;flex-direction:column;justify-content:center}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay .read-more a,.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .read-more a,.tpg-shortcode-main-wrapper .carousel4 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .carousel5 .rt-holder .overlay .post-info .read-more a,.tpg-shortcode-main-wrapper .carousel7 .rt-holder .overlay .post-info .read-more a,.tpg-shortcode-main-wrapper .carousel9 .rt-holder .overlay .post-info .read-more a,.tpg-shortcode-main-wrapper .carousel11 .rt-holder .post-info .read-more a,.tpg-shortcode-main-wrapper .carousel12 .rt-holder .post-info .read-more a,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay .post-meta .read-more a,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .read-more a,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .post-meta .read-more a,.tpg-shortcode-main-wrapper .isotope5 .rt-holder .overlay .post-meta .read-more a,.tpg-shortcode-main-wrapper .isotope9 .rt-holder .overlay .post-info .read-more a,.tpg-shortcode-main-wrapper .isotope11 .rt-holder .overlay .post-info .read-more a,.tpg-shortcode-main-wrapper .isotope12 .rt-holder .post-info .read-more a,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .read-more a,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .read-more a,.tpg-shortcode-main-wrapper .layout7 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .layout8 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .layout10 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .layout13 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .layout15 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .layout16 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .offset03 .rt-holder .post-meta .read-more a{border:1px solid hsla(0,0%,100%,.4);padding:8px 15px}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta,.tpg-shortcode-main-wrapper .isotope12 .rt-holder .post-info .post-meta .rt-tpg-social-share,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta{color:#fff;overflow:hidden;text-align:center}.tpg-even.grid-behaviour{align-items:flex-start}.grid-layout2.tpg-even,.grid-layout6 .tpg-even.grid-behaviour,.tpg-full-height{align-items:inherit}.tpg-el-main-wrapper .tpg-post-holder{height:100%}.grid_hover-layout9-2-main .tpg-even .rt-holder,.grid_hover-layout9-main .tpg-even .rt-holder,.list-layout1-main .tpg-even .rt-holder{display:block}.rt-el-post-meta span.author{margin-bottom:2px}.rt-tpg-container .rt-detail .tpg-excerpt{margin-top:-5px}.tpg-el-main-wrapper .slider_layout_wrapper .tpg-post-holder{margin-top:1px}.tpg-el-main-wrapper .grid-layout5 .tpg-post-holder,.tpg-el-main-wrapper .grid-layout6 .tpg-post-holder,.tpg-el-main-wrapper .slider_layout_wrapper .tpg-post-holder{height:auto}.rt-tpg-container .rt-el-content-wrapper{transition:background-color .4s ease-in-out}.rt-tpg-container .tpg-post-holder .read-more a,.rt-tpg-social-share a i,.tpg-el-main-wrapper .post-meta-tags a,.tpg-el-main-wrapper .post-meta-tags img,.tpg-el-main-wrapper .post-meta-tags span,.tpg-el-main-wrapper .rt-holder:hover .post-meta-tags i,.tpg-el-main-wrapper .tpg-el-excerpt *,.tpg-el-main-wrapper .tpg-el-image-wrap .overlay,.tpg-el-main-wrapper .tpg-el-image-wrap img,.tpg-el-main-wrapper .tpg-post-holder,.tpg-separate-category .categories-links,.tpg-separate-category .categories-links i{transition:.4s ease-in-out}.tpg-el-main-wrapper .rt-content-loader [class*=rt-col]{margin-top:0;padding-bottom:30px}.tpg-el-main-wrapper .entry-title a{color:inherit!important;text-decoration:none;transition:none!important}.tpg-el-main-wrapper .entry-title a:focus{border:none;box-shadow:none}.tpg-el-main-wrapper .entry-title:hover{color:var(--tpg-primary-color,#0d6efd)}.tpg-widget-heading-wrapper .tpg-widget-heading a{color:inherit}.section-title-align-center .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line.line-left,.section-title-align-right .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line.line-left{display:block;margin-left:0;margin-right:15px}.section-title-align-center .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading:before{display:none}.section-title-align-center .tpg-widget-heading-wrapper .tpg-widget-heading{margin-right:0!important}.section-title-align-right .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line.line-right{display:none}.section-title-align-right .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading{padding-left:15px;padding-right:0}.section-title-align-right .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading:before{left:0;right:auto}.section-title-align-left .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:before{display:none}.section-title-align-left .tpg-widget-heading-wrapper.heading-default,.section-title-align-left .tpg-widget-heading-wrapper.heading-style2,.section-title-align-left .tpg-widget-heading-wrapper.heading-style3{justify-content:flex-start}.section-title-align-center .tpg-widget-heading-wrapper.heading-default,.section-title-align-center .tpg-widget-heading-wrapper.heading-style2,.section-title-align-center .tpg-widget-heading-wrapper.heading-style3{justify-content:center}.section-title-align-right .tpg-widget-heading-wrapper.heading-default,.section-title-align-right .tpg-widget-heading-wrapper.heading-style2,.section-title-align-right .tpg-widget-heading-wrapper.heading-style3{justify-content:flex-end}.section-title-align-right .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:after{display:none}.title-one-line .entry-title,.title-three-line .entry-title,.title-two-line .entry-title{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.title-one-line .entry-title{-webkit-line-clamp:1}.title-two-line .entry-title{-webkit-line-clamp:2}.title-three-line .entry-title{-webkit-line-clamp:3}.rt-tpg-container .rt-el-post-meta{margin-bottom:13px}.rt-tpg-container .rt-el-post-meta i{margin-right:5px}.rt-tpg-container .offset-right .rt-el-post-meta{margin-top:-6px}.tpg-el-main-wrapper .tpg-el-image-wrap img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.editor-styles-wrapper .wp-block-freeform .tpg-el-image-wrap img,.editor-styles-wrapper .wp-block .tpg-el-image-wrap img{border-radius:0}@media (max-width:767px){.tpg-el-main-wrapper .tpg-el-image-wrap img{width:100%!important}}.tpg-el-main-wrapper .tpg-el-image-wrap a.tpg-post-link{height:100%;width:100%}.tpg-el-main-wrapper .tpg-el-image-wrap .overlay{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tpg-el-main-wrapper .rt-grid-hover-item .tpg-el-image-wrap .overlay.grid-hover-content{display:none!important;opacity:0;visibility:hidden}.tpg-el-main-wrapper .tpg-post-holder .tpg-el-image-wrap .overlay.show-on-hover,.tpg-el-main-wrapper .tpg-post-holder:hover .tpg-el-image-wrap .overlay.hide-on-hover{opacity:0!important}.tpg-el-main-wrapper .tpg-post-holder:hover .tpg-el-image-wrap .overlay.show-on-hover{opacity:1!important}.tpg-el-main-wrapper .post-meta-tags span{display:inline-block}.tpg-el-main-wrapper .post-meta-tags span img+span.author-prefix{padding-left:3px}.tpg-el-main-wrapper .post-meta-tags span.author-prefix{padding-right:5px}.tpg-el-main-wrapper .post-meta-tags span img{border-radius:50%;display:inline-block;height:25px!important;margin-right:5px;margin-top:-2%;max-width:25px;width:auto!important}.post-meta-tags span.separator:last-of-type{display:none}body .readmore-btn-only-text .rt-tpg-container .tpg-post-holder .read-more a,body .readmore-btn-only-text .rt-tpg-container .tpg-post-holder .read-more a:hover{background:none!important;border:none!important;padding:0!important}.rt-tpg-container .tpg-post-holder .read-more a i{transition:margin .4s ease-in-out}.rt-tpg-container .tpg-post-holder .read-more a i.left-icon{margin-right:5px}.rt-tpg-container .tpg-post-holder .read-more a i.right-icon{margin-left:5px}.tpg-el-box-border-disable .rt-tpg-container .rt-holder{border:none;box-shadow:none!important}.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{display:flex;justify-content:space-between}.tpg-filter-alignment-left .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{align-items:flex-start}.tpg-filter-alignment-center .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{align-items:center}.tpg-filter-alignment-right .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{align-items:flex-end}.tpg-filter-h-alignment-left .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{justify-content:flex-start}.tpg-filter-h-alignment-center .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{justify-content:center}.tpg-filter-h-alignment-right .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{justify-content:flex-end}.tpg-filter-h-alignment-space-between .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{justify-content:space-between}.rt-filter-item-wrap.rt-search-filter-wrap input.rt-search-input{min-width:202px}.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap .filter-left-wrapper{margin-right:15px}@media (max-width:1023px){.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap .filter-left-wrapper{text-align:center}.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap .filter-right-wrapper{align-items:center;display:flex;flex-wrap:wrap;justify-content:center}.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap .filter-right-wrapper .rt-order-by-action{order:-1}}@media (max-width:991px){.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{flex-direction:column}}@media (max-width:600px){.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap .filter-left-wrapper{margin-right:0}.tpg-filter-type-dropdown .rt-filter-wrap .filter-left-wrapper{display:flex;justify-content:center}.tpg-el-main-wrapper .rt-filter-item-wrap.rt-tax-filter.rt-filter-dropdown-wrap{margin-bottom:4px}.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{flex-direction:column}}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap{min-height:38px}.tpg-el-main-wrapper .rt-holder .rt-el-content-wrapper{display:flex;flex-direction:column;overflow:hidden}.tpg-el-main-wrapper .rt-holder .rt-el-content-wrapper-flex{display:flex;flex-direction:row}.title_position_above_image .tpg-el-main-wrapper .rt-holder .rt-el-content-wrapper .tpg-el-image-wrap{margin:0 -15px 15px}.rt-tpg-container .rt-holder .rt-detail .entry-title-wrapper .entry-title{margin-bottom:0;transition:.4s}.rt-tpg-container .rt-holder .rt-detail .entry-title-wrapper .tpg-separate-category{margin-bottom:5px}.tpg-el-main-wrapper .rt-holder .tpg-el-excerpt{order:5}.tpg-el-main-wrapper .rt-holder .rt-tpg-social-share{order:10}.tpg-el-main-wrapper .rt-tpg-social-share a{margin-right:10px}.tpg-el-main-wrapper .rt-holder .post-footer{margin-bottom:15px;order:11}.title_position_above_image .tpg-el-main-wrapper .rt-holder .entry-title-wrapper{order:-5}.title_position_below_image .tpg-el-main-wrapper .rt-holder .tpg-el-image-wrap{order:-8}.title_position_below_image .tpg-el-main-wrapper .rt-holder .entry-title-wrapper{order:2}.title_position_above_image.meta_position_above_title .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:-6}.title_position_above_image.meta_position_below_title .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:-4}.title_position_below_image.meta_position_above_title .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:1}.title_position_below_image.meta_position_below_title .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:3}.meta_position_below_excerpt .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:6}.meta_position_above_excerpt .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:4}.title_position_default.meta_position_above_title .tpg-el-main-wrapper .rt-holder .tpg-el-image-wrap{order:-2}.title_position_default.meta_position_above_title .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:-1}.title_hover_border_enable .rt-tpg-container .entry-title-wrapper .entry-title a{background:linear-gradient(180deg,var(--tpg-primary-color,#0d6efd) 0,var(--tpg-primary-color,#0d6efd) 98%);background-position:left 100%;background-repeat:no-repeat;background-size:0 2px;transition:background .4s!important}.title_hover_border_enable .rt-tpg-container .entry-title-wrapper .entry-title:hover a{background-size:100% 2px}.title_hover_border_disable .rt-tpg-container .entry-title-wrapper .entry-title a{background:none!important}.rt-tpg-container .post-right-content{display:flex;flex-direction:column}.rt-tpg-container .list-layout-wrapper .post-right-content{flex:1}.rt-tpg-container .list-layout-wrapper .post-right-content>div:last-child{margin-bottom:0}.tpg-separate-category.style1 .rt-separator{margin-right:4px}.tpg-category-position-default .grid-layout4 .rt-detail .entry-title-wrapper .tpg-separate-category,.tpg-category-position-default .grid_hover-layout11 .rt-detail .entry-title-wrapper .tpg-separate-category,.tpg-is-author-icon-hide .post-meta-tags span.author i,.tpg-is-author-icon-hide .post-meta-tags span.author img{display:none}.rt-tpg-container .rt-holder .rt-img-holder .tpg-zoom{left:50%;opacity:0;position:absolute;top:60%;transform:translate(-50%,-50%);visibility:hidden;z-index:99}.rt-tpg-container .rt-holder:hover .rt-img-holder .tpg-zoom{opacity:1;top:50%;visibility:visible}.rt-tpg-container .rt-holder .rt-img-holder .tpg-zoom i{background:hsla(0,0%,100%,.8);border:0 solid;border-radius:50%;box-sizing:border-box;display:inline-block;font-size:20px;height:50px;line-height:40px;margin-right:0;padding:5px;text-align:center;width:50px}@media (min-width:992px){.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-3:nth-child(8n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-3:nth-child(8n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-3:nth-child(8n+7) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-3:nth-child(8n+8) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-4:nth-child(6n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-4:nth-child(6n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-4:nth-child(6n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-6:nth-child(4n+3) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-6:nth-child(4n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-12:nth-child(2n) .rt-el-content-wrapper-flex{flex-direction:row-reverse}}@media (min-width:1200px){.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-4:nth-child(6n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-4:nth-child(6n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-4:nth-child(6n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-6:nth-child(4n+3) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-6:nth-child(4n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-12:nth-child(2n) .rt-el-content-wrapper-flex{flex-direction:row-reverse}}@media (min-width:768px) and (max-width:991px){.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-3:nth-child(8n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-3:nth-child(8n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-3:nth-child(8n+7) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-3:nth-child(8n+8) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-4:nth-child(6n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-4:nth-child(6n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-4:nth-child(6n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-6:nth-child(4n+3) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-6:nth-child(4n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-12:nth-child(2n) .rt-el-content-wrapper-flex{flex-direction:row-reverse}}@media (max-width:768px){.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-3:nth-child(8n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-3:nth-child(8n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-3:nth-child(8n+7) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-3:nth-child(8n+8) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-4:nth-child(4n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-4:nth-child(4n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-4:nth-child(4n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-6:nth-child(4n+3) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-6:nth-child(4n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-12:nth-child(2n) .rt-el-content-wrapper-flex{flex-direction:row-reverse}}.rt-tpg-container .grid-layout4 .rt-holder .tpg-el-image-wrap,.rt-tpg-container .grid-layout5 .rt-holder .tpg-el-image-wrap,.rt-tpg-container .grid-layout6 .rt-holder .tpg-el-image-wrap{margin:0 0 15px}.rt-tpg-container .grid-layout4 .cat-over-image a,.rt-tpg-container .grid-layout5 .tpg-separate-category a,.rt-tpg-container .list-layout4 .tpg-separate-category a{align-items:center;background-color:var(--tpg-primary-color,#0d6efd);color:#fff;display:inline-flex;font-size:12px;justify-content:center;line-height:1;margin-right:5px;min-height:24px;padding:0 8px}.rt-tpg-container .grid-layout4 .cat-over-image a:hover,.rt-tpg-container .grid-layout5 .tpg-separate-category a:hover,.rt-tpg-container .list-layout4 .tpg-separate-category a:hover{background:var(--tpg-secondary-color,#0654c4)}.rt-tpg-container .grid-layout4 .cat-over-image a:hover:after,.rt-tpg-container .grid-layout5 .tpg-separate-category.style3 a:hover:after,.rt-tpg-container .list-layout4 .tpg-separate-category.style3 a:hover:after{border-top-color:var(--tpg-secondary-color,#0654c4)}.rt-tpg-container .grid-layout4 .cat-over-image .rt-separator,.rt-tpg-container .grid-layout5 .tpg-separate-category .rt-separator{display:none}.rt-tpg-container .grid-layout1 .rt-holder,.rt-tpg-container .grid-layout3 .rt-holder{background:#fff;box-shadow:0 0 2px 0 rgba(0,0,0,.3);-webkit-box-shadow:0 0 2px 0 rgba(0,0,0,.3);-moz-box-shadow:0 0 2px 0 rgba(0,0,0,.3)}.tpg-el-main-wrapper .grid-layout2 .rt-holder .rt-el-content-wrapper-flex{height:100%;padding:0}.rt-tpg-container .grid-layout2 .rt-holder .tpg-el-image-wrap{flex:0 0 50%;margin:0;max-width:50%}.rt-tpg-container .grid-layout2 .rt-holder .post-right-content{flex-grow:1;flex:0 0 50%;max-width:50%;padding:15px}.tpg-el-main-wrapper .grid-layout2 [class*=rt-col]{padding:0}@media (max-width:500px){.tpg-el-main-wrapper .grid-layout2 .rt-el-content-wrapper-flex,.tpg-post-order-reverse .rt-tpg-container .rt-row .rt-col-xs-12:nth-child(2n) .rt-el-content-wrapper-flex{display:block}.rt-tpg-container .grid-layout2 .rt-holder .post-right-content,.rt-tpg-container .grid-layout2 .rt-holder .tpg-el-image-wrap{flex:inherit;margin:0;max-width:100%}.tpg-el-main-wrapper .grid-layout2 [class*=rt-col]{margin-bottom:15px}}.rt-tpg-container .grid-layout3 .rt-holder{border-radius:4px;overflow:hidden}.meta_position_default .tpg-el-main-wrapper .grid-layout3 .rt-holder .rt-el-post-meta{order:12;padding-bottom:5px;padding-top:20px;position:relative}.meta_position_default .tpg-el-main-wrapper .grid-layout3 .rt-holder .rt-el-post-meta:before{background:#ddd;content:"";height:1px;left:-50px;position:absolute;right:-50px;top:0;width:calc(100% + 100px)}.rt-tpg-container .grid-layout4 .entry-title-wrapper .entry-title{font-size:22px;font-weight:500;line-height:32px}.tpg-el-main-wrapper .grid-layout4 .tpg-el-image-wrap img{height:230px;width:100%}.rt-tpg-container .grid-layout4 .rt-holder .rt-detail{padding:0}.tpg-is-author-icon-default .grid-layout4 .post-meta-tags span.author i,.tpg-is-author-icon-default .grid-layout4 .post-meta-tags span.author img{display:none}.tpg-el-main-wrapper .list-layout-wrapper .rt-holder .rt-el-content-wrapper{display:flex;flex-direction:row;height:100%;padding:0}.tpg-el-main-wrapper.list-layout1-main .list-layout-wrapper .rt-holder .rt-el-content-wrapper{align-items:flex-start}.tpg-el-main-wrapper.list-layout1-2-main .list-layout1 .rt-holder .rt-el-content-wrapper{flex-direction:row-reverse}.rt-tpg-container .list-layout1 .rt-holder .tpg-el-image-wrap{flex:0 0 260px;margin:0 30px 0 0}@media (max-width:991px){.rt-tpg-container .list-layout1 .rt-holder .tpg-el-image-wrap{flex:0 0 200px}}@media (max-width:599px){.tpg-el-main-wrapper.list-layout1-main .list-layout-wrapper .rt-holder .rt-el-content-wrapper{display:block}.rt-tpg-container .list-layout1 .rt-holder .tpg-el-image-wrap{margin:0 0 15px}}.tpg-el-main-wrapper.list-layout1-2-main .list-layout1 .rt-holder .tpg-el-image-wrap{margin:0 0 0 30px}.rt-tpg-container .list-layout1 .rt-detail .read-more a,.rt-tpg-container .list-layout2 .rt-detail .read-more a,.rt-tpg-container .list-layout3 .rt-detail .read-more a{background-color:var(--tpg-primary-color,#0d6efd);border-color:var(--tpg-primary-color,#0d6efd);color:#fff}.rt-tpg-container .list-layout1 .rt-detail .read-more a:hover,.rt-tpg-container .list-layout2 .rt-detail .read-more a:hover,.rt-tpg-container .list-layout3 .rt-detail .read-more a:hover,.rt-tpg-container .list-layout4 .rt-detail .read-more a:hover{background-color:var(--tpg-secondary-color,#0654c4);border-color:var(--tpg-secondary-color,#0654c4);color:#fff}.tags-visibility-default .list-layout1 .post-tags-links,.tags-visibility-default .list-layout1 .post-tags-links+.separator{display:none}.rt-tpg-container .list-layout-wrapper .offset-right .rt-row{display:flex;flex-wrap:wrap;max-width:100%;overflow:hidden;width:100%}.rt-tpg-container .list-layout-wrapper.list-layout3 .offset-right .rt-row .rt-list-item{margin-bottom:15px}.tpg-el-main-wrapper .list-layout2 .offset-left .tpg-el-image-wrap{height:300px}.tpg-el-main-wrapper .list-layout-wrapper .offset-left .rt-holder .rt-el-content-wrapper{flex-direction:column}.rt-tpg-container .list-layout-wrapper .offset-left .rt-holder .tpg-el-image-wrap{flex:inherit;margin:0 0 15px}.tpg-el-main-wrapper .list-layout-wrapper .offset-right .tpg-el-image-wrap{height:100px}.rt-tpg-container .list-layout-wrapper .offset-right .entry-title-wrapper .entry-title{font-size:20px}.tpg-el-main-wrapper.list-layout2-2-main .list-layout2,.tpg-el-main-wrapper.list-layout3-2-main .list-layout3,.tpg-el-main-wrapper.list-layout5-2-main .list-layout5 .rt-holder .rt-el-content-wrapper{flex-direction:row-reverse}.tpg-el-main-wrapper .list-layout-wrapper.list-layout2 .rt-holder .rt-el-content-wrapper,.tpg-el-main-wrapper .list-layout-wrapper.list-layout2-2 .rt-holder .rt-el-content-wrapper,.tpg-el-main-wrapper .list-layout-wrapper.list-layout2-3 .rt-holder .rt-el-content-wrapper,.tpg-el-main-wrapper .list-layout-wrapper.list-layout3 .rt-holder .rt-el-content-wrapper{align-items:flex-start!important}.tags-visibility-default .list-layout2 .post-tags-links,.tags-visibility-default .list-layout2 .post-tags-links+.separator{display:none}.rt-tpg-container .list-layout2 .offset-right .rt-holder .tpg-el-image-wrap{flex:0 0 107px;margin:0 15px 0 0;max-width:107px}.tpg-el-main-wrapper .list-layout3 .offset-right .rt-holder .tpg-el-excerpt{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.tpg-el-main-wrapper .list-layout3 [class*=rt-col]{padding-bottom:15px}.tpg-el-main-wrapper .list-layout3 .offset-left .tpg-el-image-wrap{height:390px}.rt-tpg-container .list-layout3 .offset-right .rt-holder .tpg-el-image-wrap{flex:0 0 140px;height:110px;margin:0 15px 0 0;max-width:140px}.tpg-el-main-wrapper .list-layout-wrapper.list-layout4 .rt-el-content-wrapper{align-items:inherit!important}.rt-tpg-container .list-layout4 .post-right-content,.tpg-el-main-wrapper .list-layout4 .rt-holder .tpg-el-image-wrap{flex:0 0 50%;margin:0}@media (min-width:768px){.tpg-el-main-wrapper .list-layout4 .rt-holder .tpg-el-image-wrap{min-height:400px}}.rt-tpg-container .list-layout4 .post-right-content{display:flex;justify-content:center;margin:0;padding:30px 50px;text-align:center}.rt-tpg-container .list-layout4 .entry-title-wrapper .categories-links .rt-separator{display:none}.tpg-el-main-wrapper .list-layout4 [class*=rt-col]{padding-bottom:0}@media (min-width:768px){.tpg-el-main-wrapper .list-layout4 [class*=rt-col]:nth-child(2n) .rt-holder .rt-el-content-wrapper{flex-direction:row-reverse}}@media (max-width:768px){.tpg-el-main-wrapper .list-layout4 .rt-holder .tpg-el-image-wrap{flex:0 0 150px;height:120px}.rt-tpg-container .list-layout4 .post-right-content{flex:inherit;flex-grow:1;padding:0 0 0 20px;text-align:left}.tpg-el-main-wrapper .list-layout-wrapper.list-layout4 .rt-holder .rt-el-content-wrapper{align-items:flex-start!important}.tpg-el-main-wrapper .list-layout4 [class*=rt-col]{margin-bottom:30px}}@media (max-width:500px){.tpg-el-main-wrapper .list-layout4 .rt-holder .tpg-el-image-wrap{flex:0 0 100px;height:100px}}.rt-tpg-container .list-layout5 .post-right-content{display:block;overflow:hidden;padding-left:20px}.tpg-el-main-wrapper.list-layout5-2-main .list-layout5 .post-right-content{padding-left:0;padding-right:20px}.rt-tpg-container .list-layout5 .rt-holder .rt-img-holder{border-radius:50%;flex:0 0 100px;height:100px;margin-top:8px}.rt-tpg-container .list-layout5 .entry-title-wrapper .entry-title{font-size:18px}.tags-visibility-default .list-layout5 .rt-el-post-meta{color:#a5a6aa;font-size:14px}.list-layout5 .entry-title-wrapper .tpg-separate-category .categories-links{color:#7a7e83;font-size:14px;font-weight:500}.list-layout5 .entry-title-wrapper .tpg-separate-category .categories-links a{color:inherit}.tpg-el-main-wrapper .list-layout5 [class*=rt-col]{padding-bottom:30px}.rt-tpg-container .list-layout5 .post-right-content{flex:1}.grid_hover_layout_wrapper .rt-row-inner{display:flex;flex-wrap:wrap}.rt-tpg-container .rt-grid-hover-item .entry-title-wrapper .entry-title{font-size:20px;line-height:1.4}.tpg-el-main-wrapper .rt-grid-hover-item .rt-holder .rt-el-content-wrapper{height:100%;overflow:hidden;padding:0;position:relative;width:100%}.rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content{bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:0;min-height:56px;padding:30px 30px 15px;position:absolute;right:0;transition:1.2s;width:100%;z-index:1}.rt-tpg-container.slider-layout8-main .rt-grid-hover-item .rt-holder .grid-hover-content{border:20px solid transparent;max-height:100%;padding:5px 20px}.rt-tpg-container.slider-layout8-main .rt-grid-hover-item .rt-holder:hover .grid-hover-content{border-color:hsla(0,0%,100%,.5)}.rt-tpg-container .rt-grid-hover-item .rt-holder:hover .grid-hover-content{padding-bottom:15px}.rt-tpg-container .rt-grid-hover-item .rt-holder:hover .grid-hover-content>div:last-of-type{margin-bottom:0}.rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after,.rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before{background-color:rgba(0,0,0,.7);bottom:0;content:"";height:100%;left:0;position:absolute;right:0;transition:.4s ease-in-out;width:100%;z-index:-1}.rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after{background-color:rgba(0,0,0,.5)}.rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after,.rt-tpg-container .rt-grid-hover-item .rt-holder:hover .grid-hover-content:before{opacity:0;visibility:hidden}.rt-tpg-container .rt-grid-hover-item .rt-holder:hover .grid-hover-content:after{opacity:1;visibility:visible}.rt-tpg-container .rt-grid-hover-item .entry-title-wrapper .entry-title,.rt-tpg-container .rt-grid-hover-item .rt-el-post-meta,.rt-tpg-container .rt-grid-hover-item .rt-el-post-meta a,.rt-tpg-container .rt-grid-hover-item .rt-holder .tpg-el-excerpt{color:#fff}.grid_hover-layout11-main .rt-grid-hover-item .entry-title-wrapper .entry-title,.grid_hover-layout11-main .rt-grid-hover-item .rt-el-post-meta,.grid_hover-layout11-main .rt-grid-hover-item .rt-el-post-meta a,.grid_hover-layout11-main .rt-grid-hover-item .rt-holder .tpg-el-excerpt,.slider-layout9-main .rt-grid-hover-item .entry-title-wrapper .entry-title,.slider-layout9-main .rt-grid-hover-item .rt-el-post-meta,.slider-layout9-main .rt-grid-hover-item .rt-el-post-meta a,.slider-layout9-main .rt-grid-hover-item .rt-holder .tpg-el-excerpt{color:#000}.grid_hover-layout11-main .rt-grid-hover-item .entry-title-wrapper .entry-title:hover,.rt-tpg-container .rt-grid-hover-item a:hover{color:var(--tpg-primary-color,#0d6efd)}.rt-tpg-container .rt-grid-hover-item .rt-holder .tpg-el-image-wrap{margin:0}.rt-grid-hover-item .tpg-el-image-wrap{background-color:#e4eaf1;height:100%}.grid-hover-overlay-type-fadein-on-hover .rt-tpg-container .rt-holder .grid-hover-content .entry-title-wrapper .entry-title:before{transition:.5s ease-in-out;width:0}.grid-hover-overlay-type-fadein-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content .entry-title-wrapper .entry-title:before{width:50%}.grid-hover-overlay-type-fadein-on-hover .rt-tpg-container .rt-holder .grid-hover-content{opacity:0;transition:.5s ease-in-out}.grid-hover-overlay-type-fadein-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{opacity:1}.grid-hover-overlay-type-fadeout-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{opacity:0}.grid-hover-overlay-type-slidein-on-hover .rt-tpg-container .rt-holder .grid-hover-content{left:-100%;transition:.5s ease-in-out}.grid-hover-overlay-type-slidein-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{left:0}.grid-hover-overlay-type-slideout-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{left:100%}.grid-hover-overlay-type-slidein-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before,.grid-hover-overlay-type-slideout-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before{transition:.5s ease-in-out}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before,.grid-hover-overlay-type-slidein-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before,.grid-hover-overlay-type-slideout-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before{background:var(--tpg-primary-color,#0d6efd);opacity:1;visibility:visible}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after,.grid-hover-overlay-type-slidein-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after,.grid-hover-overlay-type-slideout-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after{content:none}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .grid-hover-content,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .grid-hover-content{height:100%}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .grid-hover-content,.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .tpg-el-image-wrap,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .grid-hover-content,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .rt-img-holder{transition:all .5s}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper:hover .rt-img-holder img{transform:none!important}.grid-hover-overlay-type-zoomin-on-hover .rt-tpg-container .rt-holder .grid-hover-content,.grid-hover-overlay-type-zoomout-on-hover .rt-tpg-container .rt-holder .grid-hover-content{transition:.5s ease-in-out}.grid-hover-overlay-type-zoomin-on-hover .rt-tpg-container .rt-holder .grid-hover-content,.grid-hover-overlay-type-zoomout-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{opacity:0;transform:scale(0)}.grid-hover-overlay-type-zoomin-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{opacity:1;transform:scale(1)}.grid-hover-overlay-type-zoominall-on-hover .rt-tpg-container .rt-holder .grid-hover-content *,.grid-hover-overlay-type-zoomoutall-on-hover .rt-tpg-container .rt-holder .grid-hover-content *{transition:.4s ease-in-out!important}.grid-hover-overlay-type-zoominall-on-hover .rt-tpg-container .rt-holder .grid-hover-content *,.grid-hover-overlay-type-zoomoutall-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content *{opacity:0;transform:scale(0)}.grid-hover-overlay-type-zoominall-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content *{opacity:1;transform:scale(1)}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .grid-hover-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:0;transform:rotateY(-180deg)}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper:hover .grid-hover-content{-webkit-backface-visibility:visible;backface-visibility:visible;opacity:1;transform:rotateY(0deg)}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper:hover .rt-img-holder,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper:hover .grid-hover-content{opacity:0;transform:rotateY(180deg);visibility:hidden}.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .rt-img-holder{-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:0;transform:rotateY(-180deg)}.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper:hover .rt-img-holder{-webkit-backface-visibility:visible;backface-visibility:visible;opacity:1;transform:rotateY(0deg)}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .post-footer,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .rt-el-post-meta,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .rt-tpg-social-share,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .tpg-el-excerpt{margin-bottom:0;max-height:0;opacity:0;transition:.6s;visibility:hidden}.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout3 .rt-grid-hover-item .rt-holder .grid-hover-content>div,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .post-footer,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .rt-el-post-meta,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .rt-tpg-social-share,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .tpg-el-excerpt{margin-bottom:15px}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .rt-el-post-meta{transition:all .6s,opacity .6s}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .tpg-el-excerpt{transition:all .6s,opacity .5s}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .post-footer{transition:all .6s,opacity .4s}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .rt-tpg-social-share{transition:all .6s,opacity .3s}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .rt-el-post-meta{margin-bottom:15px;max-height:var(--tpg-meta-height,80px);opacity:1;visibility:visible}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .grid-hover-content>div:last-child{margin-bottom:0!important}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .tpg-el-excerpt{max-height:var(--tpg-excerpt-height,140px);opacity:1;visibility:visible}.rt-tpg-container .grid_hover_layout_wrapper .rt-holder:hover .rt-tpg-social-share{margin-bottom:15px;max-height:var(--tpg-share-height,50px);opacity:1;visibility:visible}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .post-footer{max-height:var(--tpg-footer-height,50px);opacity:1;visibility:visible}.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout3 .rt-grid-hover-item .rt-holder .post-footer,.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout3 .rt-grid-hover-item .rt-holder .rt-el-post-meta,.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout3 .rt-grid-hover-item .rt-holder .rt-tpg-social-share,.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout3 .rt-grid-hover-item .rt-holder .tpg-el-excerpt,.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout5 .rt-grid-hover-item .rt-holder .rt-el-post-meta{max-height:inherit;opacity:1;visibility:visible}.meta-visibility-default .rt-tpg-container .grid_hover-layout1 .rt-grid-hover-item .rt-holder .rt-el-post-meta{max-height:inherit}.rt-tpg-container .grid_hover-layout1 .rt-holder .tpg-el-image-wrap{height:300px}.grid-hover-overlay-height-full .rt-tpg-container .rt-content-loader .rt-grid-hover-item .rt-holder .grid-hover-content{min-height:100%}.hover-overlay-height-default .rt-tpg-container .grid_hover-layout1 .rt-grid-hover-item .rt-holder:hover .grid-hover-content,.hover-overlay-height-full .rt-tpg-container .rt-content-loader .rt-grid-hover-item .rt-holder:hover .grid-hover-content{min-height:100%;transition:.5s}.rt-tpg-container .grid_hover-layout1 .entry-title-wrapper .entry-title{font-size:20px;line-height:1.4}.meta-visibility-default .rt-tpg-container .grid_hover-layout2 .rt-grid-hover-item .rt-holder .rt-el-post-meta{margin-bottom:7px;max-height:inherit}.rt-tpg-container .grid_hover-layout2 .rt-holder .tpg-el-image-wrap img{height:300px}.rt-tpg-container .grid_hover-layout2 .rt-grid-hover-item .rt-holder .post-footer,.rt-tpg-container .grid_hover-layout2 .rt-grid-hover-item .rt-holder .tpg-el-excerpt,.tpg-el-main-wrapper .grid_hover-layout2 .rt-holder .rt-tpg-social-share{margin-bottom:0;max-height:0;overflow:hidden;transition:.6s}.tpg-el-main-wrapper .grid_hover-layout2 .rt-holder:hover .rt-tpg-social-share{margin-bottom:15px;max-height:50px}.rt-tpg-container .grid_hover-layout2 .rt-grid-hover-item .rt-holder:hover .post-footer{max-height:50px}.hover-overlay-height-full .rt-tpg-container .grid_hover-layout2 .rt-grid-hover-item .rt-holder:hover .grid-hover-content{min-height:100%}.rt-tpg-container .grid_hover-layout2 .rt-holder .grid-hover-content{justify-content:center;margin:15px;padding:20px;text-align:center;width:calc(100% - 30px)}.rt-tpg-container .grid_hover-layout3 .tpg-el-image-wrap{height:300px}.rt-tpg-container .grid_hover-layout3 .rt-grid-hover-item .rt-holder .grid-hover-content{justify-content:center;min-height:100%;padding:10px 30px;text-align:center}.tpg-title-border-show .rt-tpg-container .rt-holder .entry-title-wrapper .entry-title{margin-bottom:20px;position:relative}.tpg-title-border-show .rt-tpg-container .rt-holder .entry-title-wrapper .entry-title:before{background-color:#fff;bottom:-16px;content:"";height:2px;left:50%;position:absolute;transform:translateX(-50%);transition:.4s;width:50%}.tpg-title-border-show.title-alignment-justify .rt-tpg-container .rt-holder .entry-title-wrapper .entry-title:before,.tpg-title-border-show.title-alignment-left .rt-tpg-container .rt-holder .entry-title-wrapper .entry-title:before,.tpg-title-border-show.tpg-wrapper-align-left .rt-tpg-container .rt-holder .entry-title-wrapper .entry-title:before{left:0;transform:none}.tpg-title-border-show.title-alignment-right .rt-tpg-container .rt-holder .entry-title-wrapper .entry-title:before,.tpg-title-border-show.tpg-wrapper-align-right .rt-tpg-container .rt-holder .entry-title-wrapper .entry-title:before{right:0;transform:none}.elementor-template-full-width .site-content .ast-container{max-width:100%;padding:0;width:100%}.tpg-el-main-wrapper .tgp-cf-field-label{display:inline-block;float:none}.tpg-el-main-wrapper .tpg-cf-fields{display:block}.tpg-el-main-wrapper .tgp-cf-field-value{display:inline}.tpg-el-main-wrapper .tpg-cf-group-title{color:inherit}.tpg-acf-align-left .rt-tpg-container .acf-custom-field-wrap{text-align:left}.grid-layout6 .acf-custom-field-wrap,.list-layout4 .acf-custom-field-wrap,.tpg-acf-align-center .rt-tpg-container .acf-custom-field-wrap{text-align:center}.tpg-acf-align-right .rt-tpg-container .acf-custom-field-wrap{text-align:right}.tpg-el-main-wrapper .rt-content-loader .tpg-reset-margin{padding:0!important}.rttpg-block-postgrid{margin-left:-15px;margin-right:-15px}.edit-post-visual-editor .rttpg-block-postgrid{margin-left:0;margin-right:0}.page-template-rttpg_canvas,.page-template-rttpg_full_width{overflow-x:hidden}@media (max-width:767px){.tpg-el-main-wrapper.slider-layout11-main .rt-holder .tpg-el-excerpt,.tpg-el-main-wrapper.slider-layout12-main .rt-holder .tpg-el-excerpt{display:none}}.page-template-rttpg_canvas .rttpg-block-postgrid,.page-template-rttpg_full_width .rttpg-block-postgrid{margin-left:0;margin-right:0}.page-template-rttpg_canvas .rttpg-block-postgrid .rt-tpg-container,.page-template-rttpg_full_width .rttpg-block-postgrid .rt-tpg-container{margin-left:auto!important;margin-right:auto!important}@media (min-width:1200px){.rttpg-block-postgrid.alignfull{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw;width:100vw}.rttpg-block-postgrid.alignwide{margin-left:calc(50% - 40vw);margin-right:calc(50% - 40vw);max-width:80vw;width:80vw}.page-template-rttpg_canvas .rttpg-block-postgrid.alignfull,.page-template-rttpg_canvas .rttpg-block-postgrid.alignwide,.page-template-rttpg_full_width .rttpg-block-postgrid.alignfull,.page-template-rttpg_full_width .rttpg-block-postgrid.alignwide{margin-left:0;margin-right:0;max-width:100%;width:100%}.page-template-rttpg_canvas .rttpg-block-postgrid:not(.alignfull) .rt-tpg-container,.page-template-rttpg_full_width .rttpg-block-postgrid:not(.alignfull) .rt-tpg-container{max-width:1200px}html :where(.wp-block)[data-align=full]{max-width:none!important}}
1
+ body .tpg-el-main-wrapper .rt-grid-item{background:none;padding:0 15px}body .tpg-el-main-wrapper .offset-left,body .tpg-el-main-wrapper .offset-right{padding-bottom:0!important}.rt-tpg-container div a{text-decoration:none}.ast-single-post .entry-content .rt-tpg-container a{text-decoration:inherit}.rt-model-open,body.rt-model-open,html.rt-model-open{overflow:hidden}.rt-tpg-container img{height:auto;max-width:100%;-o-object-fit:cover;object-fit:cover}.rt-tpg-container *{box-sizing:border-box}.entry .rt-tpg-container .entry-title:before{content:none}.rt-tpg-container .entry{margin-top:0}.rt-tpg-container :after,.rt-tpg-container :before{box-sizing:border-box}.rt-container,.rt-container-fluid{margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px}.rt-container-fluid.slider-layout13-main{padding:0 0 15px}.rt-tpg-container ul{margin:0}img,svg{vertical-align:middle}a:link,a:visited{transition:all .31s ease}.clearfix:after,.clearfix:before,.rt-container-fluid:after,.rt-container-fluid:before,.rt-row:after,.rt-row:before{content:" ";display:table}.clearfix:after,.rt-container-fluid:after,.rt-container:after,.rt-row:after{clear:both}.rt-row{margin-left:-15px;margin-right:-15px}.grid-layout2.rt-row{margin-left:0;margin-right:0}.rt-row>.rt-row{padding-left:15px;padding-right:15px}.grid_hover6.rt-row{margin-left:-2px;margin-right:-2px}.rt-col-lg-1,.rt-col-lg-2,.rt-col-lg-3,.rt-col-lg-4,.rt-col-lg-5,.rt-col-lg-6,.rt-col-lg-7,.rt-col-lg-8,.rt-col-lg-9,.rt-col-lg-10,.rt-col-lg-11,.rt-col-lg-12,.rt-col-lg-24,.rt-col-md-1,.rt-col-md-2,.rt-col-md-3,.rt-col-md-4,.rt-col-md-5,.rt-col-md-6,.rt-col-md-7,.rt-col-md-8,.rt-col-md-9,.rt-col-md-10,.rt-col-md-11,.rt-col-md-12,.rt-col-md-24,.rt-col-sm-1,.rt-col-sm-2,.rt-col-sm-3,.rt-col-sm-4,.rt-col-sm-5,.rt-col-sm-6,.rt-col-sm-7,.rt-col-sm-8,.rt-col-sm-9,.rt-col-sm-10,.rt-col-sm-11,.rt-col-sm-12,.rt-col-sm-24,.rt-col-xs-1,.rt-col-xs-2,.rt-col-xs-3,.rt-col-xs-4,.rt-col-xs-5,.rt-col-xs-6,.rt-col-xs-7,.rt-col-xs-8,.rt-col-xs-9,.rt-col-xs-10,.rt-col-xs-11,.rt-col-xs-12,.rt-col-xs-24{min-height:1px;padding-left:15px;padding-right:15px;position:relative}.rt-col-xs-1,.rt-col-xs-2,.rt-col-xs-3,.rt-col-xs-4,.rt-col-xs-5,.rt-col-xs-6,.rt-col-xs-7,.rt-col-xs-8,.rt-col-xs-9,.rt-col-xs-10,.rt-col-xs-11,.rt-col-xs-12,.rt-col-xs-24{float:left}.rt-col-xs-24{width:20%}.rt-col-xs-12{width:100%}.rt-col-xs-11{width:91.66666667%}.rt-col-xs-10{width:83.33333333%}.rt-col-xs-9{width:75%}.rt-col-xs-8{width:66.66666667%}.rt-col-xs-7{width:58.33333333%}.rt-col-xs-6{width:50%}.rt-col-xs-5{width:41.66666667%}.rt-col-xs-4{width:33.33333333%}.rt-col-xs-3{width:25%}.rt-col-xs-2{width:16.66666667%}.rt-col-xs-1{width:8.33333333%}#rt-main{margin:35px auto}.rt-tpg-container h3.entry-title{line-height:1.25;margin:0 0 12px}.rt-tpg-container .offset-small-wrap .rt-holder .overlay{min-height:60px!important}.rt-tpg-container .offset-small-wrap .rt-holder .rt-img-responsive{height:auto;-o-object-fit:cover;object-fit:cover;width:100%}.rt-tpg-container .offset-small-wrap .rt-col-md-6 .rt-holder .rt-img-responsive{height:auto}.rt-tpg-container .offset-small-wrap .rt-holder .overlay h3 a{-webkit-line-clamp:1!important;-webkit-box-orient:vertical;display:-webkit-box!important;overflow:hidden!important;text-overflow:ellipsis!important}.rt-tpg-container .offset-big .post-meta-user.above_title{margin-top:15px}.rt-tpg-container .offset-big .post-meta-user.above_title+h3.entry-title{margin-top:0}.rt-tpg-container .offset-big h3.entry-title{margin:20px 0 15px}.rt-tpg-container .offset-big .cat-above-title{margin-bottom:-15px;padding-top:10px}.rt-tpg-container .owl-controls .owl-dots{margin-top:15px}.rt-popup-content .rt-tpg-container i{margin-right:5px}.rt-popup-content ol,.rt-popup-content ul{list-style-position:inside}.paginationjs{box-sizing:initial;font-family:Marmelad,Lucida Grande,Arial,Hiragino Sans GB,Georgia,sans-serif;font-size:14px;line-height:1.6}.paginationjs:after{clear:both;content:" ";display:table}.paginationjs .paginationjs-pages{float:left}.paginationjs .paginationjs-pages ul{float:left;margin:0;padding:0}.paginationjs .paginationjs-go-button,.paginationjs .paginationjs-go-input,.paginationjs .paginationjs-nav{float:left;font-size:14px;margin-left:10px}.paginationjs .paginationjs-pages li{border:1px solid #aaa;border-right:none;float:left;list-style:none}.paginationjs .paginationjs-pages li>a{background:#fff;color:#333;display:block;font-size:14px;height:28px;line-height:28px;min-width:30px;text-align:center;text-decoration:none}.paginationjs .paginationjs-pages li:hover>a{background:var(--tpg-primary-color,#0d6efd);border-color:var(--tpg-primary-color,#0d6efd)!important;color:#fff!important}.paginationjs .paginationjs-pages li.active{border:none}.paginationjs .paginationjs-pages li.active>a{background:#aaa;color:#fff;height:30px;line-height:30px}.paginationjs .paginationjs-pages li.disabled>a{opacity:.3}.paginationjs .paginationjs-pages li.disabled>a:hover{background:0 0}.paginationjs .paginationjs-pages li:first-child,.paginationjs .paginationjs-pages li:first-child>a{border-radius:3px 0 0 3px}.paginationjs .paginationjs-pages li:last-child{border-radius:0 3px 3px 0;border-right:1px solid #aaa}.paginationjs .paginationjs-pages li:last-child>a{border-radius:0 3px 3px 0}.paginationjs .paginationjs-go-input>input[type=text]{box-sizing:initial;height:28px;padding:0;width:30px}.paginationjs .paginationjs-go-button>input[type=button],.paginationjs .paginationjs-go-input>input[type=text]{background:#fff;border:1px solid #aaa;border-radius:3px;box-shadow:none;font-size:14px;outline:0;text-align:center;vertical-align:baseline}.paginationjs .paginationjs-go-button>input[type=button]{color:#333;cursor:pointer;height:30px;line-height:28px;min-width:40px;padding:0 8px;vertical-align:middle\9}.paginationjs.paginationjs-theme-blue .paginationjs-go-input>input[type=text],.paginationjs.paginationjs-theme-blue .paginationjs-pages li{border-color:#289de9}.paginationjs .paginationjs-go-button>input[type=button]:hover{background-color:#f8f8f8}.paginationjs .paginationjs-nav{height:30px;line-height:30px}.paginationjs .paginationjs-go-button,.paginationjs .paginationjs-go-input{margin-left:5px\9}.paginationjs.paginationjs-small{font-size:12px}.paginationjs.paginationjs-small .paginationjs-pages li>a{font-size:12px;height:24px;line-height:24px;min-width:26px}.paginationjs.paginationjs-small .paginationjs-pages li.active>a{height:26px;line-height:26px}.paginationjs.paginationjs-small .paginationjs-go-input{font-size:12px}.paginationjs.paginationjs-small .paginationjs-go-input>input[type=text]{font-size:12px;height:24px;width:26px}.paginationjs.paginationjs-small .paginationjs-go-button{font-size:12px}.paginationjs.paginationjs-small .paginationjs-go-button>input[type=button]{font-size:12px;height:26px;line-height:24px;min-width:30px;padding:0 6px}.paginationjs.paginationjs-small .paginationjs-nav{font-size:12px;height:26px;line-height:26px}.paginationjs.paginationjs-big{font-size:16px}.paginationjs.paginationjs-big .paginationjs-pages li>a{font-size:16px;height:34px;line-height:34px;min-width:36px}.paginationjs.paginationjs-big .paginationjs-pages li.active>a{height:36px;line-height:36px}.paginationjs.paginationjs-big .paginationjs-go-input{font-size:16px}.paginationjs.paginationjs-big .paginationjs-go-input>input[type=text]{font-size:16px;height:34px;width:36px}.paginationjs.paginationjs-big .paginationjs-go-button{font-size:16px}.paginationjs.paginationjs-big .paginationjs-go-button>input[type=button]{font-size:16px;height:36px;line-height:34px;min-width:50px;padding:0 12px}.paginationjs.paginationjs-big .paginationjs-nav{font-size:16px;height:36px;line-height:36px}.paginationjs.paginationjs-theme-blue .paginationjs-pages li>a{color:#289de9}.paginationjs.paginationjs-theme-blue .paginationjs-pages li:hover>a{background:#e9f4fc}.paginationjs.paginationjs-theme-blue .paginationjs-pages li.active>a{background:#289de9;color:#fff}.paginationjs.paginationjs-theme-blue .paginationjs-pages li.disabled:hover>a{background:0 0}.paginationjs.paginationjs-theme-blue .paginationjs-go-button>input[type=button]{background:#289de9;border-color:#289de9;color:#fff}.paginationjs.paginationjs-theme-green .paginationjs-go-input>input[type=text],.paginationjs.paginationjs-theme-green .paginationjs-pages li{border-color:#449d44}.paginationjs.paginationjs-theme-blue .paginationjs-go-button>input[type=button]:hover{background-color:#3ca5ea}.paginationjs.paginationjs-theme-green .paginationjs-pages li>a{color:#449d44}.paginationjs.paginationjs-theme-green .paginationjs-pages li:hover>a{background:#ebf4eb}.paginationjs.paginationjs-theme-green .paginationjs-pages li.active>a{background:#449d44;color:#fff}.paginationjs.paginationjs-theme-green .paginationjs-pages li.disabled:hover>a{background:0 0}.paginationjs.paginationjs-theme-green .paginationjs-go-button>input[type=button]{background:#449d44;border-color:#449d44;color:#fff}.paginationjs.paginationjs-theme-yellow .paginationjs-go-input>input[type=text],.paginationjs.paginationjs-theme-yellow .paginationjs-pages li{border-color:#ec971f}.paginationjs.paginationjs-theme-green .paginationjs-go-button>input[type=button]:hover{background-color:#55a555}.paginationjs.paginationjs-theme-yellow .paginationjs-pages li>a{color:#ec971f}.paginationjs.paginationjs-theme-yellow .paginationjs-pages li:hover>a{background:#fdf5e9}.paginationjs.paginationjs-theme-yellow .paginationjs-pages li.active>a{background:#ec971f;color:#fff}.paginationjs.paginationjs-theme-yellow .paginationjs-pages li.disabled:hover>a{background:0 0}.paginationjs.paginationjs-theme-yellow .paginationjs-go-button>input[type=button]{background:#ec971f;border-color:#ec971f;color:#fff}.paginationjs.paginationjs-theme-red .paginationjs-go-input>input[type=text],.paginationjs.paginationjs-theme-red .paginationjs-pages li{border-color:#c9302c}.paginationjs.paginationjs-theme-yellow .paginationjs-go-button>input[type=button]:hover{background-color:#eea135}.paginationjs.paginationjs-theme-red .paginationjs-pages li>a{color:#c9302c}.paginationjs.paginationjs-theme-red .paginationjs-pages li:hover>a{background:#faeaea}.paginationjs.paginationjs-theme-red .paginationjs-pages li.active>a{background:#c9302c;color:#fff}.paginationjs.paginationjs-theme-red .paginationjs-pages li.disabled:hover>a{background:0 0}.paginationjs.paginationjs-theme-red .paginationjs-go-button>input[type=button]{background:#c9302c;border-color:#c9302c;color:#fff}.paginationjs.paginationjs-theme-red .paginationjs-go-button>input[type=button]:hover{background-color:#ce4541}.paginationjs .paginationjs-pages li.paginationjs-next{border-right:1px solid\9}.paginationjs .paginationjs-go-input>input[type=text]{line-height:28px\9;vertical-align:middle\9}.paginationjs.paginationjs-big .paginationjs-pages li>a{line-height:36px\9}.paginationjs.paginationjs-big .paginationjs-go-input>input[type=text]{height:36px\9;line-height:36px\9}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li:not(.paginationjs-next):not(.paginationjs-prev){display:none}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li{color:#fff}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li>a{background-color:var(--tpg-primary-color,#0d6efd);color:#fff}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li:hover a{background-color:var(--tpg-secondary-color,#0654c4)}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li.paginationjs-page:nth-child(2){display:inline-block;pointer-events:none;position:relative}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li.paginationjs-page:nth-child(2) a{pointer-events:none;text-indent:-99999px}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li.paginationjs-page:nth-child(2):before{content:"\f100";font-family:Font Awesome\ 5 Free;font-weight:900;left:50%;opacity:.5;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:99}.ajax-pagination-type-next-prev-yes .rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs ul li.paginationjs-prev+li{display:none!important}.rt-tpg-container button{border:none;padding:10px 15px}.rt-tpg-container .rt-tgp-load-more button{background:#8e8e8e;border-radius:4px}.rt-tpg-container .tpg-wc-product-filter{margin-bottom:15px;padding-right:15px;text-align:right}.rt-img-holder>a{display:block;text-align:center}.rt-img-responsive{display:block;height:auto;max-width:100%;transition:.4s ease-in-out}@media (max-width:991px){.rt-img-holder>a,.rt-img-responsive{width:100%}}.rt-tpg-container .no-margin{margin:0!important;padding:0!important}span.more-loading{background:url(../images/loading.gif) 100% no-repeat;display:inline-block;padding-right:20px}.rt-tgp-load-more,.rt-tgp-scroll-load-more{display:block;margin:30px 0 20px;text-align:center}.post-meta-tags,.post-meta-user{font-size:95%;line-height:1.5;margin-bottom:15px;padding:0}.post-meta-tags span,.post-meta-user span{display:inline-block;padding-right:8px}.post-meta-tags span.rt-separator,.post-meta-user span.rt-separator{display:inline-block;padding-right:5px}.post-meta-user span.comment-link{float:right;padding-right:0;text-align:right}.rt-holder .entry-title a{color:#000}.rt-tpg-container .rt-holder .post-meta.center .read-more{float:none}.rt-tpg-container .rt-holder .post-meta .rt-tpg-social-share{display:block;float:none;margin-bottom:15px;text-align:left;width:100%}.rt-tpg-container .post-tags-links .fa-tags{font-size:12px!important;font-weight:900!important}.rt-tpg-container .rt-holder .post-meta.center .rt-tpg-social-share,.rt-tpg-container .rt-holder .post-meta.right .rt-tpg-social-share{text-align:left}.rt-tpg-container .rt-holder .read-more a{display:inline-block;font-size:15px;line-height:1.5}.rt-tpg-container .rt-holder .tpg-excerpt{margin-bottom:10px}.rt-tpg-container .rt-holder .tpg-excerpt iframe{max-height:250px;width:100%}.rt-tpg-container .tpg-iso-filter{margin:15px 0 45px;text-align:center}.rt-tpg-container .tpg-iso-filter input[type=text]{border-radius:3px;display:inline-block;margin-left:4px;padding:12px 10px}.rt-tpg-container .tpg-iso-filter>div{display:inline-block}.rt-tpg-container .rt-tpg-isotope-buttons .selected{background:var(--tpg-primary-color,#0d6efd)}.rt-tpg-container .rt-tpg-isotope-buttons button{background:#8e8e8e;border:none;border-radius:3px;box-shadow:none!important;color:#fff;font-size:15px;font-weight:400;line-height:1.8;margin:4px;outline:0;padding:8px 20px;text-shadow:none!important;text-transform:none}.rt-tpg-container .tpg-pre-loader{overflow:hidden;position:relative}.rt-tpg-container .hentry:not(.offset-item){margin-bottom:0!important}.rt-tpg-container .rt-loading-overlay{background-color:#fff;height:100%;left:0;opacity:0;position:absolute;top:0;visibility:hidden;width:100%;z-index:10}.rt-tpg-container .rt-loading{color:var(--tpg-primary-color,#0d6efd);left:50%;margin-left:-16px;opacity:0;position:absolute;top:40%;visibility:hidden;z-index:2}.rt-tpg-container .tpg-pre-loader .rt-loading-overlay{opacity:.8;visibility:visible}.tpg-carousel-main .tpg-pre-loader .rt-loading-overlay{opacity:1}.rt-tpg-container .tpg-pre-loader .rt-loading{opacity:1;visibility:visible}.rt-ball-clip-rotate{color:#fff;display:block;font-size:0;height:32px;width:32px}.rt-ball-clip-rotate,.rt-ball-clip-rotate>div{box-sizing:border-box;position:relative}.rt-ball-clip-rotate>div{animation:ball-clip-rotate .75s linear infinite;background-color:currentColor;background:transparent;border-radius:100%;border:2px solid;border-bottom:2px solid transparent;display:inline-block;float:none;height:32px;width:32px}.rt-layout-filter-container.rt-clear:after{clear:both;content:"";display:block}.rt-clear::-ms-ticks-after,.rt-clear:after{clear:both;content:"";display:block}.rt-layout-filter-container{font-size:0;line-height:0;margin:-5px -5px 30px;padding:0}.rt-filter-item-wrap.rt-filter-button-wrap span.rt-filter-button-item{border:1px solid;display:inline-block;margin:4px;padding:8px 10px;transition:.4s}.rt-filter-item-wrap.rt-filter-button-wrap span.rt-filter-button-item.selected,.rt-filter-item-wrap.rt-filter-button-wrap span.rt-filter-button-item:hover{background:#222;color:#b4b4b4}.tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap{padding-right:82px}.tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap .filter-left-wrapper{margin-right:0;position:static;width:100%}.tpg-header-wrapper.carousel{align-items:center;display:flex;margin-bottom:30px;overflow:hidden}.section-title-style-default .tpg-header-wrapper.carousel,.section-title-style-style1 .tpg-header-wrapper.carousel{min-height:36px}.tpg-header-wrapper.carousel .swiper{overflow:hidden}.section-title-style-style2 .tpg-header-wrapper.carousel .swiper,.section-title-style-style3 .tpg-header-wrapper.carousel .swiper{height:51px;margin-bottom:-.5px}.tpg-header-wrapper.carousel .swiper .swiper-navigation{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:9}.tpg-header-wrapper.carousel .swiper .swiper-button-next,.tpg-header-wrapper.carousel .swiper .swiper-button-prev{margin-top:0;top:0}.tpg-header-wrapper.carousel .tpg-widget-heading-wrapper{flex:1;margin:0;padding-right:10px}.tpg-header-wrapper.carousel .rt-layout-filter-container{flex:0 0 60%;margin:0;max-width:60%}.tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper{box-sizing:content-box;display:flex;height:100%;margin:0;position:relative;transition-property:transform;width:100%;z-index:1}.tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide{align-items:center;border:none;color:#212121;display:flex;font-size:15px;height:auto;justify-content:center;margin:0;padding:0 10px;position:relative;text-align:center;text-transform:none;white-space:nowrap;width:auto}.section-title-style-style2 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:before,.section-title-style-style3 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:before{border-bottom:7px solid var(--tpg-primary-color,#0d6efd);border-left:7px solid transparent;border-right:7px solid transparent;border-top:0 solid transparent;bottom:0;content:"";height:0;left:50%;opacity:0;position:absolute;transform:translateX(-50%);transition:all .3s ease;visibility:hidden;width:0}.section-title-style-style2 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide.selected:before,.section-title-style-style2 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:hover:before,.section-title-style-style3 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide.selected:before,.section-title-style-style3 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:hover:before{opacity:1;visibility:visible}.tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide.selected,.tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:hover{color:var(--tpg-primary-color,#0d6efd)}.tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap .filter-right-wrapper,.tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap .rt-author-filter{display:none}.tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.swiper-wrapper{letter-spacing:0}.tpg-header-wrapper.carousel .swiper-button-next.swiper-button-disabled,.tpg-header-wrapper.carousel .swiper-button-prev.swiper-button-disabled{opacity:1}.tpg-header-wrapper.carousel .swiper-button-next.swiper-button-disabled:after,.tpg-header-wrapper.carousel .swiper-button-prev.swiper-button-disabled:after{opacity:.35}.filter-button-border-enable .tpg-header-wrapper.carousel .rt-layout-filter-container{border:1px solid #ddd;border-radius:3px}.filter-button-border-enable .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide{padding:6px 15px;white-space:nowrap}.filter-button-border-enable .tpg-header-wrapper.carousel .swiper .swiper-navigation{right:3px}.filter-nex-prev-btn-hidden .tpg-header-wrapper.carousel .swiper .swiper-navigation{display:none}.filter-nex-prev-btn-hidden .tpg-header-wrapper.carousel .rt-layout-filter-container .rt-filter-wrap{margin-right:0;padding-right:0}@media (max-width:767px){.tpg-header-wrapper.carousel{display:block}.tpg-header-wrapper.carousel .rt-layout-filter-container{margin-bottom:8px;margin-left:-9px;margin-top:10px;max-width:100%;position:relative}}.rt-filter-item-wrap.rt-filter-button-wrap span.rt-filter-button-item.selected,.rt-filter-item-wrap.rt-filter-button-wrap span.rt-filter-button-item:hover{background:none;color:#000}.rt-filter-item-wrap.rt-order-by-action,.rt-filter-item-wrap.rt-sort-order-action{float:right}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap{color:#666;cursor:pointer;display:inline-block;font-size:13px;letter-spacing:.1em;line-height:1.55;margin:4px;padding:7px 10px;position:relative;text-transform:uppercase;transition:background-color .2s ease-in-out,color .2s ease-in-out,border-color .2s ease-in-out;-webkit-transition:background-color .2s ease-in-out,color .2s ease-in-out,border-color .2s ease-in-out;-ms-transition:background-color .2s ease-in-out,color .2s ease-in-out,border-color .2s ease-in-out;user-select:none;-webkit-user-select:none;-moz-user-select:none;vertical-align:top}.rt-layout-filter-container .rt-filter-wrap .rt-filter-button-wrap{margin-left:0;margin-top:0;padding:0}@media (max-width:767px){.rt-layout-filter-container .rt-filter-wrap .rt-filter-button-wrap{display:inline}}.rt-layout-filter-container .rt-filter-wrap .rt-filter-button-item .rt-filter-sub-tax{display:none}.rt-layout-filter-container .rt-filter-sub-tax.sub-button-group{margin:0 4px}.rt-layout-filter-container .rt-filter-sub-tax.sub-button-group .rt-filter-button-item{cursor:pointer}.rt-layout-filter-container>.rt-filter-sub-tax.sub-button-group>span{border:1px solid;display:inline-block;font-size:13px;letter-spacing:.1em;line-height:1.55;margin:4px;padding:8px 10px;text-transform:uppercase;vertical-align:top}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap{border:1px solid;color:#666;position:relative}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap:hover{border-color:#222;color:#222}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-sort-order-action:hover{border-color:#222}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap>.rt-filter-dropdown-default{display:block;max-width:135px;min-width:135px;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap .rt-filter-dropdown{background-color:#222;border:none;border-top:1px solid transparent;display:block;left:-1px;margin-top:1px;opacity:0;position:absolute;right:-1px;top:100%;transition:opacity .3s ease-in-out,visibility .3s ease-in-out;-webkit-transition:opacity .3s ease-in-out,visibility .3s ease-in-out;-ms-transition:opacity .3s ease-in-out,visibility .3s ease-in-out;visibility:hidden;z-index:20}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap:hover .rt-filter-dropdown{border-top-color:#000}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap .rt-filter-dropdown .rt-filter-dropdown-item.selected{background:#000}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap.active-dropdown .rt-filter-dropdown{opacity:1;visibility:visible}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap.active-dropdown .rt-arrow-angle{transform:rotate(180deg);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg)}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap .rt-filter-dropdown .rt-filter-dropdown-item{border-bottom:1px solid rgba(0,0,0,.2);color:#b4b4b4;display:block;padding:10px 15px 9px;text-align:center}.rt-filter-dropdown-default .sub-dropdown-wrap,.rt-filter-dropdown-item .sub-dropdown-wrap{display:none!important}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap .rt-arrow-angle{backface-visibility:hidden;-webkit-backface-visibility:hidden;letter-spacing:0;transition:transform .2s ease-in-out;-webkit-transition:transform .2s ease-in-out;-ms-transition:transform .2s ease-in-out}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-sort-order-action{border:1px solid;color:#666;min-width:38px;position:relative}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow{position:static}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow>span{backface-visibility:hidden;-webkit-backface-visibility:hidden;display:block;height:8px;left:50%;margin-left:-7px;margin-top:-4px;position:absolute;top:50%;transition:transform .2s ease-in-out;-webkit-transition:transform .2s ease-in-out;-ms-transition:transform .2s ease-in-out;width:14px}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow[data-sort-order=ASC]>span{transform:rotate(180deg);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg)}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow>span:before{left:3px;transform:rotate(-45deg);-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg)}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow>span:after,.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow>span:before{background-color:#666;content:"";display:block;height:9px;position:absolute;top:0;transition:background-color .2s ease-in-out;-webkit-transition:background-color .2s ease-in-out;-ms-transition:background-color .2s ease-in-out;width:2px}.rt-filter-item-wrap.rt-sort-order-action .rt-sort-order-action-arrow>span:after{left:9px;transform:rotate(45deg);-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg)}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-search-filter-wrap{float:right;padding:0;position:relative}.rt-filter-item-wrap.rt-search-filter-wrap input.rt-search-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid #666;border-radius:0;color:#666;font-family:Dosis,sans-serif;font-size:12px;font-weight:600;height:39px;padding:11px}.rt-filter-item-wrap.rt-search-filter-wrap input.rt-search-input:focus{box-shadow:none;outline:none}.rt-filter-item-wrap.rt-search-filter-wrap span.rt-action{cursor:pointer;display:inline-block;font-size:15px;position:absolute;right:5px;top:6px}.rt-filter-item-wrap.rt-search-filter-wrap .rt-search-input::-webkit-input-placeholder{font-family:Dosis,sans-serif;font-size:12px;font-weight:600}.rt-filter-item-wrap.rt-search-filter-wrap .rt-search-input::-moz-placeholder{font-family:Dosis,sans-serif;font-size:12px;font-weight:600}.rt-filter-item-wrap.rt-search-filter-wrap .rt-search-input:-ms-input-placeholder{font-family:Dosis,sans-serif;font-size:12px;font-weight:600}.rt-filter-item-wrap.rt-search-filter-wrap .rt-search-input:-moz-placeholder{font-family:Dosis,sans-serif;font-size:12px;font-weight:600}@media (max-width:600px){.rt-filter-item-wrap.rt-tax-filter.rt-filter-dropdown-wrap{display:block;margin-bottom:10px}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap.rt-filter-dropdown-wrap>.rt-filter-dropdown-default{margin:0 auto}}.rt-tpg-social-share.a{position:relative}body>.rt-tooltip{background:#666;border-radius:3px;border-width:2px;-o-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa;color:#fff;font-size:100%;opacity:0;padding:5px 10px;pointer-events:none;position:absolute;transition:opacity 1s ease-in-out;z-index:9999}body>.rt-tooltip .rt-tooltip-content{font-size:90%}body>.rt-tooltip,body>.rt-tooltip .rt-tooltip-bottom:after{background:#000;border-radius:2px}body>.rt-tooltip .rt-tooltip-bottom{bottom:-16px;height:18px;left:50%;margin-left:-32px;overflow:hidden;position:absolute;width:70px}body>.rt-tooltip .rt-tooltip-bottom:after{tranform:rotate(45deg);content:"";height:25px;left:20px;position:absolute;top:-20px;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:25px}.rt-tpg-container .rt-holder .rt-img-holder{overflow:hidden;position:relative}.rt-tpg-container .rt-holder .tpg-el-image-wrap{margin:-15px -16px 15px}.rt-tpg-container .list-behaviour .rt-holder .tpg-el-image-wrap{margin:0}.rt-tpg-container .img_zoom_out .rt-holder .rt-img-holder img:not(.avatar),.rt-tpg-container .rt-holder:hover .rt-img-holder img:not(.avatar){transform:scale(1.1)}.rt-tpg-container .img_no_effect .rt-holder:hover .rt-img-holder img,.rt-tpg-container .img_zoom_out .rt-holder:hover .rt-img-holder img{transform:scale(1)}.rt-tpg-container .rt-holder .rt-detail{padding:15px 15px 0}.rt-tpg-container .layout2 .rt-holder .rt-detail,.rt-tpg-container .layout3 .rt-holder .rt-detail,.rt-tpg-container .offset01 .rt-detail,.rt-tpg-container .offset02 .rt-holder .rt-detail{padding:0}.rt-tpg-container .offset01 .rt-detail,.rt-tpg-container .offset02 .rt-holder .rt-detail{padding-left:5px}.rt-tpg-container .entry-title-wrapper .entry-title{font-size:26px;font-weight:500;line-height:1.3;margin:0 0 18px;padding-bottom:2px}@media (max-width:767px){.rt-tpg-container .entry-title-wrapper .entry-title{font-size:20px;margin:0 0 15px}}.rt-tpg-container .rt-holder .rt-detail .entry-title-wrapper{margin-bottom:15px}.rt-tpg-container .rt-detail .tpg-excerpt-inner .acf-custom-field-wrap{padding-top:15px}.rt-tpg-container .list-layout2 .rt-detail .tpg-excerpt-inner,.rt-tpg-container .list-layout3 .rt-detail .tpg-excerpt-inner{margin-bottom:0}.rt-tpg-container .rt-holder .rt-detail .post-meta{line-height:25px;overflow:hidden}.rt-tpg-container .rt-holder .rt-detail .read-more a{align-items:center;background-color:hsla(0,0%,100%,.7);border:1px solid #e5e5e5;color:#646464;display:inline-flex;flex-direction:row;flex-wrap:wrap;font-size:15px;justify-content:left;line-height:1.8;overflow:hidden;padding:6px 20px}.rt-tpg-container .rt-holder .rt-detail .read-more a:hover{background-color:#fff;border-color:var(--tpg-primary-color,#0d6efd);color:var(--tpg-primary-color,#0d6efd)}.rt-tpg-container .rt-grid-hover-item .rt-detail .read-more a{border-color:hsla(0,0%,100%,.7)}.rt-tpg-container .rt-grid-hover-item .rt-detail .read-more a:hover{border-color:#fff}.rt-tpg-container .rt-holder .rt-detail .read-more a{color:#1a1a1a}.rt-tpg-container .rt-holder .rt-detail .post-meta.right{text-align:right}.rt-tpg-container .rt-holder .rt-detail .post-meta.center{text-align:center}@keyframes ball-scale-multiple{0%{opacity:0;transform:scale(0)}5%{opacity:.75}to{opacity:0;transform:scale(1)}}@keyframes ball-clip-rotate{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.rt-container-fluid{position:relative}#bottom-script-loader{background:hsla(0,0%,100%,.95);height:calc(100% + 60px);margin:-30px;position:absolute;width:calc(100% + 60px);z-index:999}#bottom-script-loader .rt-ball-clip-rotate{color:var(--tpg-primary-color,#0d6efd);margin-right:-16px;position:absolute;right:50%;top:80px;z-index:2}.tpg-widget-heading-wrapper{display:flex;margin-bottom:30px;position:relative}.tpg-widget-heading-wrapper .tpg-widget-heading{font-size:30px;line-height:1;margin-bottom:-1px!important;margin-top:0;padding-right:15px;padding-top:0;position:relative}.search .tpg-widget-heading-wrapper .tpg-widget-heading{line-height:1.5}@meia (max-width: 767px){.tpg-widget-heading-wrapper .tpg-widget-heading{line-height:1.2}}.tpg-widget-heading-wrapper.center .tpg-widget-heading{margin:0;padding:0}.tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading:before{background-color:var(--tpg-primary-color,#0d6efd);border-radius:50%;content:"";display:inline-block;height:8px;margin-right:7px;margin-top:-4px;position:absolute;right:-7.5px;top:50%;width:8px}.tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line.line-left,.tpg-widget-heading-wrapper.heading-style1.center .tpg-widget-heading:before{display:none}.tpg-widget-heading-wrapper.heading-style1.center .tpg-widget-heading-line.line-left{display:block;margin-left:0;margin-right:15px}.tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line,.tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line-left{-webkit-box-flex:1;align-self:center;border-color:#e5e5e5;border-style:solid;border-width:1px 0;flex-grow:1;height:4px;margin-left:15px}.tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading,.tpg-widget-heading-wrapper.heading-style3 .tpg-widget-heading{background-color:var(--tpg-primary-color,#0d6efd);color:#fff;line-height:1.4;margin-bottom:-.5px;padding:5px 15px}.tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading a,.tpg-widget-heading-wrapper.heading-style3 .tpg-widget-heading a{color:inherit}.tpg-widget-heading-wrapper.center{justify-content:center}.tpg-widget-heading-wrapper.right{flex-direction:row-reverse}.tpg-widget-heading-wrapper.right .tpg-widget-heading{padding-left:15px;padding-right:0}.tpg-widget-heading-wrapper.right .tpg-widget-heading:before{left:0;right:auto}.tpg-widget-heading-wrapper.right .tpg-widget-heading-line{margin-left:0;margin-right:15px}.tpg-el-main-wrapper .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:before,.tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:after{border-left:0 solid transparent;border-bottom:0 solid var(--tpg-primary-color,#0d6efd);border-right:12px solid transparent;border-top:12px solid var(--tpg-primary-color,#0d6efd);content:"";position:absolute;right:-11px;top:0}.section-title-align-right .tpg-el-main-wrapper .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:before,.section-title-align-right .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:after{left:-3px;right:auto;transform:skewX(225deg)}.section-title-align-center .tpg-el-main-wrapper .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:before,.tpg-widget-heading-wrapper.heading-style2.right .tpg-widget-heading:after{border-width:12px 0 0 12px;left:-11px;right:auto}.tpg-widget-heading-wrapper.heading-style2.center .tpg-widget-heading:after{content:none}.section-title-style-style2 .tpg-header-wrapper.carousel,.section-title-style-style2 .tpg-header-wrapper:not(.carousel) .tpg-widget-heading-wrapper,.section-title-style-style3 .tpg-header-wrapper.carousel,.section-title-style-style3 .tpg-header-wrapper:not(.carousel) .tpg-widget-heading-wrapper{border-bottom:2px solid var(--tpg-primary-color,#0d6efd)}.tpg-even,.tpg-full-height{display:flex;flex-wrap:wrap}@media (max-width:767px){.rt-content-loader .rt-holder,.tpg-even .rt-holder{flex-direction:column}}.rt-tpg-container .rt-pagination-wrap .rt-cb-page-prev-next>*{background-color:#bcbcbc;bottom:auto;color:#fff;cursor:pointer;display:inline-block;font-size:18px;height:30px;line-height:30px;margin-left:1px;margin-right:1px;text-align:center;transition:background-color .2s ease-in-out,color .2s ease-in-out,opacity .2s ease-in-out,visibility .2s ease-in-out;-webkit-transition:background-color .2s ease-in-out,color .2s ease-in-out,opacity .2s ease-in-out,visibility .2s ease-in-out;-ms-transition:background-color .2s ease-in-out,color .2s ease-in-out,opacity .2s ease-in-out,visibility .2s ease-in-out;width:30px}.rt-tpg-container .rt-pagination-wrap .rt-cb-page-prev-next>* i{line-height:1}.rt-tpg-container .rt-pagination-wrap .rt-cb-page-prev-next>.rt-disabled{opacity:.5;pointer-events:none}.rt-cb-page-prev-next{text-align:left}.rt-tpg-container .rt-pagination-wrap .rt-loadmore-style .rt-loadmore-loading{color:#fff;left:50%;margin-left:-32px;margin-top:-32px;opacity:0;position:absolute;top:50%;visibility:hidden}.rt-ball-scale-multiple.rt-2x,.rt-ball-scale-multiple.rt-2x>div{height:64px;width:64px}.rt-ball-scale-multiple,.rt-ball-scale-multiple>div{box-sizing:border-box;position:relative}.rt-ball-scale-multiple>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.rt-ball-scale-multiple>div:nth-child(2){animation-delay:.2s}.rt-ball-scale-multiple>div{animation:ball-scale-multiple 1s linear 0s infinite;border-radius:100%;height:32px;left:0;opacity:0;position:absolute;top:0;width:32px}.rt-tpg-container .rt-pagination-wrap{display:inline-block;margin-top:10px;text-align:center;width:100%}.tpg-el-main-wrapper .rt-pagination-wrap{display:flex;flex-direction:row;justify-content:center;margin-top:30px}.tpg-el-main-wrapper .rt-pagination-wrap .rt-pagination{margin:0}.rt-tpg-container .rt-pagination-wrap .rt-loadmore-style{cursor:pointer;position:relative;-moz-user-select:none;user-select:none;-webkit-user-select:none}.rt-tpg-container .rt-pagination-wrap .rt-cb-page-prev-next.rt-hidden-elm,.rt-tpg-container .rt-pagination-wrap .rt-infinite-action.rt-hidden-elm,.rt-tpg-container .rt-pagination-wrap .rt-loadmore-style.rt-hidden-elm,.rt-tpg-container .rt-pagination-wrap .rt-page-numbers.rt-hidden-elm{display:none!important}.rt-tpg-container .rt-pagination-wrap .rt-loadmore-style.rt-lm-loading .rt-loadmore-text{opacity:0;visibility:hidden}.rt-tpg-container .rt-pagination-wrap .rt-loadmore-style.rt-lm-loading .rt-loadmore-loading{opacity:1;visibility:visible}.rt-tpg-container .rt-pagination-wrap .rt-loadmore-btn{background-color:var(--tpg-primary-color,#0d6efd);color:#fff;display:inline-block;font-size:13px;letter-spacing:.1em;margin-top:30px;padding:9px 20px;text-decoration:none;text-transform:uppercase;transition:color .2s ease-in-out,background-color .2s ease-in-out;-webkit-transition:color .2s ease-in-out,background-color .2s ease-in-out;-ms-transition:color .2s ease-in-out,background-color .2s ease-in-out}.rt-tpg-container .rt-loadmore-btn:hover{background-color:var(--tpg-secondary-color,#0654c4)}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages{float:none;padding-bottom:.1px;padding-top:.1px}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers.rt-lm-loading{opacity:.5;pointer-events:none}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul{float:none;font-size:0;line-height:0;margin:-2px;text-align:center}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li{border:none;display:inline-block;float:none;font-size:16px;line-height:1.55;min-height:45px;min-width:48px;padding:2px}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li>a{border:1px solid #dee2e6;border-radius:3px;color:#212121;display:block;font-size:16px;font-weight:400;letter-spacing:0;line-height:45px;min-height:45px;min-width:48px;padding-left:8px;padding-right:8px;text-decoration:none}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li.active>a{background-color:var(--tpg-primary-color,#0d6efd);border-color:var(--tpg-primary-color,#0d6efd);color:#fff}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li.paginationjs-ellipsis{min-width:auto;padding:0}.rt-tpg-container .rt-pagination-wrap .rt-page-numbers .paginationjs .paginationjs-pages ul li.paginationjs-ellipsis a{background:none!important;border:none!important;color:#000!important;font-size:18px;min-width:auto;opacity:1;pointer-events:none!important}.rt-pagination{margin:30px 0;text-align:center}.rt-pagination .pagination-list{background:transparent;border-radius:4px;border-top:0;display:inline-block;padding-left:0}.rt-pagination .pagination-list a{box-shadow:none}.rt-pagination .pagination-list>li{display:inline-block;margin:2px}.rt-pagination .pagination-list>li>a,.rt-pagination .pagination-list>li>span{background-color:#fff;border:1px solid #ddd;border-radius:3px;color:#212121;display:block;line-height:1;margin-left:-1px;padding:13px 17px;position:relative;text-decoration:none;transition:.4s ease-in-out}.rt-pagination .pagination-list>li>a:focus,.rt-pagination .pagination-list>li>a:hover,.rt-pagination .pagination-list>li>span:focus,.rt-pagination .pagination-list>li>span:hover{background-color:var(--tpg-primary-color,#0d6efd);border-color:var(--tpg-primary-color,#0d6efd);color:#fff;z-index:2}.rt-pagination .pagination-list>.active>a,.rt-pagination .pagination-list>.active>a:focus,.rt-pagination .pagination-list>.active>a:hover,.rt-pagination .pagination-list>.active>span,.rt-pagination .pagination-list>.active>span:focus,.rt-pagination .pagination-list>.active>span:hover{background-color:var(--tpg-primary-color,#0d6efd);border-color:var(--tpg-primary-color,#0d6efd);color:#fff;cursor:default;z-index:3}.rt-pagination .pagination-list>.disabled>a,.rt-pagination .pagination-list>.disabled>a:focus,.rt-pagination .pagination-list>.disabled>a:hover,.rt-pagination .pagination-list>.disabled>span,.rt-pagination .pagination-list>.disabled>span:focus,.rt-pagination .pagination-list>.disabled>span:hover{background-color:#fff;border-color:#ddd;color:#212121;cursor:not-allowed}.rt-tpg-container .swiper-pagination-bullet{background:#d6d6d6;height:10px;opacity:1;width:10px}.rt-tpg-container .swiper-wrapper{padding-bottom:45px}.rt-tpg-container.slider-layout13-main .swiper-wrapper{padding-bottom:0}.rt-tpg-container .swiper-pagination-bullets.swiper-pagination-horizontal{bottom:0}.rt-tpg-container .swiper-pagination-bullet.swiper-pagination-bullet-active-main{background:#007bff}.rt-tpg-container>div{position:relative}.rt-tpg-container .slider-main-wrapper{opacity:0;position:relative}.rt-tpg-container .swiper-navigation .slider-btn{align-items:center;background-color:#fff;background-image:none;border:1px solid #e5e5e5;border-radius:3px;color:#2962ff;display:inline-flex;font-size:14px;height:32px;justify-content:center;position:absolute;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;width:34px}.rt-tpg-container .tpg-header-wrapper .swiper-navigation .slider-btn,.slider-arrow-position-top-left .rt-tpg-container .swiper-navigation .slider-btn,.slider-arrow-position-top-right .rt-tpg-container .swiper-navigation .slider-btn{position:static}.rt-tpg-container .swiper-navigation .slider-btn:hover{background-color:#2962ff;border-color:#2962ff;color:#fff}.rt-tpg-container .swiper-navigation .slider-btn:focus{box-shadow:none;outline:0}.rt-tpg-container .swiper-navigation .slider-btn.swiper-button-next{margin-left:3px}.rt-tpg-container .swiper-navigation .swiper-button-next:after,.rt-tpg-container .swiper-navigation .swiper-button-prev:after{font-size:inherit}.rt-tpg-container .tpg-cf-group-title{font-size:16px;margin-bottom:0!important}.rt-tpg-container .tpg-cf-fields{font-size:95%;line-height:1.6;margin-top:0}.tpg-el-main-wrapper .tpg-cf-wrap{margin:10px 0 0}.rt-tpg-container .tpg-cf-wrap:empty{margin:0}.act-label-style-inline .tgp-cf-field-label{margin-right:8px;min-width:inherit}.act-label-style-inline .tgp-cf-field-label:after{content:":"}.act-label-style-block .tgp-cf-field-label{display:block!important;float:none;margin-right:0;min-width:inherit}.act-label-style-block .tpg-cf-fields{display:block;margin-bottom:5px}.rt-tpg-container .rt-holder .tgp-cf-field-value *{color:inherit;display:inline;margin:0;transition:none}.isotope-term-no-post{min-height:30px}.isotope-term-no-post p{display:none;margin-bottom:0}.tpg-el-main-wrapper.loading{min-height:300px;transition:.4s}.tpg-el-main-wrapper.loading:before{animation:ball-clip-rotate .75s linear infinite;background:transparent;border:2px solid;border-bottom:2px solid transparent;border-radius:100%;color:red;display:inline-block;float:none;height:32px;left:50%;position:absolute;top:50%;width:32px;z-index:9999999999}.tpg-el-main-wrapper .rt-content-loader .offset-left [class*=rt-col]{padding-left:0;padding-right:0}.mfp-fade.mfp-bg{opacity:0;transition:all .15s ease-out}.mfp-fade.mfp-bg.mfp-ready{opacity:.8}.mfp-fade.mfp-bg.mfp-removing{opacity:0}.mfp-fade.mfp-wrap .mfp-content{opacity:0;transition:all .15s ease-out}.mfp-fade.mfp-wrap.mfp-ready .mfp-content{opacity:1}.mfp-fade.mfp-wrap .mfp-content figure{transform:scale(0);transition:all .15s ease-out}.mfp-fade.mfp-wrap.mfp-ready .mfp-content figure{transform:scale(1)}.mfp-fade.mfp-wrap.mfp-removing .mfp-content{opacity:0}.mfp-fade.mfp-wrap .mfp-content .mfp-figure:after{background:none;box-shadow:none}.tpg-shortcode-main-wrapper .even-grid-item,.tpg-shortcode-main-wrapper .masonry-grid-item{margin-bottom:30px}.tpg-shortcode-main-wrapper i{margin-right:5px}.tpg-shortcode-main-wrapper .product-more i{margin-right:0}.tpg-shortcode-main-wrapper .grid_hover1 .even-grid-item,.tpg-shortcode-main-wrapper .grid_hover1 .masonry-grid-item,.tpg-shortcode-main-wrapper .grid_hover2 .even-grid-item,.tpg-shortcode-main-wrapper .grid_hover2 .masonry-grid-item,.tpg-shortcode-main-wrapper .grid_hover3 .even-grid-item,.tpg-shortcode-main-wrapper .grid_hover3 .masonry-grid-item,.tpg-shortcode-main-wrapper .grid_hover4 .even-grid-item,.tpg-shortcode-main-wrapper .grid_hover4 .masonry-grid-item,.tpg-shortcode-main-wrapper .grid_hover5 .even-grid-item,.tpg-shortcode-main-wrapper .grid_hover5 .masonry-grid-item,.tpg-shortcode-main-wrapper .list_layout1 .even-grid-item,.tpg-shortcode-main-wrapper .list_layout1 .masonry-grid-item{margin-bottom:0}.layout3 .rt-img-responsive{display:inline-block}.list_layout2 .post-meta-tags,.list_layout2 .post-meta-user{color:#a5a6aa;font-size:14px}.rt-content-loader.layout14 .post-meta-tags,.rt-content-loader.layout14 .post-meta-user{margin-bottom:0}.offset06 .post-meta-tags span,.offset06 .post-meta-user span{color:#a5a6aa;font-size:14px;font-weight:500;padding-right:15px}.offset06 .post-meta-tags span a,.offset06 .post-meta-user span a{color:#444}.offset06 .post-meta-tags span a:hover,.offset06 .post-meta-user span a:hover{color:#2962ff}.tpg-shortcode-main-wrapper .rt-detail .entry-title a{text-decoration:none}.categories-links{display:inline-block;line-height:1.3}.tpg-shortcode-main-wrapper .rt-holder .rt-detail .categories-links a{margin-bottom:5px}.tpg-shortcode-main-wrapper .rt-holder{overflow:hidden}.tpg-shortcode-main-wrapper .grid_hover6 .rt-grid-item{margin-bottom:4px;overflow:hidden;padding:0 2px}.tpg-shortcode-main-wrapper .grid_hover6 .rt-grid-item .post-img img,.tpg-shortcode-main-wrapper .grid_hover7 .rt-grid-item .post-img img{min-height:350px;-o-object-fit:cover;object-fit:cover}.grid_hover4 .rt-grid-item{padding:0}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-img-holder,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-img-holder,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-img-holder{overflow:hidden;position:relative}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-img-holder img,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-img-holder img,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-img-holder img{max-width:100%;transition:all 1.1s ease}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-img-holder:hover img,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-img-holder:hover img,.tpg-shortcode-main-wrapper .layout1 .img_zoom_out .rt-holder .rt-img-holder img,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-img-holder:hover img{transform:scale(1.1)}.tpg-shortcode-main-wrapper .layout1 .img_no_effect .rt-holder .rt-img-holder:hover img,.tpg-shortcode-main-wrapper .layout1 .img_zoom_out .rt-holder .rt-img-holder:hover img{transform:scale(1)}.tpg-shortcode-main-wrapper .carousel1 .rt-holder,.tpg-shortcode-main-wrapper .isotope1 .rt-holder,.tpg-shortcode-main-wrapper .layout1 .rt-holder{box-shadow:0 0 2px 0 rgba(0,0,0,.3);-webkit-box-shadow:0 0 2px 0 rgba(0,0,0,.3);-moz-box-shadow:0 0 2px 0 rgba(0,0,0,.3)}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail{background:#fff;padding:15px}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail h4,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail h4,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail h4{font-size:26px;font-weight:400;line-height:1.25;margin:0 0 18px}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail.rt-with-title h2,.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail.rt-with-title h3,.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail.rt-with-title h4,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail.rt-with-title h2,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail.rt-with-title h3,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail.rt-with-title h4,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail.rt-with-title h2,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail.rt-with-title h3,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail.rt-with-title h4{margin-bottom:15px}.tpg-shortcode-main-wrapper .rt-holder .rt-detail.rt-with-title{padding-top:0}.tpg-shortcode-main-wrapper .isotope1 .rt-detail .tpg-excerpt,.tpg-shortcode-main-wrapper .layout1 .rt-detail .tpg-excerpt{margin-bottom:20px}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail .post-meta,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail .post-meta,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail .post-meta{line-height:25px;overflow:hidden}.tpg-shortcode-main-wrapper .carousel1 .rt-holder .rt-detail .read-more a,.tpg-shortcode-main-wrapper .isotope1 .rt-holder .rt-detail .read-more a,.tpg-shortcode-main-wrapper .layout1 .rt-holder .rt-detail .read-more a{border:1px solid hsla(0,0%,80%,.4);color:#1a1a1a;display:inline-block;font-size:15px;line-height:1.8;padding:8px 20px}.tpg-shortcode-main-wrapper .rt-holder .rt-detail .post-meta.right{text-align:right}.tpg-shortcode-main-wrapper .rt-holder .rt-detail .post-meta.center{text-align:center}.tpg-img-circle .rt-img-holder img{border-radius:50%!important}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-img-holder{overflow:hidden;position:relative}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-img-holder img{max-width:100%;transition:all 1.1s ease}.tpg-shortcode-main-wrapper .layout2 .img_zoom_out .rt-holder .rt-img-holder img,.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-img-holder:hover img{transform:scale(1.1)}.tpg-shortcode-main-wrapper .layout2 .img_no_effect .rt-holder .rt-img-holder:hover img,.tpg-shortcode-main-wrapper .layout2 .img_no_effect .rt-holder .rt-img-holder img,.tpg-shortcode-main-wrapper .layout2 .img_zoom_out .rt-holder .rt-img-holder:hover img{transform:scale(1)}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail h4{font-size:26px;font-weight:400;line-height:1.25;margin:0 0 15px}.tpg-shortcode-main-wrapper .layout2 .rt-detail .tpg-excerpt{margin-bottom:20px}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail .read-more a{border-radius:5px;display:inline-block;line-height:1.8}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail .read-more{display:inline-block;width:100%}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail .read-more.right{text-align:right}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail .read-more.center{text-align:center}.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail .rt-tpg-social-share{margin-bottom:15px}@media (max-width:767px){.tpg-shortcode-main-wrapper .layout2 .rt-holder .rt-detail,.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail{padding:15px 0}}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail p{margin-bottom:20px}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail h4{font-size:26px;font-weight:400;line-height:1.25;margin:0 0 18px}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-img-holder .overlay{background:rgba(0,0,0,.7);display:block;height:100%;opacity:0;position:absolute;text-align:center;transition:all .3s ease-out 0s;width:100%;z-index:1}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail .read-more a{display:inline-block;line-height:1.8}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-img-holder,.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-img-holder>a.rounded img{border-radius:50%;overflow:hidden}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail .read-more{display:inline-block;width:100%}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail .read-more.right{text-align:right}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail .read-more.center{text-align:center}.tpg-shortcode-main-wrapper .layout3 .rt-holder .rt-detail .rt-tpg-social-share{margin-bottom:15px}.tpg-shortcode-main-wrapper .carousel2 .rt-holder,.tpg-shortcode-main-wrapper .isotope2 .rt-holder,.tpg-shortcode-main-wrapper .layout5 .rt-holder,.tpg-shortcode-main-wrapper .offset03 .rt-holder{overflow:hidden;position:relative}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay{background:rgba(235,0,0,.8);bottom:0;display:block;height:25%;left:0;min-height:150px;opacity:1;padding:20px;position:absolute;transition:all 1s ease;width:100%;z-index:1}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay .rt-detail,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay .rt-detail,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .rt-detail{color:#fff;max-height:0;opacity:0;padding:0;transition:all .8s ease-in-out;visibility:hidden}.tpg-shortcode-main-wrapper .carousel2 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .isotope2 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .layout5 .rt-holder:hover .overlay .rt-detail{max-height:450px;transition:all 1.2s ease-in-out .2s}.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay .rt-detail{color:#fff;padding:0 0 15px}.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay .rt-detail>:not(.post-meta-user){opacity:0;visibility:hidden}.tpg-shortcode-main-wrapper .offset03 .rt-holder:hover .overlay .rt-detail>:not(.post-meta-user){opacity:1;visibility:visible}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay .post-meta-user a{color:#fff}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h4,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h4,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h4,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h4{color:#fff;font-size:22px;font-weight:400;line-height:1.3;margin:0 0 10px}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay h4 a,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay h4 a,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay h4 a,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay h4 a{color:#fff}.tpg-shortcode-main-wrapper .carousel2 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .isotope2 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .layout5 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .offset03 .rt-holder:hover .overlay{height:100%;width:100%}.tpg-shortcode-main-wrapper .carousel2 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .isotope2 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .layout5 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .offset03 .rt-holder:hover .overlay .rt-detail{opacity:1;visibility:visible}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .offset03 .rt-holder .overlay .post-meta-user{display:block}.tpg-shortcode-main-wrapper .isotope2 .rt-holder .post-meta,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .post-meta .rt-tpg-social-share{text-align:center}.tpg-shortcode-main-wrapper .isotope2 .rt-holder .post-meta.left{text-align:left}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay>:not(.entry-title),.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .rt-detail,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay>:not(.entry-title){max-height:0;opacity:0;overflow:hidden;transition:.6s!important}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .overlay>:not(.entry-title),.tpg-shortcode-main-wrapper .layout5 .rt-holder:hover .overlay .rt-detail,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover .overlay>:not(.entry-title){max-height:300px;opacity:1}.tpg-shortcode-main-wrapper .layout5 .rt-holder{display:flex;min-height:250px}.tpg-shortcode-main-wrapper .layout5 .rt-holder .rt-img-responsive{height:100%;-o-object-fit:cover;object-fit:cover}.tpg-shortcode-main-wrapper .carousel3 .rt-holder,.tpg-shortcode-main-wrapper .isotope3 .rt-holder,.tpg-shortcode-main-wrapper .layout6 .rt-holder{position:relative}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay{align-items:center;background:rgba(0,0,0,.7);display:flex;flex-direction:column;height:100%;justify-content:center;opacity:0;padding:15px;position:absolute;text-align:center;text-decoration:none;transition:all .3s ease-out;width:100%;z-index:9}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .line,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .line,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .line{background-color:#fff;height:2px;margin:12px auto;min-height:2px;transition:all .5s ease-out;width:0}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay:hover .line,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay:hover .line,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay:hover .line{width:40%}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h4,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h4,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h2,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h3,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h4{color:#fff;font-size:22px;font-weight:400;line-height:1.25;margin:0 0 18px;padding-top:5%}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay h4 a,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay h4 a,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h2 a,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h3 a,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay h4 a{color:#fff}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta.left,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta.left,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta.left{text-align:left}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta.right,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta.right,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta.right{text-align:right}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .rt-tpg-social-share,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .rt-tpg-social-share,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .rt-tpg-social-share{float:none;text-align:center}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .read-more,.tpg-shortcode-main-wrapper .layout6 .rt-holder .read-more{float:none}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta-user,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta-user{color:#fff}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta-user p,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta-user p,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta-user p{margin-bottom:0}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .carousel3 .rt-holder:hover .overlay .tpg-excerpt,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .isotope3 .rt-holder:hover .overlay .tpg-excerpt,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta-user a,.tpg-shortcode-main-wrapper .layout6 .rt-holder:hover .overlay .tpg-excerpt{color:#fff}.tpg-shortcode-main-wrapper .carousel3 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .isotope3 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .layout6 .rt-holder:hover .overlay{opacity:1}.tpg-shortcode-main-wrapper .carousel4 .rt-holder,.tpg-shortcode-main-wrapper .isotope4 .rt-holder,.tpg-shortcode-main-wrapper .layout7 .rt-holder{position:relative}.tpg-shortcode-main-wrapper .carousel4 .rt-holder img,.tpg-shortcode-main-wrapper .isotope4 .rt-holder img,.tpg-shortcode-main-wrapper .layout7 .rt-holder img{opacity:.9;transition:opacity .35s}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay{align-items:center;background:rgba(0,0,0,.3);display:flex;flex-direction:column;height:100%;justify-content:center;left:0;padding:0 12px;position:absolute;top:0;width:100%}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay:hover,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay:hover,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay:hover{background:rgba(0,0,0,.5)}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay:before,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay:before,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay:before{border:2px solid #fff;bottom:20px;box-shadow:0 0 0 30px hsla(0,0%,100%,.2);content:"";left:20px;opacity:0;position:absolute;right:20px;top:20px;transform:scale3d(1.4,1.4,1);transition:opacity .35s,transform .35s}.tpg-shortcode-main-wrapper .carousel7 .rt-holder .cat-above-title,.tpg-shortcode-main-wrapper .carousel11 .rt-holder .post-info .cat-above-title,.tpg-shortcode-main-wrapper .carousel12 .rt-holder .post-info .cat-above-title{color:#fff;text-align:center}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .cat-above-title,.tpg-shortcode-main-wrapper .carousel5 .rt-holder .cat-above-title{color:#fff;margin-top:30px;opacity:0;text-align:center}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .cat-above-title a,.tpg-shortcode-main-wrapper .carousel5 .rt-holder .cat-above-title a,.tpg-shortcode-main-wrapper .carousel7 .rt-holder .cat-above-title a,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .cat-above-title *,.tpg-shortcode-main-wrapper .carousel12 .rt-holder .post-info .cat-above-title *{color:inherit}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .cat-above-title,.tpg-shortcode-main-wrapper .carousel5 .rt-holder:hover .cat-above-title{opacity:1}.tpg-shortcode-main-wrapper .carousel5 .rt-holder:hover .cat-above-title+.entry-title,.tpg-shortcode-main-wrapper .carousel11 .rt-holder .post-info .cat-above-title,.tpg-shortcode-main-wrapper .carousel12 .rt-holder .post-info .cat-above-title{padding-top:10px}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .cat-above-title+.entry-title{margin-top:10px}.tpg-shortcode-main-wrapper .carousel4 .rt-holder h2,.tpg-shortcode-main-wrapper .carousel4 .rt-holder h3,.tpg-shortcode-main-wrapper .carousel4 .rt-holder h4,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h2,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h3,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h4,.tpg-shortcode-main-wrapper .layout7 .rt-holder h2,.tpg-shortcode-main-wrapper .layout7 .rt-holder h3,.tpg-shortcode-main-wrapper .layout7 .rt-holder h4{color:#fff;font-size:22px;font-weight:400;line-height:1.25;margin:30% 0 10px;text-align:center;transition:transform .35s}.tpg-shortcode-main-wrapper .carousel4 .rt-holder h2 a,.tpg-shortcode-main-wrapper .carousel4 .rt-holder h3 a,.tpg-shortcode-main-wrapper .carousel4 .rt-holder h4 a,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h2 a,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h3 a,.tpg-shortcode-main-wrapper .isotope4 .rt-holder h4 a,.tpg-shortcode-main-wrapper .layout7 .rt-holder h2 a,.tpg-shortcode-main-wrapper .layout7 .rt-holder h3 a,.tpg-shortcode-main-wrapper .layout7 .rt-holder h4 a{color:#fff}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .tpg-excerpt,.tpg-shortcode-main-wrapper .carousel4 .rt-holder p,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .tpg-excerpt,.tpg-shortcode-main-wrapper .isotope4 .rt-holder p,.tpg-shortcode-main-wrapper .layout7 .rt-holder .tpg-excerpt,.tpg-shortcode-main-wrapper .layout7 .rt-holder p{color:#fff;opacity:0;padding:0 15px;text-align:center;transform:scale(1.5);transition:opacity .35s,transform .35s}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .post-meta-user p,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .post-meta-user p,.tpg-shortcode-main-wrapper .layout7 .rt-holder .post-meta-user p{margin-bottom:0}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .post-meta-user a,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .post-meta-user a,.tpg-shortcode-main-wrapper .layout7 .rt-holder .post-meta-user a{color:#fff}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover h3,.tpg-shortcode-main-wrapper .isotope4 .rt-holder:hover h3,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover h3{margin:7% 0 10px;transform:scale(.9)}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .overlay:before,.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .tpg-excerpt,.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover p,.tpg-shortcode-main-wrapper .isotope4 .rt-holder:hover .overlay:before,.tpg-shortcode-main-wrapper .isotope4 .rt-holder:hover .tpg-excerpt,.tpg-shortcode-main-wrapper .isotope4 .rt-holder:hover p,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover .overlay:before,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover .tpg-excerpt,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover p{opacity:1;transform:scaleX(1)}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay .post-meta,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay .post-meta,.tpg-shortcode-main-wrapper .layout7 .rt-holder .cat-above-title,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay .post-meta{color:#fff;opacity:0;overflow:hidden;text-align:center}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay .post-meta.left,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay .post-meta.left,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay .post-meta.left{text-align:left}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay .post-meta.right,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay .post-meta.right,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay .post-meta.right{text-align:right}.tpg-shortcode-main-wrapper .carousel4 .rt-holder:hover .overlay .post-meta,.tpg-shortcode-main-wrapper .isotope4 .rt-holder:hover .overlay .post-meta,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover .cat-above-title,.tpg-shortcode-main-wrapper .layout7 .rt-holder:hover .overlay .post-meta{opacity:1;transform:scale(1);transition:opacity .35s,transform .35s}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .overlay .rt-tpg-social-share,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .overlay .rt-tpg-social-share,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay .rt-tpg-social-share{float:none;text-align:center}.tpg-shortcode-main-wrapper .carousel4 .rt-holder .read-more,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .read-more,.tpg-shortcode-main-wrapper .layout7 .rt-holder .read-more{float:none}.tpg-shortcode-main-wrapper .carousel4 .rt-holder h3,.tpg-shortcode-main-wrapper .layout7 .rt-holder .overlay .entry-title{margin:0!important;transition:.4s}.tpg-shortcode-main-wrapper .carousel8 .rt-holder,.tpg-shortcode-main-wrapper .isotope8 .rt-holder,.tpg-shortcode-main-wrapper .layout12 .rt-holder{background:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.22)}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-img-holder,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-img-holder,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-img-holder{overflow:hidden;position:relative}.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover img,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover img,.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover img{transform:scale(1.05);-webkit-transform:scale(1.05);-moz-transform:scale(1.05);-ms-transform:scale(1.05);-o-transform:scale(1.05);-webkit-transition:all .25s ease-in-out}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail{background:#fff;display:inline-block;padding:25px;transition:all .3s ease-out 0s;width:100%}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail.rt-with-title,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail.rt-with-title,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail.rt-with-title{padding-bottom:0;padding-top:0}.tpg-shortcode-main-wrapper .carousel8 .rt-holder.rt-with-title-below h2.entry-title,.tpg-shortcode-main-wrapper .carousel8 .rt-holder.rt-with-title-below h3.entry-title,.tpg-shortcode-main-wrapper .carousel8 .rt-holder.rt-with-title-below h4.entry-title,.tpg-shortcode-main-wrapper .isotope8 .rt-holder.rt-with-title-below h2.entry-title,.tpg-shortcode-main-wrapper .isotope8 .rt-holder.rt-with-title-below h3.entry-title,.tpg-shortcode-main-wrapper .isotope8 .rt-holder.rt-with-title-below h4.entry-title,.tpg-shortcode-main-wrapper .layout12 .rt-holder.rt-with-title-below h2.entry-title,.tpg-shortcode-main-wrapper .layout12 .rt-holder.rt-with-title-below h3.entry-title,.tpg-shortcode-main-wrapper .layout12 .rt-holder.rt-with-title-below h4.entry-title{margin-top:0}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail.rt-with-title .entry-title,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail.rt-with-title .entry-title,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail.rt-with-title .entry-title{display:inline-block}.tpg-shortcode-main-wrapper .carousel8 .rt-holder.rt-with-title .post-meta-user,.tpg-shortcode-main-wrapper .isotope8 .rt-holder.rt-with-title .post-meta-user,.tpg-shortcode-main-wrapper .layout12 .rt-holder.rt-with-title .post-meta-user{margin-bottom:15px}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h4,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h4,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h4{font-size:22px;font-weight:400;line-height:1.25;margin:15px 0}.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h2,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h3,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h4{font-weight:500}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h2 a,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h3 a,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h4 a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h2 a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h3 a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h4 a,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h2 a,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h3 a,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h4 a{color:#000}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h2 a:hover,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h3 a:hover,.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail h4 a:hover,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h2 a:hover,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h3 a:hover,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail h4 a:hover,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h2 a:hover,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h3 a:hover,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail h4 a:hover{color:#fff}.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail{flex-grow:1}.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail,.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover .rt-detail{background:#0850d0;color:#fff}.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail a,.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover .rt-detail a{color:#fff}.tpg-shortcode-main-wrapper .carousel8 .rt-holder .rt-detail .read-more,.tpg-shortcode-main-wrapper .isotope8 .rt-holder .rt-detail .read-more,.tpg-shortcode-main-wrapper .layout12 .rt-holder .rt-detail .read-more{text-align:right}.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail .post-meta-user,.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail .post-meta-user .meta-data,.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail .post-meta-user a,.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail .post-meta-user i[class^=fa],.tpg-shortcode-main-wrapper .carousel8 .rt-holder:hover .rt-detail h3 a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail .post-meta-user,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail .post-meta-user .meta-data,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail .post-meta-user a,.tpg-shortcode-main-wrapper .isotope8 .rt-holder:hover .rt-detail .post-meta-user i[class^=fa],.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover .rt-detail .post-meta-user,.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover .rt-detail .post-meta-user a,.tpg-shortcode-main-wrapper .layout12 .rt-holder:hover .rt-detail i{color:#fff!important}@media (min-width:992px){.rt-container{width:970px}}@media (min-width:1200px){.rt-container{width:1170px}}@media (max-width:767px){.hidden-xs{display:none!important}}@media screen and (max-width:768px){.rt-member-description-container,.rt-member-feature-img{float:none;width:100%}}@media (min-width:768px){.rt-col-sm-1,.rt-col-sm-2,.rt-col-sm-3,.rt-col-sm-4,.rt-col-sm-5,.rt-col-sm-6,.rt-col-sm-7,.rt-col-sm-8,.rt-col-sm-9,.rt-col-sm-10,.rt-col-sm-11,.rt-col-sm-12,.rt-col-sm-24{float:left}.rt-col-sm-24{width:20%}.rt-col-sm-12{width:100%}.rt-col-sm-11{width:91.66666667%}.rt-col-sm-10{width:83.33333333%}.rt-col-sm-9{width:75%}.rt-col-sm-8{width:66.66666667%}.rt-col-sm-7{width:58.33333333%}.rt-col-sm-6{width:50%}.rt-col-sm-5{width:41.66666667%}.rt-col-sm-4{width:33.33333333%}.rt-col-sm-3{width:25%}.rt-col-sm-2{width:16.66666667%}.rt-col-sm-1{width:8.33333333%}}@media (min-width:992px){.rt-col-md-1,.rt-col-md-2,.rt-col-md-3,.rt-col-md-4,.rt-col-md-5,.rt-col-md-6,.rt-col-md-7,.rt-col-md-8,.rt-col-md-9,.rt-col-md-10,.rt-col-md-11,.rt-col-md-12,.rt-col-md-24{float:left}.rt-col-md-24{width:20%}.rt-col-md-12{width:100%}.rt-col-md-11{width:91.66666667%}.rt-col-md-10{width:83.33333333%}.rt-col-md-9{width:75%}.rt-col-md-8{width:66.66666667%}.rt-col-md-7{width:58.33333333%}.rt-col-md-6{width:50%}.rt-col-md-5{width:41.66666667%}.rt-col-md-4{width:33.33333333%}.rt-col-md-3{width:25%}.rt-col-md-2{width:16.66666667%}.rt-col-md-1{width:8.33333333%}}@media (min-width:1200px){.rt-col-lg-1,.rt-col-lg-2,.rt-col-lg-3,.rt-col-lg-4,.rt-col-lg-5,.rt-col-lg-6,.rt-col-lg-7,.rt-col-lg-8,.rt-col-lg-9,.rt-col-lg-10,.rt-col-lg-11,.rt-col-lg-12{float:left}.rt-col-lg-24{width:20%}.rt-col-lg-12{width:100%}.rt-col-lg-11{width:91.66666667%}.rt-col-lg-10{width:83.33333333%}.rt-col-lg-9{width:75%}.rt-col-lg-8{width:66.66666667%}.rt-col-lg-7{width:58.33333333%}.rt-col-lg-6{width:50%}.rt-col-lg-5{width:41.66666667%}.rt-col-lg-4{width:33.33333333%}.rt-col-lg-3{width:25%}.rt-col-lg-2{width:16.66666667%}.rt-col-lg-1{width:8.33333333%}}.rt-img-holder{overflow:hidden}.layout4 .rt-img-holder,.layout4 .rt-img-holder a,.layout4 .rt-img-holder img{height:100%}.img_zoom_in img.rt-img-responsive,.img_zoom_out img.rt-img-responsive{min-width:100%;transition:all 1s!important}.img_zoom_in:hover img.rt-img-responsive,.img_zoom_out img.rt-img-responsive{transform:scale(1.2)!important}.img_zoom_out:hover img.rt-img-responsive{transform:scale(1)!important}.tpg-shortcode-main-wrapper .img_no_effect:hover img.rt-img-responsive{transform:none}.tpg-even .rt-holder{display:flex;height:100%}.tpg-even.edd1 .rt-holder,.tpg-even.layout1 .rt-holder,.tpg-even.layout12 .rt-holder,.tpg-even.offset01 .offset-big .rt-holder,.tpg-even.offset02 .offset-big .rt-holder{flex-direction:column}.tpg-even.edd1 .rt-holder .rt-img-holder,.tpg-even.layout1 .rt-holder .rt-img-holder,.tpg-even.layout11 .rt-holder .rt-img-holder,.tpg-even.layout11 .rt-holder .rt-img-holder *{height:auto}@media (min-width:768px) and (max-width:991px){.tpg-even.layout4 .even-grid-item:nth-of-type(4n+2) .rt-holder [class*=rt-col]:first-child,.tpg-even.layout4 .even-grid-item:nth-of-type(4n+3) .rt-holder [class*=rt-col]:first-child{order:2}}@media (max-width:767px){.tpg-even.layout4 .even-grid-item .rt-holder .layoutInner-img{order:-1!important}}.tpg-shortcode-main-wrapper .rt-holder .overlay,.tpg-shortcode-main-wrapper .rt-holder .overlay>a[data-id],.tpg-shortcode-main-wrapper .rt-holder>a[data-id]{width:100%}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay,.tpg-shortcode-main-wrapper .carousel5 .rt-holder .overlay,.tpg-shortcode-main-wrapper .carousel7 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .carousel11 .rt-holder .overlay .post-info .tpg-shortcode-main-wrapper .layout13 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .carousel11 .rt-holder .post-info,.tpg-shortcode-main-wrapper .carousel12 .rt-holder .post-info,.tpg-shortcode-main-wrapper .isotope2 .rt-holder:hover .overlay,.tpg-shortcode-main-wrapper .isotope5 .rt-holder .overlay,.tpg-shortcode-main-wrapper .isotope7 .rt-holder .post-info,.tpg-shortcode-main-wrapper .isotope9 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .isotope11 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .isotope12 .rt-holder .post-info,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay,.tpg-shortcode-main-wrapper .layout8 .rt-holder .overlay,.tpg-shortcode-main-wrapper .layout10 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .layout15 .rt-holder .overlay .post-info,.tpg-shortcode-main-wrapper .layout16 .rt-holder .overlay .post-info{display:flex;flex-direction:column;justify-content:center}.tpg-shortcode-main-wrapper .carousel2 .rt-holder .overlay .read-more a,.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .read-more a,.tpg-shortcode-main-wrapper .carousel4 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .carousel5 .rt-holder .overlay .post-info .read-more a,.tpg-shortcode-main-wrapper .carousel7 .rt-holder .overlay .post-info .read-more a,.tpg-shortcode-main-wrapper .carousel9 .rt-holder .overlay .post-info .read-more a,.tpg-shortcode-main-wrapper .carousel11 .rt-holder .post-info .read-more a,.tpg-shortcode-main-wrapper .carousel12 .rt-holder .post-info .read-more a,.tpg-shortcode-main-wrapper .isotope2 .rt-holder .overlay .post-meta .read-more a,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .read-more a,.tpg-shortcode-main-wrapper .isotope4 .rt-holder .post-meta .read-more a,.tpg-shortcode-main-wrapper .isotope5 .rt-holder .overlay .post-meta .read-more a,.tpg-shortcode-main-wrapper .isotope9 .rt-holder .overlay .post-info .read-more a,.tpg-shortcode-main-wrapper .isotope11 .rt-holder .overlay .post-info .read-more a,.tpg-shortcode-main-wrapper .isotope12 .rt-holder .post-info .read-more a,.tpg-shortcode-main-wrapper .layout5 .rt-holder .overlay .read-more a,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .read-more a,.tpg-shortcode-main-wrapper .layout7 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .layout8 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .layout10 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .layout13 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .layout15 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .layout16 .rt-holder .read-more a,.tpg-shortcode-main-wrapper .offset03 .rt-holder .post-meta .read-more a{border:1px solid hsla(0,0%,100%,.4);padding:8px 15px}.tpg-shortcode-main-wrapper .carousel3 .rt-holder .overlay .post-meta,.tpg-shortcode-main-wrapper .isotope3 .rt-holder .overlay .post-meta,.tpg-shortcode-main-wrapper .isotope12 .rt-holder .post-info .post-meta .rt-tpg-social-share,.tpg-shortcode-main-wrapper .layout6 .rt-holder .overlay .post-meta{color:#fff;overflow:hidden;text-align:center}.tpg-even.grid-behaviour{align-items:flex-start}.grid-layout2.tpg-even,.grid-layout6 .tpg-even.grid-behaviour,.tpg-full-height{align-items:inherit}.tpg-el-main-wrapper .tpg-post-holder{height:100%}.grid_hover-layout9-2-main .tpg-even .rt-holder,.grid_hover-layout9-main .tpg-even .rt-holder,.list-layout1-main .tpg-even .rt-holder{display:block}.rt-el-post-meta span.author{margin-bottom:2px}.rt-tpg-container .rt-detail .tpg-excerpt{margin-top:-5px}.tpg-el-main-wrapper .slider_layout_wrapper .tpg-post-holder{margin-top:1px}.tpg-el-main-wrapper .grid-layout5 .tpg-post-holder,.tpg-el-main-wrapper .grid-layout6 .tpg-post-holder,.tpg-el-main-wrapper .slider_layout_wrapper .tpg-post-holder{height:auto}.rt-tpg-container .rt-el-content-wrapper{transition:background-color .4s ease-in-out}.rt-tpg-container .tpg-post-holder .read-more a,.rt-tpg-social-share a i,.tpg-el-main-wrapper .post-meta-tags a,.tpg-el-main-wrapper .post-meta-tags img,.tpg-el-main-wrapper .post-meta-tags span,.tpg-el-main-wrapper .rt-holder:hover .post-meta-tags i,.tpg-el-main-wrapper .tpg-el-excerpt *,.tpg-el-main-wrapper .tpg-el-image-wrap .overlay,.tpg-el-main-wrapper .tpg-el-image-wrap img,.tpg-el-main-wrapper .tpg-post-holder,.tpg-separate-category .categories-links,.tpg-separate-category .categories-links i{transition:.4s ease-in-out}.tpg-el-main-wrapper .rt-content-loader [class*=rt-col]{margin-top:0;padding-bottom:30px}.tpg-el-main-wrapper .entry-title a{color:inherit!important;text-decoration:none;transition:none!important}.tpg-el-main-wrapper .entry-title a:focus{border:none;box-shadow:none}.tpg-el-main-wrapper .entry-title:hover{color:var(--tpg-primary-color,#0d6efd)}.tpg-widget-heading-wrapper .tpg-widget-heading a{color:inherit}.section-title-align-center .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line.line-left,.section-title-align-right .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line.line-left{display:block;margin-left:0;margin-right:15px}.section-title-align-center .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading:before{display:none}.section-title-align-center .tpg-widget-heading-wrapper .tpg-widget-heading{margin-right:0!important}.section-title-align-right .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line.line-right{display:none}.section-title-align-right .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading{padding-left:15px;padding-right:0}.section-title-align-right .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading:before{left:0;right:auto}.section-title-align-left .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:before{display:none}.section-title-align-left .tpg-widget-heading-wrapper.heading-default,.section-title-align-left .tpg-widget-heading-wrapper.heading-style2,.section-title-align-left .tpg-widget-heading-wrapper.heading-style3{justify-content:flex-start}.section-title-align-center .tpg-widget-heading-wrapper.heading-default,.section-title-align-center .tpg-widget-heading-wrapper.heading-style2,.section-title-align-center .tpg-widget-heading-wrapper.heading-style3{justify-content:center}.section-title-align-right .tpg-widget-heading-wrapper.heading-default,.section-title-align-right .tpg-widget-heading-wrapper.heading-style2,.section-title-align-right .tpg-widget-heading-wrapper.heading-style3{justify-content:flex-end}.section-title-align-right .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading:after{display:none}.title-one-line .entry-title,.title-three-line .entry-title,.title-two-line .entry-title{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.title-one-line .entry-title{-webkit-line-clamp:1}.title-two-line .entry-title{-webkit-line-clamp:2}.title-three-line .entry-title{-webkit-line-clamp:3}.rt-tpg-container .rt-el-post-meta{margin-bottom:13px}.rt-tpg-container .rt-el-post-meta i{margin-right:5px}.rt-tpg-container .offset-right .rt-el-post-meta{margin-top:-6px}.tpg-el-main-wrapper .tpg-el-image-wrap img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.editor-styles-wrapper .wp-block-freeform .tpg-el-image-wrap img,.editor-styles-wrapper .wp-block .tpg-el-image-wrap img{border-radius:0}@media (max-width:767px){.tpg-el-main-wrapper .tpg-el-image-wrap img{width:100%!important}}.tpg-el-main-wrapper .tpg-el-image-wrap a.tpg-post-link{height:100%;width:100%}.tpg-el-main-wrapper .tpg-el-image-wrap .overlay{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tpg-el-main-wrapper .rt-grid-hover-item .tpg-el-image-wrap .overlay.grid-hover-content{display:none!important;opacity:0;visibility:hidden}.tpg-el-main-wrapper .tpg-post-holder .tpg-el-image-wrap .overlay.show-on-hover,.tpg-el-main-wrapper .tpg-post-holder:hover .tpg-el-image-wrap .overlay.hide-on-hover{opacity:0!important}.tpg-el-main-wrapper .tpg-post-holder:hover .tpg-el-image-wrap .overlay.show-on-hover{opacity:1!important}.tpg-el-main-wrapper .post-meta-tags span{display:inline-block}.tpg-el-main-wrapper .post-meta-tags span img+span.author-prefix{padding-left:3px}.tpg-el-main-wrapper .post-meta-tags span.author-prefix{padding-right:5px}.tpg-el-main-wrapper .post-meta-tags span img{border-radius:50%;display:inline-block;height:25px!important;margin-right:5px;margin-top:-2%;max-width:25px;width:auto!important}.post-meta-tags span.separator:last-of-type{display:none}body .readmore-btn-only-text .rt-tpg-container .tpg-post-holder .read-more a,body .readmore-btn-only-text .rt-tpg-container .tpg-post-holder .read-more a:hover{background:none!important;border:none!important;padding:0!important}.rt-tpg-container .tpg-post-holder .read-more a i{transition:margin .4s ease-in-out}.rt-tpg-container .tpg-post-holder .read-more a i.left-icon{margin-right:5px}.rt-tpg-container .tpg-post-holder .read-more a i.right-icon{margin-left:5px}.tpg-el-box-border-disable .rt-tpg-container .rt-holder{border:none;box-shadow:none!important}.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{display:flex;justify-content:space-between}.tpg-filter-alignment-left .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{align-items:flex-start}.tpg-filter-alignment-center .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{align-items:center}.tpg-filter-alignment-right .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{align-items:flex-end}.tpg-filter-h-alignment-left .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{justify-content:flex-start}.tpg-filter-h-alignment-center .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{justify-content:center}.tpg-filter-h-alignment-right .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{justify-content:flex-end}.tpg-filter-h-alignment-space-between .tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{justify-content:space-between}.rt-filter-item-wrap.rt-search-filter-wrap input.rt-search-input{min-width:202px}.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap .filter-left-wrapper{margin-right:15px}@media (max-width:1023px){.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap .filter-left-wrapper{text-align:center}.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap .filter-right-wrapper{align-items:center;display:flex;flex-wrap:wrap;justify-content:center}.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap .filter-right-wrapper .rt-order-by-action{order:-1}}@media (max-width:991px){.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{flex-direction:column}}@media (max-width:600px){.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap .filter-left-wrapper{margin-right:0}.tpg-filter-type-dropdown .rt-filter-wrap .filter-left-wrapper{display:flex;justify-content:center}.tpg-el-main-wrapper .rt-filter-item-wrap.rt-tax-filter.rt-filter-dropdown-wrap{margin-bottom:4px}.tpg-el-main-wrapper .rt-layout-filter-container .rt-filter-wrap{flex-direction:column}}.rt-layout-filter-container .rt-filter-wrap .rt-filter-item-wrap{min-height:38px}.tpg-el-main-wrapper .rt-holder .rt-el-content-wrapper{display:flex;flex-direction:column;overflow:hidden}.tpg-el-main-wrapper .rt-holder .rt-el-content-wrapper-flex{display:flex;flex-direction:row}.title_position_above_image .tpg-el-main-wrapper .rt-holder .rt-el-content-wrapper .tpg-el-image-wrap{margin:0 -15px 15px}.rt-tpg-container .rt-holder .rt-detail .entry-title-wrapper .entry-title{margin-bottom:0;transition:.4s}.rt-tpg-container .rt-holder .rt-detail .entry-title-wrapper .tpg-separate-category,.rt-tpg-container .rt-holder .rt-detail .entry-title-wrapper .tpg-separate-category.above_title a{margin-bottom:5px}.tpg-el-main-wrapper .rt-holder .tpg-el-excerpt{order:5}.tpg-el-main-wrapper .rt-holder .rt-tpg-social-share{order:10}.tpg-el-main-wrapper .rt-tpg-social-share a{margin-right:10px}.tpg-el-main-wrapper .rt-holder .post-footer{margin-bottom:15px;order:11}.title_position_above_image .tpg-el-main-wrapper .rt-holder .entry-title-wrapper{order:-5}.title_position_below_image .tpg-el-main-wrapper .rt-holder .tpg-el-image-wrap{order:-8}.title_position_below_image .tpg-el-main-wrapper .rt-holder .entry-title-wrapper{order:2}.title_position_above_image.meta_position_above_title .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:-6}.title_position_above_image.meta_position_below_title .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:-4}.title_position_below_image.meta_position_above_title .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:1}.title_position_below_image.meta_position_below_title .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:3}.meta_position_below_excerpt .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:6}.meta_position_above_excerpt .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:4}.title_position_default.meta_position_above_title .tpg-el-main-wrapper .rt-holder .tpg-el-image-wrap{order:-2}.title_position_default.meta_position_above_title .tpg-el-main-wrapper .rt-holder .rt-el-post-meta{order:-1}.title_hover_border_enable .rt-tpg-container .entry-title-wrapper .entry-title a{background:linear-gradient(180deg,var(--tpg-primary-color,#0d6efd) 0,var(--tpg-primary-color,#0d6efd) 98%);background-position:left 100%;background-repeat:no-repeat;background-size:0 2px;transition:background .4s!important}.title_hover_border_enable .rt-tpg-container .entry-title-wrapper .entry-title:hover a{background-size:100% 2px}.title_hover_border_disable .rt-tpg-container .entry-title-wrapper .entry-title a{background:none!important}.rt-tpg-container .post-right-content{display:flex;flex-direction:column}.rt-tpg-container .list-layout-wrapper .post-right-content{flex:1}.rt-tpg-container .list-layout-wrapper .post-right-content>div:last-child{margin-bottom:0}.tpg-separate-category.style1 .rt-separator{margin-right:4px}.tpg-category-position-default .grid-layout4 .rt-detail .entry-title-wrapper .tpg-separate-category,.tpg-category-position-default .grid_hover-layout11 .rt-detail .entry-title-wrapper .tpg-separate-category,.tpg-is-author-icon-hide .post-meta-tags span.author i,.tpg-is-author-icon-hide .post-meta-tags span.author img{display:none}.rt-tpg-container .rt-holder .rt-img-holder .tpg-zoom{left:50%;opacity:0;position:absolute;top:60%;transform:translate(-50%,-50%);visibility:hidden;z-index:99}.rt-tpg-container .rt-holder:hover .rt-img-holder .tpg-zoom{opacity:1;top:50%;visibility:visible}.rt-tpg-container .rt-holder .rt-img-holder .tpg-zoom i{background:hsla(0,0%,100%,.8);border:0 solid;border-radius:50%;box-sizing:border-box;display:inline-block;font-size:20px;height:50px;line-height:40px;margin-right:0;padding:5px;text-align:center;width:50px}@media (min-width:992px){.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-3:nth-child(8n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-3:nth-child(8n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-3:nth-child(8n+7) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-3:nth-child(8n+8) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-4:nth-child(6n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-4:nth-child(6n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-4:nth-child(6n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-6:nth-child(4n+3) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-6:nth-child(4n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-md-12:nth-child(2n) .rt-el-content-wrapper-flex{flex-direction:row-reverse}}@media (min-width:1200px){.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-4:nth-child(6n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-4:nth-child(6n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-4:nth-child(6n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-6:nth-child(4n+3) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-6:nth-child(4n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-lg-12:nth-child(2n) .rt-el-content-wrapper-flex{flex-direction:row-reverse}}@media (min-width:768px) and (max-width:991px){.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-3:nth-child(8n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-3:nth-child(8n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-3:nth-child(8n+7) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-3:nth-child(8n+8) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-4:nth-child(6n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-4:nth-child(6n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-4:nth-child(6n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-6:nth-child(4n+3) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-6:nth-child(4n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-sm-12:nth-child(2n) .rt-el-content-wrapper-flex{flex-direction:row-reverse}}@media (max-width:768px){.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-3:nth-child(8n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-3:nth-child(8n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-3:nth-child(8n+7) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-3:nth-child(8n+8) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-4:nth-child(4n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-4:nth-child(4n+5) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-4:nth-child(4n+6) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-6:nth-child(4n+3) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-6:nth-child(4n+4) .rt-el-content-wrapper-flex,.rt-tpg-container .rt-row.grid-layout2 .rt-col-xs-12:nth-child(2n) .rt-el-content-wrapper-flex{flex-direction:row-reverse}}.rt-tpg-container .grid-layout4 .rt-holder .tpg-el-image-wrap,.rt-tpg-container .grid-layout5 .rt-holder .tpg-el-image-wrap,.rt-tpg-container .grid-layout6 .rt-holder .tpg-el-image-wrap{margin:0 0 15px}.rt-tpg-container .grid-layout4 .cat-over-image a,.rt-tpg-container .grid-layout5 .tpg-separate-category a,.rt-tpg-container .list-layout4 .tpg-separate-category a{align-items:center;background-color:var(--tpg-primary-color,#0d6efd);color:#fff;display:inline-flex;font-size:12px;justify-content:center;line-height:1;margin-right:5px;min-height:24px;padding:0 8px}.rt-tpg-container .grid-layout4 .cat-over-image a:hover,.rt-tpg-container .grid-layout5 .tpg-separate-category a:hover,.rt-tpg-container .list-layout4 .tpg-separate-category a:hover{background:var(--tpg-secondary-color,#0654c4)}.rt-tpg-container .grid-layout4 .cat-over-image a:hover:after,.rt-tpg-container .grid-layout5 .tpg-separate-category.style3 a:hover:after,.rt-tpg-container .list-layout4 .tpg-separate-category.style3 a:hover:after{border-top-color:var(--tpg-secondary-color,#0654c4)}.rt-tpg-container .grid-layout4 .cat-over-image .rt-separator,.rt-tpg-container .grid-layout5 .tpg-separate-category .rt-separator{display:none}.rt-tpg-container .grid-layout1 .rt-holder,.rt-tpg-container .grid-layout3 .rt-holder{background:#fff;box-shadow:0 0 2px 0 rgba(0,0,0,.3);-webkit-box-shadow:0 0 2px 0 rgba(0,0,0,.3);-moz-box-shadow:0 0 2px 0 rgba(0,0,0,.3)}.tpg-el-main-wrapper .grid-layout2 .rt-holder .rt-el-content-wrapper-flex{height:100%;padding:0}.rt-tpg-container .grid-layout2 .rt-holder .tpg-el-image-wrap{flex:0 0 50%;margin:0;max-width:50%}.rt-tpg-container .grid-layout2 .rt-holder .post-right-content{flex-grow:1;flex:0 0 50%;max-width:50%;padding:15px}.tpg-el-main-wrapper .grid-layout2 [class*=rt-col]{padding:0}@media (max-width:500px){.tpg-el-main-wrapper .grid-layout2 .rt-el-content-wrapper-flex,.tpg-post-order-reverse .rt-tpg-container .rt-row .rt-col-xs-12:nth-child(2n) .rt-el-content-wrapper-flex{display:block}.rt-tpg-container .grid-layout2 .rt-holder .post-right-content,.rt-tpg-container .grid-layout2 .rt-holder .tpg-el-image-wrap{flex:inherit;margin:0;max-width:100%}.tpg-el-main-wrapper .grid-layout2 [class*=rt-col]{margin-bottom:15px}}.rt-tpg-container .grid-layout3 .rt-holder{border-radius:4px;overflow:hidden}.meta_position_default .tpg-el-main-wrapper .grid-layout3 .rt-holder .rt-el-post-meta{order:12;padding-bottom:5px;padding-top:20px;position:relative}.meta_position_default .tpg-el-main-wrapper .grid-layout3 .rt-holder .rt-el-post-meta:before{background:#ddd;content:"";height:1px;left:-50px;position:absolute;right:-50px;top:0;width:calc(100% + 100px)}.rt-tpg-container .grid-layout4 .entry-title-wrapper .entry-title{font-size:22px;font-weight:500;line-height:32px}.tpg-el-main-wrapper .grid-layout4 .tpg-el-image-wrap img{height:230px;width:100%}.rt-tpg-container .grid-layout4 .rt-holder .rt-detail{padding:0}.tpg-is-author-icon-default .grid-layout4 .post-meta-tags span.author i,.tpg-is-author-icon-default .grid-layout4 .post-meta-tags span.author img{display:none}.tpg-el-main-wrapper .list-layout-wrapper .rt-holder .rt-el-content-wrapper{display:flex;flex-direction:row;height:100%;padding:0}.tpg-el-main-wrapper.list-layout1-main .list-layout-wrapper .rt-holder .rt-el-content-wrapper{align-items:flex-start}.tpg-el-main-wrapper.list-layout1-2-main .list-layout1 .rt-holder .rt-el-content-wrapper{flex-direction:row-reverse}.rt-tpg-container .list-layout1 .rt-holder .tpg-el-image-wrap{flex:0 0 260px;margin:0 30px 0 0}@media (max-width:991px){.rt-tpg-container .list-layout1 .rt-holder .tpg-el-image-wrap{flex:0 0 200px}}@media (max-width:599px){.tpg-el-main-wrapper.list-layout1-main .list-layout-wrapper .rt-holder .rt-el-content-wrapper{display:block}.rt-tpg-container .list-layout1 .rt-holder .tpg-el-image-wrap{margin:0 0 15px}}.tpg-el-main-wrapper.list-layout1-2-main .list-layout1 .rt-holder .tpg-el-image-wrap{margin:0 0 0 30px}.rt-tpg-container .list-layout1 .rt-detail .read-more a,.rt-tpg-container .list-layout2 .rt-detail .read-more a,.rt-tpg-container .list-layout3 .rt-detail .read-more a{background-color:var(--tpg-primary-color,#0d6efd);border-color:var(--tpg-primary-color,#0d6efd);color:#fff}.rt-tpg-container .list-layout1 .rt-detail .read-more a:hover,.rt-tpg-container .list-layout2 .rt-detail .read-more a:hover,.rt-tpg-container .list-layout3 .rt-detail .read-more a:hover,.rt-tpg-container .list-layout4 .rt-detail .read-more a:hover{background-color:var(--tpg-secondary-color,#0654c4);border-color:var(--tpg-secondary-color,#0654c4);color:#fff}.tags-visibility-default .list-layout1 .post-tags-links,.tags-visibility-default .list-layout1 .post-tags-links+.separator{display:none}.rt-tpg-container .list-layout-wrapper .offset-right .rt-row{display:flex;flex-wrap:wrap;max-width:100%;overflow:hidden;width:100%}.rt-tpg-container .list-layout-wrapper.list-layout3 .offset-right .rt-row .rt-list-item{margin-bottom:15px}.tpg-el-main-wrapper .list-layout2 .offset-left .tpg-el-image-wrap{height:300px}.tpg-el-main-wrapper .list-layout-wrapper .offset-left .rt-holder .rt-el-content-wrapper{flex-direction:column}.rt-tpg-container .list-layout-wrapper .offset-left .rt-holder .tpg-el-image-wrap{flex:inherit;margin:0 0 15px}.tpg-el-main-wrapper .list-layout-wrapper .offset-right .tpg-el-image-wrap{height:100px}.rt-tpg-container .list-layout-wrapper .offset-right .entry-title-wrapper .entry-title{font-size:20px}.tpg-el-main-wrapper.list-layout2-2-main .list-layout2,.tpg-el-main-wrapper.list-layout3-2-main .list-layout3,.tpg-el-main-wrapper.list-layout5-2-main .list-layout5 .rt-holder .rt-el-content-wrapper{flex-direction:row-reverse}.tpg-el-main-wrapper .list-layout-wrapper.list-layout2 .rt-holder .rt-el-content-wrapper,.tpg-el-main-wrapper .list-layout-wrapper.list-layout2-2 .rt-holder .rt-el-content-wrapper,.tpg-el-main-wrapper .list-layout-wrapper.list-layout2-3 .rt-holder .rt-el-content-wrapper,.tpg-el-main-wrapper .list-layout-wrapper.list-layout3 .rt-holder .rt-el-content-wrapper{align-items:flex-start!important}.tags-visibility-default .list-layout2 .post-tags-links,.tags-visibility-default .list-layout2 .post-tags-links+.separator{display:none}.rt-tpg-container .list-layout2 .offset-right .rt-holder .tpg-el-image-wrap{flex:0 0 107px;margin:0 15px 0 0;max-width:107px}.tpg-el-main-wrapper .list-layout3 .offset-right .rt-holder .tpg-el-excerpt{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.tpg-el-main-wrapper .list-layout3 [class*=rt-col]{padding-bottom:15px}.tpg-el-main-wrapper .list-layout3 .offset-left .tpg-el-image-wrap{height:390px}.rt-tpg-container .list-layout3 .offset-right .rt-holder .tpg-el-image-wrap{flex:0 0 140px;height:110px;margin:0 15px 0 0;max-width:140px}.tpg-el-main-wrapper .list-layout-wrapper.list-layout4 .rt-el-content-wrapper{align-items:inherit!important}.rt-tpg-container .list-layout4 .post-right-content,.tpg-el-main-wrapper .list-layout4 .rt-holder .tpg-el-image-wrap{flex:0 0 50%;margin:0}@media (min-width:768px){.tpg-el-main-wrapper .list-layout4 .rt-holder .tpg-el-image-wrap{min-height:400px}}.rt-tpg-container .list-layout4 .post-right-content{display:flex;justify-content:center;margin:0;padding:30px 50px;text-align:center}.rt-tpg-container .list-layout4 .entry-title-wrapper .categories-links .rt-separator{display:none}.tpg-el-main-wrapper .list-layout4 [class*=rt-col]{padding-bottom:0}@media (min-width:768px){.tpg-el-main-wrapper .list-layout4 [class*=rt-col]:nth-child(2n) .rt-holder .rt-el-content-wrapper{flex-direction:row-reverse}}@media (max-width:768px){.tpg-el-main-wrapper .list-layout4 .rt-holder .tpg-el-image-wrap{flex:0 0 150px;height:120px}.rt-tpg-container .list-layout4 .post-right-content{flex:inherit;flex-grow:1;padding:0 0 0 20px;text-align:left}.tpg-el-main-wrapper .list-layout-wrapper.list-layout4 .rt-holder .rt-el-content-wrapper{align-items:flex-start!important}.tpg-el-main-wrapper .list-layout4 [class*=rt-col]{margin-bottom:30px}}@media (max-width:500px){.tpg-el-main-wrapper .list-layout4 .rt-holder .tpg-el-image-wrap{flex:0 0 100px;height:100px}}.rt-tpg-container .list-layout5 .post-right-content{display:block;overflow:hidden;padding-left:20px}.tpg-el-main-wrapper.list-layout5-2-main .list-layout5 .post-right-content{padding-left:0;padding-right:20px}.rt-tpg-container .list-layout5 .rt-holder .rt-img-holder{border-radius:50%;flex:0 0 100px;height:100px;margin-top:8px}.rt-tpg-container .list-layout5 .entry-title-wrapper .entry-title{font-size:18px}.tags-visibility-default .list-layout5 .rt-el-post-meta{color:#a5a6aa;font-size:14px}.list-layout5 .entry-title-wrapper .tpg-separate-category .categories-links{color:#7a7e83;font-size:14px;font-weight:500}.list-layout5 .entry-title-wrapper .tpg-separate-category .categories-links a{color:inherit}.tpg-el-main-wrapper .list-layout5 [class*=rt-col]{padding-bottom:30px}.rt-tpg-container .list-layout5 .post-right-content{flex:1}.grid_hover_layout_wrapper .rt-row-inner{display:flex;flex-wrap:wrap}.rt-tpg-container .rt-grid-hover-item .entry-title-wrapper .entry-title{font-size:20px;line-height:1.4}.tpg-el-main-wrapper .rt-grid-hover-item .rt-holder .rt-el-content-wrapper{height:100%;overflow:hidden;padding:0;position:relative;width:100%}.rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content{bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:0;min-height:56px;padding:30px 30px 15px;position:absolute;right:0;transition:1.2s;width:100%;z-index:1}.rt-tpg-container.slider-layout8-main .rt-grid-hover-item .rt-holder .grid-hover-content{border:20px solid transparent;max-height:100%;padding:5px 20px}.rt-tpg-container.slider-layout8-main .rt-grid-hover-item .rt-holder:hover .grid-hover-content{border-color:hsla(0,0%,100%,.5)}.rt-tpg-container .rt-grid-hover-item .rt-holder:hover .grid-hover-content{padding-bottom:15px}.rt-tpg-container .rt-grid-hover-item .rt-holder:hover .grid-hover-content>div:last-of-type{margin-bottom:0}.rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after,.rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before{background-color:rgba(0,0,0,.7);bottom:0;content:"";height:100%;left:0;position:absolute;right:0;transition:.4s ease-in-out;width:100%;z-index:-1}.rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after{background-color:rgba(0,0,0,.5)}.rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after,.rt-tpg-container .rt-grid-hover-item .rt-holder:hover .grid-hover-content:before{opacity:0;visibility:hidden}.rt-tpg-container .rt-grid-hover-item .rt-holder:hover .grid-hover-content:after{opacity:1;visibility:visible}.rt-tpg-container .rt-grid-hover-item .entry-title-wrapper .entry-title,.rt-tpg-container .rt-grid-hover-item .rt-el-post-meta,.rt-tpg-container .rt-grid-hover-item .rt-el-post-meta a,.rt-tpg-container .rt-grid-hover-item .rt-holder .tpg-el-excerpt{color:#fff}.grid_hover-layout11-main .rt-grid-hover-item .entry-title-wrapper .entry-title,.grid_hover-layout11-main .rt-grid-hover-item .rt-el-post-meta,.grid_hover-layout11-main .rt-grid-hover-item .rt-el-post-meta a,.grid_hover-layout11-main .rt-grid-hover-item .rt-holder .tpg-el-excerpt,.slider-layout9-main .rt-grid-hover-item .entry-title-wrapper .entry-title,.slider-layout9-main .rt-grid-hover-item .rt-el-post-meta,.slider-layout9-main .rt-grid-hover-item .rt-el-post-meta a,.slider-layout9-main .rt-grid-hover-item .rt-holder .tpg-el-excerpt{color:#000}.grid_hover-layout11-main .rt-grid-hover-item .entry-title-wrapper .entry-title:hover,.rt-tpg-container .rt-grid-hover-item a:hover{color:var(--tpg-primary-color,#0d6efd)}.rt-tpg-container .rt-grid-hover-item .rt-holder .tpg-el-image-wrap{margin:0}.rt-grid-hover-item .tpg-el-image-wrap{background-color:#e4eaf1;height:100%}.grid-hover-overlay-type-fadein-on-hover .rt-tpg-container .rt-holder .grid-hover-content .entry-title-wrapper .entry-title:before{transition:.5s ease-in-out;width:0}.grid-hover-overlay-type-fadein-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content .entry-title-wrapper .entry-title:before{width:50%}.grid-hover-overlay-type-fadein-on-hover .rt-tpg-container .rt-holder .grid-hover-content{opacity:0;transition:.5s ease-in-out}.grid-hover-overlay-type-fadein-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{opacity:1}.grid-hover-overlay-type-fadeout-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{opacity:0}.grid-hover-overlay-type-slidein-on-hover .rt-tpg-container .rt-holder .grid-hover-content{left:-100%;transition:.5s ease-in-out}.grid-hover-overlay-type-slidein-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{left:0}.grid-hover-overlay-type-slideout-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{left:100%}.grid-hover-overlay-type-slidein-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before,.grid-hover-overlay-type-slideout-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before{transition:.5s ease-in-out}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before,.grid-hover-overlay-type-slidein-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before,.grid-hover-overlay-type-slideout-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:before{background:var(--tpg-primary-color,#0d6efd);opacity:1;visibility:visible}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after,.grid-hover-overlay-type-slidein-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after,.grid-hover-overlay-type-slideout-on-hover .rt-tpg-container .rt-grid-hover-item .rt-holder .grid-hover-content:after{content:none}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .grid-hover-content,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .grid-hover-content{height:100%}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .grid-hover-content,.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .tpg-el-image-wrap,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .grid-hover-content,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .rt-img-holder{transition:all .5s}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper:hover .rt-img-holder img{transform:none!important}.grid-hover-overlay-type-zoomin-on-hover .rt-tpg-container .rt-holder .grid-hover-content,.grid-hover-overlay-type-zoomout-on-hover .rt-tpg-container .rt-holder .grid-hover-content{transition:.5s ease-in-out}.grid-hover-overlay-type-zoomin-on-hover .rt-tpg-container .rt-holder .grid-hover-content,.grid-hover-overlay-type-zoomout-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{opacity:0;transform:scale(0)}.grid-hover-overlay-type-zoomin-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content{opacity:1;transform:scale(1)}.grid-hover-overlay-type-zoominall-on-hover .rt-tpg-container .rt-holder .grid-hover-content *,.grid-hover-overlay-type-zoomoutall-on-hover .rt-tpg-container .rt-holder .grid-hover-content *{transition:.4s ease-in-out!important}.grid-hover-overlay-type-zoominall-on-hover .rt-tpg-container .rt-holder .grid-hover-content *,.grid-hover-overlay-type-zoomoutall-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content *{opacity:0;transform:scale(0)}.grid-hover-overlay-type-zoominall-on-hover .rt-tpg-container .rt-holder:hover .grid-hover-content *{opacity:1;transform:scale(1)}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .grid-hover-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:0;transform:rotateY(-180deg)}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper:hover .grid-hover-content{-webkit-backface-visibility:visible;backface-visibility:visible;opacity:1;transform:rotateY(0deg)}.grid-hover-overlay-type-flipin-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper:hover .rt-img-holder,.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper:hover .grid-hover-content{opacity:0;transform:rotateY(180deg);visibility:hidden}.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper .rt-img-holder{-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:0;transform:rotateY(-180deg)}.grid-hover-overlay-type-flipout-on-hover .rt-tpg-container .rt-holder .rt-el-content-wrapper:hover .rt-img-holder{-webkit-backface-visibility:visible;backface-visibility:visible;opacity:1;transform:rotateY(0deg)}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .post-footer,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .rt-el-post-meta,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .rt-tpg-social-share,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .tpg-el-excerpt{margin-bottom:0;max-height:0;opacity:0;transition:.6s;visibility:hidden}.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout3 .rt-grid-hover-item .rt-holder .grid-hover-content>div,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .post-footer,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .rt-el-post-meta,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .rt-tpg-social-share,.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .tpg-el-excerpt{margin-bottom:15px}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .rt-el-post-meta{transition:all .6s,opacity .6s}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .tpg-el-excerpt{transition:all .6s,opacity .5s}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .post-footer{transition:all .6s,opacity .4s}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .rt-tpg-social-share{transition:all .6s,opacity .3s}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .rt-el-post-meta{margin-bottom:15px;max-height:var(--tpg-meta-height,80px);opacity:1;visibility:visible}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder .grid-hover-content>div:last-child{margin-bottom:0!important}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .tpg-el-excerpt{max-height:var(--tpg-excerpt-height,140px);opacity:1;visibility:visible}.rt-tpg-container .grid_hover_layout_wrapper .rt-holder:hover .rt-tpg-social-share{margin-bottom:15px;max-height:var(--tpg-share-height,50px);opacity:1;visibility:visible}.rt-tpg-container .grid_hover_layout_wrapper .rt-grid-hover-item .rt-holder:hover .post-footer{max-height:var(--tpg-footer-height,50px);opacity:1;visibility:visible}.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout3 .rt-grid-hover-item .rt-holder .post-footer,.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout3 .rt-grid-hover-item .rt-holder .rt-el-post-meta,.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout3 .rt-grid-hover-item .rt-holder .rt-tpg-social-share,.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout3 .rt-grid-hover-item .rt-holder .tpg-el-excerpt,.rt-tpg-container .grid_hover_layout_wrapper.grid_hover-layout5 .rt-grid-hover-item .rt-holder .rt-el-post-meta{max-height:inherit;opacity:1;visibility:visible}.meta-visibility-default .rt-tpg-container .grid_hover-layout1 .rt-grid-hover-item .rt-holder .rt-el-post-meta{max-height:inherit}.rt-tpg-container .grid_hover-layout1 .rt-holder .tpg-el-image-wrap{height:300px}.grid-hover-overlay-height-full .rt-tpg-container .rt-content-loader .rt-grid-hover-item .rt-holder .grid-hover-content{min-height:100%}.hover-overlay-height-default .rt-tpg-container .grid_hover-layout1 .rt-grid-hover-item .rt-holder:hover .grid-hover-content,.hover-overlay-height-full .rt-tpg-container .rt-content-loader .rt-grid-hover-item .rt-holder:hover .grid-hover-content{min-height:100%;transition:.5s}.rt-tpg-container .grid_hover-layout1 .entry-title-wrapper .entry-title{font-size:20px;line-height:1.4}.meta-visibility-default .rt-tpg-container .grid_hover-layout2 .rt-grid-hover-item .rt-holder .rt-el-post-meta{margin-bottom:7px;max-height:inherit}.rt-tpg-container .grid_hover-layout2 .rt-holder .tpg-el-image-wrap img{height:300px}.rt-tpg-container .grid_hover-layout2 .rt-grid-hover-item .rt-holder .post-footer,.rt-tpg-container .grid_hover-layout2 .rt-grid-hover-item .rt-holder .tpg-el-excerpt,.tpg-el-main-wrapper .grid_hover-layout2 .rt-holder .rt-tpg-social-share{margin-bottom:0;max-height:0;overflow:hidden;transition:.6s}.tpg-el-main-wrapper .grid_ho