Coming Soon Page and Maintenance Mode for WordPress Block Editor - Version 1.1.0

Version Description

Download this release

Release Info

Developer heldervilela
Plugin Icon 128x128 Coming Soon Page and Maintenance Mode for WordPress Block Editor
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.0 to 1.1.0

Files changed (66) hide show
  1. admin/api/UnlockPage.php +1 -1
  2. admin/blocks/Init.php +36 -9
  3. admin/blocks/_available/temp-01/attributes.php +3 -3
  4. admin/blocks/_available/temp-01/render.php +7 -1
  5. admin/blocks/_available/temp-01/styles/editor.scss +10 -0
  6. admin/blocks/_available/temp-01/styles/style.scss +173 -0
  7. admin/blocks/_available/temp-02/attributes.php +54 -0
  8. admin/blocks/_available/temp-02/media/thumb.jpg +0 -0
  9. admin/blocks/_available/temp-02/render.php +60 -0
  10. admin/blocks/_available/temp-02/styles/editor.scss +10 -0
  11. admin/blocks/_available/temp-02/styles/style.scss +80 -0
  12. admin/blocks/_available/temp-03/attributes.php +78 -0
  13. admin/blocks/_available/temp-03/media/thumb.jpg +0 -0
  14. admin/blocks/_available/temp-03/render.php +70 -0
  15. admin/blocks/_available/temp-03/styles/editor.scss +10 -0
  16. admin/blocks/_available/temp-03/styles/style.scss +114 -0
  17. admin/blocks/_available/temp-04/attributes.php +86 -0
  18. admin/blocks/_available/temp-04/media/thumb.jpg +0 -0
  19. admin/blocks/_available/temp-04/render.php +90 -0
  20. admin/blocks/_available/temp-04/styles/editor.scss +8 -0
  21. admin/blocks/_available/temp-04/styles/style.scss +109 -0
  22. admin/blocks/_available/temp-05/attributes.php +86 -0
  23. admin/blocks/_available/temp-05/media/thumb.jpg +0 -0
  24. admin/blocks/_available/temp-05/render.php +95 -0
  25. admin/blocks/_available/temp-05/styles/editor.scss +8 -0
  26. admin/blocks/_available/temp-05/styles/style.scss +112 -0
  27. admin/blocks/available-blocks.json +40 -0
  28. admin/blocks/styles/_vendor/easings.scss +25 -0
  29. admin/blocks/styles/_vendor/mix.scss +121 -0
  30. admin/blocks/styles/_vendor/socicon.scss +801 -0
  31. admin/blocks/styles/components/block-background.scss +162 -0
  32. admin/blocks/styles/components/editor/_sidebar.scss +60 -0
  33. admin/blocks/styles/components/editor/background.scss +70 -0
  34. admin/blocks/styles/components/editor/brand-upload.scss +46 -0
  35. admin/blocks/styles/components/editor/font-picker.scss +185 -0
  36. admin/blocks/styles/components/editor/inspector-controls-image-uploader.scss +24 -0
  37. admin/blocks/styles/components/editor/misc-components--sidebar.scss +108 -0
  38. admin/blocks/styles/components/editor/panel-uploader-placeholder.scss +212 -0
  39. admin/blocks/styles/components/plugin-feature.scss +51 -0
  40. admin/blocks/styles/components/social-icons.scss +258 -0
  41. admin/config.settings.php +12 -10
  42. admin/dashboard/styles/dashboard.scss +6 -0
  43. admin/dashboard/styles/dashboard/all-pages.scss +60 -0
  44. admin/dashboard/styles/global.scss +14 -0
  45. admin/dashboard/styles/global/admin-menu.scss +59 -0
  46. admin/dashboard/styles/global/toolbar.scss +200 -0
  47. coming-soon-blocks.php +28 -29
  48. frontend/components/social-icons.php +9 -3
  49. frontend/init.php +0 -11
  50. frontend/styles/components/cookie-notice.scss +91 -0
  51. frontend/styles/components/unlock-page.scss +289 -0
  52. frontend/styles/frontend.scss +20 -0
  53. languages/coming-soon-blocks.pot +46 -35
  54. lib/Block_Editor_Checker.php +121 -0
  55. lib/Footer_Text.php +7 -3
  56. lib/Gutenberg_Checker.php +0 -180
  57. lib/Plugin.php +8 -5
  58. lib/Utils.php +65 -11
  59. public/dist/blocks.bundle.js +5 -5
  60. public/dist/blocks.editor.bundle.css +213 -8
  61. public/dist/blocks.style.bundle.css +608 -13
  62. public/dist/dashboard.bundle.js +1 -1
  63. public/dist/frontend.bundle.css +56 -4
  64. public/dist/frontend.bundle.js +2 -2
  65. public/dist/global.bundle.css +182 -70
  66. readme.txt +144 -12
admin/api/UnlockPage.php CHANGED
@@ -3,7 +3,7 @@
3
  * Unlock Coming Soon Page
4
  *
5
  * @package coming-soon-blocks
6
- * @version 1.0.0
7
  * @author Helder Vilela from Pixelthrone
8
  * @license GPL-3.0
9
  */
3
  * Unlock Coming Soon Page
4
  *
5
  * @package coming-soon-blocks
6
+ * @version 1.1.0
7
  * @author Helder Vilela from Pixelthrone
8
  * @license GPL-3.0
9
  */
admin/blocks/Init.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Init gutenberg blocks.
4
  *
5
  * @package Coming Soon Blocks
6
  * @author Helder Vilela from Pixelthrone
@@ -65,6 +65,13 @@ class Init {
65
  return;
66
  }
67
 
 
 
 
 
 
 
 
68
  add_action( 'rest_insert_' . Plugin::get_slug(), [ $this, 'post_updated_on_rest' ], 10, 2 );
69
  add_action( 'post_updated', [ $this, 'post_updated_on_admin' ], 10, 3 );
70
 
@@ -84,7 +91,6 @@ class Init {
84
  add_action( 'admin_init', [ $this, 'admin_init' ] );
85
  add_action( 'after_setup_theme', [ $this, 'after_setup_theme' ], 99 );
86
  add_action( 'enqueue_block_editor_assets', [ $this, 'localization' ] );
87
- add_action( 'admin_footer', [ $this, 'admin_footer' ] );
88
  }
89
  add_action( 'init', [ $this, 'init' ] );
90
  }
@@ -287,7 +293,6 @@ class Init {
287
 
288
  wp_script_add_data( $this->slug . '-editor', 'data', implode( $content, ' ' ) );
289
 
290
-
291
  // Check if this function exists.
292
  if ( ! function_exists( 'wp_set_script_translations' ) ) {
293
  return;
@@ -297,15 +302,37 @@ class Init {
297
  }
298
 
299
  /**
300
- * Add extra markup.
301
  *
302
  * @access public
 
303
  */
304
- public
305
- function admin_footer() {}
306
- }
 
 
 
 
 
 
 
 
 
 
 
 
307
 
308
- if ( Plugin::has_gutenberg() ) {
309
- new Init();
 
 
 
 
 
310
  }
311
 
 
 
 
 
1
  <?php
2
  /**
3
+ * Init editor block.
4
  *
5
  * @package Coming Soon Blocks
6
  * @author Helder Vilela from Pixelthrone
65
  return;
66
  }
67
 
68
+ // Check is is classic editor page
69
+ if ( Utils\is_post_type_page( Plugin::get_slug() ) && Utils\is_classic_editor_page() ) {
70
+ add_action( 'admin_notices', [$this, 'block_editor_notice']);
71
+ return;
72
+ }
73
+
74
+ // Update post on rest api call
75
  add_action( 'rest_insert_' . Plugin::get_slug(), [ $this, 'post_updated_on_rest' ], 10, 2 );
76
  add_action( 'post_updated', [ $this, 'post_updated_on_admin' ], 10, 3 );
77
 
91
  add_action( 'admin_init', [ $this, 'admin_init' ] );
92
  add_action( 'after_setup_theme', [ $this, 'after_setup_theme' ], 99 );
93
  add_action( 'enqueue_block_editor_assets', [ $this, 'localization' ] );
 
94
  }
95
  add_action( 'init', [ $this, 'init' ] );
96
  }
293
 
294
  wp_script_add_data( $this->slug . '-editor', 'data', implode( $content, ' ' ) );
295
 
 
296
  // Check if this function exists.
297
  if ( ! function_exists( 'wp_set_script_translations' ) ) {
298
  return;
302
  }
303
 
304
  /**
305
+ * Display notice if Gutenberg is not installed or activated.
306
  *
307
  * @access public
308
+ * @since 1.1.0
309
  */
310
+ public function block_editor_notice() {
311
+ $edit_url = get_edit_post_link( get_the_ID(), 'raw' );
312
+
313
+ if ( did_action( 'enqueue_block_editor_assets' ) ) {
314
+ // Block Editor is loading, switch to Classic Editor.
315
+ $edit_url = add_query_arg( 'classic-editor', $edit_url );
316
+ $link_text = __( 'Switch to Classic Editor', 'classic-editor' );
317
+ } else {
318
+ // Switch to Block Editor.
319
+ $edit_url = remove_query_arg( 'classic-editor', $edit_url );
320
+ $link_text = __( 'Switch to Block Editor', 'classic-editor' );
321
+ }
322
+
323
+ // Forget the previous value when going to a specific editor.
324
+ $edit_url = add_query_arg( 'classic-editor__forget', '', $edit_url );
325
 
326
+ ?>
327
+ <div class="notice notice-warning" style="border-left: 4px solid #ffb900;">
328
+ <h2 class="title" style="margin-bottom: 0;"><?php esc_html_e( 'Oops, we\'re in the wrong editor.', 'coming-soon-blocks' ); ?></h2>
329
+ <p><?php printf( esc_html__( '%sSwitch to Block Editor%s to start creating your coming soon pages.', 'coming-soon-blocks' ), '<a href="'.$edit_url.'" class="button">', '</a>' ); ?></p>
330
+ </div>
331
+ <?php
332
+ }
333
  }
334
 
335
+ new Init();
336
+
337
+
338
+ http://comingsoon-blocks.single.pixelthrone.local/wp-admin/post.php?post=16&action=edit&classic-editor__forget
admin/blocks/_available/temp-01/attributes.php CHANGED
@@ -57,15 +57,15 @@ return [
57
  ],
58
  'titleTypo' => [
59
  'type' => 'string',
60
- 'default' => '{"fontfamily":"Vollkorn","variants":["regular","italic","600","600italic","700","700italic","900","900italic"],"desktop":{"fontweight":"italic","fontsize":30,"lineheight":130,"letterspacing":0},"mobile":{"fontweight":"regular","fontsize":16,"lineheight":100,"letterspacing":0}}',
61
  ],
62
  'subtitleTypo' => [
63
  'type' => 'string',
64
- 'default' => '{"fontfamily":"Montserrat","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"desktop":{"fontweight":"600","fontsize":13,"lineheight":100,"letterspacing":0},"mobile":{"fontweight":"100","fontsize":16,"lineheight":100,"letterspacing":0}}',
65
  ],
66
  'bodyTypo' => [
67
  'type' => 'string',
68
- 'default' => '{"fontfamily":"Montserrat","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"desktop":{"fontweight":"300","fontsize":14,"lineheight":145,"letterspacing":0},"mobile":{"fontweight":"100","fontsize":16,"lineheight":100,"letterspacing":0}}',
69
  ],
70
  'background' => [
71
  'type' => 'string',
57
  ],
58
  'titleTypo' => [
59
  'type' => 'string',
60
+ 'default' => '{"fontfamily":"Vollkorn","variants":["regular","italic","600","600italic","700","700italic","900","900italic"],"desktop":{"fontweight":"italic","fontsize":30,"lineheight":130,"letterspacing":0},"mobile":{"fontweight":"italic","fontsize":30,"lineheight":130,"letterspacing":0}}',
61
  ],
62
  'subtitleTypo' => [
63
  'type' => 'string',
64
+ 'default' => '{"fontfamily":"Montserrat","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"desktop":{"fontweight":"600","fontsize":13,"lineheight":150,"letterspacing":0},"mobile":{"fontweight":"600","fontsize":13,"lineheight":150,"letterspacing":0}}',
65
  ],
66
  'bodyTypo' => [
67
  'type' => 'string',
68
+ 'default' => '{"fontfamily":"Montserrat","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"desktop":{"fontweight":"300","fontsize":14,"lineheight":145,"letterspacing":0},"mobile":{"fontweight":"300","fontsize":14,"lineheight":145,"letterspacing":0}}',
69
  ],
70
  'background' => [
71
  'type' => 'string',
admin/blocks/_available/temp-01/render.php CHANGED
@@ -8,6 +8,12 @@ use Pixelthrone\ComingSoon_Blocks\Utils;
8
  * @return false|string
9
  */
10
  return function( $attributes, $content ) {
 
 
 
 
 
 
11
  $blockID = uniqid('block__');
12
 
13
  /**
@@ -33,7 +39,7 @@ return function( $attributes, $content ) {
33
  ?>
34
  <main data-blockid="<?php echo $blockID; ?>" data-block="pixelthrone/comingsoon--temp-01">
35
 
36
- <div class="content__container" style="color:<?php echo esc_attr($attributes['textColor']); ?> ">
37
  <div class="brand__wrapper">
38
  <img style="max-width: <?php echo esc_attr($attributes['logoMaxWidth']) ?>px"
39
  class="-<?php echo esc_attr($attributes['logoAlign']) ?>-align"
8
  * @return false|string
9
  */
10
  return function( $attributes, $content ) {
11
+
12
+ // Not render on backend
13
+ if( is_admin() ) {
14
+ return null;
15
+ }
16
+
17
  $blockID = uniqid('block__');
18
 
19
  /**
39
  ?>
40
  <main data-blockid="<?php echo $blockID; ?>" data-block="pixelthrone/comingsoon--temp-01">
41
 
42
+ <div class="content__container" style="color:<?php echo esc_attr($attributes['textColor']); ?>">
43
  <div class="brand__wrapper">
44
  <img style="max-width: <?php echo esc_attr($attributes['logoMaxWidth']) ?>px"
45
  class="-<?php echo esc_attr($attributes['logoAlign']) ?>-align"
admin/blocks/_available/temp-01/styles/editor.scss ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-01"] {
2
+
3
+ // Block Wrapper
4
+ main[data-block="pixelthrone/comingsoon--temp-01"] {
5
+ //margin-top: -17px;
6
+ //transform: translateY(3px);
7
+ height: calc(100vh - 146px);
8
+ }
9
+
10
+ }
admin/blocks/_available/temp-01/styles/style.scss ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $image-height: 230px;
2
+ $max-width: 1170px;
3
+ main[data-block="pixelthrone/comingsoon--temp-01"] {
4
+ height: 100vh;
5
+ width: 100%;
6
+ display: flex;
7
+ flex-direction: column;
8
+ flex-wrap: nowrap;
9
+ justify-content: flex-end;
10
+ align-items: center;
11
+ padding-bottom: 15px;
12
+ position: relative;
13
+ box-sizing: border-box;
14
+
15
+ /**
16
+ * Content
17
+ */
18
+ .content__container {
19
+ position: relative;
20
+ width: 100%;
21
+ max-width: $max-width;
22
+ padding: 0 50px;
23
+ display: grid;
24
+ grid-gap: 10px 40px;
25
+ grid-template-rows: auto auto auto;
26
+ grid-template-columns: 1fr 2fr 1fr;
27
+ z-index: 2;
28
+ box-sizing: border-box;
29
+
30
+ @include media(tablet-portrait) {
31
+ grid-template-rows: auto auto auto;
32
+ grid-template-columns: 1fr;
33
+ grid-gap: 10px;
34
+ }
35
+ @include media(mobile) {
36
+ padding: 0 30px;
37
+ }
38
+
39
+ // Brand
40
+ .brand__wrapper {
41
+ grid-column-start: 1;
42
+ grid-row-start: 1;
43
+
44
+ @include media(tablet-portrait) {
45
+ padding-bottom: 20px;
46
+ }
47
+
48
+ button {
49
+ &.-left-align { margin-right: auto; }
50
+ &.-center-align { margin: 0 auto; }
51
+ &.-right-align { margin-left: auto; }
52
+ }
53
+
54
+ img {
55
+ max-width: 230px;
56
+ &.-left-align { margin-right: auto; }
57
+ &.-center-align { margin: 0 auto; }
58
+ &.-right-align { margin-left: auto; }
59
+
60
+ @include media(tablet-portrait) {
61
+ margin: 0 !important;
62
+ }
63
+ }
64
+
65
+ > * {
66
+ display: block;
67
+ @include media(tablet-portrait) {
68
+ margin: 0;
69
+ }
70
+ }
71
+
72
+ }
73
+ // Title
74
+ .title__wrapper {
75
+ grid-column-start: 1;
76
+ grid-row-start: 3;
77
+
78
+ h1 {
79
+ padding: 0;
80
+ margin: 0;
81
+ color: inherit;
82
+ }
83
+
84
+ @include media(tablet-portrait) {
85
+ grid-column-start: 1;
86
+ grid-row-start: 2;
87
+
88
+ h1 {
89
+ padding-bottom: 5px;
90
+ }
91
+ }
92
+ }
93
+ // Subtitle
94
+ .subtitle__wrapper {
95
+ grid-column-start: 2;
96
+ grid-row-start: 2;
97
+
98
+ h2 {
99
+ padding: 0;
100
+ margin: 0;
101
+ color: inherit;
102
+ }
103
+
104
+ @include media(tablet-portrait) {
105
+ grid-column-start: 1;
106
+ grid-row-start: 3;
107
+ }
108
+ }
109
+ // Description
110
+ .description__wrapper {
111
+ grid-column-start: 2;
112
+ grid-row-start: 3;
113
+
114
+ @include media(tablet-portrait) {
115
+ grid-column-start: 1;
116
+ grid-row-start: 4;
117
+ }
118
+
119
+ p {
120
+ padding: 0;
121
+ margin: 0;
122
+ @extend %inherit-typography ;
123
+
124
+ &.copyright {
125
+ margin-top: 30px;
126
+ margin-bottom: 30px;
127
+ opacity: 0.6;
128
+ font-size: 0.8em !important;
129
+
130
+ @include media(tablet-portrait) {
131
+ margin-top: 15px;
132
+ }
133
+ @include media(mobile) {
134
+ margin-bottom: 15px;
135
+ }
136
+
137
+ a {
138
+ color: inherit;
139
+ font-weight: 500;
140
+ text-decoration: none;
141
+ border-bottom: 1px solid;
142
+ padding-bottom: 2px;
143
+
144
+ &:hover { border-bottom: none; }
145
+ }
146
+ }
147
+ }
148
+
149
+ }
150
+ // Social
151
+ .social__wrapper {
152
+ grid-column-start: 3;
153
+ grid-row-start: 3;
154
+
155
+ @include media(tablet-portrait) {
156
+ grid-column-start: 1;
157
+ grid-row-start: 5;
158
+ padding-bottom: 10px;
159
+ margin-left: -15px;
160
+ }
161
+
162
+ > div {
163
+ margin-left: auto;
164
+ justify-content: flex-end;
165
+
166
+ @include media(tablet-portrait) {
167
+ justify-content: flex-start;
168
+ }
169
+ }
170
+ }
171
+ }
172
+ }
173
+
admin/blocks/_available/temp-02/attributes.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ use Pixelthrone\ComingSoon_Blocks\Plugin;
4
+
5
+ return [
6
+ 'align' => [
7
+ 'type' => 'string',
8
+ 'default' => 'full'
9
+ ],
10
+ 'logo' => [
11
+ 'type' => 'string',
12
+ 'default' => json_encode( [
13
+ 'id' => '',
14
+ 'url' => Plugin::get_cdn_url( 'logo--02.png' ),
15
+ ] ),
16
+ ],
17
+ 'logoMaxWidth' => [
18
+ 'type' => 'number',
19
+ 'default' => 200,
20
+ ],
21
+ 'additionalText' => [
22
+ 'type' => 'string',
23
+ 'default' => ''
24
+ ],
25
+ 'copyrightText' => [
26
+ 'type' => 'string',
27
+ 'default' => '© 2018<br>All Rights Reserved.'
28
+ ],
29
+ 'textColor' => [
30
+ 'type' => 'string',
31
+ 'default' => '#fff'
32
+ ],
33
+ 'bodyTypo' => [
34
+ 'type' => 'string',
35
+ 'default' => '{"fontfamily":"Montserrat","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"desktop":{"fontweight":"regular","fontsize":12,"lineheight":170,"letterspacing":0},"mobile":{"fontweight":"regular","fontsize":12,"lineheight":170,"letterspacing":0}}',
36
+ ],
37
+ 'overlay' => [
38
+ 'type' => 'string',
39
+ 'default' => json_encode( [
40
+ 'color' => '#000000',
41
+ 'opacity' => 0,
42
+ ] )
43
+ ],
44
+ 'background' => [
45
+ 'type' => 'string',
46
+ 'default' => json_encode( [
47
+ 'type' => 'color',
48
+ 'image' => [],
49
+ 'gallery' => [],
50
+ 'video' => [],
51
+ 'color' => '#0D1215'
52
+ ] ),
53
+ ]
54
+ ];
admin/blocks/_available/temp-02/media/thumb.jpg ADDED
Binary file
admin/blocks/_available/temp-02/render.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ use Pixelthrone\ComingSoon_Blocks\Utils;
3
+
4
+ /**
5
+ * @param $attributes
6
+ * @param $content
7
+ *
8
+ * @return false|string
9
+ */
10
+ return function( $attributes, $content ) {
11
+
12
+ // Not render on backend
13
+ if( is_admin() ) {
14
+ return null;
15
+ }
16
+
17
+ $attributes = (object) $attributes;
18
+
19
+ $blockID = uniqid('block__');
20
+ $attributes->logo = json_decode( $attributes->logo );
21
+ $attributes->overlay = json_decode( $attributes->overlay );
22
+
23
+ /**
24
+ * Body CSS
25
+ */
26
+ $bodyTypo = json_decode($attributes->bodyTypo);
27
+ Utils\page_css( 'add', Utils\compile_block_css( $blockID, $bodyTypo, 'body__typography' ) );
28
+ Utils\page_fonts( 'add', $bodyTypo );
29
+
30
+ /**
31
+ * Output
32
+ */
33
+ ob_start();
34
+ // var_dump($attributes);
35
+ ?>
36
+ <main data-blockid="<?php echo $blockID; ?>" data-block="pixelthrone/comingsoon--temp-02">
37
+
38
+ <div class="brand__wrapper" style="color:<?php echo esc_attr($attributes->textColor); ?>">
39
+ <img style="max-width: <?php echo esc_attr($attributes->logoMaxWidth) ?>px"
40
+ src="<?php echo esc_url($attributes->logo->url) ?>"
41
+ >
42
+ <?php
43
+ if ( ! empty( $attributes->additionalText ) ) {
44
+ echo '<span class="-body__typography additional-text__wrapper"><p>' . Utils\esc_allowed_html( $attributes->additionalText ) . '</p></span>';
45
+ }
46
+ ?>
47
+ </div>
48
+
49
+ <?php if( ! empty($attributes->copyrightText) ): ?>
50
+ <div class="copyright__wrapper" style="color:<?php echo esc_attr($attributes->textColor); ?>">
51
+ <p class="-body__typography"><?php echo Utils\esc_allowed_html( $attributes->copyrightText ) ?></p>
52
+ </div>
53
+ <?php endif; ?>
54
+
55
+ <?php Utils\component('block-background-overlayer', ['overlayColor'=> $attributes->overlay->color, 'overlayOpacity' => $attributes->overlay->opacity ]) ?>
56
+ <?php Utils\component('block-background', ['background'=> $attributes->background ]) ?>
57
+ </main>
58
+ <?php
59
+ return ob_get_clean();
60
+ };
admin/blocks/_available/temp-02/styles/editor.scss ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-02"] {
2
+
3
+ // Block Wrapper
4
+ main[data-block="pixelthrone/comingsoon--temp-02"] {
5
+ //margin-top: -17px;
6
+ //transform: translateY(3px);
7
+ height: calc(100vh - 146px);
8
+ }
9
+
10
+ }
admin/blocks/_available/temp-02/styles/style.scss ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $image-height: 230px;
2
+ $max-width: 1170px;
3
+ main[data-block="pixelthrone/comingsoon--temp-02"] {
4
+ height: 100vh;
5
+ width: 100%;
6
+ display: flex;
7
+ flex-direction: column;
8
+ flex-wrap: nowrap;
9
+ justify-content: center;
10
+ align-items: center;
11
+ padding-bottom: 15px;
12
+ position: relative;
13
+ box-sizing: border-box;
14
+
15
+ /**
16
+ * Brand
17
+ */
18
+ .brand__wrapper {
19
+ position: relative;
20
+ z-index: 10;
21
+ > button {
22
+ margin: 0 auto 0 auto;
23
+ img {
24
+ display: inherit;
25
+ }
26
+ }
27
+ > img {
28
+ margin: 0 auto 0 auto;
29
+ display: inherit;
30
+
31
+ @include media(mobile) {
32
+ max-width: 80vw !important;
33
+ height: auto;
34
+ }
35
+ }
36
+
37
+ .additional-text__wrapper {
38
+ display: block;
39
+ width: 100%;
40
+ padding-top: 30px;
41
+ text-align: center;
42
+
43
+ @include media(mobile) {
44
+ padding: 20px 50px 0 50px;
45
+ box-sizing: border-box;
46
+ }
47
+
48
+ p {
49
+ @extend %inherit-typography;
50
+ padding: 0;
51
+ margin: 0;
52
+ font-size: 1.2em !important;
53
+ }
54
+ }
55
+ }
56
+
57
+ /**
58
+ * Copyright
59
+ */
60
+ .copyright__wrapper {
61
+ position: absolute;
62
+ bottom: 30px;
63
+ left: 0;
64
+ width: 100%;
65
+ text-align: center;
66
+ padding: 0 30px;
67
+ margin: 0;
68
+ z-index: 10;
69
+ box-sizing: border-box;
70
+ p {
71
+ padding: 0;
72
+ margin: 0;
73
+ }
74
+ @include media(mobile) {
75
+ bottom: 15px;
76
+ }
77
+ }
78
+
79
+ }
80
+
admin/blocks/_available/temp-03/attributes.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ use Pixelthrone\ComingSoon_Blocks\Plugin;
4
+
5
+ return [
6
+ 'align' => [
7
+ 'type' => 'string',
8
+ 'default' => 'full'
9
+ ],
10
+ 'logo' => [
11
+ 'type' => 'string',
12
+ 'default' => json_encode( [
13
+ 'id' => '',
14
+ 'url' => Plugin::get_cdn_url( 'logo--01.png' ),
15
+ ] ),
16
+ ],
17
+ 'logoMaxWidth' => [
18
+ 'type' => 'number',
19
+ 'default' => 150,
20
+ ],
21
+ 'contentMaxWidth' => [
22
+ 'type' => 'number',
23
+ 'default' => 690,
24
+ ],
25
+ 'titleText' => [
26
+ 'type' => 'string',
27
+ 'default' => 'Only those who attempt the absurd will achieve the IMPOSSIBLE.'
28
+ ],
29
+ 'subtitleText' => [
30
+ 'type' => 'string',
31
+ 'default' => 'We will be online soon.'
32
+ ],
33
+ 'copyrightText' => [
34
+ 'type' => 'string',
35
+ 'default' => '© 2018 PixelThrone<br>— All rights reserved.'
36
+ ],
37
+ 'textColor' => [
38
+ 'type' => 'string',
39
+ 'default' => '#fff'
40
+ ],
41
+ 'titleTypo' => [
42
+ 'type' => 'string',
43
+ 'default' => '{"fontfamily":"Work Sans","variants":["100","200","300","regular","500","600","700","800","900"],"desktop":{"fontweight":"900","fontsize":50,"lineheight":120,"letterspacing":1},"mobile":{"fontweight":"700","fontsize":30,"lineheight":120,"letterspacing":0}}',
44
+ ],
45
+ 'subtitleTypo' => [
46
+ 'type' => 'string',
47
+ 'default' => '{"fontfamily":"Vollkorn","variants":["regular","italic","600","600italic","700","700italic","900","900italic"],"desktop":{"fontweight":"italic","fontsize":25,"lineheight":170,"letterspacing":0},"mobile":{"fontweight":"italic","fontsize":20,"lineheight":170,"letterspacing":0}}',
48
+ ],
49
+ 'bodyTypo' => [
50
+ 'type' => 'string',
51
+ 'default' => '{"fontfamily":"Work Sans","variants":["100","200","300","regular","500","600","700","800","900"],"desktop":{"fontweight":"regular","fontsize":13,"lineheight":150,"letterspacing":0},"mobile":{"fontweight":"regular","fontsize":12,"lineheight":150,"letterspacing":0}}',
52
+ ],
53
+ 'networks' => [
54
+ 'type' => 'string',
55
+ 'default' => '[]',
56
+ ],
57
+ 'overlay' => [
58
+ 'type' => 'string',
59
+ 'default' => json_encode( [
60
+ 'color' => '#000000',
61
+ 'opacity' => 30,
62
+ ] )
63
+ ],
64
+ 'background' => [
65
+ 'type' => 'string',
66
+ 'default' => json_encode( [
67
+ 'type' => 'image',
68
+ 'image' => [
69
+ 'id' => '',
70
+ 'full' => Plugin::get_cdn_url('temp-03--bg.jpg'),
71
+ 'thumb' => '',
72
+ ],
73
+ 'gallery' => [],
74
+ 'video' => [],
75
+ 'color' => '#0D1215'
76
+ ] ),
77
+ ]
78
+ ];
admin/blocks/_available/temp-03/media/thumb.jpg ADDED
Binary file
admin/blocks/_available/temp-03/render.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ use Pixelthrone\ComingSoon_Blocks\Utils;
3
+
4
+ /**
5
+ * @param $attributes
6
+ * @param $content
7
+ *
8
+ * @return false|string
9
+ */
10
+ return function( $attributes, $content ) {
11
+
12
+ // Not render on backend
13
+ if( is_admin() ) {
14
+ return null;
15
+ }
16
+
17
+ $attributes = (object) $attributes;
18
+
19
+ $blockID = uniqid('block__');
20
+ $attributes->logo = json_decode( $attributes->logo );
21
+ $attributes->overlay = json_decode( $attributes->overlay );
22
+
23
+ /**
24
+ * Body CSS
25
+ */
26
+ $titleTypo = json_decode($attributes->titleTypo);
27
+ Utils\page_fonts( 'add', $titleTypo );
28
+ Utils\page_css( 'add', Utils\compile_block_css( $blockID, $titleTypo, 'title__typography' ) );
29
+
30
+ $subtitleTypo = json_decode($attributes->subtitleTypo);
31
+ Utils\page_fonts( 'add', $subtitleTypo );
32
+ Utils\page_css( 'add', Utils\compile_block_css( $blockID, $subtitleTypo, 'subtitle__typography' ) );
33
+
34
+ $bodyTypo = json_decode($attributes->bodyTypo);
35
+ Utils\page_fonts( 'add', $bodyTypo );
36
+ Utils\page_css( 'add', Utils\compile_block_css( $blockID, $bodyTypo, 'body__typography' ) );
37
+
38
+ /**
39
+ * Output
40
+ */
41
+ ob_start();
42
+ // var_dump($attributes);
43
+ ?>
44
+ <main data-blockid="<?php echo $blockID; ?>" data-block="pixelthrone/comingsoon--temp-03">
45
+
46
+ <div class="brand__wrapper">
47
+ <img style="max-width: <?php echo esc_attr($attributes->logoMaxWidth) ?>px"
48
+ src="<?php echo esc_url($attributes->logo->url) ?>">
49
+ </div>
50
+
51
+ <div class="content__wrapper" style="color:<?php echo esc_attr($attributes->textColor) ?>; max-width:<?php echo esc_attr($attributes->contentMaxWidth) ?>px;">
52
+ <?php if( ! empty($attributes->networks) && $attributes->networks !== '[]' ): ?>
53
+ <div class="social__wrapper">
54
+ <?php Utils\component('social-icons', ['networks'=> $attributes->networks]) ?>
55
+ </div>
56
+ <?php endif; ?>
57
+
58
+ <?php
59
+ if( ! empty($attributes->titleText) ) echo '<h1 class="-title__typography">'.Utils\esc_allowed_html($attributes->titleText).'</h1>';
60
+ if( ! empty($attributes->subtitleText) ) echo '<h2 class="-subtitle__typography">'.Utils\esc_allowed_html($attributes->subtitleText).'</h2>';
61
+ if( ! empty($attributes->copyrightText) ) echo '<p class="-body__typography">'.Utils\esc_allowed_html($attributes->copyrightText).'</p>';
62
+ ?>
63
+ </div>
64
+
65
+ <?php Utils\component('block-background-overlayer', ['overlayColor'=> $attributes->overlay->color, 'overlayOpacity' => $attributes->overlay->opacity ]) ?>
66
+ <?php Utils\component('block-background', ['background'=> $attributes->background ]) ?>
67
+ </main>
68
+ <?php
69
+ return ob_get_clean();
70
+ };
admin/blocks/_available/temp-03/styles/editor.scss ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-03"] {
2
+
3
+ // Block Wrapper
4
+ main[data-block="pixelthrone/comingsoon--temp-03"] {
5
+ //margin-top: -17px;
6
+ //transform: translateY(3px);
7
+ height: calc(100vh - 146px);
8
+ }
9
+
10
+ }
admin/blocks/_available/temp-03/styles/style.scss ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $image-height: 230px;
2
+ $max-width: 1170px;
3
+ main[data-block="pixelthrone/comingsoon--temp-03"] {
4
+ height: 100vh;
5
+ width: 100%;
6
+ position: relative;
7
+ box-sizing: border-box;
8
+
9
+ display: flex;
10
+ flex-direction: row;
11
+ flex-wrap: nowrap;
12
+ justify-content: flex-start;
13
+ align-items: center;
14
+
15
+ @include media(mobile) {
16
+ flex-direction: column;
17
+ align-items: flex-start;
18
+ }
19
+
20
+ /**
21
+ * Brand
22
+ */
23
+ .brand__wrapper {
24
+ z-index: 10;
25
+ position: absolute;
26
+ top: 30px;
27
+ right: 30px;
28
+
29
+ @include media(mobile) {
30
+ right: auto;
31
+ left: auto;
32
+ position: relative;
33
+ padding-left: 30px;
34
+ margin-bottom: 60px;
35
+ }
36
+ }
37
+
38
+ /**
39
+ * Content
40
+ */
41
+ .content__wrapper {
42
+ position: relative;
43
+ z-index: 10;
44
+ padding-left: 100px;
45
+ box-sizing: content-box;
46
+
47
+ display: flex;
48
+ flex-direction: column;
49
+ flex-wrap: nowrap;
50
+ justify-content: flex-start;
51
+ align-items: flex-start;
52
+
53
+ @include media(tablet-portrait) {
54
+ padding-left: 60px;
55
+ }
56
+ @include media(mobile) {
57
+ padding-left: 30px;
58
+ padding-right: 15px;
59
+ flex-grow: 1;
60
+
61
+ display: flex;
62
+ flex-direction: column;
63
+ flex-wrap: wrap;
64
+ justify-content: flex-start;
65
+ align-items: flex-start;
66
+ }
67
+
68
+ .social__wrapper {
69
+ display: block;
70
+ height: 60px;
71
+ width: auto;
72
+ margin-left: -10px;
73
+
74
+ button[data-empty="true"] {
75
+ right: -40px;
76
+ }
77
+ }
78
+
79
+ h1 {
80
+ padding: 0;
81
+ margin: 0;
82
+ color: inherit;
83
+ width: 100%;
84
+ }
85
+
86
+ h3 {
87
+ padding: 0;
88
+ margin: 0;
89
+ color: inherit;
90
+ margin-top: 10px;
91
+ width: 100%;
92
+ }
93
+
94
+ p {
95
+ padding: 0;
96
+ margin: 50px 0 0 0;
97
+ color: inherit;
98
+ width: 100%;
99
+
100
+ @include media(mobile) {
101
+ padding-bottom: 15px;
102
+ flex-grow: 1;
103
+ display: flex;
104
+ flex-direction: row;
105
+ flex-wrap: nowrap;
106
+ justify-content: flex-start;
107
+ align-items: flex-end;
108
+
109
+ }
110
+ }
111
+ }
112
+
113
+ }
114
+
admin/blocks/_available/temp-04/attributes.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ use Pixelthrone\ComingSoon_Blocks\Plugin;
4
+
5
+ return [
6
+ 'align' => [
7
+ 'type' => 'string',
8
+ 'default' => 'full'
9
+ ],
10
+ 'logo' => [
11
+ 'type' => 'string',
12
+ 'default' => json_encode( [
13
+ 'id' => '',
14
+ 'url' => Plugin::get_cdn_url( 'logo--03.png' ),
15
+ ] ),
16
+ ],
17
+ 'logoMaxWidth' => [
18
+ 'type' => 'number',
19
+ 'default' => 150,
20
+ ],
21
+ 'contentMaxWidth' => [
22
+ 'type' => 'number',
23
+ 'default' => 690,
24
+ ],
25
+ 'titleText' => [
26
+ 'type' => 'string',
27
+ 'default' => 'Coming Soon'
28
+ ],
29
+ 'additionalText' => [
30
+ 'type' => 'string',
31
+ 'default' => ''
32
+ ],
33
+ 'subtitleText' => [
34
+ 'type' => 'string',
35
+ 'default' => esc_html__( 'IF YOU DO IT RIGHT, IT WILL LAST FOREVER.', 'coming-soon-blocks' )
36
+ ],
37
+ 'networksText' => [
38
+ 'type' => 'string',
39
+ 'default' => esc_html__( 'STAY IN TOUCH', 'coming-soon-blocks' )
40
+ ],
41
+ 'copyrightText' => [
42
+ 'type' => 'string',
43
+ 'default' => '© 2018<br>All rights reserved.'
44
+ ],
45
+ 'textColor' => [
46
+ 'type' => 'string',
47
+ 'default' => '#fff'
48
+ ],
49
+ 'titleTypo' => [
50
+ 'type' => 'string',
51
+ 'default' => '{"fontfamily":"Work Sans","variants":["100","200","300","regular","500","600","700","800","900"],"desktop":{"fontweight":"900","fontsize":80,"lineheight":120,"letterspacing":1},"mobile":{"fontweight":"900","fontsize":45,"lineheight":100,"letterspacing":1}}',
52
+ ],
53
+ 'subtitleTypo' => [
54
+ 'type' => 'string',
55
+ 'default' => '{"fontfamily":"Montserrat","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"desktop":{"fontweight":"500","fontsize":12,"lineheight":150,"letterspacing":1},"mobile":{"fontweight":"500","fontsize":12,"lineheight":150,"letterspacing":1}}',
56
+ ],
57
+ 'bodyTypo' => [
58
+ 'type' => 'string',
59
+ 'default' => '{"fontfamily":"Montserrat","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"desktop":{"fontweight":"300","fontsize":12,"lineheight":150,"letterspacing":0},"mobile":{"fontweight":"300","fontsize":12,"lineheight":150,"letterspacing":0}}',
60
+ ],
61
+ 'networks' => [
62
+ 'type' => 'string',
63
+ 'default' => '[]',
64
+ ],
65
+ 'overlay' => [
66
+ 'type' => 'string',
67
+ 'default' => json_encode( [
68
+ 'color' => '#000000',
69
+ 'opacity' => 30,
70
+ ] )
71
+ ],
72
+ 'background' => [
73
+ 'type' => 'string',
74
+ 'default' => json_encode( [
75
+ 'type' => 'image',
76
+ 'image' => [
77
+ 'id' => '',
78
+ 'full' => Plugin::get_cdn_url('temp-04--bg.jpg'),
79
+ 'thumb' => '',
80
+ ],
81
+ 'gallery' => [],
82
+ 'video' => [],
83
+ 'color' => '#0D1215'
84
+ ] ),
85
+ ]
86
+ ];
admin/blocks/_available/temp-04/media/thumb.jpg ADDED
Binary file
admin/blocks/_available/temp-04/render.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ use Pixelthrone\ComingSoon_Blocks\Utils;
4
+
5
+ /**
6
+ * @param $attributes
7
+ * @param $content
8
+ *
9
+ * @return false|string
10
+ */
11
+ return function ( $attributes, $content ) {
12
+
13
+ // Not render on backend
14
+ if ( is_admin() ) {
15
+ return null;
16
+ }
17
+
18
+ $attributes = (object) $attributes;
19
+
20
+ $blockID = uniqid( 'block__' );
21
+ $attributes->logo = json_decode( $attributes->logo );
22
+ $attributes->overlay = json_decode( $attributes->overlay );
23
+
24
+ /**
25
+ * Body CSS
26
+ */
27
+ $titleTypo = json_decode( $attributes->titleTypo );
28
+ Utils\page_fonts( 'add', $titleTypo );
29
+ Utils\page_css( 'add', Utils\compile_block_css( $blockID, $titleTypo, 'title__typography' ) );
30
+
31
+ $subtitleTypo = json_decode( $attributes->subtitleTypo );
32
+ Utils\page_fonts( 'add', $subtitleTypo );
33
+ Utils\page_css( 'add', Utils\compile_block_css( $blockID, $subtitleTypo, 'subtitle__typography' ) );
34
+
35
+ $bodyTypo = json_decode( $attributes->bodyTypo );
36
+ Utils\page_fonts( 'add', $bodyTypo );
37
+ Utils\page_css( 'add', Utils\compile_block_css( $blockID, $bodyTypo, 'body__typography' ) );
38
+
39
+ /**
40
+ * Output
41
+ */
42
+ ob_start();
43
+ // var_dump($attributes);
44
+ ?>
45
+ <main data-blockid="<?php echo $blockID; ?>"
46
+ data-block="pixelthrone/comingsoon--temp-04"
47
+ style="color:<?php echo esc_attr($attributes->textColor) ?>;">
48
+
49
+ <div class="top-content__wrapper"></div>
50
+
51
+ <div class="middle-content__wrapper" style="color:max-width:<?php echo esc_attr($attributes->contentMaxWidth) ?>px;">
52
+ <img style="max-width: <?php echo esc_attr( $attributes->logoMaxWidth ) ?>px"
53
+ src="<?php echo esc_url( $attributes->logo->url ) ?>">
54
+ <?php
55
+ if ( ! empty( $attributes->subtitleText ) ) {
56
+ echo '<h3 class="-subtitle__typography">' . Utils\esc_allowed_html( $attributes->subtitleText ) . '</h3>';
57
+ }
58
+ if ( ! empty( $attributes->titleText ) ) {
59
+ echo '<h1 class="-title__typography">' . Utils\esc_allowed_html( $attributes->titleText ) . '</h1>';
60
+ }
61
+ if ( ! empty( $attributes->additionalText ) ) {
62
+ echo '<span class="-body__typography additional-text__wrapper"><p>' . Utils\esc_allowed_html( $attributes->additionalText ) . '</p></span>';
63
+ }
64
+ ?>
65
+ </div>
66
+
67
+ <div class="bottom-content__wrapper">
68
+ <?php
69
+ if ( ! empty( $attributes->networksText ) ) {
70
+ echo '<h3 class="-subtitle__typography">' . Utils\esc_allowed_html( $attributes->networksText ) . '</h3>';
71
+ }
72
+ ?>
73
+ <?php if ( ! empty( $attributes->networks ) && $attributes->networks !== '[]' ): ?>
74
+ <div class="social__wrapper">
75
+ <?php Utils\component( 'social-icons', [ 'networks' => $attributes->networks ] ) ?>
76
+ </div>
77
+ <?php endif; ?>
78
+ <?php
79
+ if ( ! empty( $attributes->copyrightText ) ) {
80
+ echo '<p class="-body__typography">' . Utils\esc_allowed_html( $attributes->copyrightText ) . '</p>';
81
+ }
82
+ ?>
83
+ </div>
84
+
85
+ <?php Utils\component( 'block-background-overlayer', [ 'overlayColor' => $attributes->overlay->color, 'overlayOpacity' => $attributes->overlay->opacity ] ) ?>
86
+ <?php Utils\component( 'block-background', [ 'background' => $attributes->background ] ) ?>
87
+ </main>
88
+ <?php
89
+ return ob_get_clean();
90
+ };
admin/blocks/_available/temp-04/styles/editor.scss ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-04"] {
2
+
3
+ // Block Wrapper
4
+ main[data-block="pixelthrone/comingsoon--temp-04"] {
5
+ height: calc(100vh - 146px);
6
+ }
7
+
8
+ }
admin/blocks/_available/temp-04/styles/style.scss ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $image-height: 230px;
2
+ $max-width: 1170px;
3
+ main[data-block="pixelthrone/comingsoon--temp-04"] {
4
+ height: 100vh;
5
+ width: 100%;
6
+ position: relative;
7
+ box-sizing: border-box;
8
+
9
+ display: flex;
10
+ flex-direction: column;
11
+ flex-wrap: nowrap;
12
+ justify-content: space-between;
13
+ align-items: center;
14
+
15
+ /**
16
+ * Middle
17
+ */
18
+ .middle-content__wrapper {
19
+ position: relative;
20
+ z-index: 10;
21
+ text-align: center;
22
+ padding-top: 30px;
23
+
24
+ @include media(mobile) {
25
+ padding-left: 20px;
26
+ padding-right: 20px;
27
+ padding-top: 20px;
28
+ }
29
+
30
+ button {
31
+ margin: 0 auto 0 auto;
32
+ img {
33
+ margin-bottom: 40px;
34
+ display: inherit;
35
+ }
36
+ }
37
+ > img {
38
+ margin: 0 auto 0 auto;
39
+ margin-bottom: 40px;
40
+ display: inherit;
41
+ }
42
+ h3 {
43
+ padding: 0;
44
+ margin: 0;
45
+ color: inherit;
46
+ margin-bottom: 5px;
47
+ }
48
+ h1 {
49
+ padding: 0;
50
+ margin: 0;
51
+ color: inherit;
52
+ }
53
+ .additional-text__wrapper {
54
+ display: block;
55
+ width: 100%;
56
+ padding-top: 20px;
57
+ p {
58
+ @extend %inherit-typography;
59
+ padding: 0;
60
+ margin: 0;
61
+ font-size: 1.2em !important;
62
+ }
63
+ }
64
+ }
65
+
66
+ /**
67
+ * Bottom
68
+ */
69
+ .bottom-content__wrapper {
70
+ position: relative;
71
+ z-index: 10;
72
+ padding-bottom: 30px;
73
+ text-align: center;
74
+
75
+ @include media(mobile) {
76
+ padding-bottom: 20px;
77
+ }
78
+
79
+ h3 {
80
+ padding: 0;
81
+ margin: 0;
82
+ color: inherit;
83
+ margin-top: 10px;
84
+ }
85
+
86
+ .social__wrapper {
87
+ width: auto;
88
+ margin-top: 10px;
89
+
90
+ div[data-component="social-icons"] {
91
+ justify-content: center;
92
+ width: auto;
93
+
94
+ button[data-empty="true"] {
95
+ right: 40px;
96
+ }
97
+ }
98
+
99
+ }
100
+
101
+ p {
102
+ padding: 0;
103
+ margin: 30px 0 0 0;
104
+ color: inherit;
105
+ }
106
+ }
107
+
108
+ }
109
+
admin/blocks/_available/temp-05/attributes.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ use Pixelthrone\ComingSoon_Blocks\Plugin;
4
+
5
+ return [
6
+ 'align' => [
7
+ 'type' => 'string',
8
+ 'default' => 'full'
9
+ ],
10
+ 'logo' => [
11
+ 'type' => 'string',
12
+ 'default' => json_encode( [
13
+ 'id' => '',
14
+ 'url' => Plugin::get_cdn_url( 'logo--04.png' ),
15
+ ] ),
16
+ ],
17
+ 'logoMaxWidth' => [
18
+ 'type' => 'number',
19
+ 'default' => 150,
20
+ ],
21
+ 'contentMaxWidth' => [
22
+ 'type' => 'number',
23
+ 'default' => 845,
24
+ ],
25
+ 'titleText' => [
26
+ 'type' => 'string',
27
+ 'default' => 'Get Ready... <br>Our new website is Coming Very Soon!'
28
+ ],
29
+ 'subtitleText' => [
30
+ 'type' => 'string',
31
+ 'default' => 'Coming Soon'
32
+ ],
33
+ 'contactsText' => [
34
+ 'type' => 'string',
35
+ 'default' => 'hello@yourwebsite.com<br>+00 (000) 000-0000'
36
+ ],
37
+ 'copyrightText' => [
38
+ 'type' => 'string',
39
+ 'default' => '<strong>© 2018 PixelThrone<br></strong>— All rights reserved.'
40
+ ],
41
+ 'titleColor' => [
42
+ 'type' => 'string',
43
+ 'default' => '#FFC300'
44
+ ],
45
+ 'textColor' => [
46
+ 'type' => 'string',
47
+ 'default' => '#FFFFFF'
48
+ ],
49
+ 'titleTypo' => [
50
+ 'type' => 'string',
51
+ 'default' => '{"fontfamily":"Work Sans","variants":["100","200","300","regular","500","600","700","800","900"],"desktop":{"fontweight":"900","fontsize":80,"lineheight":120,"letterspacing":1},"mobile":{"fontweight":"900","fontsize":37,"lineheight":110,"letterspacing":1}}',
52
+ ],
53
+ 'subtitleTypo' => [
54
+ 'type' => 'string',
55
+ 'default' => '{"fontfamily":"Vollkorn","variants":["regular","italic","600","600italic","700","700italic","900","900italic"],"desktop":{"fontweight":"italic","fontsize":20,"lineheight":100,"letterspacing":1},"mobile":{"fontweight":"italic","fontsize":20,"lineheight":100,"letterspacing":1}}',
56
+ ],
57
+ 'bodyTypo' => [
58
+ 'type' => 'string',
59
+ 'default' => '{"fontfamily":"Work Sans","variants":["100","200","300","regular","500","600","700","800","900"],"desktop":{"fontweight":"regular","fontsize":12,"lineheight":150,"letterspacing":1},"mobile":{"fontweight":"regular","fontsize":12,"lineheight":150,"letterspacing":1}}',
60
+ ],
61
+ 'networks' => [
62
+ 'type' => 'string',
63
+ 'default' => '[]',
64
+ ],
65
+ 'overlay' => [
66
+ 'type' => 'string',
67
+ 'default' => json_encode( [
68
+ 'color' => '#000000',
69
+ 'opacity' => 10,
70
+ ] )
71
+ ],
72
+ 'background' => [
73
+ 'type' => 'string',
74
+ 'default' => json_encode( [
75
+ 'type' => 'image',
76
+ 'image' => [
77
+ 'id' => '',
78
+ 'full' => Plugin::get_cdn_url('temp-05--bg.jpg'),
79
+ 'thumb' => '',
80
+ ],
81
+ 'gallery' => [],
82
+ 'video' => [],
83
+ 'color' => '#000000'
84
+ ] ),
85
+ ]
86
+ ];
admin/blocks/_available/temp-05/media/thumb.jpg ADDED
Binary file
admin/blocks/_available/temp-05/render.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ use Pixelthrone\ComingSoon_Blocks\Utils;
4
+
5
+ /**
6
+ * @param $attributes
7
+ * @param $content
8
+ *
9
+ * @return false|string
10
+ */
11
+ return function ( $attributes, $content ) {
12
+
13
+ // Not render on backend
14
+ if ( is_admin() ) {
15
+ return null;
16
+ }
17
+
18
+ $attributes = (object) $attributes;
19
+
20
+ $blockID = uniqid( 'block__' );
21
+ $attributes->logo = json_decode( $attributes->logo );
22
+ $attributes->overlay = json_decode( $attributes->overlay );
23
+
24
+ /**
25
+ * Body CSS
26
+ */
27
+ $titleTypo = json_decode( $attributes->titleTypo );
28
+ Utils\page_fonts( 'add', $titleTypo );
29
+ Utils\page_css( 'add', Utils\compile_block_css( $blockID, $titleTypo, 'title__typography' ) );
30
+
31
+ $subtitleTypo = json_decode( $attributes->subtitleTypo );
32
+ Utils\page_fonts( 'add', $subtitleTypo );
33
+ Utils\page_css( 'add', Utils\compile_block_css( $blockID, $subtitleTypo, 'subtitle__typography' ) );
34
+
35
+ $bodyTypo = json_decode( $attributes->bodyTypo );
36
+ Utils\page_fonts( 'add', $bodyTypo );
37
+ Utils\page_css( 'add', Utils\compile_block_css( $blockID, $bodyTypo, 'body__typography' ) );
38
+
39
+ /**
40
+ * Output
41
+ */
42
+ ob_start();
43
+ // var_dump($attributes);
44
+ ?>
45
+ <main data-blockid="<?php echo $blockID; ?>"
46
+ data-block="pixelthrone/comingsoon--temp-05"
47
+ style="color:<?php echo esc_attr($attributes->textColor) ?>;">
48
+
49
+ <div class="top-content__wrapper"></div>
50
+
51
+ <div class="middle-content__wrapper" >
52
+ <?php if ( ! empty( $attributes->titleText ) ): ?>
53
+ <h1 style="color: <?php echo esc_attr($attributes->titleColor) ?>; max-width:<?php echo esc_attr($attributes->contentMaxWidth) ?>px;" class="-title__typography"><?php echo Utils\esc_allowed_html( $attributes->titleText ); ?></h1>
54
+ <?php endif; ?>
55
+ </div>
56
+
57
+ <div class="bottom-content__wrapper">
58
+ <div>
59
+ <img style="max-width: <?php echo esc_attr( $attributes->logoMaxWidth ) ?>px"
60
+ src="<?php echo esc_url( $attributes->logo->url ) ?>">
61
+
62
+ <?php
63
+ if ( ! empty( $attributes->subtitleText ) ) {
64
+ echo '<h3 class="-subtitle__typography">' . Utils\esc_allowed_html( $attributes->subtitleText ) . '</h3>';
65
+ }
66
+ ?>
67
+
68
+ <?php
69
+ if ( ! empty( $attributes->contactsText ) ) {
70
+ echo '<p class="contacts_wrapper -body__typography">' . Utils\esc_allowed_html( $attributes->contactsText ) . '</p>';
71
+ }
72
+ if ( ! empty( $attributes->copyrightText ) ) {
73
+ echo '<p class="copyright_wrapper -body__typography">' . Utils\esc_allowed_html( $attributes->copyrightText ) . '</p>';
74
+ }
75
+ ?>
76
+ </div>
77
+
78
+ <div>
79
+ <?php if ( ! empty( $attributes->networks ) && $attributes->networks !== '[]' ): ?>
80
+ <div class="social__wrapper">
81
+ <?php Utils\component( 'social-icons', [ 'networks' => $attributes->networks ] ) ?>
82
+ </div>
83
+ <?php endif; ?>
84
+ </div>
85
+
86
+
87
+
88
+ </div>
89
+
90
+ <?php Utils\component( 'block-background-overlayer', [ 'overlayColor' => $attributes->overlay->color, 'overlayOpacity' => $attributes->overlay->opacity ] ) ?>
91
+ <?php Utils\component( 'block-background', [ 'background' => $attributes->background ] ) ?>
92
+ </main>
93
+ <?php
94
+ return ob_get_clean();
95
+ };
admin/blocks/_available/temp-05/styles/editor.scss ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-05"] {
2
+
3
+ // Block Wrapper
4
+ main[data-block="pixelthrone/comingsoon--temp-05"] {
5
+ height: calc(100vh - 146px);
6
+ }
7
+
8
+ }
admin/blocks/_available/temp-05/styles/style.scss ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $image-height: 230px;
2
+ $max-width: 1170px;
3
+ main[data-block="pixelthrone/comingsoon--temp-05"] {
4
+ height: 100vh;
5
+ width: 100%;
6
+ position: relative;
7
+ box-sizing: border-box;
8
+
9
+ display: flex;
10
+ flex-direction: column;
11
+ flex-wrap: nowrap;
12
+ justify-content: space-between;
13
+ align-items: center;
14
+
15
+ @include media(mobile) {
16
+ flex-direction: column-reverse;
17
+ justify-content: flex-start;
18
+ align-items: flex-start;
19
+ }
20
+
21
+ /**
22
+ * Middle
23
+ */
24
+ .middle-content__wrapper {
25
+ position: relative;
26
+ z-index: 10;
27
+ text-align: center;
28
+ box-sizing: border-box;
29
+ padding-top: 50px;
30
+
31
+ @include media(mobile) {
32
+ text-align: left;
33
+ padding: 30px 25px 40px 25px;
34
+ }
35
+
36
+ h1 {
37
+ padding: 0;
38
+ margin: 0;
39
+ }
40
+ }
41
+
42
+ /**
43
+ * Bottom
44
+ */
45
+ .bottom-content__wrapper {
46
+ position: relative;
47
+ z-index: 10;
48
+ display: flex;
49
+ flex-direction: row;
50
+ flex-wrap: nowrap;
51
+ justify-content: space-between;
52
+ align-items: flex-end;
53
+ box-sizing: border-box;
54
+ width: 100%;
55
+ padding: 0 50px;
56
+ padding-bottom: 30px;
57
+
58
+ @include media(mobile) {
59
+ text-align: left;
60
+ padding: 30px 25px 0 25px;
61
+ flex-grow: 1;
62
+
63
+ flex-direction: column;
64
+ justify-content: flex-start;
65
+ align-items: flex-start;
66
+ }
67
+
68
+ // Copy
69
+ div:nth-of-type(1) {
70
+ img {
71
+ margin-bottom: 10px;
72
+ }
73
+ h3 {
74
+ padding: 0;
75
+ margin: 0;
76
+ color: inherit;
77
+ margin-top: 10px;
78
+ }
79
+ p {
80
+ padding: 0;
81
+ margin: 10px 0 0 0;
82
+ color: inherit;
83
+ &.contacts_wrapper { margin-top: 10px; }
84
+ &.copyright_wrapper { margin-top: 20px; }
85
+ }
86
+ }
87
+
88
+ // Social
89
+ div:nth-of-type(2) {
90
+ .social__wrapper {
91
+ width: auto;
92
+ margin-top: 10px;
93
+ padding-right: 40px;
94
+
95
+ @include media(mobile) {
96
+ margin-left: -15px;
97
+ }
98
+
99
+ div[data-component="social-icons"] {
100
+ justify-content: center;
101
+ width: auto;
102
+ button[data-empty="true"] {
103
+ right: -40px;
104
+ }
105
+ }
106
+ }
107
+ }
108
+
109
+ }
110
+
111
+ }
112
+
admin/blocks/available-blocks.json CHANGED
@@ -8,5 +8,45 @@
8
  },
9
  "script" : "",
10
  "render_callback" : true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  }
12
  ]
8
  },
9
  "script" : "",
10
  "render_callback" : true
11
+ },
12
+ {
13
+ "name" : "pixelthrone/comingsoon--temp-03",
14
+ "slug" : "temp-03",
15
+ "thumb" : {
16
+ "name" : "03",
17
+ "img" : "/admin/blocks/_available/temp-03/media/thumb.jpg"
18
+ },
19
+ "script" : "",
20
+ "render_callback" : true
21
+ },
22
+ {
23
+ "name" : "pixelthrone/comingsoon--temp-04",
24
+ "slug" : "temp-04",
25
+ "thumb" : {
26
+ "name" : "04",
27
+ "img" : "/admin/blocks/_available/temp-04/media/thumb.jpg"
28
+ },
29
+ "script" : "",
30
+ "render_callback" : true
31
+ },
32
+ {
33
+ "name" : "pixelthrone/comingsoon--temp-05",
34
+ "slug" : "temp-05",
35
+ "thumb" : {
36
+ "name" : "05",
37
+ "img" : "/admin/blocks/_available/temp-05/media/thumb.jpg"
38
+ },
39
+ "script" : "",
40
+ "render_callback" : true
41
+ },
42
+ {
43
+ "name" : "pixelthrone/comingsoon--temp-02",
44
+ "slug" : "temp-02",
45
+ "thumb" : {
46
+ "name" : "02",
47
+ "img" : "/admin/blocks/_available/temp-02/media/thumb.jpg"
48
+ },
49
+ "script" : "",
50
+ "render_callback" : true
51
  }
52
  ]
admin/blocks/styles/_vendor/easings.scss ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $easeInCubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
2
+ $easeOutCubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
3
+ $easeInOutCubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
4
+ $easeInCirc: cubic-bezier(0.600, 0.040, 0.980, 0.335);
5
+ $easeOutCirc: cubic-bezier(0.075, 0.820, 0.165, 1.000);
6
+ $easeInOutCirc: cubic-bezier(0.785, 0.135, 0.150, 0.860);
7
+ $easeInExpo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
8
+ $easeOutExpo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
9
+ $easeInOutExpo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
10
+ $easeInQuad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
11
+ $easeOutQuad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
12
+ $easeInOutQuad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
13
+ $easeInQuart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
14
+ $easeOutQuart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
15
+ $easeInOutQuart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
16
+ $easeInQuint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
17
+ $easeOutQuint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
18
+ $easeInOutQuint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
19
+ $easeInSine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
20
+ $easeOutSine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
21
+ $easeInOutSine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
22
+ $easeInBack: cubic-bezier(0.600, -0.280, 0.735, 0.045);
23
+ $easeOutBack: cubic-bezier(0.175, 0.885, 0.320, 1.275);
24
+ $easeInOutBack: cubic-bezier(0.680, -0.550, 0.265, 1.550);
25
+ $cubic-bezier: cubic-bezier(0.175, 0.885, 0.320, 1.275);
admin/blocks/styles/_vendor/mix.scss ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * keyframes
3
+ *
4
+ * @since 1.0.0
5
+ * @version 1.0.0
6
+ */
7
+ @mixin keyframes($animationName) {
8
+ @-webkit-keyframes #{$animationName} {
9
+ @content;
10
+ }
11
+ @-moz-keyframes #{$animationName} {
12
+ @content;
13
+ }
14
+ @-o-keyframes #{$animationName} {
15
+ @content;
16
+ }
17
+ @keyframes #{$animationName} {
18
+ @content;
19
+ }
20
+ }
21
+
22
+ /**
23
+ * Spinner
24
+ *
25
+ * @since 1.0.0
26
+ * @version 1.0.0
27
+ */
28
+ @mixin spinner($color: white, $w:20px, $bgColor:transparent, $withColor:true) {
29
+ transition:all 0.6s $easeOutQuart;
30
+
31
+ width: $w;
32
+ height: $w;
33
+ display: block;
34
+ position: absolute;
35
+ top:calc(50% - #{$w} / 2);
36
+ left:calc(50% - #{$w} / 2);
37
+ opacity: 0;
38
+ z-index: 2;
39
+
40
+ @if $withColor {
41
+ border: solid 2px $color;
42
+ } @else {
43
+ border-width: 3px;
44
+ border-style: solid;
45
+ }
46
+
47
+ border-top-color: $bgColor;
48
+ border-left-color: $bgColor;
49
+ border-radius: 50%;
50
+
51
+ animation: pt_theme__loadingSpinner 0.4s linear infinite;
52
+
53
+ &.hidde { display: none; }
54
+ }
55
+ @include keyframes(pt_theme__loadingSpinner) {
56
+ 0% { transform:rotate(0deg); }
57
+ 100% { transform:rotate(360deg); }
58
+ }
59
+
60
+ /**
61
+ * Inherit Typography
62
+ */
63
+ /**
64
+ * Media
65
+ *
66
+ * @since 1.0.0
67
+ * @version 1.0.0
68
+ */
69
+ %inherit-typography {
70
+ font-family: inherit !important;
71
+ font-size: inherit !important;
72
+ font-weight: inherit !important;
73
+ font-style: inherit !important;
74
+ line-height: inherit !important;
75
+ letter-spacing: inherit !important;
76
+ }
77
+
78
+
79
+ /**
80
+ * Media
81
+ *
82
+ * @since 1.0.0
83
+ * @version 1.0.0
84
+ */
85
+ @mixin media( $res ) {
86
+ @if mobile == $res {
87
+ @media only screen and (max-width: $breakpoint__mobile) {
88
+ @content;
89
+ }
90
+ }
91
+
92
+ @if tablet-portrait == $res {
93
+ @media only screen and (max-width: $breakpoint__tablet-portrait) {
94
+ @content;
95
+ }
96
+ }
97
+
98
+ @if tablet == $res {
99
+ @media only screen and (max-width: $breakpoint__tablet) {
100
+ @content;
101
+ }
102
+ }
103
+
104
+ @if laptops == $res {
105
+ @media only screen and (max-width: $breakpoint__laptops) {
106
+ @content;
107
+ }
108
+ }
109
+
110
+ @if desktop == $res {
111
+ @media only screen and (max-width: $breakpoint__laptops) {
112
+ @content;
113
+ }
114
+ }
115
+
116
+ @if wide == $res {
117
+ @media only screen and (max-width: $breakpoint__wide) {
118
+ @content;
119
+ }
120
+ }
121
+ }
admin/blocks/styles/_vendor/socicon.scss ADDED
@@ -0,0 +1,801 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @font-face {
2
+ font-family: 'Socicon';
3
+ src: url('https://d1azc1qln24ryf.cloudfront.net/114779/Socicon/Socicon.eot?cthkrg');
4
+ src: url('https://d1azc1qln24ryf.cloudfront.net/114779/Socicon/Socicon.eot?cthkrg#iefix') format('embedded-opentype'),
5
+ url('https://d1azc1qln24ryf.cloudfront.net/114779/Socicon/Socicon.woff2?cthkrg') format('woff2'),
6
+ url('https://d1azc1qln24ryf.cloudfront.net/114779/Socicon/Socicon.ttf?cthkrg') format('truetype'),
7
+ url('https://d1azc1qln24ryf.cloudfront.net/114779/Socicon/Socicon.woff?cthkrg') format('woff'),
8
+ url('https://d1azc1qln24ryf.cloudfront.net/114779/Socicon/Socicon.svg?cthkrg#Socicon') format('svg');
9
+ font-weight: normal;
10
+ font-style: normal;
11
+ }
12
+
13
+ [class^="socicon-"], [class*=" socicon-"] {
14
+ /* use !important to prevent issues with browser extensions that change fonts */
15
+ font-family: 'Socicon' !important;
16
+ speak: none;
17
+ font-style: normal;
18
+ font-weight: normal;
19
+ font-variant: normal;
20
+ text-transform: none;
21
+ line-height: 1;
22
+
23
+ /* Better Font Rendering =========== */
24
+ -webkit-font-smoothing: antialiased;
25
+ -moz-osx-font-smoothing: grayscale;
26
+ }
27
+
28
+ .socicon-internet:before {
29
+ content: "\e957";
30
+ }
31
+ .socicon-moddb:before {
32
+ content: "\e94b";
33
+ }
34
+ .socicon-indiedb:before {
35
+ content: "\e94c";
36
+ }
37
+ .socicon-traxsource:before {
38
+ content: "\e94d";
39
+ }
40
+ .socicon-gamefor:before {
41
+ content: "\e94e";
42
+ }
43
+ .socicon-pixiv:before {
44
+ content: "\e94f";
45
+ }
46
+ .socicon-myanimelist:before {
47
+ content: "\e950";
48
+ }
49
+ .socicon-blackberry:before {
50
+ content: "\e951";
51
+ }
52
+ .socicon-wickr:before {
53
+ content: "\e952";
54
+ }
55
+ .socicon-spip:before {
56
+ content: "\e953";
57
+ }
58
+ .socicon-napster:before {
59
+ content: "\e954";
60
+ }
61
+ .socicon-beatport:before {
62
+ content: "\e955";
63
+ }
64
+ .socicon-hackerone:before {
65
+ content: "\e956";
66
+ }
67
+ .socicon-hackernews:before {
68
+ content: "\e946";
69
+ }
70
+ .socicon-smashwords:before {
71
+ content: "\e947";
72
+ }
73
+ .socicon-kobo:before {
74
+ content: "\e948";
75
+ }
76
+ .socicon-bookbub:before {
77
+ content: "\e949";
78
+ }
79
+ .socicon-mailru:before {
80
+ content: "\e94a";
81
+ }
82
+ .socicon-gitlab:before {
83
+ content: "\e945";
84
+ }
85
+ .socicon-instructables:before {
86
+ content: "\e944";
87
+ }
88
+ .socicon-portfolio:before {
89
+ content: "\e943";
90
+ }
91
+ .socicon-codered:before {
92
+ content: "\e940";
93
+ }
94
+ .socicon-origin:before {
95
+ content: "\e941";
96
+ }
97
+ .socicon-nextdoor:before {
98
+ content: "\e942";
99
+ }
100
+ .socicon-udemy:before {
101
+ content: "\e93f";
102
+ }
103
+ .socicon-livemaster:before {
104
+ content: "\e93e";
105
+ }
106
+ .socicon-crunchbase:before {
107
+ content: "\e93b";
108
+ }
109
+ .socicon-homefy:before {
110
+ content: "\e93c";
111
+ }
112
+ .socicon-calendly:before {
113
+ content: "\e93d";
114
+ }
115
+ .socicon-realtor:before {
116
+ content: "\e90f";
117
+ }
118
+ .socicon-tidal:before {
119
+ content: "\e910";
120
+ }
121
+ .socicon-qobuz:before {
122
+ content: "\e911";
123
+ }
124
+ .socicon-natgeo:before {
125
+ content: "\e912";
126
+ }
127
+ .socicon-mastodon:before {
128
+ content: "\e913";
129
+ }
130
+ .socicon-unsplash:before {
131
+ content: "\e914";
132
+ }
133
+ .socicon-homeadvisor:before {
134
+ content: "\e915";
135
+ }
136
+ .socicon-angieslist:before {
137
+ content: "\e916";
138
+ }
139
+ .socicon-codepen:before {
140
+ content: "\e917";
141
+ }
142
+ .socicon-slack:before {
143
+ content: "\e918";
144
+ }
145
+ .socicon-openaigym:before {
146
+ content: "\e919";
147
+ }
148
+ .socicon-logmein:before {
149
+ content: "\e91a";
150
+ }
151
+ .socicon-fiverr:before {
152
+ content: "\e91b";
153
+ }
154
+ .socicon-gotomeeting:before {
155
+ content: "\e91c";
156
+ }
157
+ .socicon-aliexpress:before {
158
+ content: "\e91d";
159
+ }
160
+ .socicon-guru:before {
161
+ content: "\e91e";
162
+ }
163
+ .socicon-appstore:before {
164
+ content: "\e91f";
165
+ }
166
+ .socicon-homes:before {
167
+ content: "\e920";
168
+ }
169
+ .socicon-zoom:before {
170
+ content: "\e921";
171
+ }
172
+ .socicon-alibaba:before {
173
+ content: "\e922";
174
+ }
175
+ .socicon-craigslist:before {
176
+ content: "\e923";
177
+ }
178
+ .socicon-wix:before {
179
+ content: "\e924";
180
+ }
181
+ .socicon-redfin:before {
182
+ content: "\e925";
183
+ }
184
+ .socicon-googlecalendar:before {
185
+ content: "\e926";
186
+ }
187
+ .socicon-shopify:before {
188
+ content: "\e927";
189
+ }
190
+ .socicon-freelancer:before {
191
+ content: "\e928";
192
+ }
193
+ .socicon-seedrs:before {
194
+ content: "\e929";
195
+ }
196
+ .socicon-bing:before {
197
+ content: "\e92a";
198
+ }
199
+ .socicon-doodle:before {
200
+ content: "\e92b";
201
+ }
202
+ .socicon-bonanza:before {
203
+ content: "\e92c";
204
+ }
205
+ .socicon-squarespace:before {
206
+ content: "\e92d";
207
+ }
208
+ .socicon-toptal:before {
209
+ content: "\e92e";
210
+ }
211
+ .socicon-gust:before {
212
+ content: "\e92f";
213
+ }
214
+ .socicon-ask:before {
215
+ content: "\e930";
216
+ }
217
+ .socicon-trulia:before {
218
+ content: "\e931";
219
+ }
220
+ .socicon-loomly:before {
221
+ content: "\e932";
222
+ }
223
+ .socicon-ghost:before {
224
+ content: "\e933";
225
+ }
226
+ .socicon-upwork:before {
227
+ content: "\e934";
228
+ }
229
+ .socicon-fundable:before {
230
+ content: "\e935";
231
+ }
232
+ .socicon-booking:before {
233
+ content: "\e936";
234
+ }
235
+ .socicon-googlemaps:before {
236
+ content: "\e937";
237
+ }
238
+ .socicon-zillow:before {
239
+ content: "\e938";
240
+ }
241
+ .socicon-niconico:before {
242
+ content: "\e939";
243
+ }
244
+ .socicon-toneden:before {
245
+ content: "\e93a";
246
+ }
247
+ .socicon-augment:before {
248
+ content: "\e908";
249
+ }
250
+ .socicon-bitbucket:before {
251
+ content: "\e909";
252
+ }
253
+ .socicon-fyuse:before {
254
+ content: "\e90a";
255
+ }
256
+ .socicon-yt-gaming:before {
257
+ content: "\e90b";
258
+ }
259
+ .socicon-sketchfab:before {
260
+ content: "\e90c";
261
+ }
262
+ .socicon-mobcrush:before {
263
+ content: "\e90d";
264
+ }
265
+ .socicon-microsoft:before {
266
+ content: "\e90e";
267
+ }
268
+ .socicon-pandora:before {
269
+ content: "\e907";
270
+ }
271
+ .socicon-messenger:before {
272
+ content: "\e906";
273
+ }
274
+ .socicon-gamewisp:before {
275
+ content: "\e905";
276
+ }
277
+ .socicon-bloglovin:before {
278
+ content: "\e904";
279
+ }
280
+ .socicon-tunein:before {
281
+ content: "\e903";
282
+ }
283
+ .socicon-gamejolt:before {
284
+ content: "\e901";
285
+ }
286
+ .socicon-trello:before {
287
+ content: "\e902";
288
+ }
289
+ .socicon-spreadshirt:before {
290
+ content: "\e900";
291
+ }
292
+ .socicon-500px:before {
293
+ content: "\e000";
294
+ }
295
+ .socicon-8tracks:before {
296
+ content: "\e001";
297
+ }
298
+ .socicon-airbnb:before {
299
+ content: "\e002";
300
+ }
301
+ .socicon-alliance:before {
302
+ content: "\e003";
303
+ }
304
+ .socicon-amazon:before {
305
+ content: "\e004";
306
+ }
307
+ .socicon-amplement:before {
308
+ content: "\e005";
309
+ }
310
+ .socicon-android:before {
311
+ content: "\e006";
312
+ }
313
+ .socicon-angellist:before {
314
+ content: "\e007";
315
+ }
316
+ .socicon-apple:before {
317
+ content: "\e008";
318
+ }
319
+ .socicon-appnet:before {
320
+ content: "\e009";
321
+ }
322
+ .socicon-baidu:before {
323
+ content: "\e00a";
324
+ }
325
+ .socicon-bandcamp:before {
326
+ content: "\e00b";
327
+ }
328
+ .socicon-battlenet:before {
329
+ content: "\e00c";
330
+ }
331
+ .socicon-mixer:before {
332
+ content: "\e00d";
333
+ }
334
+ .socicon-bebee:before {
335
+ content: "\e00e";
336
+ }
337
+ .socicon-bebo:before {
338
+ content: "\e00f";
339
+ }
340
+ .socicon-behance:before {
341
+ content: "\e010";
342
+ }
343
+ .socicon-blizzard:before {
344
+ content: "\e011";
345
+ }
346
+ .socicon-blogger:before {
347
+ content: "\e012";
348
+ }
349
+ .socicon-buffer:before {
350
+ content: "\e013";
351
+ }
352
+ .socicon-chrome:before {
353
+ content: "\e014";
354
+ }
355
+ .socicon-coderwall:before {
356
+ content: "\e015";
357
+ }
358
+ .socicon-curse:before {
359
+ content: "\e016";
360
+ }
361
+ .socicon-dailymotion:before {
362
+ content: "\e017";
363
+ }
364
+ .socicon-deezer:before {
365
+ content: "\e018";
366
+ }
367
+ .socicon-delicious:before {
368
+ content: "\e019";
369
+ }
370
+ .socicon-deviantart:before {
371
+ content: "\e01a";
372
+ }
373
+ .socicon-diablo:before {
374
+ content: "\e01b";
375
+ }
376
+ .socicon-digg:before {
377
+ content: "\e01c";
378
+ }
379
+ .socicon-discord:before {
380
+ content: "\e01d";
381
+ }
382
+ .socicon-disqus:before {
383
+ content: "\e01e";
384
+ }
385
+ .socicon-douban:before {
386
+ content: "\e01f";
387
+ }
388
+ .socicon-draugiem:before {
389
+ content: "\e020";
390
+ }
391
+ .socicon-dribbble:before {
392
+ content: "\e021";
393
+ }
394
+ .socicon-drupal:before {
395
+ content: "\e022";
396
+ }
397
+ .socicon-ebay:before {
398
+ content: "\e023";
399
+ }
400
+ .socicon-ello:before {
401
+ content: "\e024";
402
+ }
403
+ .socicon-endomodo:before {
404
+ content: "\e025";
405
+ }
406
+ .socicon-envato:before {
407
+ content: "\e026";
408
+ }
409
+ .socicon-etsy:before {
410
+ content: "\e027";
411
+ }
412
+ .socicon-facebook:before {
413
+ content: "\e028";
414
+ }
415
+ .socicon-feedburner:before {
416
+ content: "\e029";
417
+ }
418
+ .socicon-filmweb:before {
419
+ content: "\e02a";
420
+ }
421
+ .socicon-firefox:before {
422
+ content: "\e02b";
423
+ }
424
+ .socicon-flattr:before {
425
+ content: "\e02c";
426
+ }
427
+ .socicon-flickr:before {
428
+ content: "\e02d";
429
+ }
430
+ .socicon-formulr:before {
431
+ content: "\e02e";
432
+ }
433
+ .socicon-forrst:before {
434
+ content: "\e02f";
435
+ }
436
+ .socicon-foursquare:before {
437
+ content: "\e030";
438
+ }
439
+ .socicon-friendfeed:before {
440
+ content: "\e031";
441
+ }
442
+ .socicon-github:before {
443
+ content: "\e032";
444
+ }
445
+ .socicon-goodreads:before {
446
+ content: "\e033";
447
+ }
448
+ .socicon-google:before {
449
+ content: "\e034";
450
+ }
451
+ .socicon-googlescholar:before {
452
+ content: "\e035";
453
+ }
454
+ .socicon-googlegroups:before {
455
+ content: "\e036";
456
+ }
457
+ .socicon-googlephotos:before {
458
+ content: "\e037";
459
+ }
460
+ .socicon-googleplus:before {
461
+ content: "\e038";
462
+ }
463
+ .socicon-grooveshark:before {
464
+ content: "\e039";
465
+ }
466
+ .socicon-hackerrank:before {
467
+ content: "\e03a";
468
+ }
469
+ .socicon-hearthstone:before {
470
+ content: "\e03b";
471
+ }
472
+ .socicon-hellocoton:before {
473
+ content: "\e03c";
474
+ }
475
+ .socicon-heroes:before {
476
+ content: "\e03d";
477
+ }
478
+ .socicon-smashcast:before {
479
+ content: "\e03e";
480
+ }
481
+ .socicon-horde:before {
482
+ content: "\e03f";
483
+ }
484
+ .socicon-houzz:before {
485
+ content: "\e040";
486
+ }
487
+ .socicon-icq:before {
488
+ content: "\e041";
489
+ }
490
+ .socicon-identica:before {
491
+ content: "\e042";
492
+ }
493
+ .socicon-imdb:before {
494
+ content: "\e043";
495
+ }
496
+ .socicon-instagram:before {
497
+ content: "\e044";
498
+ }
499
+ .socicon-issuu:before {
500
+ content: "\e045";
501
+ }
502
+ .socicon-istock:before {
503
+ content: "\e046";
504
+ }
505
+ .socicon-itunes:before {
506
+ content: "\e047";
507
+ }
508
+ .socicon-keybase:before {
509
+ content: "\e048";
510
+ }
511
+ .socicon-lanyrd:before {
512
+ content: "\e049";
513
+ }
514
+ .socicon-lastfm:before {
515
+ content: "\e04a";
516
+ }
517
+ .socicon-line:before {
518
+ content: "\e04b";
519
+ }
520
+ .socicon-linkedin:before {
521
+ content: "\e04c";
522
+ }
523
+ .socicon-livejournal:before {
524
+ content: "\e04d";
525
+ }
526
+ .socicon-lyft:before {
527
+ content: "\e04e";
528
+ }
529
+ .socicon-macos:before {
530
+ content: "\e04f";
531
+ }
532
+ .socicon-mail:before {
533
+ content: "\e050";
534
+ }
535
+ .socicon-medium:before {
536
+ content: "\e051";
537
+ }
538
+ .socicon-meetup:before {
539
+ content: "\e052";
540
+ }
541
+ .socicon-mixcloud:before {
542
+ content: "\e053";
543
+ }
544
+ .socicon-modelmayhem:before {
545
+ content: "\e054";
546
+ }
547
+ .socicon-mumble:before {
548
+ content: "\e055";
549
+ }
550
+ .socicon-myspace:before {
551
+ content: "\e056";
552
+ }
553
+ .socicon-newsvine:before {
554
+ content: "\e057";
555
+ }
556
+ .socicon-nintendo:before {
557
+ content: "\e058";
558
+ }
559
+ .socicon-npm:before {
560
+ content: "\e059";
561
+ }
562
+ .socicon-odnoklassniki:before {
563
+ content: "\e05a";
564
+ }
565
+ .socicon-openid:before {
566
+ content: "\e05b";
567
+ }
568
+ .socicon-opera:before {
569
+ content: "\e05c";
570
+ }
571
+ .socicon-outlook:before {
572
+ content: "\e05d";
573
+ }
574
+ .socicon-overwatch:before {
575
+ content: "\e05e";
576
+ }
577
+ .socicon-patreon:before {
578
+ content: "\e05f";
579
+ }
580
+ .socicon-paypal:before {
581
+ content: "\e060";
582
+ }
583
+ .socicon-periscope:before {
584
+ content: "\e061";
585
+ }
586
+ .socicon-persona:before {
587
+ content: "\e062";
588
+ }
589
+ .socicon-pinterest:before {
590
+ content: "\e063";
591
+ }
592
+ .socicon-play:before {
593
+ content: "\e064";
594
+ }
595
+ .socicon-player:before {
596
+ content: "\e065";
597
+ }
598
+ .socicon-playstation:before {
599
+ content: "\e066";
600
+ }
601
+ .socicon-pocket:before {
602
+ content: "\e067";
603
+ }
604
+ .socicon-qq:before {
605
+ content: "\e068";
606
+ }
607
+ .socicon-quora:before {
608
+ content: "\e069";
609
+ }
610
+ .socicon-raidcall:before {
611
+ content: "\e06a";
612
+ }
613
+ .socicon-ravelry:before {
614
+ content: "\e06b";
615
+ }
616
+ .socicon-reddit:before {
617
+ content: "\e06c";
618
+ }
619
+ .socicon-renren:before {
620
+ content: "\e06d";
621
+ }
622
+ .socicon-researchgate:before {
623
+ content: "\e06e";
624
+ }
625
+ .socicon-residentadvisor:before {
626
+ content: "\e06f";
627
+ }
628
+ .socicon-reverbnation:before {
629
+ content: "\e070";
630
+ }
631
+ .socicon-rss:before {
632
+ content: "\e071";
633
+ }
634
+ .socicon-sharethis:before {
635
+ content: "\e072";
636
+ }
637
+ .socicon-skype:before {
638
+ content: "\e073";
639
+ }
640
+ .socicon-slideshare:before {
641
+ content: "\e074";
642
+ }
643
+ .socicon-smugmug:before {
644
+ content: "\e075";
645
+ }
646
+ .socicon-snapchat:before {
647
+ content: "\e076";
648
+ }
649
+ .socicon-songkick:before {
650
+ content: "\e077";
651
+ }
652
+ .socicon-soundcloud:before {
653
+ content: "\e078";
654
+ }
655
+ .socicon-spotify:before {
656
+ content: "\e079";
657
+ }
658
+ .socicon-stackexchange:before {
659
+ content: "\e07a";
660
+ }
661
+ .socicon-stackoverflow:before {
662
+ content: "\e07b";
663
+ }
664
+ .socicon-starcraft:before {
665
+ content: "\e07c";
666
+ }
667
+ .socicon-stayfriends:before {
668
+ content: "\e07d";
669
+ }
670
+ .socicon-steam:before {
671
+ content: "\e07e";
672
+ }
673
+ .socicon-storehouse:before {
674
+ content: "\e07f";
675
+ }
676
+ .socicon-strava:before {
677
+ content: "\e080";
678
+ }
679
+ .socicon-streamjar:before {
680
+ content: "\e081";
681
+ }
682
+ .socicon-stumbleupon:before {
683
+ content: "\e082";
684
+ }
685
+ .socicon-swarm:before {
686
+ content: "\e083";
687
+ }
688
+ .socicon-teamspeak:before {
689
+ content: "\e084";
690
+ }
691
+ .socicon-teamviewer:before {
692
+ content: "\e085";
693
+ }
694
+ .socicon-technorati:before {
695
+ content: "\e086";
696
+ }
697
+ .socicon-telegram:before {
698
+ content: "\e087";
699
+ }
700
+ .socicon-tripadvisor:before {
701
+ content: "\e088";
702
+ }
703
+ .socicon-tripit:before {
704
+ content: "\e089";
705
+ }
706
+ .socicon-triplej:before {
707
+ content: "\e08a";
708
+ }
709
+ .socicon-tumblr:before {
710
+ content: "\e08b";
711
+ }
712
+ .socicon-twitch:before {
713
+ content: "\e08c";
714
+ }
715
+ .socicon-twitter:before {
716
+ content: "\e08d";
717
+ }
718
+ .socicon-uber:before {
719
+ content: "\e08e";
720
+ }
721
+ .socicon-ventrilo:before {
722
+ content: "\e08f";
723
+ }
724
+ .socicon-viadeo:before {
725
+ content: "\e090";
726
+ }
727
+ .socicon-viber:before {
728
+ content: "\e091";
729
+ }
730
+ .socicon-viewbug:before {
731
+ content: "\e092";
732
+ }
733
+ .socicon-vimeo:before {
734
+ content: "\e093";
735
+ }
736
+ .socicon-vine:before {
737
+ content: "\e094";
738
+ }
739
+ .socicon-vkontakte:before {
740
+ content: "\e095";
741
+ }
742
+ .socicon-warcraft:before {
743
+ content: "\e096";
744
+ }
745
+ .socicon-wechat:before {
746
+ content: "\e097";
747
+ }
748
+ .socicon-weibo:before {
749
+ content: "\e098";
750
+ }
751
+ .socicon-whatsapp:before {
752
+ content: "\e099";
753
+ }
754
+ .socicon-wikipedia:before {
755
+ content: "\e09a";
756
+ }
757
+ .socicon-windows:before {
758
+ content: "\e09b";
759
+ }
760
+ .socicon-wordpress:before {
761
+ content: "\e09c";
762
+ }
763
+ .socicon-wykop:before {
764
+ content: "\e09d";
765
+ }
766
+ .socicon-xbox:before {
767
+ content: "\e09e";
768
+ }
769
+ .socicon-xing:before {
770
+ content: "\e09f";
771
+ }
772
+ .socicon-yahoo:before {
773
+ content: "\e0a0";
774
+ }
775
+ .socicon-yammer:before {
776
+ content: "\e0a1";
777
+ }
778
+ .socicon-yandex:before {
779
+ content: "\e0a2";
780
+ }
781
+ .socicon-yelp:before {
782
+ content: "\e0a3";
783
+ }
784
+ .socicon-younow:before {
785
+ content: "\e0a4";
786
+ }
787
+ .socicon-youtube:before {
788
+ content: "\e0a5";
789
+ }
790
+ .socicon-zapier:before {
791
+ content: "\e0a6";
792
+ }
793
+ .socicon-zerply:before {
794
+ content: "\e0a7";
795
+ }
796
+ .socicon-zomato:before {
797
+ content: "\e0a8";
798
+ }
799
+ .socicon-zynga:before {
800
+ content: "\e0a9";
801
+ }
admin/blocks/styles/components/block-background.scss ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Background Types
3
+ *
4
+ * @since 1.0.0
5
+ */
6
+ div[data-component="block-background"] {
7
+ position: absolute;
8
+ top:0;
9
+ left: 0;
10
+ width: 100%;
11
+ height: 100%;
12
+ z-index: 0;
13
+
14
+ /**
15
+ * Color
16
+ *
17
+ * @since 1.0.0
18
+ */
19
+ .color-element {
20
+ position: absolute;
21
+ top:0;
22
+ left: 0;
23
+ width: 100%;
24
+ height: 100%;
25
+ z-index: 1;
26
+ background-position: center;
27
+ background-size: cover;
28
+ }
29
+
30
+ /**
31
+ * Image
32
+ *
33
+ * @since 1.0.0
34
+ */
35
+ .image-element {
36
+ position: absolute;
37
+ top:0;
38
+ left: 0;
39
+ width: 100%;
40
+ height: 100%;
41
+ z-index: 1;
42
+ background-position: center;
43
+ background-size: cover;
44
+
45
+ > span {
46
+ position: absolute;
47
+ top:0;
48
+ left: 0;
49
+ width: 100%;
50
+ height: 100%;
51
+ z-index: 2;
52
+ background-position: center;
53
+ background-size: cover;
54
+
55
+ .components-spinner {
56
+ background-color: #ffffff;
57
+ opacity: 1;
58
+ margin: 10px;
59
+ &::before { background-color: #555d67; }
60
+ }
61
+
62
+ &:nth-of-type(2) {
63
+ z-index: 1;
64
+ }
65
+ }
66
+ }
67
+
68
+ /**
69
+ * Gallery.
70
+ *
71
+ * @since 1.0.0
72
+ */
73
+ .gallery-element {
74
+ position: absolute;
75
+ top:0;
76
+ left: 0;
77
+ width: 100%;
78
+ height: 100%;
79
+ z-index: 1;
80
+ background-position: center;
81
+ background-size: cover;
82
+
83
+ > div {
84
+ width: 100%;
85
+ height: 100%;
86
+ &:not(.flickity-enabled) {
87
+ visibility: hidden;
88
+ display: none;
89
+ }
90
+ .flickity-viewport {
91
+ width: 100%;
92
+ height: 100% !important;
93
+ }
94
+ .flickity-slider {
95
+ width: 100%;
96
+ height: 100% !important;
97
+ transform: none !important;
98
+ }
99
+
100
+ span {
101
+ transition: all 2s $easeOutQuart;
102
+ width: 100%;
103
+ height: 100%;
104
+
105
+ left: 0 !important;
106
+ opacity: 0;
107
+
108
+ &.is-selected{
109
+ opacity: 1;
110
+ }
111
+
112
+ img {
113
+ display: inherit;
114
+ object-fit: cover;
115
+ width: 100%;
116
+ height: 100%;
117
+ }
118
+ }
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Video
124
+ *
125
+ * @since 1.0.0
126
+ */
127
+ .video-element {
128
+ position: absolute;
129
+ top:0;
130
+ left: 0;
131
+ width: 100%;
132
+ height: 100%;
133
+ z-index: 1;
134
+ background-position: center;
135
+ background-size: cover;
136
+
137
+ video {
138
+ position: absolute;
139
+ top:0;
140
+ left: 0;
141
+ width: 100%;
142
+ height: 100%;
143
+ z-index: 1;
144
+ object-fit: cover;
145
+ }
146
+ }
147
+
148
+ }
149
+
150
+ /**
151
+ * Background Overlayer
152
+ *
153
+ * @since 1.0.0
154
+ */
155
+ div[data-component="block-background-overlayer"] {
156
+ position: absolute;
157
+ top:0;
158
+ left: 0;
159
+ width: 100%;
160
+ height: 100%;
161
+ z-index: 1;
162
+ }
admin/blocks/styles/components/editor/_sidebar.scss ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body {
2
+ // Sidebar
3
+ .edit-post-sidebar {
4
+ .components-panel {
5
+ div[data-component*="sidebar--"] {
6
+
7
+ // Painel
8
+ .components-panel__body {
9
+ .components-panel__row {
10
+ flex-wrap: wrap;
11
+ .components-base-control {
12
+ width: 100%;
13
+ margin-bottom: 18px;
14
+
15
+ .components-base-control__field {
16
+ margin-bottom: 0;
17
+
18
+ textarea, input {
19
+ display: inherit;
20
+ }
21
+ }
22
+ .components-base-control__help {
23
+ opacity: 0.7;
24
+ font-size: 12px;
25
+ margin-top: 5px;
26
+ }
27
+ }
28
+ }
29
+ }
30
+
31
+ label {
32
+ display: block;
33
+ width: 100%;
34
+ font-weight: 500;
35
+ }
36
+
37
+ button:focus { outline: none !important; }
38
+
39
+ // Loading state
40
+ &[data-loading="true"] {
41
+ position: relative;
42
+ .components-spinner {
43
+ position: absolute;
44
+ top: 50%;
45
+ left: 50%;
46
+ transform: translate(-50%, -50%);
47
+ margin: 0;
48
+ }
49
+ .components-panel__body {
50
+ transition: all 0.6s $easeOutQuart;
51
+ opacity: 0.3;
52
+ pointer-events: none;
53
+ }
54
+ }
55
+
56
+ }
57
+ }
58
+ }
59
+
60
+ }
admin/blocks/styles/components/editor/background.scss ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Background component
3
+ *
4
+ * @since 1.0.0
5
+ */
6
+ div[data-editor-component="background"] {
7
+
8
+ // Menu
9
+ .tabs-menu {
10
+ display: flex;
11
+ flex-direction: row;
12
+ flex-wrap: nowrap;
13
+ justify-content: flex-start;
14
+ align-items: center;
15
+
16
+ border-bottom: 1px solid $color--line;
17
+ padding-bottom: 5px;
18
+ margin-bottom: 15px;
19
+ margin-top: 5px;
20
+
21
+ button {
22
+ position: relative;
23
+ margin-right: 5px;
24
+ overflow: initial;
25
+ &::before {
26
+ content: " ";
27
+ width: 100%;
28
+ height: 0;
29
+ position: absolute;
30
+ left: 0;
31
+ bottom: -6px;
32
+ background-color: $color--link-hover;
33
+ }
34
+ svg {
35
+ path, rect {
36
+ transition: all 0.6s $easeOutQuart;
37
+ }
38
+ }
39
+ &:focus {
40
+ box-shadow: none;
41
+ outline: none;
42
+ }
43
+ &[data-active='true'] {
44
+ pointer-events: none;
45
+ border-color: transparent;
46
+
47
+ &::before { height: 2px; }
48
+
49
+ svg {
50
+ path { fill: $color--link-hover; }
51
+ rect { stroke: $color--link-hover; }
52
+ }
53
+ }
54
+ /* ---- hover ---- */
55
+ &:hover {
56
+ svg {
57
+ path { fill: $color--link-hover; }
58
+ rect { stroke: $color--link-hover; }
59
+ }
60
+ }
61
+ }
62
+
63
+ }
64
+
65
+ // Content
66
+ .tabs-content {
67
+
68
+ }
69
+
70
+ }
admin/blocks/styles/components/editor/brand-upload.scss ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $size: 30px;
2
+ button[data-editor-component="brand-uploader"] {
3
+ position: relative;
4
+ display: table;
5
+ outline: none;
6
+ border: none;
7
+ cursor: pointer;
8
+ background-color: transparent;
9
+
10
+ i {
11
+ transition: all 0.8s $easeOutQuart;
12
+ position: absolute;
13
+ right: -$size / 2;
14
+ top: -$size / 2;
15
+ width: $size;
16
+ height: $size;
17
+ border-radius: 50%;
18
+ border: 1px solid $color--borders;
19
+ background-color: rgba(white, 0.7);
20
+ color: $color--icons;
21
+ pointer-events: none;
22
+
23
+ &::before {
24
+ transition: all 0.8s $easeOutQuart;
25
+ position: absolute;
26
+ top: 50%;
27
+ left: 50%;
28
+ transform: translate(-50%, -50%);
29
+ z-index: 1;
30
+ }
31
+ }
32
+
33
+ img {
34
+ display: inherit;
35
+ }
36
+
37
+ /* ---- hover ---- */
38
+ &:hover i {
39
+ border: 1px solid rgba($color--icons--hover, 0.5);
40
+ background-color: rgba(white, 1);
41
+ &::before {
42
+ color: $color--icons--hover;
43
+ }
44
+ }
45
+
46
+ }
admin/blocks/styles/components/editor/font-picker.scss ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Font Picker
3
+ *
4
+ * @since 1.0.0
5
+ */
6
+ $dropdown--height: 315px;
7
+ $dropdown--width: 440px;
8
+ $font-picker--width: 190px;
9
+ body {
10
+ .editor-component--field-typography-selector {
11
+ width: 100%;
12
+ margin-bottom: 10px;
13
+ button {
14
+ transition: all 0.6s $easeOutQuart;
15
+ background-color: transparent;
16
+ outline: none;
17
+ cursor: pointer;
18
+ padding: 10px 15px;
19
+ border: 1px solid $color--line;
20
+ border-radius: 3px;
21
+ display: block;
22
+ text-align: left;
23
+ box-sizing: border-box;
24
+ width: 100%;
25
+
26
+ // Test
27
+ //padding-left: 0;
28
+ //padding-right: 0;
29
+ //border-left: 0;
30
+ //border-right: 0;
31
+ //border-radius: 0;
32
+ //border-bottom: 0;
33
+
34
+ label {
35
+ font-weight: normal;
36
+ color: $color--text;
37
+ }
38
+ p {
39
+ padding: 0;
40
+ margin: 0;
41
+ font-size: 25px;
42
+ white-space: nowrap;
43
+ overflow: hidden;
44
+ text-overflow: ellipsis;
45
+ max-width: 240px;
46
+ }
47
+ /* ---- hover ---- */
48
+ &:hover {
49
+ border-color: $color--link-hover;
50
+ }
51
+ }
52
+ }
53
+ .components-popover.editor-component--dropdown-typography-selector {
54
+ .components-popover__content {
55
+ height: auto;
56
+ width: $dropdown--width;
57
+ padding: 8px 8px 8px 0;
58
+ box-sizing: border-box;
59
+ min-height: $dropdown--height;
60
+ display: flex;
61
+ flex-direction: row;
62
+ flex-wrap: nowrap;
63
+ justify-content: flex-start;
64
+ align-items: flex-start;
65
+ /**
66
+ * Font Family
67
+ */
68
+ #font-picker {
69
+ box-shadow: none;
70
+ border-right: 1px solid $color--line;
71
+ width: $font-picker--width;
72
+ flex-shrink: 0;
73
+ position: relative;
74
+
75
+ .components-spinner {
76
+ position: absolute;
77
+ top: 50%;
78
+ left: 50%;
79
+ transform: translate(-50%, -50%);
80
+ }
81
+ > button { display: none; }
82
+ ul {
83
+ height: $dropdown--height;
84
+ max-height: 100%;
85
+ box-shadow: none;
86
+ position: relative;
87
+ background-color: transparent !important;
88
+
89
+ li {
90
+ margin: 0;
91
+ button {
92
+ font-size: 16px;
93
+ background-color: transparent !important;
94
+ padding-left: 15px;
95
+ position: relative;
96
+ &::before {
97
+ transition: all 0.6s $easeOutQuart;
98
+ content: " ";
99
+ width: 3px;
100
+ height: 0;
101
+ position: absolute;
102
+ left: 0;
103
+ top: 50%;
104
+ transform: translateY(-50%);
105
+ background-color: $color--link-hover;
106
+ }
107
+ &.active-font {
108
+ color: $color--link-hover;
109
+ &::before { height: 100%; }
110
+ }
111
+ &:hover {
112
+ color: $color--link-hover;
113
+ &::before { height: 70%; }
114
+ }
115
+ }
116
+ }
117
+
118
+ }
119
+ }
120
+
121
+ /**
122
+ * Other Options
123
+ */
124
+ .typography-options__wrapper {
125
+ padding: 10px 20px 0 25px;
126
+ // Menu
127
+ .tabs-menu {
128
+ border-bottom: 1px solid $color--line;
129
+ padding-bottom: 5px;
130
+ margin-bottom: 15px;
131
+ margin-top: 5px;
132
+
133
+ button {
134
+ border: none;
135
+ background-color: transparent;
136
+ position: relative;
137
+ cursor: pointer;
138
+ outline: none;
139
+ &::before {
140
+ content: " ";
141
+ width: 100%;
142
+ height: 0;
143
+ position: absolute;
144
+ left: 0;
145
+ bottom: -6px;
146
+ background-color: $color--link-hover;
147
+ }
148
+ svg {
149
+ path, rect {
150
+ transition: all 0.6s $easeOutQuart;
151
+ }
152
+ }
153
+ &[data-mode='active'] {
154
+ pointer-events: none;
155
+ &::before { height: 2px; }
156
+ svg {
157
+ path { fill: $color--link-hover; }
158
+ rect { stroke: $color--link-hover; }
159
+ }
160
+ }
161
+ /* ---- hover ---- */
162
+ &:hover {
163
+ svg {
164
+ path { fill: $color--link-hover; }
165
+ rect { stroke: $color--link-hover; }
166
+ }
167
+ }
168
+
169
+ }
170
+ }
171
+
172
+ // Content
173
+ .tabs-content {
174
+ > div {
175
+ div:nth-of-type(2) { margin-bottom: 13px; }
176
+ .components-range-control {
177
+ margin-bottom: 10px;
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+
admin/blocks/styles/components/editor/inspector-controls-image-uploader.scss ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $size: 30px;
2
+ div[data-editor-component="inspector-controls--image-uploader"] {
3
+ display: flex;
4
+ flex-direction: row;
5
+ flex-wrap: wrap;
6
+ justify-content: space-between;
7
+ align-items: center;
8
+
9
+ label {
10
+ display: block;
11
+ margin-bottom: 8px;
12
+ }
13
+ img {
14
+ border: 1px solid #e2e4e7;
15
+ max-width: 100%;
16
+ }
17
+ span {
18
+ display: block;
19
+ width: 100%;
20
+ }
21
+ button {
22
+ margin-top: 5px;
23
+ }
24
+ }
admin/blocks/styles/components/editor/misc-components--sidebar.scss ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Color palette
3
+ *
4
+ * @since 1.0.0
5
+ */
6
+ div[data-editor-component="color-palette-base-control"] {
7
+ label {
8
+ margin-bottom: 14px;
9
+ display: flex !important;
10
+ flex-direction: row;
11
+ flex-wrap: nowrap;
12
+ justify-content: flex-start;
13
+ align-items: center;
14
+ }
15
+ .component-color-indicator {
16
+
17
+ }
18
+ }
19
+
20
+ /**
21
+ * Notices
22
+ *
23
+ * @since 1.0.0
24
+ */
25
+ *[data-editor-component|="notice"] {
26
+ border-left: 4px solid transparent;
27
+ padding: 8px 12px;
28
+ color: initial;
29
+ text-decoration: none;
30
+
31
+ &[data-notice="warning"] {
32
+ background-color: #fef8ee;
33
+ border-left-color: #f0b849;
34
+ }
35
+ }
36
+
37
+ /**
38
+ * Date Time Picker
39
+ *
40
+ * @since 1.0.0
41
+ */
42
+ .editor-component--dropdown-date-time-picker {
43
+ .components-popover__content {
44
+ padding: 10px;
45
+ }
46
+ }
47
+ .editor-component--field-date-time-picker {
48
+ display: block;
49
+ width: 100%;
50
+ margin-bottom: 10px;
51
+ > div {
52
+ display: flex;
53
+ flex-direction: row;
54
+ flex-wrap: nowrap;
55
+ justify-content: flex-start;
56
+ align-items: center;
57
+ min-height: 24px;
58
+
59
+ label {
60
+ margin: 0;
61
+ padding: 0;
62
+ width: auto !important;
63
+ flex-grow: 1;
64
+ }
65
+ button:nth-of-type(1) {
66
+ padding: 0;
67
+ margin: 0;
68
+ text-align: right !important;
69
+ margin-right: 10px;
70
+ }
71
+ }
72
+ }
73
+
74
+ /**
75
+ * Single Label
76
+ *
77
+ * @since 1.0.0
78
+ */
79
+ label.single-field-label {
80
+ padding: 0;
81
+ margin: 0 0 10px 0;
82
+ display: block;
83
+ color: $color--text;
84
+ }
85
+
86
+ /**
87
+ * Help Notice
88
+ *
89
+ * @since 1.0.0
90
+ */
91
+
92
+ *[data-editor-component="help-notice"] {
93
+ opacity: 0.7;
94
+ font-size: 12px;
95
+ padding: 0;
96
+ margin-top: 6px !important;
97
+ }
98
+
99
+ /**
100
+ * Panel Titles
101
+ *
102
+ * @since 1.0.0
103
+ */
104
+ .components-panel__body.editor-block-inspector__advanced {
105
+ .components-panel__body-title button {
106
+ text-transform: uppercase;
107
+ }
108
+ }
admin/blocks/styles/components/editor/panel-uploader-placeholder.scss ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Background uploader placeholder component
3
+ *
4
+ * @since 1.0.0
5
+ */
6
+ $min-height: 140px;
7
+ $border-radius: 3px;
8
+ $gap: 8px;
9
+ button[data-editor-component="panel-uploader-placeholder"],
10
+ div[data-editor-component="panel-uploader-placeholder"] {
11
+ border:1px solid $color--line !important;
12
+ width: 100%;
13
+ position: relative;
14
+ box-shadow: none !important;
15
+ padding: 0;
16
+ border-radius: $border-radius;
17
+ background-position: center center;
18
+ background-size: cover;
19
+ overflow: hidden;
20
+
21
+ /**
22
+ * Upload
23
+ *
24
+ * @since 1.0.0
25
+ */
26
+ &[data-mode="upload"] {
27
+ min-height: $min-height;
28
+ svg {
29
+ position: absolute;
30
+ top: 50%;
31
+ left: 50%;
32
+ transform: translate(-50%, -50%);
33
+ }
34
+
35
+ &::before {
36
+ transition: all 0.6s $easeOutQuart;
37
+ content: " ";
38
+ width: calc( 100% - 15px);
39
+ height: calc( 100% - 15px);
40
+ background: $color--gray-bg;
41
+ position: absolute;
42
+ top: 50%;
43
+ left: 50%;
44
+ transform: translate(-50%, -50%);
45
+ border-radius: $border-radius;
46
+ }
47
+
48
+ &:hover {
49
+ svg {
50
+ path { fill: $color--link-hover; }
51
+ }
52
+ &::before {
53
+ width: 100%;
54
+ height:100%;
55
+ }
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Replace
61
+ *
62
+ * @since 1.0.0
63
+ */
64
+ &[data-mode="replace"] {
65
+ border:1px solid $color--line !important;
66
+ width: 100%;
67
+ height: auto;
68
+
69
+ > div {
70
+ display: grid;
71
+ grid-gap: $gap;
72
+ grid-auto-flow: row;
73
+ grid-template-columns: 1fr 1fr;
74
+ padding: $gap;
75
+
76
+ &[data-count="1"] {
77
+ grid-template-columns: 1fr;
78
+ }
79
+ }
80
+ video {
81
+ object-fit: cover;
82
+ height: auto;
83
+ }
84
+ img {
85
+ object-fit: cover;
86
+ height: auto;
87
+ width: 100%;
88
+ }
89
+ svg {
90
+ transition: all 0.6s $easeOutQuart;
91
+ position: absolute;
92
+ top: 50%;
93
+ left: 50%;
94
+ transform: translate(-50%, -50%);
95
+ opacity: 0;
96
+ }
97
+ &::before {
98
+ transition: all 0.6s $easeOutQuart;
99
+ content: " ";
100
+ width: 105%;
101
+ height: 105%;
102
+ background: white;
103
+ position: absolute;
104
+ top: 50%;
105
+ left: 50%;
106
+ transform: translate(-50%, -50%);
107
+ border-radius: $border-radius;
108
+ opacity: 0;
109
+ }
110
+
111
+ /* ---- hover ---- */
112
+
113
+ &:hover {
114
+ svg {
115
+ opacity: 1;
116
+ }
117
+ &::before {
118
+ opacity: 0.8;
119
+ }
120
+ }
121
+ }
122
+
123
+ /**
124
+ * Gallery
125
+ *
126
+ * @since 1.0.0
127
+ */
128
+ &[data-mode="gallery"] {
129
+ width: 100%;
130
+ height: auto;
131
+ min-height: auto;
132
+ border: none !important;
133
+
134
+ > div {
135
+ display: grid;
136
+ grid-gap: $gap;
137
+ grid-auto-flow: row;
138
+ grid-template-columns: 1fr 1fr;
139
+ padding: $gap;
140
+ border:1px solid $color--line !important;
141
+
142
+ &[data-count="1"] {
143
+ grid-template-columns: 1fr;
144
+ }
145
+
146
+ span {
147
+ position: relative;
148
+ img {
149
+ display: inherit;
150
+ min-height:100%;
151
+ min-width: 100%;
152
+ object-fit: cover;
153
+ }
154
+ button {
155
+ transition: all 0.4s $easeOutQuart;
156
+ position: absolute;
157
+ right: 5px;
158
+ top: 5px;
159
+ z-index: 1;
160
+ background-color: white;
161
+ padding: 4px;
162
+ opacity: 0;
163
+
164
+ &:hover {
165
+ background-color: $color--link-hover !important;
166
+ svg path { fill: white; }
167
+ }
168
+ }
169
+ /* ---- hover ---- */
170
+ &:hover button {
171
+ opacity: 1;
172
+ }
173
+ }
174
+ }
175
+ // Add more
176
+ > button {
177
+ height: 50px;
178
+ min-height: 0;
179
+ margin-top: 10px;
180
+
181
+ svg {
182
+ position: absolute;
183
+ top: 50%;
184
+ left: 50%;
185
+ transform: translate(-50%, -50%);
186
+ }
187
+
188
+ &::before {
189
+ transition: all 0.6s $easeOutQuart;
190
+ content: " ";
191
+ width: calc( 100% - #{$gap});
192
+ height: calc( 100% - #{$gap});
193
+ background: $color--gray-bg;
194
+ position: absolute;
195
+ top: 50%;
196
+ left: 50%;
197
+ transform: translate(-50%, -50%);
198
+ border-radius: $border-radius;
199
+ }
200
+
201
+ &:hover {
202
+ svg {
203
+ path { fill: $color--link-hover; }
204
+ }
205
+ &::before {
206
+ width: 100%;
207
+ height:100%;
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
admin/blocks/styles/components/plugin-feature.scss ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ span[data-component="is-premium"] {
2
+ cursor: not-allowed;
3
+ position: relative;
4
+ user-select: none;
5
+ width: 100%;
6
+ display: block;
7
+
8
+ &::after {
9
+ transition: all 0.6s $easeOutQuart;
10
+ content: " ";
11
+ width: 100%;
12
+ height: 100%;
13
+ position: absolute;
14
+ left: 0;
15
+ top: 0;
16
+ background-color: white;
17
+ z-index: 1;
18
+ opacity: 0;
19
+ }
20
+
21
+ // types
22
+ &[data-plan] {
23
+ p.feature-label-notice {
24
+ width: 100%;
25
+ height: auto;
26
+ z-index: 2;
27
+ position: absolute;
28
+ top: 50%;
29
+ left: 0;
30
+ transform: translateY(-50%);
31
+ -webkit-backface-visibility: hidden;
32
+ color: $color--alert;
33
+ font-weight: 500;
34
+ font-size: 15px;
35
+ text-align: center;
36
+ opacity: 0;
37
+ i {
38
+ text-transform: uppercase;
39
+ font-style: normal;
40
+ }
41
+ }
42
+ }
43
+
44
+ &:hover {
45
+ &::after { opacity: 0.9; };
46
+ p.feature-label-notice{
47
+ transition: all 0.6s $easeOutQuart 0.05s;
48
+ opacity: 1;
49
+ };
50
+ }
51
+ }
admin/blocks/styles/components/social-icons.scss ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $iconWSize: 42px;
2
+ $addButtonSize: 30px;
3
+
4
+ div[data-component="social-icons"] {
5
+ display: flex;
6
+ flex-direction: row;
7
+ flex-wrap: wrap;
8
+ justify-content: flex-start;
9
+ align-items: center;
10
+ position: relative;
11
+
12
+ min-height: 42px;
13
+
14
+ // Icon
15
+ .-icon {
16
+ color: inherit;
17
+ position: relative;
18
+ width: $iconWSize;
19
+ height: $iconWSize;
20
+ font-size: 100%;
21
+ margin: 0;
22
+ line-height: 0;
23
+ display: block;
24
+ vertical-align: middle;
25
+
26
+ i {
27
+ transition: all 0.6s $easeOutBack;
28
+ color: inherit;
29
+ font-size: 24px;
30
+ position: absolute;
31
+ top: 50%;
32
+ left: 50%;
33
+ transform: translate(-50%, -50%);
34
+ }
35
+
36
+ &::before {
37
+ transition: all 0.6s $easeOutBack;
38
+ content: " ";
39
+ position: absolute;
40
+ width: 50%;
41
+ height: 50%;
42
+ top: 50%;
43
+ left: 50%;
44
+ transform: translate(-50%, -50%);
45
+ opacity: 0;
46
+ border-radius: 50%;
47
+ }
48
+
49
+ /* ---- Hover ---- */
50
+
51
+ &:hover {
52
+ i {
53
+ color:white;
54
+ }
55
+ &::before {
56
+ width: 110%;
57
+ height: 110%;
58
+ opacity: 1;
59
+ }
60
+ }
61
+
62
+ /**
63
+ * Add Original Colors
64
+ */
65
+ &.-modelmayhem::before { background-color: #000000; }
66
+ &.-mixcloud::before { background-color: #000000; }
67
+ &.-npm::before { background-color: #cb3837; }
68
+ &.-drupal::before { background-color: #22a9e0; }
69
+ &.-swarm::before { background-color: #ff9a1c; }
70
+ &.-istock::before { background-color: #040404; }
71
+ &.-yammer::before { background-color: #0073c6; }
72
+ &.-ello::before { background-color: #000000; }
73
+ &.-stackoverflow::before { background-color: #f47f25; }
74
+ &.-triplej::before { background-color: #e73429; }
75
+ &.-houzz::before { background-color: #7bc144; }
76
+ &.-rss::before { background-color: #fc762b; }
77
+ &.-paypal::before { background-color: #009cdd; }
78
+ &.-odnoklassniki::before { background-color: #f68222; }
79
+ &.-airbnb::before { background-color: #ff5b60; }
80
+ &.-periscope::before { background-color: #2ba4c6; }
81
+ &.-outlook::before { background-color: #0074c6; }
82
+ &.-coderwall::before { background-color: #343131; }
83
+ &.-tripadvisor::before { background-color: #1e882f; }
84
+ &.-goodreads::before { background-color: #463020; }
85
+ &.-tripit::before { background-color: #f38c07; }
86
+ &.-lanyrd::before { background-color: #133359; }
87
+ &.-slideshare::before { background-color: #007ab5; }
88
+ &.-buffer::before { background-color: #333333; }
89
+ &.-disqus::before { background-color: #239eff; }
90
+ &.-vkontakte::before { background-color: #4b76a3; }
91
+ &.-whatsapp::before { background-color: #4dc247; }
92
+ &.-patreon::before { background-color: #e8481d; }
93
+ &.-storehouse::before { background-color: #231f20; }
94
+ &.-pocket::before { background-color: #ee4255; }
95
+ &.-mail::before { background-color: #008299; }
96
+ &.-blogger::before { background-color: #f89239; }
97
+ &.-technorati::before { background-color: #3baf04; }
98
+ &.-reddit::before { background-color: #ff4706; }
99
+ &.-dribbble::before { background-color: #f36898; }
100
+ &.-stumbleupon::before { background-color: #ec4a26; }
101
+ &.-digg::before { background-color: #165790; }
102
+ &.-envato::before { background-color: #81b342; }
103
+ &.-behance::before { background-color: #006aff; }
104
+ &.-delicious::before { background-color: #1d96ff; }
105
+ &.-deviantart::before { background-color: #04cc48; }
106
+ &.-forrst::before { background-color: #4fb54b; }
107
+ &.-play::before { background-color: #0070c0; }
108
+ &.-zerply::before { background-color: #9dbb7a; }
109
+ &.-wikipedia::before { background-color: #333333; }
110
+ &.-apple::before { background-color: #aaaaaa; }
111
+ &.-flattr::before { background-color: #fdb936; }
112
+ &.-github::before { background-color: #323131; }
113
+ &.-renren::before { background-color: #005fac; }
114
+ &.-friendfeed::before { background-color: #85a9d9; }
115
+ &.-newsvine::before { background-color: #005221; }
116
+ &.-bebo::before { background-color: #ef1513; }
117
+ &.-zynga::before { background-color: #f60b30; }
118
+ &.-steam::before { background-color: #010103; }
119
+ &.-xbox::before { background-color: #107b10; }
120
+ &.-windows::before { background-color: #0078d7; }
121
+ &.-qq::before { background-color: #000000; }
122
+ &.-douban::before { background-color: #007510; }
123
+ &.-meetup::before { background-color: #f10a05; }
124
+ &.-playstation::before { background-color: #00338a; }
125
+ &.-android::before { background-color: #9acc06; }
126
+ &.-snapchat::before { background-color: #fffb0e; }
127
+ &.-twitter::before { background-color: #55acee; }
128
+ &.-facebook::before { background-color: #3b5998; }
129
+ &.-googleplus::before { background-color: #dd4b39; }
130
+ &.-pinterest::before { background-color: #cb2027; }
131
+ &.-foursquare::before { background-color: #fa4a78; }
132
+ &.-yahoo::before { background-color: #3f0690; }
133
+ &.-skype::before { background-color: #00b0f0; }
134
+ &.-yelp::before { background-color: #bf3126; }
135
+ &.-feedburner::before { background-color: #0072c4; }
136
+ &.-linkedin::before { background-color: #007bb5; }
137
+ &.-viadeo::before { background-color: #f4972c; }
138
+ &.-xing::before { background-color: #005d5e; }
139
+ &.-myspace::before { background-color: #003499; }
140
+ &.-soundcloud::before { background-color: #fb3e0f; }
141
+ &.-spotify::before { background-color: #1dd660; }
142
+ &.-grooveshark::before { background-color: #f77f07; }
143
+ &.-lastfm::before { background-color: #e41a2d; }
144
+ &.-youtube::before { background-color: #bb0000; }
145
+ &.-vimeo::before { background-color: #06b7ea; }
146
+ &.-dailymotion::before { background-color: #0065dc; }
147
+ &.-vine::before { background-color: #00b185; }
148
+ &.-flickr::before { background-color: #0064db; }
149
+ &.-w500px::before { background-color: #009ae5; }
150
+ &.-instagram::before { background-color: #125688; }
151
+ &.-wordpress::before { background-color: #00749a; }
152
+ &.-tumblr::before { background-color: #36465d; }
153
+ &.-twitch::before { background-color: #6343a5; }
154
+ &.-w8tracks::before { background-color: #0f2c4b; }
155
+ &.-amazon::before { background-color: #231f20; }
156
+ &.-smugmug::before { background-color: #96c73e; }
157
+ &.-ravelry::before { background-color: #c61b4e; }
158
+ &.-weibo::before { background-color: #fc1d26; }
159
+ &.-baidu::before { background-color: #181fdc; }
160
+ &.-angellist::before { background-color: #373435; }
161
+ &.-ebay::before { background-color: #e63438; }
162
+ &.-imdb::before { background-color: #e4ac3e; }
163
+ &.-stayfriends::before { background-color: #ff8d08; }
164
+ &.-residentadvisor::before { background-color: #fffe0d; }
165
+ &.-google::before { background-color: #0058c6; }
166
+ &.-yandex::before { background-color: #e62922; }
167
+ &.-sharethis::before { background-color: #1c6e01; }
168
+ &.-bandcamp::before { background-color: #609aa9; }
169
+ }
170
+
171
+ // Empty icon
172
+ .-empty {
173
+
174
+ text-decoration: none;
175
+ position: relative;
176
+
177
+ &::after {
178
+ content: " ";
179
+ width: $addButtonSize;
180
+ height: $addButtonSize;
181
+ position: absolute;
182
+ top: 50%;
183
+ left: 50%;
184
+ transform: translate(-50%, -50%);
185
+ border: 1px dashed $color--borders;
186
+ border-radius: 50%;
187
+ }
188
+
189
+ i {
190
+ position: absolute;
191
+ top: calc( 50% + 1px );
192
+ left: 50%;
193
+ transform: translate(-50%, -50%);
194
+ font-size: 18px;
195
+ }
196
+
197
+ &:hover::after {
198
+ border: 1px solid $color--borders;
199
+ }
200
+ }
201
+
202
+ /**
203
+ * On editor
204
+ */
205
+ button {
206
+ transition: all 0.6s $easeOutQuart;
207
+ width: $addButtonSize;
208
+ height: $addButtonSize;
209
+ box-sizing: border-box;
210
+ border-radius: 50%;
211
+ border: 1px solid $color--borders;
212
+ background-color: rgba(white, 0.7);
213
+
214
+ position: absolute;
215
+ right: -40px;
216
+ top: 5px;
217
+
218
+ &[data-empty="true"] {
219
+ right: -30px;
220
+ }
221
+
222
+ svg {
223
+ position: absolute;
224
+ top: calc( 50% + 1px );
225
+ left: 50%;
226
+ transform: translate(-50%, -50%);
227
+ display: inherit;
228
+ path {
229
+ transition: all 0.8s $easeOutQuart;
230
+ color: $color--icons;
231
+ }
232
+ }
233
+
234
+ /* ---- hover ---- */
235
+ &:hover {
236
+ border: 1px solid rgba($color--icons--hover, 0.5);
237
+ background-color: rgba(white, 1);
238
+ svg path {
239
+ color: $color--icons--hover;
240
+ }
241
+ }
242
+ }
243
+
244
+ }
245
+
246
+ /**
247
+ * Social icons menu
248
+ */
249
+ .editor-block-social-icons-menu__content {
250
+ .components-popover__content {
251
+ padding: 7px;
252
+
253
+ .editor-block-settings-menu__separator {
254
+ border-top: 1px solid #e2e4e7;
255
+ margin: 8px -7px;
256
+ }
257
+ }
258
+ }
admin/config.settings.php CHANGED
@@ -24,10 +24,11 @@ return [
24
  */
25
  'plugin' => [
26
  'slug' => 'coming-soon-blocks',
27
- 'name' => 'Coming Soon Blocks for Gutenberg',
28
- 'version' => '1.0.0',
29
  'PluginURI' => 'https://pixelthrone.com/coming-soon-blocks',
30
- 'WP.OrgURI' => '#plugin-wp-org-url',
 
31
  ],
32
  /**
33
  * Meta keys.
@@ -98,14 +99,15 @@ return [
98
  'id' => 'pt_comingsoonblocks_toolbar_group',
99
  'title' => '<i class="dashicons-before '.$icon.'"></i>',
100
  'href' => get_admin_url( null, 'edit.php?post_type=coming-soon-blocks' ),
101
- 'meta' => [ 'class' => '' ]
102
- ],
103
- [
104
- 'id' => 'pt_comingsoonblocks_toolbar_status',
105
- 'title' => esc_html__( 'Coming is active', 'coming-soon-blocks' ),
106
- 'href' => get_admin_url( null, 'edit.php?post_type=coming-soon-blocks' ),
107
- 'parent' => 'pt_comingsoonblocks_toolbar_group'
108
  ],
 
 
 
 
 
 
109
  [
110
  'id' => 'pt_comingsoonblocks_toolbar_add-new',
111
  'title' => sprintf( esc_html__( '%s Add Coming soon', 'coming-soon-blocks' ), '<i class="dashicons-before dashicons-plus"></i>' ),
24
  */
25
  'plugin' => [
26
  'slug' => 'coming-soon-blocks',
27
+ 'name' => 'Coming Soon Blocks',
28
+ 'version' => '1.1.0',
29
  'PluginURI' => 'https://pixelthrone.com/coming-soon-blocks',
30
+ 'wp_org_url' => 'https://wordpress.org/support/plugin/coming-soon-blocks',
31
+ 'wp_review_url' => 'https://wordpress.org/support/plugin/coming-soon-blocks/reviews/',
32
  ],
33
  /**
34
  * Meta keys.
99
  'id' => 'pt_comingsoonblocks_toolbar_group',
100
  'title' => '<i class="dashicons-before '.$icon.'"></i>',
101
  'href' => get_admin_url( null, 'edit.php?post_type=coming-soon-blocks' ),
102
+ 'meta' => [ 'class' => '' ],
103
+ 'parent' => 'top-secondary',
 
 
 
 
 
104
  ],
105
+ // [
106
+ // 'id' => 'pt_comingsoonblocks_toolbar_status',
107
+ // 'title' => esc_html__( 'Coming is active', 'coming-soon-blocks' ),
108
+ // 'href' => get_admin_url( null, 'edit.php?post_type=coming-soon-blocks' ),
109
+ // 'parent' => 'pt_comingsoonblocks_toolbar_group'
110
+ // ],
111
  [
112
  'id' => 'pt_comingsoonblocks_toolbar_add-new',
113
  'title' => sprintf( esc_html__( '%s Add Coming soon', 'coming-soon-blocks' ), '<i class="dashicons-before dashicons-plus"></i>' ),
admin/dashboard/styles/dashboard.scss ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /**
2
+ * Toolbar.
3
+ *
4
+ * @since 1.0.0
5
+ */
6
+ @import './dashboard/all-pages.scss';
admin/dashboard/styles/dashboard/all-pages.scss ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body.post-type-coming-soon-blocks {
2
+
3
+ .wrap {
4
+ #split-page-title-action {
5
+ .expander { display: none; }
6
+ }
7
+ }
8
+
9
+ #wpbody-content {
10
+ // Top Buttons
11
+ .subsubsub {
12
+ margin-bottom: 10px;
13
+ }
14
+
15
+ // Form
16
+ #posts-filter {
17
+
18
+ .search-box { display: none; }
19
+ .tablenav.top { display: none; }
20
+
21
+ // List
22
+ .wp-list-table {
23
+
24
+ thead {
25
+ .check-column { display: none; }
26
+ }
27
+ // Body
28
+ tbody {
29
+ .check-column {
30
+ display: none;
31
+ }
32
+ .column-title {
33
+ .post-state { display: none; }
34
+ .row-actions {
35
+ .edit, .classic, .inline {
36
+ display: none;
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+ tfoot {
43
+ .check-column { display: none; }
44
+ }
45
+
46
+ }
47
+
48
+ }
49
+ }
50
+
51
+ // Wrapper
52
+ #plugin-dashboard {
53
+ margin-left: 36px;
54
+
55
+ background-color: red;
56
+ padding: 30px;
57
+ }
58
+ }
59
+
60
+
admin/dashboard/styles/global.scss ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Toolbar.
3
+ *
4
+ * @since 1.0.0
5
+ */
6
+ @import './global/toolbar.scss';
7
+
8
+ /**
9
+ * Admin menu.
10
+ *
11
+ * @since 1.0.0
12
+ */
13
+ @import './global/admin-menu.scss';
14
+
admin/dashboard/styles/global/admin-menu.scss ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body {
2
+ #adminmenuwrap > ul {
3
+ // Plugin menu
4
+ #menu-posts-coming-soon-blocks {
5
+ ul {
6
+ li > a[href*='account']:not(.current),
7
+ li:nth-last-child(3) a:not(.current),
8
+ li:nth-last-child(2) a:not(.current) {
9
+ opacity: 0.6;
10
+ &:hover {
11
+ opacity: 1;
12
+ }
13
+ }
14
+ li:nth-of-type(7) {
15
+ a { color: inherit; font-weight: bold; }
16
+ }
17
+ }
18
+ }
19
+ }
20
+
21
+
22
+
23
+ /**
24
+ * Color Scheme
25
+ *
26
+ * @since 1.0.0
27
+ */
28
+ // Default
29
+ $bg-featured: #00A0D2;
30
+ &.admin-color-fresh #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing { color: $bg-featured; }
31
+
32
+ // Light
33
+ $bg-featured: #04A4CB;
34
+ &.admin-color-light #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing { color: $bg-featured; }
35
+
36
+ // Blue
37
+ $bg-featured: #096484;
38
+ &.admin-color-blue #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing { color: $bg-featured; }
39
+
40
+ // Coffee
41
+ $bg-featured: #C7A589;
42
+ &.admin-color-coffee #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing { color: $bg-featured; }
43
+
44
+ // Coffee
45
+ $bg-featured: #A3B745;
46
+ &.admin-color-ectoplasm #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing { color: $bg-featured; }
47
+
48
+ // Midnight
49
+ $bg-featured: #E14D43;
50
+ &.admin-color-midnight #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing { color: $bg-featured; }
51
+
52
+ // Ocean
53
+ $bg-featured: #9EBAA0;
54
+ &.admin-color-ocean #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing { color: $bg-featured; }
55
+
56
+ // Sunrise
57
+ $bg-featured: #F6D308;
58
+ &.admin-color-sunrise #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing { color: $bg-featured; }
59
+ }
admin/dashboard/styles/global/toolbar.scss ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body {
2
+
3
+ #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
4
+ /**
5
+ * Buttons
6
+ *
7
+ * @since 1.0.0
8
+ */
9
+ $size: 5px;
10
+ > a {
11
+ position: relative;
12
+ &::after {
13
+ content: " ";
14
+ width: $size;
15
+ height: $size;
16
+ border-radius: 50%;
17
+ position: absolute;
18
+ right: 6px;
19
+ bottom: 4px;
20
+ border: 2px solid transparent;
21
+ display: none;
22
+ }
23
+ i::before {
24
+ vertical-align: sub;
25
+ transform: translateY(1px);
26
+ }
27
+ }
28
+
29
+ // Submenu
30
+ .ab-submenu {
31
+ padding-bottom: 0;
32
+ li {
33
+ a {
34
+ i::before {
35
+ margin-top: 7px;
36
+ font-size: 18px;
37
+ }
38
+ }
39
+
40
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us {
41
+ margin-top: 13px;
42
+ padding-top: 6px;
43
+ background-color: #32373C;
44
+ }
45
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum {}
46
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade {
47
+ padding-bottom: 6px;
48
+ a { color: inherit; }
49
+ }
50
+ }
51
+ }
52
+
53
+ /**
54
+ * Enabled mode
55
+ *
56
+ * @since 1.0.0
57
+ */
58
+ &.-coming-soon-enabled {
59
+ > a::after { display: block; }
60
+ }
61
+ }
62
+
63
+ /**
64
+ * Color Scheme
65
+ *
66
+ * @since 1.0.0
67
+ */
68
+ // Default
69
+ $bg-color: #23282C;
70
+ $bg-lighten-color: lighten($bg-color, 10%);
71
+ $bg-featured: #00A0D2;
72
+ &.admin-color-fresh #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
73
+ > a::after { border-color: $bg-color; background-color: $bg-featured; }
74
+ .ab-submenu li {
75
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us { background-color: $bg-lighten-color; }
76
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum { background-color: $bg-lighten-color; }
77
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade { color: $bg-featured; background-color: $bg-lighten-color; }
78
+ }
79
+ &.hover > a::after { border-color: #32373C; }
80
+ }
81
+
82
+ // Light
83
+ $bg-color: #32373C;
84
+ $bg-lighten-color: #E5E5E5;
85
+ $bg-featured: #04A4CB;
86
+ &.admin-color-light #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
87
+ > a {
88
+ color: #999999;
89
+ &::after { border-color: $bg-lighten-color; background-color: $bg-featured; }
90
+ }
91
+ .ab-submenu li {
92
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us { background-color: $bg-lighten-color; }
93
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum { background-color: $bg-lighten-color; }
94
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade { color: $bg-featured; background-color: $bg-lighten-color; }
95
+ }
96
+ &.hover > a::after { border-color: #FFFFFF; }
97
+ }
98
+
99
+ // Blue
100
+ $bg-color: #52ACCC;
101
+ $bg-lighten-color: #52ACCC;
102
+ $bg-featured: #096484;
103
+ &.admin-color-blue #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
104
+ > a {
105
+ color: #E5F8FF;
106
+ &::after { border-color: $bg-lighten-color; background-color: $bg-featured; }
107
+ }
108
+ .ab-submenu li {
109
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us { background-color: $bg-lighten-color; }
110
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum { background-color: $bg-lighten-color; }
111
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade { color: $bg-featured; background-color: $bg-lighten-color; }
112
+ }
113
+ &.hover > a::after { border-color: #4796B3; }
114
+ }
115
+
116
+ // Coffee
117
+ $bg-color: #59524D;
118
+ $bg-lighten-color: #59524D;
119
+ $bg-featured: #C7A589;
120
+ &.admin-color-coffee #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
121
+ > a {
122
+ color: #E5F8FF;
123
+ &::after { border-color: $bg-lighten-color; background-color: $bg-featured; }
124
+ }
125
+ .ab-submenu li {
126
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us { background-color: $bg-lighten-color; }
127
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum { background-color: $bg-lighten-color; }
128
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade { color: $bg-featured; background-color: $bg-lighten-color; }
129
+ }
130
+ &.hover > a::after { border-color: #46403C; }
131
+ }
132
+
133
+ // Coffee
134
+ $bg-color: #523F6D;
135
+ $bg-lighten-color: #523F6D;
136
+ $bg-featured: #A3B745;
137
+ &.admin-color-ectoplasm #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
138
+ > a {
139
+ color: #ECE6F6;
140
+ &::after { border-color: $bg-lighten-color; background-color: $bg-featured; }
141
+ }
142
+ .ab-submenu li {
143
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us { background-color: $bg-lighten-color; }
144
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum { background-color: $bg-lighten-color; }
145
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade { color: $bg-featured; background-color: $bg-lighten-color; }
146
+ }
147
+ &.hover > a::after { border-color: #413257; }
148
+ }
149
+
150
+ // Midnight
151
+ $bg-color: #363B3F;
152
+ $bg-lighten-color: #363B3F;
153
+ $bg-featured: #E14D43;
154
+ &.admin-color-midnight #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
155
+ > a {
156
+ color: #ECE6F6;
157
+ &::after { border-color: $bg-lighten-color; background-color: $bg-featured; }
158
+ }
159
+ .ab-submenu li {
160
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us { background-color: $bg-lighten-color; }
161
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum { background-color: $bg-lighten-color; }
162
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade { color: $bg-featured; background-color: $bg-lighten-color; }
163
+ }
164
+ &.hover > a::after { border-color: #26292B; }
165
+ }
166
+
167
+ // Ocean
168
+ $bg-color: #738E96;
169
+ $bg-lighten-color: #738E96;
170
+ $bg-featured: #9EBAA0;
171
+ &.admin-color-ocean #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
172
+ > a {
173
+ color: #F2FCFF;
174
+ &::after { border-color: $bg-lighten-color; background-color: #76d27d; }
175
+ }
176
+ .ab-submenu li {
177
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us { background-color: $bg-lighten-color; }
178
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum { background-color: $bg-lighten-color; }
179
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade { color: $bg-featured; background-color: $bg-lighten-color; }
180
+ }
181
+ &.hover > a::after { border-color: #627C84; }
182
+ }
183
+
184
+ // Sunrise
185
+ $bg-color: #CF4844;
186
+ $bg-lighten-color: #CF4944;
187
+ $bg-featured: #F6D308;
188
+ &.admin-color-sunrise #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
189
+ > a {
190
+ color: #F3F1F1;
191
+ &::after { border-color: $bg-lighten-color; background-color: $bg-featured; }
192
+ }
193
+ .ab-submenu li {
194
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us { background-color: $bg-lighten-color; }
195
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum { background-color: $bg-lighten-color; }
196
+ &#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade { color: $bg-featured; background-color: $bg-lighten-color; }
197
+ }
198
+ &.hover > a::after { border-color: #CD4843; }
199
+ }
200
+ }
coming-soon-blocks.php CHANGED
@@ -6,8 +6,7 @@
6
  * Author: Helder Vilela from Pixelthrone
7
  * Author URI: https://heldervilela.com
8
  * Tags: gutenberg, editor, block, layout, coming Soon, under Construction, maintenance
9
- * Version: 1.0.0
10
- * Stable tag: 1.0.0
11
  * Text Domain: coming-soon-blocks
12
  * Domain Path: languages
13
  * Tested up to: 5.0.0
@@ -38,11 +37,12 @@ if ( ! defined( 'ABSPATH' ) ) {
38
  * @since 1.0.0
39
  */
40
  if ( function_exists( 'csblocks_fs' ) ) {
41
- csblocks_fs()->set_basename( true, __FILE__ );
42
  return;
43
  }
44
 
45
  require_once( plugin_dir_path( __FILE__ ) . '/lib/freemius.php' );
 
46
 
47
  /**
48
  * Initialize Class.
@@ -60,7 +60,7 @@ class Initialize {
60
  private $global_files = [
61
  'lib/Plugin.php',
62
  'lib/Utils.php',
63
- 'lib/Gutenberg_Checker.php',
64
  'admin/dashboard/Init.php',
65
  'admin/Toolbar.php',
66
  'admin/blocks/Init.php',
@@ -86,25 +86,32 @@ class Initialize {
86
  function __construct() {
87
 
88
  /**
89
- * Add a check for our plugin before redirecting
90
  */
91
- register_activation_hook( __FILE__, function () {
92
- add_option( 'pt_comingsoonblocks_do_activation_redirect', true );
93
- } );
94
- /**
95
- * Initialize after plugins loaded
96
- */
97
- add_action( 'plugins_loaded', [ $this, 'plugins_loaded' ] );
98
- /**
99
- * Admin Initialize
100
- */
101
- //add_action( 'admin_init', [ $this, 'admin_init' ] );
102
- /**
103
- * Global Initialize
104
- */
105
- add_action( 'init', [ $this, 'init' ] );
106
- add_action( 'after_setup_theme', [ $this, 'after_setup_theme' ] );
 
 
 
 
 
 
107
 
 
108
  }
109
 
110
  /**
@@ -143,14 +150,6 @@ class Initialize {
143
  add_image_size( 'csblocks_bg_image', 1920, 1280 );
144
  }
145
 
146
- /**
147
- * Triggered before any other hook when a user accesses the admin area
148
- *
149
- * @return void
150
- */
151
- public
152
- function admin_init() {}
153
-
154
  /**
155
  * Include required files.
156
  *
6
  * Author: Helder Vilela from Pixelthrone
7
  * Author URI: https://heldervilela.com
8
  * Tags: gutenberg, editor, block, layout, coming Soon, under Construction, maintenance
9
+ * Version: 1.1.0
 
10
  * Text Domain: coming-soon-blocks
11
  * Domain Path: languages
12
  * Tested up to: 5.0.0
37
  * @since 1.0.0
38
  */
39
  if ( function_exists( 'csblocks_fs' ) ) {
40
+ csblocks_fs()->set_basename( false, __FILE__ );
41
  return;
42
  }
43
 
44
  require_once( plugin_dir_path( __FILE__ ) . '/lib/freemius.php' );
45
+ require_once( plugin_dir_path( __FILE__ ) . '/lib/Block_Editor_Checker.php' );
46
 
47
  /**
48
  * Initialize Class.
60
  private $global_files = [
61
  'lib/Plugin.php',
62
  'lib/Utils.php',
63
+ 'lib/Footer_Text.php',
64
  'admin/dashboard/Init.php',
65
  'admin/Toolbar.php',
66
  'admin/blocks/Init.php',
86
  function __construct() {
87
 
88
  /**
89
+ * Validate WordPress minimum version and if block editor is active.
90
  */
91
+ $checker = new \Pixelthrone\ComingSoon_Blocks\Lib\Block_Editor_Checker();
92
+ if( ! $checker->is_good_to_go() ) {
93
+ return null;
94
+ } else {
95
+
96
+ /**
97
+ * Add a check for our plugin before redirecting.
98
+ */
99
+ register_activation_hook( __FILE__, function () {
100
+ add_option( 'pt_comingsoonblocks_do_activation_redirect', true );
101
+ } );
102
+
103
+ /**
104
+ * Initialize after plugins loaded
105
+ */
106
+ add_action( 'plugins_loaded', [ $this, 'plugins_loaded' ] );
107
+
108
+ /**
109
+ * Global Initialize
110
+ */
111
+ add_action( 'init', [ $this, 'init' ] );
112
+ add_action( 'after_setup_theme', [ $this, 'after_setup_theme' ] );
113
 
114
+ }
115
  }
116
 
117
  /**
150
  add_image_size( 'csblocks_bg_image', 1920, 1280 );
151
  }
152
 
 
 
 
 
 
 
 
 
153
  /**
154
  * Include required files.
155
  *
frontend/components/social-icons.php CHANGED
@@ -14,7 +14,13 @@ if( empty($networks)) {
14
  $networks = json_decode( $networks );
15
  ?>
16
  <div data-component="social-icons">
17
- <?php foreach( $networks as $network ):?>
18
- <a href="<?php echo esc_url($network->url); ?>" target="_blank" class="-icon -<?php echo esc_attr($network->icon); ?>"><i class="socicon-<?php echo esc_attr($network->icon); ?>"></i></a>
19
- <?php endforeach; ?>
 
 
 
 
 
 
20
  </div>
14
  $networks = json_decode( $networks );
15
  ?>
16
  <div data-component="social-icons">
17
+ <?php
18
+ foreach( $networks as $network ):
19
+ if( ! empty($network->url) ):
20
+ ?>
21
+ <a href="<?php echo esc_url($network->url); ?>" target="_blank" class="-icon -<?php echo esc_attr($network->icon); ?>"><i class="socicon-<?php echo esc_attr($network->icon); ?>"></i></a>
22
+ <?php
23
+ endif;
24
+ endforeach;
25
+ ?>
26
  </div>
frontend/init.php CHANGED
@@ -40,20 +40,9 @@ class Init
40
  return;
41
  }
42
  // Check if plugin is active
43
-
44
  if ( Plugin::is_active() ) {
45
  add_action( 'template_redirect', [ $this, 'template_redirect' ] );
46
- // Disable the rest api in coming soon mode
47
-
48
- if ( apply_filters( 'pixelthrone/coming-soon-blocks/only_allow_logged_in_rest_access', false ) ) {
49
- $current_WP_version = get_bloginfo( 'version' );
50
- if ( version_compare( $current_WP_version, '4.7', '>=' ) ) {
51
- add_filter( 'rest_authentication_errors', array( &$this, 'only_allow_logged_in_rest_access' ) );
52
- }
53
- }
54
-
55
  }
56
-
57
  }
58
 
59
  /**
40
  return;
41
  }
42
  // Check if plugin is active
 
43
  if ( Plugin::is_active() ) {
44
  add_action( 'template_redirect', [ $this, 'template_redirect' ] );
 
 
 
 
 
 
 
 
 
45
  }
 
46
  }
47
 
48
  /**
frontend/styles/components/cookie-notice.scss ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $browser-margins:20px;
2
+ $browser-margins-width-button:20px;
3
+ $button-bg-color: white;
4
+ $border-radius: 50px;
5
+ $text-color: #555D67;
6
+ div[data-component="cookie-notice"] {
7
+ transition: all 0.8s $easeInOutBack;
8
+ position: fixed;
9
+ bottom: $browser-margins;
10
+ right: $browser-margins;
11
+ background-color: $button-bg-color;
12
+ border-radius: $border-radius;
13
+ z-index: 10;
14
+ min-height: 60px;
15
+ padding: 5px 10px;
16
+ box-sizing: border-box;
17
+
18
+ display: flex;
19
+ flex-direction: row;
20
+ flex-wrap: nowrap;
21
+ justify-content: flex-start;
22
+ align-items: center;
23
+ box-shadow: 0 7px 14px rgba(50,50,93,.05), 0 3px 6px rgba(0,0,0,.08);
24
+
25
+ @include media(tablet-portrait) {
26
+ max-width: 660px;
27
+ }
28
+
29
+ @include media(mobile) {
30
+ flex-direction: column;
31
+ justify-content: flex-start;
32
+ align-items: flex-start;
33
+ padding: 20px 20px 10px 20px;
34
+ border-radius: 20px;
35
+ max-width: calc( 100vw - 90px);
36
+ right: $browser-margins + 55px !important;
37
+ bottom: $browser-margins - 10px !important;
38
+ }
39
+
40
+ &.-not-alone {
41
+ right: $browser-margins + 60px + 10px;
42
+ }
43
+
44
+ &.-leave {
45
+ bottom: -100px;
46
+ }
47
+
48
+ p {
49
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
50
+ font-size: 14px;
51
+ color: $text-color;
52
+ padding: 0 30px 0 20px;
53
+ margin: 0;
54
+ @include media(mobile) {
55
+ padding: 0;
56
+ }
57
+
58
+ @include media(tablet-portrait) {
59
+ font-size: 13px;
60
+ br { display: none; }
61
+ }
62
+ }
63
+
64
+ button {
65
+ transition: all 0.8s $easeOutQuart;
66
+ background-color: rgba(black, 0.1);
67
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
68
+ font-size: 14px;
69
+ border-radius: $border-radius;
70
+ padding: 12px 25px;
71
+ text-decoration: none;
72
+ color: $text-color;
73
+ font-weight: 500;
74
+ border:none;
75
+ cursor: pointer;
76
+ outline: none;
77
+
78
+ @include media(mobile) {
79
+ margin-top: 15px;
80
+ width: 100%;
81
+ }
82
+
83
+ /* ---- hover ---- */
84
+
85
+ &:hover {
86
+ background-color: rgba(black, 0.18);
87
+ }
88
+ }
89
+
90
+ }
91
+
frontend/styles/components/unlock-page.scss ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $browser-margins:20px;
2
+ $button-size:60px;
3
+ $button-bg-color: #282A2F;
4
+ $modal-width: 300px;
5
+ $border-radius: 10px;
6
+ $text-color: #555D67;
7
+ div[data-component="unlock-page"] {
8
+ transition: all 0.6s $easeInOutExpo;
9
+ position: fixed;
10
+ bottom: $browser-margins;
11
+ right: $browser-margins;
12
+ z-index: 100;
13
+
14
+ @include media(mobile) {
15
+ bottom: $browser-margins - 10px;
16
+ right: $browser-margins - 10px;
17
+ }
18
+
19
+ * {
20
+ box-sizing: border-box;
21
+ }
22
+
23
+ .button {
24
+ width: $button-size;
25
+ height: $button-size;
26
+ position: relative;
27
+ display: block;
28
+ z-index: 2;
29
+
30
+ @include media(mobile) {
31
+ width: $button-size - 6px;
32
+ height: $button-size - 6px;
33
+ }
34
+
35
+ svg {
36
+ position: absolute;
37
+ top: 50%;
38
+ left: 50%;
39
+ transform: translate(-50%, -50%);
40
+ z-index: 2;
41
+ path:nth-of-type(1) {
42
+ transition: all 0.6s $easeInOutExpo;
43
+ }
44
+ @include media(mobile) {
45
+
46
+
47
+ }
48
+ }
49
+ i {
50
+ @include spinner();
51
+ opacity: 0;
52
+ }
53
+ span {
54
+ transition: all 0.6s $easeInOutQuart;
55
+ position: absolute;
56
+ top: 50%;
57
+ left: 50%;
58
+ transform: translate(-50%, -50%);
59
+ width: 100%;
60
+ height: 100%;
61
+ background-color: $button-bg-color;
62
+ border-radius: 50%;
63
+ z-index: 1;
64
+ }
65
+ }
66
+ .content__wrapper {
67
+ transition: all 0.6s $easeOutQuart;
68
+ z-index: 1;
69
+ padding: 10px 30px 10px 15px;
70
+ position: absolute;
71
+ bottom: -15px;
72
+ right: $button-size / 2;
73
+ width: $modal-width;
74
+ padding-right: 60px;
75
+ box-sizing: border-box;
76
+ overflow: hidden;
77
+ border-radius: $border-radius;
78
+
79
+ @include media(mobile) {
80
+ max-width: calc( 100vw - 55px);
81
+ padding-right: 40px;
82
+ bottom: -22px;
83
+ }
84
+
85
+ // Message
86
+ span {
87
+ padding: 15px;
88
+ position: absolute;
89
+ top:0;
90
+ left: 0;
91
+ background-color: white;
92
+ width: 100%;
93
+ height: 100%;
94
+
95
+ display: flex;
96
+ flex-direction: row;
97
+ flex-wrap: nowrap;
98
+ justify-content: flex-start;
99
+ align-items: center;
100
+ opacity: 0;
101
+ pointer-events: none;
102
+
103
+ p {
104
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
105
+ font-size: 14px;
106
+ color: $text-color;
107
+ line-height: 140%;
108
+ padding: 0;
109
+ margin: 0;
110
+ &.-error {
111
+ color: $color--error;
112
+ }
113
+
114
+ @include media(mobile) {
115
+ font-size: 13px;
116
+ }
117
+ }
118
+ }
119
+
120
+ // Label
121
+ > p {
122
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
123
+ font-size: 14px;
124
+ color: #555D67;
125
+ line-height: 140%;
126
+ padding: 0;
127
+ margin: 0 0 10px 0;
128
+
129
+ @include media(mobile) {
130
+ font-size: 13px;
131
+ }
132
+ }
133
+
134
+ // Input
135
+ input {
136
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
137
+ background-color: #E8EBEE;
138
+ border-radius: 50px;
139
+ width: 100%;
140
+ padding: 5px 10px 7px 10px;
141
+ outline: none;
142
+ box-sizing: border-box;
143
+ font-size: 14px;
144
+ border: 1px solid transparent;
145
+
146
+ &.-error {
147
+ border-color: $color--error;
148
+ }
149
+ &:focus, &:hover {
150
+ background-color: darken(#E8EBEE, 5%);
151
+ }
152
+ }
153
+
154
+ // Background
155
+ i {
156
+ background-color: white;
157
+ position: absolute;
158
+ bottom: 0;
159
+ right: 0;
160
+ width: 100%;
161
+ height: 100%;
162
+ z-index: -1;
163
+ }
164
+ }
165
+ .page-overlayer {
166
+ position: fixed;
167
+ transition: all 1s linear;
168
+ width: 100%;
169
+ height: 100%;
170
+ bottom: 0;
171
+ right: 0;
172
+ opacity: 0;
173
+ pointer-events: none;
174
+ background: rgb(2,0,36);
175
+ background: linear-gradient(152deg, rgba(2,0,36,0) 0%, rgba(0,0,0,0.9) 100%);
176
+ }
177
+
178
+ /**
179
+ * Loading
180
+ */
181
+ &[data-loading="true"] {
182
+ .button {
183
+ pointer-events: none;
184
+ svg {
185
+ opacity: 0;
186
+ }
187
+ i {
188
+ opacity: 1;
189
+ }
190
+ }
191
+
192
+ }
193
+
194
+ /**
195
+ * Message
196
+ */
197
+ &[data-message="true"] {
198
+ .button {
199
+ pointer-events: none;
200
+ }
201
+ .content__wrapper {
202
+ padding-top: 0;
203
+ padding-bottom: 0;
204
+ bottom: -8px;
205
+ transition-duration: 0.4s;
206
+ span {
207
+ opacity: 1;
208
+ pointer-events: auto;
209
+ }
210
+ @include media(mobile) {
211
+ bottom: -12px;
212
+ }
213
+ }
214
+ }
215
+
216
+ /**
217
+ * Modes
218
+ */
219
+ &[data-mode="close"] {
220
+ .button:hover {
221
+ svg path:nth-of-type(1) {
222
+ transform: translateY(-2px);
223
+ }
224
+ span {
225
+ width: 110%;
226
+ height: 110%;
227
+ box-shadow: 0 5px 10px 0 rgba(0,0,0,.2);
228
+ }
229
+ }
230
+ .content__wrapper {
231
+ pointer-events: none;
232
+ > p {
233
+ opacity: 0;
234
+ transform: translateY(10px);
235
+ }
236
+ input {
237
+ opacity: 0;
238
+ transform: translateY(10px);
239
+ }
240
+ i {
241
+ width: 0;
242
+ }
243
+ }
244
+ .page-overlayer {
245
+ transition-duration: 0.6s;
246
+ }
247
+ }
248
+ &[data-mode="open"] {
249
+ bottom: $browser-margins * 2 ;
250
+ .button {
251
+ span {
252
+ transition: all 0.6s $easeInOutExpo;
253
+ border-radius:$border-radius;
254
+ }
255
+ svg path:nth-of-type(1) {
256
+ transform: translateY(-2px);
257
+ }
258
+ /* ---- hover ---- */
259
+ &:hover {
260
+ span { height: 120%}
261
+ svg path:nth-of-type(1) {
262
+ transform: translateY(-5px);
263
+ }
264
+ }
265
+ }
266
+ .content__wrapper {
267
+ pointer-events: auto;
268
+ > p {
269
+ transition: all 0.6s $easeOutQuart 0.5s;
270
+ opacity: 1;
271
+ }
272
+ input {
273
+ transition: all 0.6s $easeOutQuart 0.6s;
274
+ opacity: 1;
275
+ }
276
+ i {
277
+ transition: all 0.6s $easeInOutExpo;
278
+ width: 100%;
279
+ }
280
+ }
281
+ .page-overlayer {
282
+ opacity: 1;
283
+ transition-duration: 1s;
284
+ pointer-events: auto;
285
+ }
286
+ }
287
+
288
+ }
289
+
frontend/styles/frontend.scss ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ html {
2
+ width: 100%;
3
+ height: 100%;
4
+ padding: 0;
5
+ margin: 0;
6
+ }
7
+ body {
8
+ width: 100%;
9
+ height: 100%;
10
+ padding: 0;
11
+ margin: 0;
12
+
13
+ @import './components/unlock-page.scss';
14
+ @import './components/cookie-notice.scss';
15
+
16
+ main {
17
+ transition: all 0.6s $easeInOutExpo;
18
+ }
19
+
20
+ }
languages/coming-soon-blocks.pot CHANGED
@@ -16,101 +16,96 @@ msgstr ""
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
 
19
- #: coming-soon-blocks.php:178, coming-soon-blocks.php:191
20
  msgid "Cheatin&#8217; huh?"
21
  msgstr ""
22
 
23
- #: admin/config.settings.php:63, admin/config.settings.php:65, admin/config.settings.php:67
24
  msgid "Coming Soon"
25
  msgstr ""
26
 
27
- #: admin/config.settings.php:66, admin/config.settings.php:68
28
  msgid "Page"
29
  msgstr ""
30
 
31
- #: admin/config.settings.php:69
32
  msgid "All Pages"
33
  msgstr ""
34
 
35
- #: admin/config.settings.php:70
36
  msgid "View Pages"
37
  msgstr ""
38
 
39
- #: admin/config.settings.php:71, admin/config.settings.php:72
40
  msgid "Add new"
41
  msgstr ""
42
 
43
- #: admin/config.settings.php:73
44
  msgid "Edit Pages"
45
  msgstr ""
46
 
47
- #: admin/config.settings.php:74
48
  msgid "Update"
49
  msgstr ""
50
 
51
- #: admin/config.settings.php:75
52
  msgid "Search pages"
53
  msgstr ""
54
 
55
- #: admin/config.settings.php:76
56
  msgid "No pages found"
57
  msgstr ""
58
 
59
- #: admin/config.settings.php:77
60
  msgid "No pages found in Trash"
61
  msgstr ""
62
 
63
- #: admin/config.settings.php:105
64
- msgid "Coming is active"
65
- msgstr ""
66
-
67
- #: admin/config.settings.php:111
68
  msgid "%s Add Coming soon"
69
  msgstr ""
70
 
71
- #: admin/config.settings.php:117
72
  msgid "%s Settings"
73
  msgstr ""
74
 
75
- #: admin/config.settings.php:123
76
  msgid "Contact Us"
77
  msgstr ""
78
 
79
- #: admin/config.settings.php:130
80
  msgid "Support Forum"
81
  msgstr ""
82
 
83
- #: admin/config.settings.php:137
84
  msgid "Upgrade"
85
  msgstr ""
86
 
87
- #: admin/config.settings.php:137
88
  msgid "Pricing"
89
  msgstr ""
90
 
91
- #: frontend/init.php:236
92
  msgid "Only authenticated users can access the REST API."
93
  msgstr ""
94
 
95
- #. translators: Name of this pluign
96
- #: lib/Gutenberg_Checker.php:135
97
- msgid "deactivate %1$s"
 
 
 
98
  msgstr ""
99
 
100
- #. translators: 1: Required plugin 2: Name of this plugin 3: Activate or Install, from $link above
101
- #. translators: 1: Required plugin 2: Name of this pluign 3: Activate or Install, from $link above
102
- #: lib/Gutenberg_Checker.php:140, lib/Gutenberg_Checker.php:173
103
- msgid "%1$s requires the %2$s block editor. %4$s Please %3$s to continue."
104
  msgstr ""
105
 
106
- #. translators: Name of this pluign
107
- #: lib/Gutenberg_Checker.php:162
108
- msgid "activate %1$s"
109
  msgstr ""
110
 
111
- #. translators: Name of this pluign
112
- #: lib/Gutenberg_Checker.php:166
113
- msgid "install %1$s"
114
  msgstr ""
115
 
116
  #: admin/api/UnlockPage.php:77, admin/api/UnlockPage.php:106
@@ -125,6 +120,14 @@ msgstr ""
125
  msgid "The password is not correct."
126
  msgstr ""
127
 
 
 
 
 
 
 
 
 
128
  #: frontend/components/cookie-notice.php:20
129
  msgid "Got it, Thanks!"
130
  msgstr ""
@@ -132,3 +135,11 @@ msgstr ""
132
  #: frontend/components/unlock-page.php:23
133
  msgid "This site is password protected, view by typing the password."
134
  msgstr ""
 
 
 
 
 
 
 
 
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
 
19
+ #: coming-soon-blocks.php:190, coming-soon-blocks.php:203
20
  msgid "Cheatin&#8217; huh?"
21
  msgstr ""
22
 
23
+ #: admin/config.settings.php:64, admin/config.settings.php:66, admin/config.settings.php:68
24
  msgid "Coming Soon"
25
  msgstr ""
26
 
27
+ #: admin/config.settings.php:67, admin/config.settings.php:69
28
  msgid "Page"
29
  msgstr ""
30
 
31
+ #: admin/config.settings.php:70
32
  msgid "All Pages"
33
  msgstr ""
34
 
35
+ #: admin/config.settings.php:71
36
  msgid "View Pages"
37
  msgstr ""
38
 
39
+ #: admin/config.settings.php:72, admin/config.settings.php:73
40
  msgid "Add new"
41
  msgstr ""
42
 
43
+ #: admin/config.settings.php:74
44
  msgid "Edit Pages"
45
  msgstr ""
46
 
47
+ #: admin/config.settings.php:75
48
  msgid "Update"
49
  msgstr ""
50
 
51
+ #: admin/config.settings.php:76
52
  msgid "Search pages"
53
  msgstr ""
54
 
55
+ #: admin/config.settings.php:77
56
  msgid "No pages found"
57
  msgstr ""
58
 
59
+ #: admin/config.settings.php:78
60
  msgid "No pages found in Trash"
61
  msgstr ""
62
 
63
+ #: admin/config.settings.php:113
 
 
 
 
64
  msgid "%s Add Coming soon"
65
  msgstr ""
66
 
67
+ #: admin/config.settings.php:119
68
  msgid "%s Settings"
69
  msgstr ""
70
 
71
+ #: admin/config.settings.php:125
72
  msgid "Contact Us"
73
  msgstr ""
74
 
75
+ #: admin/config.settings.php:132
76
  msgid "Support Forum"
77
  msgstr ""
78
 
79
+ #: admin/config.settings.php:139
80
  msgid "Upgrade"
81
  msgstr ""
82
 
83
+ #: admin/config.settings.php:139
84
  msgid "Pricing"
85
  msgstr ""
86
 
87
+ #: frontend/init.php:228
88
  msgid "Only authenticated users can access the REST API."
89
  msgstr ""
90
 
91
+ #: lib/Block_Editor_Checker.php:81
92
+ msgid "Some changes are required."
93
+ msgstr ""
94
+
95
+ #: lib/Block_Editor_Checker.php:82
96
+ msgid "In order to use the %sComing Soon Blocks%s plugin it is required that %sthese options%s have the following settings:"
97
  msgstr ""
98
 
99
+ #: lib/Block_Editor_Checker.php:84
100
+ msgid "— Allow users to switch editors : %sYes %s"
 
 
101
  msgstr ""
102
 
103
+ #: lib/Block_Editor_Checker.php:100
104
+ msgid "The Coming Soon Blocks plugin cannot be used with your current WordPress version. Please update to the latest version."
 
105
  msgstr ""
106
 
107
+ #: lib/Block_Editor_Checker.php:101
108
+ msgid "Thank you for understanding."
 
109
  msgstr ""
110
 
111
  #: admin/api/UnlockPage.php:77, admin/api/UnlockPage.php:106
120
  msgid "The password is not correct."
121
  msgstr ""
122
 
123
+ #: admin/blocks/Init.php:328
124
+ msgid "Oops, we're in the wrong editor."
125
+ msgstr ""
126
+
127
+ #: admin/blocks/Init.php:329
128
+ msgid "%sSwitch to Block Editor%s to start creating your coming soon pages."
129
+ msgstr ""
130
+
131
  #: frontend/components/cookie-notice.php:20
132
  msgid "Got it, Thanks!"
133
  msgstr ""
135
  #: frontend/components/unlock-page.php:23
136
  msgid "This site is password protected, view by typing the password."
137
  msgstr ""
138
+
139
+ #: admin/blocks/_available/temp-04/attributes.php:35
140
+ msgid "IF YOU DO IT RIGHT, IT WILL LAST FOREVER."
141
+ msgstr ""
142
+
143
+ #: admin/blocks/_available/temp-04/attributes.php:39
144
+ msgid "STAY IN TOUCH"
145
+ msgstr ""
lib/Block_Editor_Checker.php ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Validate WordPress minimum version and if block editor is active.
4
+ *
5
+ * @package Coming Soon Blocks
6
+ * @author Helder Vilela from Pixelthrone
7
+ * @link Helder Vilela from Pixelthrone_uri
8
+ * @license GPL-3.0
9
+ */
10
+ namespace Pixelthrone\ComingSoon_Blocks\Lib;
11
+
12
+ // Exit if accessed directly.
13
+ if ( ! defined( 'ABSPATH' ) ) {
14
+ exit;
15
+ }
16
+
17
+ /**
18
+ * Notice Class
19
+ *
20
+ * @since 1.1.0
21
+ */
22
+ class Block_Editor_Checker {
23
+
24
+ /**
25
+ * Default editor for all users.
26
+ *
27
+ * @since 1.1.0
28
+ * @return string
29
+ */
30
+ private $defaultEditor = '';
31
+
32
+ /**
33
+ * Allow users to switch editors.
34
+ *
35
+ * @since 1.1.0
36
+ * @return string
37
+ */
38
+ private $allowSwitch = '';
39
+
40
+ /**
41
+ * Setup the activation class.
42
+ *
43
+ * @access public
44
+ * @since 1.0.0
45
+ * @return boolean
46
+ */
47
+ public
48
+ function __construct() {
49
+ $this->defaultEditor = get_option('classic-editor-replace');
50
+ $this->allowSwitch = get_option('classic-editor-allow-users');
51
+
52
+ /**
53
+ * Check for block editor.
54
+ */
55
+ if( version_compare(get_bloginfo('version'),'5', '<') ) {
56
+ add_action( 'admin_notices', [$this, 'wp5_notice']);
57
+ return false;
58
+ }
59
+
60
+ /**
61
+ * Check for block editor.
62
+ */
63
+ if( $this->defaultEditor === 'classic' && $this->allowSwitch === 'disallow' ) {
64
+ add_action( 'admin_notices', [$this, 'block_editor_notice']);
65
+ return false;
66
+ }
67
+
68
+ return true;
69
+ }
70
+
71
+ /**
72
+ * Display notice if Gutenberg is not installed or activated.
73
+ *
74
+ * @access public
75
+ * @since 1.1.0
76
+ */
77
+ public function block_editor_notice() {
78
+ $url = admin_url('options-writing.php');
79
+ ?>
80
+ <div class="notice notice-warning" style="border-left: 4px solid #ffb900;">
81
+ <h2 class="title" style="margin-bottom: 0;"><?php esc_html_e( 'Some changes are required.', 'coming-soon-blocks' ); ?></h2>
82
+ <p><?php printf( esc_html__( 'In order to use the %sComing Soon Blocks%s plugin it is required that %sthese options%s have the following settings:', 'coming-soon-blocks' ), '<strong>','</strong>', '<a href="'.$url.'" class="button">', '</a>' ); ?></p>
83
+ <ul>
84
+ <li><?php printf( esc_html__( '— Allow users to switch editors : %sYes %s', 'coming-soon-blocks' ), '<strong>', '</strong>' ); ?></li>
85
+ </ul>
86
+ </div>
87
+ <?php
88
+ }
89
+
90
+ /**
91
+ * Display notice if Gutenberg is not installed or activated for wordpress 5
92
+ *
93
+ * @access public
94
+ * @since 1.1.0
95
+ */
96
+ public
97
+ function wp5_notice() {
98
+ ?>
99
+ <div class="notice notice-warning">
100
+ <h4 style="margin-bottom: 5px;"><?php esc_html_e( 'The Coming Soon Blocks plugin cannot be used with your current WordPress version. Please update to the latest version.', 'coming-soon-blocks' ); ?></h4>
101
+ <p><?php esc_html_e( 'Thank you for understanding.', 'coming-soon-blocks' ); ?></p>
102
+ </div>
103
+ <?php
104
+ }
105
+
106
+ /**
107
+ * Display notice if Gutenberg is not installed or activated for wordpress 5
108
+ *
109
+ * @since 1.1.0
110
+ * @access public
111
+ * @return boolean
112
+ */
113
+ public
114
+ function is_good_to_go() {
115
+ if( version_compare(get_bloginfo('version'),'5', '<') || $this->defaultEditor === 'classic' && $this->allowSwitch === 'disallow' ) {
116
+ return false;
117
+ } else {
118
+ return true;
119
+ }
120
+ }
121
+ }
lib/Footer_Text.php CHANGED
@@ -7,6 +7,8 @@
7
  * @link Helder Vilela from Pixelthrone_uri
8
  * @license GPL-3.0
9
  */
 
 
10
 
11
  // Exit if accessed directly.
12
  if ( ! defined( 'ABSPATH' ) ) {
@@ -42,15 +44,17 @@ class Footer_Text {
42
  return $footer_text;
43
  }
44
 
 
 
45
  $footer_text = sprintf(
46
  /* translators: 1: Block Architect, 2: Link to plugin review */
47
  __( 'Enjoying %1$s? Please leave a %2$s rating — we appreciate your support!', 'block-gallery' ),
48
- 'Block Gallery',
49
- '<a href="' . esc_url( BLOCKGALLERY_REVIEW_URL ) . '" target="_blank">&#9733;&#9733;&#9733;&#9733;&#9733;</a>'
50
  );
51
 
52
  return $footer_text;
53
  }
54
  }
55
 
56
- new Block_Gallery_Footer_Text();
7
  * @link Helder Vilela from Pixelthrone_uri
8
  * @license GPL-3.0
9
  */
10
+ namespace Pixelthrone\ComingSoon_Blocks\Lib;
11
+ use Pixelthrone\ComingSoon_Blocks\Plugin;
12
 
13
  // Exit if accessed directly.
14
  if ( ! defined( 'ABSPATH' ) ) {
44
  return $footer_text;
45
  }
46
 
47
+ $style = 'style="text-decoration: none; color: #f4d500; letter-spacing: 1px; margin: 0 3px; vertical-align: middle;"';
48
+
49
  $footer_text = sprintf(
50
  /* translators: 1: Block Architect, 2: Link to plugin review */
51
  __( 'Enjoying %1$s? Please leave a %2$s rating — we appreciate your support!', 'block-gallery' ),
52
+ '<strong>'.Plugin::get_settings('plugin', 'name').'</strong>',
53
+ '<a href="' . esc_url( Plugin::get_settings('plugin', 'wp_review_url') ) . '" '.$style.' target="_blank">&#9733;&#9733;&#9733;&#9733;&#9733;</a>'
54
  );
55
 
56
  return $footer_text;
57
  }
58
  }
59
 
60
+ new Footer_Text();
lib/Gutenberg_Checker.php DELETED
@@ -1,180 +0,0 @@
1
- <?php
2
- /**
3
- * Check for Gutenberg.
4
- *
5
- * @package Coming Soon Blocks
6
- * @author Helder Vilela from Pixelthrone
7
- * @link Helder Vilela from Pixelthrone_uri
8
- * @license GPL-3.0
9
- */
10
-
11
- namespace Pixelthrone\ComingSoon_Blocks\Lib\Gutenberg_Checker;
12
- use Pixelthrone\ComingSoon_Blocks\Plugin;
13
-
14
- // Exit if accessed directly.
15
- if ( ! defined( 'ABSPATH' ) ) {
16
- exit;
17
- }
18
-
19
- /**
20
- * Notice Class
21
- *
22
- * @since 1.0.0
23
- */
24
- class Gutenberg_Checker {
25
-
26
- /**
27
- * Gutenberg check.
28
- *
29
- * @var string $has_gutenberg
30
- */
31
- public $has_gutenberg = false;
32
-
33
- /**
34
- * Gutenberg base.
35
- *
36
- * @var string $gutenberg_base
37
- */
38
- public $gutenberg_base;
39
-
40
- /**
41
- * Gutenberg slug.
42
- *
43
- * @var string $gutenberg_slug
44
- */
45
- public $gutenberg_slug = 'gutenberg';
46
-
47
- /**
48
- * Classic Editor check.
49
- *
50
- * @var string $has_classic_editor
51
- */
52
- public $has_classic_editor;
53
-
54
- /**
55
- * Classic Editor slug.
56
- *
57
- * @var string $classic_editor_slug
58
- */
59
- public $classic_editor_slug = 'classic-editor';
60
-
61
- /**
62
- * Classic Editor base.
63
- *
64
- * @var string $classic_editor_base
65
- */
66
- public $classic_editor_base;
67
-
68
- /**
69
- * Setup the activation class.
70
- *
71
- * @access public
72
- * @since 1.0.0
73
- * @return void
74
- */
75
- public
76
- function __construct() {
77
- add_action( 'admin_init', array( $this, 'admin_init' ));
78
- }
79
-
80
- /**
81
- * Check if plugins are installed.
82
- *
83
- * @access public
84
- * @since 1.0.0
85
- * @return void
86
- */
87
- public
88
- function admin_init() {
89
- $plugins = get_plugins();
90
-
91
- // Check if Gutenberg is installed.
92
- foreach( $plugins as $plugin_path => $plugin ) {
93
- if( $plugin['TextDomain'] === $this->gutenberg_slug ) {
94
- $this->has_gutenberg = true;
95
- $this->gutenberg_base = $this->gutenberg_slug;
96
- }
97
- }
98
-
99
- // Check if Classic Editor is installed.
100
- foreach ( $plugins as $plugin_path => $plugin ) {
101
- if( $plugin['TextDomain'] === $this->classic_editor_slug ) {
102
- $this->has_classic_editor = true;
103
- $this->classic_editor_base = $plugin_path;
104
- }
105
- }
106
-
107
- /**
108
- * Fire notices where needed
109
- */
110
- // Check if the Gutenberg plugin exists.
111
- if ( ! function_exists( 'register_block_type' ) ) {
112
- if(version_compare(get_bloginfo('version'),'5', '>=') ){
113
- add_action( 'admin_notices', array( $this, 'wp5_notice' ) );
114
- } else {
115
- add_action( 'admin_notices', array( $this, 'wp4_notice' ) );
116
- }
117
- }
118
-
119
- // Check if the Classic Editor plugin exists.
120
- if ( function_exists( 'classic_editor_init_actions' ) && $this->has_classic_editor ) {
121
- add_action( 'admin_notices', array( $this, 'classic_editor_notice' ) );
122
- }
123
- }
124
-
125
- /**
126
- * Display notice if Gutenberg is not installed or activated.
127
- *
128
- * @access public
129
- */
130
- public function classic_editor_notice() {
131
-
132
- $url = wp_nonce_url( admin_url( 'plugins.php?action=deactivate&plugin=' . Plugin::get_settings('3party', 'gutenberg', 'slug') ), 'deactivate-plugin_' . Plugin::get_settings('3party', 'gutenberg', 'name') );
133
-
134
- /* translators: Name of this pluign */
135
- $link = '<a class="button" href="' . esc_url( $url ) . '">' . sprintf( __( 'deactivate %1$s', 'coming-soon-blocks' ), 'Classic Editor' ) . '</a>';
136
-
137
- $plugin = '<a href="http://wordpress.org/gutenberg" target="_blank">Gutenberg</a>';
138
-
139
- /* translators: 1: Required plugin 2: Name of this plugin 3: Activate or Install, from $link above */
140
- echo '<div class="notice notice-error"><p>' . sprintf( esc_html__( '%1$s requires the %2$s block editor. %4$s Please %3$s to continue.', 'coming-soon-blocks' ), '<strong>' . Plugin::get_settings('3party', 'gutenberg', 'name') . '</strong>', $plugin, $link, '<br>' ) . '</p></div>';
141
- }
142
-
143
- /**
144
- * Display notice if Gutenberg is not installed or activated for wordpress 5
145
- *
146
- * @access public
147
- */
148
- public
149
- function wp5_notice() {
150
- }
151
-
152
- /**
153
- * Display notice if Gutenberg is not installed or activated.
154
- *
155
- * @access public
156
- */
157
- public
158
- function wp4_notice() {
159
- if ( $this->has_gutenberg ) {
160
- $url = wp_nonce_url( admin_url( 'plugins.php?action=activate&plugin=' . Plugin::get_settings('3party', 'gutenberg', 'base') ).'&plugin_status=all&paged=1', 'activate-plugin_' . Plugin::get_settings('3party', 'gutenberg', 'base') );
161
- /* translators: Name of this pluign */
162
- $link = '<a class="button" href="' . esc_url( $url ) . '">' . sprintf( __( 'activate %1$s', 'coming-soon-blocks' ), Plugin::get_settings('3party', 'gutenberg', 'name') ) . '</a>';
163
- } else {
164
- $url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=' . Plugin::get_settings('3party', 'gutenberg', 'slug') ), 'install-plugin_' . Plugin::get_settings('3party', 'gutenberg', 'slug') );
165
- /* translators: Name of this pluign */
166
- $link = '<a class="button" href="' . esc_url( $url ) . '">' . sprintf( __( 'install %1$s', 'coming-soon-blocks' ), Plugin::get_settings('3party', 'gutenberg', 'name') ) . '</a>';
167
- }
168
-
169
- $plugin = '<a href="http://wordpress.org/gutenberg" target="_blank">'.Plugin::get_settings('3party', 'gutenberg', 'name').'</a>';
170
-
171
- /* translators: 1: Required plugin 2: Name of this pluign 3: Activate or Install, from $link above */
172
-
173
- echo '<div class="notice notice-error"><p>' . sprintf( esc_html__( '%1$s requires the %2$s block editor. %4$s Please %3$s to continue.', 'coming-soon-blocks' ), '<strong>' . Plugin::get_settings('plugin', 'name') . '</strong>', $plugin, $link, '<br>' ) . '</p></div>';
174
- }
175
- }
176
-
177
- new Gutenberg_Checker();
178
-
179
-
180
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/Plugin.php CHANGED
@@ -156,8 +156,8 @@ class Plugin {
156
  * @return string.
157
  */
158
  public static
159
- function get_cdn_url( $file, $folder='media' ) {
160
- return static::$settings['cdn'][$folder] . $file;
161
  }
162
 
163
  /**
@@ -326,9 +326,12 @@ class Plugin {
326
  */
327
  public static
328
  function get_script_data() {
329
- $settings = static::get_option( 'settings', get_the_ID() );
330
- $seo = static::get_option( 'seo', get_the_ID() );
331
- $lookandfeel = static::get_option( 'lookandfeel', get_the_ID() );
 
 
 
332
 
333
  return [
334
  'baseURL' => static::get_plugin_url(),
156
  * @return string.
157
  */
158
  public static
159
+ function get_cdn_url( $file, $folder = 'media' ) {
160
+ return static::$settings['cdn'][ $folder ] . $file;
161
  }
162
 
163
  /**
326
  */
327
  public static
328
  function get_script_data() {
329
+ $selected_page_id = static::get_option( 'selected_page_id' );
330
+ $seo = static::get_option( 'seo', get_the_ID() );
331
+ $lookandfeel = static::get_option( 'lookandfeel', get_the_ID() );
332
+ $settings = static::get_option( 'settings', get_the_ID() );
333
+
334
+ if( ! empty($settings) ) $settings->status = ( $selected_page_id === get_the_ID() ) ? true : false;
335
 
336
  return [
337
  'baseURL' => static::get_plugin_url(),
lib/Utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin utilities functions.
4
  *
5
  * @package coming-soon-blocks
6
- * @version 1.0.0
7
  * @author Helder Vilela from Pixelthrone
8
  * @license GPL-3.0
9
  */
@@ -44,6 +44,43 @@ function ui_admin_bar( $return = 'echo' ) {
44
  }
45
  }
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  /**
48
  * Check current post type
49
  *
@@ -206,18 +243,21 @@ function check_encrypt( $plain_string, $encrypted_string ) {
206
  function compile_block_css( $blockID, $typo, $className ) {
207
 
208
  $fontStyle = 'normal';
209
- $fontweight = $typo->desktop->fontweight;
 
 
 
 
 
 
 
 
 
 
210
 
211
- if (strpos($fontweight, 'italic') !== false) {
212
- $fontweight = str_replace("italic", "", $fontweight); // Remove italic
213
- $fontweight = $fontweight ? $fontweight : 'normal'; // Check if is empty
214
- $fontStyle = 'italic';
215
- }
216
- if (strpos($fontweight, 'regular') !== false) {
217
- $fontweight = 'normal';
218
- }
219
 
220
- return "main[data-blockid=\"{$blockID}\"] .-{$className} {
221
  font-family: {$typo->fontfamily};
222
  font-size: {$typo->desktop->fontsize}px;
223
  font-weight: {$fontweight};
@@ -225,6 +265,20 @@ function compile_block_css( $blockID, $typo, $className ) {
225
  line-height: {$typo->desktop->lineheight}%;
226
  letter-spacing: {$typo->desktop->letterspacing}px;
227
  }";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  }
229
 
230
  /**
3
  * Plugin utilities functions.
4
  *
5
  * @package coming-soon-blocks
6
+ * @version 1.1.0
7
  * @author Helder Vilela from Pixelthrone
8
  * @license GPL-3.0
9
  */
44
  }
45
  }
46
 
47
+ /**
48
+ * Check if is classic editor
49
+ *
50
+ * @since 1.0.0
51
+ * @version 1.0
52
+ *
53
+ * @return boolean
54
+ */
55
+ function is_classic_editor_page() {
56
+ global $pagenow;
57
+
58
+ if ( $pagenow === 'edit.php' ) return false;
59
+
60
+ if( ! class_exists( 'Classic_Editor' ) ) {
61
+ return false;
62
+ } else {
63
+ return (
64
+ isset($_GET['classic-editor']) && isset($_GET['classic-editor__forget']) ||
65
+ ! isset($_GET['classic-editor']) && ! isset($_GET['classic-editor__forget']))
66
+ ? true : false;
67
+ }
68
+ }
69
+
70
+
71
+ /**
72
+ * Check if is edit.php page
73
+ *
74
+ * @since 1.0.0
75
+ * @version 1.0
76
+ *
77
+ * @return string
78
+ */
79
+ function is_edit_page() {
80
+ global $pagenow;
81
+ return $pagenow === 'edit.php' ? true : false;
82
+ }
83
+
84
  /**
85
  * Check current post type
86
  *
243
  function compile_block_css( $blockID, $typo, $className ) {
244
 
245
  $fontStyle = 'normal';
246
+ $get_fontWeight = function( $fontweight ) {
247
+ if (strpos($fontweight, 'italic') !== false) {
248
+ $fontweight = str_replace("italic", "", $fontweight); // Remove italic
249
+ $fontweight = $fontweight ? $fontweight : 'normal'; // Check if is empty
250
+ $fontStyle = 'italic';
251
+ }
252
+ if (strpos($fontweight, 'regular') !== false) {
253
+ $fontweight = 'normal';
254
+ }
255
+ return $fontweight;
256
+ };
257
 
258
+ $fontweight = $get_fontWeight( $typo->desktop->fontweight);
 
 
 
 
 
 
 
259
 
260
+ $CSS[] = "main[data-blockid=\"{$blockID}\"] .-{$className} {
261
  font-family: {$typo->fontfamily};
262
  font-size: {$typo->desktop->fontsize}px;
263
  font-weight: {$fontweight};
265
  line-height: {$typo->desktop->lineheight}%;
266
  letter-spacing: {$typo->desktop->letterspacing}px;
267
  }";
268
+
269
+ $fontweight = $get_fontWeight( $typo->mobile->fontweight);
270
+
271
+ $CSS[] = "@media only screen and (max-width: 767px) {
272
+ main[data-blockid=\"{$blockID}\"] .-{$className} {
273
+ font-size: {$typo->mobile->fontsize}px;
274
+ font-weight: {$fontweight};
275
+ font-style: {$fontStyle};
276
+ line-height: {$typo->mobile->lineheight}%;
277
+ letter-spacing: {$typo->mobile->letterspacing}px;
278
+ }
279
+ }";
280
+
281
+ return implode($CSS, '' );
282
  }
283
 
284
  /**
public/dist/blocks.bundle.js CHANGED
@@ -1,9 +1,9 @@
1
- !function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=30)}([function(t,e){t.exports=React},function(t,e,i){var n,o;!function(a,s){n=[i(9)],void 0===(o=function(t){return function(t,e){"use strict";var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){var o=[];return(t=i.makeArray(t)).forEach(function(t){if(t instanceof HTMLElement)if(n){e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),a=0;a<i.length;a++)o.push(i[a])}else o.push(t)}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,a=this;this[o]=setTimeout(function(){n.apply(a,e),delete a[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var a=i.toDashed(n),s="data-"+a,r=document.querySelectorAll("["+s+"]"),l=document.querySelectorAll(".js-"+a),c=i.makeArray(r).concat(i.makeArray(l)),h=s+"-options",d=t.jQuery;c.forEach(function(t){var i,a=t.getAttribute(s)||t.getAttribute(h);try{i=a&&JSON.parse(a)}catch(e){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+e))}var r=new e(t,i);d&&d.data(t,n,r)})})},i}(a,t)}.apply(e,n))||(t.exports=o)}(window)},function(t,e,i){var n,o;!function(a,s){n=[i(3),i(4),i(1),i(10),i(11),i(12)],void 0===(o=function(t,e,i,n,o,s){return function(t,e,i,n,o,a,s){"use strict";var r=t.jQuery,l=t.getComputedStyle,c=t.console;function h(t,e){for(t=n.makeArray(t);t.length;)e.appendChild(t.shift())}var d=0,p={};function u(t,e){var i=n.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var o=p[this.element.flickityGUID];return o.option(e),o}r&&(this.$element=r(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),this._create()}else c&&c.error("Bad element for Flickity: "+(i||t))}u.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},u.createMethods=[];var m=u.prototype;n.extend(m,e.prototype),m._create=function(){var e=this.guid=++d;for(var i in this.element.flickityGUID=e,p[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this),this.options.on){var n=this.options.on[i];this.on(i,n)}u.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},m.option=function(t){n.extend(this.options,t)},m.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();var t,e=this._filterFindCellElements(this.element.children);h(e,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate");var i=this.options.initialIndex;t=this.isInitActivated?this.selectedIndex:void 0!==i&&this.cells[i]?i:0,this.select(t,!1,!0),this.isInitActivated=!0,this.dispatchEvent("ready")}},m._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},m._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},m.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},m._makeCells=function(t){var e=this._filterFindCellElements(t),i=e.map(function(t){return new o(t,this)},this);return i},m.getLastCell=function(){return this.cells[this.cells.length-1]},m.getLastSlide=function(){return this.slides[this.slides.length-1]},m.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},m._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,o=t;o<n;o++){var a=this.cells[o];a.setPosition(e),e+=a.size.outerWidth,this.maxCellHeight=Math.max(a.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},m._sizeCells=function(t){t.forEach(function(t){t.getSize()})},m.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new a(this);this.slides.push(t);var e="left"==this.originSide,i=e?"marginRight":"marginLeft",n=this._getCanCellFit();this.cells.forEach(function(e,o){if(t.cells.length){var s=t.outerWidth-t.firstMargin+(e.size.outerWidth-e.size[i]);n.call(this,o,s)?t.addCell(e):(t.updateTarget(),t=new a(this),this.slides.push(t),t.addCell(e))}else t.addCell(e)},this),t.updateTarget(),this.updateSelectedSlide()}},m._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},m._init=m.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},m.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};m.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},m.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},m._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},m._getGapCells=function(t,e,i){for(var n=[];t>0;){var o=this.cells[e];if(!o)break;n.push(o),e+=i,t-=o.size.outerWidth}return n},m._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],o=n<this.size.innerWidth,a=this.cursorPosition+this.cells[0].size[e],s=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){o?t.target=n*this.cellAlign:(t.target=Math.max(t.target,a),t.target=Math.min(t.target,s))},this)}},m.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),r&&this.$element){var o=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var a=r.Event(e);a.type=t,o=a}this.$element.trigger(o,i)}},m.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=n.modulo(t,this.slides.length)),this.slides[t])){var o=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=o&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},m._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&e>1))return t;var i=n.modulo(t,e),o=Math.abs(i-this.selectedIndex),a=Math.abs(i+e-this.selectedIndex),s=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&a<o?t+=e:!this.isDragSelect&&s<o&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},m.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},m.next=function(t,e){this.select(this.selectedIndex+1,t,e)},m.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},m.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},m.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var o=this.getCellSlideIndex(n);this.select(o,e,i)}},m.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++)if(-1!=this.slides[e].cells.indexOf(t))return e},m.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},m.getCells=function(t){var e=[];return(t=n.makeArray(t)).forEach(function(t){var i=this.getCell(t);i&&e.push(i)},this),e},m.getCellElements=function(){return this.cells.map(function(t){return t.element})},m.getParentCell=function(t){var e=this.getCell(t);return e||(t=n.getParent(t,".flickity-slider > *"),this.getCell(t))},m.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var o=[],a=e-t;a<=e+t;a++){var s=this.options.wrapAround?n.modulo(a,i):a,r=this.slides[s];r&&(o=o.concat(r.getCellElements()))}return o},m.queryCell=function(t){return"number"==typeof t?this.cells[t]:("string"==typeof t&&(t=this.element.querySelector(t)),this.getCell(t))},m.uiChange=function(){this.emitEvent("uiChange")},m.childUIPointerDown=function(t){this.emitEvent("childUIPointerDown",[t])},m.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(u,"onresize",150),m.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},m.watchCSS=function(){this.options.watchCSS&&(-1!=l(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},m.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=u.keyboardHandlers[t.keyCode];i&&i.call(this)}},u.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},m.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&t.scrollTo(t.pageXOffset,e)},m.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),h(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},m.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.emitEvent("destroy"),r&&this.$element&&r.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete p[this.guid]},n.extend(m,s),u.data=function(t){var e=(t=n.getQueryElement(t))&&t.flickityGUID;return e&&p[e]},n.htmlInit(u,"flickity"),r&&r.bridget&&r.bridget("flickity",u);return u.setJQuery=function(t){r=t},u.Cell=o,u}(a,t,e,i,n,o,s)}.apply(e,n))||(t.exports=o)}(window)},function(t,e,i){var n,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var a=i[o];n&&n[a]&&(this.off(t,a),delete n[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?n.call(e,i,e,t):n)||(t.exports=o)},function(t,e,i){var n,o;
2
  /*!
3
  * getSize v2.0.3
4
  * measure size of elements
5
  * MIT license
6
- */window,void 0===(o="function"==typeof(n=function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],n=i.length;function o(t){var i=getComputedStyle(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var a,s=!1;function r(e){if(function(){if(!s){s=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);a=200==Math.round(t(n.width)),r.isBoxSizeOuter=a,i.removeChild(e)}}(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var l=o(e);if("none"==l.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<n;e++){var o=i[e];t[o]=0}return t}();var c={};c.width=e.offsetWidth,c.height=e.offsetHeight;for(var h=c.isBorderBox="border-box"==l.boxSizing,d=0;d<n;d++){var p=i[d],u=l[p],m=parseFloat(u);c[p]=isNaN(m)?0:m}var g=c.paddingLeft+c.paddingRight,f=c.paddingTop+c.paddingBottom,v=c.marginLeft+c.marginRight,y=c.marginTop+c.marginBottom,b=c.borderLeftWidth+c.borderRightWidth,E=c.borderTopWidth+c.borderBottomWidth,w=h&&a,k=t(l.width);!1!==k&&(c.width=k+(w?0:g+b));var x=t(l.height);return!1!==x&&(c.height=x+(w?0:f+E)),c.innerWidth=c.width-(g+b),c.innerHeight=c.height-(f+E),c.outerWidth=c.width+v,c.outerHeight=c.height+y,c}}return r})?n.call(e,i,e,t):n)||(t.exports=o)},function(t,e,i){var n,o;
7
  /*!
8
  * Unipointer v2.3.0
9
  * base class for doing one thing with pointer event
@@ -25,7 +25,7 @@
25
  * listens to taps
26
  * MIT license
27
  */
28
- !function(a,s){n=[i(5)],void 0===(o=function(t){return function(t,e){"use strict";function i(t){this.bindTap(t)}var n=i.prototype=Object.create(e.prototype);return n.bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},n.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},n.pointerUp=function(i,n){if(!this.isIgnoringMouseUp||"mouseup"!=i.type){var o=e.getPointerPoint(n),a=this.tapElement.getBoundingClientRect(),s=t.pageXOffset,r=t.pageYOffset;if(o.x>=a.left+s&&o.x<=a.right+s&&o.y>=a.top+r&&o.y<=a.bottom+r&&this.emitEvent("tap",[i,n]),"mouseup"!=i.type){this.isIgnoringMouseUp=!0;var l=this;setTimeout(function(){delete l.isIgnoringMouseUp},400)}}},n.destroy=function(){this.pointerDone(),this.unbindTap()},i}(a,t)}.apply(e,n))||(t.exports=o)}(window)},function(t){t.exports=[{name:"pixelthrone/comingsoon--temp-01",slug:"temp-01",thumb:{name:"01",img:"/admin/blocks/_available/temp-01/media/thumb.jpg"},script:"",render_callback:!0}]},function(t,e,i){var n,o,a;
29
  /*!
30
  * Flickity v2.1.2
31
  * Touch, responsive, flickable carousels
@@ -46,7 +46,7 @@
46
  * Draggable base class
47
  * MIT license
48
  */
49
- !function(a,s){n=[i(5)],void 0===(o=function(t){return function(t,e){"use strict";function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){for(var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",o=0;o<this.handles.length;o++){var a=this.handles[o];this._bindStartEvent(a,e),a[i]("click",this),t.PointerEvent&&(a.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){var i=this.okayPointerDown(t);i&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var o={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},a={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=o[t.target.nodeName],i=a[t.target.type],n=!e||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}(a,t)}.apply(e,n))||(t.exports=o)}(window)},function(t,e,i){var n,o;window,n=[i(2),i(6),i(1)],void 0===(o=function(t,e,i){return function(t,e,i,n){"use strict";var o="http://www.w3.org/2000/svg";function a(t,e){this.direction=t,this.parent=e,this._create()}a.prototype=Object.create(i.prototype),a.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},a.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},a.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),this.element.removeEventListener("click",this)},a.prototype.createSVG=function(){var t=document.createElementNS(o,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(o,"path"),i=function(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},a.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},a.prototype.handleEvent=n.handleEvent,a.prototype.onclick=function(t){var e=document.activeElement;e&&e==this.element&&this.onTap(t,t)},a.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},a.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},a.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e,n=this.parent.selectedIndex==i?"disable":"enable";this[n]()}},a.prototype.destroy=function(){this.deactivate()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var s=e.prototype;return s._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new a(-1,this),this.nextButton=new a(1,this),this.on("activate",this.activatePrevNextButtons))},s.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},s.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=a,e}(0,t,e,i)}.apply(e,n))||(t.exports=o)},function(t,e,i){var n,o;window,n=[i(2),i(6),i(1)],void 0===(o=function(t,e,i){return function(t,e,i,n){"use strict";function o(t){this.parent=t,this._create()}o.prototype=new i,o.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},o.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},o.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,o=n+t,a=n;a<o;a++){var s=document.createElement("li");s.className="dot",s.setAttribute("aria-label","Page dot "+(a+1)),e.appendChild(s),i.push(s)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},o.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)},o.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},o.prototype.onTap=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},o.prototype.destroy=function(){this.deactivate()},e.PageDots=o,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var a=e.prototype;return a._createPageDots=function(){this.options.pageDots&&(this.pageDots=new o(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},a.activatePageDots=function(){this.pageDots.activate()},a.updateSelectedPageDots=function(){this.pageDots.updateSelected()},a.updatePageDots=function(){this.pageDots.setDots()},a.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=o,e}(0,t,e,i)}.apply(e,n))||(t.exports=o)},function(t,e,i){var n,o;window,n=[i(3),i(1),i(2)],void 0===(o=function(t,e,i){return function(t,e,i){"use strict";function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){if("playing"!=this.state){var t=document.hidden;t?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick())}},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var o=i.prototype;return o._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},o.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},o.playPlayer=function(){this.player.play()},o.stopPlayer=function(){this.player.stop()},o.pausePlayer=function(){this.player.pause()},o.unpausePlayer=function(){this.player.unpause()},o.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},o.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},o.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}(t,e,i)}.apply(e,n))||(t.exports=o)},function(t,e,i){var n,o;window,n=[i(2),i(1)],void 0===(o=function(t,e){return function(t,e,i){"use strict";var n=e.prototype;return n.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var n=this.cells.length;e=void 0===e?n:e;var o=function(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}(i),a=e==n;if(a)this.slider.appendChild(o);else{var s=this.cells[e].element;this.slider.insertBefore(o,s)}if(0===e)this.cells=i.concat(this.cells);else if(a)this.cells=this.cells.concat(i);else{var r=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(r)}this._sizeCells(i),this.cellChange(e,!0)}},n.append=function(t){this.insert(t,this.cells.length)},n.prepend=function(t){this.insert(t,0)},n.remove=function(t){var e=this.getCells(t);if(e&&e.length){var n=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);n=Math.min(e,n),i.removeFrom(this.cells,t)},this),this.cellChange(n,!0)}},n.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},n.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}(0,t,e)}.apply(e,n))||(t.exports=o)},function(t,e,i){var n,o;window,n=[i(2),i(1)],void 0===(o=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createLazyload");var n=e.prototype;function o(t,e){this.img=t,this.flickity=e,this.load()}return n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,n=[];this.getAdjacentCellElements(e).forEach(function(t){var e=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),n=t.getAttribute("data-flickity-lazyload-src"),o=t.getAttribute("data-flickity-lazyload-srcset");if(e||n||o)return[t]}var a=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(a)}(t);n=n.concat(e)}),n.forEach(function(t){new o(t,this)},this)}},o.prototype.handleEvent=i.handleEvent,o.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},o.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},o.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},o.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=o,e}(0,t,e)}.apply(e,n))||(t.exports=o)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=i(0),a=d(o),s=i(22),r=d(i(8)),l=d(i(23)),c=i(24),h=d(i(25));function d(t){return t&&t.__esModule?t:{default:t}}var p=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.state={flickityReady:!1},i.carousel=null,i.flkty=null,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.Component),n(e,[{key:"componentDidUpdate",value:function(t,e){var i=this.props,n=i.children,o=i.options,a=o.draggable,s=o.initialIndex,r=i.reloadOnUpdate,l=this.state.flickityReady;r||!e.flickityReady&&l?(this.flkty.deactivate(),this.flkty.selectedIndex=s||0,this.flkty.options.draggable=void 0===a?!!n&&n.length>1:a,this.flkty.activate()):this.flkty.reloadCells()}},{key:"componentDidMount",value:function(){var t=this;if(!c.canUseDOM)return null;var e=this.props,i=e.disableImagesLoaded,n=e.flickityRef,o=e.options,a=this.carousel;this.flkty=new r.default(a,o);var s=function(){return t.setState({flickityReady:!0})};i?s():(0,l.default)(a,s),n&&n(this.flkty)}},{key:"renderPortal",value:function(){if(!this.carousel)return null;var t=this.carousel.querySelector(".flickity-slider");return t?(0,s.createPortal)(this.props.children,t):void 0}},{key:"render",value:function(){var t=this;return a.default.createElement(this.props.elementType,{className:this.props.className,ref:function(e){t.carousel=e}},this.renderPortal())}}]),e}();p.propTypes={disableImagesLoaded:h.default.bool,reloadOnUpdate:h.default.bool,options:h.default.object,className:h.default.string,elementType:h.default.string,children:h.default.array,flickityRef:h.default.func},p.defaultProps={disableImagesLoaded:!1,reloadOnUpdate:!1,options:{},className:"",elementType:"div"},e.default=p,t.exports=e.default},function(t,e){const{unregisterPlugin:i,getPlugins:n}=wp.plugins,o=["edit-post","pixelthrone--comingsoonblocks-templates","pixelthrone--comingsoonblocks-seo","pixelthrone--comingsoonblocks-settings","pixelthrone--comingsoonblocks-look-and-feel"];window.onload=function(){n().forEach(function(t){-1===o.indexOf(t.name)&&i(t.name)})}},function(t,e){t.exports=ReactDOM},function(t,e,i){var n,o;
50
  /*!
51
  * imagesLoaded v4.1.4
52
  * JavaScript is all like "You images are done yet or what?"
@@ -57,4 +57,4 @@
57
  * JavaScript is all like "You images are done yet or what?"
58
  * MIT License
59
  */
60
- !function(a,s){"use strict";n=[i(3)],void 0===(o=function(t){return function(t,e){var i=t.jQuery,n=t.console;function o(t,e){for(var i in e)t[i]=e[i];return t}var a=Array.prototype.slice;function s(t,e,r){if(!(this instanceof s))return new s(t,e,r);var l=t;"string"==typeof t&&(l=document.querySelectorAll(t)),l?(this.elements=function(t){if(Array.isArray(t))return t;if("object"==typeof t&&"number"==typeof t.length)return a.call(t);return[t]}(l),this.options=o({},this.options),"function"==typeof e?r=e:o(this.options,e),r&&this.on("always",r),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(l||t))}s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&r[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(n=0;n<a.length;n++){var s=a[n];this.addElementBackgroundImages(s)}}}};var r={1:!0,9:!0,11:!0};function l(t){this.img=t}function c(t,e){this.url=t,this.element=e,this.img=new Image}return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},s.prototype.addBackground=function(t,e){var i=new c(t,e);this.images.push(i)},s.prototype.check=function(){var t=this;function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},s.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&n&&n.log("progress: "+i,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},l.prototype=Object.create(e.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(i(this))})},s.makeJQueryPlugin(),s}(a,t)}.apply(e,n))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,i){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=o},function(t,e,i){t.exports=i(26)()},function(t,e,i){"use strict";var n=i(27);function o(){}t.exports=function(){function t(t,e,i,o,a,s){if(s!==n){var r=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 r.name="Invariant Violation",r}}function e(){return t}t.isRequired=t;var i={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return i.checkPropTypes=o,i.PropTypes=i,i}},function(t,e,i){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,function(t,e,i){"use strict";i.r(e);i(32),i(33);var n=i(7);const{getBlockTypes:o,unregisterBlockType:a}=wp.blocks;let s=n.map(t=>t.name);document.addEventListener("DOMContentLoaded",()=>{o().forEach(function(t){-1===s.indexOf(t.name)&&a(t.name)})},!1);i(21),i(34),i(35);const{__:r}=wp.i18n,l=`${csblocks.baseURL}/admin/blocks/_available/temp-01/media`,c="pixelthrone/comingsoon--temp-01",h=r("Template 1","coming-soon-blocks"),d=[r("Conteudo","coming-soon-blocks")],p=["image"],{MediaUpload:u}=wp.editor;var m=({onSelect:t,allowedTypes:e,logoID:i,logoURL:n,mediaURL:o,style:a,align:s})=>React.createElement(u,{onSelect:t,allowedTypes:e,value:i,render:({open:t})=>React.createElement("button",{"data-editor-component":"brand-uploader",onClick:t,className:`-${s}-align`},React.createElement("i",{className:"dashicons dashicons-edit"}),React.createElement("img",{style:a,src:n}))});const g="AIzaSyD2YQ4A9FpunpkJ0FqxYueSsi7f2SYpmBg",f=[{name:"red",color:"#f00"},{name:"white",color:"#fff"},{name:"blue",color:"#00f"}],v=[{label:"Select",value:""},{label:"Facebook",value:"facebook"},{label:"digg",value:"digg"},{label:"Dribbble",value:"dribbble"},{label:"Envato",value:"envato"},{label:"Etsy",value:"etsy"},{label:"Friendfeed",value:"friendfeed"},{label:"Github",value:"github"},{label:"Google Plus",value:"googleplus"},{label:"Instagram",value:"instagram"},{label:"LinkedIn",value:"linkedin"},{label:"Mail",value:"mail"},{label:"Medium",value:"medium"},{label:"Meetup",value:"meetup"},{label:"Mixcloud",value:"mixcloud"},{label:"npm",value:"npm"},{label:"Pinterest",value:"pinterest"},{label:"PayPal",value:"paypal"},{label:"Reddit",value:"reddit"},{label:"RSS",value:"rss"},{label:"TripAdvisor",value:"tripadvisor"},{label:"Twitch",value:"twitch"},{label:"Twitter",value:"twitter"},{label:"Vimeo",value:"vimeo"},{label:"WhatSapp",value:"whatsapp"},{label:"WordPress",value:"wordpress"},{label:"Youtube",value:"youtube"},{label:"Messenger",value:"messenger"},{label:"Bitbucket",value:"bitbucket"},{label:"Google Maps",value:"googlemaps"},{label:"Codepen",value:"codepen"}],y={PLAN_NAME:0,starter:1,professional:2,business:3},{__:b}=wp.i18n,{Component:E}=wp.element,{IconButton:w,MenuItem:k,Dropdown:x,SelectControl:S}=wp.components;var C=class extends E{constructor({attributes:t}){super(...arguments),this.update=this.update.bind(this),this.addIcon=this.addIcon.bind(this),this.removeIcon=this.removeIcon.bind(this),this.state={networks:JSON.parse(this.props.networks)}}update(t,e,i){let n=this.state.networks;"icon"===i?n[t].icon=e:n[t].url=e,this.setState(t=>({networks:n})),this.props.setNetworks(JSON.stringify(n))}addIcon(t){t.preventDefault();let e=this.state.networks;e.push({url:"https://",icon:""}),this.setState(t=>({networks:e}))}removeIcon(t){t.preventDefault();const e=t.currentTarget.dataset.index;let i=this.state.networks;delete i[e],this.setState(t=>({networks:i})),this.props.setNetworks(JSON.stringify(i))}render(){const{networks:t}=this.state,{position:e}=this.props;return React.createElement("div",{"data-component":"social-icons"},t&&t.map(({url:t,icon:i},n)=>React.createElement(x,{key:n,className:"editor-block-social-icons-menu__control",contentClassName:"editor-block-social-icons-menu__content",position:e,renderToggle:({isOpen:t,onToggle:e})=>React.createElement("a",{href:"#",onClick:e,className:`-icon -${i||"empty"} -isOpen--${t}`},i?React.createElement("i",{className:`socicon-${i}`}):React.createElement("i",{className:"dashicons dashicons-edit"})),renderContent:()=>React.createElement("div",null,React.createElement(S,{label:b("Network","coming-soon-blocks"),value:i,onChange:t=>this.update(n,t,"icon"),options:v}),React.createElement("label",{className:"components-base-control__label"},b("Link","coming-soon-blocks")),React.createElement("input",{className:"components-text-control__input",type:"text",defaultValue:t,placeholder:"https://",onBlur:t=>this.update(n,t.currentTarget.value,"url")}),React.createElement("div",{className:"editor-block-settings-menu__separator"}),React.createElement(k,{className:"editor-block-settings-menu__control","data-index":n,onClick:this.removeIcon,icon:"trash"},b("Remove","coming-soon-blocks")))})),React.createElement(w,{icon:"plus",label:b("Add Button","coming-soon-blocks"),onClick:this.addIcon}))}};const P=csblocks.license;function _(t,e){if(""===t||void 0===t||!1===t)return e;("string"==typeof t||t instanceof String)&&(t=JSON.parse(t));for(const i in e)t.hasOwnProperty(i)||(t[i]=e[i]);return t}function D(t){return y[P.plan]>=y[t]}const{__:T,sprintf:I}=wp.i18n;var R=({children:t,plan:e})=>{if(D(e))return t;{const i=I(T("This is a %s feature","coming-soon-blocks"),`<i>${e}</i>`);return React.createElement("span",{"data-component":"is-premium","data-plan":e},React.createElement("p",{className:"feature-label-notice",dangerouslySetInnerHTML:{__html:i}}),t)}};const{__:A}=wp.i18n,{Component:L,Fragment:O}=wp.element,{MediaUpload:N}=wp.editor,{IconButton:M,ColorPalette:z,ColorIndicator:B}=wp.components;var F=class extends L{constructor({attributes:t}){super(...arguments),this.state=JSON.parse(this.props.attributes),this.uploadBgImage=this.uploadBgImage.bind(this),this.uploadBgGallery=this.uploadBgGallery.bind(this),this.uploadBgVideo=this.uploadBgVideo.bind(this),this.uploadBgColor=this.uploadBgColor.bind(this),this.updateTab=this.updateTab.bind(this)}uploadBgImage(t){const{updateAttributes:e}=this.props;let i=this.state;i.image={id:t.id,full:t.sizes.full.url,thumb:t.sizes.medium.url},this.setState(i),e(JSON.stringify(i))}uploadBgGallery(t){const{updateAttributes:e}=this.props;let i=this.state;const n=t.map(t=>({id:t.id,full:t.sizes.full.url,thumb:t.sizes.medium.url}));i.gallery=n,this.setState(i),e(JSON.stringify(i))}uploadBgVideo(t){const{updateAttributes:e}=this.props;let i=this.state;i.video={id:t.id,url:t.url,filename:t.filename},this.setState(i),e(JSON.stringify(i))}uploadBgColor(t){const{updateAttributes:e}=this.props;let i=this.state;i.color=t,this.setState(i),e(JSON.stringify(i))}updateTab(t){const{updateAttributes:e}=this.props;let i=this.state;i.type=t,this.setState(i),e(JSON.stringify(i))}render(){const{gallery:t,color:e,type:i,image:n,video:o}=this.state,a=!!t.length&&t.map(({id:t})=>t);return React.createElement("div",{"data-editor-component":"background"},React.createElement("label",null,A("Background","coming-soon-blocks")),React.createElement("div",{className:"tabs-menu"},React.createElement(M,{icon:"admin-customizer",label:A("Solid Color","coming-soon-blocks"),"data-active":"color"===i?"true":"",onClick:t=>this.updateTab("color")}),React.createElement(M,{icon:"format-image",label:A("Image","coming-soon-blocks"),"data-active":"image"===i?"true":"",onClick:t=>this.updateTab("image")}),React.createElement(M,{icon:"format-gallery",label:A("Gallery","coming-soon-blocks"),"data-active":"gallery"===i?"true":"",onClick:t=>this.updateTab("gallery")}),React.createElement(M,{icon:"format-video",label:A("Video","coming-soon-blocks"),"data-active":"video"===i?"true":"",onClick:t=>this.updateTab("video")})),React.createElement("div",{className:"tabs-content"},"color"===i&&React.createElement(O,null,React.createElement("label",{className:"single-field-label"},A("Color","coming-soon-blocks")," ",React.createElement(B,{colorValue:e})),React.createElement(z,{colors:f,value:e,onChange:this.uploadBgColor})),"image"===i&&React.createElement(N,{onSelect:this.uploadBgImage,allowedTypes:["image"],value:n.id,render:({open:t})=>React.createElement(O,null,React.createElement("label",{className:"single-field-label"},A("Image")),""!==n.id&&React.createElement(O,null,React.createElement(M,{"data-editor-component":"panel-uploader-placeholder","data-mode":"replace",icon:"edit",label:A("Change Image","coming-soon-blocks"),onClick:t},React.createElement("img",{src:n.thumb}))),""===n.id&&React.createElement(M,{"data-editor-component":"panel-uploader-placeholder","data-mode":"upload",icon:"upload",label:A("Upload Image","coming-soon-blocks"),onClick:t}))}),"gallery"===i&&React.createElement(R,{plan:"starter"},React.createElement(N,{onSelect:this.uploadBgGallery,multiple:!0,gallery:!0,allowedTypes:["image"],value:a,render:({open:e})=>React.createElement(O,null,React.createElement("label",{className:"single-field-label"},A("Gallery")),a.length&&React.createElement(M,{"data-editor-component":"panel-uploader-placeholder","data-mode":"replace",icon:"edit",label:A("Change Gallery","coming-soon-blocks"),onClick:e},React.createElement("div",{"data-count":t.length},t.map(({thumb:t,id:e})=>React.createElement("span",null,React.createElement("img",{src:t}))))),!a.length&&React.createElement(M,{"data-editor-component":"panel-uploader-placeholder","data-mode":"upload",icon:"upload",label:A("Upload Image","coming-soon-blocks"),onClick:e}))})),"video"===i&&React.createElement(R,{plan:"starter"},React.createElement(N,{onSelect:this.uploadBgVideo,allowedTypes:["video/mp4","video/ogg","video/webm"],value:o.length?o.id:"",render:({open:t})=>React.createElement(O,null,React.createElement("label",{className:"single-field-label"},A("Video")," ",o.id&&`(${o.filename})`),o.id&&React.createElement(M,{"data-editor-component":"panel-uploader-placeholder","data-mode":"replace",icon:"edit",label:A("Change Video","coming-soon-blocks"),onClick:t},React.createElement("video",{muted:!0,src:o.url})),!o.id&&React.createElement(M,{"data-editor-component":"panel-uploader-placeholder","data-mode":"upload",icon:"upload",label:A("Upload Video","coming-soon-blocks"),onClick:t}))}),React.createElement("br",null),React.createElement(N,{onSelect:this.uploadBgImage,allowedTypes:["image"],value:n.id,render:({open:t})=>React.createElement(O,null,React.createElement("label",{className:"single-field-label"},A("Poster")),""!==n.id&&React.createElement(M,{"data-editor-component":"panel-uploader-placeholder","data-mode":"replace",icon:"edit",label:A("Change Image","coming-soon-blocks"),onClick:t},React.createElement("img",{src:n.thumb})),""===n.id&&React.createElement(M,{"data-editor-component":"panel-uploader-placeholder","data-mode":"upload",icon:"upload",label:A("Upload Image","coming-soon-blocks"),onClick:t}))}),React.createElement("p",{"data-editor-component":"help-notice"},A("Specifies an image to be shown while the video is downloading, or until the user hits the play button.","coming-soon-blocks")))))}},W=i(0),U=i.n(W);function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function V(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function G(t,e,i){return e&&V(t.prototype,e),i&&V(t,i),t}function J(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=[],n=!0,o=!1,a=void 0;try{for(var s,r=t[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==r.return||r.return()}finally{if(o)throw a}}return i}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function q(t){return t.family.replace(/\s+/g,"-").toLowerCase()}function $(t,e,i){var n="https://fonts.googleapis.com/css?family=";n+=t.family.replace(/ /g,"+"),n+=":".concat(e[0]);for(var o=1;o<e.length;o+=1)n+=",".concat(e[o]);if(!0===i){var a=t.family;a=(a=a.replace(/\s+/g,"")).split("").filter(function(t,e,i){return i.indexOf(t)===e}).join(""),n+="&text=".concat(a)}return n}function X(t,e,i,n){var o=$(t,i,!1),a=document.createElement("link");a.rel="stylesheet",a.href=o,a.id="font-full-".concat(e),n&&(a.onload=function(){n(t)}),document.head.appendChild(a)}function Y(t,e,i){var n=q(t);document.getElementById("font-preview-".concat(n))?(document.getElementById("font-preview-".concat(n)).outerHTML="",X(t,n,e,i)):document.getElementById("font-full-".concat(n))?i&&i(t):X(t,n,e,i)}function Q(t,e){var i=q(t);document.getElementById("font-full-".concat(i))||function(t,e,i){var n=$(t,i,!0),o=document.createElement("link");o.rel="stylesheet",o.href=n,o.id="font-preview-".concat(e),document.head.appendChild(o)}(t,i,e)}var K=function(){function t(e,i,n){H(this,t),this.pickerSuffix=""!==e?"-".concat(e):"",this.stylesheetId="font-selectors".concat(this.pickerSuffix),this.determineFontVariants(n);var o=document.getElementById(this.stylesheetId);o?this.stylesheet=o:this.initStylesheet(i)}return G(t,[{key:"determineFontVariants",value:function(t){var e=t[0].split(/(\d+)/).filter(Boolean);if(1===e.length)if("regular"===e[0]||"italic"===e[0]){var i=J(e,1);this.fontStyle=i[0],this.fontWeight="400"}else{this.fontStyle="regular";var n=J(e,1);this.fontWeight=n[0]}else if(2===e.length){var o=J(e,2);this.fontWeight=o[0],this.fontStyle=o[1]}}},{key:"initStylesheet",value:function(t){this.stylesheet=document.createElement("style"),this.stylesheet.id=this.stylesheetId,this.stylesheet.rel="stylesheet",this.stylesheet.type="text/css";var e="\n\t\t\t.apply-font".concat(this.pickerSuffix,' {\n\t\t\t\tfont-family: "').concat(t.family,'";\n\t\t\t\tfont-style: ').concat(this.fontStyle,";\n\t\t\t\tfont-weight: ").concat(this.fontWeight,";\n\t\t\t}\n\t\t");this.stylesheet.appendChild(document.createTextNode(e)),document.head.appendChild(this.stylesheet)}},{key:"applyPreviewStyle",value:function(t){var e=t.family.replace(/\s+/g,"-").toLowerCase(),i="\n\t\t\t.font-".concat(e).concat(this.pickerSuffix,' {\n\t\t\t\tfont-family: "').concat(t.family,'";\n\t\t\t\tfont-style: ').concat(this.fontStyle,";\n\t\t\t\tfont-weight: ").concat(this.fontWeight,";\n\t\t\t}\n\t\t");this.stylesheet.appendChild(document.createTextNode(i))}},{key:"changeActiveStyle",value:function(t,e){var i="handwriting"===t.category?"cursive":t.category,n="\n\t\t\t.apply-font".concat(this.pickerSuffix,' {\n\t\t\t\tfont-family: "').concat(t.family,'", "').concat(e,'", ').concat(i,";\n\t\t\t\tfont-style: ").concat(this.fontStyle,";\n\t\t\t\tfont-weight: ").concat(this.fontWeight,";\n\t\t\t}\n\t\t");this.stylesheet.replaceChild(document.createTextNode(n),this.stylesheet.childNodes[0])}}]),t}(),Z=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;H(this,t),t.validateParameters(e,i,n,o);var a=i||"Open Sans",s=t.setDefaultOptions(n);this.apiKey=e,this.onChange=o,this.options=s,this.activeFont={family:a,variants:"regular"},this.fonts=[],this.previewIndex=0,Y(this.activeFont,this.options.variants),this.styleManager=new K(this.options.name,this.activeFont,this.options.variants)}return G(t,null,[{key:"validateParameters",value:function(t,e,i,n){if(!t||"string"!=typeof t)throw Error("apiKey parameter is not a string or missing");if(e&&"string"!=typeof e)throw Error("defaultFont parameter is not a string");if("object"!==j(i))throw Error("options parameter is not an object");if(i.name){if("string"!=typeof i.name)throw Error("options.name parameter is not a string");if(i.name.match(/[^0-9a-z]/i))throw Error("options.name may only contain letters and digits")}if(i.families&&!(i.families instanceof Array))throw Error("options.families parameter is not an array");if(i.categories&&!(i.categories instanceof Array))throw Error("options.categories parameter is not an array");if(i.variants&&!(i.variants instanceof Array))throw Error("options.variants parameter is not an array");if(i.limit&&"number"!=typeof i.limit)throw Error("options.limit parameter is not a number");if(i.sort&&"string"!=typeof i.sort)throw Error("options.sort parameter is not a string");if(n&&"function"!=typeof n)throw Error("onChange is not a function")}},{key:"setDefaultOptions",value:function(t){var e=t;return t.name||(e.name=""),t.limit||(e.limit=100),t.variants||(e.variants=["regular"]),t.sort||(e.sort="alphabetical"),e}}]),G(t,[{key:"init",value:function(){var t=this;return function(t){return new Promise(function(e,i){var n="https://www.googleapis.com/webfonts/v1/webfonts?sort=popularity&key=".concat(t),o=new XMLHttpRequest;o.overrideMimeType("application/json"),o.open("GET",n,!0),o.onreadystatechange=function(){if(4===o.readyState){if(200!==o.status)return i(new Error("Response has status code ".concat(o.status)));var t=JSON.parse(o.responseText);return e(t.items)}},o.send()})}(this.apiKey).then(function(e){t.fonts=function(t,e,i){var n=t;return i.families&&(n=n.filter(function(t){return i.families.includes(t.family)})),i.categories&&(n=n.filter(function(t){return i.categories.includes(t.category)})),i.variants&&(n=n.filter(function(t){for(var e=0;e<i.variants.length;e+=1)if(-1===t.variants.indexOf(i.variants[e]))return!1;return!0})),i.limit&&(n=n.slice(0,i.limit)),0===n.filter(function(t){return t.family===e.family}).length&&(n.unshift(e),i.limit&&n.pop()),"alphabetical"===i.sort&&(n=n.sort(function(t,e){return t.family.localeCompare(e.family)})),n}(e,t.activeFont,t.options),t.downloadPreviews(10)})}},{key:"downloadPreviews",value:function(t){var e;e=t>this.fonts.length?this.fonts.length:t;for(var i=this.previewIndex;i<e;i+=1)this.styleManager.applyPreviewStyle(this.fonts[i]),Q(this.fonts[i],this.options.variants);e>this.previewIndex&&(this.previewIndex=e)}},{key:"setActiveFont",value:function(t){var e=this.fonts.findIndex(function(e){return e.family===t});if(-1===e)return console.error('Cannot update activeFont: The font "'.concat(t,'" is not in the font list')),-1;var i=this.activeFont.family;return this.activeFont=this.fonts[e],this.styleManager.changeActiveStyle(this.activeFont,i),Y(this.activeFont,this.options.variants,this.onChange),e}}]),t}();!function(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}('@charset "UTF-8";\ndiv[id^="font-picker"] {\n position: relative;\n display: inline-block;\n width: 200px;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); }\n div[id^="font-picker"] * {\n box-sizing: border-box; }\n div[id^="font-picker"] p {\n margin: 0;\n padding: 0; }\n div[id^="font-picker"] button {\n background: none;\n border: 0;\n color: inherit;\n cursor: pointer;\n font-size: inherit;\n outline: none; }\n div[id^="font-picker"] .dropdown-button {\n height: 35px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 10px;\n background: #CBCBCB; }\n div[id^="font-picker"] .dropdown-button:hover, div[id^="font-picker"] .dropdown-button.expanded, div[id^="font-picker"] .dropdown-button:focus {\n background: #bebebe; }\n div[id^="font-picker"] .dropdown-button .dropdown-font-name {\n overflow: hidden;\n white-space: nowrap; }\n div[id^="font-picker"] .dropdown-icon {\n margin-left: 10px; }\n\n@-webkit-keyframes spinner {\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes spinner {\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n div[id^="font-picker"] .dropdown-icon.loading:before {\n content: \'\';\n display: block;\n height: 10px;\n width: 10px;\n border-radius: 50%;\n border: 2px solid #b2b2b2;\n border-top-color: black;\n -webkit-animation: spinner 0.6s linear infinite;\n animation: spinner 0.6s linear infinite; }\n div[id^="font-picker"] .dropdown-icon.finished:before {\n content: \'\';\n display: block;\n height: 0;\n width: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 6px solid black;\n transition: -webkit-transform 0.3s;\n transition: transform 0.3s;\n transition: transform 0.3s, -webkit-transform 0.3s;\n margin: 0 2px; }\n div[id^="font-picker"] .dropdown-icon.error:before {\n content: \'⚠\'; }\n div[id^="font-picker"] .dropdown-button.expanded .dropdown-icon.finished:before {\n -webkit-transform: rotate(-180deg);\n transform: rotate(-180deg); }\n div[id^="font-picker"] ul {\n position: absolute;\n z-index: 1;\n max-height: 0;\n width: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n margin: 0;\n padding: 0;\n background: #EAEAEA;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);\n transition: 0.3s; }\n div[id^="font-picker"] ul.expanded {\n max-height: 200px; }\n div[id^="font-picker"] ul li {\n height: 35px;\n list-style: none; }\n div[id^="font-picker"] ul li button {\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n padding: 0 10px;\n white-space: nowrap; }\n div[id^="font-picker"] ul li button:hover, div[id^="font-picker"] ul li button:focus {\n background: #dddddd; }\n div[id^="font-picker"] ul li button.active-font {\n background: #d1d1d1; }\n');const{Spinner:tt}=wp.components;function et(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function it(t){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function nt(t,e){return(nt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ot(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var at=function(t){function e(t){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=function(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?ot(t):e}(this,it(e).call(this,t))).state={activeFont:i.props.activeFont,errorText:"",expanded:!1,loadingStatus:"loading"},i.props.options&&i.props.options.name?i.pickerSuffix="-".concat(i.props.options.name):i.pickerSuffix="",i.fontManager=new Z(i.props.apiKey,i.props.activeFont,i.props.options),i.fontManager.init().then(function(){i.setState({errorText:"",loadingStatus:"finished"})}).catch(function(t){i.setState({errorText:"Error trying to fetch the list of available fonts",loadingStatus:"error"}),console.error(i.state.errorText),console.error(t)}),i.setActiveFont=i.setActiveFont.bind(ot(ot(i))),i.onClose=i.onClose.bind(ot(ot(i))),i.onScroll=i.onScroll.bind(ot(ot(i))),i.toggleExpanded=i.toggleExpanded.bind(ot(ot(i))),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nt(t,e)}(e,W["Component"]),function(t,e,i){e&&et(t.prototype,e),i&&et(t,i)}(e,[{key:"componentDidUpdate",value:function(){this.state.activeFont!==this.props.activeFont&&this.setActiveFont(this.props.activeFont)}},{key:"onClose",value:function(t){var e=t.target;do{if(e===document.getElementById("font-picker"))return;e=e.parentNode}while(e);this.toggleExpanded()}},{key:"onScroll",value:function(t){var e=t.target.scrollHeight/this.fontManager.fonts.length,i=Math.ceil((t.target.scrollTop+t.target.clientHeight)/e);this.fontManager.downloadPreviews(i+5)}},{key:"setActiveFont",value:function(t){-1===this.fontManager.setActiveFont(t)?(this.setState({activeFont:t,errorText:'Cannot update activeFont: The font "'.concat(t,'" is not in the font list'),loadingStatus:"error"}),console.error(this.state.errorText)):this.setState({activeFont:t,errorText:"",loadingStatus:"finished"})}},{key:"toggleExpanded",value:function(){this.state.expanded?(this.setState({expanded:!1}),document.removeEventListener("click",this.onClose)):(this.setState({expanded:!0}),document.addEventListener("click",this.onClose))}},{key:"render",value:function(){var t,e=this;return t=U.a.createElement("ul",{className:this.state.expanded?"expanded":"",onScroll:this.onScroll},this.fontManager.fonts.map(function(t){var i=t.family===e.state.activeFont,n=t.family.replace(/\s+/g,"-").toLowerCase();return U.a.createElement("li",{key:t.family},U.a.createElement("button",{type:"button",className:"font-".concat(n).concat(e.pickerSuffix," ").concat(i?"active-font":""),onClick:function(){e.props.onChange(t)},onKeyPress:function(){e.props.onChange(t)}},t.family))})),U.a.createElement("div",{id:"font-picker"},"loading"===this.state.loadingStatus&&U.a.createElement(tt,null),t)}}]),e}();const{__:st}=wp.i18n,{Component:rt,Fragment:lt}=wp.element,{Button:ct,Dropdown:ht,RangeControl:dt,SelectControl:pt}=wp.components;var ut=function(t){return U.a.createElement("svg",t,U.a.createElement("g",{fill:"#555D67",fillRule:"evenodd"},U.a.createElement("path",{d:"M2 2v9h12V2H2zm0-2h12a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z",fillRule:"nonzero"}),U.a.createElement("path",{d:"M6 14v-1h4v1h3v2H3v-2h3z"})))};ut.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"};var mt=function(t){return U.a.createElement("svg",t,U.a.createElement("g",{fill:"none",fillRule:"evenodd"},U.a.createElement("rect",{stroke:"#555D67",strokeWidth:"2",x:"1",y:"1",width:"10",height:"14",rx:"1"}),U.a.createElement("path",{fill:"#555D67",d:"M5 10h2v2H5z"})))};mt.defaultProps={width:"12",height:"16",viewBox:"0 0 12 16",xmlns:"http://www.w3.org/2000/svg"};const gt={100:st("Thin"),200:st("Extra-Light"),"200italic":st("Extra-Light Italic"),300:st("Light"),"300italic":st("Light Italic"),400:st("Regular"),regular:st("Regular"),italic:st("Regular Italic"),500:st("Medium"),"500italic":st("Medium Italic"),600:st("Semi-Bold"),"600italic":st("Semi-Bold Italic"),700:st("Bold"),"700italic":st("Bold Italic"),800:st("Extra-Bold"),"800italic":st("Extra-Bold Italic"),900:st("Black"),"900italic":st("Black Italic")};function ft(t){const e=t.fontfamily,i=function(t,e,i){let n="https://fonts.googleapis.com/css?family=";n+=t.replace(/ /g,"+"),n+=":".concat(e[0]);for(let t=1;t<e.length;t+=1)n+=",".concat(e[t]);if(!0===i){let e=t;e=(e=e.replace(/\s+/g,"")).split("").filter(function(t,e,i){return i.indexOf(t)===e}).join(""),n+="&text=".concat(e)}return n}(e,[t.desktop.fontweight],!1),n=document.createElement("link");n.rel="stylesheet",n.href=i,n.id="font-full-".concat(e);const o=document.getElementById(n.id);o?o.href.includes(t.desktop.fontweight)||(o.href=o.href+","+t.desktop.fontweight):document.head.appendChild(n)}class vt extends rt{constructor({attributes:t}){super(...arguments),this.state={tab:"desktop",typography:this.props.typography},this.updateParam=this.updateParam.bind(this),this.getVariantsList=this.getVariantsList.bind(this)}getVariantsList(t){let e=[];return e=Object.keys(t).map((e,i)=>({label:gt.hasOwnProperty(t[e])?gt[t[e]]:t[e],value:t[e]}))}updateParam(t,e,i){if(!D("professional"))return;const{typography:n}=this.state,{updated:o}=this.props;let a=n;if("desktop"===i)switch(e){case"fontsize":case"lineheight":case"letterspacing":case"fontweight":a.desktop[e]=t}else if("mobile"===i)switch(e){case"fontsize":case"lineheight":case"letterspacing":case"fontweight":a.mobile[e]=t}else switch(e){case"fontfamily":a.fontfamily=t.family,a.variants=t.variants,a.desktop.fontweight=t.variants[0],a.mobile.fontweight=t.variants[0]}o(a),this.setState(t=>({...t,typography:a})),ft(a)}render(){const{typography:t,tab:e}=this.state,{title:i}=this.props,n={fontFamily:t.fontfamily,fontWeight:t.desktop.fontweight};return U.a.createElement(ht,{className:"editor-component--field-typography-selector",contentClassName:"editor-component--dropdown-typography-selector",position:"bottom right",renderToggle:({isOpen:e,onToggle:o})=>U.a.createElement(ct,{onClick:o,"aria-expanded":e},U.a.createElement("label",null,i),U.a.createElement("p",{style:n},t.fontfamily)),renderContent:()=>U.a.createElement(lt,null,U.a.createElement(at,{apiKey:g,activeFont:t.fontfamily,onChange:t=>this.updateParam(t,"fontfamily","global")}),U.a.createElement("div",{className:"typography-options__wrapper"},U.a.createElement("div",{className:"tabs-menu"},U.a.createElement("button",{"data-mode":"desktop"===e?"active":"",onClick:t=>this.setState(t=>({...t,tab:"desktop"}))},U.a.createElement(ut,null)),U.a.createElement("button",{"data-mode":"mobile"===e?"active":"",onClick:t=>this.setState(t=>({...t,tab:"mobile"}))},U.a.createElement(mt,null))),U.a.createElement("div",{className:"tabs-content"},"desktop"===e&&U.a.createElement("div",{className:"tab--desktop"},U.a.createElement(dt,{label:st("Font Size (px)"),value:t.desktop.fontsize,onChange:t=>this.updateParam(t,"fontsize","desktop"),min:12,max:50}),U.a.createElement(pt,{label:st("Font Weight"),value:t.desktop.fontweight,options:this.getVariantsList(t.variants),onChange:t=>this.updateParam(t,"fontweight","desktop")}),U.a.createElement(dt,{label:st("Line Height (%)"),value:t.desktop.lineheight,onChange:t=>this.updateParam(t,"lineheight","desktop"),min:100,max:200,step:5}),U.a.createElement(dt,{label:st("Letter Spacing (px)"),value:t.desktop.letterspacing,onChange:t=>this.updateParam(t,"letterspacing","desktop"),min:0,max:5,step:.1})),"mobile"===e&&U.a.createElement("div",{className:"tab--mobile"},U.a.createElement(dt,{label:st("Font Size (px)"),value:t.mobile.fontsize,onChange:t=>this.updateParam(t,"fontsize","mobile"),min:12,max:50}),U.a.createElement(pt,{label:st("Font Weight"),value:t.mobile.fontweight,options:this.getVariantsList(t.variants),onChange:t=>this.updateParam(t,"fontweight","mobile")}),U.a.createElement(dt,{label:st("Line Height (%)"),value:t.mobile.lineheight,onChange:t=>this.updateParam(t,"lineheight","mobile"),min:100,max:200,step:5}),U.a.createElement(dt,{label:st("Letter Spacing (px)"),value:t.mobile.letterspacing,onChange:t=>this.updateParam(t,"letterspacing","mobile"),min:-1,max:5,step:.1})))))})}}var yt=i(20),bt=i.n(yt);const{__:Et}=wp.i18n,{Component:wt,Fragment:kt}=wp.element,{Spinner:xt}=wp.components,St=({overlayColor:t,overlayOpacity:e})=>0!==e&&React.createElement("div",{"data-component":"block-background-overlayer",style:{background:`${t}`,opacity:e/100}}),Ct={autoPlay:5e3,pageDots:!1,prevNextButtons:!1,draggable:!1,wrapAround:!0},Pt=({background:t})=>{const e=JSON.parse(t);let i="";switch(e.type){case"color":i=e.color&&React.createElement("div",{className:"color-element",style:{backgroundColor:e.color}});break;case"image":i=e.image.full&&React.createElement("div",{className:"image-element"},React.createElement("span",{style:{backgroundImage:`url(${e.image.full})`}}),React.createElement("span",{style:{backgroundImage:`url(${e.image.thumb})`}},React.createElement(xt,null)));break;case"gallery":i=React.createElement("div",{className:"gallery-element"},React.createElement(bt.a,{elementType:"div",options:Ct,disableImagesLoaded:!1,reloadOnUpdate:!0},e.gallery.map(({full:t,id:e})=>React.createElement("span",null,React.createElement("img",{src:t})))));break;case"video":i=e.video.url&&React.createElement("div",{className:"video-element"},React.createElement("video",{playsinline:!0,autoPlay:!0,loop:!0,muted:!0,src:e.video.url,poster:e.image.full}))}return React.createElement("div",{"data-component":"block-background"},i)},{__:_t}=wp.i18n,{Component:Dt,Fragment:Tt}=wp.element,{RichText:It,InspectorControls:Rt,PanelColorSettings:At}=wp.editor,{RangeControl:Lt,DropZone:Ot,PanelBody:Nt,SelectControl:Mt}=wp.components;var zt=class extends Dt{constructor({attributes:t}){super(...arguments),this.addBgImage=this.addBgImage.bind(this),this.state={hasDropped:!1,bodyTypo:JSON.parse(this.props.attributes.bodyTypo),titleTypo:JSON.parse(this.props.attributes.titleTypo),subtitleTypo:JSON.parse(this.props.attributes.subtitleTypo)},ft(this.state.bodyTypo),ft(this.state.titleTypo),ft(this.state.subtitleTypo),this.editorCssStylePrint=this.editorCssStylePrint.bind(this)}addBgImage(t){const{setAttributes:e,bgID:i}=this.props;mediaUpload({allowedTypes:p,filesList:t,value:i,title:_t("Change background image","coming-soon-blocks"),onFileChange:([t])=>{t&&t.url&&e({bgID:t.id,bgURL:t.url})}})}editorCssStylePrint(){const{bodyTypo:t,titleTypo:e,subtitleTypo:i}=this.state,{clientId:n}=this.props,o=(t,e)=>{let i="normal",o=t.desktop.fontweight;return o.includes("italic")&&(o=(o=o.replace("italic",""))||"normal",i="italic"),o.includes("regular")&&(o="normal"),`div[data-block="${n}"] main .-${e} {\n\t\t\t\t\t\tfont-family: ${t.fontfamily};\n\t\t\t\t\t\tfont-size: ${t.desktop.fontsize}px;\n\t\t\t\t\t\tfont-weight: ${o};\n\t\t\t\t\t\tfont-style: ${i};\n\t\t\t\t\t\tline-height: ${t.desktop.lineheight}%;\n\t\t\t\t\t\tletter-spacing: ${t.desktop.letterspacing}px;\n\t\t\t\t\t}`};return React.createElement("div",{id:`block-style--${n}`,dangerouslySetInnerHTML:{__html:`\n\t\t\t\t<style>\n\t\t\t\t${o(t,"body__typography")}\n\t\t\t\t${o(e,"title__typography")}\n\t\t\t\t${o(i,"subtitle__typography")}\n\t\t\t\t</style>\n\t\t\t\t`}})}render(){const{bodyTypo:t,titleTypo:e,subtitleTypo:i}=this.state,{attributes:{titleText:n,subTitleText:o,descriptionText:a,copyrightText:s,logoID:r,logoURL:h,logoMaxWidth:d,logoAlign:u,textColor:g,overlayColor:v,overlayOpacity:y,networks:b,background:E},className:w,setAttributes:k}=this.props;return React.createElement(Tt,null,React.createElement(Rt,null,React.createElement(At,{title:_t("BACKGROUND","coming-soon-blocks"),initialOpen:!0,colorSettings:[{value:v,colors:f,onChange:t=>k({overlayColor:t}),label:_t("Overlayer","coming-soon-blocks")}]},React.createElement(Lt,{label:_t("Overlayer Opacity","coming-soon-blocks"),value:y,onChange:t=>k({overlayOpacity:t}),min:0,max:100,step:5}),React.createElement(F,{attributes:E,updateAttributes:t=>{k({background:t})}})),React.createElement(Nt,{title:_t("BRAND","coming-soon-blocks"),initialOpen:!1},React.createElement(Lt,{label:_t("Max Logo Width (px)","coming-soon-blocks"),value:d,onChange:t=>k({logoMaxWidth:t}),min:30,max:500,step:5}),React.createElement(Mt,{label:_t("Alignment:","coming-soon-blocks"),value:u,onChange:t=>k({logoAlign:t}),options:[{value:"left",label:_t("Left","coming-soon-blocks")},{value:"center",label:_t("Center","coming-soon-blocks")},{value:"right",label:_t("Right","coming-soon-blocks")}]})),React.createElement(At,{title:_t("TYPOGRAPHY","coming-soon-blocks"),initialOpen:!1,colorSettings:[{value:g,colors:f,onChange:t=>k({textColor:t}),label:_t("Text color","coming-soon-blocks")}]},React.createElement("label",{className:"single-field-label"},_t("Fonts","coming-soon-blocks")),React.createElement(R,{plan:"professional"},React.createElement(vt,{title:_t("Title","coming-soon-blocks"),typography:e,updated:t=>{this.setState(e=>({...e,titleTypo:t})),k({titleTypo:JSON.stringify(t)})}}),React.createElement(vt,{title:_t("Subtitle","coming-soon-blocks"),typography:i,updated:t=>{this.setState(e=>({...e,subtitleTypo:t})),k({subtitleTypo:JSON.stringify(t)})}}),React.createElement(vt,{title:_t("Body","coming-soon-blocks"),typography:t,updated:t=>{this.setState(e=>({...e,bodyTypo:t})),k({bodyTypo:JSON.stringify(t)})}})))),React.createElement(Ot,{onFilesDrop:this.addBgImage}),React.createElement("main",{"data-block":c,className:w},React.createElement("div",{className:"content__container",style:{color:g}},React.createElement("div",{className:"brand__wrapper"},React.createElement(m,{onSelect:t=>{k({logoURL:t.url,logoID:t.id})},allowedTypes:p,logoID:r,logoURL:h,mediaURL:l,style:{maxWidth:`${d}px`},align:u})),React.createElement("div",{className:"title__wrapper"},React.createElement(It,{tagName:"h1",className:"-title__typography",value:n,placeholder:_t("Title","coming-soon-blocks"),onChange:t=>k({titleText:t})})),React.createElement("div",{className:"subtitle__wrapper"},React.createElement(It,{tagName:"h2",className:"-subtitle__typography",value:o,placeholder:_t("Subtitle","coming-soon-blocks"),onChange:t=>k({subTitleText:t})})),React.createElement("div",{className:"description__wrapper -body__typography"},React.createElement(It,{tagName:"p",value:a,placeholder:_t("Description","coming-soon-blocks"),onChange:t=>k({descriptionText:t})}),React.createElement(It,{tagName:"p",value:s,className:"copyright",placeholder:_t("Copyright","coming-soon-blocks"),onChange:t=>k({copyrightText:t})})),React.createElement("div",{className:"social__wrapper"},React.createElement(C,{networks:b,setNetworks:t=>k({networks:t}),position:"top left"}))),React.createElement(St,{overlayColor:v,overlayOpacity:y}),React.createElement(Pt,{background:E})),this.editorCssStylePrint())}};const{__:Bt}=wp.i18n,{registerBlockType:Ft}=wp.blocks,{RichText:Wt}=wp.editor;Ft(c,{title:h,icon:"admin-generic",keywords:d,category:"layout",supports:{align:["full"]},edit:zt,save:()=>null});i(36);const{compose:Ut}=wp.compose,{withDispatch:jt,withSelect:Ht}=wp.data,{Component:Vt,Fragment:Gt}=wp.element,{createBlock:Jt}=wp.blocks,{PluginSidebar:qt,PluginSidebarMoreMenuItem:$t}=wp.editPost,{registerPlugin:Xt}=wp.plugins,{__:Yt}=wp.i18n,{Button:Qt}=wp.components,Kt=csblocks.baseURL,Zt="pixelthrone--comingsoonblocks-templates";var te=function(t){return U.a.createElement("svg",t,U.a.createElement("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"}))};te.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"};const ee=()=>U.a.createElement($t,{target:Zt},"Page Templates"),ie=({attr:t,action:e,index:i})=>U.a.createElement("div",{className:"template-thumb-button"},U.a.createElement("img",{src:Kt+t.thumb.img}),U.a.createElement(Qt,{onClick:i=>{i.preventDefault(),e(t.name)},isDefault:!0},Yt("Add Template","coming-soon-blocks")));const ne=Ut(jt(t=>({insertBlock:t("core/editor").insertBlock,updateFeaturedImage(e){t("core/editor").editPost({featured_media:e})}})))(class extends Vt{constructor({attributes:t}){super(...arguments),this.addTemplate=this.addTemplate.bind(this)}addTemplate(t){const e=Jt(t,{});this.props.insertBlock(e)}render(){return U.a.createElement(Gt,null,U.a.createElement(ee,null),U.a.createElement(qt,{name:Zt,className:"teste",title:Yt("Page Templates","coming-soon-blocks")},U.a.createElement("div",{"data-component":"sidebar--available-blocks"},Object.keys(n).map((t,e)=>U.a.createElement(ie,{attr:n[t],action:this.addTemplate,index:e,key:e})))))}});Xt(Zt,{icon:U.a.createElement(function(){return U.a.createElement("span",{className:"layout--header--show-template-button"},U.a.createElement(te,{v:"3"}))},null),render:()=>U.a.createElement(ne,null)});i(37);const{__:oe}=wp.i18n,{compose:ae}=wp.compose,{Component:se,Fragment:re}=wp.element,{withDispatch:le,withSelect:ce}=wp.data,{PluginSidebar:he,PluginSidebarMoreMenuItem:de}=wp.editPost,{registerPlugin:pe}=wp.plugins,{TextControl:ue,TextareaControl:me,Spinner:ge,PanelBody:fe,PanelRow:ve,ToggleControl:ye,DateTimePicker:be,Button:Ee,Dropdown:we}=wp.components,ke=csblocks.settings,xe=csblocks.time_format,Se="pixelthrone--comingsoonblocks-settings";var Ce=function(t){return U.a.createElement("svg",t,U.a.createElement("path",{d:"M6.74 10.913c0 .603-.152 1.139-.455 1.607-.303.468-.74.831-1.31 1.09-.57.26-1.24.39-2.007.39-.64 0-1.178-.045-1.612-.136A5.942 5.942 0 0 1 0 13.388v-2.342a7.691 7.691 0 0 0 1.547.602 5.705 5.705 0 0 0 1.474.216c.386 0 .669-.067.849-.203.18-.135.27-.309.27-.522a.58.58 0 0 0-.109-.35c-.072-.099-.189-.2-.349-.302-.16-.102-.587-.31-1.28-.625-.627-.289-1.098-.568-1.412-.839a2.571 2.571 0 0 1-.697-.931C.14 7.742.066 7.327.066 6.848c0-.896.322-1.595.967-2.096C1.678 4.25 2.564 4 3.692 4c.996 0 2.012.233 3.047.699l-.796 2.029c-.9-.417-1.676-.626-2.33-.626-.338 0-.583.06-.737.18a.545.545 0 0 0-.23.446c0 .19.097.361.292.512.196.151.726.426 1.59.825.83.377 1.405.782 1.727 1.214.323.433.484.977.484 1.634zm6.91 2.954H7.938V4.14h5.712v2.109h-3.113v1.53h2.883v2.11h-2.883v1.836h3.113v2.142zm5.64 0h-2.599V6.289h-2.35v-2.15h7.293v2.15H19.29v7.578zm7.945 0h-2.6V6.289h-2.349v-2.15h7.292v2.15h-2.343v7.578zm3.43 0V4.14h2.612v9.727h-2.612zm13.564 0H40.82l-3.514-6.853h-.06c.084 1.078.126 1.9.126 2.468v4.385h-2.304V4.14h3.396l3.501 6.76h.04a39.594 39.594 0 0 1-.092-2.362V4.14h2.316v9.727zm5.654-5.695h4.153v5.243c-1.128.39-2.367.585-3.718.585-1.483 0-2.63-.435-3.439-1.304-.81-.87-1.214-2.11-1.214-3.72 0-1.57.443-2.791 1.33-3.665C47.88 4.437 49.121 4 50.718 4c.606 0 1.177.058 1.714.173a7.183 7.183 0 0 1 1.406.44l-.823 2.062a5.042 5.042 0 0 0-2.284-.52c-.759 0-1.346.25-1.76.75-.415.498-.622 1.211-.622 2.138 0 .91.187 1.603.563 2.08.375.476.915.715 1.622.715.386 0 .741-.038 1.066-.113V10.2h-1.718V8.17zM62 10.912c0 .604-.151 1.14-.454 1.608-.303.468-.74.831-1.31 1.09-.57.26-1.24.39-2.007.39-.64 0-1.178-.045-1.612-.136a5.942 5.942 0 0 1-1.356-.476v-2.342a7.691 7.691 0 0 0 1.546.602 5.705 5.705 0 0 0 1.475.216c.386 0 .669-.067.849-.203.18-.135.27-.309.27-.522a.58.58 0 0 0-.11-.35c-.072-.099-.188-.2-.348-.302-.16-.102-.587-.31-1.28-.625-.627-.289-1.098-.568-1.412-.839a2.571 2.571 0 0 1-.697-.931c-.152-.35-.227-.765-.227-1.244 0-.896.322-1.595.967-2.096C56.94 4.25 57.825 4 58.953 4c.996 0 2.012.233 3.047.699l-.796 2.029c-.9-.417-1.676-.626-2.33-.626-.338 0-.584.06-.737.18a.545.545 0 0 0-.23.446c0 .19.097.361.292.512.196.151.725.426 1.59.825.829.377 1.405.782 1.727 1.214.323.433.484.977.484 1.634z",fill:"#555D67",fillRule:"evenodd"}))};Ce.defaultProps={width:"62",height:"17",viewBox:"0 0 62 17",xmlns:"http://www.w3.org/2000/svg"};const Pe=()=>U.a.createElement(de,{target:Se},oe("SETTINGS","coming-soon-blocks"));const _e=ae(le(t=>{const{editPost:e}=t("core/editor"),{togglePinnedPluginItem:i}=t("core/edit-post");return{editPost:e,openLookAndFeelSidebar(){}}}),ce(t=>{const{isSavingPost:e}=t("core/editor");return{isSaving:e()}}))(class extends se{constructor(t){super(t),this.state=_(ke,{status:!1,schedule:"",scheduleStartDate:"",scheduleEndDate:"",loginBypass:!1,passwordProtected:!1,password:"",googleAnalytics:"",othersAnalytics:"",CSSCode:"",JSCode:"",redirectMode:!1,cookieNotice:!1,redirectUrl:"http://"}),this.updatePost=this.updatePost.bind(this)}updatePost(){const{editPost:t}=this.props;setTimeout(()=>{const e=document.querySelector("#wp-admin-bar-pt_comingsoonblocks_toolbar_group");this.state.status?(e.classList.add("-coming-soon-enabled"),e.querySelector("a.ab-item i.dashicons-before").classList.remove("dashicons-unlock"),e.querySelector("a.ab-item i.dashicons-before").classList.add("dashicons-lock"),document.querySelector("#menu-posts-coming-soon-blocks > a .dashicons-before").classList.remove("dashicons-unlock"),document.querySelector("#menu-posts-coming-soon-blocks > a .dashicons-before").classList.add("dashicons-lock")):(e.classList.remove("-coming-soon-enabled"),e.querySelector("a.ab-item i.dashicons-before").classList.remove("dashicons-lock"),e.querySelector("a.ab-item i.dashicons-before").classList.add("dashicons-unlock"),document.querySelector("#menu-posts-coming-soon-blocks > a .dashicons-before").classList.remove("dashicons-lock"),document.querySelector("#menu-posts-coming-soon-blocks > a .dashicons-before").classList.add("dashicons-unlock")),t({comingsoonblocks_settings:JSON.stringify(this.state)})},200)}render(){let t="password";const{isSaving:e,openLookAndFeelSidebar:i}=this.props,{status:n,schedule:o,scheduleStartDate:a,scheduleEndDate:s,googleAnalytics:r,othersAnalytics:l,loginBypass:c,passwordProtected:h,password:d,CSSCode:p,JSCode:u,redirectMode:m,redirectUrl:g,cookieNotice:f}=this.state,v=/a(?!\\)/i.test(xe.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return U.a.createElement(re,null,U.a.createElement(Pe,null),U.a.createElement(he,{name:Se,title:oe("SETTINGS","coming-soon-blocks")},U.a.createElement("div",{"data-component":"sidebar--settings-options","data-loading":e?"true":"false"},e&&U.a.createElement(ge,null),U.a.createElement(fe,{title:oe("GENERAL","coming-soon-blocks"),initialOpen:!0},U.a.createElement(ve,{className:""},U.a.createElement(ye,{label:oe("Enable coming soon","coming-soon-blocks","coming-soon-blocks"),help:oe("By activating this option this page will appear to all the website visitors.","coming-soon-blocks"),checked:n,onChange:t=>this.setState(e=>({status:t}),this.updatePost())}),n&&U.a.createElement(R,{plan:"starter"},U.a.createElement(ye,{label:oe("Schedule Publish","coming-soon-blocks"),help:oe("By activating this option it is possible to set a date to show or hide the page.","coming-soon-blocks"),checked:o,onChange:t=>this.setState(e=>({schedule:t}),this.updatePost())})),o&&U.a.createElement(R,{plan:"starter"},U.a.createElement(re,null,U.a.createElement(we,{className:"editor-component--field-date-time-picker",contentClassName:"editor-component--dropdown-date-time-picker",position:"bottom right",renderToggle:({isOpen:t,onToggle:e})=>U.a.createElement("div",null,U.a.createElement("label",null,oe("Start:","coming-soon-blocks")),U.a.createElement(Ee,{isLink:!0,onClick:e,"aria-expanded":t},a||oe("Set date","coming-soon-blocks")),a&&U.a.createElement(Ee,{isDefault:!0,isSmall:!0,onClick:t=>this.setState(t=>({scheduleStartDate:""}),this.updatePost())},"✖")),renderContent:()=>U.a.createElement(be,{is12Hour:v,currentDate:a,onChange:t=>this.setState(e=>({scheduleStartDate:t}),this.updatePost())})}),U.a.createElement(we,{className:"editor-component--field-date-time-picker",contentClassName:"editor-component--dropdown-date-time-picker",position:"bottom right",renderToggle:({isOpen:t,onToggle:e})=>U.a.createElement("div",null,U.a.createElement("label",null,oe("End:","coming-soon-blocks")),U.a.createElement(Ee,{isLink:!0,onClick:e,"aria-expanded":t},s||oe("Set date","coming-soon-blocks")),s&&U.a.createElement(Ee,{isDefault:!0,isSmall:!0,onClick:t=>this.setState(t=>({scheduleEndDate:""}),this.updatePost())},"✖")),renderContent:()=>U.a.createElement(be,{is12Hour:v,currentDate:s,onChange:t=>this.setState(e=>({scheduleEndDate:t}),this.updatePost())})}))))),U.a.createElement(fe,{title:oe("ACCESS","coming-soon-blocks"),initialOpen:!1},U.a.createElement(ve,{className:""},U.a.createElement(ye,{label:oe("Show normal website to logged in users?","coming-soon-blocks"),help:oe("Enable this option if you want logged in users to view the website normally while visitors see the maintenance page.","coming-soon-blocks"),checked:c,onChange:t=>this.setState(e=>({...e,loginBypass:t}),this.updatePost())}),U.a.createElement(ye,{label:oe("Redirect Mode","coming-soon-blocks"),help:oe('Enable this option if you want to move your visitors to a new page. We will define the header as "301 Moved Permanently"',"coming-soon-blocks"),checked:m,onChange:t=>this.setState(e=>({...e,redirectMode:t}),this.updatePost())}),m&&U.a.createElement(ue,{label:oe("Redirect Url","coming-soon-blocks"),value:g,onChange:t=>this.setState(e=>({...e,redirectUrl:t}),this.updatePost())}),!m&&U.a.createElement(R,{plan:"starter"},U.a.createElement(ye,{label:oe("Password Protected","coming-soon-blocks"),help:oe("Protected with a password you choose. Only those with the password can view the site.","coming-soon-blocks"),checked:h,onChange:t=>this.setState(e=>({...e,passwordProtected:t}),this.updatePost())}),h&&U.a.createElement(re,null,U.a.createElement(ue,{label:oe("Password","coming-soon-blocks"),value:d,onChange:t=>this.setState(e=>({...e,password:t}),this.updatePost()),onFocus:e=>t="text",onblur:e=>t="password"}),U.a.createElement("p",{onClick:i,"data-editor-component":"notice","data-notice":"warning"},oe('To change the element colors see the sidebar "Look & Feel"',"coming-soon-blocks")))))),U.a.createElement(fe,{title:oe("COOKIE NOTICE","coming-soon-blocks"),initialOpen:!1},U.a.createElement(ve,{className:""},U.a.createElement(ye,{label:oe("Enable Cookie Notice","coming-soon-blocks"),help:oe("By activating this option a small notice will appear notifying the visitor that the site uses cookies.","coming-soon-blocks"),checked:f,onChange:t=>this.setState(e=>({cookieNotice:t}),this.updatePost())}))),U.a.createElement(fe,{title:oe("CUSTOM CSS & JS","coming-soon-blocks"),initialOpen:!1},U.a.createElement(ve,{className:""},U.a.createElement(ue,{label:oe("Google Analytics Tracking ID","coming-soon-blocks"),value:r,onChange:t=>this.setState(e=>({...e,googleAnalytics:t}),this.updatePost())}),U.a.createElement(R,{plan:"professional"},U.a.createElement(me,{label:oe("Tracking Pixel & 3rd Party Analytics Code","coming-soon-blocks"),help:oe("Copy&paste the complete code, including the opening and closing <script> tags.","coming-soon-blocks"),value:l,onChange:t=>this.setState(e=>({...e,othersAnalytics:t}),this.updatePost())})),U.a.createElement(R,{plan:"professional"},U.a.createElement(me,{label:oe("JS","coming-soon-blocks"),rows:"6",help:oe("Copy&paste the complete code, including the opening and closing <script> tags.","coming-soon-blocks"),value:u,onChange:t=>this.setState(e=>({...e,JSCode:t}),this.updatePost())})),U.a.createElement(R,{plan:"professional"},U.a.createElement(me,{label:oe("CSS","coming-soon-blocks"),rows:"6",value:p,onChange:t=>this.setState(e=>({...e,CSSCode:t}),this.updatePost())})))))))}});pe(Se,{icon:U.a.createElement(function(){return U.a.createElement(Ce,{className:"settings-button",v:"1"})},null),render:()=>U.a.createElement(_e,null)});i(38);const{__:De}=wp.i18n,{compose:Te}=wp.compose,{Component:Ie,Fragment:Re}=wp.element,{withDispatch:Ae,withSelect:Le}=wp.data,{PluginSidebar:Oe,PluginSidebarMoreMenuItem:Ne}=wp.editPost,{registerPlugin:Me}=wp.plugins,{MediaUpload:ze}=wp.editor,{Button:Be,TextControl:Fe,TextareaControl:We,Spinner:Ue,PanelBody:je,PanelRow:He,ToggleControl:Ve,Tooltip:Ge}=wp.components,Je=csblocks.seo,qe="pixelthrone--comingsoonblocks-seo";var $e=function(t){return U.a.createElement("svg",t,U.a.createElement("path",{d:"M6.725 10.917a2.89 2.89 0 0 1-.453 1.605c-.302.467-.738.83-1.307 1.09-.569.258-1.237.388-2.003.388-.64 0-1.176-.045-1.609-.136A5.927 5.927 0 0 1 0 13.389v-2.34c.495.258 1.01.458 1.543.602a5.69 5.69 0 0 0 1.472.216c.385 0 .667-.067.847-.203a.625.625 0 0 0 .27-.521.579.579 0 0 0-.11-.349c-.072-.1-.188-.2-.347-.302-.16-.102-.586-.31-1.278-.625C1.771 9.58 1.302 9.3.988 9.03a2.568 2.568 0 0 1-.696-.93c-.15-.35-.226-.764-.226-1.243 0-.895.321-1.592.965-2.093.644-.5 1.528-.75 2.653-.75.994 0 2.008.232 3.041.697l-.794 2.027c-.898-.417-1.673-.625-2.325-.625-.337 0-.583.06-.736.18a.545.545 0 0 0-.23.445c0 .19.098.36.292.511.195.15.724.425 1.587.824.827.377 1.402.78 1.724 1.213.321.432.482.975.482 1.63zm6.897 2.95h-5.7V4.153h5.7v2.106h-3.106v1.528h2.876v2.107h-2.876v1.834h3.106v2.14zM24 8.997c0 1.634-.396 2.877-1.189 3.727-.792.85-1.953 1.276-3.48 1.276-1.507 0-2.662-.427-3.465-1.282-.804-.855-1.205-2.1-1.205-3.735 0-1.616.4-2.851 1.198-3.704C16.66 4.426 17.82 4 19.343 4c1.529 0 2.687.423 3.475 1.27C23.606 6.114 24 7.357 24 8.996zm-6.607 0c0 1.878.646 2.817 1.937 2.817.657 0 1.144-.228 1.462-.684.317-.457.476-1.168.476-2.133 0-.97-.161-1.687-.483-2.15-.322-.463-.802-.694-1.442-.694-1.3 0-1.95.948-1.95 2.844z",fill:"#555D67",fillRule:"evenodd"}))};$e.defaultProps={width:"24",height:"17",viewBox:"0 0 24 17",xmlns:"http://www.w3.org/2000/svg"};const Xe=()=>U.a.createElement(Ne,{target:qe},De("SEO","coming-soon-blocks"));const Ye=Te(Ae(t=>{const{editPost:e}=t("core/editor");return{editPost:e}}),Le(t=>{const{getPostType:e}=t("core"),{getCurrentPostId:i,getEditedPostAttribute:n,isSavingPost:o}=t("core/editor");return{currentPostId:i(),postType:e(n("type")),isSaving:o()}}))(class extends Ie{constructor(t){super(t),this.state=_(Je,{title:"",description:"",keywords:"",author:"",copyright:"",facebook:{title:"",description:"",cover:{id:"",url:""}},twitter:{title:"",description:"",cover:{id:"",url:""}},serviceUnavailable:!1,noCache:!1}),this.updatePost=this.updatePost.bind(this)}updatePost(){const{editPost:t}=this.props;setTimeout(()=>{t({comingsoonblocks_seo:JSON.stringify(this.state)})},200)}render(){const{isSaving:t}=this.props,{title:e,description:i,keywords:n,author:o,copyright:a,facebook:s,twitter:r,serviceUnavailable:l,noCache:c}=this.state;return U.a.createElement(Re,null,U.a.createElement(Xe,null),U.a.createElement(Oe,{name:qe,title:De("SEO","coming-soon-blocks")},U.a.createElement("div",{"data-component":"sidebar--seo-options","data-loading":t?"true":"false"},t&&U.a.createElement(Ue,null),U.a.createElement(je,{title:De("SEARCH ENGINES","coming-soon-blocks"),initialOpen:!0},U.a.createElement(He,{className:""},U.a.createElement(Fe,{label:De("Page Title","coming-soon-blocks"),value:e,onChange:t=>this.setState(e=>({...e,title:t}),this.updatePost())}),U.a.createElement(We,{label:De("Meta Description","coming-soon-blocks"),value:i,onChange:t=>this.setState(e=>({...e,description:t}),this.updatePost())}),U.a.createElement(Fe,{label:De("keywords","coming-soon-blocks"),help:De("eg: SEO, search engine optimisation, optimization","coming-soon-blocks"),value:n,onChange:t=>this.setState(e=>({...e,keywords:t}),this.updatePost())}),U.a.createElement(Fe,{label:De("Author","coming-soon-blocks"),help:De("eg: SEO, search engine optimisation, optimization","coming-soon-blocks"),value:o,onChange:t=>this.setState(e=>({...e,author:t}),this.updatePost())}),U.a.createElement(Fe,{label:De("Copyright","coming-soon-blocks"),help:De("eg: SEO, search engine optimisation, optimization","coming-soon-blocks"),value:a,onChange:t=>this.setState(e=>({...e,copyright:t}),this.updatePost())}),U.a.createElement(Ve,{label:De("Temporarily Pause Search Engines","coming-soon-blocks"),help:De("If your site is already indexed and you're just taking it down for a while, enable this option. It temporarily discourages search engines from crawling the site by telling them it's under construction by sending a 503 Service Unavailable response.","coming-soon-blocks"),checked:l,onChange:t=>this.setState(e=>({...e,serviceUnavailable:t}),this.updatePost())}),U.a.createElement(Ve,{label:De("Send no-cache Headers","coming-soon-blocks"),help:De("If you don't want the coming soon page's preview to be cached by Facebook and other social media enable this option. Once you switch to the normal site social media preview (visible when sharing the site's link) will immediately be refreshed.","coming-soon-blocks"),checked:c,onChange:t=>this.setState(e=>({...e,noCache:t}),this.updatePost())}))),U.a.createElement(je,{title:De("FACEBOOK","coming-soon-blocks"),initialOpen:!1},U.a.createElement(He,null,U.a.createElement(Fe,{label:De("Facebook Title","coming-soon-blocks"),value:s.title,onChange:t=>this.setState(e=>({...e,facebook:{...e.facebook,title:t}}),this.updatePost())}),U.a.createElement(We,{label:De("Facebook Description","coming-soon-blocks"),value:s.description,onChange:t=>this.setState(e=>({...e,facebook:{...e.facebook,description:t}}),this.updatePost())}),U.a.createElement("label",null,De("Facebook Cover Image","coming-soon-blocks")),U.a.createElement("p",null,U.a.createElement("small",null,"The recommended size is 1024 by 512 pixels.")),U.a.createElement(ze,{onSelect:t=>{const e={id:t.id,url:t.url};this.setState(t=>({...t,facebook:{...t.facebook,cover:e}}),this.updatePost()),this.updatePost()},allowedTypes:["image"],value:s.cover.id,render:({open:t})=>U.a.createElement("div",{"data-editor-component":"inspector-controls--image-uploader"},s.cover.url&&U.a.createElement("img",{onClick:t,src:s.cover.url}),U.a.createElement(Be,{onClick:t,isDefault:!0},s.cover.id?De("Replace image","coming-soon-blocks"):De("Add image","coming-soon-blocks")))}))),U.a.createElement(je,{title:De("TWITTER","coming-soon-blocks"),initialOpen:!1},U.a.createElement(He,null,U.a.createElement(Fe,{label:De("Twitter Title","coming-soon-blocks"),value:r.title,onChange:t=>this.setState(e=>({...e,twitter:{...e.twitter,title:t}}),this.updatePost())}),U.a.createElement(We,{label:De("Twitter Description","coming-soon-blocks"),value:r.description,onChange:t=>this.setState(e=>({...e,twitter:{...e.twitter,description:t}}),this.updatePost())}),U.a.createElement("label",null,De("Twitter Cover Image","coming-soon-blocks")),U.a.createElement("p",null,U.a.createElement("small",null,"The recommended size is 1200 by 630 pixels.")),U.a.createElement(ze,{onSelect:t=>{const e={id:t.id,url:t.url};this.setState(t=>({...t,twitter:{...t.twitter,cover:e}}),this.updatePost()),this.updatePost()},allowedTypes:["image"],value:r.cover.id,render:({open:t})=>U.a.createElement("div",{"data-editor-component":"inspector-controls--image-uploader"},r.cover.url&&U.a.createElement("img",{onClick:t,src:r.cover.url}),U.a.createElement(Be,{onClick:t,isDefault:!0},r.cover.id?De("Replace image","coming-soon-blocks"):De("Add image","coming-soon-blocks")))}))))))}});Me(qe,{icon:U.a.createElement(function(){return U.a.createElement($e,{className:"seo-button",v:"1"})},null),render:()=>U.a.createElement(Ye,null)});i(39);const{__:Qe}=wp.i18n,{compose:Ke}=wp.compose,{Component:Ze,Fragment:ti}=wp.element,{withDispatch:ei,withSelect:ii}=wp.data,{PluginSidebar:ni,PluginSidebarMoreMenuItem:oi}=wp.editPost,{registerPlugin:ai}=wp.plugins,{MediaUpload:si}=wp.editor,{Button:ri,Spinner:li,PanelBody:ci,PanelRow:hi,ToggleControl:di,ColorPalette:pi,ColorIndicator:ui}=wp.components,mi="pixelthrone--comingsoonblocks-look-and-feel";var gi=function(t){return U.a.createElement("svg",t,U.a.createElement("path",{d:"M0 13.426v-9.28h2.486v7.255H6.03v2.025H0zm15.578-4.653c0 1.562-.38 2.749-1.14 3.561-.759.813-1.87 1.22-3.335 1.22-1.443 0-2.55-.41-3.32-1.226-.77-.817-1.155-2.006-1.155-3.567 0-1.545.383-2.724 1.149-3.54C8.542 4.408 9.655 4 11.116 4c1.464 0 2.574.404 3.329 1.212.755.809 1.133 1.996 1.133 3.561zm-6.332 0c0 1.795.62 2.692 1.857 2.692.63 0 1.096-.218 1.4-.654.305-.436.457-1.115.457-2.038 0-.926-.155-1.61-.463-2.053-.308-.442-.769-.663-1.381-.663-1.247 0-1.87.905-1.87 2.716zm16.327 0c0 1.562-.38 2.749-1.139 3.561-.76.813-1.871 1.22-3.336 1.22-1.443 0-2.55-.41-3.32-1.226-.77-.817-1.155-2.006-1.155-3.567 0-1.545.383-2.724 1.149-3.54C18.538 4.408 19.651 4 21.111 4c1.464 0 2.574.404 3.33 1.212.755.809 1.132 1.996 1.132 3.561zm-6.331 0c0 1.795.618 2.692 1.856 2.692.63 0 1.096-.218 1.4-.654.305-.436.457-1.115.457-2.038 0-.926-.154-1.61-.463-2.053-.308-.442-.769-.663-1.381-.663-1.246 0-1.87.905-1.87 2.716zm15.577 4.653h-2.807l-1.818-3.548-.737.444v3.104H26.96v-9.28h2.498v4.03c.126-.249.38-.645.762-1.186l1.932-2.844h2.719l-2.902 4.158 2.851 5.122zm9.978 0l-.623-.647c-.378.241-.688.407-.929.498a4.07 4.07 0 0 1-.812.206c-.3.047-.643.07-1.029.07-.663 0-1.25-.114-1.759-.343-.51-.228-.9-.548-1.17-.958a2.49 2.49 0 0 1-.406-1.403c0-1.109.57-1.957 1.711-2.545a3.619 3.619 0 0 1-.607-.943 2.794 2.794 0 0 1-.217-1.127c0-.677.259-1.214.777-1.612.518-.398 1.23-.597 2.137-.597.885 0 1.574.198 2.067.594.494.396.74.934.74 1.615 0 .47-.133.905-.4 1.305-.266.4-.687.775-1.262 1.127l1.253 1.2a4.685 4.685 0 0 0 .654-1.651h2.556a8.414 8.414 0 0 1-.595 1.755 7.119 7.119 0 0 1-.916 1.508l2.014 1.948h-3.184zm-4.192-2.755c0 .267.094.485.283.654.189.17.439.254.75.254.238 0 .448-.032.628-.095.18-.064.32-.136.416-.216l-1.561-1.6c-.344.259-.516.593-.516 1.003zm1.857-4.437c0-.207-.06-.356-.18-.447a.722.722 0 0 0-.45-.137.718.718 0 0 0-.462.16c-.133.105-.199.274-.199.507 0 .317.185.645.554.984.24-.136.422-.297.548-.486.126-.188.189-.382.189-.58zm11.689 7.192h-2.449v-9.28h5.438v2.012h-2.99V7.93h2.757v2.012h-2.756v3.485zm9.687 0h-5.464v-9.28h5.464v2.012H60.86v1.46h2.756V9.63h-2.756v1.752h2.977v2.044zm6.798 0h-5.463v-9.28h5.463v2.012h-2.977v1.46h2.756V9.63H67.66v1.752h2.977v2.044zm1.335 0v-9.28h2.486v7.255H78v2.025h-6.03z",fill:"#555D67",fillRule:"evenodd"}))};gi.defaultProps={width:"78",height:"17",viewBox:"0 0 78 17",xmlns:"http://www.w3.org/2000/svg"};const fi=csblocks.lookandfeel,vi=csblocks.settings;const yi=()=>U.a.createElement(oi,{target:mi},Qe("LOOK AND FEEL","coming-soon-blocks"));const bi=Ke(ei(t=>{const{editPost:e}=t("core/editor");return{editPost:e}}),ii(t=>{const{getEditedPostAttribute:e,isSavingPost:i}=t("core/editor");return{settingsSidebarOptions:e("comingsoonblocks_settings"),isSaving:i()}}))(class extends Ze{constructor(t){super(t),this.state=_(fi,{pluginBrand:!1,favicon:{id:"",url:""},unlock_button_color:"#282A2F",activeFont:"",typography:{}}),this.updatePost=this.updatePost.bind(this),this.showPasswordProtectedOptions=this.showPasswordProtectedOptions.bind(this)}updatePost(){const{editPost:t}=this.props;setTimeout(()=>{t({comingsoonblocks_lookandfeel:JSON.stringify(this.state)})},200)}showPasswordProtectedOptions(){const{settingsSidebarOptions:t}=this.props;return t?JSON.parse(t).passwordProtected:vi.passwordProtected}render(){const{isSaving:t}=this.props,{favicon:e,pluginBrand:i,unlock_button_color:n}=this.state;return U.a.createElement(ti,null,U.a.createElement(yi,null),U.a.createElement(ni,{name:mi,title:Qe("LOOK AND FEEL","coming-soon-blocks")},U.a.createElement("div",{"data-component":"sidebar--settings-options","data-loading":t?"true":"false"},t&&U.a.createElement(li,null),U.a.createElement(ci,{title:Qe("ICONS","coming-soon-blocks"),initialOpen:!0},U.a.createElement(hi,{className:""},U.a.createElement("label",null,Qe("Favicon","coming-soon-blocks")),U.a.createElement(si,{onSelect:t=>{const e={id:t.id,url:t.url};this.setState(t=>({...t,favicon:e})),this.updatePost()},allowedTypes:["image"],value:e.id,render:({open:t})=>U.a.createElement("div",{"data-editor-component":"inspector-controls--image-uploader"},e.url&&U.a.createElement("img",{onClick:t,src:e.url}),U.a.createElement("span",null,U.a.createElement(ri,{onClick:t,isDefault:!0},e.id?Qe("Replace icon","coming-soon-blocks"):Qe("Add icon","coming-soon-blocks"))))}))),this.showPasswordProtectedOptions()&&U.a.createElement(ci,{title:Qe("PASSWORD PROTECTED","coming-soon-blocks"),initialOpen:!1},U.a.createElement(hi,{className:""},U.a.createElement(R,{plan:"starter"},U.a.createElement("div",{"data-editor-component":"color-palette-base-control"},U.a.createElement("label",null,Qe("Button Background","coming-soon-blocks")," ",U.a.createElement(ui,{colorValue:n})),U.a.createElement(pi,{colors:f,value:n,onChange:t=>this.setState(e=>({...e,unlock_button_color:t}),this.updatePost())}))))),U.a.createElement(ci,{title:Qe("ADVANCED","coming-soon-blocks"),initialOpen:!1},U.a.createElement(hi,{className:""},U.a.createElement(di,{label:Qe("Show Some Love","coming-soon-blocks"),help:Qe("Please help others learn about this free plugin by placing a small link in the footer. Thank you very much!","coming-soon-blocks"),checked:i,onChange:t=>this.setState(e=>({...e,pluginBrand:t}),this.updatePost())}))))))}});ai(mi,{icon:U.a.createElement(function(){return U.a.createElement(gi,{className:"look-and-feel-button",v:"2"})},null),render:()=>U.a.createElement(bi,null)})},,function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){}]);
1
+ !function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=30)}([function(t,e){t.exports=React},function(t,e,i){var n,o;!function(a,s){n=[i(9)],void 0===(o=function(t){return function(t,e){"use strict";var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){var o=[];return(t=i.makeArray(t)).forEach(function(t){if(t instanceof HTMLElement)if(n){e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),a=0;a<i.length;a++)o.push(i[a])}else o.push(t)}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,a=this;this[o]=setTimeout(function(){n.apply(a,e),delete a[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var a=i.toDashed(n),s="data-"+a,r=document.querySelectorAll("["+s+"]"),l=document.querySelectorAll(".js-"+a),c=i.makeArray(r).concat(i.makeArray(l)),d=s+"-options",p=t.jQuery;c.forEach(function(t){var i,a=t.getAttribute(s)||t.getAttribute(d);try{i=a&&JSON.parse(a)}catch(e){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+e))}var r=new e(t,i);p&&p.data(t,n,r)})})},i}(a,t)}.apply(e,n))||(t.exports=o)}(window)},function(t,e,i){var n,o;!function(a,s){n=[i(3),i(4),i(1),i(10),i(11),i(12)],void 0===(o=function(t,e,i,n,o,s){return function(t,e,i,n,o,a,s){"use strict";var r=t.jQuery,l=t.getComputedStyle,c=t.console;function d(t,e){for(t=n.makeArray(t);t.length;)e.appendChild(t.shift())}var p=0,h={};function u(t,e){var i=n.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var o=h[this.element.flickityGUID];return o.option(e),o}r&&(this.$element=r(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),this._create()}else c&&c.error("Bad element for Flickity: "+(i||t))}u.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},u.createMethods=[];var m=u.prototype;n.extend(m,e.prototype),m._create=function(){var e=this.guid=++p;for(var i in this.element.flickityGUID=e,h[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this),this.options.on){var n=this.options.on[i];this.on(i,n)}u.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},m.option=function(t){n.extend(this.options,t)},m.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();var t,e=this._filterFindCellElements(this.element.children);d(e,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate");var i=this.options.initialIndex;t=this.isInitActivated?this.selectedIndex:void 0!==i&&this.cells[i]?i:0,this.select(t,!1,!0),this.isInitActivated=!0,this.dispatchEvent("ready")}},m._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},m._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},m.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},m._makeCells=function(t){var e=this._filterFindCellElements(t),i=e.map(function(t){return new o(t,this)},this);return i},m.getLastCell=function(){return this.cells[this.cells.length-1]},m.getLastSlide=function(){return this.slides[this.slides.length-1]},m.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},m._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,o=t;o<n;o++){var a=this.cells[o];a.setPosition(e),e+=a.size.outerWidth,this.maxCellHeight=Math.max(a.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},m._sizeCells=function(t){t.forEach(function(t){t.getSize()})},m.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new a(this);this.slides.push(t);var e="left"==this.originSide,i=e?"marginRight":"marginLeft",n=this._getCanCellFit();this.cells.forEach(function(e,o){if(t.cells.length){var s=t.outerWidth-t.firstMargin+(e.size.outerWidth-e.size[i]);n.call(this,o,s)?t.addCell(e):(t.updateTarget(),t=new a(this),this.slides.push(t),t.addCell(e))}else t.addCell(e)},this),t.updateTarget(),this.updateSelectedSlide()}},m._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},m._init=m.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},m.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};m.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},m.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},m._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},m._getGapCells=function(t,e,i){for(var n=[];t>0;){var o=this.cells[e];if(!o)break;n.push(o),e+=i,t-=o.size.outerWidth}return n},m._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],o=n<this.size.innerWidth,a=this.cursorPosition+this.cells[0].size[e],s=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){o?t.target=n*this.cellAlign:(t.target=Math.max(t.target,a),t.target=Math.min(t.target,s))},this)}},m.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),r&&this.$element){var o=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var a=r.Event(e);a.type=t,o=a}this.$element.trigger(o,i)}},m.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=n.modulo(t,this.slides.length)),this.slides[t])){var o=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=o&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},m._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&e>1))return t;var i=n.modulo(t,e),o=Math.abs(i-this.selectedIndex),a=Math.abs(i+e-this.selectedIndex),s=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&a<o?t+=e:!this.isDragSelect&&s<o&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},m.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},m.next=function(t,e){this.select(this.selectedIndex+1,t,e)},m.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},m.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},m.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var o=this.getCellSlideIndex(n);this.select(o,e,i)}},m.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++)if(-1!=this.slides[e].cells.indexOf(t))return e},m.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},m.getCells=function(t){var e=[];return(t=n.makeArray(t)).forEach(function(t){var i=this.getCell(t);i&&e.push(i)},this),e},m.getCellElements=function(){return this.cells.map(function(t){return t.element})},m.getParentCell=function(t){var e=this.getCell(t);return e||(t=n.getParent(t,".flickity-slider > *"),this.getCell(t))},m.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var o=[],a=e-t;a<=e+t;a++){var s=this.options.wrapAround?n.modulo(a,i):a,r=this.slides[s];r&&(o=o.concat(r.getCellElements()))}return o},m.queryCell=function(t){return"number"==typeof t?this.cells[t]:("string"==typeof t&&(t=this.element.querySelector(t)),this.getCell(t))},m.uiChange=function(){this.emitEvent("uiChange")},m.childUIPointerDown=function(t){this.emitEvent("childUIPointerDown",[t])},m.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(u,"onresize",150),m.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},m.watchCSS=function(){this.options.watchCSS&&(-1!=l(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},m.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=u.keyboardHandlers[t.keyCode];i&&i.call(this)}},u.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},m.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&t.scrollTo(t.pageXOffset,e)},m.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),d(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},m.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.emitEvent("destroy"),r&&this.$element&&r.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete h[this.guid]},n.extend(m,s),u.data=function(t){var e=(t=n.getQueryElement(t))&&t.flickityGUID;return e&&h[e]},n.htmlInit(u,"flickity"),r&&r.bridget&&r.bridget("flickity",u);return u.setJQuery=function(t){r=t},u.Cell=o,u}(a,t,e,i,n,o,s)}.apply(e,n))||(t.exports=o)}(window)},function(t,e,i){var n,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var a=i[o];n&&n[a]&&(this.off(t,a),delete n[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?n.call(e,i,e,t):n)||(t.exports=o)},function(t,e,i){var n,o;
2
  /*!
3
  * getSize v2.0.3
4
  * measure size of elements
5
  * MIT license
6
+ */window,void 0===(o="function"==typeof(n=function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],n=i.length;function o(t){var i=getComputedStyle(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var a,s=!1;function r(e){if(function(){if(!s){s=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);a=200==Math.round(t(n.width)),r.isBoxSizeOuter=a,i.removeChild(e)}}(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var l=o(e);if("none"==l.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<n;e++){var o=i[e];t[o]=0}return t}();var c={};c.width=e.offsetWidth,c.height=e.offsetHeight;for(var d=c.isBorderBox="border-box"==l.boxSizing,p=0;p<n;p++){var h=i[p],u=l[h],m=parseFloat(u);c[h]=isNaN(m)?0:m}var g=c.paddingLeft+c.paddingRight,f=c.paddingTop+c.paddingBottom,v=c.marginLeft+c.marginRight,y=c.marginTop+c.marginBottom,b=c.borderLeftWidth+c.borderRightWidth,E=c.borderTopWidth+c.borderBottomWidth,k=d&&a,x=t(l.width);!1!==x&&(c.width=x+(k?0:g+b));var w=t(l.height);return!1!==w&&(c.height=w+(k?0:f+E)),c.innerWidth=c.width-(g+b),c.innerHeight=c.height-(f+E),c.outerWidth=c.width+v,c.outerHeight=c.height+y,c}}return r})?n.call(e,i,e,t):n)||(t.exports=o)},function(t,e,i){var n,o;
7
  /*!
8
  * Unipointer v2.3.0
9
  * base class for doing one thing with pointer event
25
  * listens to taps
26
  * MIT license
27
  */
28
+ !function(a,s){n=[i(5)],void 0===(o=function(t){return function(t,e){"use strict";function i(t){this.bindTap(t)}var n=i.prototype=Object.create(e.prototype);return n.bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},n.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},n.pointerUp=function(i,n){if(!this.isIgnoringMouseUp||"mouseup"!=i.type){var o=e.getPointerPoint(n),a=this.tapElement.getBoundingClientRect(),s=t.pageXOffset,r=t.pageYOffset;if(o.x>=a.left+s&&o.x<=a.right+s&&o.y>=a.top+r&&o.y<=a.bottom+r&&this.emitEvent("tap",[i,n]),"mouseup"!=i.type){this.isIgnoringMouseUp=!0;var l=this;setTimeout(function(){delete l.isIgnoringMouseUp},400)}}},n.destroy=function(){this.pointerDone(),this.unbindTap()},i}(a,t)}.apply(e,n))||(t.exports=o)}(window)},function(t){t.exports=[{name:"pixelthrone/comingsoon--temp-01",slug:"temp-01",thumb:{name:"01",img:"/admin/blocks/_available/temp-01/media/thumb.jpg"},script:"",render_callback:!0},{name:"pixelthrone/comingsoon--temp-03",slug:"temp-03",thumb:{name:"03",img:"/admin/blocks/_available/temp-03/media/thumb.jpg"},script:"",render_callback:!0},{name:"pixelthrone/comingsoon--temp-04",slug:"temp-04",thumb:{name:"04",img:"/admin/blocks/_available/temp-04/media/thumb.jpg"},script:"",render_callback:!0},{name:"pixelthrone/comingsoon--temp-05",slug:"temp-05",thumb:{name:"05",img:"/admin/blocks/_available/temp-05/media/thumb.jpg"},script:"",render_callback:!0},{name:"pixelthrone/comingsoon--temp-02",slug:"temp-02",thumb:{name:"02",img:"/admin/blocks/_available/temp-02/media/thumb.jpg"},script:"",render_callback:!0}]},function(t,e,i){var n,o,a;
29
  /*!
30
  * Flickity v2.1.2
31
  * Touch, responsive, flickable carousels
46
  * Draggable base class
47
  * MIT license
48
  */
49
+ !function(a,s){n=[i(5)],void 0===(o=function(t){return function(t,e){"use strict";function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){for(var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",o=0;o<this.handles.length;o++){var a=this.handles[o];this._bindStartEvent(a,e),a[i]("click",this),t.PointerEvent&&(a.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){var i=this.okayPointerDown(t);i&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var o={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},a={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=o[t.target.nodeName],i=a[t.target.type],n=!e||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}(a,t)}.apply(e,n))||(t.exports=o)}(window)},function(t,e,i){var n,o;window,n=[i(2),i(6),i(1)],void 0===(o=function(t,e,i){return function(t,e,i,n){"use strict";var o="http://www.w3.org/2000/svg";function a(t,e){this.direction=t,this.parent=e,this._create()}a.prototype=Object.create(i.prototype),a.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},a.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},a.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),this.element.removeEventListener("click",this)},a.prototype.createSVG=function(){var t=document.createElementNS(o,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(o,"path"),i=function(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},a.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},a.prototype.handleEvent=n.handleEvent,a.prototype.onclick=function(t){var e=document.activeElement;e&&e==this.element&&this.onTap(t,t)},a.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},a.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},a.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e,n=this.parent.selectedIndex==i?"disable":"enable";this[n]()}},a.prototype.destroy=function(){this.deactivate()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var s=e.prototype;return s._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new a(-1,this),this.nextButton=new a(1,this),this.on("activate",this.activatePrevNextButtons))},s.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},s.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=a,e}(0,t,e,i)}.apply(e,n))||(t.exports=o)},function(t,e,i){var n,o;window,n=[i(2),i(6),i(1)],void 0===(o=function(t,e,i){return function(t,e,i,n){"use strict";function o(t){this.parent=t,this._create()}o.prototype=new i,o.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},o.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},o.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,o=n+t,a=n;a<o;a++){var s=document.createElement("li");s.className="dot",s.setAttribute("aria-label","Page dot "+(a+1)),e.appendChild(s),i.push(s)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},o.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)},o.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},o.prototype.onTap=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},o.prototype.destroy=function(){this.deactivate()},e.PageDots=o,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var a=e.prototype;return a._createPageDots=function(){this.options.pageDots&&(this.pageDots=new o(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},a.activatePageDots=function(){this.pageDots.activate()},a.updateSelectedPageDots=function(){this.pageDots.updateSelected()},a.updatePageDots=function(){this.pageDots.setDots()},a.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=o,e}(0,t,e,i)}.apply(e,n))||(t.exports=o)},function(t,e,i){var n,o;window,n=[i(3),i(1),i(2)],void 0===(o=function(t,e,i){return function(t,e,i){"use strict";function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){if("playing"!=this.state){var t=document.hidden;t?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick())}},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var o=i.prototype;return o._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},o.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},o.playPlayer=function(){this.player.play()},o.stopPlayer=function(){this.player.stop()},o.pausePlayer=function(){this.player.pause()},o.unpausePlayer=function(){this.player.unpause()},o.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},o.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},o.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}(t,e,i)}.apply(e,n))||(t.exports=o)},function(t,e,i){var n,o;window,n=[i(2),i(1)],void 0===(o=function(t,e){return function(t,e,i){"use strict";var n=e.prototype;return n.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var n=this.cells.length;e=void 0===e?n:e;var o=function(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}(i),a=e==n;if(a)this.slider.appendChild(o);else{var s=this.cells[e].element;this.slider.insertBefore(o,s)}if(0===e)this.cells=i.concat(this.cells);else if(a)this.cells=this.cells.concat(i);else{var r=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(r)}this._sizeCells(i),this.cellChange(e,!0)}},n.append=function(t){this.insert(t,this.cells.length)},n.prepend=function(t){this.insert(t,0)},n.remove=function(t){var e=this.getCells(t);if(e&&e.length){var n=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);n=Math.min(e,n),i.removeFrom(this.cells,t)},this),this.cellChange(n,!0)}},n.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},n.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}(0,t,e)}.apply(e,n))||(t.exports=o)},function(t,e,i){var n,o;window,n=[i(2),i(1)],void 0===(o=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createLazyload");var n=e.prototype;function o(t,e){this.img=t,this.flickity=e,this.load()}return n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,n=[];this.getAdjacentCellElements(e).forEach(function(t){var e=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),n=t.getAttribute("data-flickity-lazyload-src"),o=t.getAttribute("data-flickity-lazyload-srcset");if(e||n||o)return[t]}var a=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(a)}(t);n=n.concat(e)}),n.forEach(function(t){new o(t,this)},this)}},o.prototype.handleEvent=i.handleEvent,o.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},o.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},o.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},o.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=o,e}(0,t,e)}.apply(e,n))||(t.exports=o)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=i(0),a=p(o),s=i(22),r=p(i(8)),l=p(i(23)),c=i(24),d=p(i(25));function p(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.state={flickityReady:!1},i.carousel=null,i.flkty=null,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.Component),n(e,[{key:"componentDidUpdate",value:function(t,e){var i=this.props,n=i.children,o=i.options,a=o.draggable,s=o.initialIndex,r=i.reloadOnUpdate,l=this.state.flickityReady;r||!e.flickityReady&&l?(this.flkty.deactivate(),this.flkty.selectedIndex=s||0,this.flkty.options.draggable=void 0===a?!!n&&n.length>1:a,this.flkty.activate()):this.flkty.reloadCells()}},{key:"componentDidMount",value:function(){var t=this;if(!c.canUseDOM)return null;var e=this.props,i=e.disableImagesLoaded,n=e.flickityRef,o=e.options,a=this.carousel;this.flkty=new r.default(a,o);var s=function(){return t.setState({flickityReady:!0})};i?s():(0,l.default)(a,s),n&&n(this.flkty)}},{key:"renderPortal",value:function(){if(!this.carousel)return null;var t=this.carousel.querySelector(".flickity-slider");return t?(0,s.createPortal)(this.props.children,t):void 0}},{key:"render",value:function(){var t=this;return a.default.createElement(this.props.elementType,{className:this.props.className,ref:function(e){t.carousel=e}},this.renderPortal())}}]),e}();h.propTypes={disableImagesLoaded:d.default.bool,reloadOnUpdate:d.default.bool,options:d.default.object,className:d.default.string,elementType:d.default.string,children:d.default.array,flickityRef:d.default.func},h.defaultProps={disableImagesLoaded:!1,reloadOnUpdate:!1,options:{},className:"",elementType:"div"},e.default=h,t.exports=e.default},function(t,e){const{unregisterPlugin:i,getPlugins:n}=wp.plugins,o=["edit-post","pixelthrone--comingsoonblocks-templates","pixelthrone--comingsoonblocks-seo","pixelthrone--comingsoonblocks-settings","pixelthrone--comingsoonblocks-look-and-feel"];window.onload=function(){n().forEach(function(t){-1===o.indexOf(t.name)&&i(t.name)})}},function(t,e){t.exports=ReactDOM},function(t,e,i){var n,o;
50
  /*!
51
  * imagesLoaded v4.1.4
52
  * JavaScript is all like "You images are done yet or what?"
57
  * JavaScript is all like "You images are done yet or what?"
58
  * MIT License
59
  */
60
+ !function(a,s){"use strict";n=[i(3)],void 0===(o=function(t){return function(t,e){var i=t.jQuery,n=t.console;function o(t,e){for(var i in e)t[i]=e[i];return t}var a=Array.prototype.slice;function s(t,e,r){if(!(this instanceof s))return new s(t,e,r);var l=t;"string"==typeof t&&(l=document.querySelectorAll(t)),l?(this.elements=function(t){if(Array.isArray(t))return t;if("object"==typeof t&&"number"==typeof t.length)return a.call(t);return[t]}(l),this.options=o({},this.options),"function"==typeof e?r=e:o(this.options,e),r&&this.on("always",r),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(l||t))}s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&r[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(n=0;n<a.length;n++){var s=a[n];this.addElementBackgroundImages(s)}}}};var r={1:!0,9:!0,11:!0};function l(t){this.img=t}function c(t,e){this.url=t,this.element=e,this.img=new Image}return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},s.prototype.addBackground=function(t,e){var i=new c(t,e);this.images.push(i)},s.prototype.check=function(){var t=this;function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},s.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&n&&n.log("progress: "+i,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},l.prototype=Object.create(e.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(i(this))})},s.makeJQueryPlugin(),s}(a,t)}.apply(e,n))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,i){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=o},function(t,e,i){t.exports=i(26)()},function(t,e,i){"use strict";var n=i(27);function o(){}t.exports=function(){function t(t,e,i,o,a,s){if(s!==n){var r=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 r.name="Invariant Violation",r}}function e(){return t}t.isRequired=t;var i={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return i.checkPropTypes=o,i.PropTypes=i,i}},function(t,e,i){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,function(t,e,i){"use strict";i.r(e);i(32),i(33);var n=i(7);const{getBlockTypes:o,unregisterBlockType:a}=wp.blocks;let s=n.map(t=>t.name);document.addEventListener("DOMContentLoaded",()=>{o().forEach(function(t){-1===s.indexOf(t.name)&&a(t.name)})},!1);i(21),i(34),i(35);const{MediaUpload:r}=wp.editor;var l=({onSelect:t,allowedMediaTypes:e,logoAttrs:i,style:n,align:o})=>React.createElement(r,{onSelect:t,allowedTypes:e,value:i.id,render:({open:t})=>React.createElement("button",{"data-editor-component":"brand-uploader",onClick:t,className:`-${o}-align`},React.createElement("i",{className:"dashicons dashicons-edit"}),React.createElement("img",{style:n,src:i.url}))});const c="AIzaSyD2YQ4A9FpunpkJ0FqxYueSsi7f2SYpmBg",d=[{name:"Color",color:"#FFFFFF"},{name:"Color",color:"#E3E3E3"},{name:"Color",color:"#7F8688"},{name:"Color",color:"#929D9E"},{name:"Color",color:"#0A0A0A"},{name:"Color",color:"#18181E"},{name:"Color",color:"#32064A"},{name:"Color",color:"#DEC79B"},{name:"Color",color:"#FDD935"},{name:"Color",color:"#B3E3B5"},{name:"Color",color:"#7ED5EA"},{name:"Color",color:"#FB8122"},{name:"Color",color:"#FB9985"}],p=[{label:"Select",value:""},{label:"Facebook",value:"facebook"},{label:"digg",value:"digg"},{label:"Dribbble",value:"dribbble"},{label:"Envato",value:"envato"},{label:"Etsy",value:"etsy"},{label:"Friendfeed",value:"friendfeed"},{label:"Github",value:"github"},{label:"Google Plus",value:"googleplus"},{label:"Instagram",value:"instagram"},{label:"LinkedIn",value:"linkedin"},{label:"Mail",value:"mail"},{label:"Medium",value:"medium"},{label:"Meetup",value:"meetup"},{label:"Mixcloud",value:"mixcloud"},{label:"npm",value:"npm"},{label:"Pinterest",value:"pinterest"},{label:"PayPal",value:"paypal"},{label:"Reddit",value:"reddit"},{label:"RSS",value:"rss"},{label:"TripAdvisor",value:"tripadvisor"},{label:"Twitch",value:"twitch"},{label:"Twitter",value:"twitter"},{label:"Vimeo",value:"vimeo"},{label:"WhatSapp",value:"whatsapp"},{label:"WordPress",value:"wordpress"},{label:"Youtube",value:"youtube"},{label:"Messenger",value:"messenger"},{label:"Bitbucket",value:"bitbucket"},{label:"Google Maps",value:"googlemaps"},{label:"Codepen",value:"codepen"}],h={PLAN_NAME:0,starter:1,professional:2,business:3},u=csblocks.license;function m(t,e){if(""===t||void 0===t||!1===t)return e;("string"==typeof t||t instanceof String)&&(t=JSON.parse(t));for(const i in e)t.hasOwnProperty(i)||(t[i]=e[i]);return t}function g(t){return h[u.plan]>=h[t]}function f(t){return"array"==typeof t?0===t.length:!t||0===Object.keys(t).length}const{__:v}=wp.i18n,{Component:y}=wp.element,{IconButton:b,MenuItem:E,Dropdown:k,SelectControl:x}=wp.components;var w=class extends y{constructor({attributes:t}){super(...arguments),this.update=this.update.bind(this),this.addIcon=this.addIcon.bind(this),this.removeIcon=this.removeIcon.bind(this);let e=[];JSON.parse(this.props.networks).filter(t=>{t&&e.push(t)}),this.state={networks:e}}update(t,e,i){let n=this.state.networks;"icon"===i?n[t].icon=e:n[t].url=e,this.setState(t=>({networks:n})),this.props.setNetworks(JSON.stringify(n))}addIcon(t){t.preventDefault();let e=this.state.networks;e.push({url:"https://",icon:""}),this.setState(t=>({networks:e}))}removeIcon(t){t.preventDefault();const e=t.currentTarget.dataset.index;let i=[];this.state.networks.filter((t,n)=>{Number(e)!==Number(n)&&i.push(t)}),this.setState(t=>({networks:i})),this.props.setNetworks(JSON.stringify(i))}render(){const{networks:t}=this.state,{position:e}=this.props;return React.createElement("div",{"data-component":"social-icons"},t&&t.map(({url:t,icon:i},n)=>React.createElement(k,{key:n,className:"editor-block-social-icons-menu__control",contentClassName:"editor-block-social-icons-menu__content",position:e,renderToggle:({isOpen:t,onToggle:e})=>React.createElement("a",{href:"#",onClick:e,className:`-icon -${i||"empty"} -isOpen--${t}`},i?React.createElement("i",{className:`socicon-${i}`}):React.createElement("i",{className:"dashicons dashicons-edit"})),renderContent:()=>React.createElement("div",null,React.createElement(x,{label:v("Network","coming-soon-blocks"),value:i,onChange:t=>this.update(n,t,"icon"),options:p}),React.createElement("label",{className:"components-base-control__label"},v("Link","coming-soon-blocks")),React.createElement("input",{className:"components-text-control__input",type:"text",defaultValue:t,placeholder:"https://",onBlur:t=>this.update(n,t.currentTarget.value,"url")}),React.createElement("div",{className:"editor-block-settings-menu__separator"}),React.createElement(E,{className:"editor-block-settings-menu__control","data-index":n,onClick:this.removeIcon,icon:"trash"},v("Remove","coming-soon-blocks")))})),React.createElement(b,{icon:"plus",label:v("Add Button","coming-soon-blocks"),onClick:this.addIcon,"data-empty":f(t)}))}};const{__:S,sprintf:C}=wp.i18n;var T=({children:t,plan:e})=>{if(g(e))return t;{const i=C(S("This is a %s feature","coming-soon-blocks"),`<i>${e}</i>`);return React.createElement("span",{"data-component":"is-premium","data-plan":e},React.createElement("p",{className:"feature-label-notice",dangerouslySetInnerHTML:{__html:i}}),t)}};const{__:_}=wp.i18n,{Component:P,Fragment:R}=wp.element,{MediaUpload:N}=wp.editor,{IconButton:D,ColorPalette:O,ColorIndicator:A}=wp.components;var I=class extends P{constructor({attributes:t}){super(...arguments),this.state=JSON.parse(this.props.attributes),this.uploadBgImage=this.uploadBgImage.bind(this),this.uploadBgGallery=this.uploadBgGallery.bind(this),this.uploadBgVideo=this.uploadBgVideo.bind(this),this.uploadBgColor=this.uploadBgColor.bind(this),this.updateTab=this.updateTab.bind(this)}uploadBgImage(t){const{updateAttributes:e}=this.props;let i=this.state;i.image={id:t.id,full:t.sizes.full.url,thumb:t.sizes.medium.url},this.setState(i),e(JSON.stringify(i))}uploadBgGallery(t){const{updateAttributes:e}=this.props;let i=this.state;const n=t.map(t=>({id:t.id,full:t.sizes.full.url,thumb:t.sizes.medium.url}));i.gallery=n,this.setState(i),e(JSON.stringify(i))}uploadBgVideo(t){const{updateAttributes:e}=this.props;let i=this.state;i.video={id:t.id,url:t.url,filename:t.filename},this.setState(i),e(JSON.stringify(i))}uploadBgColor(t){const{updateAttributes:e}=this.props;let i=this.state;i.color=t,this.setState(i),e(JSON.stringify(i))}updateTab(t){const{updateAttributes:e}=this.props;let i=this.state;i.type=t,this.setState(i),e(JSON.stringify(i))}render(){const{gallery:t,color:e,type:i,image:n,video:o}=this.state,a=!!t.length&&t.map(({id:t})=>t);return React.createElement("div",{"data-editor-component":"background"},React.createElement("label",null,_("Background","coming-soon-blocks")),React.createElement("div",{className:"tabs-menu"},React.createElement(D,{icon:"admin-customizer",label:_("Solid Color","coming-soon-blocks"),"data-active":"color"===i?"true":"",onClick:t=>this.updateTab("color")}),React.createElement(D,{icon:"format-image",label:_("Image","coming-soon-blocks"),"data-active":"image"===i?"true":"",onClick:t=>this.updateTab("image")}),React.createElement(D,{icon:"format-gallery",label:_("Gallery","coming-soon-blocks"),"data-active":"gallery"===i?"true":"",onClick:t=>this.updateTab("gallery")}),React.createElement(D,{icon:"format-video",label:_("Video","coming-soon-blocks"),"data-active":"video"===i?"true":"",onClick:t=>this.updateTab("video")})),React.createElement("div",{className:"tabs-content"},"color"===i&&React.createElement(R,null,React.createElement("label",{className:"single-field-label"},_("Color","coming-soon-blocks")," ",React.createElement(A,{colorValue:e})),React.createElement(O,{colors:d,value:e,onChange:this.uploadBgColor})),"image"===i&&React.createElement(N,{onSelect:this.uploadBgImage,allowedTypes:["image"],value:n.id,render:({open:t})=>React.createElement(R,null,React.createElement("label",{className:"single-field-label"},_("Image","coming-soon-blocks")),f(n)||""===n.id?null:React.createElement(R,null,React.createElement(D,{"data-editor-component":"panel-uploader-placeholder","data-mode":"replace",icon:"edit",label:_("Change Image","coming-soon-blocks"),onClick:t},React.createElement("img",{src:n.thumb}))),f(n)||""===n.id?React.createElement(D,{"data-editor-component":"panel-uploader-placeholder","data-mode":"upload",icon:"upload",label:_("Upload Image","coming-soon-blocks"),onClick:t}):null)}),"gallery"===i&&React.createElement(T,{plan:"starter"},React.createElement(N,{onSelect:this.uploadBgGallery,multiple:!0,gallery:!0,allowedTypes:["image"],value:a,render:({open:e})=>React.createElement(R,null,React.createElement("label",{className:"single-field-label"},_("Gallery","coming-soon-blocks")),a.length?React.createElement(D,{"data-editor-component":"panel-uploader-placeholder","data-mode":"replace",icon:"edit",label:_("Change Gallery","coming-soon-blocks"),onClick:e},React.createElement("div",{"data-count":t.length},t.map(({thumb:t,id:e})=>React.createElement("span",null,React.createElement("img",{src:t}))))):null,a.length?null:React.createElement(D,{"data-editor-component":"panel-uploader-placeholder","data-mode":"upload",icon:"upload",label:_("Upload Image","coming-soon-blocks"),onClick:e}))})),"video"===i&&React.createElement(T,{plan:"starter"},React.createElement(N,{onSelect:this.uploadBgVideo,allowedTypes:["video/mp4","video/ogg","video/webm"],value:o.length?o.id:"",render:({open:t})=>React.createElement(R,null,React.createElement("label",{className:"single-field-label"},_("Video")," ",o.id&&`(${o.filename})`),o.id&&React.createElement(D,{"data-editor-component":"panel-uploader-placeholder","data-mode":"replace",icon:"edit",label:_("Change Video","coming-soon-blocks"),onClick:t},React.createElement("video",{muted:!0,src:o.url})),!o.id&&React.createElement(D,{"data-editor-component":"panel-uploader-placeholder","data-mode":"upload",icon:"upload",label:_("Upload Video","coming-soon-blocks"),onClick:t}))}),React.createElement("br",null),React.createElement(N,{onSelect:this.uploadBgImage,allowedTypes:["image"],value:n.id,render:({open:t})=>React.createElement(R,null,React.createElement("label",{className:"single-field-label"},_("Poster","coming-soon-blocks")),f(n)||""===n.id?null:React.createElement(D,{"data-editor-component":"panel-uploader-placeholder","data-mode":"replace",icon:"edit",label:_("Change Image","coming-soon-blocks"),onClick:t},React.createElement("img",{src:n.thumb})),f(n)||""===n.id?React.createElement(D,{"data-editor-component":"panel-uploader-placeholder","data-mode":"upload",icon:"upload",label:_("Upload Image","coming-soon-blocks"),onClick:t}):null)}),React.createElement("p",{"data-editor-component":"help-notice"},_("Specifies an image to be shown while the video is downloading, or until the user hits the play button.","coming-soon-blocks")))))}},L=i(0),M=i.n(L);function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function W(t,e,i){return e&&F(t.prototype,e),i&&F(t,i),t}function $(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=[],n=!0,o=!1,a=void 0;try{for(var s,r=t[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==r.return||r.return()}finally{if(o)throw a}}return i}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function U(t){return t.family.replace(/\s+/g,"-").toLowerCase()}function J(t,e,i){var n="https://fonts.googleapis.com/css?family=";n+=t.family.replace(/ /g,"+"),n+=":".concat(e[0]);for(var o=1;o<e.length;o+=1)n+=",".concat(e[o]);if(!0===i){var a=t.family;a=(a=a.replace(/\s+/g,"")).split("").filter(function(t,e,i){return i.indexOf(t)===e}).join(""),n+="&text=".concat(a)}return n}function j(t,e,i,n){var o=J(t,i,!1),a=document.createElement("link");a.rel="stylesheet",a.href=o,a.id="font-full-".concat(e),n&&(a.onload=function(){n(t)}),document.head.appendChild(a)}function H(t,e,i){var n=U(t);document.getElementById("font-preview-".concat(n))?(document.getElementById("font-preview-".concat(n)).outerHTML="",j(t,n,e,i)):document.getElementById("font-full-".concat(n))?i&&i(t):j(t,n,e,i)}function V(t,e){var i=U(t);document.getElementById("font-full-".concat(i))||function(t,e,i){var n=J(t,i,!0),o=document.createElement("link");o.rel="stylesheet",o.href=n,o.id="font-preview-".concat(e),document.head.appendChild(o)}(t,i,e)}var G=function(){function t(e,i,n){z(this,t),this.pickerSuffix=""!==e?"-".concat(e):"",this.stylesheetId="font-selectors".concat(this.pickerSuffix),this.determineFontVariants(n);var o=document.getElementById(this.stylesheetId);o?this.stylesheet=o:this.initStylesheet(i)}return W(t,[{key:"determineFontVariants",value:function(t){var e=t[0].split(/(\d+)/).filter(Boolean);if(1===e.length)if("regular"===e[0]||"italic"===e[0]){var i=$(e,1);this.fontStyle=i[0],this.fontWeight="400"}else{this.fontStyle="regular";var n=$(e,1);this.fontWeight=n[0]}else if(2===e.length){var o=$(e,2);this.fontWeight=o[0],this.fontStyle=o[1]}}},{key:"initStylesheet",value:function(t){this.stylesheet=document.createElement("style"),this.stylesheet.id=this.stylesheetId,this.stylesheet.rel="stylesheet",this.stylesheet.type="text/css";var e="\n\t\t\t.apply-font".concat(this.pickerSuffix,' {\n\t\t\t\tfont-family: "').concat(t.family,'";\n\t\t\t\tfont-style: ').concat(this.fontStyle,";\n\t\t\t\tfont-weight: ").concat(this.fontWeight,";\n\t\t\t}\n\t\t");this.stylesheet.appendChild(document.createTextNode(e)),document.head.appendChild(this.stylesheet)}},{key:"applyPreviewStyle",value:function(t){var e=t.family.replace(/\s+/g,"-").toLowerCase(),i="\n\t\t\t.font-".concat(e).concat(this.pickerSuffix,' {\n\t\t\t\tfont-family: "').concat(t.family,'";\n\t\t\t\tfont-style: ').concat(this.fontStyle,";\n\t\t\t\tfont-weight: ").concat(this.fontWeight,";\n\t\t\t}\n\t\t");this.stylesheet.appendChild(document.createTextNode(i))}},{key:"changeActiveStyle",value:function(t,e){var i="handwriting"===t.category?"cursive":t.category,n="\n\t\t\t.apply-font".concat(this.pickerSuffix,' {\n\t\t\t\tfont-family: "').concat(t.family,'", "').concat(e,'", ').concat(i,";\n\t\t\t\tfont-style: ").concat(this.fontStyle,";\n\t\t\t\tfont-weight: ").concat(this.fontWeight,";\n\t\t\t}\n\t\t");this.stylesheet.replaceChild(document.createTextNode(n),this.stylesheet.childNodes[0])}}]),t}(),q=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;z(this,t),t.validateParameters(e,i,n,o);var a=i||"Open Sans",s=t.setDefaultOptions(n);this.apiKey=e,this.onChange=o,this.options=s,this.activeFont={family:a,variants:"regular"},this.fonts=[],this.previewIndex=0,H(this.activeFont,this.options.variants),this.styleManager=new G(this.options.name,this.activeFont,this.options.variants)}return W(t,null,[{key:"validateParameters",value:function(t,e,i,n){if(!t||"string"!=typeof t)throw Error("apiKey parameter is not a string or missing");if(e&&"string"!=typeof e)throw Error("defaultFont parameter is not a string");if("object"!==B(i))throw Error("options parameter is not an object");if(i.name){if("string"!=typeof i.name)throw Error("options.name parameter is not a string");if(i.name.match(/[^0-9a-z]/i))throw Error("options.name may only contain letters and digits")}if(i.families&&!(i.families instanceof Array))throw Error("options.families parameter is not an array");if(i.categories&&!(i.categories instanceof Array))throw Error("options.categories parameter is not an array");if(i.variants&&!(i.variants instanceof Array))throw Error("options.variants parameter is not an array");if(i.limit&&"number"!=typeof i.limit)throw Error("options.limit parameter is not a number");if(i.sort&&"string"!=typeof i.sort)throw Error("options.sort parameter is not a string");if(n&&"function"!=typeof n)throw Error("onChange is not a function")}},{key:"setDefaultOptions",value:function(t){var e=t;return t.name||(e.name=""),t.limit||(e.limit=100),t.variants||(e.variants=["regular"]),t.sort||(e.sort="alphabetical"),e}}]),W(t,[{key:"init",value:function(){var t=this;return function(t){return new Promise(function(e,i){var n="https://www.googleapis.com/webfonts/v1/webfonts?sort=popularity&key=".concat(t),o=new XMLHttpRequest;o.overrideMimeType("application/json"),o.open("GET",n,!0),o.onreadystatechange=function(){if(4===o.readyState){if(200!==o.status)return i(new Error("Response has status code ".concat(o.status)));var t=JSON.parse(o.responseText);return e(t.items)}},o.send()})}(this.apiKey).then(function(e){t.fonts=function(t,e,i){var n=t;return i.families&&(n=n.filter(function(t){return i.families.includes(t.family)})),i.categories&&(n=n.filter(function(t){return i.categories.includes(t.category)})),i.variants&&(n=n.filter(function(t){for(var e=0;e<i.variants.length;e+=1)if(-1===t.variants.indexOf(i.variants[e]))return!1;return!0})),i.limit&&(n=n.slice(0,i.limit)),0===n.filter(function(t){return t.family===e.family}).length&&(n.unshift(e),i.limit&&n.pop()),"alphabetical"===i.sort&&(n=n.sort(function(t,e){return t.family.localeCompare(e.family)})),n}(e,t.activeFont,t.options),t.downloadPreviews(10)})}},{key:"downloadPreviews",value:function(t){var e;e=t>this.fonts.length?this.fonts.length:t;for(var i=this.previewIndex;i<e;i+=1)this.styleManager.applyPreviewStyle(this.fonts[i]),V(this.fonts[i],this.options.variants);e>this.previewIndex&&(this.previewIndex=e)}},{key:"setActiveFont",value:function(t){var e=this.fonts.findIndex(function(e){return e.family===t});if(-1===e)return console.error('Cannot update activeFont: The font "'.concat(t,'" is not in the font list')),-1;var i=this.activeFont.family;return this.activeFont=this.fonts[e],this.styleManager.changeActiveStyle(this.activeFont,i),H(this.activeFont,this.options.variants,this.onChange),e}}]),t}();!function(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}('@charset "UTF-8";\ndiv[id^="font-picker"] {\n position: relative;\n display: inline-block;\n width: 200px;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); }\n div[id^="font-picker"] * {\n box-sizing: border-box; }\n div[id^="font-picker"] p {\n margin: 0;\n padding: 0; }\n div[id^="font-picker"] button {\n background: none;\n border: 0;\n color: inherit;\n cursor: pointer;\n font-size: inherit;\n outline: none; }\n div[id^="font-picker"] .dropdown-button {\n height: 35px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 10px;\n background: #CBCBCB; }\n div[id^="font-picker"] .dropdown-button:hover, div[id^="font-picker"] .dropdown-button.expanded, div[id^="font-picker"] .dropdown-button:focus {\n background: #bebebe; }\n div[id^="font-picker"] .dropdown-button .dropdown-font-name {\n overflow: hidden;\n white-space: nowrap; }\n div[id^="font-picker"] .dropdown-icon {\n margin-left: 10px; }\n\n@-webkit-keyframes spinner {\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes spinner {\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n div[id^="font-picker"] .dropdown-icon.loading:before {\n content: \'\';\n display: block;\n height: 10px;\n width: 10px;\n border-radius: 50%;\n border: 2px solid #b2b2b2;\n border-top-color: black;\n -webkit-animation: spinner 0.6s linear infinite;\n animation: spinner 0.6s linear infinite; }\n div[id^="font-picker"] .dropdown-icon.finished:before {\n content: \'\';\n display: block;\n height: 0;\n width: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 6px solid black;\n transition: -webkit-transform 0.3s;\n transition: transform 0.3s;\n transition: transform 0.3s, -webkit-transform 0.3s;\n margin: 0 2px; }\n div[id^="font-picker"] .dropdown-icon.error:before {\n content: \'⚠\'; }\n div[id^="font-picker"] .dropdown-button.expanded .dropdown-icon.finished:before {\n -webkit-transform: rotate(-180deg);\n transform: rotate(-180deg); }\n div[id^="font-picker"] ul {\n position: absolute;\n z-index: 1;\n max-height: 0;\n width: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n margin: 0;\n padding: 0;\n background: #EAEAEA;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);\n transition: 0.3s; }\n div[id^="font-picker"] ul.expanded {\n max-height: 200px; }\n div[id^="font-picker"] ul li {\n height: 35px;\n list-style: none; }\n div[id^="font-picker"] ul li button {\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n padding: 0 10px;\n white-space: nowrap; }\n div[id^="font-picker"] ul li button:hover, div[id^="font-picker"] ul li button:focus {\n background: #dddddd; }\n div[id^="font-picker"] ul li button.active-font {\n background: #d1d1d1; }\n');const{Spinner:Y}=wp.components;function X(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function K(t){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Q(t,e){return(Q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var tt=function(t){function e(t){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=function(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?Z(t):e}(this,K(e).call(this,t))).state={activeFont:i.props.activeFont,errorText:"",expanded:!1,loadingStatus:"loading"},i.props.options&&i.props.options.name?i.pickerSuffix="-".concat(i.props.options.name):i.pickerSuffix="",i.fontManager=new q(i.props.apiKey,i.props.activeFont,i.props.options),i.fontManager.init().then(function(){i.setState({errorText:"",loadingStatus:"finished"})}).catch(function(t){i.setState({errorText:"Error trying to fetch the list of available fonts",loadingStatus:"error"}),console.error(i.state.errorText),console.error(t)}),i.setActiveFont=i.setActiveFont.bind(Z(Z(i))),i.onClose=i.onClose.bind(Z(Z(i))),i.onScroll=i.onScroll.bind(Z(Z(i))),i.toggleExpanded=i.toggleExpanded.bind(Z(Z(i))),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Q(t,e)}(e,L["Component"]),function(t,e,i){e&&X(t.prototype,e),i&&X(t,i)}(e,[{key:"componentDidUpdate",value:function(){this.state.activeFont!==this.props.activeFont&&this.setActiveFont(this.props.activeFont)}},{key:"onClose",value:function(t){var e=t.target;do{if(e===document.getElementById("font-picker"))return;e=e.parentNode}while(e);this.toggleExpanded()}},{key:"onScroll",value:function(t){var e=t.target.scrollHeight/this.fontManager.fonts.length,i=Math.ceil((t.target.scrollTop+t.target.clientHeight)/e);this.fontManager.downloadPreviews(i+5)}},{key:"setActiveFont",value:function(t){-1===this.fontManager.setActiveFont(t)?(this.setState({activeFont:t,errorText:'Cannot update activeFont: The font "'.concat(t,'" is not in the font list'),loadingStatus:"error"}),console.error(this.state.errorText)):this.setState({activeFont:t,errorText:"",loadingStatus:"finished"})}},{key:"toggleExpanded",value:function(){this.state.expanded?(this.setState({expanded:!1}),document.removeEventListener("click",this.onClose)):(this.setState({expanded:!0}),document.addEventListener("click",this.onClose))}},{key:"render",value:function(){var t,e=this;return t=M.a.createElement("ul",{className:this.state.expanded?"expanded":"",onScroll:this.onScroll},this.fontManager.fonts.map(function(t){var i=t.family===e.state.activeFont,n=t.family.replace(/\s+/g,"-").toLowerCase();return M.a.createElement("li",{key:t.family},M.a.createElement("button",{type:"button",className:"font-".concat(n).concat(e.pickerSuffix," ").concat(i?"active-font":""),onClick:function(){e.props.onChange(t)},onKeyPress:function(){e.props.onChange(t)}},t.family))})),M.a.createElement("div",{id:"font-picker"},"loading"===this.state.loadingStatus&&M.a.createElement(Y,null),t)}}]),e}();const{__:et}=wp.i18n,{Component:it,Fragment:nt}=wp.element,{Button:ot,Dropdown:at,RangeControl:st,SelectControl:rt}=wp.components;var lt=function(t){return M.a.createElement("svg",t,M.a.createElement("g",{fill:"#555D67",fillRule:"evenodd"},M.a.createElement("path",{d:"M2 2v9h12V2H2zm0-2h12a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z",fillRule:"nonzero"}),M.a.createElement("path",{d:"M6 14v-1h4v1h3v2H3v-2h3z"})))};lt.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"};var ct=function(t){return M.a.createElement("svg",t,M.a.createElement("g",{fill:"none",fillRule:"evenodd"},M.a.createElement("rect",{stroke:"#555D67",strokeWidth:"2",x:"1",y:"1",width:"10",height:"14",rx:"1"}),M.a.createElement("path",{fill:"#555D67",d:"M5 10h2v2H5z"})))};ct.defaultProps={width:"12",height:"16",viewBox:"0 0 12 16",xmlns:"http://www.w3.org/2000/svg"};const dt={100:et("Thin"),200:et("Extra-Light"),"200italic":et("Extra-Light Italic"),300:et("Light"),"300italic":et("Light Italic"),400:et("Regular"),regular:et("Regular"),italic:et("Regular Italic"),500:et("Medium"),"500italic":et("Medium Italic"),600:et("Semi-Bold"),"600italic":et("Semi-Bold Italic"),700:et("Bold"),"700italic":et("Bold Italic"),800:et("Extra-Bold"),"800italic":et("Extra-Bold Italic"),900:et("Black"),"900italic":et("Black Italic")};function pt(t){const e=t.fontfamily,i=function(t,e,i){let n="https://fonts.googleapis.com/css?family=";n+=t.replace(/ /g,"+"),n+=":".concat(e[0]);for(let t=1;t<e.length;t+=1)n+=",".concat(e[t]);if(!0===i){let e=t;e=(e=e.replace(/\s+/g,"")).split("").filter(function(t,e,i){return i.indexOf(t)===e}).join(""),n+="&text=".concat(e)}return n}(e,[t.desktop.fontweight],!1),n=document.createElement("link");n.rel="stylesheet",n.href=i,n.id="font-full-".concat(e);const o=document.getElementById(n.id);o?o.href.includes(t.desktop.fontweight)||(o.href=o.href+","+t.desktop.fontweight):document.head.appendChild(n)}class ht extends it{constructor({attributes:t}){super(...arguments),this.state={tab:"desktop",typography:this.props.typography},this.updateParam=this.updateParam.bind(this),this.getVariantsList=this.getVariantsList.bind(this)}getVariantsList(t){let e=[];return e=Object.keys(t).map((e,i)=>({label:dt.hasOwnProperty(t[e])?dt[t[e]]:t[e],value:t[e]}))}updateParam(t,e,i){if(!g("professional"))return;const{typography:n}=this.state,{updated:o}=this.props;let a=n;if("desktop"===i)switch(e){case"fontsize":case"lineheight":case"letterspacing":case"fontweight":a.desktop[e]=t}else if("mobile"===i)switch(e){case"fontsize":case"lineheight":case"letterspacing":case"fontweight":a.mobile[e]=t}else switch(e){case"fontfamily":a.fontfamily=t.family,a.variants=t.variants,a.desktop.fontweight=t.variants[0],a.mobile.fontweight=t.variants[0]}o(a),this.setState(t=>({...t,typography:a})),pt(a)}render(){const{typography:t,tab:e}=this.state,{title:i}=this.props,n={fontFamily:t.fontfamily,fontWeight:t.desktop.fontweight};return M.a.createElement(at,{className:"editor-component--field-typography-selector",contentClassName:"editor-component--dropdown-typography-selector",position:"bottom right",renderToggle:({isOpen:e,onToggle:o})=>M.a.createElement(ot,{onClick:o,"aria-expanded":e},M.a.createElement("label",null,i),M.a.createElement("p",{style:n},t.fontfamily)),renderContent:()=>M.a.createElement(nt,null,M.a.createElement(tt,{apiKey:c,activeFont:t.fontfamily,onChange:t=>this.updateParam(t,"fontfamily","global")}),M.a.createElement("div",{className:"typography-options__wrapper"},M.a.createElement("div",{className:"tabs-menu"},M.a.createElement("button",{"data-mode":"desktop"===e?"active":"",onClick:t=>this.setState(t=>({...t,tab:"desktop"}))},M.a.createElement(lt,null)),M.a.createElement("button",{"data-mode":"mobile"===e?"active":"",onClick:t=>this.setState(t=>({...t,tab:"mobile"}))},M.a.createElement(ct,null))),M.a.createElement("div",{className:"tabs-content"},"desktop"===e&&M.a.createElement("div",{className:"tab--desktop"},M.a.createElement(st,{label:et("Font Size (px)"),value:t.desktop.fontsize,onChange:t=>this.updateParam(t,"fontsize","desktop"),min:12,max:100}),M.a.createElement(rt,{label:et("Font Weight"),value:t.desktop.fontweight,options:this.getVariantsList(t.variants),onChange:t=>this.updateParam(t,"fontweight","desktop")}),M.a.createElement(st,{label:et("Line Height (%)"),value:t.desktop.lineheight,onChange:t=>this.updateParam(t,"lineheight","desktop"),min:100,max:200,step:5}),M.a.createElement(st,{label:et("Letter Spacing (px)"),value:t.desktop.letterspacing,onChange:t=>this.updateParam(t,"letterspacing","desktop"),min:-1,max:5,step:.1})),"mobile"===e&&M.a.createElement("div",{className:"tab--mobile"},M.a.createElement(st,{label:et("Font Size (px)"),value:t.mobile.fontsize,onChange:t=>this.updateParam(t,"fontsize","mobile"),min:12,max:50}),M.a.createElement(rt,{label:et("Font Weight"),value:t.mobile.fontweight,options:this.getVariantsList(t.variants),onChange:t=>this.updateParam(t,"fontweight","mobile")}),M.a.createElement(st,{label:et("Line Height (%)"),value:t.mobile.lineheight,onChange:t=>this.updateParam(t,"lineheight","mobile"),min:100,max:200,step:5}),M.a.createElement(st,{label:et("Letter Spacing (px)"),value:t.mobile.letterspacing,onChange:t=>this.updateParam(t,"letterspacing","mobile"),min:-1,max:5,step:.1})))))})}}var ut=i(20),mt=i.n(ut);const{__:gt}=wp.i18n,{Component:ft,Fragment:vt}=wp.element,{Spinner:yt}=wp.components,bt=({attrs:t})=>0!==t.opacity&&React.createElement("div",{"data-component":"block-background-overlayer",style:{background:`${t.color}`,opacity:t.opacity/100}}),Et={autoPlay:5e3,pageDots:!1,prevNextButtons:!1,draggable:!1,wrapAround:!0},kt=({background:t})=>{const e=JSON.parse(t);let i="";switch(e.type){case"color":i=e.color&&React.createElement("div",{className:"color-element",style:{backgroundColor:e.color}});break;case"image":i=e.image.full&&React.createElement("div",{className:"image-element"},React.createElement("span",{style:{backgroundImage:`url(${e.image.full})`}}),React.createElement("span",{style:{backgroundImage:`url(${e.image.thumb})`}},React.createElement(yt,null)));break;case"gallery":i=React.createElement("div",{className:"gallery-element"},React.createElement(mt.a,{elementType:"div",options:Et,disableImagesLoaded:!1,reloadOnUpdate:!0},e.gallery.map(({full:t,id:e})=>React.createElement("span",null,React.createElement("img",{src:t})))));break;case"video":i=e.video.url&&React.createElement("div",{className:"video-element"},React.createElement("video",{playsinline:!0,autoPlay:!0,loop:!0,muted:!0,src:e.video.url,poster:e.image.full}))}return React.createElement("div",{"data-component":"block-background"},i)},{__:xt}=wp.i18n,{Component:wt,Fragment:St}=wp.element,{ColorPalette:Ct,ColorIndicator:Tt}=wp.components;var _t=({label:t,colorValue:e,onChange:i})=>React.createElement("div",{"data-editor-component":"color-palette-base-control"},React.createElement("label",null,t," ",React.createElement(Tt,{colorValue:e})),React.createElement(Ct,{colors:d,value:e,onChange:i}));const{__:Pt}=wp.i18n,{Component:Rt,Fragment:Nt}=wp.element,{RangeControl:Dt}=wp.components;var Ot=class extends Rt{constructor({attributes:t}){super(...arguments);const e="string"==typeof this.props.attrs||this.props.attrs instanceof String?JSON.parse(this.props.attrs):this.props.attrs;this.state=e,this.update=this.update.bind(this)}update(t,e){this.setState(t=>({...t,typography:i}));let i=this.state;i[t]=e,this.setState(t=>i),this.props.updateAttribute(i)}render(){const{color:t,opacity:e}=this.state;return React.createElement(Nt,null,React.createElement(_t,{label:Pt("Overlayer color","coming-soon-blocks"),colorValue:t,onChange:t=>this.update("color",t)}),React.createElement(Dt,{label:Pt("Overlayer Opacity","coming-soon-blocks"),value:e,onChange:t=>this.update("opacity",t),min:0,max:100,step:5}))}};const{__:At}=wp.i18n,It="pixelthrone/comingsoon--temp-01",Lt=At("Template 1","coming-soon-blocks"),Mt=[At("Conteudo","coming-soon-blocks")],Bt=["image"],{__:zt}=wp.i18n,{Component:Ft,Fragment:Wt}=wp.element,{RichText:$t,InspectorControls:Ut,PanelColorSettings:Jt}=wp.editor,{RangeControl:jt,DropZone:Ht,PanelBody:Vt,SelectControl:Gt}=wp.components;var qt=class extends Ft{constructor({attributes:t}){super(...arguments),this.state={overlay:{color:this.props.attributes.overlayColor,opacity:this.props.attributes.overlayOpacity},bodyTypo:JSON.parse(this.props.attributes.bodyTypo),titleTypo:JSON.parse(this.props.attributes.titleTypo),subtitleTypo:JSON.parse(this.props.attributes.subtitleTypo)},pt(this.state.bodyTypo),pt(this.state.titleTypo),pt(this.state.subtitleTypo),this.editorCssStylePrint=this.editorCssStylePrint.bind(this)}editorCssStylePrint(){const{bodyTypo:t,titleTypo:e,subtitleTypo:i}=this.state,{clientId:n}=this.props,o=(t,e)=>{let i="normal",o=t.desktop.fontweight;return o.includes("italic")&&(o=(o=o.replace("italic",""))||"normal",i="italic"),o.includes("regular")&&(o="normal"),`div[data-block="${n}"] main .-${e} {\n\t\t\t\t\t\tfont-family: ${t.fontfamily};\n\t\t\t\t\t\tfont-size: ${t.desktop.fontsize}px;\n\t\t\t\t\t\tfont-weight: ${o};\n\t\t\t\t\t\tfont-style: ${i};\n\t\t\t\t\t\tline-height: ${t.desktop.lineheight}%;\n\t\t\t\t\t\tletter-spacing: ${t.desktop.letterspacing}px;\n\t\t\t\t\t}`};return React.createElement("div",{id:`block-style--${n}`,dangerouslySetInnerHTML:{__html:`\n\t\t\t\t<style>\n\t\t\t\t${o(t,"body__typography")}\n\t\t\t\t${o(e,"title__typography")}\n\t\t\t\t${o(i,"subtitle__typography")}\n\t\t\t\t</style>\n\t\t\t\t`}})}render(){const{bodyTypo:t,titleTypo:e,subtitleTypo:i}=this.state,{attributes:{titleText:n,subTitleText:o,descriptionText:a,copyrightText:s,logoID:r,logoURL:c,logoMaxWidth:p,logoAlign:h,textColor:u,overlayColor:m,overlayOpacity:g,networks:f,background:v},className:y,setAttributes:b}=this.props;return React.createElement(Wt,null,React.createElement(Ut,null,React.createElement(Vt,{title:zt("BACKGROUND","coming-soon-blocks"),initialOpen:!0},React.createElement(Ot,{attrs:{color:m,opacity:g},updateAttribute:t=>{this.setState(e=>({...e,overlay:{color:t.color,opacity:t.opacity}})),b({overlayColor:t.color,overlayOpacity:t.opacity})}}),React.createElement(I,{attributes:v,updateAttributes:t=>{b({background:t})}})),React.createElement(Vt,{title:zt("BRAND","coming-soon-blocks"),initialOpen:!1},React.createElement(jt,{label:zt("Max Logo Width (px)","coming-soon-blocks"),value:p,onChange:t=>b({logoMaxWidth:t}),min:30,max:500,step:5}),React.createElement(Gt,{label:zt("Alignment:","coming-soon-blocks"),value:h,onChange:t=>b({logoAlign:t}),options:[{value:"left",label:zt("Left","coming-soon-blocks")},{value:"center",label:zt("Center","coming-soon-blocks")},{value:"right",label:zt("Right","coming-soon-blocks")}]})),React.createElement(Jt,{title:zt("TYPOGRAPHY","coming-soon-blocks"),initialOpen:!1,colorSettings:[{value:u,colors:d,onChange:t=>b({textColor:t}),label:zt("Text color","coming-soon-blocks")}]},React.createElement("label",{className:"single-field-label"},zt("Fonts","coming-soon-blocks")),React.createElement(T,{plan:"professional"},React.createElement(ht,{title:zt("Title","coming-soon-blocks"),typography:e,updated:t=>{this.setState(e=>({...e,titleTypo:t})),b({titleTypo:JSON.stringify(t)})}}),React.createElement(ht,{title:zt("Subtitle","coming-soon-blocks"),typography:i,updated:t=>{this.setState(e=>({...e,subtitleTypo:t})),b({subtitleTypo:JSON.stringify(t)})}}),React.createElement(ht,{title:zt("Body","coming-soon-blocks"),typography:t,updated:t=>{this.setState(e=>({...e,bodyTypo:t})),b({bodyTypo:JSON.stringify(t)})}})))),React.createElement("main",{"data-block":It,className:y},React.createElement("div",{className:"content__container",style:{color:u}},React.createElement("div",{className:"brand__wrapper"},React.createElement(l,{onSelect:t=>{b({logoURL:t.url,logoID:t.id})},allowedMediaTypes:Bt,logoAttrs:{id:r,url:c},style:{maxWidth:`${p}px`},align:h})),React.createElement("div",{className:"title__wrapper"},React.createElement($t,{tagName:"h1",className:"-title__typography",value:n,placeholder:zt("Title","coming-soon-blocks"),onChange:t=>b({titleText:t})})),React.createElement("div",{className:"subtitle__wrapper"},React.createElement($t,{tagName:"h2",className:"-subtitle__typography",value:o,placeholder:zt("Subtitle","coming-soon-blocks"),onChange:t=>b({subTitleText:t})})),React.createElement("div",{className:"description__wrapper -body__typography"},React.createElement($t,{tagName:"p",value:a,placeholder:zt("Description","coming-soon-blocks"),onChange:t=>b({descriptionText:t})}),React.createElement($t,{tagName:"p",value:s,className:"copyright",placeholder:zt("Copyright","coming-soon-blocks"),onChange:t=>b({copyrightText:t})})),React.createElement("div",{className:"social__wrapper"},React.createElement(w,{networks:f,setNetworks:t=>b({networks:t}),position:"top left"}))),React.createElement(bt,{attrs:this.state.overlay}),React.createElement(kt,{background:v})),this.editorCssStylePrint())}};const{registerBlockType:Yt}=wp.blocks;Yt(It,{title:Lt,icon:"admin-generic",keywords:Mt,category:"layout",supports:{align:["full"]},edit:qt,save:()=>null});i(36),i(37);const{__:Xt}=wp.i18n,Kt="pixelthrone/comingsoon--temp-02",Qt=Xt("Template 2","coming-soon-blocks"),Zt=[Xt("Conteudo","coming-soon-blocks")],te=["image"],{__:ee}=wp.i18n,{Component:ie,Fragment:ne}=wp.element,{RichText:oe,InspectorControls:ae,PanelColorSettings:se}=wp.editor,{RangeControl:re,DropZone:le,PanelBody:ce,SelectControl:de}=wp.components;var pe=class extends ie{constructor({attributes:t}){super(...arguments),this.state={bodyTypo:JSON.parse(this.props.attributes.bodyTypo),logo:JSON.parse(this.props.attributes.logo),overlay:JSON.parse(this.props.attributes.overlay)},pt(this.state.bodyTypo),this.editorCssStylePrint=this.editorCssStylePrint.bind(this)}editorCssStylePrint(){const{bodyTypo:t}=this.state,{clientId:e,attributes:{textColor:i}}=this.props;return React.createElement("div",{id:`block-style--${e}`,dangerouslySetInnerHTML:{__html:`\n\t\t\t\t<style>\n\t\t\t\t${((t,i)=>{let n="normal",o=t.desktop.fontweight;return o.includes("italic")&&(o=(o=o.replace("italic",""))||"normal",n="italic"),o.includes("regular")&&(o="normal"),`div[data-block="${e}"] main .-${i} {\n\t\t\t\t\t\tfont-family: ${t.fontfamily};\n\t\t\t\t\t\tfont-size: ${t.desktop.fontsize}px;\n\t\t\t\t\t\tfont-weight: ${o};\n\t\t\t\t\t\tfont-style: ${n};\n\t\t\t\t\t\tline-height: ${t.desktop.lineheight}%;\n\t\t\t\t\t\tletter-spacing: ${t.desktop.letterspacing}px;\n\t\t\t\t\t}`})(t,"body__typography")}\n\t\t\t\t${`div[data-block="${e}"] main p {\n\t\t\t\t\t\tcolor: ${i};\n\t\t\t\t\t}`}\n\t\t\t\t</style>\n\t\t\t\t`}})}render(){const{attributes:{logo:t,logoMaxWidth:e,additionalText:i,copyrightText:n,textColor:o,overlay:a,background:s},className:r,setAttributes:c}=this.props;return React.createElement(ne,null,React.createElement(ae,null,React.createElement(ce,{title:ee("BACKGROUND","coming-soon-blocks"),initialOpen:!0},React.createElement(Ot,{attrs:a,updateAttribute:t=>{c({overlay:JSON.stringify(t)}),this.setState((e,i)=>({...e,overlay:t}))}}),React.createElement(I,{attributes:s,updateAttributes:t=>{c({background:t})}})),React.createElement(ce,{title:ee("BRAND","coming-soon-blocks"),initialOpen:!1},React.createElement(re,{label:ee("Max Logo Width (px)","coming-soon-blocks"),value:e,onChange:t=>c({logoMaxWidth:t}),min:30,max:500,step:5})),React.createElement(se,{title:ee("TYPOGRAPHY","coming-soon-blocks"),initialOpen:!1,colorSettings:[{value:o,colors:d,onChange:t=>{c({textColor:t}),console.log(t)},label:ee("Text color","coming-soon-blocks")}]},React.createElement(T,{plan:"professional"},React.createElement("label",{className:"single-field-label"},ee("Fonts","coming-soon-blocks")),React.createElement(ht,{title:ee("Body","coming-soon-blocks"),typography:this.state.bodyTypo,updated:t=>{this.setState(e=>({...e,bodyTypo:t})),c({bodyTypo:JSON.stringify(t)})}})))),React.createElement("main",{"data-block":Kt,className:r},React.createElement("div",{className:"brand__wrapper"},React.createElement(l,{onSelect:t=>{const e={id:t.id,url:t.url};this.setState(t=>({...t,logo:e})),c({logo:JSON.stringify(e)})},logoAttrs:this.state.logo,allowedMediaTypes:te,style:{maxWidth:`${e}px`},align:"center"}),React.createElement("span",{className:"-body__typography additional-text__wrapper"},React.createElement(oe,{tagName:"p",value:i,placeholder:ee("Additional text, leave empty if you do not want to use.","coming-soon-blocks"),onChange:t=>c({additionalText:t})}))),React.createElement("div",{className:"copyright__wrapper"},React.createElement(oe,{tagName:"p",value:n,className:"-body__typography",placeholder:ee("Copyright","coming-soon-blocks"),onChange:t=>c({copyrightText:t})})),React.createElement(bt,{attrs:this.state.overlay}),React.createElement(kt,{background:s})),this.editorCssStylePrint())}};const{registerBlockType:he}=wp.blocks;he(Kt,{title:Qt,icon:"admin-generic",keywords:Zt,category:"layout",supports:{align:["full"]},edit:pe,save:()=>null});i(38),i(39);const{__:ue}=wp.i18n,me="pixelthrone/comingsoon--temp-03",ge=ue("Template 3","coming-soon-blocks"),fe=[ue("Conteudo","coming-soon-blocks")],ve=["image"],{__:ye}=wp.i18n,{Component:be,Fragment:Ee}=wp.element,{RichText:ke,InspectorControls:xe,PanelColorSettings:we}=wp.editor,{RangeControl:Se,PanelBody:Ce}=wp.components;var Te=class extends be{constructor({attributes:t}){super(...arguments),this.state={titleTypo:JSON.parse(this.props.attributes.titleTypo),subtitleTypo:JSON.parse(this.props.attributes.subtitleTypo),bodyTypo:JSON.parse(this.props.attributes.bodyTypo),logo:JSON.parse(this.props.attributes.logo),overlay:JSON.parse(this.props.attributes.overlay)},pt(this.state.titleTypo),pt(this.state.subtitleTypo),pt(this.state.bodyTypo),this.editorCssStylePrint=this.editorCssStylePrint.bind(this)}editorCssStylePrint(){const{titleTypo:t,subtitleTypo:e,bodyTypo:i}=this.state,{clientId:n,attributes:{textColor:o}}=this.props,a=(t,e)=>{let i="normal",o=t.desktop.fontweight;return o.includes("italic")&&(o=(o=o.replace("italic",""))||"normal",i="italic"),o.includes("regular")&&(o="normal"),`div[data-block="${n}"] main .-${e} {\n\t\t\t\t\t\tfont-family: ${t.fontfamily};\n\t\t\t\t\t\tfont-size: ${t.desktop.fontsize}px;\n\t\t\t\t\t\tfont-weight: ${o};\n\t\t\t\t\t\tfont-style: ${i};\n\t\t\t\t\t\tline-height: ${t.desktop.lineheight}%;\n\t\t\t\t\t\tletter-spacing: ${t.desktop.letterspacing}px;\n\t\t\t\t\t}`};return React.createElement("div",{id:`block-style--${n}`,dangerouslySetInnerHTML:{__html:`\n\t\t\t\t<style>\n\t\t\t\t${a(t,"title__typography")}\n\t\t\t\t${a(e,"subtitle__typography")}\n\t\t\t\t${a(i,"body__typography")}\n\t\t\t\t${`div[data-block="${n}"] main {\n\t\t\t\t\t\tcolor: ${o};\n\t\t\t\t\t}`}\n\t\t\t\t</style>\n\t\t\t\t`}})}render(){const{attributes:{logoMaxWidth:t,networks:e,contentMaxWidth:i,titleText:n,subtitleText:o,copyrightText:a,textColor:s,overlay:r,background:c},className:p,setAttributes:h}=this.props;return React.createElement(Ee,null,React.createElement(xe,null,React.createElement(Ce,{title:ye("BACKGROUND","coming-soon-blocks"),initialOpen:!0},React.createElement(Ot,{attrs:r,updateAttribute:t=>{h({overlay:JSON.stringify(t)}),this.setState((e,i)=>({...e,overlay:t}))}}),React.createElement(I,{attributes:c,updateAttributes:t=>{h({background:t})}})),React.createElement(Ce,{title:ye("BRAND","coming-soon-blocks"),initialOpen:!1},React.createElement(Se,{label:ye("Max Logo Width (px)","coming-soon-blocks"),value:t,onChange:t=>h({logoMaxWidth:t}),min:30,max:500,step:5})),React.createElement(we,{title:ye("TYPOGRAPHY","coming-soon-blocks"),initialOpen:!1,colorSettings:[{value:s,colors:d,onChange:t=>{h({textColor:t}),console.log(t)},label:ye("Text color","coming-soon-blocks")}]},React.createElement(Se,{label:ye("Max Content Width (px)","coming-soon-blocks"),value:i,onChange:t=>h({contentMaxWidth:t}),min:100,max:1200,step:5}),React.createElement(T,{plan:"professional"},React.createElement("label",{className:"single-field-label"},ye("Fonts","coming-soon-blocks")),React.createElement(ht,{title:ye("Title","coming-soon-blocks"),typography:this.state.titleTypo,updated:t=>{this.setState(e=>({...e,titleTypo:t})),h({titleTypo:JSON.stringify(t)})}}),React.createElement(ht,{title:ye("Subtitle","coming-soon-blocks"),typography:this.state.subtitleTypo,updated:t=>{this.setState(e=>({...e,subtitleTypo:t})),h({subtitleTypo:JSON.stringify(t)})}}),React.createElement(ht,{title:ye("Body","coming-soon-blocks"),typography:this.state.bodyTypo,updated:t=>{this.setState(e=>({...e,bodyTypo:t})),h({bodyTypo:JSON.stringify(t)})}})))),React.createElement("main",{"data-block":me,className:p},React.createElement("div",{className:"brand__wrapper"},React.createElement(l,{onSelect:t=>{const e={id:t.id,url:t.url};this.setState(t=>({...t,logo:e})),h({logo:JSON.stringify(e)})},logoAttrs:this.state.logo,allowedMediaTypes:ve,style:{maxWidth:`${t}px`},align:"center"})),React.createElement("div",{className:"content__wrapper",style:{maxWidth:`${i}px`}},React.createElement("div",{className:"social__wrapper"},React.createElement(w,{networks:e,setNetworks:t=>h({networks:t}),position:"top left"})),React.createElement(ke,{tagName:"h1",value:n,className:"-title__typography",placeholder:ye("Say something about the page ...","coming-soon-blocks"),onChange:t=>h({titleText:t})}),React.createElement(ke,{tagName:"h3",value:o,className:"-subtitle__typography",placeholder:ye("Subtitle goes here...","coming-soon-blocks"),onChange:t=>h({subtitleText:t})}),React.createElement(ke,{tagName:"p",value:a,className:"-body__typography",placeholder:ye("© 2018...","coming-soon-blocks"),onChange:t=>h({copyrightText:t})})),React.createElement(bt,{attrs:this.state.overlay}),React.createElement(kt,{background:c})),this.editorCssStylePrint())}};const{registerBlockType:_e}=wp.blocks;_e(me,{title:ge,icon:"admin-generic",keywords:fe,category:"layout",supports:{align:["full"]},edit:Te,save:()=>null});i(40),i(41);const{__:Pe}=wp.i18n,Re="pixelthrone/comingsoon--temp-04",Ne=Pe("Template 4","coming-soon-blocks"),De=[Pe("Conteudo","coming-soon-blocks")],Oe=["image"],{__:Ae}=wp.i18n,{Component:Ie,Fragment:Le}=wp.element,{RichText:Me,InspectorControls:Be,PanelColorSettings:ze}=wp.editor,{RangeControl:Fe,PanelBody:We}=wp.components;var $e=class extends Ie{constructor({attributes:t}){super(...arguments),this.state={titleTypo:JSON.parse(this.props.attributes.titleTypo),subtitleTypo:JSON.parse(this.props.attributes.subtitleTypo),bodyTypo:JSON.parse(this.props.attributes.bodyTypo),logo:JSON.parse(this.props.attributes.logo),overlay:JSON.parse(this.props.attributes.overlay)},pt(this.state.titleTypo),pt(this.state.subtitleTypo),pt(this.state.bodyTypo),this.editorCssStylePrint=this.editorCssStylePrint.bind(this)}editorCssStylePrint(){const{titleTypo:t,subtitleTypo:e,bodyTypo:i}=this.state,{clientId:n,attributes:{textColor:o}}=this.props,a=(t,e)=>{let i="normal",o=t.desktop.fontweight;return o.includes("italic")&&(o=(o=o.replace("italic",""))||"normal",i="italic"),o.includes("regular")&&(o="normal"),`div[data-block="${n}"] main .-${e} {\n\t\t\t\t\t\tfont-family: ${t.fontfamily};\n\t\t\t\t\t\tfont-size: ${t.desktop.fontsize}px;\n\t\t\t\t\t\tfont-weight: ${o};\n\t\t\t\t\t\tfont-style: ${i};\n\t\t\t\t\t\tline-height: ${t.desktop.lineheight}%;\n\t\t\t\t\t\tletter-spacing: ${t.desktop.letterspacing}px;\n\t\t\t\t\t}`};return React.createElement("div",{id:`block-style--${n}`,dangerouslySetInnerHTML:{__html:`\n\t\t\t\t<style>\n\t\t\t\t${a(t,"title__typography")}\n\t\t\t\t${a(e,"subtitle__typography")}\n\t\t\t\t${a(i,"body__typography")}\n\t\t\t\t${`div[data-block="${n}"] main {\n\t\t\t\t\t\tcolor: ${o};\n\t\t\t\t\t}`}\n\t\t\t\t</style>\n\t\t\t\t`}})}render(){const{attributes:{logoMaxWidth:t,networks:e,contentMaxWidth:i,titleText:n,additionalText:o,subtitleText:a,networksText:s,copyrightText:r,textColor:c,overlay:p,background:h},className:u,setAttributes:m}=this.props;return React.createElement(Le,null,React.createElement(Be,null,React.createElement(We,{title:Ae("BACKGROUND","coming-soon-blocks"),initialOpen:!0},React.createElement(Ot,{attrs:p,updateAttribute:t=>{m({overlay:JSON.stringify(t)}),this.setState((e,i)=>({...e,overlay:t}))}}),React.createElement(I,{attributes:h,updateAttributes:t=>{m({background:t})}})),React.createElement(We,{title:Ae("BRAND","coming-soon-blocks"),initialOpen:!1},React.createElement(Fe,{label:Ae("Max Logo Width (px)","coming-soon-blocks"),value:t,onChange:t=>m({logoMaxWidth:t}),min:30,max:500,step:5})),React.createElement(ze,{title:Ae("TYPOGRAPHY","coming-soon-blocks"),initialOpen:!1,colorSettings:[{value:c,colors:d,onChange:t=>{m({textColor:t}),console.log(t)},label:Ae("Text color","coming-soon-blocks")}]},React.createElement(Fe,{label:Ae("Max Content Width (px)","coming-soon-blocks"),value:i,onChange:t=>m({contentMaxWidth:t}),min:100,max:1200,step:5}),React.createElement(T,{plan:"professional"},React.createElement("label",{className:"single-field-label"},Ae("Fonts","coming-soon-blocks")),React.createElement(ht,{title:Ae("Title","coming-soon-blocks"),typography:this.state.titleTypo,updated:t=>{this.setState(e=>({...e,titleTypo:t})),m({titleTypo:JSON.stringify(t)})}}),React.createElement(ht,{title:Ae("Subtitle","coming-soon-blocks"),typography:this.state.subtitleTypo,updated:t=>{this.setState(e=>({...e,subtitleTypo:t})),m({subtitleTypo:JSON.stringify(t)})}}),React.createElement(ht,{title:Ae("Body","coming-soon-blocks"),typography:this.state.bodyTypo,updated:t=>{this.setState(e=>({...e,bodyTypo:t})),m({bodyTypo:JSON.stringify(t)})}})))),React.createElement("main",{"data-block":Re,className:u},React.createElement("div",{className:"top-content__wrapper"}),React.createElement("div",{className:"middle-content__wrapper",style:{maxWidth:`${i}px`}},React.createElement(l,{onSelect:t=>{const e={id:t.id,url:t.url};this.setState(t=>({...t,logo:e})),m({logo:JSON.stringify(e)})},logoAttrs:this.state.logo,allowedMediaTypes:Oe,style:{maxWidth:`${t}px`},align:"center"}),React.createElement(Me,{tagName:"h3",value:a,className:"-subtitle__typography",placeholder:Ae("Subtitle goes here...","coming-soon-blocks"),onChange:t=>m({subtitleText:t})}),React.createElement(Me,{tagName:"h1",value:n,className:"-title__typography",placeholder:Ae("Say something about the page ...","coming-soon-blocks"),onChange:t=>m({titleText:t})}),React.createElement("span",{className:"-body__typography additional-text__wrapper"},React.createElement(Me,{tagName:"p",value:o,placeholder:Ae("Additional text, leave empty if you do not want to use.","coming-soon-blocks"),onChange:t=>m({additionalText:t})}))),React.createElement("div",{className:"bottom-content__wrapper"},React.createElement(Me,{tagName:"h3",value:s,className:"-subtitle__typography",placeholder:Ae("Title","coming-soon-blocks"),onChange:t=>m({networksText:t})}),React.createElement("div",{className:"social__wrapper"},React.createElement(w,{networks:e,setNetworks:t=>m({networks:t}),position:"top left"})),React.createElement(Me,{tagName:"p",value:r,className:"-body__typography",placeholder:Ae("© 2018...","coming-soon-blocks"),onChange:t=>m({copyrightText:t})})),React.createElement(bt,{attrs:this.state.overlay}),React.createElement(kt,{background:h})),this.editorCssStylePrint())}};const{registerBlockType:Ue}=wp.blocks;Ue(Re,{title:Ne,icon:"admin-generic",keywords:De,category:"layout",supports:{align:["full"]},edit:$e,save:()=>null});i(42),i(43);const{__:Je}=wp.i18n,je="pixelthrone/comingsoon--temp-05",He=Je("Template 5","coming-soon-blocks"),Ve=[Je("Conteudo","coming-soon-blocks")],Ge=["image"],{__:qe}=wp.i18n,{Component:Ye,Fragment:Xe}=wp.element,{RichText:Ke,InspectorControls:Qe,PanelColorSettings:Ze}=wp.editor,{RangeControl:ti,PanelBody:ei}=wp.components;var ii=class extends Ye{constructor({attributes:t}){super(...arguments),this.state={titleTypo:JSON.parse(this.props.attributes.titleTypo),subtitleTypo:JSON.parse(this.props.attributes.subtitleTypo),bodyTypo:JSON.parse(this.props.attributes.bodyTypo),logo:JSON.parse(this.props.attributes.logo),overlay:JSON.parse(this.props.attributes.overlay)},pt(this.state.titleTypo),pt(this.state.subtitleTypo),pt(this.state.bodyTypo),this.editorCssStylePrint=this.editorCssStylePrint.bind(this)}editorCssStylePrint(){const{titleTypo:t,subtitleTypo:e,bodyTypo:i}=this.state,{clientId:n,attributes:{textColor:o,titleColor:a}}=this.props,s=(t,e)=>{let i="normal",o=t.desktop.fontweight;return o.includes("italic")&&(o=(o=o.replace("italic",""))||"normal",i="italic"),o.includes("regular")&&(o="normal"),`div[data-block="${n}"] main .-${e} {\n\t\t\t\t\t\tfont-family: ${t.fontfamily};\n\t\t\t\t\t\tfont-size: ${t.desktop.fontsize}px;\n\t\t\t\t\t\tfont-weight: ${o};\n\t\t\t\t\t\tfont-style: ${i};\n\t\t\t\t\t\tline-height: ${t.desktop.lineheight}%;\n\t\t\t\t\t\tletter-spacing: ${t.desktop.letterspacing}px;\n\t\t\t\t\t}`};return React.createElement("div",{id:`block-style--${n}`,dangerouslySetInnerHTML:{__html:`\n\t\t\t\t<style>\n\t\t\t\t${s(t,"title__typography")}\n\t\t\t\t${s(e,"subtitle__typography")}\n\t\t\t\t${s(i,"body__typography")}\n\t\t\t\t${`div[data-block="${n}"] main { color: ${o}; }\n\t\t\t\t\tdiv[data-block="${n}"] main h1 { color: ${a}; }`}\n\t\t\t\t</style>\n\t\t\t\t`}})}render(){const{attributes:{logoMaxWidth:t,networks:e,contentMaxWidth:i,titleText:n,subtitleText:o,contactsText:a,copyrightText:s,titleColor:r,textColor:c,overlay:p,background:h},className:u,setAttributes:m}=this.props;return React.createElement(Xe,null,React.createElement(Qe,null,React.createElement(ei,{title:qe("BACKGROUND","coming-soon-blocks"),initialOpen:!0},React.createElement(Ot,{attrs:p,updateAttribute:t=>{m({overlay:JSON.stringify(t)}),this.setState((e,i)=>({...e,overlay:t}))}}),React.createElement(I,{attributes:h,updateAttributes:t=>{m({background:t})}})),React.createElement(ei,{title:qe("BRAND","coming-soon-blocks"),initialOpen:!1},React.createElement(ti,{label:qe("Max Logo Width (px)","coming-soon-blocks"),value:t,onChange:t=>m({logoMaxWidth:t}),min:30,max:500,step:5})),React.createElement(Ze,{title:qe("TYPOGRAPHY","coming-soon-blocks"),initialOpen:!1,colorSettings:[{value:r,colors:d,onChange:t=>{m({titleColor:t}),console.log(t)},label:qe("Title color","coming-soon-blocks")},{value:c,colors:d,onChange:t=>{m({textColor:t}),console.log(t)},label:qe("Text color","coming-soon-blocks")}]},React.createElement(ti,{label:qe("Max Content Width (px)","coming-soon-blocks"),value:i,onChange:t=>m({contentMaxWidth:t}),min:100,max:1200,step:5}),React.createElement(T,{plan:"professional"},React.createElement("label",{className:"single-field-label"},qe("Fonts","coming-soon-blocks")),React.createElement(ht,{title:qe("Title","coming-soon-blocks"),typography:this.state.titleTypo,updated:t=>{this.setState(e=>({...e,titleTypo:t})),m({titleTypo:JSON.stringify(t)})}}),React.createElement(ht,{title:qe("Subtitle","coming-soon-blocks"),typography:this.state.subtitleTypo,updated:t=>{this.setState(e=>({...e,subtitleTypo:t})),m({subtitleTypo:JSON.stringify(t)})}}),React.createElement(ht,{title:qe("Body","coming-soon-blocks"),typography:this.state.bodyTypo,updated:t=>{this.setState(e=>({...e,bodyTypo:t})),m({bodyTypo:JSON.stringify(t)})}})))),React.createElement("main",{"data-block":je,className:u},React.createElement("div",{className:"top-content__wrapper"}),React.createElement("div",{className:"middle-content__wrapper"},React.createElement(Ke,{tagName:"h1",value:n,className:"-title__typography",placeholder:qe("Say something about the page ...","coming-soon-blocks"),onChange:t=>m({titleText:t}),style:{maxWidth:`${i}px`}})),React.createElement("div",{className:"bottom-content__wrapper"},React.createElement("div",null,React.createElement(l,{onSelect:t=>{const e={id:t.id,url:t.url};this.setState(t=>({...t,logo:e})),m({logo:JSON.stringify(e)})},logoAttrs:this.state.logo,allowedMediaTypes:Ge,style:{maxWidth:`${i}px`},align:"center"}),React.createElement(Ke,{tagName:"h3",value:o,className:"-subtitle__typography",placeholder:qe("Title","coming-soon-blocks"),onChange:t=>m({subtitleText:t})}),React.createElement(Ke,{tagName:"p",value:a,className:"-body__typography contacts_wrapper",placeholder:qe("Leave empty to hide.","coming-soon-blocks"),onChange:t=>m({contactsText:t})}),React.createElement(Ke,{tagName:"p",value:s,className:"-body__typography copyright_wrapper",placeholder:qe("© 2018...","coming-soon-blocks"),onChange:t=>m({copyrightText:t})})),React.createElement("div",null,React.createElement("div",{className:"social__wrapper"},React.createElement(w,{networks:e,setNetworks:t=>m({networks:t}),position:"top left"})))),React.createElement(bt,{attrs:this.state.overlay}),React.createElement(kt,{background:h})),this.editorCssStylePrint())}};const{registerBlockType:ni}=wp.blocks;ni(je,{title:He,icon:"admin-generic",keywords:Ve,category:"layout",supports:{align:["full"]},edit:ii,save:()=>null});i(44);const{compose:oi}=wp.compose,{withDispatch:ai,withSelect:si}=wp.data,{Component:ri,Fragment:li}=wp.element,{createBlock:ci}=wp.blocks,{PluginSidebar:di,PluginSidebarMoreMenuItem:pi}=wp.editPost,{registerPlugin:hi}=wp.plugins,{__:ui}=wp.i18n,{Button:mi}=wp.components,gi=csblocks.baseURL,fi="pixelthrone--comingsoonblocks-templates";var vi=function(t){return M.a.createElement("svg",t,M.a.createElement("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"}))};vi.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"};const yi=()=>M.a.createElement(pi,{target:fi},ui("Page Templates","coming-soon-blocks")),bi=({attr:t,action:e,index:i})=>M.a.createElement("div",{className:"template-thumb-button"},M.a.createElement("img",{src:gi+t.thumb.img}),M.a.createElement(mi,{onClick:i=>{i.preventDefault(),e(t.name)},isDefault:!0},ui("Add Template","coming-soon-blocks")));const Ei=oi(ai(t=>({insertBlock:t("core/editor").insertBlock,updateFeaturedImage(e){t("core/editor").editPost({featured_media:e})}})))(class extends ri{constructor({attributes:t}){super(...arguments),this.addTemplate=this.addTemplate.bind(this)}addTemplate(t){const e=ci(t,{});this.props.insertBlock(e)}render(){return M.a.createElement(li,null,M.a.createElement(yi,null),M.a.createElement(di,{name:fi,className:"teste",title:ui("Page Templates","coming-soon-blocks")},M.a.createElement("div",{"data-component":"sidebar--available-blocks"},Object.keys(n).map((t,e)=>M.a.createElement(bi,{attr:n[t],action:this.addTemplate,index:e,key:e})))))}});hi(fi,{icon:M.a.createElement(function(){return M.a.createElement("span",{className:"layout--header--show-template-button"},M.a.createElement(vi,{v:"3"}))},null),render:()=>M.a.createElement(Ei,null)});i(45);const{__:ki}=wp.i18n,{compose:xi}=wp.compose,{Component:wi,Fragment:Si}=wp.element,{withDispatch:Ci,withSelect:Ti}=wp.data,{PluginSidebar:_i,PluginSidebarMoreMenuItem:Pi}=wp.editPost,{registerPlugin:Ri}=wp.plugins,{TextControl:Ni,TextareaControl:Di,Spinner:Oi,PanelBody:Ai,PanelRow:Ii,ToggleControl:Li,DateTimePicker:Mi,Button:Bi,Dropdown:zi}=wp.components,Fi=csblocks.settings,Wi=csblocks.time_format,$i="pixelthrone--comingsoonblocks-settings";var Ui=function(t){return M.a.createElement("svg",t,M.a.createElement("path",{d:"M6.74 10.913c0 .603-.152 1.139-.455 1.607-.303.468-.74.831-1.31 1.09-.57.26-1.24.39-2.007.39-.64 0-1.178-.045-1.612-.136A5.942 5.942 0 0 1 0 13.388v-2.342a7.691 7.691 0 0 0 1.547.602 5.705 5.705 0 0 0 1.474.216c.386 0 .669-.067.849-.203.18-.135.27-.309.27-.522a.58.58 0 0 0-.109-.35c-.072-.099-.189-.2-.349-.302-.16-.102-.587-.31-1.28-.625-.627-.289-1.098-.568-1.412-.839a2.571 2.571 0 0 1-.697-.931C.14 7.742.066 7.327.066 6.848c0-.896.322-1.595.967-2.096C1.678 4.25 2.564 4 3.692 4c.996 0 2.012.233 3.047.699l-.796 2.029c-.9-.417-1.676-.626-2.33-.626-.338 0-.583.06-.737.18a.545.545 0 0 0-.23.446c0 .19.097.361.292.512.196.151.726.426 1.59.825.83.377 1.405.782 1.727 1.214.323.433.484.977.484 1.634zm6.91 2.954H7.938V4.14h5.712v2.109h-3.113v1.53h2.883v2.11h-2.883v1.836h3.113v2.142zm5.64 0h-2.599V6.289h-2.35v-2.15h7.293v2.15H19.29v7.578zm7.945 0h-2.6V6.289h-2.349v-2.15h7.292v2.15h-2.343v7.578zm3.43 0V4.14h2.612v9.727h-2.612zm13.564 0H40.82l-3.514-6.853h-.06c.084 1.078.126 1.9.126 2.468v4.385h-2.304V4.14h3.396l3.501 6.76h.04a39.594 39.594 0 0 1-.092-2.362V4.14h2.316v9.727zm5.654-5.695h4.153v5.243c-1.128.39-2.367.585-3.718.585-1.483 0-2.63-.435-3.439-1.304-.81-.87-1.214-2.11-1.214-3.72 0-1.57.443-2.791 1.33-3.665C47.88 4.437 49.121 4 50.718 4c.606 0 1.177.058 1.714.173a7.183 7.183 0 0 1 1.406.44l-.823 2.062a5.042 5.042 0 0 0-2.284-.52c-.759 0-1.346.25-1.76.75-.415.498-.622 1.211-.622 2.138 0 .91.187 1.603.563 2.08.375.476.915.715 1.622.715.386 0 .741-.038 1.066-.113V10.2h-1.718V8.17zM62 10.912c0 .604-.151 1.14-.454 1.608-.303.468-.74.831-1.31 1.09-.57.26-1.24.39-2.007.39-.64 0-1.178-.045-1.612-.136a5.942 5.942 0 0 1-1.356-.476v-2.342a7.691 7.691 0 0 0 1.546.602 5.705 5.705 0 0 0 1.475.216c.386 0 .669-.067.849-.203.18-.135.27-.309.27-.522a.58.58 0 0 0-.11-.35c-.072-.099-.188-.2-.348-.302-.16-.102-.587-.31-1.28-.625-.627-.289-1.098-.568-1.412-.839a2.571 2.571 0 0 1-.697-.931c-.152-.35-.227-.765-.227-1.244 0-.896.322-1.595.967-2.096C56.94 4.25 57.825 4 58.953 4c.996 0 2.012.233 3.047.699l-.796 2.029c-.9-.417-1.676-.626-2.33-.626-.338 0-.584.06-.737.18a.545.545 0 0 0-.23.446c0 .19.097.361.292.512.196.151.725.426 1.59.825.829.377 1.405.782 1.727 1.214.323.433.484.977.484 1.634z",fill:"#555D67",fillRule:"evenodd"}))};Ui.defaultProps={width:"62",height:"17",viewBox:"0 0 62 17",xmlns:"http://www.w3.org/2000/svg"};const Ji=()=>M.a.createElement(Pi,{target:$i},ki("SETTINGS","coming-soon-blocks"));const ji=xi(Ci(t=>{const{editPost:e}=t("core/editor"),{togglePinnedPluginItem:i}=t("core/edit-post");return{editPost:e,openLookAndFeelSidebar(){}}}),Ti(t=>{const{isSavingPost:e}=t("core/editor");return{isSaving:e()}}))(class extends wi{constructor(t){super(t),this.state=m(Fi,{status:!1,schedule:"",scheduleStartDate:"",scheduleEndDate:"",loginBypass:!1,passwordProtected:!1,password:"",googleAnalytics:"",othersAnalytics:"",CSSCode:"",JSCode:"",redirectMode:!1,cookieNotice:!1,redirectUrl:"http://"}),this.updatePost=this.updatePost.bind(this)}updatePost(){const{editPost:t}=this.props;setTimeout(()=>{const e=document.querySelector("#wp-admin-bar-pt_comingsoonblocks_toolbar_group");this.state.status?(e.classList.add("-coming-soon-enabled"),e.querySelector("a.ab-item i.dashicons-before").classList.remove("dashicons-unlock"),e.querySelector("a.ab-item i.dashicons-before").classList.add("dashicons-lock"),document.querySelector("#menu-posts-coming-soon-blocks > a .dashicons-before").classList.remove("dashicons-unlock"),document.querySelector("#menu-posts-coming-soon-blocks > a .dashicons-before").classList.add("dashicons-lock")):(e.classList.remove("-coming-soon-enabled"),e.querySelector("a.ab-item i.dashicons-before").classList.remove("dashicons-lock"),e.querySelector("a.ab-item i.dashicons-before").classList.add("dashicons-unlock"),document.querySelector("#menu-posts-coming-soon-blocks > a .dashicons-before").classList.remove("dashicons-lock"),document.querySelector("#menu-posts-coming-soon-blocks > a .dashicons-before").classList.add("dashicons-unlock")),t({comingsoonblocks_settings:JSON.stringify(this.state)})},200)}render(){let t="password";const{isSaving:e,openLookAndFeelSidebar:i}=this.props,{status:n,schedule:o,scheduleStartDate:a,scheduleEndDate:s,googleAnalytics:r,othersAnalytics:l,loginBypass:c,passwordProtected:d,password:p,CSSCode:h,JSCode:u,redirectMode:m,redirectUrl:g,cookieNotice:f}=this.state,v=/a(?!\\)/i.test(Wi.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return M.a.createElement(Si,null,M.a.createElement(Ji,null),M.a.createElement(_i,{name:$i,title:ki("SETTINGS","coming-soon-blocks")},M.a.createElement("div",{"data-component":"sidebar--settings-options","data-loading":e?"true":"false"},e&&M.a.createElement(Oi,null),M.a.createElement(Ai,{title:ki("GENERAL","coming-soon-blocks"),initialOpen:!0},M.a.createElement(Ii,{className:""},M.a.createElement(Li,{label:ki("Enable coming soon","coming-soon-blocks","coming-soon-blocks"),help:ki("By activating this option this page will appear to all the website visitors.","coming-soon-blocks"),checked:n,onChange:t=>this.setState(e=>({status:t}),this.updatePost())}),n&&M.a.createElement(T,{plan:"starter"},M.a.createElement(Li,{label:ki("Schedule Publish","coming-soon-blocks"),help:ki("By activating this option it is possible to set a date to show or hide the page.","coming-soon-blocks"),checked:o,onChange:t=>this.setState(e=>({schedule:t}),this.updatePost())})),o&&M.a.createElement(T,{plan:"starter"},M.a.createElement(Si,null,M.a.createElement(zi,{className:"editor-component--field-date-time-picker",contentClassName:"editor-component--dropdown-date-time-picker",position:"bottom right",renderToggle:({isOpen:t,onToggle:e})=>M.a.createElement("div",null,M.a.createElement("label",null,ki("Start:","coming-soon-blocks")),M.a.createElement(Bi,{isLink:!0,onClick:e,"aria-expanded":t},a||ki("Set date","coming-soon-blocks")),a&&M.a.createElement(Bi,{isDefault:!0,isSmall:!0,onClick:t=>this.setState(t=>({scheduleStartDate:""}),this.updatePost())},"✖")),renderContent:()=>M.a.createElement(Mi,{is12Hour:v,currentDate:a,onChange:t=>this.setState(e=>({scheduleStartDate:t}),this.updatePost())})}),M.a.createElement(zi,{className:"editor-component--field-date-time-picker",contentClassName:"editor-component--dropdown-date-time-picker",position:"bottom right",renderToggle:({isOpen:t,onToggle:e})=>M.a.createElement("div",null,M.a.createElement("label",null,ki("End:","coming-soon-blocks")),M.a.createElement(Bi,{isLink:!0,onClick:e,"aria-expanded":t},s||ki("Set date","coming-soon-blocks")),s&&M.a.createElement(Bi,{isDefault:!0,isSmall:!0,onClick:t=>this.setState(t=>({scheduleEndDate:""}),this.updatePost())},"✖")),renderContent:()=>M.a.createElement(Mi,{is12Hour:v,currentDate:s,onChange:t=>this.setState(e=>({scheduleEndDate:t}),this.updatePost())})}))))),M.a.createElement(Ai,{title:ki("ACCESS","coming-soon-blocks"),initialOpen:!1},M.a.createElement(Ii,{className:""},M.a.createElement(Li,{label:ki("Show normal website to logged in users?","coming-soon-blocks"),help:ki("Enable this option if you want logged in users to view the website normally while visitors see the maintenance page.","coming-soon-blocks"),checked:c,onChange:t=>this.setState(e=>({...e,loginBypass:t}),this.updatePost())}),M.a.createElement(Li,{label:ki("Redirect Mode","coming-soon-blocks"),help:ki('Enable this option if you want to move your visitors to a new page. We will define the header as "301 Moved Permanently"',"coming-soon-blocks"),checked:m,onChange:t=>this.setState(e=>({...e,redirectMode:t}),this.updatePost())}),m&&M.a.createElement(Ni,{label:ki("Redirect Url","coming-soon-blocks"),value:g,onChange:t=>this.setState(e=>({...e,redirectUrl:t}),this.updatePost())}),!m&&M.a.createElement(T,{plan:"starter"},M.a.createElement(Li,{label:ki("Password Protected","coming-soon-blocks"),help:ki("Protected with a password you choose. Only those with the password can view the site.","coming-soon-blocks"),checked:d,onChange:t=>this.setState(e=>({...e,passwordProtected:t}),this.updatePost())}),d&&M.a.createElement(Si,null,M.a.createElement(Ni,{label:ki("Password","coming-soon-blocks"),value:p,onChange:t=>this.setState(e=>({...e,password:t}),this.updatePost()),onFocus:e=>t="text",onblur:e=>t="password"}),M.a.createElement("p",{onClick:i,"data-editor-component":"notice","data-notice":"warning"},ki('To change the element colors see the sidebar "Look & Feel"',"coming-soon-blocks")))))),M.a.createElement(Ai,{title:ki("COOKIE NOTICE","coming-soon-blocks"),initialOpen:!1},M.a.createElement(Ii,{className:""},M.a.createElement(Li,{label:ki("Enable Cookie Notice","coming-soon-blocks"),help:ki("By activating this option a small notice will appear notifying the visitor that the site uses cookies.","coming-soon-blocks"),checked:f,onChange:t=>this.setState(e=>({cookieNotice:t}),this.updatePost())}))),M.a.createElement(Ai,{title:ki("CUSTOM CSS & JS","coming-soon-blocks"),initialOpen:!1},M.a.createElement(Ii,{className:""},M.a.createElement(Ni,{label:ki("Google Analytics Tracking ID","coming-soon-blocks"),value:r,onChange:t=>this.setState(e=>({...e,googleAnalytics:t}),this.updatePost())}),M.a.createElement(T,{plan:"professional"},M.a.createElement(Di,{label:ki("Tracking Pixel & 3rd Party Analytics Code","coming-soon-blocks"),help:ki("Copy&paste the complete code, including the opening and closing <script> tags.","coming-soon-blocks"),value:l,onChange:t=>this.setState(e=>({...e,othersAnalytics:t}),this.updatePost())})),M.a.createElement(T,{plan:"professional"},M.a.createElement(Di,{label:ki("JS","coming-soon-blocks"),rows:"6",help:ki("Copy&paste the complete code, including the opening and closing <script> tags.","coming-soon-blocks"),value:u,onChange:t=>this.setState(e=>({...e,JSCode:t}),this.updatePost())})),M.a.createElement(T,{plan:"professional"},M.a.createElement(Di,{label:ki("CSS","coming-soon-blocks"),rows:"6",value:h,onChange:t=>this.setState(e=>({...e,CSSCode:t}),this.updatePost())})))))))}});Ri($i,{icon:M.a.createElement(function(){return M.a.createElement(Ui,{className:"settings-button",v:"1"})},null),render:()=>M.a.createElement(ji,null)});i(46);const{__:Hi}=wp.i18n,{compose:Vi}=wp.compose,{Component:Gi,Fragment:qi}=wp.element,{withDispatch:Yi,withSelect:Xi}=wp.data,{PluginSidebar:Ki,PluginSidebarMoreMenuItem:Qi}=wp.editPost,{registerPlugin:Zi}=wp.plugins,{MediaUpload:tn}=wp.editor,{Button:en,TextControl:nn,TextareaControl:on,Spinner:an,PanelBody:sn,PanelRow:rn,ToggleControl:ln,Tooltip:cn}=wp.components,dn=csblocks.seo,pn="pixelthrone--comingsoonblocks-seo";var hn=function(t){return M.a.createElement("svg",t,M.a.createElement("path",{d:"M6.725 10.917a2.89 2.89 0 0 1-.453 1.605c-.302.467-.738.83-1.307 1.09-.569.258-1.237.388-2.003.388-.64 0-1.176-.045-1.609-.136A5.927 5.927 0 0 1 0 13.389v-2.34c.495.258 1.01.458 1.543.602a5.69 5.69 0 0 0 1.472.216c.385 0 .667-.067.847-.203a.625.625 0 0 0 .27-.521.579.579 0 0 0-.11-.349c-.072-.1-.188-.2-.347-.302-.16-.102-.586-.31-1.278-.625C1.771 9.58 1.302 9.3.988 9.03a2.568 2.568 0 0 1-.696-.93c-.15-.35-.226-.764-.226-1.243 0-.895.321-1.592.965-2.093.644-.5 1.528-.75 2.653-.75.994 0 2.008.232 3.041.697l-.794 2.027c-.898-.417-1.673-.625-2.325-.625-.337 0-.583.06-.736.18a.545.545 0 0 0-.23.445c0 .19.098.36.292.511.195.15.724.425 1.587.824.827.377 1.402.78 1.724 1.213.321.432.482.975.482 1.63zm6.897 2.95h-5.7V4.153h5.7v2.106h-3.106v1.528h2.876v2.107h-2.876v1.834h3.106v2.14zM24 8.997c0 1.634-.396 2.877-1.189 3.727-.792.85-1.953 1.276-3.48 1.276-1.507 0-2.662-.427-3.465-1.282-.804-.855-1.205-2.1-1.205-3.735 0-1.616.4-2.851 1.198-3.704C16.66 4.426 17.82 4 19.343 4c1.529 0 2.687.423 3.475 1.27C23.606 6.114 24 7.357 24 8.996zm-6.607 0c0 1.878.646 2.817 1.937 2.817.657 0 1.144-.228 1.462-.684.317-.457.476-1.168.476-2.133 0-.97-.161-1.687-.483-2.15-.322-.463-.802-.694-1.442-.694-1.3 0-1.95.948-1.95 2.844z",fill:"#555D67",fillRule:"evenodd"}))};hn.defaultProps={width:"24",height:"17",viewBox:"0 0 24 17",xmlns:"http://www.w3.org/2000/svg"};const un=()=>M.a.createElement(Qi,{target:pn},Hi("SEO","coming-soon-blocks"));const mn=Vi(Yi(t=>{const{editPost:e}=t("core/editor");return{editPost:e}}),Xi(t=>{const{getPostType:e}=t("core"),{getCurrentPostId:i,getEditedPostAttribute:n,isSavingPost:o}=t("core/editor");return{currentPostId:i(),postType:e(n("type")),isSaving:o()}}))(class extends Gi{constructor(t){super(t),this.state=m(dn,{title:"",description:"",keywords:"",author:"",copyright:"",facebook:{title:"",description:"",cover:{id:"",url:""}},twitter:{title:"",description:"",cover:{id:"",url:""}},serviceUnavailable:!1,noCache:!1}),this.updatePost=this.updatePost.bind(this)}updatePost(){const{editPost:t}=this.props;setTimeout(()=>{t({comingsoonblocks_seo:JSON.stringify(this.state)})},200)}render(){const{isSaving:t}=this.props,{title:e,description:i,keywords:n,author:o,copyright:a,facebook:s,twitter:r,serviceUnavailable:l,noCache:c}=this.state;return M.a.createElement(qi,null,M.a.createElement(un,null),M.a.createElement(Ki,{name:pn,title:Hi("SEO","coming-soon-blocks")},M.a.createElement("div",{"data-component":"sidebar--seo-options","data-loading":t?"true":"false"},t&&M.a.createElement(an,null),M.a.createElement(sn,{title:Hi("SEARCH ENGINES","coming-soon-blocks"),initialOpen:!0},M.a.createElement(rn,{className:""},M.a.createElement(nn,{label:Hi("Page Title","coming-soon-blocks"),value:e,onChange:t=>this.setState(e=>({...e,title:t}),this.updatePost())}),M.a.createElement(on,{label:Hi("Meta Description","coming-soon-blocks"),value:i,onChange:t=>this.setState(e=>({...e,description:t}),this.updatePost())}),M.a.createElement(nn,{label:Hi("keywords","coming-soon-blocks"),help:Hi("eg: SEO, search engine optimisation, optimization","coming-soon-blocks"),value:n,onChange:t=>this.setState(e=>({...e,keywords:t}),this.updatePost())}),M.a.createElement(nn,{label:Hi("Author","coming-soon-blocks"),help:Hi("eg: SEO, search engine optimisation, optimization","coming-soon-blocks"),value:o,onChange:t=>this.setState(e=>({...e,author:t}),this.updatePost())}),M.a.createElement(nn,{label:Hi("Copyright","coming-soon-blocks"),help:Hi("eg: SEO, search engine optimisation, optimization","coming-soon-blocks"),value:a,onChange:t=>this.setState(e=>({...e,copyright:t}),this.updatePost())}),M.a.createElement(ln,{label:Hi("Temporarily Pause Search Engines","coming-soon-blocks"),help:Hi("If your site is already indexed and you're just taking it down for a while, enable this option. It temporarily discourages search engines from crawling the site by telling them it's under construction by sending a 503 Service Unavailable response.","coming-soon-blocks"),checked:l,onChange:t=>this.setState(e=>({...e,serviceUnavailable:t}),this.updatePost())}),M.a.createElement(ln,{label:Hi("Send no-cache Headers","coming-soon-blocks"),help:Hi("If you don't want the coming soon page's preview to be cached by Facebook and other social media enable this option. Once you switch to the normal site social media preview (visible when sharing the site's link) will immediately be refreshed.","coming-soon-blocks"),checked:c,onChange:t=>this.setState(e=>({...e,noCache:t}),this.updatePost())}))),M.a.createElement(sn,{title:Hi("FACEBOOK","coming-soon-blocks"),initialOpen:!1},M.a.createElement(rn,null,M.a.createElement(nn,{label:Hi("Facebook Title","coming-soon-blocks"),value:s.title,onChange:t=>this.setState(e=>({...e,facebook:{...e.facebook,title:t}}),this.updatePost())}),M.a.createElement(on,{label:Hi("Facebook Description","coming-soon-blocks"),value:s.description,onChange:t=>this.setState(e=>({...e,facebook:{...e.facebook,description:t}}),this.updatePost())}),M.a.createElement("label",null,Hi("Facebook Cover Image","coming-soon-blocks")),M.a.createElement("p",null,M.a.createElement("small",null,"The recommended size is 1024 by 512 pixels.")),M.a.createElement(tn,{onSelect:t=>{const e={id:t.id,url:t.url};this.setState(t=>({...t,facebook:{...t.facebook,cover:e}}),this.updatePost()),this.updatePost()},allowedTypes:["image"],value:s.cover.id,render:({open:t})=>M.a.createElement("div",{"data-editor-component":"inspector-controls--image-uploader"},s.cover.url&&M.a.createElement("img",{onClick:t,src:s.cover.url}),M.a.createElement(en,{onClick:t,isDefault:!0},s.cover.id?Hi("Replace image","coming-soon-blocks"):Hi("Add image","coming-soon-blocks")))}))),M.a.createElement(sn,{title:Hi("TWITTER","coming-soon-blocks"),initialOpen:!1},M.a.createElement(rn,null,M.a.createElement(nn,{label:Hi("Twitter Title","coming-soon-blocks"),value:r.title,onChange:t=>this.setState(e=>({...e,twitter:{...e.twitter,title:t}}),this.updatePost())}),M.a.createElement(on,{label:Hi("Twitter Description","coming-soon-blocks"),value:r.description,onChange:t=>this.setState(e=>({...e,twitter:{...e.twitter,description:t}}),this.updatePost())}),M.a.createElement("label",null,Hi("Twitter Cover Image","coming-soon-blocks")),M.a.createElement("p",null,M.a.createElement("small",null,"The recommended size is 1200 by 630 pixels.")),M.a.createElement(tn,{onSelect:t=>{const e={id:t.id,url:t.url};this.setState(t=>({...t,twitter:{...t.twitter,cover:e}}),this.updatePost()),this.updatePost()},allowedTypes:["image"],value:r.cover.id,render:({open:t})=>M.a.createElement("div",{"data-editor-component":"inspector-controls--image-uploader"},r.cover.url&&M.a.createElement("img",{onClick:t,src:r.cover.url}),M.a.createElement(en,{onClick:t,isDefault:!0},r.cover.id?Hi("Replace image","coming-soon-blocks"):Hi("Add image","coming-soon-blocks")))}))))))}});Zi(pn,{icon:M.a.createElement(function(){return M.a.createElement(hn,{className:"seo-button",v:"1"})},null),render:()=>M.a.createElement(mn,null)});i(47);const{__:gn}=wp.i18n,{compose:fn}=wp.compose,{Component:vn,Fragment:yn}=wp.element,{withDispatch:bn,withSelect:En}=wp.data,{PluginSidebar:kn,PluginSidebarMoreMenuItem:xn}=wp.editPost,{registerPlugin:wn}=wp.plugins,{MediaUpload:Sn}=wp.editor,{Button:Cn,Spinner:Tn,PanelBody:_n,PanelRow:Pn,ToggleControl:Rn,ColorPalette:Nn,ColorIndicator:Dn}=wp.components,On="pixelthrone--comingsoonblocks-look-and-feel";var An=function(t){return M.a.createElement("svg",t,M.a.createElement("path",{d:"M0 13.426v-9.28h2.486v7.255H6.03v2.025H0zm15.578-4.653c0 1.562-.38 2.749-1.14 3.561-.759.813-1.87 1.22-3.335 1.22-1.443 0-2.55-.41-3.32-1.226-.77-.817-1.155-2.006-1.155-3.567 0-1.545.383-2.724 1.149-3.54C8.542 4.408 9.655 4 11.116 4c1.464 0 2.574.404 3.329 1.212.755.809 1.133 1.996 1.133 3.561zm-6.332 0c0 1.795.62 2.692 1.857 2.692.63 0 1.096-.218 1.4-.654.305-.436.457-1.115.457-2.038 0-.926-.155-1.61-.463-2.053-.308-.442-.769-.663-1.381-.663-1.247 0-1.87.905-1.87 2.716zm16.327 0c0 1.562-.38 2.749-1.139 3.561-.76.813-1.871 1.22-3.336 1.22-1.443 0-2.55-.41-3.32-1.226-.77-.817-1.155-2.006-1.155-3.567 0-1.545.383-2.724 1.149-3.54C18.538 4.408 19.651 4 21.111 4c1.464 0 2.574.404 3.33 1.212.755.809 1.132 1.996 1.132 3.561zm-6.331 0c0 1.795.618 2.692 1.856 2.692.63 0 1.096-.218 1.4-.654.305-.436.457-1.115.457-2.038 0-.926-.154-1.61-.463-2.053-.308-.442-.769-.663-1.381-.663-1.246 0-1.87.905-1.87 2.716zm15.577 4.653h-2.807l-1.818-3.548-.737.444v3.104H26.96v-9.28h2.498v4.03c.126-.249.38-.645.762-1.186l1.932-2.844h2.719l-2.902 4.158 2.851 5.122zm9.978 0l-.623-.647c-.378.241-.688.407-.929.498a4.07 4.07 0 0 1-.812.206c-.3.047-.643.07-1.029.07-.663 0-1.25-.114-1.759-.343-.51-.228-.9-.548-1.17-.958a2.49 2.49 0 0 1-.406-1.403c0-1.109.57-1.957 1.711-2.545a3.619 3.619 0 0 1-.607-.943 2.794 2.794 0 0 1-.217-1.127c0-.677.259-1.214.777-1.612.518-.398 1.23-.597 2.137-.597.885 0 1.574.198 2.067.594.494.396.74.934.74 1.615 0 .47-.133.905-.4 1.305-.266.4-.687.775-1.262 1.127l1.253 1.2a4.685 4.685 0 0 0 .654-1.651h2.556a8.414 8.414 0 0 1-.595 1.755 7.119 7.119 0 0 1-.916 1.508l2.014 1.948h-3.184zm-4.192-2.755c0 .267.094.485.283.654.189.17.439.254.75.254.238 0 .448-.032.628-.095.18-.064.32-.136.416-.216l-1.561-1.6c-.344.259-.516.593-.516 1.003zm1.857-4.437c0-.207-.06-.356-.18-.447a.722.722 0 0 0-.45-.137.718.718 0 0 0-.462.16c-.133.105-.199.274-.199.507 0 .317.185.645.554.984.24-.136.422-.297.548-.486.126-.188.189-.382.189-.58zm11.689 7.192h-2.449v-9.28h5.438v2.012h-2.99V7.93h2.757v2.012h-2.756v3.485zm9.687 0h-5.464v-9.28h5.464v2.012H60.86v1.46h2.756V9.63h-2.756v1.752h2.977v2.044zm6.798 0h-5.463v-9.28h5.463v2.012h-2.977v1.46h2.756V9.63H67.66v1.752h2.977v2.044zm1.335 0v-9.28h2.486v7.255H78v2.025h-6.03z",fill:"#555D67",fillRule:"evenodd"}))};An.defaultProps={width:"78",height:"17",viewBox:"0 0 78 17",xmlns:"http://www.w3.org/2000/svg"};const In=csblocks.lookandfeel,Ln=csblocks.settings;const Mn=()=>M.a.createElement(xn,{target:On},gn("LOOK AND FEEL","coming-soon-blocks"));const Bn=fn(bn(t=>{const{editPost:e}=t("core/editor");return{editPost:e}}),En(t=>{const{getEditedPostAttribute:e,isSavingPost:i}=t("core/editor");return{settingsSidebarOptions:e("comingsoonblocks_settings"),isSaving:i()}}))(class extends vn{constructor(t){super(t),this.state=m(In,{pluginBrand:!1,favicon:{id:"",url:""},unlock_button_color:"#282A2F",activeFont:"",typography:{}}),this.updatePost=this.updatePost.bind(this),this.showPasswordProtectedOptions=this.showPasswordProtectedOptions.bind(this)}updatePost(){const{editPost:t}=this.props;setTimeout(()=>{t({comingsoonblocks_lookandfeel:JSON.stringify(this.state)})},200)}showPasswordProtectedOptions(){const{settingsSidebarOptions:t}=this.props;return t?JSON.parse(t).passwordProtected:Ln.passwordProtected}render(){const{isSaving:t}=this.props,{favicon:e,pluginBrand:i,unlock_button_color:n}=this.state;return M.a.createElement(yn,null,M.a.createElement(Mn,null),M.a.createElement(kn,{name:On,title:gn("LOOK AND FEEL","coming-soon-blocks")},M.a.createElement("div",{"data-component":"sidebar--settings-options","data-loading":t?"true":"false"},t&&M.a.createElement(Tn,null),M.a.createElement(_n,{title:gn("ICONS","coming-soon-blocks"),initialOpen:!0},M.a.createElement(Pn,{className:""},M.a.createElement("label",null,gn("Favicon","coming-soon-blocks")),M.a.createElement(Sn,{onSelect:t=>{const e={id:t.id,url:t.url};this.setState(t=>({...t,favicon:e})),this.updatePost()},allowedTypes:["image"],value:e.id,render:({open:t})=>M.a.createElement("div",{"data-editor-component":"inspector-controls--image-uploader"},e.url&&M.a.createElement("img",{onClick:t,src:e.url}),M.a.createElement("span",null,M.a.createElement(Cn,{onClick:t,isDefault:!0},e.id?gn("Replace icon","coming-soon-blocks"):gn("Add icon","coming-soon-blocks"))))}))),this.showPasswordProtectedOptions()&&M.a.createElement(_n,{title:gn("PASSWORD PROTECTED","coming-soon-blocks"),initialOpen:!1},M.a.createElement(Pn,{className:""},M.a.createElement(T,{plan:"starter"},M.a.createElement("div",{"data-editor-component":"color-palette-base-control"},M.a.createElement("label",null,gn("Button Background","coming-soon-blocks")," ",M.a.createElement(Dn,{colorValue:n})),M.a.createElement(Nn,{colors:d,value:n,onChange:t=>this.setState(e=>({...e,unlock_button_color:t}),this.updatePost())}))))),M.a.createElement(_n,{title:gn("ADVANCED","coming-soon-blocks"),initialOpen:!1},M.a.createElement(Pn,{className:""},M.a.createElement(Rn,{label:gn("Show Some Love","coming-soon-blocks"),help:gn("Please help others learn about this free plugin by placing a small link in the footer. Thank you very much!","coming-soon-blocks"),checked:i,onChange:t=>this.setState(e=>({...e,pluginBrand:t}),this.updatePost())}))))))}});wn(On,{icon:M.a.createElement(function(){return M.a.createElement(An,{className:"look-and-feel-button",v:"2"})},null),render:()=>M.a.createElement(Bn,null)})},,function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){}]);
public/dist/blocks.editor.bundle.css CHANGED
@@ -977,6 +977,10 @@ body #editor {
977
  display: none; }
978
  body #editor .edit-post-sidebar .components-panel .components-panel__row.edit-post-post-schedule {
979
  display: none; }
 
 
 
 
980
  body #editor .edit-post-layout__content {
981
  /**
982
  * Notices
@@ -990,17 +994,12 @@ body #editor {
990
  /**
991
  * Writing area
992
  */ }
993
- body #editor .edit-post-layout__content .components-notice-list {
994
- top: auto;
995
- bottom: 0; }
996
- body #editor .edit-post-layout__content .components-notice-list > div {
997
- margin: 0; }
998
  body #editor .edit-post-layout__content .editor-post-title {
999
  top: 0;
1000
  left: 0;
1001
  position: absolute;
1002
  width: 100%;
1003
- padding: 7px 0 6px 17px;
1004
  border-bottom: 1px solid #e2e4e7; }
1005
  body #editor .edit-post-layout__content .editor-post-title .editor-post-title__block {
1006
  margin: 0;
@@ -1012,6 +1011,8 @@ body #editor {
1012
  height: auto;
1013
  font-weight: normal;
1014
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
 
 
1015
  body #editor .edit-post-layout__content .block-list-appender, body #editor .edit-post-layout__content .editor-default-block-appender {
1016
  display: none; }
1017
  body #editor .edit-post-layout__content .edit-post-visual-editor {
@@ -1030,7 +1031,7 @@ body #editor {
1030
  align-items: center; }
1031
  body #editor .edit-post-layout__content .edit-post-visual-editor .editor-writing-flow > div > div > div {
1032
  width: 100%;
1033
- height: 61px; }
1034
  body #editor .edit-post-layout__content .edit-post-visual-editor .editor-writing-flow > div > div .editor-block-list__layout {
1035
  -ms-flex-positive: 1;
1036
  flex-grow: 1;
@@ -1092,6 +1093,57 @@ body #editor {
1092
  -webkit-transform: rotate(360deg);
1093
  transform: rotate(360deg); } }
1094
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1095
  /**
1096
  * Inherit Typography
1097
  */
@@ -1114,4 +1166,157 @@ body #editor {
1114
  * Media Queryes
1115
  */
1116
  .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-01"] main[data-block="pixelthrone/comingsoon--temp-01"] {
1117
- height: calc(100vh - 149px); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
977
  display: none; }
978
  body #editor .edit-post-sidebar .components-panel .components-panel__row.edit-post-post-schedule {
979
  display: none; }
980
+ body #editor .components-popover__content .components-menu-group:nth-of-type(3) {
981
+ display: none; }
982
+ body #editor .components-popover__content a[href="edit.php?post_type=wp_block"] {
983
+ display: none; }
984
  body #editor .edit-post-layout__content {
985
  /**
986
  * Notices
994
  /**
995
  * Writing area
996
  */ }
 
 
 
 
 
997
  body #editor .edit-post-layout__content .editor-post-title {
998
  top: 0;
999
  left: 0;
1000
  position: absolute;
1001
  width: 100%;
1002
+ padding: 5px 0 5px 17px;
1003
  border-bottom: 1px solid #e2e4e7; }
1004
  body #editor .edit-post-layout__content .editor-post-title .editor-post-title__block {
1005
  margin: 0;
1011
  height: auto;
1012
  font-weight: normal;
1013
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
1014
+ body #editor .edit-post-layout__content .editor-post-title .editor-post-title__block .editor-post-permalink {
1015
+ display: none; }
1016
  body #editor .edit-post-layout__content .block-list-appender, body #editor .edit-post-layout__content .editor-default-block-appender {
1017
  display: none; }
1018
  body #editor .edit-post-layout__content .edit-post-visual-editor {
1031
  align-items: center; }
1032
  body #editor .edit-post-layout__content .edit-post-visual-editor .editor-writing-flow > div > div > div {
1033
  width: 100%;
1034
+ height: 58px; }
1035
  body #editor .edit-post-layout__content .edit-post-visual-editor .editor-writing-flow > div > div .editor-block-list__layout {
1036
  -ms-flex-positive: 1;
1037
  flex-grow: 1;
1093
  -webkit-transform: rotate(360deg);
1094
  transform: rotate(360deg); } }
1095
 
1096
+ /**
1097
+ * Inherit Typography
1098
+ */
1099
+ /**
1100
+ * Media
1101
+ *
1102
+ * @since 1.0.0
1103
+ * @version 1.0.0
1104
+ */
1105
+ /**
1106
+ * Media
1107
+ *
1108
+ * @since 1.0.0
1109
+ * @version 1.0.0
1110
+ */
1111
+ /**
1112
+ * Colors
1113
+ */
1114
+ /**
1115
+ * Media Queryes
1116
+ */
1117
+ .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-02"] main[data-block="pixelthrone/comingsoon--temp-02"] {
1118
+ height: calc(100vh - 146px); }
1119
+ /**
1120
+ * keyframes
1121
+ *
1122
+ * @since 1.0.0
1123
+ * @version 1.0.0
1124
+ */
1125
+ /**
1126
+ * Spinner
1127
+ *
1128
+ * @since 1.0.0
1129
+ * @version 1.0.0
1130
+ */
1131
+ @-webkit-keyframes pt_theme__loadingSpinner {
1132
+ 0% {
1133
+ -webkit-transform: rotate(0deg);
1134
+ transform: rotate(0deg); }
1135
+ 100% {
1136
+ -webkit-transform: rotate(360deg);
1137
+ transform: rotate(360deg); } }
1138
+
1139
+ @keyframes pt_theme__loadingSpinner {
1140
+ 0% {
1141
+ -webkit-transform: rotate(0deg);
1142
+ transform: rotate(0deg); }
1143
+ 100% {
1144
+ -webkit-transform: rotate(360deg);
1145
+ transform: rotate(360deg); } }
1146
+
1147
  /**
1148
  * Inherit Typography
1149
  */
1166
  * Media Queryes
1167
  */
1168
  .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-01"] main[data-block="pixelthrone/comingsoon--temp-01"] {
1169
+ height: calc(100vh - 146px); }
1170
+ /**
1171
+ * keyframes
1172
+ *
1173
+ * @since 1.0.0
1174
+ * @version 1.0.0
1175
+ */
1176
+ /**
1177
+ * Spinner
1178
+ *
1179
+ * @since 1.0.0
1180
+ * @version 1.0.0
1181
+ */
1182
+ @-webkit-keyframes pt_theme__loadingSpinner {
1183
+ 0% {
1184
+ -webkit-transform: rotate(0deg);
1185
+ transform: rotate(0deg); }
1186
+ 100% {
1187
+ -webkit-transform: rotate(360deg);
1188
+ transform: rotate(360deg); } }
1189
+
1190
+ @keyframes pt_theme__loadingSpinner {
1191
+ 0% {
1192
+ -webkit-transform: rotate(0deg);
1193
+ transform: rotate(0deg); }
1194
+ 100% {
1195
+ -webkit-transform: rotate(360deg);
1196
+ transform: rotate(360deg); } }
1197
+
1198
+ /**
1199
+ * Inherit Typography
1200
+ */
1201
+ /**
1202
+ * Media
1203
+ *
1204
+ * @since 1.0.0
1205
+ * @version 1.0.0
1206
+ */
1207
+ /**
1208
+ * Media
1209
+ *
1210
+ * @since 1.0.0
1211
+ * @version 1.0.0
1212
+ */
1213
+ /**
1214
+ * Colors
1215
+ */
1216
+ /**
1217
+ * Media Queryes
1218
+ */
1219
+ .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-03"] main[data-block="pixelthrone/comingsoon--temp-03"] {
1220
+ height: calc(100vh - 146px); }
1221
+ /**
1222
+ * keyframes
1223
+ *
1224
+ * @since 1.0.0
1225
+ * @version 1.0.0
1226
+ */
1227
+ /**
1228
+ * Spinner
1229
+ *
1230
+ * @since 1.0.0
1231
+ * @version 1.0.0
1232
+ */
1233
+ @-webkit-keyframes pt_theme__loadingSpinner {
1234
+ 0% {
1235
+ -webkit-transform: rotate(0deg);
1236
+ transform: rotate(0deg); }
1237
+ 100% {
1238
+ -webkit-transform: rotate(360deg);
1239
+ transform: rotate(360deg); } }
1240
+
1241
+ @keyframes pt_theme__loadingSpinner {
1242
+ 0% {
1243
+ -webkit-transform: rotate(0deg);
1244
+ transform: rotate(0deg); }
1245
+ 100% {
1246
+ -webkit-transform: rotate(360deg);
1247
+ transform: rotate(360deg); } }
1248
+
1249
+ /**
1250
+ * Inherit Typography
1251
+ */
1252
+ /**
1253
+ * Media
1254
+ *
1255
+ * @since 1.0.0
1256
+ * @version 1.0.0
1257
+ */
1258
+ /**
1259
+ * Media
1260
+ *
1261
+ * @since 1.0.0
1262
+ * @version 1.0.0
1263
+ */
1264
+ /**
1265
+ * Colors
1266
+ */
1267
+ /**
1268
+ * Media Queryes
1269
+ */
1270
+ .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-04"] main[data-block="pixelthrone/comingsoon--temp-04"] {
1271
+ height: calc(100vh - 146px); }
1272
+ /**
1273
+ * keyframes
1274
+ *
1275
+ * @since 1.0.0
1276
+ * @version 1.0.0
1277
+ */
1278
+ /**
1279
+ * Spinner
1280
+ *
1281
+ * @since 1.0.0
1282
+ * @version 1.0.0
1283
+ */
1284
+ @-webkit-keyframes pt_theme__loadingSpinner {
1285
+ 0% {
1286
+ -webkit-transform: rotate(0deg);
1287
+ transform: rotate(0deg); }
1288
+ 100% {
1289
+ -webkit-transform: rotate(360deg);
1290
+ transform: rotate(360deg); } }
1291
+
1292
+ @keyframes pt_theme__loadingSpinner {
1293
+ 0% {
1294
+ -webkit-transform: rotate(0deg);
1295
+ transform: rotate(0deg); }
1296
+ 100% {
1297
+ -webkit-transform: rotate(360deg);
1298
+ transform: rotate(360deg); } }
1299
+
1300
+ /**
1301
+ * Inherit Typography
1302
+ */
1303
+ /**
1304
+ * Media
1305
+ *
1306
+ * @since 1.0.0
1307
+ * @version 1.0.0
1308
+ */
1309
+ /**
1310
+ * Media
1311
+ *
1312
+ * @since 1.0.0
1313
+ * @version 1.0.0
1314
+ */
1315
+ /**
1316
+ * Colors
1317
+ */
1318
+ /**
1319
+ * Media Queryes
1320
+ */
1321
+ .editor-block-list__block[data-type="pixelthrone/comingsoon--temp-05"] main[data-block="pixelthrone/comingsoon--temp-05"] {
1322
+ height: calc(100vh - 146px); }
public/dist/blocks.style.bundle.css CHANGED
@@ -26,6 +26,131 @@
26
  -webkit-transform: rotate(360deg);
27
  transform: rotate(360deg); } }
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  /**
30
  * Inherit Typography
31
  */
@@ -36,12 +161,12 @@
36
  * @version 1.0.0
37
  */
38
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .description__wrapper p {
39
- font-family: inherit;
40
- font-size: inherit;
41
- font-weight: inherit;
42
- font-style: inherit;
43
- line-height: inherit;
44
- letter-spacing: inherit; }
45
 
46
  /**
47
  * Media
@@ -92,6 +217,9 @@ main[data-block="pixelthrone/comingsoon--temp-01"] {
92
  grid-template-rows: auto auto auto;
93
  grid-template-columns: 1fr;
94
  grid-gap: 10px; } }
 
 
 
95
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .brand__wrapper {
96
  grid-column-start: 1;
97
  grid-row-start: 1; }
@@ -112,6 +240,9 @@ main[data-block="pixelthrone/comingsoon--temp-01"] {
112
  margin: 0 auto; }
113
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .brand__wrapper img.-right-align {
114
  margin-left: auto; }
 
 
 
115
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .brand__wrapper > * {
116
  display: block; }
117
  @media only screen and (max-width: 1023px) {
@@ -155,10 +286,13 @@ main[data-block="pixelthrone/comingsoon--temp-01"] {
155
  margin-top: 30px;
156
  margin-bottom: 30px;
157
  opacity: 0.6;
158
- font-size: 0.9em; }
159
  @media only screen and (max-width: 1023px) {
160
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .description__wrapper p.copyright {
161
  margin-top: 15px; } }
 
 
 
162
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .description__wrapper p.copyright a {
163
  color: inherit;
164
  font-weight: 500;
@@ -212,6 +346,309 @@ main[data-block="pixelthrone/comingsoon--temp-01"] {
212
  -webkit-transform: rotate(360deg);
213
  transform: rotate(360deg); } }
214
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  /**
216
  * Inherit Typography
217
  */
@@ -1045,14 +1482,15 @@ div[data-component="social-icons"] {
1045
  -ms-flex-align: center;
1046
  align-items: center;
1047
  position: relative;
 
1048
  /**
1049
  * On editor
1050
  */ }
1051
  div[data-component="social-icons"] .-icon {
1052
  color: inherit;
1053
  position: relative;
1054
- width: 40px;
1055
- height: 40px;
1056
  font-size: 100%;
1057
  margin: 0;
1058
  line-height: 0;
@@ -1067,7 +1505,7 @@ div[data-component="social-icons"] {
1067
  -o-transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
1068
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
1069
  color: inherit;
1070
- font-size: 22px;
1071
  position: absolute;
1072
  top: 50%;
1073
  left: 50%;
@@ -1092,13 +1530,15 @@ div[data-component="social-icons"] {
1092
  div[data-component="social-icons"] .-icon:hover i {
1093
  color: white; }
1094
  div[data-component="social-icons"] .-icon:hover::before {
1095
- width: 100%;
1096
- height: 100%;
1097
  opacity: 1; }
1098
  div[data-component="social-icons"] .-icon.-modelmayhem::before {
1099
  background-color: #000000; }
1100
  div[data-component="social-icons"] .-icon.-mixcloud::before {
1101
  background-color: #000000; }
 
 
1102
  div[data-component="social-icons"] .-icon.-drupal::before {
1103
  background-color: #22a9e0; }
1104
  div[data-component="social-icons"] .-icon.-swarm::before {
@@ -1332,13 +1772,17 @@ div[data-component="social-icons"] {
1332
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
1333
  width: 30px;
1334
  height: 30px;
 
 
1335
  border-radius: 50%;
1336
  border: 1px solid #e2e4e7;
1337
  background-color: rgba(255, 255, 255, 0.7);
1338
  position: absolute;
1339
- right: -35px;
1340
  top: 5px;
1341
  /* ---- hover ---- */ }
 
 
1342
  div[data-component="social-icons"] button svg {
1343
  position: absolute;
1344
  top: calc( 50% + 1px);
@@ -1554,3 +1998,154 @@ div[data-component="block-background-overlayer"] {
1554
  width: 100%;
1555
  height: 100%;
1556
  z-index: 1; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  -webkit-transform: rotate(360deg);
27
  transform: rotate(360deg); } }
28
 
29
+ /**
30
+ * Inherit Typography
31
+ */
32
+ /**
33
+ * Media
34
+ *
35
+ * @since 1.0.0
36
+ * @version 1.0.0
37
+ */
38
+ main[data-block="pixelthrone/comingsoon--temp-02"] .brand__wrapper .additional-text__wrapper p {
39
+ font-family: inherit !important;
40
+ font-size: inherit !important;
41
+ font-weight: inherit !important;
42
+ font-style: inherit !important;
43
+ line-height: inherit !important;
44
+ letter-spacing: inherit !important; }
45
+
46
+ /**
47
+ * Media
48
+ *
49
+ * @since 1.0.0
50
+ * @version 1.0.0
51
+ */
52
+ /**
53
+ * Colors
54
+ */
55
+ /**
56
+ * Media Queryes
57
+ */
58
+ main[data-block="pixelthrone/comingsoon--temp-02"] {
59
+ height: 100vh;
60
+ width: 100%;
61
+ display: -ms-flexbox;
62
+ display: flex;
63
+ -ms-flex-direction: column;
64
+ flex-direction: column;
65
+ -ms-flex-wrap: nowrap;
66
+ flex-wrap: nowrap;
67
+ -ms-flex-pack: center;
68
+ justify-content: center;
69
+ -ms-flex-align: center;
70
+ align-items: center;
71
+ padding-bottom: 15px;
72
+ position: relative;
73
+ -webkit-box-sizing: border-box;
74
+ box-sizing: border-box;
75
+ /**
76
+ * Brand
77
+ */
78
+ /**
79
+ * Copyright
80
+ */ }
81
+ main[data-block="pixelthrone/comingsoon--temp-02"] .brand__wrapper {
82
+ position: relative;
83
+ z-index: 10; }
84
+ main[data-block="pixelthrone/comingsoon--temp-02"] .brand__wrapper > button {
85
+ margin: 0 auto 0 auto; }
86
+ main[data-block="pixelthrone/comingsoon--temp-02"] .brand__wrapper > button img {
87
+ display: inherit; }
88
+ main[data-block="pixelthrone/comingsoon--temp-02"] .brand__wrapper > img {
89
+ margin: 0 auto 0 auto;
90
+ display: inherit; }
91
+ @media only screen and (max-width: 767px) {
92
+ main[data-block="pixelthrone/comingsoon--temp-02"] .brand__wrapper > img {
93
+ max-width: 80vw !important;
94
+ height: auto; } }
95
+ main[data-block="pixelthrone/comingsoon--temp-02"] .brand__wrapper .additional-text__wrapper {
96
+ display: block;
97
+ width: 100%;
98
+ padding-top: 30px;
99
+ text-align: center; }
100
+ @media only screen and (max-width: 767px) {
101
+ main[data-block="pixelthrone/comingsoon--temp-02"] .brand__wrapper .additional-text__wrapper {
102
+ padding: 20px 50px 0 50px;
103
+ -webkit-box-sizing: border-box;
104
+ box-sizing: border-box; } }
105
+ main[data-block="pixelthrone/comingsoon--temp-02"] .brand__wrapper .additional-text__wrapper p {
106
+ padding: 0;
107
+ margin: 0;
108
+ font-size: 1.2em !important; }
109
+ main[data-block="pixelthrone/comingsoon--temp-02"] .copyright__wrapper {
110
+ position: absolute;
111
+ bottom: 30px;
112
+ left: 0;
113
+ width: 100%;
114
+ text-align: center;
115
+ padding: 0 30px;
116
+ margin: 0;
117
+ z-index: 10;
118
+ -webkit-box-sizing: border-box;
119
+ box-sizing: border-box; }
120
+ main[data-block="pixelthrone/comingsoon--temp-02"] .copyright__wrapper p {
121
+ padding: 0;
122
+ margin: 0; }
123
+ @media only screen and (max-width: 767px) {
124
+ main[data-block="pixelthrone/comingsoon--temp-02"] .copyright__wrapper {
125
+ bottom: 15px; } }
126
+ /**
127
+ * keyframes
128
+ *
129
+ * @since 1.0.0
130
+ * @version 1.0.0
131
+ */
132
+ /**
133
+ * Spinner
134
+ *
135
+ * @since 1.0.0
136
+ * @version 1.0.0
137
+ */
138
+ @-webkit-keyframes pt_theme__loadingSpinner {
139
+ 0% {
140
+ -webkit-transform: rotate(0deg);
141
+ transform: rotate(0deg); }
142
+ 100% {
143
+ -webkit-transform: rotate(360deg);
144
+ transform: rotate(360deg); } }
145
+
146
+ @keyframes pt_theme__loadingSpinner {
147
+ 0% {
148
+ -webkit-transform: rotate(0deg);
149
+ transform: rotate(0deg); }
150
+ 100% {
151
+ -webkit-transform: rotate(360deg);
152
+ transform: rotate(360deg); } }
153
+
154
  /**
155
  * Inherit Typography
156
  */
161
  * @version 1.0.0
162
  */
163
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .description__wrapper p {
164
+ font-family: inherit !important;
165
+ font-size: inherit !important;
166
+ font-weight: inherit !important;
167
+ font-style: inherit !important;
168
+ line-height: inherit !important;
169
+ letter-spacing: inherit !important; }
170
 
171
  /**
172
  * Media
217
  grid-template-rows: auto auto auto;
218
  grid-template-columns: 1fr;
219
  grid-gap: 10px; } }
220
+ @media only screen and (max-width: 767px) {
221
+ main[data-block="pixelthrone/comingsoon--temp-01"] .content__container {
222
+ padding: 0 30px; } }
223
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .brand__wrapper {
224
  grid-column-start: 1;
225
  grid-row-start: 1; }
240
  margin: 0 auto; }
241
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .brand__wrapper img.-right-align {
242
  margin-left: auto; }
243
+ @media only screen and (max-width: 1023px) {
244
+ main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .brand__wrapper img {
245
+ margin: 0 !important; } }
246
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .brand__wrapper > * {
247
  display: block; }
248
  @media only screen and (max-width: 1023px) {
286
  margin-top: 30px;
287
  margin-bottom: 30px;
288
  opacity: 0.6;
289
+ font-size: 0.8em !important; }
290
  @media only screen and (max-width: 1023px) {
291
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .description__wrapper p.copyright {
292
  margin-top: 15px; } }
293
+ @media only screen and (max-width: 767px) {
294
+ main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .description__wrapper p.copyright {
295
+ margin-bottom: 15px; } }
296
  main[data-block="pixelthrone/comingsoon--temp-01"] .content__container .description__wrapper p.copyright a {
297
  color: inherit;
298
  font-weight: 500;
346
  -webkit-transform: rotate(360deg);
347
  transform: rotate(360deg); } }
348
 
349
+ /**
350
+ * Inherit Typography
351
+ */
352
+ /**
353
+ * Media
354
+ *
355
+ * @since 1.0.0
356
+ * @version 1.0.0
357
+ */
358
+ /**
359
+ * Media
360
+ *
361
+ * @since 1.0.0
362
+ * @version 1.0.0
363
+ */
364
+ /**
365
+ * Colors
366
+ */
367
+ /**
368
+ * Media Queryes
369
+ */
370
+ main[data-block="pixelthrone/comingsoon--temp-03"] {
371
+ height: 100vh;
372
+ width: 100%;
373
+ position: relative;
374
+ -webkit-box-sizing: border-box;
375
+ box-sizing: border-box;
376
+ display: -ms-flexbox;
377
+ display: flex;
378
+ -ms-flex-direction: row;
379
+ flex-direction: row;
380
+ -ms-flex-wrap: nowrap;
381
+ flex-wrap: nowrap;
382
+ -ms-flex-pack: start;
383
+ justify-content: flex-start;
384
+ -ms-flex-align: center;
385
+ align-items: center;
386
+ /**
387
+ * Brand
388
+ */
389
+ /**
390
+ * Content
391
+ */ }
392
+ @media only screen and (max-width: 767px) {
393
+ main[data-block="pixelthrone/comingsoon--temp-03"] {
394
+ -ms-flex-direction: column;
395
+ flex-direction: column;
396
+ -ms-flex-align: start;
397
+ align-items: flex-start; } }
398
+ main[data-block="pixelthrone/comingsoon--temp-03"] .brand__wrapper {
399
+ z-index: 10;
400
+ position: absolute;
401
+ top: 30px;
402
+ right: 30px; }
403
+ @media only screen and (max-width: 767px) {
404
+ main[data-block="pixelthrone/comingsoon--temp-03"] .brand__wrapper {
405
+ right: auto;
406
+ left: auto;
407
+ position: relative;
408
+ padding-left: 30px;
409
+ margin-bottom: 60px; } }
410
+ main[data-block="pixelthrone/comingsoon--temp-03"] .content__wrapper {
411
+ position: relative;
412
+ z-index: 10;
413
+ padding-left: 100px;
414
+ -webkit-box-sizing: content-box;
415
+ box-sizing: content-box;
416
+ display: -ms-flexbox;
417
+ display: flex;
418
+ -ms-flex-direction: column;
419
+ flex-direction: column;
420
+ -ms-flex-wrap: nowrap;
421
+ flex-wrap: nowrap;
422
+ -ms-flex-pack: start;
423
+ justify-content: flex-start;
424
+ -ms-flex-align: start;
425
+ align-items: flex-start; }
426
+ @media only screen and (max-width: 1023px) {
427
+ main[data-block="pixelthrone/comingsoon--temp-03"] .content__wrapper {
428
+ padding-left: 60px; } }
429
+ @media only screen and (max-width: 767px) {
430
+ main[data-block="pixelthrone/comingsoon--temp-03"] .content__wrapper {
431
+ padding-left: 30px;
432
+ padding-right: 15px;
433
+ -ms-flex-positive: 1;
434
+ flex-grow: 1;
435
+ display: -ms-flexbox;
436
+ display: flex;
437
+ -ms-flex-direction: column;
438
+ flex-direction: column;
439
+ -ms-flex-wrap: wrap;
440
+ flex-wrap: wrap;
441
+ -ms-flex-pack: start;
442
+ justify-content: flex-start;
443
+ -ms-flex-align: start;
444
+ align-items: flex-start; } }
445
+ main[data-block="pixelthrone/comingsoon--temp-03"] .content__wrapper .social__wrapper {
446
+ display: block;
447
+ height: 60px;
448
+ width: auto;
449
+ margin-left: -10px; }
450
+ main[data-block="pixelthrone/comingsoon--temp-03"] .content__wrapper .social__wrapper button[data-empty="true"] {
451
+ right: -40px; }
452
+ main[data-block="pixelthrone/comingsoon--temp-03"] .content__wrapper h1 {
453
+ padding: 0;
454
+ margin: 0;
455
+ color: inherit;
456
+ width: 100%; }
457
+ main[data-block="pixelthrone/comingsoon--temp-03"] .content__wrapper h3 {
458
+ padding: 0;
459
+ margin: 0;
460
+ color: inherit;
461
+ margin-top: 10px;
462
+ width: 100%; }
463
+ main[data-block="pixelthrone/comingsoon--temp-03"] .content__wrapper p {
464
+ padding: 0;
465
+ margin: 50px 0 0 0;
466
+ color: inherit;
467
+ width: 100%; }
468
+ @media only screen and (max-width: 767px) {
469
+ main[data-block="pixelthrone/comingsoon--temp-03"] .content__wrapper p {
470
+ padding-bottom: 15px;
471
+ -ms-flex-positive: 1;
472
+ flex-grow: 1;
473
+ display: -ms-flexbox;
474
+ display: flex;
475
+ -ms-flex-direction: row;
476
+ flex-direction: row;
477
+ -ms-flex-wrap: nowrap;
478
+ flex-wrap: nowrap;
479
+ -ms-flex-pack: start;
480
+ justify-content: flex-start;
481
+ -ms-flex-align: end;
482
+ align-items: flex-end; } }
483
+ /**
484
+ * keyframes
485
+ *
486
+ * @since 1.0.0
487
+ * @version 1.0.0
488
+ */
489
+ /**
490
+ * Spinner
491
+ *
492
+ * @since 1.0.0
493
+ * @version 1.0.0
494
+ */
495
+ @-webkit-keyframes pt_theme__loadingSpinner {
496
+ 0% {
497
+ -webkit-transform: rotate(0deg);
498
+ transform: rotate(0deg); }
499
+ 100% {
500
+ -webkit-transform: rotate(360deg);
501
+ transform: rotate(360deg); } }
502
+
503
+ @keyframes pt_theme__loadingSpinner {
504
+ 0% {
505
+ -webkit-transform: rotate(0deg);
506
+ transform: rotate(0deg); }
507
+ 100% {
508
+ -webkit-transform: rotate(360deg);
509
+ transform: rotate(360deg); } }
510
+
511
+ /**
512
+ * Inherit Typography
513
+ */
514
+ /**
515
+ * Media
516
+ *
517
+ * @since 1.0.0
518
+ * @version 1.0.0
519
+ */
520
+ main[data-block="pixelthrone/comingsoon--temp-04"] .middle-content__wrapper .additional-text__wrapper p {
521
+ font-family: inherit !important;
522
+ font-size: inherit !important;
523
+ font-weight: inherit !important;
524
+ font-style: inherit !important;
525
+ line-height: inherit !important;
526
+ letter-spacing: inherit !important; }
527
+
528
+ /**
529
+ * Media
530
+ *
531
+ * @since 1.0.0
532
+ * @version 1.0.0
533
+ */
534
+ /**
535
+ * Colors
536
+ */
537
+ /**
538
+ * Media Queryes
539
+ */
540
+ main[data-block="pixelthrone/comingsoon--temp-04"] {
541
+ height: 100vh;
542
+ width: 100%;
543
+ position: relative;
544
+ -webkit-box-sizing: border-box;
545
+ box-sizing: border-box;
546
+ display: -ms-flexbox;
547
+ display: flex;
548
+ -ms-flex-direction: column;
549
+ flex-direction: column;
550
+ -ms-flex-wrap: nowrap;
551
+ flex-wrap: nowrap;
552
+ -ms-flex-pack: justify;
553
+ justify-content: space-between;
554
+ -ms-flex-align: center;
555
+ align-items: center;
556
+ /**
557
+ * Middle
558
+ */
559
+ /**
560
+ * Bottom
561
+ */ }
562
+ main[data-block="pixelthrone/comingsoon--temp-04"] .middle-content__wrapper {
563
+ position: relative;
564
+ z-index: 10;
565
+ text-align: center;
566
+ padding-top: 30px; }
567
+ @media only screen and (max-width: 767px) {
568
+ main[data-block="pixelthrone/comingsoon--temp-04"] .middle-content__wrapper {
569
+ padding-left: 20px;
570
+ padding-right: 20px;
571
+ padding-top: 20px; } }
572
+ main[data-block="pixelthrone/comingsoon--temp-04"] .middle-content__wrapper button {
573
+ margin: 0 auto 0 auto; }
574
+ main[data-block="pixelthrone/comingsoon--temp-04"] .middle-content__wrapper button img {
575
+ margin-bottom: 40px;
576
+ display: inherit; }
577
+ main[data-block="pixelthrone/comingsoon--temp-04"] .middle-content__wrapper > img {
578
+ margin: 0 auto 0 auto;
579
+ margin-bottom: 40px;
580
+ display: inherit; }
581
+ main[data-block="pixelthrone/comingsoon--temp-04"] .middle-content__wrapper h3 {
582
+ padding: 0;
583
+ margin: 0;
584
+ color: inherit;
585
+ margin-bottom: 5px; }
586
+ main[data-block="pixelthrone/comingsoon--temp-04"] .middle-content__wrapper h1 {
587
+ padding: 0;
588
+ margin: 0;
589
+ color: inherit; }
590
+ main[data-block="pixelthrone/comingsoon--temp-04"] .middle-content__wrapper .additional-text__wrapper {
591
+ display: block;
592
+ width: 100%;
593
+ padding-top: 20px; }
594
+ main[data-block="pixelthrone/comingsoon--temp-04"] .middle-content__wrapper .additional-text__wrapper p {
595
+ padding: 0;
596
+ margin: 0;
597
+ font-size: 1.2em !important; }
598
+ main[data-block="pixelthrone/comingsoon--temp-04"] .bottom-content__wrapper {
599
+ position: relative;
600
+ z-index: 10;
601
+ padding-bottom: 30px;
602
+ text-align: center; }
603
+ @media only screen and (max-width: 767px) {
604
+ main[data-block="pixelthrone/comingsoon--temp-04"] .bottom-content__wrapper {
605
+ padding-bottom: 20px; } }
606
+ main[data-block="pixelthrone/comingsoon--temp-04"] .bottom-content__wrapper h3 {
607
+ padding: 0;
608
+ margin: 0;
609
+ color: inherit;
610
+ margin-top: 10px; }
611
+ main[data-block="pixelthrone/comingsoon--temp-04"] .bottom-content__wrapper .social__wrapper {
612
+ width: auto;
613
+ margin-top: 10px; }
614
+ main[data-block="pixelthrone/comingsoon--temp-04"] .bottom-content__wrapper .social__wrapper div[data-component="social-icons"] {
615
+ -ms-flex-pack: center;
616
+ justify-content: center;
617
+ width: auto; }
618
+ main[data-block="pixelthrone/comingsoon--temp-04"] .bottom-content__wrapper .social__wrapper div[data-component="social-icons"] button[data-empty="true"] {
619
+ right: 40px; }
620
+ main[data-block="pixelthrone/comingsoon--temp-04"] .bottom-content__wrapper p {
621
+ padding: 0;
622
+ margin: 30px 0 0 0;
623
+ color: inherit; }
624
+ /**
625
+ * keyframes
626
+ *
627
+ * @since 1.0.0
628
+ * @version 1.0.0
629
+ */
630
+ /**
631
+ * Spinner
632
+ *
633
+ * @since 1.0.0
634
+ * @version 1.0.0
635
+ */
636
+ @-webkit-keyframes pt_theme__loadingSpinner {
637
+ 0% {
638
+ -webkit-transform: rotate(0deg);
639
+ transform: rotate(0deg); }
640
+ 100% {
641
+ -webkit-transform: rotate(360deg);
642
+ transform: rotate(360deg); } }
643
+
644
+ @keyframes pt_theme__loadingSpinner {
645
+ 0% {
646
+ -webkit-transform: rotate(0deg);
647
+ transform: rotate(0deg); }
648
+ 100% {
649
+ -webkit-transform: rotate(360deg);
650
+ transform: rotate(360deg); } }
651
+
652
  /**
653
  * Inherit Typography
654
  */
1482
  -ms-flex-align: center;
1483
  align-items: center;
1484
  position: relative;
1485
+ min-height: 42px;
1486
  /**
1487
  * On editor
1488
  */ }
1489
  div[data-component="social-icons"] .-icon {
1490
  color: inherit;
1491
  position: relative;
1492
+ width: 42px;
1493
+ height: 42px;
1494
  font-size: 100%;
1495
  margin: 0;
1496
  line-height: 0;
1505
  -o-transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
1506
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
1507
  color: inherit;
1508
+ font-size: 24px;
1509
  position: absolute;
1510
  top: 50%;
1511
  left: 50%;
1530
  div[data-component="social-icons"] .-icon:hover i {
1531
  color: white; }
1532
  div[data-component="social-icons"] .-icon:hover::before {
1533
+ width: 110%;
1534
+ height: 110%;
1535
  opacity: 1; }
1536
  div[data-component="social-icons"] .-icon.-modelmayhem::before {
1537
  background-color: #000000; }
1538
  div[data-component="social-icons"] .-icon.-mixcloud::before {
1539
  background-color: #000000; }
1540
+ div[data-component="social-icons"] .-icon.-npm::before {
1541
+ background-color: #cb3837; }
1542
  div[data-component="social-icons"] .-icon.-drupal::before {
1543
  background-color: #22a9e0; }
1544
  div[data-component="social-icons"] .-icon.-swarm::before {
1772
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
1773
  width: 30px;
1774
  height: 30px;
1775
+ -webkit-box-sizing: border-box;
1776
+ box-sizing: border-box;
1777
  border-radius: 50%;
1778
  border: 1px solid #e2e4e7;
1779
  background-color: rgba(255, 255, 255, 0.7);
1780
  position: absolute;
1781
+ right: -40px;
1782
  top: 5px;
1783
  /* ---- hover ---- */ }
1784
+ div[data-component="social-icons"] button[data-empty="true"] {
1785
+ right: -30px; }
1786
  div[data-component="social-icons"] button svg {
1787
  position: absolute;
1788
  top: calc( 50% + 1px);
1998
  width: 100%;
1999
  height: 100%;
2000
  z-index: 1; }
2001
+ /**
2002
+ * keyframes
2003
+ *
2004
+ * @since 1.0.0
2005
+ * @version 1.0.0
2006
+ */
2007
+ /**
2008
+ * Spinner
2009
+ *
2010
+ * @since 1.0.0
2011
+ * @version 1.0.0
2012
+ */
2013
+ @-webkit-keyframes pt_theme__loadingSpinner {
2014
+ 0% {
2015
+ -webkit-transform: rotate(0deg);
2016
+ transform: rotate(0deg); }
2017
+ 100% {
2018
+ -webkit-transform: rotate(360deg);
2019
+ transform: rotate(360deg); } }
2020
+
2021
+ @keyframes pt_theme__loadingSpinner {
2022
+ 0% {
2023
+ -webkit-transform: rotate(0deg);
2024
+ transform: rotate(0deg); }
2025
+ 100% {
2026
+ -webkit-transform: rotate(360deg);
2027
+ transform: rotate(360deg); } }
2028
+
2029
+ /**
2030
+ * Inherit Typography
2031
+ */
2032
+ /**
2033
+ * Media
2034
+ *
2035
+ * @since 1.0.0
2036
+ * @version 1.0.0
2037
+ */
2038
+ /**
2039
+ * Media
2040
+ *
2041
+ * @since 1.0.0
2042
+ * @version 1.0.0
2043
+ */
2044
+ /**
2045
+ * Colors
2046
+ */
2047
+ /**
2048
+ * Media Queryes
2049
+ */
2050
+ main[data-block="pixelthrone/comingsoon--temp-05"] {
2051
+ height: 100vh;
2052
+ width: 100%;
2053
+ position: relative;
2054
+ -webkit-box-sizing: border-box;
2055
+ box-sizing: border-box;
2056
+ display: -ms-flexbox;
2057
+ display: flex;
2058
+ -ms-flex-direction: column;
2059
+ flex-direction: column;
2060
+ -ms-flex-wrap: nowrap;
2061
+ flex-wrap: nowrap;
2062
+ -ms-flex-pack: justify;
2063
+ justify-content: space-between;
2064
+ -ms-flex-align: center;
2065
+ align-items: center;
2066
+ /**
2067
+ * Middle
2068
+ */
2069
+ /**
2070
+ * Bottom
2071
+ */ }
2072
+ @media only screen and (max-width: 767px) {
2073
+ main[data-block="pixelthrone/comingsoon--temp-05"] {
2074
+ -ms-flex-direction: column-reverse;
2075
+ flex-direction: column-reverse;
2076
+ -ms-flex-pack: start;
2077
+ justify-content: flex-start;
2078
+ -ms-flex-align: start;
2079
+ align-items: flex-start; } }
2080
+ main[data-block="pixelthrone/comingsoon--temp-05"] .middle-content__wrapper {
2081
+ position: relative;
2082
+ z-index: 10;
2083
+ text-align: center;
2084
+ -webkit-box-sizing: border-box;
2085
+ box-sizing: border-box;
2086
+ padding-top: 50px; }
2087
+ @media only screen and (max-width: 767px) {
2088
+ main[data-block="pixelthrone/comingsoon--temp-05"] .middle-content__wrapper {
2089
+ text-align: left;
2090
+ padding: 30px 25px 40px 25px; } }
2091
+ main[data-block="pixelthrone/comingsoon--temp-05"] .middle-content__wrapper h1 {
2092
+ padding: 0;
2093
+ margin: 0; }
2094
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper {
2095
+ position: relative;
2096
+ z-index: 10;
2097
+ display: -ms-flexbox;
2098
+ display: flex;
2099
+ -ms-flex-direction: row;
2100
+ flex-direction: row;
2101
+ -ms-flex-wrap: nowrap;
2102
+ flex-wrap: nowrap;
2103
+ -ms-flex-pack: justify;
2104
+ justify-content: space-between;
2105
+ -ms-flex-align: end;
2106
+ align-items: flex-end;
2107
+ -webkit-box-sizing: border-box;
2108
+ box-sizing: border-box;
2109
+ width: 100%;
2110
+ padding: 0 50px;
2111
+ padding-bottom: 30px; }
2112
+ @media only screen and (max-width: 767px) {
2113
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper {
2114
+ text-align: left;
2115
+ padding: 30px 25px 0 25px;
2116
+ -ms-flex-positive: 1;
2117
+ flex-grow: 1;
2118
+ -ms-flex-direction: column;
2119
+ flex-direction: column;
2120
+ -ms-flex-pack: start;
2121
+ justify-content: flex-start;
2122
+ -ms-flex-align: start;
2123
+ align-items: flex-start; } }
2124
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper div:nth-of-type(1) img {
2125
+ margin-bottom: 10px; }
2126
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper div:nth-of-type(1) h3 {
2127
+ padding: 0;
2128
+ margin: 0;
2129
+ color: inherit;
2130
+ margin-top: 10px; }
2131
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper div:nth-of-type(1) p {
2132
+ padding: 0;
2133
+ margin: 10px 0 0 0;
2134
+ color: inherit; }
2135
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper div:nth-of-type(1) p.contacts_wrapper {
2136
+ margin-top: 10px; }
2137
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper div:nth-of-type(1) p.copyright_wrapper {
2138
+ margin-top: 20px; }
2139
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper div:nth-of-type(2) .social__wrapper {
2140
+ width: auto;
2141
+ margin-top: 10px;
2142
+ padding-right: 40px; }
2143
+ @media only screen and (max-width: 767px) {
2144
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper div:nth-of-type(2) .social__wrapper {
2145
+ margin-left: -15px; } }
2146
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper div:nth-of-type(2) .social__wrapper div[data-component="social-icons"] {
2147
+ -ms-flex-pack: center;
2148
+ justify-content: center;
2149
+ width: auto; }
2150
+ main[data-block="pixelthrone/comingsoon--temp-05"] .bottom-content__wrapper div:nth-of-type(2) .social__wrapper div[data-component="social-icons"] button[data-empty="true"] {
2151
+ right: -40px; }
public/dist/dashboard.bundle.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28)}({0:function(e,t){e.exports=React},28:function(e,t,n){"use strict";n.r(t);n(0),n(40),n(41);const{RichText:r}=wp.editor,{Button:o}=wp.components},40:function(e,t){},41:function(e,t){}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28)}({0:function(e,t){e.exports=React},28:function(e,t,n){"use strict";n.r(t);n(0),n(48),n(49);const{RichText:r}=wp.editor,{Button:o}=wp.components},48:function(e,t){},49:function(e,t){}});
public/dist/frontend.bundle.css CHANGED
@@ -62,10 +62,10 @@ body {
62
  -webkit-transition: all 0.6s cubic-bezier(1, 0, 0, 1);
63
  -o-transition: all 0.6s cubic-bezier(1, 0, 0, 1);
64
  transition: all 0.6s cubic-bezier(1, 0, 0, 1);
65
- position: absolute;
66
  bottom: 20px;
67
  right: 20px;
68
- z-index: 10;
69
  /**
70
  * Loading
71
  */
@@ -75,6 +75,10 @@ body {
75
  /**
76
  * Modes
77
  */ }
 
 
 
 
78
  body div[data-component="unlock-page"] * {
79
  -webkit-box-sizing: border-box;
80
  box-sizing: border-box; }
@@ -84,6 +88,10 @@ body {
84
  position: relative;
85
  display: block;
86
  z-index: 2; }
 
 
 
 
87
  body div[data-component="unlock-page"] .button svg {
88
  position: absolute;
89
  top: 50%;
@@ -147,6 +155,11 @@ body {
147
  box-sizing: border-box;
148
  overflow: hidden;
149
  border-radius: 10px; }
 
 
 
 
 
150
  body div[data-component="unlock-page"] .content__wrapper span {
151
  padding: 15px;
152
  position: absolute;
@@ -171,16 +184,24 @@ body {
171
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
172
  font-size: 14px;
173
  color: #555D67;
 
174
  padding: 0;
175
  margin: 0; }
176
  body div[data-component="unlock-page"] .content__wrapper span p.-error {
177
  color: #E20E0F; }
 
 
 
178
  body div[data-component="unlock-page"] .content__wrapper > p {
179
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
180
  font-size: 14px;
181
  color: #555D67;
 
182
  padding: 0;
183
  margin: 0 0 10px 0; }
 
 
 
184
  body div[data-component="unlock-page"] .content__wrapper input {
185
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
186
  background-color: #E8EBEE;
@@ -237,6 +258,9 @@ body {
237
  body div[data-component="unlock-page"][data-message="true"] .content__wrapper span {
238
  opacity: 1;
239
  pointer-events: auto; }
 
 
 
240
  body div[data-component="unlock-page"][data-mode="close"] .button:hover svg path:nth-of-type(1) {
241
  -webkit-transform: translateY(-2px);
242
  -ms-transform: translateY(-2px);
@@ -310,12 +334,12 @@ body {
310
  -webkit-transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
311
  -o-transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
312
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
313
- position: absolute;
314
  bottom: 20px;
315
  right: 20px;
316
  background-color: white;
317
  border-radius: 50px;
318
- z-index: 9;
319
  min-height: 60px;
320
  padding: 5px 10px;
321
  -webkit-box-sizing: border-box;
@@ -332,6 +356,22 @@ body {
332
  align-items: center;
333
  -webkit-box-shadow: 0 7px 14px rgba(50, 50, 93, 0.05), 0 3px 6px rgba(0, 0, 0, 0.08);
334
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.05), 0 3px 6px rgba(0, 0, 0, 0.08); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
335
  body div[data-component="cookie-notice"].-not-alone {
336
  right: 90px; }
337
  body div[data-component="cookie-notice"].-leave {
@@ -342,6 +382,14 @@ body {
342
  color: #555D67;
343
  padding: 0 30px 0 20px;
344
  margin: 0; }
 
 
 
 
 
 
 
 
345
  body div[data-component="cookie-notice"] button {
346
  -webkit-transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
347
  -o-transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
@@ -358,6 +406,10 @@ body {
358
  cursor: pointer;
359
  outline: none;
360
  /* ---- hover ---- */ }
 
 
 
 
361
  body div[data-component="cookie-notice"] button:hover {
362
  background-color: rgba(0, 0, 0, 0.18); }
363
  body main {
62
  -webkit-transition: all 0.6s cubic-bezier(1, 0, 0, 1);
63
  -o-transition: all 0.6s cubic-bezier(1, 0, 0, 1);
64
  transition: all 0.6s cubic-bezier(1, 0, 0, 1);
65
+ position: fixed;
66
  bottom: 20px;
67
  right: 20px;
68
+ z-index: 100;
69
  /**
70
  * Loading
71
  */
75
  /**
76
  * Modes
77
  */ }
78
+ @media only screen and (max-width: 767px) {
79
+ body div[data-component="unlock-page"] {
80
+ bottom: 10px;
81
+ right: 10px; } }
82
  body div[data-component="unlock-page"] * {
83
  -webkit-box-sizing: border-box;
84
  box-sizing: border-box; }
88
  position: relative;
89
  display: block;
90
  z-index: 2; }
91
+ @media only screen and (max-width: 767px) {
92
+ body div[data-component="unlock-page"] .button {
93
+ width: 54px;
94
+ height: 54px; } }
95
  body div[data-component="unlock-page"] .button svg {
96
  position: absolute;
97
  top: 50%;
155
  box-sizing: border-box;
156
  overflow: hidden;
157
  border-radius: 10px; }
158
+ @media only screen and (max-width: 767px) {
159
+ body div[data-component="unlock-page"] .content__wrapper {
160
+ max-width: calc( 100vw - 55px);
161
+ padding-right: 40px;
162
+ bottom: -22px; } }
163
  body div[data-component="unlock-page"] .content__wrapper span {
164
  padding: 15px;
165
  position: absolute;
184
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
185
  font-size: 14px;
186
  color: #555D67;
187
+ line-height: 140%;
188
  padding: 0;
189
  margin: 0; }
190
  body div[data-component="unlock-page"] .content__wrapper span p.-error {
191
  color: #E20E0F; }
192
+ @media only screen and (max-width: 767px) {
193
+ body div[data-component="unlock-page"] .content__wrapper span p {
194
+ font-size: 13px; } }
195
  body div[data-component="unlock-page"] .content__wrapper > p {
196
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
197
  font-size: 14px;
198
  color: #555D67;
199
+ line-height: 140%;
200
  padding: 0;
201
  margin: 0 0 10px 0; }
202
+ @media only screen and (max-width: 767px) {
203
+ body div[data-component="unlock-page"] .content__wrapper > p {
204
+ font-size: 13px; } }
205
  body div[data-component="unlock-page"] .content__wrapper input {
206
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
207
  background-color: #E8EBEE;
258
  body div[data-component="unlock-page"][data-message="true"] .content__wrapper span {
259
  opacity: 1;
260
  pointer-events: auto; }
261
+ @media only screen and (max-width: 767px) {
262
+ body div[data-component="unlock-page"][data-message="true"] .content__wrapper {
263
+ bottom: -12px; } }
264
  body div[data-component="unlock-page"][data-mode="close"] .button:hover svg path:nth-of-type(1) {
265
  -webkit-transform: translateY(-2px);
266
  -ms-transform: translateY(-2px);
334
  -webkit-transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
335
  -o-transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
336
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
337
+ position: fixed;
338
  bottom: 20px;
339
  right: 20px;
340
  background-color: white;
341
  border-radius: 50px;
342
+ z-index: 10;
343
  min-height: 60px;
344
  padding: 5px 10px;
345
  -webkit-box-sizing: border-box;
356
  align-items: center;
357
  -webkit-box-shadow: 0 7px 14px rgba(50, 50, 93, 0.05), 0 3px 6px rgba(0, 0, 0, 0.08);
358
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.05), 0 3px 6px rgba(0, 0, 0, 0.08); }
359
+ @media only screen and (max-width: 1023px) {
360
+ body div[data-component="cookie-notice"] {
361
+ max-width: 660px; } }
362
+ @media only screen and (max-width: 767px) {
363
+ body div[data-component="cookie-notice"] {
364
+ -ms-flex-direction: column;
365
+ flex-direction: column;
366
+ -ms-flex-pack: start;
367
+ justify-content: flex-start;
368
+ -ms-flex-align: start;
369
+ align-items: flex-start;
370
+ padding: 20px 20px 10px 20px;
371
+ border-radius: 20px;
372
+ max-width: calc( 100vw - 90px);
373
+ right: 75px !important;
374
+ bottom: 10px !important; } }
375
  body div[data-component="cookie-notice"].-not-alone {
376
  right: 90px; }
377
  body div[data-component="cookie-notice"].-leave {
382
  color: #555D67;
383
  padding: 0 30px 0 20px;
384
  margin: 0; }
385
+ @media only screen and (max-width: 767px) {
386
+ body div[data-component="cookie-notice"] p {
387
+ padding: 0; } }
388
+ @media only screen and (max-width: 1023px) {
389
+ body div[data-component="cookie-notice"] p {
390
+ font-size: 13px; }
391
+ body div[data-component="cookie-notice"] p br {
392
+ display: none; } }
393
  body div[data-component="cookie-notice"] button {
394
  -webkit-transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
395
  -o-transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
406
  cursor: pointer;
407
  outline: none;
408
  /* ---- hover ---- */ }
409
+ @media only screen and (max-width: 767px) {
410
+ body div[data-component="cookie-notice"] button {
411
+ margin-top: 15px;
412
+ width: 100%; } }
413
  body div[data-component="cookie-notice"] button:hover {
414
  background-color: rgba(0, 0, 0, 0.18); }
415
  body main {
public/dist/frontend.bundle.js CHANGED
@@ -46,7 +46,7 @@
46
  * Draggable base class
47
  * MIT license
48
  */
49
- !function(o,r){n=[i(5)],void 0===(s=function(t){return function(t,e){"use strict";function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){for(var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",s=0;s<this.handles.length;s++){var o=this.handles[s];this._bindStartEvent(o,e),o[i]("click",this),t.PointerEvent&&(o.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){var i=this.okayPointerDown(t);i&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var s={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=s[t.target.nodeName],i=o[t.target.type],n=!e||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}(o,t)}.apply(e,n))||(t.exports=s)}(window)},function(t,e,i){var n,s;window,n=[i(2),i(6),i(1)],void 0===(s=function(t,e,i){return function(t,e,i,n){"use strict";var s="http://www.w3.org/2000/svg";function o(t,e){this.direction=t,this.parent=e,this._create()}o.prototype=Object.create(i.prototype),o.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(s,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(s,"path"),i=function(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},o.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},o.prototype.handleEvent=n.handleEvent,o.prototype.onclick=function(t){var e=document.activeElement;e&&e==this.element&&this.onTap(t,t)},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e,n=this.parent.selectedIndex==i?"disable":"enable";this[n]()}},o.prototype.destroy=function(){this.deactivate()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var r=e.prototype;return r._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},r.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},r.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}(0,t,e,i)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(2),i(6),i(1)],void 0===(s=function(t,e,i){return function(t,e,i,n){"use strict";function s(t){this.parent=t,this._create()}s.prototype=new i,s.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,o=n;o<s;o++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},s.prototype.onTap=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},s.prototype.destroy=function(){this.deactivate()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=s,e}(0,t,e,i)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(3),i(1),i(2)],void 0===(s=function(t,e,i){return function(t,e,i){"use strict";function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){if("playing"!=this.state){var t=document.hidden;t?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick())}},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}(t,e,i)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(2),i(1)],void 0===(s=function(t,e){return function(t,e,i){"use strict";var n=e.prototype;return n.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var n=this.cells.length;e=void 0===e?n:e;var s=function(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}(i),o=e==n;if(o)this.slider.appendChild(s);else{var r=this.cells[e].element;this.slider.insertBefore(s,r)}if(0===e)this.cells=i.concat(this.cells);else if(o)this.cells=this.cells.concat(i);else{var a=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i),this.cellChange(e,!0)}},n.append=function(t){this.insert(t,this.cells.length)},n.prepend=function(t){this.insert(t,0)},n.remove=function(t){var e=this.getCells(t);if(e&&e.length){var n=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);n=Math.min(e,n),i.removeFrom(this.cells,t)},this),this.cellChange(n,!0)}},n.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},n.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}(0,t,e)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(2),i(1)],void 0===(s=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createLazyload");var n=e.prototype;function s(t,e){this.img=t,this.flickity=e,this.load()}return n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,n=[];this.getAdjacentCellElements(e).forEach(function(t){var e=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),n=t.getAttribute("data-flickity-lazyload-src"),s=t.getAttribute("data-flickity-lazyload-srcset");if(e||n||s)return[t]}var o=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(o)}(t);n=n.concat(e)}),n.forEach(function(t){new s(t,this)},this)}},s.prototype.handleEvent=i.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=s,e}(0,t,e)}.apply(e,n))||(t.exports=s)},,,,,,,,,,function(t,e){const i="Coming Soon Blocks",n="🤘 https://pixelthrone.com",s={color1:"#474B53",color2:"#FFFFFF",color3:"#474B53",bg:"#ffc400"};console.log("%c// made by %c— "+i+" —%c "+n,"padding:8px 5px; color:"+s.color1+"; line-height:20px;","padding:8px 15px; color:"+s.color2+"; background-color:"+s.bg+"; line-height:20px;","padding:8px 5px; color:"+s.color3+"; line-height:20px;")},,function(t,e,i){"use strict";i.r(e);i(42),i(29);function n(t,e,i){const n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);const s="expires="+n.toUTCString();document.cookie=t+"="+e+";"+s+";path=/"}document.addEventListener("DOMContentLoaded",new
50
  /**
51
  * Password protected component.
52
  *
@@ -73,4 +73,4 @@ class{constructor(){this.element=document.querySelector('[data-component="cookie
73
  * @link Helder Vilela from Pixelthrone_uri
74
  * @license GPL-3.0
75
  */
76
- const r={autoPlay:5e3,pageDots:!1,prevNextButtons:!1,draggable:!1,wrapAround:!0};document.addEventListener("DOMContentLoaded",function(){const t=document.querySelector('[data-component="slideshow-background"] > div');t&&new o.a(t,r)}(),!1)},,,,,,,,,,,function(t,e){}]);
46
  * Draggable base class
47
  * MIT license
48
  */
49
+ !function(o,r){n=[i(5)],void 0===(s=function(t){return function(t,e){"use strict";function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){for(var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",s=0;s<this.handles.length;s++){var o=this.handles[s];this._bindStartEvent(o,e),o[i]("click",this),t.PointerEvent&&(o.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){var i=this.okayPointerDown(t);i&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var s={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=s[t.target.nodeName],i=o[t.target.type],n=!e||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}(o,t)}.apply(e,n))||(t.exports=s)}(window)},function(t,e,i){var n,s;window,n=[i(2),i(6),i(1)],void 0===(s=function(t,e,i){return function(t,e,i,n){"use strict";var s="http://www.w3.org/2000/svg";function o(t,e){this.direction=t,this.parent=e,this._create()}o.prototype=Object.create(i.prototype),o.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(s,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(s,"path"),i=function(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},o.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},o.prototype.handleEvent=n.handleEvent,o.prototype.onclick=function(t){var e=document.activeElement;e&&e==this.element&&this.onTap(t,t)},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e,n=this.parent.selectedIndex==i?"disable":"enable";this[n]()}},o.prototype.destroy=function(){this.deactivate()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var r=e.prototype;return r._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},r.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},r.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}(0,t,e,i)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(2),i(6),i(1)],void 0===(s=function(t,e,i){return function(t,e,i,n){"use strict";function s(t){this.parent=t,this._create()}s.prototype=new i,s.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,o=n;o<s;o++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},s.prototype.onTap=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},s.prototype.destroy=function(){this.deactivate()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=s,e}(0,t,e,i)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(3),i(1),i(2)],void 0===(s=function(t,e,i){return function(t,e,i){"use strict";function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){if("playing"!=this.state){var t=document.hidden;t?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick())}},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}(t,e,i)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(2),i(1)],void 0===(s=function(t,e){return function(t,e,i){"use strict";var n=e.prototype;return n.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var n=this.cells.length;e=void 0===e?n:e;var s=function(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}(i),o=e==n;if(o)this.slider.appendChild(s);else{var r=this.cells[e].element;this.slider.insertBefore(s,r)}if(0===e)this.cells=i.concat(this.cells);else if(o)this.cells=this.cells.concat(i);else{var a=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i),this.cellChange(e,!0)}},n.append=function(t){this.insert(t,this.cells.length)},n.prepend=function(t){this.insert(t,0)},n.remove=function(t){var e=this.getCells(t);if(e&&e.length){var n=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);n=Math.min(e,n),i.removeFrom(this.cells,t)},this),this.cellChange(n,!0)}},n.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},n.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}(0,t,e)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(2),i(1)],void 0===(s=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createLazyload");var n=e.prototype;function s(t,e){this.img=t,this.flickity=e,this.load()}return n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,n=[];this.getAdjacentCellElements(e).forEach(function(t){var e=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),n=t.getAttribute("data-flickity-lazyload-src"),s=t.getAttribute("data-flickity-lazyload-srcset");if(e||n||s)return[t]}var o=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(o)}(t);n=n.concat(e)}),n.forEach(function(t){new s(t,this)},this)}},s.prototype.handleEvent=i.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=s,e}(0,t,e)}.apply(e,n))||(t.exports=s)},,,,,,,,,,function(t,e){const i="Coming Soon Blocks",n="🤘 https://pixelthrone.com",s={color1:"#474B53",color2:"#FFFFFF",color3:"#474B53",bg:"#ffc400"};console.log("%c// made by %c— "+i+" —%c "+n,"padding:8px 5px; color:"+s.color1+"; line-height:20px;","padding:8px 15px; color:"+s.color2+"; background-color:"+s.bg+"; line-height:20px;","padding:8px 5px; color:"+s.color3+"; line-height:20px;")},,function(t,e,i){"use strict";i.r(e);i(50),i(29);function n(t,e,i){const n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);const s="expires="+n.toUTCString();document.cookie=t+"="+e+";"+s+";path=/"}document.addEventListener("DOMContentLoaded",new
50
  /**
51
  * Password protected component.
52
  *
73
  * @link Helder Vilela from Pixelthrone_uri
74
  * @license GPL-3.0
75
  */
76
+ const r={autoPlay:5e3,pageDots:!1,prevNextButtons:!1,draggable:!1,wrapAround:!0};document.addEventListener("DOMContentLoaded",function(){const t=document.querySelector('[data-component="slideshow-background"] > div');t&&new o.a(t,r)}(),!1)},,,,,,,,,,,,,,,,,,,function(t,e){}]);
public/dist/global.bundle.css CHANGED
@@ -52,89 +52,201 @@
52
  *
53
  * @since 1.0.0
54
  */
55
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
56
  /**
 
 
 
 
 
 
57
  * Buttons
58
  *
59
  * @since 1.0.0
60
  */
61
- /**
62
  * Enabled mode
63
  *
64
  * @since 1.0.0
65
  */ }
66
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a {
67
- position: relative; }
68
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a::after {
69
- content: " ";
70
- width: 100%;
71
- height: 3px;
72
- position: absolute;
73
- left: 0;
74
- bottom: 0;
75
- background-color: #2ED775;
76
- display: none; }
77
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a i::before {
78
- margin-top: 6px; }
79
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu {
80
- padding-bottom: 0; }
81
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li a i::before {
82
- margin-top: 7px;
83
- font-size: 18px; }
84
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_status {
85
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
86
- background-color: #2ED775;
87
- padding-top: 3px;
88
- padding-bottom: 3px;
89
- font-weight: 600;
90
- font-size: 12px;
91
- pointer-events: none;
92
- display: none; }
93
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_status a {
94
- color: #23282c;
95
- text-transform: uppercase;
96
- font-size: 11px;
97
- font-weight: 600;
98
- height: auto;
99
- min-height: auto;
100
- line-height: 100%;
101
- padding: 7px 0 7px 11px; }
102
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li:nth-of-type(3) {
103
- margin-bottom: 12px; }
104
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li:nth-of-type(4) {
105
- background: #464b50;
106
- padding-top: 8px;
107
- padding-left: 3px; }
108
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li:nth-of-type(5) {
109
- background: #464b50;
110
- padding-left: 3px; }
111
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li:nth-of-type(6) {
112
- background: #464b50;
113
- padding-left: 3px; }
114
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li:nth-of-type(6) a {
115
- color: #FFD100 !important; }
116
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li:last-of-type {
117
- padding-bottom: 8px; }
118
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group.-coming-soon-enabled > a::after {
119
- display: block; }
120
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group.-coming-soon-enabled .ab-submenu {
121
- padding-top: 0; }
122
- body #wp-admin-bar-pt_comingsoonblocks_toolbar_group.-coming-soon-enabled .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_status {
123
  display: block; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
 
125
  /**
126
  * Admin menu.
127
  *
128
  * @since 1.0.0
129
  */
130
- body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li > a[href*='account']:not(.current),
131
- body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li:nth-last-child(3) a:not(.current),
132
- body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li:nth-last-child(2) a:not(.current) {
133
- opacity: 0.6; }
134
- body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li > a[href*='account']:not(.current):hover,
135
- body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li:nth-last-child(3) a:not(.current):hover,
136
- body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li:nth-last-child(2) a:not(.current):hover {
137
- opacity: 1; }
138
-
139
- body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li:nth-last-child(1) a span {
140
- color: #FFD100; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  *
53
  * @since 1.0.0
54
  */
55
+ body {
56
  /**
57
+ * Color Scheme
58
+ *
59
+ * @since 1.0.0
60
+ */ }
61
+ body #wp-admin-bar-pt_comingsoonblocks_toolbar_group {
62
+ /**
63
  * Buttons
64
  *
65
  * @since 1.0.0
66
  */
67
+ /**
68
  * Enabled mode
69
  *
70
  * @since 1.0.0
71
  */ }
72
+ body #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a {
73
+ position: relative; }
74
+ body #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a::after {
75
+ content: " ";
76
+ width: 5px;
77
+ height: 5px;
78
+ border-radius: 50%;
79
+ position: absolute;
80
+ right: 6px;
81
+ bottom: 4px;
82
+ border: 2px solid transparent;
83
+ display: none; }
84
+ body #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a i::before {
85
+ vertical-align: sub;
86
+ -webkit-transform: translateY(1px);
87
+ -ms-transform: translateY(1px);
88
+ transform: translateY(1px); }
89
+ body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu {
90
+ padding-bottom: 0; }
91
+ body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li a i::before {
92
+ margin-top: 7px;
93
+ font-size: 18px; }
94
+ body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us {
95
+ margin-top: 13px;
96
+ padding-top: 6px;
97
+ background-color: #32373C; }
98
+ body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade {
99
+ padding-bottom: 6px; }
100
+ body #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade a {
101
+ color: inherit; }
102
+ body #wp-admin-bar-pt_comingsoonblocks_toolbar_group.-coming-soon-enabled > a::after {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  display: block; }
104
+ body.admin-color-fresh #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a::after {
105
+ border-color: #23282C;
106
+ background-color: #00A0D2; }
107
+ body.admin-color-fresh #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us {
108
+ background-color: #3a4248; }
109
+ body.admin-color-fresh #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum {
110
+ background-color: #3a4248; }
111
+ body.admin-color-fresh #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade {
112
+ color: #00A0D2;
113
+ background-color: #3a4248; }
114
+ body.admin-color-fresh #wp-admin-bar-pt_comingsoonblocks_toolbar_group.hover > a::after {
115
+ border-color: #32373C; }
116
+ body.admin-color-light #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a {
117
+ color: #999999; }
118
+ body.admin-color-light #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a::after {
119
+ border-color: #E5E5E5;
120
+ background-color: #04A4CB; }
121
+ body.admin-color-light #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us {
122
+ background-color: #E5E5E5; }
123
+ body.admin-color-light #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum {
124
+ background-color: #E5E5E5; }
125
+ body.admin-color-light #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade {
126
+ color: #04A4CB;
127
+ background-color: #E5E5E5; }
128
+ body.admin-color-light #wp-admin-bar-pt_comingsoonblocks_toolbar_group.hover > a::after {
129
+ border-color: #FFFFFF; }
130
+ body.admin-color-blue #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a {
131
+ color: #E5F8FF; }
132
+ body.admin-color-blue #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a::after {
133
+ border-color: #52ACCC;
134
+ background-color: #096484; }
135
+ body.admin-color-blue #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us {
136
+ background-color: #52ACCC; }
137
+ body.admin-color-blue #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum {
138
+ background-color: #52ACCC; }
139
+ body.admin-color-blue #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade {
140
+ color: #096484;
141
+ background-color: #52ACCC; }
142
+ body.admin-color-blue #wp-admin-bar-pt_comingsoonblocks_toolbar_group.hover > a::after {
143
+ border-color: #4796B3; }
144
+ body.admin-color-coffee #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a {
145
+ color: #E5F8FF; }
146
+ body.admin-color-coffee #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a::after {
147
+ border-color: #59524D;
148
+ background-color: #C7A589; }
149
+ body.admin-color-coffee #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us {
150
+ background-color: #59524D; }
151
+ body.admin-color-coffee #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum {
152
+ background-color: #59524D; }
153
+ body.admin-color-coffee #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade {
154
+ color: #C7A589;
155
+ background-color: #59524D; }
156
+ body.admin-color-coffee #wp-admin-bar-pt_comingsoonblocks_toolbar_group.hover > a::after {
157
+ border-color: #46403C; }
158
+ body.admin-color-ectoplasm #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a {
159
+ color: #ECE6F6; }
160
+ body.admin-color-ectoplasm #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a::after {
161
+ border-color: #523F6D;
162
+ background-color: #A3B745; }
163
+ body.admin-color-ectoplasm #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us {
164
+ background-color: #523F6D; }
165
+ body.admin-color-ectoplasm #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum {
166
+ background-color: #523F6D; }
167
+ body.admin-color-ectoplasm #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade {
168
+ color: #A3B745;
169
+ background-color: #523F6D; }
170
+ body.admin-color-ectoplasm #wp-admin-bar-pt_comingsoonblocks_toolbar_group.hover > a::after {
171
+ border-color: #413257; }
172
+ body.admin-color-midnight #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a {
173
+ color: #ECE6F6; }
174
+ body.admin-color-midnight #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a::after {
175
+ border-color: #363B3F;
176
+ background-color: #E14D43; }
177
+ body.admin-color-midnight #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us {
178
+ background-color: #363B3F; }
179
+ body.admin-color-midnight #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum {
180
+ background-color: #363B3F; }
181
+ body.admin-color-midnight #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade {
182
+ color: #E14D43;
183
+ background-color: #363B3F; }
184
+ body.admin-color-midnight #wp-admin-bar-pt_comingsoonblocks_toolbar_group.hover > a::after {
185
+ border-color: #26292B; }
186
+ body.admin-color-ocean #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a {
187
+ color: #F2FCFF; }
188
+ body.admin-color-ocean #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a::after {
189
+ border-color: #738E96;
190
+ background-color: #76d27d; }
191
+ body.admin-color-ocean #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us {
192
+ background-color: #738E96; }
193
+ body.admin-color-ocean #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum {
194
+ background-color: #738E96; }
195
+ body.admin-color-ocean #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade {
196
+ color: #9EBAA0;
197
+ background-color: #738E96; }
198
+ body.admin-color-ocean #wp-admin-bar-pt_comingsoonblocks_toolbar_group.hover > a::after {
199
+ border-color: #627C84; }
200
+ body.admin-color-sunrise #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a {
201
+ color: #F3F1F1; }
202
+ body.admin-color-sunrise #wp-admin-bar-pt_comingsoonblocks_toolbar_group > a::after {
203
+ border-color: #CF4944;
204
+ background-color: #F6D308; }
205
+ body.admin-color-sunrise #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_contact-us {
206
+ background-color: #CF4944; }
207
+ body.admin-color-sunrise #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_support-forum {
208
+ background-color: #CF4944; }
209
+ body.admin-color-sunrise #wp-admin-bar-pt_comingsoonblocks_toolbar_group .ab-submenu li#wp-admin-bar-pt_comingsoonblocks_toolbar_upgrade {
210
+ color: #F6D308;
211
+ background-color: #CF4944; }
212
+ body.admin-color-sunrise #wp-admin-bar-pt_comingsoonblocks_toolbar_group.hover > a::after {
213
+ border-color: #CD4843; }
214
 
215
  /**
216
  * Admin menu.
217
  *
218
  * @since 1.0.0
219
  */
220
+ body {
221
+ /**
222
+ * Color Scheme
223
+ *
224
+ * @since 1.0.0
225
+ */ }
226
+ body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li > a[href*='account']:not(.current),
227
+ body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li:nth-last-child(3) a:not(.current),
228
+ body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li:nth-last-child(2) a:not(.current) {
229
+ opacity: 0.6; }
230
+ body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li > a[href*='account']:not(.current):hover,
231
+ body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li:nth-last-child(3) a:not(.current):hover,
232
+ body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li:nth-last-child(2) a:not(.current):hover {
233
+ opacity: 1; }
234
+ body #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li:nth-of-type(7) a {
235
+ color: inherit;
236
+ font-weight: bold; }
237
+ body.admin-color-fresh #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing {
238
+ color: #00A0D2; }
239
+ body.admin-color-light #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing {
240
+ color: #04A4CB; }
241
+ body.admin-color-blue #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing {
242
+ color: #096484; }
243
+ body.admin-color-coffee #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing {
244
+ color: #C7A589; }
245
+ body.admin-color-ectoplasm #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing {
246
+ color: #A3B745; }
247
+ body.admin-color-midnight #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing {
248
+ color: #E14D43; }
249
+ body.admin-color-ocean #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing {
250
+ color: #9EBAA0; }
251
+ body.admin-color-sunrise #adminmenuwrap > ul #menu-posts-coming-soon-blocks ul li a .pricing {
252
+ color: #F6D308; }
readme.txt CHANGED
@@ -1,22 +1,123 @@
1
- === Coming Soon Blocks ===
2
  Author URI: https://heldervilela.com
3
  Plugin URI: https://pixelthrone.com/coming-soon-blocks
4
  Contributors: heldervilela
5
- Tags: coming soon, under construction, maintenance, soon, blocks, gutenberg, landing page, page builder, gutenberg blocks, editor
6
- Requires at least: 4.9.0
7
- Tested up to: 5.0.0
8
  Requires PHP: 5.4
9
- Stable tag: 1.0.0
10
  Text Domain: coming-soon-blocks
11
  License: GPL-3.0
12
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
 
14
  == Description ==
15
 
16
- Create a simple Coming Soon Page or Maintenance Mode Page. Work on your site in private while visitors see a "Coming Soon" or "Maintenance Mode" page.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  == Screenshots ==
19
 
 
 
 
 
 
 
 
 
 
20
  == Installation ==
21
 
22
  = Using The WordPress Dashboard =
@@ -37,20 +138,51 @@ Create a simple Coming Soon Page or Maintenance Mode Page. Work on your site in
37
  = Using FTP =
38
 
39
  1. Download `coming-soon-blocks.zip`
40
- 2. Extract the `coming-soon-blocks.zip` directory to your computer
41
  3. Upload the `coming-soon-blocks` directory to the `/wp-content/plugins/` directory
42
  4. Activate the plugin in the Plugin's dashboard
43
 
44
  == Frequently Asked Questions ==
45
- = What's the difference between Coming Soon Page Mode and Maintenance Mode? =
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
- Coming Soon Page Mode returns a http status 200 and allows your site to be indexed by Google and other searching engine while under construction. You should always using Coming Soon Page mode when your site is under construction.
 
 
48
 
49
- Maintenance Mode returns a http status code 503 and should be used when you are doing short term maintenance on an existing site. This will let search engines know your site is under going maintenance and should return in 1 day when maintenance mode is finished.
 
 
50
 
51
- = Who can see the website while it's under construction? =
52
- Only logged in visitors can see the website while you website is under construction. Logged out visitors will see the coming soon page or maintenance mode page depending on which mode you have selected.
 
 
 
 
 
 
 
 
 
 
53
 
54
  == Changelog ==
 
 
 
 
 
55
  = 1.0.0, December 7, 2018 =
56
  * Initial release on WordPress.org. Enjoy! 🎉
1
+ === Coming Soon Page and Maintenance Mode for WordPress Block Editor ===
2
  Author URI: https://heldervilela.com
3
  Plugin URI: https://pixelthrone.com/coming-soon-blocks
4
  Contributors: heldervilela
5
+ Tags: coming soon, under construction, maintenance, launch page, blocks, gutenberg, easy
6
+ Requires at least: 5.0
7
+ Tested up to: 5.0
8
  Requires PHP: 5.4
9
+ Stable tag: 1.1.0
10
  Text Domain: coming-soon-blocks
11
  License: GPL-3.0
12
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
 
14
  == Description ==
15
 
16
+ Creating WordPress coming soon pages should be fast & easy.
17
+
18
+ **Coming Soon Blocks** is a new and innovative way of building WordPress pages visually, all thanks to the new block editor and the various additions we made to it. No designer or developer skills required, the only technique you’ll need to master is clicking.
19
+
20
+ With **Coming Soon Blocks** you can create a unique and stylish Coming Soon or Maintenance page for your visitors while you are developing your website in private.
21
+ The only difficulty you will have is to choose among the various templates that we have available
22
+
23
+ #### INCLUDED BLOCKS ( Pages )
24
+
25
+ * [Demo 01](https://comingsoon-blocks.pixelthrone.info/01/)
26
+ * [Demo 02](https://comingsoon-blocks.pixelthrone.info/02/)
27
+ * [Demo 03](https://comingsoon-blocks.pixelthrone.info/03/)
28
+ * [Demo 04](https://comingsoon-blocks.pixelthrone.info/04/)
29
+ * [Demo 05](https://comingsoon-blocks.pixelthrone.info/05/)
30
+
31
+ #### OTHER OPTIONS
32
+
33
+ * [Password Protected](https://comingsoon-blocks.pixelthrone.info/password-protected/)
34
+ * [Cookie Notice](https://comingsoon-blocks.pixelthrone.info/cookie-notice/)
35
+
36
+
37
+ ### BLOCK OPTIONS
38
+ #### Backgrounds
39
+ Backgrounds is one of the most important areas in a website, so we've added every possible option so that you can create the biggest impact.
40
+ The background options are:
41
+
42
+ * Solid Color
43
+ * Single Image
44
+ * Slideshow (*premium*)
45
+ * Video (*premium*)
46
+
47
+ In addition you can add a layer with solid color and define the opacity in order to improve the reading of the text over the background.
48
+
49
+ #### Typography (*premium*)
50
+ Here we do not leave anything to chance and so we created a super advanced editor where you can choose between the top 50 fonts in Google Fonts. You can also choose the text color, font size, weight, line height and letter spacing.
51
+ All this for desktop and mobil.
52
+
53
+ ### PAGE SETTINGS
54
+ #### Show normal website to logged in users
55
+ With this option the logged in users will view the website normally while visitors see the maintenance / coming soon page.
56
+
57
+ #### Schedule Publish (*premium*)
58
+ Schedule your site to be published at a particular time and date, with this option you just have to tell the day and time for the coming Soon to be offline and your site visible to everyone.
59
+
60
+ #### Password Protected
61
+ Add this option to view the website using a secret password. Ideal for accessing the website without sharing the admin login.
62
+
63
+ #### Redirect Mode
64
+ If you change your domain and you want to forward the users to the new url then this is the option you are looking for.
65
+
66
+ #### Cookie Notice
67
+ A simple but elegant notice which notifies visitors that the website uses cookies.
68
+
69
+ #### Custom CSS & Javascript
70
+ This option is perfect for adding your analytics or facebook tracking code. If you want to do an extra customization on the layout then this CSS option is what you are looking for.
71
+ The available options are:
72
+
73
+ * Google Analytics Tracking ID
74
+ * Tracking Pixel & 3rd Party Analytics Code (premium)
75
+ * Free Javascript (*premium*)
76
+ * Free CSS (*premium*)
77
+
78
+ ### PAGE SEO
79
+ #### Search Engines
80
+ SEO is the most important options for a page and so we've created all the options you'll need to get the best ranking possible.
81
+ The available options are:
82
+
83
+ * Page Title
84
+ * Description meta tag
85
+ * Keywords meta tag
86
+ * Author meta tag
87
+ * Copyright meta tag
88
+
89
+ #### Facebook & Twitter Share Details
90
+ A set of options to configure how your page looks when shared on social networks.
91
+
92
+ #### Temporarily Pause Search Engines
93
+ If your site is already indexed and you're just taking it down for a while, then enable this option. It temporarily discourages search engines from crawling the site telling them it's under construction by sending a 503 Service Unavailable response.
94
+
95
+ #### Send no-cache Headers
96
+ If you don't want the coming soon page preview to be cached by Facebook and other social media then enable this option. Once you switch to the normal site social media preview (visible when sharing the site link) will immediately be refreshed.
97
+
98
+ ### PAGE LOOK & FEEL
99
+ #### Favicon
100
+ Choose the icon that appears in the browser tab.
101
+
102
+ #### From a Trusted Developer
103
+ This plugin is created and maintained by Helder Vilela from PixelThrone.
104
+
105
+
106
+ .
107
+ #### Notes
108
+ > Some features are *Premium*. Which means you will need Starter or Professional plan to unlock those features.
109
 
110
  == Screenshots ==
111
 
112
+ 1. Add a block (template)
113
+ 2. Edit background and social icons
114
+ 3. Blocks List ( templates )
115
+ 4. Edit Social Links
116
+ 5. Typography Options
117
+ 6. Page Options
118
+ 7. Some of the templates available
119
+ 8. Cookie notice
120
+
121
  == Installation ==
122
 
123
  = Using The WordPress Dashboard =
138
  = Using FTP =
139
 
140
  1. Download `coming-soon-blocks.zip`
141
+ 2. Extract the `coming-soon-blocks` directory to your computer
142
  3. Upload the `coming-soon-blocks` directory to the `/wp-content/plugins/` directory
143
  4. Activate the plugin in the Plugin's dashboard
144
 
145
  == Frequently Asked Questions ==
146
+ = Is Coming Soon Blocks free? =
147
+ Yes, all the free options added will always be free. However, there are some premium options (marked as such), these options are a way to keep improving both versions (Free and Premium).
148
+ Thanks for the support 👍.
149
+
150
+ = Features requests or you have a new idea? =
151
+ That’s perfect because we want to make our plugin great and to suit your needs!
152
+
153
+ Please use the **Contact Us** button under the **Coming Soon** main button in the admin left menu.
154
+
155
+ = What’s the difference between Coming Soon Page Mode and Maintenance Mode? =
156
+ Coming Soon Page Mode returns a HTTP status 200 and allows your site to be indexed by Google and other search engines while under construction. You should always using Coming Soon Page mode when your site is under construction.
157
+
158
+ Maintenance Mode returns a HTTP status code 503 and should be used when you are doing short term maintenance on an existing website. This will let search engines know your website is under maintenance and should return in 1 day when maintenance mode is finished.
159
 
160
+ = Who can see the website while it’s under construction? =
161
+ Only logged in visitors (or if you use the Password Protected option) can see the website while your website is under construction.
162
+ Logged out visitors will see the coming soon page or maintenance mode page depending on which mode you have selected.
163
 
164
+ = Disabled Coming Soon Plugin and it still shows? =
165
+ This is always a caching issue.
166
+ Go to the caching plugin’s setting page and clear the cache.
167
 
168
+ = Can I use Coming Soon Blocks with any theme? =
169
+ Yes, in fact we do not make use of any source of the theme.
170
+
171
+ = Where can I ask for help? =
172
+ For the free users please reach out via the official support forum on [WordPress.org](https://wordpress.org/support/plugin/coming-soon-blocks).
173
+
174
+ If you have a premium plan you can contact me by email or using the form available in the plugin menu.
175
+
176
+ = Source Code, Suggestions & Issues? =
177
+ * Download the source code
178
+ * Request a feature
179
+ * Submit an issue
180
 
181
  == Changelog ==
182
+ = 1.1.0, December 12, 2018 =
183
+ * New: 4 Templates
184
+ * Tweak: Improvements in color scheme
185
+ * Tweak: Responsive
186
+
187
  = 1.0.0, December 7, 2018 =
188
  * Initial release on WordPress.org. Enjoy! 🎉