Blocksy Companion - Version 1.7.33

Version Description

Download this release

Release Info

Developer creativethemeshq
Plugin Icon wp plugin Blocksy Companion
Version 1.7.33
Comparing to
See all releases

Code changes from version 1.7.32 to 1.7.33

Files changed (55) hide show
  1. blocksy-companion.php +4 -4
  2. framework/extensions/cookies-consent/static/bundle/main.css +1 -1
  3. framework/extensions/instagram/config.php +0 -7
  4. framework/extensions/instagram/ct-instagram/helpers.php +0 -147
  5. framework/extensions/instagram/ct-instagram/options.php +0 -33
  6. framework/extensions/instagram/ct-instagram/static/bundle/1.723de7579d99d3928bad.js +0 -1
  7. framework/extensions/instagram/ct-instagram/static/bundle/main.css +0 -8
  8. framework/extensions/instagram/ct-instagram/static/bundle/main.js +0 -1
  9. framework/extensions/instagram/ct-instagram/static/js/instagram-widget.js +0 -29
  10. framework/extensions/instagram/ct-instagram/static/js/lazy-load-helpers.js +0 -18
  11. framework/extensions/instagram/ct-instagram/static/js/main.js +0 -11
  12. framework/extensions/instagram/ct-instagram/static/js/public-path.js +0 -1
  13. framework/extensions/instagram/ct-instagram/static/sass/main.scss +0 -32
  14. framework/extensions/instagram/ct-instagram/view.php +0 -56
  15. framework/extensions/instagram/ct-instagram/widget.php +0 -17
  16. framework/extensions/instagram/customizer.php +0 -92
  17. framework/extensions/instagram/extension.php +0 -81
  18. framework/extensions/instagram/helpers.php +0 -238
  19. framework/extensions/instagram/readme.php +0 -42
  20. framework/extensions/instagram/static/bundle/0.17a36d03c4d4439f3e19.js +0 -1
  21. framework/extensions/instagram/static/bundle/main.css +0 -8
  22. framework/extensions/instagram/static/bundle/main.js +0 -1
  23. framework/extensions/instagram/static/bundle/sync.js +0 -1
  24. framework/extensions/instagram/static/js/instagram-widget.js +0 -29
  25. framework/extensions/instagram/static/js/lazy-load-helpers.js +0 -18
  26. framework/extensions/instagram/static/js/main.js +0 -17
  27. framework/extensions/instagram/static/js/public-path.js +0 -1
  28. framework/extensions/instagram/static/js/sync.js +0 -60
  29. framework/extensions/instagram/static/js/sync/helpers.js +0 -133
  30. framework/extensions/instagram/static/sass/main.scss +0 -73
  31. framework/extensions/mailchimp/admin-static/bundle/1.4b8b242225582999eec3.js +0 -20
  32. framework/extensions/mailchimp/admin-static/bundle/2.8838a376a98402a4d731.js +0 -1
  33. framework/extensions/mailchimp/static/bundle/main.css +1 -1
  34. framework/extensions/read-progress/config.php +0 -8
  35. framework/extensions/read-progress/extension.php +0 -76
  36. framework/extensions/read-progress/helpers.php +0 -10
  37. framework/extensions/read-progress/readme.php +0 -22
  38. framework/extensions/read-progress/static/bundle/1.4e041077b3d19928a037.js +0 -1
  39. framework/extensions/read-progress/static/bundle/main.css +0 -8
  40. framework/extensions/read-progress/static/bundle/main.js +0 -1
  41. framework/extensions/read-progress/static/js/implementation.js +0 -28
  42. framework/extensions/read-progress/static/js/main.js +0 -9
  43. framework/extensions/read-progress/static/js/public-path.js +0 -1
  44. framework/extensions/read-progress/static/sass/main.scss +0 -29
  45. framework/extensions/trending/static/bundle/main.css +1 -1
  46. framework/extensions/widgets/static/bundle/main.css +1 -1
  47. framework/extensions/woocommerce-extra/static/bundle/main.css +1 -1
  48. readme.txt +4 -0
  49. static/bundle/dashboard.css +1 -1
  50. static/bundle/main.css +1 -1
  51. static/bundle/options.css +1 -1
  52. static/img/extensions.svg +0 -30
  53. static/sass/extensions.scss +0 -35
  54. static/sass/extensions/extensions-config.scss +0 -47
  55. static/sass/extensions/extensions-readme.scss +0 -40
blocksy-companion.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Blocksy Companion
5
  Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
6
- Version: 1.7.32
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
  Text Domain: blc
@@ -37,13 +37,13 @@ if ( function_exists( 'blc_fs' ) ) {
37
  'premium_suffix' => 'PRO',
38
  'is_premium' => false,
39
  'has_addons' => false,
40
- 'has_paid_plans' => true,
41
  'menu' => ( true ? [
42
  'slug' => 'ct-dashboard',
43
  'support' => false,
44
  'contact' => false,
45
- 'pricing' => true,
46
- 'account' => true,
47
  ] : [
48
  'support' => false,
49
  'contact' => false,
3
  /*
4
  Plugin Name: Blocksy Companion
5
  Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
6
+ Version: 1.7.33
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
  Text Domain: blc
37
  'premium_suffix' => 'PRO',
38
  'is_premium' => false,
39
  'has_addons' => false,
40
+ 'has_paid_plans' => false,
41
  'menu' => ( true ? [
42
  'slug' => 'ct-dashboard',
43
  'support' => false,
44
  'contact' => false,
45
+ 'pricing' => false,
46
+ 'account' => false,
47
  ] : [
48
  'support' => false,
49
  'contact' => false,
framework/extensions/cookies-consent/static/bundle/main.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.32
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.33
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
framework/extensions/instagram/config.php DELETED
@@ -1,7 +0,0 @@
1
- <?php
2
-
3
- $config = [
4
- 'description' => __('Show your instagram feed anywhere on your site with the help of a widget or a block.', 'blc')
5
- ];
6
-
7
-
 
 
 
 
 
 
 
framework/extensions/instagram/ct-instagram/helpers.php DELETED
@@ -1,147 +0,0 @@
1
- <?php
2
-
3
- add_action( 'wp_ajax_blocksy_widget_instagram', 'blocksy_widget_instagram_generate_html' );
4
- add_action( 'wp_ajax_nopriv_blocksy_widget_instagram', 'blocksy_widget_instagram_generate_html' );
5
-
6
- function blocksy_widget_instagram_generate_html() {
7
- $instagram_photos = blocksy_get_instagram_photos(
8
- sanitize_text_field( $_GET['username'] ),
9
- intval( sanitize_text_field( $_GET['limit'] ) )
10
- );
11
-
12
- ?>
13
- <?php foreach ( $instagram_photos as $photo ) { ?>
14
- <li
15
- <?php
16
- if ( $photo['is_video'] ) {
17
- echo ' class="ct-is-video"';}
18
- ?>
19
- >
20
- <?php
21
- echo blocksy_simple_image(
22
- $photo['img'],
23
- [
24
- 'tag_name' => 'a',
25
- 'html_atts' => [
26
- 'target' => '_blank',
27
- 'href' => 'https://instagram.com/p/' . $photo['code'],
28
- ],
29
- 'img_atts' => [
30
- 'alt' => esc_attr( $photo['description'] ),
31
- 'title' => esc_attr( $photo['description'] ),
32
- ],
33
- ]
34
- )
35
- ?>
36
- </li>
37
- <?php } ?>
38
-
39
- <?php
40
-
41
- wp_die();
42
- }
43
-
44
- function blocksy_get_instagram_photos( $username, $items = 10 ) {
45
- $transient_name = 'blocksy_widget_instagram_' . md5(
46
- json_encode(
47
- [ $username, $items ]
48
- )
49
- );
50
-
51
- if ( $maybe_transient_data = get_transient( $transient_name ) ) {
52
- return $maybe_transient_data;
53
- }
54
-
55
- $username = trim( $username );
56
-
57
- if ( ! $username ) {
58
- return false;
59
- }
60
- // Instagram page source.
61
- $source = wp_remote_get( 'http://instagram.com/' . $username );
62
-
63
- $instagram_photos = [];
64
-
65
- $remote_response = true;
66
-
67
- if ( is_wp_error( $source ) ) {
68
- $remote_response = null;
69
- }
70
-
71
- if ( 200 !== wp_remote_retrieve_response_code( $source ) ) {
72
- $remote_response = null;
73
- }
74
-
75
- if ( ! $remote_response ) {
76
- return $instagram_photos;
77
- }
78
-
79
- // Get json info about the user.
80
- preg_match( '|window._sharedData = {(.+?)};</script>|', $source['body'], $matches );
81
-
82
- if ( ! isset( $matches[1] ) ) {
83
- return null;
84
- }
85
-
86
- $json_data = "{{$matches[1]}}";
87
- $json_data = json_decode( $json_data, true );
88
-
89
- if ( ! $json_data ) {
90
- return new WP_Error( 'bad_json', __( 'Instagram has returned invalid data.', 'blocksy' ) );
91
- }
92
-
93
- // Get instagram images.
94
- if ( isset( $json_data['entry_data']['ProfilePage'][0]['graphql']['user']['edge_owner_to_timeline_media']['edges'] ) ) {
95
- $images = $json_data['entry_data']['ProfilePage'][0]['graphql']['user']['edge_owner_to_timeline_media']['edges'];
96
- } else {
97
- return $instagram_photos;
98
- }
99
-
100
- if ( count( $images ) ) {
101
- foreach ( $images as $image ) {
102
- if ( count( $instagram_photos ) >= $items ) {
103
- break;
104
- }
105
-
106
- $image = $image['node'];
107
-
108
- if ( ! isset( $image['edge_media_to_caption'] ) ) {
109
- $image['edge_media_to_caption'] = array(
110
- 'edges' => array(
111
- array(
112
- 'node' => array(
113
- 'text' => '',
114
- ),
115
- ),
116
- ),
117
- );
118
- }
119
-
120
- if ( empty( $iamge['edge_media_to_caption']['edges'] ) ) {
121
- $image['edge_media_to_caption'] = array(
122
- 'edges' => array(
123
- array(
124
- 'node' => array(
125
- 'text' => '',
126
- ),
127
- ),
128
- ),
129
- );
130
- }
131
-
132
- $instagram_photos[] = array(
133
- 'code' => $image['shortcode'],
134
- 'img' => $image['thumbnail_src'],
135
- 'likes' => $image['edge_liked_by']['count'],
136
- 'description' => $image['edge_media_to_caption']['edges'][0]['node']['text'],
137
- 'is_video' => $image['is_video'],
138
- );
139
- }
140
- }
141
-
142
- set_transient( $transient_name, $instagram_photos, 7 * 24 * HOUR_IN_SECONDS );
143
-
144
- return $instagram_photos;
145
- }
146
-
147
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/ct-instagram/options.php DELETED
@@ -1,33 +0,0 @@
1
- <?php
2
-
3
- $options = [
4
- 'title' => [
5
- 'type' => 'text',
6
- 'value' => 'Instagram',
7
- 'design' => 'inline',
8
- ],
9
-
10
- 'username' => [
11
- 'type' => 'text',
12
- 'value' => '',
13
- 'design' => 'inline',
14
- ],
15
-
16
- 'photos_number' => [
17
- 'type' => 'ct-number',
18
- 'label' => __( 'Number of Images', 'blocksy' ),
19
- 'min' => 1,
20
- 'max' => 12,
21
- 'value' => 6,
22
- 'design' => 'inline',
23
- ],
24
-
25
- 'instagram_images_per_row' => [
26
- 'type' => 'ct-number',
27
- 'label' => __( 'Images per Row', 'blocksy' ),
28
- 'min' => 1,
29
- 'max' => 5,
30
- 'value' => 3,
31
- 'design' => 'inline',
32
- ],
33
- ];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/ct-instagram/static/bundle/1.723de7579d99d3928bad.js DELETED
@@ -1 +0,0 @@
1
- (window.blocksyInstagramWidgetJsonp=window.blocksyInstagramWidgetJsonp||[]).push([[1],{3:function(t,e,r){"use strict";r.r(e);var a=r(2),i=r.n(a);var n=function(t){return[].concat(function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(t.querySelectorAll(".ct-image-container.ct-lazy"))).map(function(t){t.querySelector("img").setAttribute("src",t.querySelector("img").dataset.original),t.querySelector("img").dataset.originalSet&&t.querySelector("img").setAttribute("srcset",t.querySelector("img").dataset.originalSet),t.classList.remove("ct-lazy"),t.classList.add("ct-lazy-loaded")})};r.d(e,"initInstagramWidget",function(){return l});var l=function(t){if(t.querySelector("ul[data-widget]")){if(window.fetch){var e=JSON.parse(t.querySelector("ul").dataset.widget),r=e.limit,a=e.username;t.querySelector("ul").removeAttribute("data-widget"),fetch(blocksy_ext_instagram_localization.ajax_url+"?action=blocksy_widget_instagram&limit="+r+"&username="+a).then(function(t){return t.text()}).then(function(e){t.querySelector("ul").removeAttribute("class"),t.querySelector("ul").innerHTML=e,i.a.trigger("ct:images:lazyload:update")})}}else n(t.querySelector("ul"))}}}]);
 
framework/extensions/instagram/ct-instagram/static/bundle/main.css DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * - v1.0.1
3
- *
4
- * Copyright (c) 2019
5
- * Licensed GPLv2+
6
- */
7
-
8
- .ct-widget.ct-instagram-widget ul{display:grid;grid-column-gap:10px;grid-row-gap:10px}.ct-widget.ct-instagram-widget ul li{margin:0;-webkit-transition:opacity 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955);transition:opacity 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955)}.ct-widget.ct-instagram-widget ul li:hover{opacity:0.8}.ct-widget.ct-instagram-widget [data-columns='2']{grid-template-columns:repeat(2, 1fr)}.ct-widget.ct-instagram-widget [data-columns='3']{grid-template-columns:repeat(3, 1fr)}.ct-widget.ct-instagram-widget [data-columns='4']{grid-template-columns:repeat(4, 1fr)}.ct-widget.ct-instagram-widget [data-columns='5']{grid-template-columns:repeat(5, 1fr)}
 
 
 
 
 
 
 
 
framework/extensions/instagram/ct-instagram/static/bundle/main.js DELETED
@@ -1 +0,0 @@
1
- !function(e){function t(t){for(var n,o,i=t[0],u=t[1],a=0,l=[];a<i.length;a++)o=i[a],r[o]&&l.push(r[o][0]),r[o]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(c&&c(t);l.length;)l.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(function(t,o){n=r[e]=[t,o]});t.push(n[2]=i);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=function(e){return o.p+""+e+"."+{1:"723de7579d99d3928bad"}[e]+".js"}(e),u=function(t){a.onerror=a.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src,u=new Error("Loading chunk "+e+" failed.\n("+o+": "+i+")");u.type=o,u.request=i,n[1](u)}r[e]=void 0}};var c=setTimeout(function(){u({type:"timeout",target:a})},12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var i=window.blocksyInstagramWidgetJsonp=window.blocksyInstagramWidgetJsonp||[],u=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var c=u;o(o.s=0)}([function(e,t,n){"use strict";n.r(t);n(1);console.log("here we are"),document.addEventListener("DOMContentLoaded",function(){[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(document.querySelectorAll(".ct-instagram-widget"))).map(function(e){return n.e(1).then(n.bind(null,3)).then(function(t){(0,t.initInstagramWidget)(e)})})})},function(e,t,n){n.p=blocksy_ext_instagram_localization.public_url},function(e,t){e.exports=window.ctEvents}]);
 
framework/extensions/instagram/ct-instagram/static/js/instagram-widget.js DELETED
@@ -1,29 +0,0 @@
1
- import ctEvents from 'ct-events'
2
- import { markImagesAsLoaded } from './lazy-load-helpers'
3
-
4
- export const initInstagramWidget = el => {
5
- if (!el.querySelector('ul[data-widget]')) {
6
- markImagesAsLoaded(el.querySelector('ul'))
7
- return
8
- }
9
-
10
- if (!window.fetch) return
11
-
12
- const { limit, username } = JSON.parse(
13
- el.querySelector('ul').dataset.widget
14
- )
15
-
16
- el.querySelector('ul').removeAttribute('data-widget')
17
-
18
- fetch(
19
- `${
20
- blocksy_ext_instagram_localization.ajax_url
21
- }?action=blocksy_widget_instagram&limit=${limit}&username=${username}`
22
- )
23
- .then(r => r.text())
24
- .then(text => {
25
- el.querySelector('ul').removeAttribute('class')
26
- el.querySelector('ul').innerHTML = text
27
- ctEvents.trigger('ct:images:lazyload:update')
28
- })
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/ct-instagram/static/js/lazy-load-helpers.js DELETED
@@ -1,18 +0,0 @@
1
- export const markImagesAsLoaded = el =>
2
- [...el.querySelectorAll('.ct-image-container.ct-lazy')].map(el => {
3
- el
4
- .querySelector('img')
5
- .setAttribute('src', el.querySelector('img').dataset.original)
6
-
7
- if (el.querySelector('img').dataset.originalSet) {
8
- el
9
- .querySelector('img')
10
- .setAttribute(
11
- 'srcset',
12
- el.querySelector('img').dataset.originalSet
13
- )
14
- }
15
-
16
- el.classList.remove('ct-lazy')
17
- el.classList.add('ct-lazy-loaded')
18
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/ct-instagram/static/js/main.js DELETED
@@ -1,11 +0,0 @@
1
- import './public-path'
2
-
3
- console.log('here we are')
4
-
5
- document.addEventListener('DOMContentLoaded', () => {
6
- ;[...document.querySelectorAll('.ct-instagram-widget')].map(el =>
7
- import('./instagram-widget').then(({ initInstagramWidget }) => {
8
- initInstagramWidget(el)
9
- })
10
- )
11
- })
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/ct-instagram/static/js/public-path.js DELETED
@@ -1 +0,0 @@
1
- __webpack_public_path__ = blocksy_ext_instagram_localization.public_url
 
framework/extensions/instagram/ct-instagram/static/sass/main.scss DELETED
@@ -1,32 +0,0 @@
1
- .ct-widget.ct-instagram-widget {
2
- ul {
3
- display: grid;
4
- grid-column-gap: 10px;
5
- grid-row-gap: 10px;
6
-
7
- li {
8
- margin: 0;
9
- transition: opacity 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955);
10
-
11
- &:hover {
12
- opacity: 0.8;
13
- }
14
- }
15
- }
16
-
17
- [data-columns='2'] {
18
- grid-template-columns: repeat(2, 1fr);
19
- }
20
-
21
- [data-columns='3'] {
22
- grid-template-columns: repeat(3, 1fr);
23
- }
24
-
25
- [data-columns='4'] {
26
- grid-template-columns: repeat(4, 1fr);
27
- }
28
-
29
- [data-columns='5'] {
30
- grid-template-columns: repeat(5, 1fr);
31
- }
32
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/ct-instagram/view.php DELETED
@@ -1,56 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Instagram Widget
5
- *
6
- * @copyright 2017-present Creative Themes
7
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
8
- */
9
-
10
- // Widget title
11
- $title = blocksy_akg( 'title', $atts, '' );
12
-
13
- if ( empty( $title ) ) {
14
- $title = 'Instagram';
15
- }
16
-
17
- $images_per_row = blocksy_akg( 'instagram_images_per_row', $atts, '2' );
18
-
19
- echo $before_widget . $before_title . $title . $after_title;
20
-
21
- $photos_number = intval( blocksy_default_akg( 'photos_number', $atts, '6' ) );
22
-
23
- $widget_data = json_encode(
24
- [
25
- 'limit' => $photos_number,
26
- 'username' => blocksy_default_akg( 'username', $atts, 'unknown' ),
27
- ]
28
- );
29
-
30
- ?>
31
-
32
- <ul
33
- class="ct-loading"
34
- data-widget='<?php echo $widget_data; ?>'
35
- data-columns="<?php echo $images_per_row; ?>">
36
-
37
- <?php
38
- echo str_repeat(
39
- '<li>' . blocksy_simple_image(
40
- '#',
41
- [
42
- 'tag' => 'a',
43
- 'html_atts' => [
44
- 'target' => '_blank',
45
- 'href' => '#',
46
- ],
47
- ]
48
- ) . '</li>',
49
- $photos_number
50
- );
51
- ?>
52
- </ul>
53
-
54
-
55
- <?php echo $after_widget; ?>
56
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/ct-instagram/widget.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
- class Blocksy_Widget_Ct_Instagram extends BlocksyWidgetFactory {
4
- protected function get_config() {
5
- return [
6
- 'name' => 'Instagram',
7
- 'description' => 'Popular/Recent/Most Commented Posts.',
8
- ];
9
- }
10
-
11
- public function get_path() {
12
- return dirname(__FILE__);
13
- }
14
- }
15
-
16
-
17
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/customizer.php DELETED
@@ -1,92 +0,0 @@
1
- <?php
2
-
3
- $options = [
4
- 'title' => __('Instagram Extension', 'blc'),
5
- 'container' => [ 'priority' => 8 ],
6
- 'options' => [
7
-
8
- 'instagram_section_options' => [
9
- 'type' => 'ct-options',
10
- 'setting' => [ 'transport' => 'postMessage' ],
11
- 'inner-options' => [
12
- 'insta_block_enabled' => [
13
- 'label' => __( 'Instagram section', 'blc' ),
14
- 'type' => 'ct-switch',
15
- 'value' => 'no',
16
- 'setting' => [ 'transport' => 'postMessage' ],
17
- ],
18
-
19
- blocksy_rand_md5() => [
20
- 'type' => 'ct-condition',
21
- 'condition' => [ 'insta_block_enabled' => 'yes' ],
22
- 'options' => [
23
-
24
- 'insta_block_location' => [
25
- 'label' => __( 'Block Location', 'blc' ),
26
- 'type' => 'ct-radio',
27
- 'value' => 'above',
28
- 'view' => 'text',
29
- 'design' => 'block',
30
- 'setting' => [ 'transport' => 'postMessage' ],
31
- 'choices' => [
32
- 'above' => __( 'Above Footer', 'blc' ),
33
- 'below' => __( 'Below Footer', 'blc' ),
34
- ],
35
- ],
36
-
37
- blocksy_rand_md5() => [
38
- 'type' => 'ct-divider',
39
- 'attr' => [ 'data-type' => 'small' ],
40
- ],
41
-
42
- 'insta_block_username' => [
43
- 'label' => __( 'Username', 'blc' ),
44
- 'type' => 'text',
45
- 'design' => 'inline',
46
- 'value' => '',
47
- 'setting' => [ 'transport' => 'postMessage' ],
48
- ],
49
-
50
- 'insta_block_count' => [
51
- 'type' => 'ct-number',
52
- 'label' => __( 'Images Count', 'blc' ),
53
- 'min' => 1,
54
- 'max' => 18,
55
- 'value' => 6,
56
- 'design' => 'inline',
57
- 'setting' => [ 'transport' => 'postMessage' ],
58
- ],
59
-
60
- blocksy_rand_md5() => [
61
- 'type' => 'ct-divider',
62
- 'attr' => [ 'data-type' => 'small' ],
63
- ],
64
-
65
- 'insta_block_visibility' => [
66
- 'label' => __( 'Visibility', 'blc' ),
67
- 'type' => 'ct-visibility',
68
- 'design' => 'block',
69
- 'setting' => [ 'transport' => 'postMessage' ],
70
- 'value' => [
71
- 'desktop' => true,
72
- 'tablet' => true,
73
- 'mobile' => false,
74
- ],
75
-
76
- 'choices' => blocksy_ordered_keys([
77
- 'desktop' => __( 'Desktop', 'blc' ),
78
- 'tablet' => __( 'Tablet', 'blc' ),
79
- 'mobile' => __( 'Mobile', 'blc' ),
80
- ]),
81
- ],
82
-
83
-
84
- ],
85
- ],
86
-
87
-
88
- ],
89
- ],
90
- ],
91
- ];
92
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/extension.php DELETED
@@ -1,81 +0,0 @@
1
- <?php
2
-
3
- require_once dirname( __FILE__ ) . '/helpers.php';
4
-
5
- class BlocksyExtensionInstagram {
6
- public function __construct() {
7
- add_filter(
8
- 'blocksy_extensions_customizer_options',
9
- [$this, 'add_options_panel']
10
- );
11
-
12
- add_filter('blocksy_widgets_paths', function ($all_widgets) {
13
- $all_widgets[] = dirname(__FILE__) . '/ct-instagram';
14
- return $all_widgets;
15
- });
16
-
17
- add_action('wp_enqueue_scripts', function () {
18
- if (! function_exists('get_plugin_data')){
19
- require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
20
- }
21
-
22
- $data = get_plugin_data(BLOCKSY__FILE__);
23
-
24
- if (is_admin()) return;
25
-
26
- wp_enqueue_style(
27
- 'blocksy-ext-instagram-styles',
28
- BLOCKSY_URL . 'framework/extensions/instagram/static/bundle/main.css',
29
- [],
30
- $data['Version']
31
- );
32
-
33
- wp_enqueue_script(
34
- 'blocksy-ext-instagram-scripts',
35
- BLOCKSY_URL . 'framework/extensions/instagram/static/bundle/main.js',
36
- [],
37
- $data['Version'],
38
- true
39
- );
40
-
41
- $data = [
42
- 'ajax_url' => admin_url( 'admin-ajax.php' ),
43
- 'public_url' => BLOCKSY_URL . 'framework/extensions/instagram/static/bundle/',
44
- ];
45
-
46
- wp_localize_script(
47
- 'blocksy-ext-instagram-scripts',
48
- 'blocksy_ext_instagram_localization',
49
- $data
50
- );
51
- });
52
-
53
- add_action(
54
- 'customize_preview_init',
55
- function () {
56
- if (! function_exists('get_plugin_data')){
57
- require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
58
- }
59
-
60
- $data = get_plugin_data(BLOCKSY__FILE__);
61
-
62
- wp_enqueue_script(
63
- 'blocksy-instagram-customizer-sync',
64
- BLOCKSY_URL . 'framework/extensions/instagram/static/bundle/sync.js',
65
- [ 'customize-preview' ],
66
- $data['Version'],
67
- true
68
- );
69
- }
70
- );
71
- }
72
-
73
- public function add_options_panel($options) {
74
- $options['instagram_ext'] = blocksy_get_options(
75
- dirname( __FILE__ ) . '/customizer.php',
76
- [], false
77
- );
78
-
79
- return $options;
80
- }
81
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/helpers.php DELETED
@@ -1,238 +0,0 @@
1
- <?php
2
-
3
- add_action( 'wp_ajax_blocksy_widget_instagram', 'blocksy_widget_instagram_generate_html' );
4
- add_action( 'wp_ajax_nopriv_blocksy_widget_instagram', 'blocksy_widget_instagram_generate_html' );
5
-
6
- function blocksy_widget_instagram_generate_html() {
7
- $instagram_photos = blocksy_get_instagram_photos(
8
- sanitize_text_field( $_GET['username'] ),
9
- intval( sanitize_text_field( $_GET['limit'] ) )
10
- );
11
-
12
- ?>
13
- <?php foreach ( $instagram_photos as $photo ) { ?>
14
- <li
15
- <?php
16
- if ( $photo['is_video'] ) {
17
- echo ' class="ct-is-video"';}
18
- ?>
19
- >
20
- <?php
21
- echo blocksy_simple_image(
22
- $photo['img'],
23
- [
24
- 'tag_name' => 'a',
25
- 'html_atts' => [
26
- 'target' => '_blank',
27
- 'href' => 'https://instagram.com/p/' . $photo['code'],
28
- ],
29
- 'img_atts' => [
30
- 'alt' => esc_attr( $photo['description'] ),
31
- 'title' => esc_attr( $photo['description'] ),
32
- ],
33
- ]
34
- )
35
- ?>
36
- </li>
37
- <?php } ?>
38
-
39
- <?php
40
-
41
- wp_die();
42
- }
43
-
44
- function blocksy_get_instagram_photos( $username, $items = 10 ) {
45
- $username = trim($username);
46
-
47
- if (! $username) {
48
- return [];
49
- }
50
-
51
- $transient_name = 'blocksy_instagram_ext_' . md5(
52
- json_encode(
53
- [
54
- $username,
55
- // $items
56
- ]
57
- )
58
- );
59
-
60
- $remote_images = [];
61
-
62
- if ( $maybe_transient_data = get_transient( $transient_name ) ) {
63
- $remote_images = $maybe_transient_data;
64
- } else {
65
- $source = wp_remote_get('http://instagram.com/' . $username);
66
-
67
- $remote_response = true;
68
-
69
- if ( is_wp_error( $source ) ) {
70
- $remote_response = null;
71
- }
72
-
73
- if ( 200 !== wp_remote_retrieve_response_code( $source ) ) {
74
- $remote_response = null;
75
- }
76
-
77
- if ( ! $remote_response ) {
78
- return [];
79
- }
80
-
81
- // Get json info about the user.
82
- preg_match( '|window._sharedData = {(.+?)};</script>|', $source['body'], $matches );
83
-
84
- if ( ! isset( $matches[1] ) ) {
85
- return [];
86
- }
87
-
88
- $json_data = "{{$matches[1]}}";
89
- $json_data = json_decode( $json_data, true );
90
-
91
- if ( ! $json_data ) {
92
- return [];
93
- }
94
-
95
- if (isset( $json_data['entry_data']['ProfilePage'][0]['graphql']['user']['edge_owner_to_timeline_media']['edges'] )) {
96
- $remote_images = $json_data['entry_data'][
97
- 'ProfilePage'
98
- ][0]['graphql']['user']['edge_owner_to_timeline_media']['edges'];
99
- } else {
100
- return $instagram_photos;
101
- }
102
- }
103
-
104
- if (! $remote_images) {
105
- return [];
106
- }
107
-
108
- $instagram_photos = [];
109
-
110
- foreach ( $remote_images as $image ) {
111
- if ( count( $instagram_photos ) >= $items ) {
112
- break;
113
- }
114
-
115
- $image = $image['node'];
116
-
117
- if ( ! isset( $image['edge_media_to_caption'] ) ) {
118
- $image['edge_media_to_caption'] = [
119
- 'edges' => [
120
- ['node' => ['text' => '']]
121
- ]
122
- ];
123
- }
124
-
125
- if ( empty( $iamge['edge_media_to_caption']['edges'] ) ) {
126
- $image['edge_media_to_caption'] = [
127
- 'edges' => [
128
- [
129
- 'node' => ['text' => '']
130
- ]
131
- ]
132
- ];
133
- }
134
-
135
- $instagram_photos[] = [
136
- 'code' => $image['shortcode'],
137
- 'img' => $image['thumbnail_src'],
138
- 'likes' => $image['edge_liked_by']['count'],
139
- 'description' => $image['edge_media_to_caption']['edges'][0]['node']['text'],
140
- 'is_video' => $image['is_video'],
141
- ];
142
- }
143
-
144
- set_transient( $transient_name, $remote_images, 7 * 24 * HOUR_IN_SECONDS );
145
-
146
- return $instagram_photos;
147
- }
148
-
149
- function blc_output_instagram_section_cache() {
150
- if (! is_customize_preview()) return;
151
-
152
- blocksy_add_customizer_preview_cache(
153
- blocksy_html_tag(
154
- 'div',
155
- [ 'data-id' => 'blocksy-instagram-section' ],
156
- blc_output_instagram_section(true)
157
- )
158
- );
159
- }
160
-
161
- function blc_output_instagram_section($forced = false) {
162
- if (! $forced) {
163
- blc_output_instagram_section_cache();
164
- }
165
-
166
- if (get_theme_mod('insta_block_enabled', 'no') !== 'yes') {
167
- if (! $forced) {
168
- return '';
169
- }
170
- }
171
-
172
- $actual_location = get_theme_mod('insta_block_location', 'above');
173
-
174
- $username = get_theme_mod( 'insta_block_username', '');
175
-
176
- if (empty($username)) {
177
- return '';
178
- }
179
-
180
- $photos_number = intval(get_theme_mod('insta_block_count', '6'));
181
-
182
- if ($forced) {
183
- $photos_number = 18;
184
- }
185
-
186
- $widget_data = json_encode(
187
- [
188
- 'limit' => $photos_number,
189
- 'username' => get_theme_mod( 'insta_block_username', ''),
190
- ]
191
- );
192
-
193
- $class = 'ct-instagram-block ct-instagram-widget';
194
-
195
- $class .= ' ' . blocksy_visibility_classes(
196
- get_theme_mod('insta_block_visibility', [
197
- 'desktop' => true,
198
- 'tablet' => true,
199
- 'mobile' => false,
200
- ])
201
- );
202
-
203
- ob_start();
204
-
205
- ?>
206
-
207
- <div class="<?php echo esc_attr($class) ?>" data-location="<?php echo esc_attr($actual_location) ?>">
208
- <ul
209
- class="ct-loading"
210
- data-widget='<?php echo $widget_data; ?>'>
211
-
212
- <?php
213
- echo str_repeat(
214
- '<li>' . blocksy_simple_image(
215
- '#',
216
- [
217
- 'tag' => 'a',
218
- 'html_atts' => [
219
- 'target' => '_blank',
220
- 'href' => '#',
221
- ],
222
- ]
223
- ) . '</li>',
224
- $photos_number
225
- );
226
- ?>
227
- </ul>
228
- <a href="https://instagram.com/<?php echo esc_attr($username) ?>" target="_blank" class="ct-instagram-follow">
229
- @<?php echo esc_html($username) ?>
230
- </a>
231
- </div>
232
-
233
-
234
- <?php
235
-
236
- return ob_get_clean();
237
- }
238
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/readme.php DELETED
@@ -1,42 +0,0 @@
1
- <h1><?php echo __('Instructions', 'blc'); ?></h1>
2
-
3
- <p>
4
- <?php echo __('After installing and activating the Instagram extension you will have two possibilities to show your feed:', 'blc') ?>
5
- </p>
6
-
7
- <ol>
8
- <li>
9
- <b>
10
- <?php echo __('Instagram Widget', 'blc') ?>
11
- </b>
12
- <i>
13
- <?php
14
- echo sprintf(
15
- __('Navigate to %s and place the widget in any widget area you want.', 'blc'),
16
- sprintf(
17
- '<code>%s</code>',
18
- __('Appearance ➝ Widgets', 'blc')
19
- )
20
- );
21
- ?>
22
- </i>
23
- </li>
24
-
25
- <li>
26
- <b>
27
- <?php echo __('Instagram Block', 'blc') ?>
28
- </b>
29
- <i>
30
- <?php
31
- echo sprintf(
32
- __('Navigate to %s and customize the location, number of images and more.', 'blc'),
33
- sprintf(
34
- '<code>%s</code>',
35
- __('Customizer ➝ Instagram Extension', 'blc')
36
- )
37
- );
38
- ?>
39
- </i>
40
- </li>
41
- </ol>
42
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/static/bundle/0.17a36d03c4d4439f3e19.js DELETED
@@ -1 +0,0 @@
1
- (window.blocksyInstagramWidgetJsonp=window.blocksyInstagramWidgetJsonp||[]).push([[0],[function(t,e,r){"use strict";r.r(e);var a=r(3),i=r.n(a);var n=function(t){return[].concat(function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(t.querySelectorAll(".ct-image-container.ct-lazy"))).map(function(t){t.querySelector("img").setAttribute("src",t.querySelector("img").dataset.original),t.querySelector("img").dataset.originalSet&&t.querySelector("img").setAttribute("srcset",t.querySelector("img").dataset.originalSet),t.classList.remove("ct-lazy"),t.classList.add("ct-lazy-loaded")})};r.d(e,"initInstagramWidget",function(){return l});var l=function(t){if(t.querySelector("ul[data-widget]")){if(window.fetch){var e=JSON.parse(t.querySelector("ul").dataset.widget),r=e.limit,a=e.username;t.querySelector("ul").removeAttribute("data-widget"),fetch(blocksy_ext_instagram_localization.ajax_url+"?action=blocksy_widget_instagram&limit="+r+"&username="+a).then(function(t){return t.text()}).then(function(e){t.querySelector("ul").removeAttribute("class"),t.querySelector("ul").innerHTML=e,i.a.trigger("ct:images:lazyload:update")})}}else n(t.querySelector("ul"))}}]]);
 
framework/extensions/instagram/static/bundle/main.css DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * - v1.0.3
3
- *
4
- * Copyright (c) 2019
5
- * Licensed GPLv2+
6
- */
7
-
8
- .ct-instagram-block{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ct-instagram-block ul{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;padding:0;width:100%;list-style:none}.ct-instagram-block ul li{-ms-flex-preferred-size:100%;flex-basis:100%;margin:0;-webkit-transition:opacity 0.2s ease;transition:opacity 0.2s ease}@media (min-width: 690px) and (max-width: 999.98px){.ct-instagram-block ul li:nth-child(n+5){display:none}}@media (max-width: 689.98px){.ct-instagram-block ul li:nth-child(n+4){display:none}}.ct-instagram-block ul li:hover{opacity:0.8}.ct-instagram-block ul.ct-loading+a{display:none}.ct-instagram-block[data-location="above"]{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.ct-instagram-block[data-location="below"]{-webkit-box-ordinal-group:6;-ms-flex-order:5;order:5}.ct-instagram-follow{top:calc(50% - 19px);font-family:SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:15px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:#fff;height:40px;padding:0 18px;border:none;border-radius:3px;background-color:#fff;-webkit-transition:color 0.2s ease, background 0.2s ease, -webkit-transform 0.2s ease;transition:color 0.2s ease, background 0.2s ease, -webkit-transform 0.2s ease;transition:color 0.2s ease, transform 0.2s ease, background 0.2s ease;transition:color 0.2s ease, transform 0.2s ease, background 0.2s ease, -webkit-transform 0.2s ease;position:absolute;color:inherit}.ct-instagram-follow:hover{background-color:var(--buttonHoverColor);-webkit-transform:translate3d(0, -3px, 0);transform:translate3d(0, -3px, 0)}.ct-instagram-follow:focus{outline:none}.ct-instagram-follow:before{position:absolute;z-index:-1;content:'';top:0;left:0;right:0;bottom:0;display:block;border-radius:inherit;opacity:0;-webkit-box-shadow:0px 8px 30px 0px var(--buttonHoverColor);box-shadow:0px 8px 30px 0px var(--buttonHoverColor);-webkit-transition:opacity 0.2s ease;transition:opacity 0.2s ease}.ct-instagram-follow:hover:before{opacity:0.5}.ct-instagram-follow:hover{color:#fff}
 
 
 
 
 
 
 
 
framework/extensions/instagram/static/bundle/main.js DELETED
@@ -1 +0,0 @@
1
- !function(t){function n(n){for(var e,o,i=n[0],u=n[1],a=0,l=[];a<i.length;a++)o=i[a],r[o]&&l.push(r[o][0]),r[o]=0;for(e in u)Object.prototype.hasOwnProperty.call(u,e)&&(t[e]=u[e]);for(c&&c(n);l.length;)l.shift()()}var e={},r={1:0};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(t){var n=[],e=r[t];if(0!==e)if(e)n.push(e[2]);else{var i=new Promise(function(n,o){e=r[t]=[n,o]});n.push(e[2]=i);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=function(t){return o.p+""+t+"."+{0:"17a36d03c4d4439f3e19"}[t]+".js"}(t),u=function(n){a.onerror=a.onload=null,clearTimeout(c);var e=r[t];if(0!==e){if(e){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src,u=new Error("Loading chunk "+t+" failed.\n("+o+": "+i+")");u.type=o,u.request=i,e[1](u)}r[t]=void 0}};var c=setTimeout(function(){u({type:"timeout",target:a})},12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(n)},o.m=t,o.c=e,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,n){if(1&n&&(t=o(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)o.d(e,r,function(n){return t[n]}.bind(null,r));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="",o.oe=function(t){throw console.error(t),t};var i=window.blocksyInstagramWidgetJsonp=window.blocksyInstagramWidgetJsonp||[],u=i.push.bind(i);i.push=n,i=i.slice();for(var a=0;a<i.length;a++)n(i[a]);var c=u;o(o.s=1)}([,function(t,n,e){"use strict";e.r(n);e(2);function r(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}document.addEventListener("DOMContentLoaded",function(){[].concat(r(document.querySelectorAll(".ct-instagram-widget"))).map(function(t){return e.e(0).then(e.bind(null,0)).then(function(n){(0,n.initInstagramWidget)(t)})}),window.ctEvents.on("blocksy:instagram:init",function(){[].concat(r(document.querySelectorAll(".ct-instagram-widget"))).map(function(t){return e.e(0).then(e.bind(null,0)).then(function(n){(0,n.initInstagramWidget)(t)})})})})},function(t,n,e){e.p=blocksy_ext_instagram_localization.public_url},function(t,n){t.exports=window.ctEvents}]);
 
framework/extensions/instagram/static/bundle/sync.js DELETED
@@ -1 +0,0 @@
1
- !function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){"use strict";r.r(e);var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(i)throw o}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};var o=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";r||((e=document.createElement("div")).innerHTML=document.querySelector(".ct-customizer-preview-cache-container").value,r=e);var i=r.querySelector(".ct-customizer-preview-cache [data-"+n+'="'+t+'"]').innerHTML,o=document.createElement("div");return o.innerHTML=i,o},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=i({fragment_id:null,selector:null,parent_selector:null,strategy:"append",whenInserted:function(){},beforeInsert:function(t){},should_insert:!0},t);var e=document.querySelector(t.parent_selector);if([].concat(function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(document.querySelectorAll(t.parent_selector+" "+t.selector))).map(function(t){return t.parentNode.removeChild(t)}),t.should_insert){for(var r=o(t.fragment_id);r.firstElementChild;)if(t.beforeInsert(r.firstElementChild),"append"===t.strategy&&e.appendChild(r.firstElementChild),"firstChild"===t.strategy&&e.insertBefore(r.firstElementChild,e.firstElementChild),t.strategy.indexOf("maybeBefore")>-1){var a=t.strategy.split(":"),c=n(a,2),l=(c[0],c[1]);e.querySelector(l)?e.insertBefore(r.firstElementChild,e.querySelector(l)):e.appendChild(r.firstElementChild)}t.whenInserted()}},c=function(t,e){if(e.classList.remove("ct-hidden-sm","ct-hidden-md","ct-hidden-lg"),wp.customize(t)){var r=wp.customize(t)()||{mobile:!1,tablet:!0,desktop:!0};r.mobile||e.classList.add("ct-hidden-sm"),r.tablet||e.classList.add("ct-hidden-md"),r.desktop||e.classList.add("ct-hidden-lg")}};wp.customize("insta_block_visibility",function(t){return t.bind(function(t){var e=document.querySelector(".ct-instagram-block");c("insta_block_visibility",e)})}),wp.customize("insta_block_location",function(t){return t.bind(function(t){document.querySelector(".ct-instagram-block").dataset.location=wp.customize("insta_block_location")()})}),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=i({id:null,fragment_id:null,selector:null,parent_selector:null,strategy:"append",whenInserted:function(){},beforeInsert:function(t){},watch:[]},t);var e=function(){var e=wp.customize(t.id)();a(i({},t,{should_insert:"yes"===e}))};wp.customize(t.id,function(t){return t.bind(function(t){return e()})}),t.watch.map(function(t){return wp.customize(t,function(t){return t.bind(function(){return e()})})})}({id:"insta_block_enabled",strategy:"append",parent_selector:".footer-inner",selector:".ct-instagram-block",fragment_id:"blocksy-instagram-section",watch:["insta_block_count","insta_block_username"],whenInserted:function(){var t=document.querySelector(".ct-instagram-block");c("insta_block_visibility",t),t.dataset.location=wp.customize("insta_block_location")();var e=JSON.parse(t.firstElementChild.dataset.widget);[].concat(function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(Array(e.limit-parseInt(wp.customize("insta_block_count")(),10)))).map(function(){return t.firstElementChild.removeChild(t.firstElementChild.firstElementChild)});var r=wp.customize("insta_block_username")();t.firstElementChild.dataset.widget=JSON.stringify({limit:parseInt(wp.customize("insta_block_count")(),10),username:r});var n=t.querySelector(".ct-instagram-follow");n.href="https://instagram.com/"+r,n.innerHTML="@"+r,ctEvents.trigger("blocksy:instagram:init")}})}]);
 
framework/extensions/instagram/static/js/instagram-widget.js DELETED
@@ -1,29 +0,0 @@
1
- import ctEvents from 'ct-events'
2
- import { markImagesAsLoaded } from './lazy-load-helpers'
3
-
4
- export const initInstagramWidget = el => {
5
- if (!el.querySelector('ul[data-widget]')) {
6
- markImagesAsLoaded(el.querySelector('ul'))
7
- return
8
- }
9
-
10
- if (!window.fetch) return
11
-
12
- const { limit, username } = JSON.parse(
13
- el.querySelector('ul').dataset.widget
14
- )
15
-
16
- el.querySelector('ul').removeAttribute('data-widget')
17
-
18
- fetch(
19
- `${
20
- blocksy_ext_instagram_localization.ajax_url
21
- }?action=blocksy_widget_instagram&limit=${limit}&username=${username}`
22
- )
23
- .then(r => r.text())
24
- .then(text => {
25
- el.querySelector('ul').removeAttribute('class')
26
- el.querySelector('ul').innerHTML = text
27
- ctEvents.trigger('ct:images:lazyload:update')
28
- })
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/static/js/lazy-load-helpers.js DELETED
@@ -1,18 +0,0 @@
1
- export const markImagesAsLoaded = el =>
2
- [...el.querySelectorAll('.ct-image-container.ct-lazy')].map(el => {
3
- el
4
- .querySelector('img')
5
- .setAttribute('src', el.querySelector('img').dataset.original)
6
-
7
- if (el.querySelector('img').dataset.originalSet) {
8
- el
9
- .querySelector('img')
10
- .setAttribute(
11
- 'srcset',
12
- el.querySelector('img').dataset.originalSet
13
- )
14
- }
15
-
16
- el.classList.remove('ct-lazy')
17
- el.classList.add('ct-lazy-loaded')
18
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/static/js/main.js DELETED
@@ -1,17 +0,0 @@
1
- import './public-path'
2
-
3
- document.addEventListener('DOMContentLoaded', () => {
4
- ;[...document.querySelectorAll('.ct-instagram-widget')].map(el =>
5
- import('./instagram-widget').then(({ initInstagramWidget }) => {
6
- initInstagramWidget(el)
7
- })
8
- )
9
-
10
- window.ctEvents.on('blocksy:instagram:init', () => {
11
- ;[...document.querySelectorAll('.ct-instagram-widget')].map(el =>
12
- import('./instagram-widget').then(({ initInstagramWidget }) => {
13
- initInstagramWidget(el)
14
- })
15
- )
16
- })
17
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/static/js/public-path.js DELETED
@@ -1 +0,0 @@
1
- __webpack_public_path__ = blocksy_ext_instagram_localization.public_url
 
framework/extensions/instagram/static/js/sync.js DELETED
@@ -1,60 +0,0 @@
1
- import { checkAndReplace, responsiveClassesFor } from './sync/helpers'
2
-
3
- wp.customize('insta_block_visibility', val =>
4
- val.bind(to => {
5
- const block = document.querySelector('.ct-instagram-block')
6
-
7
- responsiveClassesFor('insta_block_visibility', block)
8
- })
9
- )
10
-
11
- wp.customize('insta_block_location', val =>
12
- val.bind(to => {
13
- const block = document.querySelector('.ct-instagram-block')
14
- block.dataset.location = wp.customize('insta_block_location')()
15
- })
16
- )
17
-
18
- checkAndReplace({
19
- id: 'insta_block_enabled',
20
- strategy: 'append',
21
-
22
- parent_selector: '.footer-inner',
23
- selector: '.ct-instagram-block',
24
- fragment_id: 'blocksy-instagram-section',
25
-
26
- watch: ['insta_block_count', 'insta_block_username'],
27
-
28
- whenInserted: () => {
29
- const block = document.querySelector('.ct-instagram-block')
30
-
31
- responsiveClassesFor('insta_block_visibility', block)
32
-
33
- block.dataset.location = wp.customize('insta_block_location')()
34
-
35
- const currentData = JSON.parse(block.firstElementChild.dataset.widget)
36
- ;[
37
- ...Array(
38
- currentData.limit -
39
- parseInt(wp.customize('insta_block_count')(), 10)
40
- )
41
- ].map(() =>
42
- block.firstElementChild.removeChild(
43
- block.firstElementChild.firstElementChild
44
- )
45
- )
46
-
47
- const username = wp.customize('insta_block_username')()
48
-
49
- block.firstElementChild.dataset.widget = JSON.stringify({
50
- limit: parseInt(wp.customize('insta_block_count')(), 10),
51
- username
52
- })
53
-
54
- const link = block.querySelector('.ct-instagram-follow')
55
- link.href = `https://instagram.com/${username}`
56
- link.innerHTML = `@${username}`
57
-
58
- ctEvents.trigger('blocksy:instagram:init')
59
- }
60
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/static/js/sync/helpers.js DELETED
@@ -1,133 +0,0 @@
1
- export const getCache = () => {
2
- const div = document.createElement('div')
3
-
4
- div.innerHTML = document.querySelector(
5
- '.ct-customizer-preview-cache-container'
6
- ).value
7
-
8
- return div
9
- }
10
-
11
- export const getFreshHtmlFor = (id, cache = null, attr = 'id') => {
12
- if (!cache) {
13
- cache = getCache()
14
- }
15
-
16
- const newHtml = cache.querySelector(
17
- `.ct-customizer-preview-cache [data-${attr}="${id}"]`
18
- ).innerHTML
19
-
20
- const e = document.createElement('div')
21
- e.innerHTML = newHtml
22
-
23
- return e
24
- }
25
-
26
- export const renderWithStrategy = (args = {}) => {
27
- args = {
28
- fragment_id: null,
29
-
30
- selector: null,
31
- parent_selector: null,
32
-
33
- // append | firstChild | maybeBefore:selector
34
- strategy: 'append',
35
- whenInserted: () => {},
36
- beforeInsert: el => {},
37
-
38
- should_insert: true,
39
-
40
- ...args
41
- }
42
-
43
- const parent = document.querySelector(args.parent_selector)
44
- ;[
45
- ...document.querySelectorAll(`${args.parent_selector} ${args.selector}`)
46
- ].map(el => el.parentNode.removeChild(el))
47
-
48
- if (!args.should_insert) return
49
-
50
- const el = getFreshHtmlFor(args.fragment_id)
51
-
52
- while (el.firstElementChild) {
53
- args.beforeInsert(el.firstElementChild)
54
-
55
- if (args.strategy === 'append') {
56
- parent.appendChild(el.firstElementChild)
57
- }
58
-
59
- if (args.strategy === 'firstChild') {
60
- parent.insertBefore(el.firstElementChild, parent.firstElementChild)
61
- }
62
-
63
- if (args.strategy.indexOf('maybeBefore') > -1) {
64
- const [_, selector] = args.strategy.split(':')
65
-
66
- if (parent.querySelector(selector)) {
67
- parent.insertBefore(
68
- el.firstElementChild,
69
- parent.querySelector(selector)
70
- )
71
- } else {
72
- parent.appendChild(el.firstElementChild)
73
- }
74
- }
75
- }
76
-
77
- args.whenInserted()
78
- }
79
-
80
- export const checkAndReplace = (args = {}) => {
81
- args = {
82
- id: null,
83
-
84
- fragment_id: null,
85
-
86
- selector: null,
87
- parent_selector: null,
88
-
89
- // append | firstChild | maybeBefore:selector
90
- strategy: 'append',
91
- whenInserted: () => {},
92
- beforeInsert: el => {},
93
- watch: [],
94
-
95
- ...args
96
- }
97
-
98
- const render = () => {
99
- const to = wp.customize(args.id)()
100
-
101
- renderWithStrategy({
102
- ...args,
103
- should_insert: to === 'yes'
104
- })
105
- }
106
-
107
- wp.customize(args.id, val => val.bind(to => render()))
108
- args.watch.map(opt => wp.customize(opt, val => val.bind(() => render())))
109
- }
110
-
111
- export const responsiveClassesFor = (id, el) => {
112
- el.classList.remove('ct-hidden-sm', 'ct-hidden-md', 'ct-hidden-lg')
113
-
114
- if (!wp.customize(id)) return
115
-
116
- const data = wp.customize(id)() || {
117
- mobile: false,
118
- tablet: true,
119
- desktop: true
120
- }
121
-
122
- if (!data.mobile) {
123
- el.classList.add('ct-hidden-sm')
124
- }
125
-
126
- if (!data.tablet) {
127
- el.classList.add('ct-hidden-md')
128
- }
129
-
130
- if (!data.desktop) {
131
- el.classList.add('ct-hidden-lg')
132
- }
133
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/instagram/static/sass/main.scss DELETED
@@ -1,73 +0,0 @@
1
- @import '../../../../../static/sass/common-frontend';
2
-
3
- .ct-instagram-block {
4
- position: relative;
5
- display: flex;
6
- justify-content: center;
7
-
8
- ul {
9
- display: flex;
10
- margin: 0;
11
- padding: 0;
12
- width: 100%;
13
- list-style: none;
14
-
15
- li {
16
- flex-basis: 100%;
17
-
18
- @include media-breakpoint-only (md) {
19
- &:nth-child(n+5) {
20
- display: none;
21
- }
22
- }
23
-
24
- @include media-breakpoint-down (sm) {
25
- &:nth-child(n+4) {
26
- display: none;
27
- }
28
- }
29
-
30
- margin: 0;
31
- transition: opacity 0.2s ease;
32
-
33
- &:hover {
34
- opacity: 0.8;
35
- }
36
- }
37
-
38
- &.ct-loading {
39
- + a {
40
- display: none;
41
- }
42
- }
43
- }
44
-
45
- // block location
46
- &[data-location="above"] {
47
- order: 1;
48
- }
49
-
50
- &[data-location="below"] {
51
- order: 5;
52
- }
53
- }
54
-
55
- .ct-instagram-follow {
56
- top: calc(50% - 19px);
57
- font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace;
58
- font-size: 15px;
59
-
60
- @include button((
61
- display: flex,
62
- height: 40px,
63
- padding: 18px,
64
- position: absolute,
65
- bg_1: #fff,
66
- ));
67
-
68
- color: inherit;
69
-
70
- &:hover {
71
- color: #fff;
72
- }
73
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/mailchimp/admin-static/bundle/1.4b8b242225582999eec3.js DELETED
@@ -1,20 +0,0 @@
1
- (window.blocksyMailchimpExtJsonp=window.blocksyMailchimpExtJsonp||[]).push([[1],[,,,,,function(e,t,n){e.exports=n(6)()},function(e,t,n){"use strict";var o=n(7);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,s){if(s!==o){var u=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 u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";e.exports=n(9)},function(e,t,n){"use strict";
2
- /** @license React v16.8.6
3
- * react-is.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,a=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,c=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case c:case s:case l:case u:case f:return e;default:switch(e=e&&e.$$typeof){case p:case h:case a:return e;default:return t}}case m:case g:case r:return t}}}function y(e){return v(e)===c}t.typeOf=v,t.AsyncMode=d,t.ConcurrentMode=c,t.ContextConsumer=p,t.ContextProvider=a,t.Element=i,t.ForwardRef=h,t.Fragment=s,t.Lazy=m,t.Memo=g,t.Portal=r,t.Profiler=l,t.StrictMode=u,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===c||e===l||e===u||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===a||e.$$typeof===p||e.$$typeof===h)},t.isAsyncMode=function(e){return y(e)||v(e)===d},t.isConcurrentMode=y,t.isContextConsumer=function(e){return v(e)===p},t.isContextProvider=function(e){return v(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return v(e)===h},t.isFragment=function(e){return v(e)===s},t.isLazy=function(e){return v(e)===m},t.isMemo=function(e){return v(e)===g},t.isPortal=function(e){return v(e)===r},t.isProfiler=function(e){return v(e)===l},t.isStrictMode=function(e){return v(e)===u},t.isSuspense=function(e){return v(e)===f}},function(e,t,n){var o;
10
- /*!
11
- Copyright (c) 2017 Jed Watson.
12
- Licensed under the MIT License (MIT), see
13
- http://jedwatson.github.io/classnames
14
- */
15
- /*!
16
- Copyright (c) 2017 Jed Watson.
17
- Licensed under the MIT License (MIT), see
18
- http://jedwatson.github.io/classnames
19
- */
20
- !function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o)&&o.length){var s=i.apply(null,o);s&&e.push(s)}else if("object"===r)for(var u in o)n.call(o,u)&&o[u]&&e.push(u)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(o=function(){return i}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){"use strict";function o(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(5);var s=n(1),u=n.n(s);n(8);function l(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function a(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function p(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return a(n.overflowY,t)||a(n.overflowX,t)}return!1}function d(e,t,n,o,i,r,s,u){return r<e&&s>t||r>e&&s<t?0:r<=e&&u<=n||s>=t&&u>=n?r-e-o:s>t&&u<n||r<e&&u>n?s-t+i:0}var c=function(e,t){var n=t.scrollMode,o=t.block,i=t.inline,r=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof r?r:function(e){return e!==r};if(!l(e))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,c=[],h=e;l(h)&&u(h);){if((h=h.parentNode)===a){c.push(h);break}h===document.body&&p(h)&&!p(document.documentElement)||p(h,s)&&c.push(h)}for(var f=window.visualViewport?visualViewport.width:innerWidth,g=window.visualViewport?visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),I=y.height,S=y.width,b=y.top,w=y.right,x=y.bottom,C=y.left,H="start"===o||"nearest"===o?b:"end"===o?x:b+I/2,O="center"===i?C+S/2:"end"===i?w:C,E=[],P=0;P<c.length;P++){var M=c[P],D=M.getBoundingClientRect(),T=D.height,k=D.width,A=D.top,R=D.right,K=D.bottom,V=D.left;if("if-needed"===n&&b>=0&&C>=0&&x<=g&&w<=f&&b>=A&&x<=K&&C>=V&&w<=R)return E;var _=getComputedStyle(M),L=parseInt(_.borderLeftWidth,10),B=parseInt(_.borderTopWidth,10),j=parseInt(_.borderRightWidth,10),$=parseInt(_.borderBottomWidth,10),U=0,W=0,N="offsetWidth"in M?M.offsetWidth-M.clientWidth-L-j:0,F="offsetHeight"in M?M.offsetHeight-M.clientHeight-B-$:0;if(a===M)U="start"===o?H:"end"===o?H-g:"nearest"===o?d(v,v+g,g,B,$,v+H,v+H+I,I):H-g/2,W="start"===i?O:"center"===i?O-f/2:"end"===i?O-f:d(m,m+f,f,L,j,m+O,m+O+S,S),U=Math.max(0,U+v),W=Math.max(0,W+m);else{U="start"===o?H-A-B:"end"===o?H-K+$+F:"nearest"===o?d(A,K,T,B,$+F,H,H+I,I):H-(A+T/2)+F/2,W="start"===i?O-V-L:"center"===i?O-(V+k/2)+N/2:"end"===i?O-R+j+N:d(V,R,k,L,j+N,O,O+S,S);var z=M.scrollLeft,Y=M.scrollTop;H+=Y-(U=Math.max(0,Math.min(Y+U,M.scrollHeight-T+F))),O+=z-(W=Math.max(0,Math.min(z+W,M.scrollWidth-k+N)))}E.push({el:M,top:U,left:W})}return E},h="undefined"==typeof document?null:document.getElementById("a11y-status-message"),f=[];function g(e){var t=f[f.length-1]===e;f=t?[].concat(f,[e]):[e];for(var n=function(){if(h)return h;return(h=document.createElement("div")).setAttribute("id","a11y-status-message"),h.setAttribute("role","status"),h.setAttribute("aria-live","polite"),h.setAttribute("aria-relevant","additions text"),Object.assign(h.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),document.body.appendChild(h),h}();n.lastChild;)n.removeChild(n.firstChild);f.filter(Boolean).forEach(function(e,t){n.appendChild(function(e,t){var n=t===f.length-1?"block":"none",o=document.createElement("div");return o.style.display=n,o.textContent=e,o}(e,t))})}var m=0,v=2,y=3,I=4,S=5,b=6,w=7,x=8,C=9,H=10,O=11,E=12,P=13,M=14,D=Object.freeze({unknown:m,mouseUp:1,itemMouseEnter:v,keyDownArrowUp:y,keyDownArrowDown:I,keyDownEscape:S,keyDownEnter:b,keyDownHome:w,keyDownEnd:x,clickItem:C,blurInput:H,changeInput:O,keyDownSpaceButton:E,clickButton:P,blurButton:M,controlledPropUpdatedSelectedItem:15,touchEnd:16}),T=0;function k(e){return"function"==typeof e?e:A}function A(){}function R(e,t){return e===t||e.contains&&e.contains(t)}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(o)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function V(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function _(e){return"string"==typeof e.type}function L(e){return e.props}var B=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function j(e){void 0===e&&(e={});var t={};return B.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function $(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function U(e,t,n){var o=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);var i=t+e;return i<0?i=o:i>o&&(i=0),i}var W=function(e){var t,n;function s(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+String(T++),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var o=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(e){return e!==o}),e()},t);n.timeoutIds.push(o)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=j(t),n.internalSetState(i({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,o){t=j(t),n.internalSetState(i({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),o)},n.selectItemAtIndex=function(e,t,o){var i=n.items[e];null!=i&&n.selectItem(i,t,o)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var o,r,s={},u="function"==typeof e;return!u&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,i({},n.getStateAndHelpers(),e)),n.setState(function(t){t=n.getState(t);var l=u?e(t):e;l=n.props.stateReducer(t,l),o=l.hasOwnProperty("selectedItem");var a={},p={};return o&&l.selectedItem!==t.selectedItem&&(r=l.selectedItem),l.type=l.type||m,Object.keys(l).forEach(function(e){t[e]!==l[e]&&(s[e]=l[e]),"type"!==e&&(p[e]=l[e],n.isControlledProp(e)||(a[e]=l[e]))}),u&&l.hasOwnProperty("inputValue")&&n.props.onInputValueChange(l.inputValue,i({},n.getStateAndHelpers(),l)),a},function(){k(t)(),Object.keys(s).length>1&&n.props.onStateChange(s,n.getStateAndHelpers()),o&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==r&&n.props.onChange(r,n.getStateAndHelpers()),n.props.onUserAction(s,n.getStateAndHelpers())})},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,s=void 0===e?{}:e,u=s.refKey,l=void 0===u?"ref":u,a=o(s,["refKey"]),p=(void 0===t?{}:t).suppressRefError,d=void 0!==p&&p;n.getRootProps.called=!0,n.getRootProps.refKey=l,n.getRootProps.suppressRefError=d;var c=n.getState().isOpen;return i(((r={})[l]=n.rootRef,r.role="combobox",r["aria-expanded"]=c,r["aria-haspopup"]="listbox",r["aria-owns"]=c?n.menuId:null,r["aria-labelledby"]=n.labelId,r),a)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:I})}else this.internalSetState({isOpen:!0,type:I},function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(U(1,t.getState().highlightedIndex,e),{type:I})})},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:y})}else this.internalSetState({isOpen:!0,type:y},function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(U(-1,t.getState().highlightedIndex,e),{type:I})})},Enter:function(e){var t=this.getState(),n=t.isOpen,o=t.highlightedIndex;if(n&&null!=o){e.preventDefault();var i=this.items[o],r=this.getItemNodeFromIndex(o);if(null==i||r&&r.hasAttribute("disabled"))return;this.selectHighlightedItem({type:b})}},Escape:function(e){e.preventDefault(),this.reset({type:S})}},n.buttonKeyDownHandlers=i({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:E})}}),n.inputKeyDownHandlers=i({},n.keyDownHandlers,{Home:function(e){this.highlightFirstOrLastIndex(e,!0,{type:w})},End:function(e){this.highlightFirstOrLastIndex(e,!1,{type:x})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick,s=(t.onPress,t.onKeyDown),u=t.onKeyUp,l=t.onBlur,a=o(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),p=n.getState().isOpen,d={onClick:K(r,n.buttonHandleClick),onKeyDown:K(s,n.buttonHandleKeyDown),onKeyUp:K(u,n.buttonHandleKeyUp),onBlur:K(l,n.buttonHandleBlur)};return i({type:"button",role:"button","aria-label":p?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},a.disabled?{}:d,a)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=$(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(r(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout(function(){return n.toggleMenu({type:P})})},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout(function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:M})})},n.getLabelProps=function(e){return i({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,s=t.onBlur,u=t.onChange,l=t.onInput,a=(t.onChangeText,o(t,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),p={};var d,c=n.getState(),h=c.inputValue,f=c.isOpen,g=c.highlightedIndex;a.disabled||((d={}).onChange=K(u,l,n.inputHandleChange),d.onKeyDown=K(r,n.inputHandleKeyDown),d.onBlur=K(s,n.inputHandleBlur),p=d);return i({"aria-autocomplete":"list","aria-activedescendant":f&&"number"==typeof g&&g>=0?n.getItemId(g):null,"aria-controls":f?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:h,id:n.inputId},p,a)},n.inputHandleKeyDown=function(e){var t=$(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(r(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:O,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleTextChange=function(e){n.internalSetState({type:O,isOpen:!0,inputValue:e,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout(function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:H})})},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,s=void 0===e?{}:e,u=s.refKey,l=void 0===u?"ref":u,a=s.ref,p=o(s,["refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,c=void 0!==d&&d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=l,n.getMenuProps.suppressRefError=c,i(((r={})[l]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t.forEach(function(e){e&&e.apply(void 0,n)})}}(a,n.menuRef),r.role="listbox",r["aria-labelledby"]=p&&p["aria-label"]?null:n.labelId,r.id=n.menuId,r),p)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,s=r.onMouseMove,u=r.onMouseDown,l=r.onClick,a=(r.onPress,r.index),p=r.item,d=void 0===p?void 0:p,c=o(r,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===a?(n.items.push(d),a=n.items.indexOf(d)):n.items[a]=d;var h=l,f=((t={onMouseMove:K(s,function(){a!==n.getState().highlightedIndex&&(n.setHighlightedIndex(a,{type:v}),n.avoidScrolling=!0,n.internalSetTimeout(function(){return n.avoidScrolling=!1},250))}),onMouseDown:K(u,function(e){e.preventDefault()})}).onClick=K(h,function(){n.selectItemAtIndex(a,{type:C})}),t),g=c.disabled?{onMouseDown:f.onMouseDown}:f;return i({id:n.getItemId(a),role:"option","aria-selected":n.getState().highlightedIndex===a},g,c)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=j(e),n.internalSetState(function(t){var o=t.selectedItem;return i({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(o)},e)},t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=j(e),n.internalSetState(function(t){var o=t.isOpen;return i({isOpen:!o},o&&{highlightedIndex:n.props.defaultHighlightedIndex},e)},function(){var o=n.getState(),i=o.isOpen,r=o.highlightedIndex;i&&n.getItemCount()>0&&"number"==typeof r&&n.setHighlightedIndex(r,e),k(t)()})},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=function(e,t){var n;function o(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];o(),n=setTimeout(function(){n=null,e.apply(void 0,r)},t)}return i.cancel=o,i}(function(){var e=n.getState(),t=n.items[e.highlightedIndex],o=n.getItemCount(),r=n.props.getA11yStatusMessage(i({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:o,highlightedItem:t},e));n.previousResultCount=o,g(r)},200);var s=n.props,u=s.defaultHighlightedIndex,l=s.initialHighlightedIndex,a=void 0===l?u:l,p=s.defaultIsOpen,d=s.initialIsOpen,c=void 0===d?p:d,h=s.initialInputValue,f=void 0===h?"":h,D=s.initialSelectedItem,A=void 0===D?null:D,R=n.getState({highlightedIndex:a,isOpen:c,inputValue:f,selectedItem:A});return null!=R.selectedItem&&void 0===n.props.initialInputValue&&(R.inputValue=n.props.itemToString(R.selectedItem)),n.state=R,n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=s.prototype;return l.internalClearTimeouts=function(){this.timeoutIds.forEach(function(e){clearTimeout(e)}),this.timeoutIds=[]},l.getState=function(e){var t=this;return void 0===e&&(e=this.state),Object.keys(e).reduce(function(n,o){return n[o]=t.isControlledProp(o)?t.props[o]:e[o],n},{})},l.isControlledProp=function(e){return void 0!==this.props[e]},l.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},l.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},l.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},l.moveHighlightedIndex=function(e,t){var n=this.getItemCount();if(n>0){var o=U(e,this.getState().highlightedIndex,n);this.setHighlightedIndex(o,t)}},l.highlightFirstOrLastIndex=function(e,t,n){var o=this.getItemCount()-1;o<0||!this.getState().isOpen||(e.preventDefault(),this.setHighlightedIndex(t?0:o,n))},l.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,o=e.selectedItem,i=e.isOpen,r=this.props.itemToString,s=this.id,u=this.getRootProps,l=this.getToggleButtonProps,a=this.getLabelProps,p=this.getMenuProps,d=this.getInputProps,c=this.getItemProps,h=this.openMenu,f=this.closeMenu,g=this.toggleMenu,m=this.selectItem,v=this.selectItemAtIndex,y=this.selectHighlightedItem,I=this.setHighlightedIndex,S=this.clearSelection,b=this.clearItems;return{getRootProps:u,getToggleButtonProps:l,getLabelProps:a,getMenuProps:p,getInputProps:d,getItemProps:c,reset:this.reset,openMenu:h,closeMenu:f,toggleMenu:g,selectItem:m,selectItemAtIndex:v,selectHighlightedItem:y,setHighlightedIndex:I,clearSelection:S,clearItems:b,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:r,id:s,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:o}},l.componentDidMount=function(){var e=this;var t=function(t,n){void 0===n&&(n=!0);var o=e.props.environment.document;return[e._rootNode,e._menuNode].some(function(e){return e&&(R(e,t)||n&&R(e,o.activeElement))})},n=function(){e.isMouseDown=!0},o=function(n){e.isMouseDown=!1,!t(n.target)&&e.getState().isOpen&&e.reset({type:1},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},i=function(){e.isTouchMove=!1},r=function(){e.isTouchMove=!0},s=function(n){var o=t(n.target,!1);e.isTouchMove||o||!e.getState().isOpen||e.reset({type:16},function(){return e.props.onOuterClick(e.getStateAndHelpers())})};this.props.environment.addEventListener("mousedown",n),this.props.environment.addEventListener("mouseup",o),this.props.environment.addEventListener("touchstart",i),this.props.environment.addEventListener("touchmove",r),this.props.environment.addEventListener("touchend",s),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),e.props.environment.removeEventListener("mousedown",n),e.props.environment.removeEventListener("mouseup",o),e.props.environment.removeEventListener("touchstart",i),e.props.environment.removeEventListener("touchmove",r),e.props.environment.removeEventListener("touchend",s)}},l.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,o=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==o},l.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},l.componentWillUnmount=function(){this.cleanup()},l.render=function(){var e=V(this.props.children,A);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=V(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:_(t)?u.a.cloneElement(t,this.getRootProps(L(t))):void 0:null},s}(s.Component);W.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:function(e){var t=e.isOpen,n=e.selectedItem,o=e.resultCount,i=e.previousResultCount,r=e.itemToString;return t?o?o!==i?o+" result"+(1===o?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":n?r(n):""},itemToString:function(e){return null==e?"":String(e)},onStateChange:A,onInputValueChange:A,onUserAction:A,onChange:A,onSelect:A,onOuterClick:A,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:function(e,t){null!==e&&c(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach(function(e){var t=e.el,n=e.top,o=e.left;t.scrollTop=n,t.scrollLeft=o})}},W.stateChangeTypes=D;t.a=W}]]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/mailchimp/admin-static/bundle/2.8838a376a98402a4d731.js DELETED
@@ -1 +0,0 @@
1
- (window.blocksyMailchimpExtJsonp=window.blocksyMailchimpExtJsonp||[]).push([[2],{12:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(11),c=n(2),i=n(10),o=n.n(i),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,c=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{!r&&o.return&&o.return()}finally{if(a)throw c}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();var l=null;t.default=function(e){var t,n,i=e.value,d=e.onChange,p=Object(r.useState)(l||[]),f=s(p,2),m=f[0],v=f[1],b=Object(r.useState)(!l),h=s(b,2),y=h[0],O=h[1],g=(t=regeneratorRuntime.mark(function e(){var t,n,r,a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a&&O(!0),(t=new FormData).append("action","blocksy_ext_mailchimp_get_actual_lists"),e.prev=3,e.next=6,fetch(ajaxurl,{method:"POST",body:t});case 6:if(200!==(n=e.sent).status){e.next=17;break}return e.next=10,n.json();case 10:if(!(r=e.sent).success){e.next=17;break}if("api_key_invalid"===r.data.result){e.next=17;break}return O(!1),v(r.data.result),l=r.data.result,e.abrupt("return");case 17:e.next=21;break;case 19:e.prev=19,e.t0=e.catch(3);case 21:O(!1);case 22:case"end":return e.stop()}},e,void 0,[[3,19]])}),n=function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function r(a,c){try{var i=e[a](c),o=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(o).then(function(e){r("next",e)},function(e){r("throw",e)});t(o)}("next")})},function(){return n.apply(this,arguments)});return Object(r.useEffect)(function(){g(!l)},[]),0===m.length?Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",{disabled:!0,placeholder:y?Object(c.__)("Loading..."):Object(c.__)("Invalid API Key...")})):Object(r.createElement)(a.a,{selectedItem:i||m[0].id,onChange:function(e){return d(e)},itemToString:function(e){return e?(m.find(function(t){return t.id===e})||{}).name:""}},function(e){var t=e.getInputProps,n=e.getItemProps,a=(e.getLabelProps,e.getMenuProps),i=e.isOpen,s=(e.inputValue,e.highlightedIndex),l=e.selectedItem,d=e.openMenu;return Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",u({},t({onFocus:function(){return d()},onClick:function(){return d()}}),{placeholder:Object(c.__)("Select list..."),readOnly:!0})),i&&Object(r.createElement)("div",a({className:"ct-select-dropdown"}),m.map(function(e,t){return Object(r.createElement)("div",n({key:e.id,index:t,item:e.id,className:o()("ct-select-dropdown-item",{active:s===t,selected:l===e.id})}),e.name)})))})}}}]);
 
framework/extensions/mailchimp/static/bundle/main.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.32
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.33
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
framework/extensions/read-progress/config.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
-
3
- $config = [
4
- 'description' => __('Display a neat reading progress bar at the top single posts and pages.', 'blc')
5
- ];
6
-
7
-
8
-
 
 
 
 
 
 
 
 
framework/extensions/read-progress/extension.php DELETED
@@ -1,76 +0,0 @@
1
- <?php
2
-
3
- require_once dirname( __FILE__ ) . '/helpers.php';
4
-
5
- class BlocksyExtensionReadProgress {
6
- public function __construct() {
7
- add_action('wp_enqueue_scripts', function () {
8
- if (! function_exists('get_plugin_data')){
9
- require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
10
- }
11
-
12
- $data = get_plugin_data(BLOCKSY__FILE__);
13
-
14
- if (is_admin()) return;
15
-
16
- if (! BlocksyExtensionReadProgress::should_enable_progress_bar()) {
17
- return;
18
- }
19
-
20
- wp_enqueue_style(
21
- 'blocksy-ext-read-progress-bar-styles',
22
- BLOCKSY_URL . 'framework/extensions/read-progress/static/bundle/main.css',
23
- [],
24
- $data['Version']
25
- );
26
-
27
- wp_enqueue_script(
28
- 'blocksy-ext-read-progress-bar-scripts',
29
- BLOCKSY_URL . 'framework/extensions/read-progress/static/bundle/main.js',
30
- [],
31
- $data['Version'],
32
- true
33
- );
34
-
35
- $data = [
36
- 'public_url' => BLOCKSY_URL . 'framework/extensions/read-progress/static/bundle/',
37
- ];
38
-
39
- wp_localize_script(
40
- 'blocksy-ext-read-progress-bar-scripts',
41
- 'blocksy_ext_read_progress_localization',
42
- $data
43
- );
44
- });
45
-
46
- add_filter('blocksy_extensions_metabox_page_bottom', function ($opts) {
47
- $opts['read_progress_bar'] = [
48
- 'label' => __( 'Read progress bar', 'blocksy' ),
49
- 'type' => 'ct-switch',
50
- 'value' => 'yes',
51
- ];
52
-
53
- return $opts;
54
- });
55
- }
56
-
57
- public static function should_enable_progress_bar() {
58
- if (! function_exists('blocksy_is_page')) {
59
- return false;
60
- }
61
-
62
- if (! blocksy_is_page() && !is_single()) {
63
- return false;
64
- }
65
-
66
- if (is_single() && get_post_type() !== 'post') {
67
- return false;
68
- }
69
-
70
- return blocksy_default_akg(
71
- 'read_progress_bar',
72
- blocksy_get_post_options(),
73
- 'yes'
74
- ) === 'yes';
75
- }
76
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/read-progress/helpers.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
-
3
- function blc_output_read_progress_bar() {
4
- if (! BlocksyExtensionReadProgress::should_enable_progress_bar()) {
5
- return '';
6
- }
7
-
8
- return '<div class="ct-read-progress-bar"></div>';
9
- }
10
-
 
 
 
 
 
 
 
 
 
 
framework/extensions/read-progress/readme.php DELETED
@@ -1,22 +0,0 @@
1
- <h1><?php echo __('Instructions', 'blc'); ?></h1>
2
-
3
- <p>
4
- <?php echo __('After installing and activating the Read Progress extension you will be able to configure it from this location:', 'blc') ?>
5
- </p>
6
-
7
- <ul>
8
-
9
- <li>
10
- <b>
11
- <?php echo __('Metabox', 'blc') ?>
12
- </b>
13
- <i>
14
- <?php
15
- echo __(
16
- 'From the posts or pages metabox you will have the possibility to deactivate or activate the progress bar.', 'blc'
17
- );
18
- ?>
19
- </i>
20
- </li>
21
- </ul>
22
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/read-progress/static/bundle/1.4e041077b3d19928a037.js DELETED
@@ -1 +0,0 @@
1
- (window.blocksyReadProgressWidgetJsonp=window.blocksyReadProgressWidgetJsonp||[]).push([[1],{2:function(e,t,n){"use strict";n.r(t),n.d(t,"mount",function(){return o});var r=function(){var e=document.querySelector(".entry-content").getBoundingClientRect();document.querySelector(".ct-read-progress-bar").style.setProperty("--scroll",Math.max(0,Math.min(100,100*pageYOffset/(e.top+e.height+pageYOffset-innerHeight)))+"%")},o=function(){r(),document.addEventListener("scroll",function(){return r()})}}}]);
 
framework/extensions/read-progress/static/bundle/main.css DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * - v1.0.3
3
- *
4
- * Copyright (c) 2019
5
- * Licensed GPLv2+
6
- */
7
-
8
- .ct-read-progress-bar{background:-webkit-gradient(linear, left top, right top, from(var(--paletteColor1)), color-stop(0, transparent));background:linear-gradient(to right, var(--paletteColor1) var(--scroll, 0%), transparent 0);background-repeat:no-repeat;position:fixed;top:0;width:100%;height:3px;z-index:10;opacity:1;-webkit-transition:opacity 0.1s ease;transition:opacity 0.1s ease}.ct-read-progress-bar[style*='100']{opacity:0}@media screen and (min-width: 783px){.admin-bar .ct-read-progress-bar{top:32px}}@media screen and (max-width: 782px){.admin-bar .ct-read-progress-bar{top:46px}}@media screen and (max-width: 600px){.admin-bar .ct-read-progress-bar{top:0}}
 
 
 
 
 
 
 
 
framework/extensions/read-progress/static/bundle/main.js DELETED
@@ -1 +0,0 @@
1
- !function(e){function t(t){for(var r,o,u=t[0],i=t[1],c=0,l=[];c<u.length;c++)o=u[c],n[o]&&l.push(n[o][0]),n[o]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(a&&a(t);l.length;)l.shift()()}var r={},n={0:0};function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.e=function(e){var t=[],r=n[e];if(0!==r)if(r)t.push(r[2]);else{var u=new Promise(function(t,o){r=n[e]=[t,o]});t.push(r[2]=u);var i,c=document.createElement("script");c.charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.src=function(e){return o.p+""+e+"."+{1:"4e041077b3d19928a037"}[e]+".js"}(e),i=function(t){c.onerror=c.onload=null,clearTimeout(a);var r=n[e];if(0!==r){if(r){var o=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src,i=new Error("Loading chunk "+e+" failed.\n("+o+": "+u+")");i.type=o,i.request=u,r[1](i)}n[e]=void 0}};var a=setTimeout(function(){i({type:"timeout",target:c})},12e4);c.onerror=c.onload=i,document.head.appendChild(c)}return Promise.all(t)},o.m=e,o.c=r,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var u=window.blocksyReadProgressWidgetJsonp=window.blocksyReadProgressWidgetJsonp||[],i=u.push.bind(u);u.push=t,u=u.slice();for(var c=0;c<u.length;c++)t(u[c]);var a=i;o(o.s=0)}([function(e,t,r){"use strict";r.r(t);r(1);document.addEventListener("DOMContentLoaded",function(){document.querySelector(".ct-read-progress-bar")&&r.e(1).then(r.bind(null,2)).then(function(e){return(0,e.mount)()})})},function(e,t,r){r.p=blocksy_ext_read_progress_localization.public_url}]);
 
framework/extensions/read-progress/static/js/implementation.js DELETED
@@ -1,28 +0,0 @@
1
- const render = () => {
2
- const entryContent = document
3
- .querySelector('.entry-content')
4
- .getBoundingClientRect()
5
-
6
- document
7
- .querySelector('.ct-read-progress-bar')
8
- .style.setProperty(
9
- '--scroll',
10
- `${Math.max(
11
- 0,
12
- Math.min(
13
- 100,
14
- 100 *
15
- pageYOffset /
16
- (entryContent.top +
17
- entryContent.height +
18
- pageYOffset -
19
- innerHeight)
20
- )
21
- )}%`
22
- )
23
- }
24
-
25
- export const mount = () => {
26
- render()
27
- document.addEventListener('scroll', () => render())
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/read-progress/static/js/main.js DELETED
@@ -1,9 +0,0 @@
1
- import './public-path'
2
-
3
- document.addEventListener('DOMContentLoaded', () => {
4
- if (!document.querySelector('.ct-read-progress-bar')) {
5
- return
6
- }
7
-
8
- import('./implementation').then(({ mount }) => mount())
9
- })
 
 
 
 
 
 
 
 
 
framework/extensions/read-progress/static/js/public-path.js DELETED
@@ -1 +0,0 @@
1
- __webpack_public_path__ = blocksy_ext_read_progress_localization.public_url
 
framework/extensions/read-progress/static/sass/main.scss DELETED
@@ -1,29 +0,0 @@
1
- .ct-read-progress-bar {
2
- background: linear-gradient(to right, var(--paletteColor1) var(--scroll, 0%), transparent 0);
3
- background-repeat: no-repeat;
4
- position: fixed;
5
- top: 0;
6
- width: 100%;
7
- height: 3px;
8
- z-index: 10;
9
- opacity: 1;
10
- transition: opacity 0.1s ease;
11
-
12
- &[style*='100'] {
13
- opacity: 0;
14
- }
15
- }
16
-
17
- .admin-bar .ct-read-progress-bar {
18
- @media screen and (min-width: 783px) {
19
- top: 32px;
20
- }
21
-
22
- @media screen and (max-width: 782px) {
23
- top: 46px;
24
- }
25
-
26
- @media screen and (max-width: 600px) {
27
- top: 0;
28
- }
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/extensions/trending/static/bundle/main.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.32
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.33
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
framework/extensions/widgets/static/bundle/main.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.32
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.33
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
framework/extensions/woocommerce-extra/static/bundle/main.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.32
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.33
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
readme.txt CHANGED
@@ -5,6 +5,7 @@ Requires PHP: 7.0
5
  Tested up to: 5.5
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
8
 
9
  == Description ==
10
 
@@ -23,6 +24,9 @@ This plugin runs and adds its enhacements only if the Blocksy theme is installed
23
  2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
24
 
25
  == Changelog ==
 
 
 
26
  1.7.32: 2020-11-13
27
  - Fix: Show "Global Header" not default
28
  - Fix: Show which footer is customized
5
  Tested up to: 5.5
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
+ Stable tag: 1.7.33
9
 
10
  == Description ==
11
 
24
  2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
25
 
26
  == Changelog ==
27
+ 1.7.33: 2020-11-14
28
+ - Fix: Minor issues
29
+
30
  1.7.32: 2020-11-13
31
  - Fix: Show "Global Header" not default
32
  - Fix: Show which footer is customized
static/bundle/dashboard.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.32
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.33
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
static/bundle/main.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.32
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.33
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
static/bundle/options.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.7.32
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.7.33
3
  *
4
  * Copyright (c) 2020
5
  * Licensed GPLv2+
static/img/extensions.svg DELETED
@@ -1,30 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 23.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve">
5
- <style type="text/css">
6
- .st0{clip-path:url(#SVGID_2_);fill:#F3F6F8;}
7
- .st1{fill:#0C7AB3;}
8
- .st2{fill:#3497D3;}
9
- .st3{fill:#DBE7EE;}
10
- .st4{fill:#BDC8D7;}
11
- .st5{fill:#44ACDF;}
12
- </style>
13
- <g>
14
- <g>
15
- <defs>
16
- <rect id="SVGID_1_" width="90" height="90"/>
17
- </defs>
18
- <clipPath id="SVGID_2_">
19
- <use xlink:href="#SVGID_1_" style="overflow:visible;"/>
20
- </clipPath>
21
- <circle class="st0" cx="45" cy="45" r="45"/>
22
- </g>
23
- </g>
24
- <ellipse class="st1" cx="45" cy="28.3" rx="5" ry="3.3"/>
25
- <ellipse class="st2" cx="56.7" cy="33.3" rx="5" ry="3.3"/>
26
- <ellipse class="st2" cx="33.3" cy="33.3" rx="5" ry="3.3"/>
27
- <path class="st3" d="M25,56c0,1.4,0.9,2.7,2.2,3.1L43.3,65V45L25,38.3V56z"/>
28
- <path class="st4" d="M46.7,45v20l16.1-5.9c1.3-0.5,2.2-1.7,2.2-3.1V38.3L46.7,45z"/>
29
- <ellipse class="st5" cx="45" cy="38.3" rx="5" ry="3.3"/>
30
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
static/sass/extensions.scss DELETED
@@ -1,35 +0,0 @@
1
- $extension-spacing: 25px;
2
-
3
- .ct-extensions-list ul {
4
- display: grid;
5
- grid-template-columns: repeat(2, 1fr);
6
- grid-column-gap: 35px;
7
- grid-row-gap: 35px;
8
- margin: 0;
9
-
10
- li {
11
- display: flex;
12
- flex-direction: column;
13
- margin: 0;
14
- // padding: $extension-spacing 0;
15
- border-radius: 3px;
16
- border: 1px solid rgba(226, 230, 235, 0.7);
17
- box-shadow: 0 2px 5px rgba(143, 163, 184, 0.12);
18
- }
19
- }
20
-
21
- .ct-extension-title {
22
- margin: 35px 0 15px 0;
23
- padding: 0 $extension-spacing;
24
- }
25
-
26
- .ct-extension-description {
27
- margin-bottom: 35px;
28
- padding: 0 $extension-spacing;
29
- }
30
-
31
- .ct-extension-actions {
32
- margin-top: auto;
33
- padding: 20px $extension-spacing;
34
- border-top: 1px solid rgba(226, 230, 235, 0.7);
35
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
static/sass/extensions/extensions-config.scss DELETED
@@ -1,47 +0,0 @@
1
- .ct-extension-config {
2
- display: flex;
3
- flex-direction: column;
4
- justify-content: center;
5
- padding: 30px;
6
- }
7
-
8
- .ct-config-btn {
9
- font-size: 16px;
10
- margin-left: auto;
11
- }
12
-
13
-
14
- .mailchimp-credentials {
15
- display: flex;
16
- margin: 10px 0 0 0;
17
-
18
- li {
19
- display: flex;
20
- flex-direction: column;
21
- justify-content: flex-end;
22
- margin-bottom: 0;
23
- // flex: 1;
24
-
25
- &:not(:first-child) {
26
- margin-left: 10px;
27
- }
28
- }
29
-
30
- label {
31
- display: block;
32
- font-size: 12px;
33
- margin-bottom: 3px;
34
- opacity: 0.7;
35
- }
36
-
37
- input {
38
- height: 35px;
39
- border-radius: 2px;
40
- margin: 0;
41
- padding: 3px 5px 3px 10px;
42
- }
43
-
44
- .ct-select-input:after {
45
- top: 16px;
46
- }
47
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
static/sass/extensions/extensions-readme.scss DELETED
@@ -1,40 +0,0 @@
1
- .ct-extension-readme {
2
- text-align: left;
3
- padding: 30px;
4
-
5
- ul,
6
- ol {
7
- margin: 0;
8
- padding-left: 20px;
9
-
10
- li {
11
- margin-bottom: 20px;
12
-
13
- &:last-child {
14
- margin-bottom: 0;
15
- }
16
-
17
- b {
18
- display: inline-block;
19
- margin-bottom: 10px;
20
- }
21
-
22
- i {
23
- display: block;
24
- color: #717a84;
25
- }
26
- }
27
- }
28
-
29
- ul {
30
- list-style: initial;
31
- }
32
-
33
- code {
34
- font-size: 12px;
35
- font-style: normal;
36
- padding: 3px 7px;
37
- border-radius: 2px;
38
- background: #f1f3f5;
39
- }
40
- }