FEEDZY RSS Feeds Lite - Version 4.0.3

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon 128x128 FEEDZY RSS Feeds Lite
Version 4.0.3
Comparing to
See all releases

Code changes from version 4.0.2 to 4.0.3

CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  ##### [Version 4.0.2](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v4.0.1...v4.0.2) (2022-09-09)
2
 
3
  #### Fixes
1
+ ##### [Version 4.0.3](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v4.0.2...v4.0.3) (2022-09-27)
2
+
3
+ - Fix Feedzy RSS feed cache not working on the widgets.
4
+ - Remove legacy elementor widget for new users
5
+ - Fix external image support on import for some websites
6
+ - Enter key on feed fields should load the feed automatically
7
+
8
  ##### [Version 4.0.2](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v4.0.1...v4.0.2) (2022-09-09)
9
 
10
  #### Fixes
css/feedzy-elementor-widget.css CHANGED
@@ -95,7 +95,7 @@
95
  .fz-light-mode.fz-pro-notice p{
96
  color: #6D7882;
97
  }
98
- .docs-btn a{
99
  display: inline-block;
100
  background: #4268CF;
101
  padding: 6px 12px;
@@ -106,8 +106,8 @@
106
  text-transform: uppercase;
107
  color: #FFFFFF;
108
  }
109
- .docs-btn a:hover,
110
- .docs-btn a:focus{
111
  color: #FFFFFF;
112
  }
113
  .docs-btn span{
@@ -119,6 +119,9 @@
119
  color: #757575;
120
  padding-top: 8px;
121
  }
 
 
 
122
  .fz-light-mode .docs-btn span {
123
  color: #757575;
124
  }
95
  .fz-light-mode.fz-pro-notice p{
96
  color: #6D7882;
97
  }
98
+ .docs-btn a.fz-upgrade-link{
99
  display: inline-block;
100
  background: #4268CF;
101
  padding: 6px 12px;
106
  text-transform: uppercase;
107
  color: #FFFFFF;
108
  }
109
+ .docs-btn a.fz-upgrade-link:hover,
110
+ .docs-btn a.fz-upgrade-link:focus{
111
  color: #FFFFFF;
112
  }
113
  .docs-btn span{
119
  color: #757575;
120
  padding-top: 8px;
121
  }
122
+ .docs-btn span a {
123
+ color: #757575;
124
+ }
125
  .fz-light-mode .docs-btn span {
126
  color: #757575;
127
  }
css/feedzy-rss-feeds.css CHANGED
@@ -2,7 +2,7 @@
2
  * feedzy-rss-feeds.css
3
  * Feedzy RSS Feed
4
  * Copyright: (c) 2016 Themeisle, themeisle.com
5
- * Version: 4.0.2
6
  * Plugin Name: FEEDZY RSS Feeds
7
  * Plugin URI: http://themeisle.com/plugins/feedzy-rss-feeds/
8
  * Author: Themeisle
2
  * feedzy-rss-feeds.css
3
  * Feedzy RSS Feed
4
  * Copyright: (c) 2016 Themeisle, themeisle.com
5
+ * Version: 4.0.3
6
  * Plugin Name: FEEDZY RSS Feeds
7
  * Plugin URI: http://themeisle.com/plugins/feedzy-rss-feeds/
8
  * Author: Themeisle
feedzy-rss-feed.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: Feedzy RSS Feeds Lite
16
  * Plugin URI: https://themeisle.com/plugins/feedzy-rss-feeds/
17
  * Description: A small and lightweight RSS aggregator plugin. Fast and very easy to use, it allows you to aggregate multiple RSS feeds into your WordPress site through fully customizable shortcodes & widgets.
18
- * Version: 4.0.2
19
  * Author: Themeisle
20
  * Author URI: http://themeisle.com
21
  * License: GPL-2.0+
15
  * Plugin Name: Feedzy RSS Feeds Lite
16
  * Plugin URI: https://themeisle.com/plugins/feedzy-rss-feeds/
17
  * Description: A small and lightweight RSS aggregator plugin. Fast and very easy to use, it allows you to aggregate multiple RSS feeds into your WordPress site through fully customizable shortcodes & widgets.
18
+ * Version: 4.0.3
19
  * Author: Themeisle
20
  * Author URI: http://themeisle.com
21
  * License: GPL-2.0+
includes/abstract/feedzy-rss-feeds-admin-abstract.php CHANGED
@@ -777,6 +777,7 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
777
  if ( false === apply_filters( 'feedzy_disable_db_cache', false, $feed_url ) ) {
778
  SimplePie_Cache::register( 'wp_transient', 'WP_Feed_Cache_Transient' );
779
  $feed->set_cache_location( 'wp_transient' );
 
780
  add_filter(
781
  'wp_feed_cache_transient_lifetime',
782
  function( $time ) use ( $cache_time ) {
@@ -1472,6 +1473,8 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
1472
  $item_content = esc_html__( 'Post Content', 'feedzy-rss-feeds' );
1473
  }
1474
  $item_array = array(
 
 
1475
  'item_img_class' => 'rss_image',
1476
  'item_img_style' => 'width:' . $sizes['width'] . 'px; height:' . $sizes['height'] . 'px;',
1477
  'item_url' => $new_link,
777
  if ( false === apply_filters( 'feedzy_disable_db_cache', false, $feed_url ) ) {
778
  SimplePie_Cache::register( 'wp_transient', 'WP_Feed_Cache_Transient' );
779
  $feed->set_cache_location( 'wp_transient' );
780
+ $feed->set_cache_duration( $cache_time );
781
  add_filter(
782
  'wp_feed_cache_transient_lifetime',
783
  function( $time ) use ( $cache_time ) {
1473
  $item_content = esc_html__( 'Post Content', 'feedzy-rss-feeds' );
1474
  }
1475
  $item_array = array(
1476
+ 'feed_url' => $item->get_feed()->subscribe_url(),
1477
+ 'item_unique_hash' => wp_hash( $item->get_permalink() ),
1478
  'item_img_class' => 'rss_image',
1479
  'item_img_style' => 'width:' . $sizes['width'] . 'px; height:' . $sizes['height'] . 'px;',
1480
  'item_url' => $new_link,
includes/admin/feedzy-rss-feeds-admin.php CHANGED
@@ -851,4 +851,37 @@ class Feedzy_Rss_Feeds_Admin extends Feedzy_Rss_Feeds_Admin_Abstract {
851
  public function feedzy_remove_elementor_feature( $manager_object, $experimental_data ) {
852
  $manager_object->remove_feature( 'e_hidden_wordpress_widgets' );
853
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
854
  }
851
  public function feedzy_remove_elementor_feature( $manager_object, $experimental_data ) {
852
  $manager_object->remove_feature( 'e_hidden_wordpress_widgets' );
853
  }
854
+
855
+ /**
856
+ * Remove legacy widget.
857
+ *
858
+ * @param array $list Black list widgets.
859
+ * @return array
860
+ */
861
+ public function feedzy_remove_elementor_widgets( $list ) {
862
+ global $post;
863
+
864
+ if ( ! defined( 'ELEMENTOR_PATH' ) || ! class_exists( '\Elementor\Plugin', false ) ) {
865
+ return $list;
866
+ }
867
+
868
+ if ( ! method_exists( \Elementor\Plugin::$instance->documents, 'get' ) ) {
869
+ return $list;
870
+ }
871
+
872
+ $black_list = array( 'feedzy_wp_widget' );
873
+ $data = \Elementor\Plugin::$instance->documents->get( $post->ID )->get_elements_data();
874
+
875
+ if ( ! empty( $data ) ) {
876
+ \Elementor\Plugin::$instance->db->iterate_data(
877
+ $data,
878
+ function ( $element ) use ( &$black_list ) {
879
+ if ( ! empty( $element['widgetType'] ) && 'wp-widget-feedzy_wp_widget' === $element['widgetType'] ) {
880
+ $black_list = array();
881
+ }
882
+ }
883
+ );
884
+ }
885
+ return array_merge( $list, $black_list );
886
+ }
887
  }
includes/admin/feedzy-rss-feeds-import.php CHANGED
@@ -1300,7 +1300,16 @@ class Feedzy_Rss_Feeds_Import {
1300
 
1301
  $duplicates = $items_found = array();
1302
  $found_duplicates = array();
1303
- foreach ( $result as $item ) {
 
 
 
 
 
 
 
 
 
1304
  $item_hash = $use_new_hash ? $item['item_id'] : hash( 'sha256', $item['item_url'] . '_' . $item['item_date'] );
1305
  $is_duplicate = $use_new_hash ? in_array( $item_hash, $imported_items_new, true ) : in_array( $item_hash, $imported_items_old, true );
1306
  $items_found[ $item['item_url'] ] = $item['item_title'];
@@ -1367,8 +1376,8 @@ class Feedzy_Rss_Feeds_Import {
1367
  $import_title
1368
  );
1369
 
1370
- if ( $this->feedzy_is_business() || $this->feedzy_is_personal() ) {
1371
- $post_title = apply_filters( 'feedzy_parse_custom_tags', $post_title, ! empty( $xml_results ) ? $xml_results['feed'] : $results['feed'], $item['item_index'] );
1372
  }
1373
 
1374
  $post_title = apply_filters( 'feedzy_invoke_services', $post_title, 'title', $item['item_title'], $job );
@@ -1458,8 +1467,8 @@ class Feedzy_Rss_Feeds_Import {
1458
  $post_content = apply_filters( 'feedzy_invoke_services', $post_content, 'full_content', $full_content, $job );
1459
  }
1460
 
1461
- if ( $this->feedzy_is_business() || $this->feedzy_is_personal() ) {
1462
- $post_content = apply_filters( 'feedzy_parse_custom_tags', $post_content, ! empty( $xml_results ) ? $xml_results['feed'] : $results['feed'], $item['item_index'] );
1463
  }
1464
 
1465
  $post_content = apply_filters( 'feedzy_invoke_services', $post_content, 'content', $item['item_description'], $job );
@@ -1525,8 +1534,8 @@ class Feedzy_Rss_Feeds_Import {
1525
  $post_excerpt
1526
  );
1527
 
1528
- if ( $this->feedzy_is_business() || $this->feedzy_is_personal() ) {
1529
- $item_post_excerpt = apply_filters( 'feedzy_parse_custom_tags', $item_post_excerpt, ! empty( $xml_results ) ? $xml_results['feed'] : $results['feed'], $item['item_index'] );
1530
  }
1531
 
1532
  $new_post = apply_filters(
@@ -1571,8 +1580,9 @@ class Feedzy_Rss_Feeds_Import {
1571
  } elseif ( strpos( $import_featured_img, '[#item_custom' ) !== false ) {
1572
  // custom image tag
1573
  if ( $this->feedzy_is_business() || $this->feedzy_is_personal() ) {
1574
- $value = apply_filters( 'feedzy_parse_custom_tags', $import_featured_img, $results['feed'], $index );
1575
  }
 
1576
  if ( ! empty( $value ) && strpos( $value, '[#item_custom' ) === false ) {
1577
  $image_url = $value;
1578
  } else {
@@ -1647,7 +1657,7 @@ class Feedzy_Rss_Feeds_Import {
1647
  }
1648
  }
1649
 
1650
- do_action( 'feedzy_import_extra', $job, ! empty( $xml_results ) ? $xml_results : $results, $new_post_id, $index, $item['item_index'], $import_errors, $import_info );
1651
 
1652
  if ( ! empty( $import_featured_img ) && 'attachment' !== $import_post_type ) {
1653
  $image_url = '';
@@ -1664,7 +1674,7 @@ class Feedzy_Rss_Feeds_Import {
1664
  } elseif ( strpos( $import_featured_img, '[#item_custom' ) !== false ) {
1665
  // custom image tag
1666
  if ( $this->feedzy_is_business() || $this->feedzy_is_personal() ) {
1667
- $value = apply_filters( 'feedzy_parse_custom_tags', $import_featured_img, ! empty( $xml_results ) ? $xml_results['feed'] : $results['feed'], $index );
1668
  }
1669
  if ( ! empty( $value ) && strpos( $value, '[#item_custom' ) === false ) {
1670
  $image_url = $value;
1300
 
1301
  $duplicates = $items_found = array();
1302
  $found_duplicates = array();
1303
+ foreach ( $result as $key => $item ) {
1304
+ $item_obj = $item;
1305
+ // find item index key when import full content.
1306
+ if ( ! empty( $xml_results ) ) {
1307
+ $item_unique_hash = array_column( $xml_results['items'], 'item_unique_hash' );
1308
+ $real_index_key = array_search( $item['item_unique_hash'], $item_unique_hash, true );
1309
+ if ( isset( $xml_results['items'][ $real_index_key ] ) ) {
1310
+ $item_obj = $xml_results['items'][ $real_index_key ];
1311
+ }
1312
+ }
1313
  $item_hash = $use_new_hash ? $item['item_id'] : hash( 'sha256', $item['item_url'] . '_' . $item['item_date'] );
1314
  $is_duplicate = $use_new_hash ? in_array( $item_hash, $imported_items_new, true ) : in_array( $item_hash, $imported_items_old, true );
1315
  $items_found[ $item['item_url'] ] = $item['item_title'];
1376
  $import_title
1377
  );
1378
 
1379
+ if ( $this->feedzy_is_business() ) {
1380
+ $post_title = apply_filters( 'feedzy_parse_custom_tags', $post_title, $item_obj );
1381
  }
1382
 
1383
  $post_title = apply_filters( 'feedzy_invoke_services', $post_title, 'title', $item['item_title'], $job );
1467
  $post_content = apply_filters( 'feedzy_invoke_services', $post_content, 'full_content', $full_content, $job );
1468
  }
1469
 
1470
+ if ( $this->feedzy_is_business() ) {
1471
+ $post_content = apply_filters( 'feedzy_parse_custom_tags', $post_content, $item_obj );
1472
  }
1473
 
1474
  $post_content = apply_filters( 'feedzy_invoke_services', $post_content, 'content', $item['item_description'], $job );
1534
  $post_excerpt
1535
  );
1536
 
1537
+ if ( $this->feedzy_is_business() ) {
1538
+ $item_post_excerpt = apply_filters( 'feedzy_parse_custom_tags', $item_post_excerpt, $item_obj );
1539
  }
1540
 
1541
  $new_post = apply_filters(
1580
  } elseif ( strpos( $import_featured_img, '[#item_custom' ) !== false ) {
1581
  // custom image tag
1582
  if ( $this->feedzy_is_business() || $this->feedzy_is_personal() ) {
1583
+ $value = apply_filters( 'feedzy_parse_custom_tags', $import_featured_img, $item_obj );
1584
  }
1585
+
1586
  if ( ! empty( $value ) && strpos( $value, '[#item_custom' ) === false ) {
1587
  $image_url = $value;
1588
  } else {
1657
  }
1658
  }
1659
 
1660
+ do_action( 'feedzy_import_extra', $job, $item_obj, $new_post_id, $import_errors, $import_info );
1661
 
1662
  if ( ! empty( $import_featured_img ) && 'attachment' !== $import_post_type ) {
1663
  $image_url = '';
1674
  } elseif ( strpos( $import_featured_img, '[#item_custom' ) !== false ) {
1675
  // custom image tag
1676
  if ( $this->feedzy_is_business() || $this->feedzy_is_personal() ) {
1677
+ $value = apply_filters( 'feedzy_parse_custom_tags', $import_featured_img, $item_obj );
1678
  }
1679
  if ( ! empty( $value ) && strpos( $value, '[#item_custom' ) === false ) {
1680
  $image_url = $value;
includes/elementor/controls/template-layout.php CHANGED
@@ -40,8 +40,8 @@ class Control_Template_Layout extends Base_Data_Control {
40
  <h3>' . esc_html__( 'Discover Feedzy Pro', 'feedzy-rss-feeds' ) . '</h3>
41
  <p>' . esc_html__( 'With Feedzy Pro you get more features, like Custom Templates, Magic Tags, Keywords filters and much more.', 'feedzy-rss-feeds' ) . '</p>
42
  <div class="docs-btn">
43
- <a href="' . esc_url( 'https://docs.themeisle.com/article/1119-feedzy-rss-feeds-documentation' ) . '" target="_blank">' . esc_html__( 'Learn more', 'feedzy-rss-feeds' ) . '</a>
44
- <span>' . esc_html__( 'Open Feedzy docs', 'feedzy-rss-feeds' ) . '</span>
45
  </div>
46
  </div>';
47
  }
40
  <h3>' . esc_html__( 'Discover Feedzy Pro', 'feedzy-rss-feeds' ) . '</h3>
41
  <p>' . esc_html__( 'With Feedzy Pro you get more features, like Custom Templates, Magic Tags, Keywords filters and much more.', 'feedzy-rss-feeds' ) . '</p>
42
  <div class="docs-btn">
43
+ <a href="' . FEEDZY_UPSELL_LINK . '" target="_blank" class="fz-upgrade-link">' . esc_html__( 'Learn more', 'feedzy-rss-feeds' ) . '</a>
44
+ <span><a href="' . esc_url( 'https://docs.themeisle.com/article/1119-feedzy-rss-feeds-documentation' ) . '" target="_blank">' . esc_html__( 'Open Feedzy docs', 'feedzy-rss-feeds' ) . '</a></span>
45
  </div>
46
  </div>';
47
  }
includes/feedzy-rss-feeds-feed-tweaks.php CHANGED
@@ -78,6 +78,9 @@ function display_external_post_image( $html, $post_id, $post_thumbnail_id, $size
78
  $alt = get_the_title( $post_id );
79
  $attr['alt'] = $alt;
80
  $attr = apply_filters( 'wp_get_attachment_image_attributes', $attr, '', '' );
 
 
 
81
  $attr = array_map( 'esc_attr', $attr );
82
  $html = sprintf( '<img src="%s"', esc_url( $url ) );
83
  foreach ( $attr as $name => $value ) {
78
  $alt = get_the_title( $post_id );
79
  $attr['alt'] = $alt;
80
  $attr = apply_filters( 'wp_get_attachment_image_attributes', $attr, '', '' );
81
+ if ( isset( $attr['style'] ) ) {
82
+ unset( $attr['style'] );
83
+ }
84
  $attr = array_map( 'esc_attr', $attr );
85
  $html = sprintf( '<img src="%s"', esc_url( $url ) );
86
  foreach ( $attr as $name => $value ) {
includes/feedzy-rss-feeds.php CHANGED
@@ -104,7 +104,7 @@ class Feedzy_Rss_Feeds {
104
  */
105
  public function init() {
106
  self::$plugin_name = 'feedzy-rss-feeds';
107
- self::$version = '4.0.2';
108
  self::$instance->load_dependencies();
109
  self::$instance->set_locale();
110
  self::$instance->define_admin_hooks();
@@ -277,7 +277,8 @@ class Feedzy_Rss_Feeds {
277
  self::$instance->loader->add_action( 'admin_notices', $plugin_import, 'feedzy_import_clone_success_notice' );
278
  // Remove elementor feature.
279
  self::$instance->loader->add_action( 'elementor/experiments/feature-registered', self::$instance->admin, 'feedzy_remove_elementor_feature', 10, 2 );
280
-
 
281
  // Register elementor widget.
282
  $plugin_elementor_widget = new Feedzy_Rss_Feeds_Elementor();
283
  $this->loader->add_action( 'elementor/widgets/register', $plugin_elementor_widget, 'feedzy_elementor_widgets_registered' );
104
  */
105
  public function init() {
106
  self::$plugin_name = 'feedzy-rss-feeds';
107
+ self::$version = '4.0.3';
108
  self::$instance->load_dependencies();
109
  self::$instance->set_locale();
110
  self::$instance->define_admin_hooks();
277
  self::$instance->loader->add_action( 'admin_notices', $plugin_import, 'feedzy_import_clone_success_notice' );
278
  // Remove elementor feature.
279
  self::$instance->loader->add_action( 'elementor/experiments/feature-registered', self::$instance->admin, 'feedzy_remove_elementor_feature', 10, 2 );
280
+ // Remove widget.
281
+ self::$instance->loader->add_filter( 'elementor/widgets/black_list', self::$instance->admin, 'feedzy_remove_elementor_widgets' );
282
  // Register elementor widget.
283
  $plugin_elementor_widget = new Feedzy_Rss_Feeds_Elementor();
284
  $this->loader->add_action( 'elementor/widgets/register', $plugin_elementor_widget, 'feedzy_elementor_widgets_registered' );
includes/gutenberg/build/block.css CHANGED
@@ -1,2 +1,2 @@
1
- .wp-block-feedzy-rss-feeds-feedzy-block .feedzy-source-wrap{position:relative}.wp-block-feedzy-rss-feeds-feedzy-block .feedzy-source{margin-right:10px}.wp-block-feedzy-rss-feeds-feedzy-block .feedzy-source+.dashicons-arrow-down-alt2{position:absolute;right:12px;top:5px;z-index:5;color:#757575;cursor:pointer}.loadFeed{margin-bottom:10px}.feedzy-blocks-base-control{padding-bottom:10px}.feedzy-blocks-base-control label{padding-bottom:10px}.feedzy-blocks-base-control .feedzy_image_upload{display:block;margin-bottom:10px}.feedzy-select-cat{width:100%}.feedzy-select-cat select{width:auto}.feedzy-rss .rss_image span.fetched{display:inline-block;position:absolute;width:100%;height:100%;background-position:50%;background-size:cover}.feedzy-ui-autocomplete{max-height:200px;overflow-y:auto;overflow-x:hidden;padding-right:20px}.fz-section-header-panel.is-opened{padding:0}.fz-section-header-panel .header-tab{display:inline-block;width:calc( 100% / 3 );height:auto;padding:10px 20px;text-align:center;cursor:pointer}.fz-section-header-panel .header-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.fz-section-header-panel .header-tab:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f3f4f5;box-shadow:none}.fz-section-header-panel .header-tab span{display:inline-block;font-size:12px}.fz-section-header-panel .header-tab span .dashicon{display:block;margin:0 auto;font-size:20px}.block-editor-block-inspector .components-base-control{margin:24px 0}.fz-locked{cursor:not-allowed}.fz-locked>div:not(.fz-upsell-notice){opacity:.2;pointer-events:none}.fz-locked>p{opacity:.2;pointer-events:none}.fz-locked>.fz-main-label{opacity:.2;pointer-events:none}.fz-pro-label{background:#4268cf;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:5px 10px;color:#fff;border-radius:2px;font-weight:700;font-size:9.152px;line-height:10px;flex:none;order:0;flex-grow:0;margin:0px 10px;text-transform:uppercase}.fz-upsell-notice{font-style:italic;font-weight:500;font-size:12px;line-height:18px;color:#1e1e1e}.feedzy-template .components-radio-image-control__container{display:flex;flex-wrap:wrap;margin:0 -10px}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option{width:50%;padding:0 10px 20px}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option label{height:74px;display:flex;align-items:center;justify-content:center;background:#f3f4f5;border:1px solid #e2e4e7;border-radius:4px}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option label:hover{background:#fff}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option span{display:block;text-align:center;padding-top:6px;color:#a8a8a8;font-weight:500;font-size:12px;line-height:18px}.feedzy-template.components-radio-image-control input:checked+label{border-color:#0071ae;box-shadow:0 0 0 1px #0071ae}.feedzy-template.components-radio-image-control input:checked+label img{border:0;box-shadow:none}
2
  .components-radio-image-control__container{display:block}.components-radio-image-control__option{display:inline-block;padding:5px}.components-radio-image-control label{display:inline-block;position:relative}.components-radio-image-control label img{border:1px solid transparent;max-width:250px !important}.components-radio-image-control input{display:none}.components-radio-image-control input+label .image-clickable{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.components-radio-image-control input:checked+label img{border:1px solid #3498db;box-shadow:0 0 5px 2px rgba(0,0,0,.25)}
1
+ .wp-block-feedzy-rss-feeds-feedzy-block .feedzy-source-wrap{position:relative}.wp-block-feedzy-rss-feeds-feedzy-block .feedzy-source{margin-right:10px}.wp-block-feedzy-rss-feeds-feedzy-block .feedzy-source+.dashicons-arrow-down-alt2{position:absolute;right:12px;top:5px;z-index:5;color:#757575;cursor:pointer}.loadFeed{margin-bottom:10px}.feedzy-blocks-base-control{padding-bottom:10px}.feedzy-blocks-base-control label{padding-bottom:10px}.feedzy-blocks-base-control .feedzy_image_upload{display:block;margin-bottom:10px}.feedzy-select-cat{width:100%}.feedzy-select-cat select{width:auto}.feedzy-rss .rss_image span.fetched{display:inline-block;position:absolute;width:100%;height:100%;background-position:50%;background-size:cover}.feedzy-ui-autocomplete{max-height:200px;overflow-y:auto;overflow-x:hidden;padding-right:20px}.fz-section-header-panel.is-opened{padding:0}.fz-section-header-panel .header-tab{display:inline-block;width:calc( 100% / 3 );height:auto;padding:10px 20px;text-align:center;cursor:pointer}.fz-section-header-panel .header-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.fz-section-header-panel .header-tab:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f3f4f5;box-shadow:none}.fz-section-header-panel .header-tab span{display:inline-block;font-size:12px}.fz-section-header-panel .header-tab span .dashicon{display:block;margin:0 auto;font-size:20px}.block-editor-block-inspector .components-base-control{margin:24px 0}.fz-locked{cursor:not-allowed}.fz-locked>div:not(.fz-upsell-notice){opacity:.4;pointer-events:none}.fz-locked>p{opacity:.4;pointer-events:none}.fz-locked>.fz-main-label{opacity:.4;pointer-events:none}.fz-pro-label{background:#4268cf;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:5px 10px;color:#fff;border-radius:2px;font-weight:700;font-size:9.152px;line-height:10px;flex:none;order:0;flex-grow:0;margin:0px 10px;text-transform:uppercase}.fz-upsell-notice{font-style:italic;font-weight:500;font-size:12px;line-height:18px;color:#1e1e1e}.feedzy-template .components-radio-image-control__container{display:flex;flex-wrap:wrap;margin:0 -10px}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option{width:50%;padding:0 10px 20px}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option label{height:74px;display:flex;align-items:center;justify-content:center;background:#f3f4f5;border:1px solid #e2e4e7;border-radius:4px}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option label:hover{background:#fff}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option span{display:block;text-align:center;padding-top:6px;color:#a8a8a8;font-weight:500;font-size:12px;line-height:18px}.feedzy-template.components-radio-image-control input:checked+label{border-color:#0071ae;box-shadow:0 0 0 1px #0071ae}.feedzy-template.components-radio-image-control input:checked+label img{border:0;box-shadow:none}
2
  .components-radio-image-control__container{display:block}.components-radio-image-control__option{display:inline-block;padding:5px}.components-radio-image-control label{display:inline-block;position:relative}.components-radio-image-control label img{border:1px solid transparent;max-width:250px !important}.components-radio-image-control input{display:none}.components-radio-image-control input+label .image-clickable{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.components-radio-image-control input:checked+label img{border:1px solid #3498db;box-shadow:0 0 5px 2px rgba(0,0,0,.25)}
includes/gutenberg/build/block.js CHANGED
@@ -3,4 +3,4 @@
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var o=typeof a;if("string"===o||"number"===o)e.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&e.push(s)}}else if("object"===o)if(a.toString===Object.prototype.toString)for(var i in a)r.call(a,i)&&a[i]&&e.push(i);else e.push(a.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(a=function(){return n}.apply(t,[]))||(e.exports=a)}()},228:function(e,t,r){"use strict";r.r(t);var a={feeds:{type:"string"},max:{type:"number",default:5},offset:{type:"number",default:0},feed_title:{type:"boolean",default:!0},refresh:{type:"string",default:"12_hours"},sort:{type:"string",default:"default"},target:{type:"string",default:"_blank"},title:{type:"number"},meta:{type:"boolean",default:!0},lazy:{type:"boolean",default:!1},metafields:{type:"string",default:""},multiple_meta:{type:"string",default:""},summary:{type:"boolean",default:!0},summarylength:{type:"number"},keywords_title:{type:"string"},keywords_inc_on:{type:"string",default:"title"},keywords_ban:{type:"string"},keywords_exc_on:{type:"string",default:"title"},thumb:{type:"string",default:"auto"},default:{type:"object"},size:{type:"number",default:150},http:{type:"string"},referral_url:{type:"string"},columns:{type:"number",default:1},template:{type:"string",default:"default"},price:{type:"boolean",default:!0},route:{type:"string",default:"home"},feedData:{type:"object"},categories:{type:"object"},from_datetime:{type:"string"},to_datetime:{type:"string"},itemTitle:{type:"boolean",default:!0}},n=r(105),o=r.n(n),s=lodash.isEmpty,i=wp.components.BaseControl;var l=(0,wp.compose.withInstanceId)((function(e){var t=e.label,r=e.selected,a=e.help,n=e.instanceId,o=e.onChange,l=e.disabled,p=e.options,u=void 0===p?[]:p,c="inspector-radio-image-control-".concat(n),m=function(e){return o(e.target.value)};return!s(u)&&wp.element.createElement(i,{label:t,id:c,help:a,className:"components-radio-image-control feedzy-template"},wp.element.createElement("div",{className:"components-radio-image-control__container"},u.map((function(e,t){return wp.element.createElement("div",{key:"".concat(c,"-").concat(t),className:"components-radio-image-control__option"},wp.element.createElement("input",{id:"".concat(c,"-").concat(t),className:"components-radio-image-control__input",type:"radio",name:c,value:e.value,onChange:m,checked:e.value===r,"aria-describedby":a?"".concat(c,"__help"):void 0,disabled:l}),wp.element.createElement("label",{htmlFor:"".concat(c,"-").concat(t),title:e.label},wp.element.createElement("img",{src:e.src}),wp.element.createElement("span",{class:"image-clickable"})),wp.element.createElement("span",null,e.label))}))))})),p=r(20),u=r.n(p);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=b(e);if(t){var n=b(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return y(this,r)}}function y(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=wp.i18n.__,w=wp.hooks.applyFilters,v=wp.blockEditor||wp.editor,E=v.InspectorControls,k=v.MediaUpload,z=wp.element,T=z.Component,C=z.Fragment,x=wp.components,N=x.BaseControl,O=x.ExternalLink,S=x.PanelBody,j=x.RangeControl,F=x.TextControl,R=x.Button,P=x.ToggleControl,A=x.SelectControl,L=x.ResponsiveWrapper,D=x.Dashicon,I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(o,e);var t,r,a,n=h(o);function o(){var e;return m(this,o),(e=n.apply(this,arguments)).state={tab:"content"},e}return t=o,(r=[{key:"render",value:function(){var e=this,t="",r=w("feedzy_widget_refresh_feed",[{label:g("1 Hour"),value:"1_hours"},{label:g("2 Hours"),value:"3_hours"},{label:g("12 Hours"),value:"12_hours"},{label:g("1 Day"),value:"1_days"},{label:g("3 Days"),value:"3_days"},{label:g("15 Days"),value:"15_days"}]);return"https"===this.props.attributes.http&&(t+=g("Please verify that the images exist on HTTPS.")),wp.element.createElement(C,null,wp.element.createElement(E,{key:"inspector"},wp.element.createElement(S,{className:"fz-section-header-panel"},wp.element.createElement(R,{className:u()("header-tab",{"is-selected":"content"===this.state.tab}),onClick:function(){return e.setState({tab:"content"})}},wp.element.createElement("span",null,wp.element.createElement(D,{icon:"editor-table"}),g("Content"))),wp.element.createElement(R,{className:u()("header-tab",{"is-selected":"style"===this.state.tab}),onClick:function(){return e.setState({tab:"style"})}},wp.element.createElement("span",null,wp.element.createElement(D,{icon:"admin-customizer"}),g("Style"))),wp.element.createElement(R,{className:u()("header-tab",{"is-selected":"advanced"===this.state.tab}),onClick:function(){return e.setState({tab:"advanced"})}},wp.element.createElement("span",null,wp.element.createElement(D,{icon:"admin-generic"}),g("Advanced")))),"content"===this.state.tab&&wp.element.createElement(C,null,wp.element.createElement(S,{title:g("Feed Source"),initialOpen:!0},0!==this.props.attributes.status&&[wp.element.createElement(F,{label:g("Feed Source"),className:"feedzy-source",value:this.props.attributes.feeds,onChange:this.props.edit.onChangeFeed}),wp.element.createElement(R,{isLarge:!0,isPrimary:!0,type:"submit",onClick:this.props.edit.loadFeed,className:"loadFeed"},g("Load Feed"))],"fetched"===this.props.state.route&&[wp.element.createElement(j,{label:g("Number of Items"),value:Number(this.props.attributes.max)||5,onChange:this.props.edit.onChangeMax,min:1,max:this.props.attributes.feedData.items.length||10,beforeIcon:"sort",className:"feedzy-max"}),wp.element.createElement(A,{label:g("Sorting Order"),value:this.props.attributes.sort,options:[{label:g("Default"),value:"default"},{label:g("Date Descending"),value:"date_desc"},{label:g("Date Ascending"),value:"date_asc"},{label:g("Title Descending"),value:"title_desc"},{label:g("Title Ascending"),value:"title_asc"}],onChange:this.props.edit.onSort,className:"feedzy-sort"}),wp.element.createElement(A,{label:g("Feed Caching Time"),value:this.props.attributes.refresh,options:r,onChange:this.props.edit.onRefresh,className:"feedzy-refresh"})]),wp.element.createElement(S,{title:g("Item Options"),initialOpen:!1,className:"feedzy-item-options"},wp.element.createElement(A,{label:g("Open Links In"),value:this.props.attributes.target,options:[{label:g("New Tab"),value:"_blank"},{label:g("Same Tab"),value:"_self"}],onChange:this.props.edit.onTarget}),wp.element.createElement(P,{label:g("Display item Title"),checked:!!this.props.attributes.itemTitle,onChange:this.props.edit.onToggleItemTitle,className:"feedzy-summary"}),this.props.attributes.itemTitle&&wp.element.createElement(F,{label:g("Title Character Limit"),help:g("Leave empty to show full title. A value of 0 will remove the title."),type:"number",value:this.props.attributes.title,onChange:this.props.edit.onTitle,className:"feedzy-title-length"}),wp.element.createElement(P,{label:g("Display post description?"),checked:!!this.props.attributes.summary,onChange:this.props.edit.onToggleSummary,className:"feedzy-summary"}),this.props.attributes.summary&&wp.element.createElement(F,{label:g("Description Character Limit"),help:g("Leave empty to show full description."),type:"number",value:this.props.attributes.summarylength,onChange:this.props.edit.onSummaryLength,className:"feedzy-summary-length",min:0})),wp.element.createElement(S,{title:[g("Filter items"),!feedzyjs.isPro&&wp.element.createElement("span",{className:"fz-pro-label"},"Pro")],initialOpen:!1,className:feedzyjs.isPro?"feedzy-item-filter":"feedzy-item-filter fz-locked"},!feedzyjs.isPro&&wp.element.createElement("div",{className:"fz-upsell-notice"},g("Unlock this feature and more advanced options with")," ",wp.element.createElement(O,{href:"https://themeisle.com/plugins/feedzy-rss-feeds/upgrade/?utm_source=wpadmin&utm_medium=blockeditor&utm_campaign=keywordsfilter&utm_content=feedzy-rss-feeds"},g("Feedzy Pro"))),wp.element.createElement(F,{label:g("Only display if selected field contains:"),help:g("Use comma(,) and plus(+) keyword"),value:this.props.attributes.keywords_title,onChange:this.props.edit.onKeywordsTitle,className:"feedzy-include"}),wp.element.createElement(A,{label:g("Select a field if you want to inc keyword."),value:this.props.attributes.keywords_inc_on,options:[{label:g("Title"),value:"title"},{label:g("Author"),value:"author"},{label:g("Description"),value:"description"}],onChange:this.props.edit.onKeywordsIncludeOn}),wp.element.createElement(F,{label:g("Exclude if selected field contains:"),help:g("Use comma(,) and plus(+) keyword"),value:this.props.attributes.keywords_ban,onChange:this.props.edit.onKeywordsBan,className:"feedzy-ban"}),wp.element.createElement(A,{label:g("Select a field if you want to exc keyword."),value:this.props.attributes.keywords_exc_on,options:[{label:g("Title"),value:"title"},{label:g("Author"),value:"author"},{label:g("Description"),value:"description"}],onChange:this.props.edit.onKeywordsExcludeOn}),wp.element.createElement("p",{className:"fz-main-label"},g("Filter feed item by date range.")),wp.element.createElement(F,{type:"datetime-local",label:g("From:"),value:this.props.attributes.from_datetime,onChange:this.props.edit.onFromDateTime}),wp.element.createElement(F,{type:"datetime-local",label:g("To:"),value:this.props.attributes.to_datetime,onChange:this.props.edit.onToDateTime}))),"fetched"===this.props.state.route&&"style"===this.state.tab&&[wp.element.createElement(C,null,wp.element.createElement(S,{title:g("Item Image Options"),initialOpen:!1,className:"feedzy-image-options"},wp.element.createElement(A,{label:g("Display first image if available?"),value:this.props.attributes.thumb,options:[{label:g("Yes (without a fallback image)"),value:"auto"},{label:g("Yes (with a fallback image)"),value:"yes"},{label:g("No"),value:"no"}],onChange:this.props.edit.onThumb,className:"feedzy-thumb"}),"no"!==this.props.attributes.thumb&&["auto"!==this.props.attributes.thumb&&wp.element.createElement("div",{className:"feedzy-blocks-base-control"},wp.element.createElement("label",{className:"blocks-base-control__label",for:"inspector-media-upload"},g("Fallback image if no image is found.")),wp.element.createElement(k,{type:"image",id:"inspector-media-upload",value:this.props.attributes.default,onSelect:this.props.edit.onDefault,render:function(t){var r=t.open;return[void 0!==e.props.attributes.default&&[wp.element.createElement(L,{naturalWidth:e.props.attributes.default.width,naturalHeight:e.props.attributes.default.height},wp.element.createElement("img",{src:e.props.attributes.default.url,alt:g("Featured image")})),wp.element.createElement(R,{isLarge:!0,isSecondary:!0,onClick:function(){return e.props.setAttributes({default:void 0})},style:{marginTop:"10px"}},g("Remove Image"))],wp.element.createElement(R,{isLarge:!0,isPrimary:!0,onClick:r,style:{marginTop:"10px"},className:void 0===e.props.attributes.default&&"feedzy_image_upload"},g("Upload Image"))]}})),wp.element.createElement(F,{label:g("Thumbnails dimension."),type:"number",value:this.props.attributes.size,onChange:this.props.edit.onSize}),wp.element.createElement(A,{label:g("How should we treat HTTP images?"),value:this.props.attributes.http,options:[{label:g("Show with HTTP link"),value:"auto"},{label:g("Force HTTPS"),value:"https"},{label:g("Ignore and show the default image instead"),value:"default"}],onChange:this.props.edit.onHTTP,className:"feedzy-http",help:t})]),wp.element.createElement(S,{title:[g("Feed Layout"),!feedzyjs.isPro&&wp.element.createElement("span",{className:"fz-pro-label"},"Pro")],initialOpen:!1,className:feedzyjs.isPro?"feedzy-layout":"feedzy-layout fz-locked"},!feedzyjs.isPro&&wp.element.createElement("div",{className:"fz-upsell-notice"},g("Unlock this feature and more advanced options with")," ",wp.element.createElement(O,{href:"https://themeisle.com/plugins/feedzy-rss-feeds/upgrade/?utm_source=wpadmin&utm_medium=blockeditor&utm_campaign=layouts&utm_content=feedzy-rss-feeds"},g("Feedzy Pro"))),wp.element.createElement(j,{label:g("Columns"),help:g("How many columns we should use to display the feed items?"),value:this.props.attributes.columns||1,onChange:this.props.edit.onColumns,min:1,max:6,beforeIcon:"sort",allowReset:!0}),wp.element.createElement(l,{label:g("Template"),selected:this.props.attributes.template,options:[{label:g("Default"),src:feedzyjs.imagepath+"feedzy-default-template.png",value:"default"},{label:g("Round"),src:feedzyjs.imagepath+"feedzy-style1-template.png",value:"style1"},{label:g("Cards"),src:feedzyjs.imagepath+"feedzy-style2-template.png",value:"style2"}],onChange:this.props.edit.onTemplate})))],"fetched"===this.props.state.route&&"advanced"===this.state.tab&&[wp.element.createElement(C,null,wp.element.createElement(S,{title:g("Feed Items Custom Options"),className:"feedzy-advanced-options",initialOpen:!1},wp.element.createElement(N,null,wp.element.createElement(F,{label:feedzyjs.isPro?g("Should we display additional meta fields out of author, date, time or categories? (comma-separated list, in order of display)."):g("Should we display additional meta fields out of author, date or time? (comma-separated list, in order of display)."),help:g('Leave empty to display all and "no" to display nothing.'),placeholder:feedzyjs.isPro?g("(eg: author, date, time, tz=local, categories)"):g("(eg: author, date, time, tz=local)"),value:this.props.attributes.metafields,onChange:this.props.edit.onChangeMeta,className:"feedzy-meta"}),wp.element.createElement(F,{label:g("When using multiple sources, should we display additional meta fields? - source (comma-separated list)."),placeholder:g("(eg: source)"),value:this.props.attributes.multiple_meta,onChange:this.props.edit.onChangeMultipleMeta,className:"feedzy-multiple-meta"}),wp.element.createElement(O,{href:"https://docs.themeisle.com/article/1089-how-to-display-author-date-or-time-from-the-feed"},g("You can find more info about available meta field values here."))),wp.element.createElement(P,{label:g("Display price if available?"),help:this.props.attributes.price&&"default"===this.props.attributes.template?g("Choose a different template for this to work."):null,checked:!!this.props.attributes.price,onChange:this.props.edit.onTogglePrice,className:feedzyjs.isPro?"feedzy-pro-price":"feedzy-pro-price fz-locked"}),null!==this.props.attributes.feedData.channel&&wp.element.createElement(P,{label:g("Display feed title?"),checked:!!this.props.attributes.feed_title,onChange:this.props.edit.onToggleFeedTitle,className:"feedzy-title"}),wp.element.createElement(j,{label:g("Ignore first N items"),value:Number(this.props.attributes.offset)||0,onChange:this.props.edit.onChangeOffset,min:0,max:this.props.attributes.feedData.items.length,beforeIcon:"sort",className:"feedzy-offset"}),wp.element.createElement(P,{label:g("Lazy load feed?"),checked:!!this.props.attributes.lazy,onChange:this.props.edit.onToggleLazy,className:"feedzy-lazy",help:g("Only on the front end.")})),wp.element.createElement(S,{title:[g("Referral URL"),!feedzyjs.isPro&&wp.element.createElement("span",{className:"fz-pro-label"},"Pro")],initialOpen:!1,className:feedzyjs.isPro?"feedzy-pro-options":"feedzy-pro-options fz-locked"},!feedzyjs.isPro&&wp.element.createElement("div",{className:"fz-upsell-notice"},g("Unlock this feature and more advanced options with")," ",wp.element.createElement(O,{href:"https://themeisle.com/plugins/feedzy-rss-feeds/upgrade/?utm_source=wpadmin&utm_medium=blockeditor&utm_campaign=refferal&utm_content=feedzy-rss-feeds"},g("Feedzy Pro"))),wp.element.createElement(F,{label:g("Referral URL parameters."),help:g('Without ("?")'),placeholder:_("(eg. promo_code=feedzy_is_awesome)"),value:this.props.attributes.referral_url,onChange:this.props.edit.onReferralURL})))]))}}])&&d(t.prototype,r),a&&d(t,a),o}(T),U=function(e){var t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",r=[];return""!==e&&e.replace(/[^a-zA-Z]/g,"").length<=500&&(e.split(",").forEach((function(e){""!==(e=e.trim())&&(e=e.split("+").map((function(e){return"(?=.*"+(e=e.trim())+")"})),r.push(e.join("")))})),t="^"+(t=r.join("|"))+".*$",t=new RegExp(t,"i")),t};function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(){return(K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function H(e,t,r,a,n,o,s){try{var i=e[o](s),l=i.value}catch(e){return void r(e)}i.done?t(l):Promise.resolve(l).then(a,n)}function $(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var o=e.apply(t,r);function s(e){H(o,a,n,s,i,"next",e)}function i(e){H(o,a,n,s,i,"throw",e)}s(void 0)}))}}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=Z(e);if(t){var n=Z(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return X(this,r)}}function X(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?Q(e):t}function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var G=wp.i18n.__,J=wp,ee=(J.apiFetch,J.apiRequest),te=wp.element,re=te.Component,ae=(te.Fragment,wp.components),ne=ae.ExternalLink,oe=ae.Placeholder,se=ae.TextControl,ie=ae.Button,le=ae.Spinner,pe=(wp.date.date,function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(l,e);var t,r,a,n,s,i=W(l);function l(){var e;return Y(this,l),(e=i.apply(this,arguments)).loadFeed=e.loadFeed.bind(Q(e)),e.loadCategories=e.loadCategories.bind(Q(e)),e.metaExists=e.metaExists.bind(Q(e)),e.multipleMetaExists=e.multipleMetaExists.bind(Q(e)),e.getImageURL=e.getImageURL.bind(Q(e)),e.getValidateURL=e.getValidateURL.bind(Q(e)),e.onChangeFeed=e.onChangeFeed.bind(Q(e)),e.onChangeMax=e.onChangeMax.bind(Q(e)),e.onChangeOffset=e.onChangeOffset.bind(Q(e)),e.onToggleFeedTitle=e.onToggleFeedTitle.bind(Q(e)),e.onRefresh=e.onRefresh.bind(Q(e)),e.onSort=e.onSort.bind(Q(e)),e.onTarget=e.onTarget.bind(Q(e)),e.onTitle=e.onTitle.bind(Q(e)),e.onChangeMeta=e.onChangeMeta.bind(Q(e)),e.onChangeMultipleMeta=e.onChangeMultipleMeta.bind(Q(e)),e.onToggleSummary=e.onToggleSummary.bind(Q(e)),e.onToggleLazy=e.onToggleLazy.bind(Q(e)),e.onSummaryLength=e.onSummaryLength.bind(Q(e)),e.onKeywordsTitle=e.onKeywordsTitle.bind(Q(e)),e.onKeywordsBan=e.onKeywordsBan.bind(Q(e)),e.onThumb=e.onThumb.bind(Q(e)),e.onDefault=e.onDefault.bind(Q(e)),e.onSize=e.onSize.bind(Q(e)),e.onHTTP=e.onHTTP.bind(Q(e)),e.onReferralURL=e.onReferralURL.bind(Q(e)),e.onColumns=e.onColumns.bind(Q(e)),e.onTemplate=e.onTemplate.bind(Q(e)),e.onTogglePrice=e.onTogglePrice.bind(Q(e)),e.onKeywordsIncludeOn=e.onKeywordsIncludeOn.bind(Q(e)),e.onKeywordsExcludeOn=e.onKeywordsExcludeOn.bind(Q(e)),e.onFromDateTime=e.onFromDateTime.bind(Q(e)),e.onToDateTime=e.onToDateTime.bind(Q(e)),e.feedzyCategoriesList=e.feedzyCategoriesList.bind(Q(e)),e.onToggleItemTitle=e.onToggleItemTitle.bind(Q(e)),e.state={route:e.props.attributes.route,loading:!1,error:!1},e}return t=l,(r=[{key:"componentDidMount",value:(s=$(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.loadFeed(),void 0===this.props.attributes.categories&&(this.props.attributes.meta||this.props.setAttributes({meta:!0,metafields:"no"}),setTimeout((function(){t.loadCategories()})));case 2:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"componentDidUpdate",value:(n=$(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"reload"===this.state.route&&this.loadFeed();case 1:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"loadFeed",value:function(){var e=this,t=this.props.attributes.feeds;if(void 0!==t){if(function(e,t){if(void 0===t)return!1;for(var r=!1,a=0;a<t.length;a++)if(t[a]===e){r=!0;break}return r}(t,this.props.attributes.categories)){var r=t;t=o.a.stringify({category:r},{arrayFormat:"bracket"})}else t=t.replace(/\s/g,"").split(",").filter((function(e){return""!==e})),t=o.a.stringify({url:t},{arrayFormat:"bracket"});this.setState({route:"home",loading:!0}),ee({path:"/feedzy/v1/feed?".concat(t),method:"POST",data:this.props.attributes}).then((function(t){return e.unmounting?t:t.error?(e.setState({route:"home",loading:!1,error:!0}),t):(e.props.setAttributes({feedData:t}),e.setState({route:"fetched",loading:!1}),t)})).fail((function(t){return e.setState({route:"home",loading:!1,error:!0}),t}))}}},{key:"loadCategories",value:function(){var e=this;ee({path:"/wp/v2/feedzy_categories?per_page=100"}).then((function(t){if(e.unmounting)return t;var r=0,a=[];t.forEach((function(e){a[r]=e.slug,r+=1}));var n=e;n.props.setAttributes({categories:a}),jQuery(".feedzy-source input").autocomplete({classes:{"ui-autocomplete":"feedzy-ui-autocomplete"},source:a,minLength:0,select:function(e,t){n.props.setAttributes({feeds:t.item.label})}})})).fail((function(e){return e}))}},{key:"metaExists",value:function(e){return 0<=this.props.attributes.metafields.replace(/\s/g,"").split(",").indexOf(e)||""===this.props.attributes.metafields}},{key:"multipleMetaExists",value:function(e){return 0<=this.props.attributes.multiple_meta.replace(/\s/g,"").split(",").indexOf(e)||""===this.props.attributes.multiple_meta}},{key:"getImageURL",value:function(e,t){var r=e.thumbnail?e.thumbnail:this.props.attributes.default?this.props.attributes.default.url:feedzyjs.imagepath+"feedzy.svg";switch(this.props.attributes.http){case"default":-1===r.indexOf("https")&&0===r.indexOf("http")&&(r=this.props.attributes.default?this.props.attributes.default.url:feedzyjs.imagepath+"feedzy.svg");break;case"https":r=r.replace(/http:/g,"https:")}return t&&(r="url("+r+")"),r}},{key:"onChangeFeed",value:function(e){this.props.setAttributes({feeds:e})}},{key:"onChangeMax",value:function(e){this.props.setAttributes({max:e?Number(e):5})}},{key:"onChangeOffset",value:function(e){this.props.setAttributes({offset:Number(e)})}},{key:"onToggleFeedTitle",value:function(e){this.props.setAttributes({feed_title:!this.props.attributes.feed_title})}},{key:"onRefresh",value:function(e){this.props.setAttributes({refresh:e})}},{key:"onSort",value:function(e){this.props.setAttributes({sort:e})}},{key:"onTarget",value:function(e){this.props.setAttributes({target:e})}},{key:"onTitle",value:function(e){""!==e&&(e=Number(e))<0&&(e=0),this.props.setAttributes({title:e})}},{key:"onChangeMeta",value:function(e){this.props.setAttributes({metafields:e})}},{key:"onChangeMultipleMeta",value:function(e){this.props.setAttributes({multiple_meta:e})}},{key:"onToggleSummary",value:function(e){this.props.setAttributes({summary:!this.props.attributes.summary})}},{key:"onToggleLazy",value:function(e){this.props.setAttributes({lazy:!this.props.attributes.lazy})}},{key:"onSummaryLength",value:function(e){this.props.setAttributes({summarylength:Number(e)})}},{key:"onKeywordsTitle",value:function(e){this.props.setAttributes({keywords_title:e})}},{key:"onKeywordsBan",value:function(e){this.props.setAttributes({keywords_ban:e})}},{key:"onThumb",value:function(e){this.props.setAttributes({thumb:e})}},{key:"onDefault",value:function(e){this.props.setAttributes({default:e}),this.setState({route:"reload"})}},{key:"onSize",value:function(e){this.props.setAttributes({size:e?Number(e):150})}},{key:"onHTTP",value:function(e){this.props.setAttributes({http:e}),this.setState({route:"reload"})}},{key:"onReferralURL",value:function(e){this.props.setAttributes({referral_url:e})}},{key:"onColumns",value:function(e){this.props.setAttributes({columns:e})}},{key:"onTemplate",value:function(e){this.props.setAttributes({template:e})}},{key:"onTogglePrice",value:function(e){this.props.setAttributes({price:!this.props.attributes.price})}},{key:"onKeywordsIncludeOn",value:function(e){this.props.setAttributes({keywords_inc_on:e})}},{key:"onKeywordsExcludeOn",value:function(e){this.props.setAttributes({keywords_exc_on:e})}},{key:"onFromDateTime",value:function(e){this.props.setAttributes({from_datetime:e})}},{key:"onToDateTime",value:function(e){this.props.setAttributes({to_datetime:e})}},{key:"feedzyCategoriesList",value:function(e){jQuery(".feedzy-source input").autocomplete("search","")}},{key:"getValidateURL",value:function(){var e="https://validator.w3.org/feed/";return this.props.attributes.feeds&&(e+="check.cgi?url="+this.props.attributes.feeds),e}},{key:"onToggleItemTitle",value:function(e){this.props.setAttributes({itemTitle:!this.props.attributes.itemTitle})}},{key:"render",value:function(){var e,t,r,a,n,o,s,i,l,p,u=this;return["fetched"===this.state.route&&wp.element.createElement(I,K({edit:this,state:this.state},this.props)),"home"===this.state.route&&wp.element.createElement("div",{className:this.props.className},wp.element.createElement(oe,{key:"placeholder",icon:"rss",label:G("Feedzy RSS Feeds")},this.state.loading?wp.element.createElement("div",{key:"loading",className:"wp-block-embed is-loading"},wp.element.createElement(le,null),wp.element.createElement("p",null,G("Fetching..."))):[wp.element.createElement("div",{className:"feedzy-source-wrap"},wp.element.createElement(se,{type:"url",className:"feedzy-source",placeholder:G("Enter URL or category of your feed here..."),onChange:this.onChangeFeed,value:this.props.attributes.feeds}),wp.element.createElement("span",{className:"dashicons dashicons-arrow-down-alt2",onClick:this.feedzyCategoriesList})),wp.element.createElement(ie,{isLarge:!0,isPrimary:!0,type:"submit",onClick:this.loadFeed},G("Load Feed")),wp.element.createElement(ne,{href:this.getValidateURL(),title:G("Validate Feed ")},G("Validate ")),this.state.error&&wp.element.createElement("div",null,G("Feed URL is invalid. Invalid feeds will NOT display items.")),wp.element.createElement("p",null,G("Enter the full URL of the feed source you wish to display here, or the name of a category you've created. Also you can add multiple URLs just separate them with a comma. You can manage your categories feed from")," ",wp.element.createElement("a",{href:"edit.php?post_type=feedzy_categories",title:G("feedzy categories "),target:"_blank"},G("here ")))])),!("fetched"!==this.state.route||void 0===this.props.attributes.feedData)&&wp.element.createElement("div",{className:"feedzy-rss"},this.props.attributes.feed_title&&null!==this.props.attributes.feedData.channel&&wp.element.createElement("div",{className:"rss_header"},wp.element.createElement("h2",null,wp.element.createElement("a",{className:"rss_title"},U(this.props.attributes.feedData.channel.title)),wp.element.createElement("span",{className:"rss_description"}," "+U(this.props.attributes.feedData.channel.description)))),wp.element.createElement("ul",{className:"feedzy-".concat(this.props.attributes.template)},(e=this.props.attributes.feedData.items,t=this.props.attributes.sort,r=M(this.props.attributes.keywords_title),a=M(this.props.attributes.keywords_ban),n=this.props.attributes.max,o=this.props.attributes.offset,s=this.props.attributes.keywords_inc_on,i=this.props.attributes.keywords_exc_on,l=this.props.attributes.from_datetime,p=this.props.attributes.to_datetime,s="author"===s?"creator":s,i="author"===i?"creator":i,l=""!==l&&void 0!==l&&moment(l).format("X"),p=""!==p&&void 0!==p&&moment(p).format("X"),e=Array.from(e).sort((function(e,r){var a,n;return"date_desc"===t||"date_asc"===t?(a=e.pubDate,n=r.pubDate):"title_desc"!==t&&"title_asc"!==t||(a=e.title.toUpperCase(),n=r.title.toUpperCase()),a<n?"date_desc"===t||"title_desc"===t?1:-1:a>n?"date_desc"===t||"title_desc"===t?-1:1:0})).filter((function(e){return!r||r.test(e[s])})).filter((function(e){return!a||!a.test(e[i])})).filter((function(e){var t=e.date+" "+e.time;return t=moment(new Date(t)).format("X"),!l||!p||l<=t&&t<=p})).slice(o,n+o)).map((function(e,t){var r=(e.date||"")+" "+(e.time||"")+" UTC +0000",a=U(e.date)||"",n=U(e.time)||"",o=U(e.categories)||"";if(u.metaExists("tz=local")){var s=new Date(r);s=s.toUTCString(),a=moment.utc(s).format("MMMM D, YYYY"),n=moment.utc(s).format("h:mm A")}var i=e.creator&&u.metaExists("author")?e.creator:"";""!==u.props.attributes.multiple_meta&&"no"!==u.props.attributes.multiple_meta&&((u.multipleMetaExists("source")||u.multipleMetaExists("yes"))&&""!==i&&""!==e.source?i=i+" ("+e.source+")":(u.multipleMetaExists("source")||u.multipleMetaExists("yes"))&&""!==e.source&&(i=e.source)),""===e.thumbnail&&"auto"===u.props.attributes.thumb&&(e.thumbnail=e.default_img);var l=new Object;return l.author=G("by")+" "+i,l.date=G("on")+" "+U(a),l.time=G("at")+" "+U(n),l.categories=G("in")+" "+U(o),wp.element.createElement("li",{key:t,style:{padding:"15px 0 25px"},className:"rss_item feedzy-rss-col-".concat(u.props.attributes.columns)},(e.thumbnail&&"auto"===u.props.attributes.thumb||"yes"===u.props.attributes.thumb)&&wp.element.createElement("div",{className:"rss_image",style:{width:u.props.attributes.size+"px",height:u.props.attributes.size+"px"}},wp.element.createElement("a",{title:U(e.title),style:{width:u.props.attributes.size+"px",height:u.props.attributes.size+"px"}},wp.element.createElement("span",{className:"fetched",style:{width:u.props.attributes.size+"px",height:u.props.attributes.size+"px",backgroundImage:u.getImageURL(e,!0)},title:U(e.title)}))),wp.element.createElement("div",{className:"rss_content_wrap"},u.props.attributes.itemTitle&&0!==u.props.attributes.title?wp.element.createElement("span",{className:"title"},wp.element.createElement("a",null,u.props.attributes.title&&U(e.title).length>u.props.attributes.title?U(e.title).substring(0,u.props.attributes.title)+"...":U(e.title))):"",wp.element.createElement("div",{className:"rss_content"},"no"!==u.props.attributes.metafields&&wp.element.createElement("small",{className:"meta"},function(e,t){var r="";""===t&&(t="author, date, time");for(var a=t.replace(/\s/g,"").split(","),n=0;n<a.length;n++)void 0!==e[a[n]]&&(r=r+" "+e[a[n]]);return r}(l,u.props.attributes.metafields)),u.props.attributes.summary&&wp.element.createElement("p",{className:"description"},u.props.attributes.summarylength&&U(e.description).length>u.props.attributes.summarylength?U(e.description).substring(0,u.props.attributes.summarylength)+" [...]":U(e.description)),feedzyjs.isPro&&e.media&&e.media.src&&wp.element.createElement("audio",{controls:!0,controlsList:"nodownload"},wp.element.createElement("source",{src:e.media.src,type:e.media.type}),G("Your browser does not support the audio element. But you can check this for the original link: "),wp.element.createElement("a",{href:e.media.src},e.media.src)),feedzyjs.isPro&&u.props.attributes.price&&e.price&&"default"!==u.props.attributes.template&&wp.element.createElement("div",{className:"price-wrap"},wp.element.createElement("a",null,wp.element.createElement("button",{className:"price"},e.price))))))}))))]}}])&&V(t.prototype,r),a&&V(t,a),l}(re)),ue=wp.i18n.__,ce=wp.blocks.registerBlockType;t.default=ce("feedzy-rss-feeds/feedzy-block",{title:ue("Feedzy RSS Feeds"),category:"common",icon:"rss",keywords:[ue("Feedzy RSS Feeds"),ue("RSS"),ue("Feeds")],supports:{html:!1},attributes:a,edit:pe,save:function(){return null}})}});
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var o=typeof a;if("string"===o||"number"===o)e.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&e.push(s)}}else if("object"===o)if(a.toString===Object.prototype.toString)for(var i in a)r.call(a,i)&&a[i]&&e.push(i);else e.push(a.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(a=function(){return n}.apply(t,[]))||(e.exports=a)}()},228:function(e,t,r){"use strict";r.r(t);var a={feeds:{type:"string"},max:{type:"number",default:5},offset:{type:"number",default:0},feed_title:{type:"boolean",default:!0},refresh:{type:"string",default:"12_hours"},sort:{type:"string",default:"default"},target:{type:"string",default:"_blank"},title:{type:"number"},meta:{type:"boolean",default:!0},lazy:{type:"boolean",default:!1},metafields:{type:"string",default:""},multiple_meta:{type:"string",default:""},summary:{type:"boolean",default:!0},summarylength:{type:"number"},keywords_title:{type:"string"},keywords_inc_on:{type:"string",default:"title"},keywords_ban:{type:"string"},keywords_exc_on:{type:"string",default:"title"},thumb:{type:"string",default:"auto"},default:{type:"object"},size:{type:"number",default:150},http:{type:"string"},referral_url:{type:"string"},columns:{type:"number",default:1},template:{type:"string",default:"default"},price:{type:"boolean",default:!0},route:{type:"string",default:"home"},feedData:{type:"object"},categories:{type:"object"},from_datetime:{type:"string"},to_datetime:{type:"string"},itemTitle:{type:"boolean",default:!0}},n=r(105),o=r.n(n),s=lodash.isEmpty,i=wp.components.BaseControl;var l=(0,wp.compose.withInstanceId)((function(e){var t=e.label,r=e.selected,a=e.help,n=e.instanceId,o=e.onChange,l=e.disabled,p=e.options,u=void 0===p?[]:p,c="inspector-radio-image-control-".concat(n),m=function(e){return o(e.target.value)};return!s(u)&&wp.element.createElement(i,{label:t,id:c,help:a,className:"components-radio-image-control feedzy-template"},wp.element.createElement("div",{className:"components-radio-image-control__container"},u.map((function(e,t){return wp.element.createElement("div",{key:"".concat(c,"-").concat(t),className:"components-radio-image-control__option"},wp.element.createElement("input",{id:"".concat(c,"-").concat(t),className:"components-radio-image-control__input",type:"radio",name:c,value:e.value,onChange:m,checked:e.value===r,"aria-describedby":a?"".concat(c,"__help"):void 0,disabled:l}),wp.element.createElement("label",{htmlFor:"".concat(c,"-").concat(t),title:e.label},wp.element.createElement("img",{src:e.src}),wp.element.createElement("span",{class:"image-clickable"})),wp.element.createElement("span",null,e.label))}))))})),p=r(20),u=r.n(p);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=b(e);if(t){var n=b(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return y(this,r)}}function y(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=wp.i18n.__,w=wp.hooks.applyFilters,v=wp.blockEditor||wp.editor,E=v.InspectorControls,k=v.MediaUpload,z=wp.element,T=z.Component,C=z.Fragment,x=wp.components,N=x.BaseControl,O=x.ExternalLink,S=x.PanelBody,j=x.RangeControl,F=x.TextControl,R=x.Button,P=x.ToggleControl,A=x.SelectControl,L=x.ResponsiveWrapper,D=x.Dashicon,U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(o,e);var t,r,a,n=h(o);function o(){var e;return m(this,o),(e=n.apply(this,arguments)).state={tab:"content"},e}return t=o,(r=[{key:"render",value:function(){var e=this,t="",r=w("feedzy_widget_refresh_feed",[{label:g("1 Hour"),value:"1_hours"},{label:g("2 Hours"),value:"3_hours"},{label:g("12 Hours"),value:"12_hours"},{label:g("1 Day"),value:"1_days"},{label:g("3 Days"),value:"3_days"},{label:g("15 Days"),value:"15_days"}]);return"https"===this.props.attributes.http&&(t+=g("Please verify that the images exist on HTTPS.")),wp.element.createElement(C,null,wp.element.createElement(E,{key:"inspector"},wp.element.createElement(S,{className:"fz-section-header-panel"},wp.element.createElement(R,{className:u()("header-tab",{"is-selected":"content"===this.state.tab}),onClick:function(){return e.setState({tab:"content"})}},wp.element.createElement("span",null,wp.element.createElement(D,{icon:"editor-table"}),g("Content"))),wp.element.createElement(R,{className:u()("header-tab",{"is-selected":"style"===this.state.tab}),onClick:function(){return e.setState({tab:"style"})}},wp.element.createElement("span",null,wp.element.createElement(D,{icon:"admin-customizer"}),g("Style"))),wp.element.createElement(R,{className:u()("header-tab",{"is-selected":"advanced"===this.state.tab}),onClick:function(){return e.setState({tab:"advanced"})}},wp.element.createElement("span",null,wp.element.createElement(D,{icon:"admin-generic"}),g("Advanced")))),"content"===this.state.tab&&wp.element.createElement(C,null,wp.element.createElement(S,{title:g("Feed Source"),initialOpen:!0},0!==this.props.attributes.status&&[wp.element.createElement(F,{label:g("Feed Source"),className:"feedzy-source",value:this.props.attributes.feeds,onChange:this.props.edit.onChangeFeed}),wp.element.createElement(R,{isLarge:!0,isPrimary:!0,type:"submit",onClick:this.props.edit.loadFeed,className:"loadFeed"},g("Load Feed"))],"fetched"===this.props.state.route&&[wp.element.createElement(j,{label:g("Number of Items"),value:Number(this.props.attributes.max)||5,onChange:this.props.edit.onChangeMax,min:1,max:this.props.attributes.feedData.items.length||10,beforeIcon:"sort",className:"feedzy-max"}),wp.element.createElement(A,{label:g("Sorting Order"),value:this.props.attributes.sort,options:[{label:g("Default"),value:"default"},{label:g("Date Descending"),value:"date_desc"},{label:g("Date Ascending"),value:"date_asc"},{label:g("Title Descending"),value:"title_desc"},{label:g("Title Ascending"),value:"title_asc"}],onChange:this.props.edit.onSort,className:"feedzy-sort"}),wp.element.createElement(A,{label:g("Feed Caching Time"),value:this.props.attributes.refresh,options:r,onChange:this.props.edit.onRefresh,className:"feedzy-refresh"})]),wp.element.createElement(S,{title:g("Item Options"),initialOpen:!1,className:"feedzy-item-options"},wp.element.createElement(A,{label:g("Open Links In"),value:this.props.attributes.target,options:[{label:g("New Tab"),value:"_blank"},{label:g("Same Tab"),value:"_self"}],onChange:this.props.edit.onTarget}),wp.element.createElement(P,{label:g("Display item Title"),checked:!!this.props.attributes.itemTitle,onChange:this.props.edit.onToggleItemTitle,className:"feedzy-summary"}),this.props.attributes.itemTitle&&wp.element.createElement(F,{label:g("Title Character Limit"),help:g("Leave empty to show full title. A value of 0 will remove the title."),type:"number",value:this.props.attributes.title,onChange:this.props.edit.onTitle,className:"feedzy-title-length"}),wp.element.createElement(P,{label:g("Display post description?"),checked:!!this.props.attributes.summary,onChange:this.props.edit.onToggleSummary,className:"feedzy-summary"}),this.props.attributes.summary&&wp.element.createElement(F,{label:g("Description Character Limit"),help:g("Leave empty to show full description."),type:"number",value:this.props.attributes.summarylength,onChange:this.props.edit.onSummaryLength,className:"feedzy-summary-length",min:0})),wp.element.createElement(S,{title:[g("Filter items"),!feedzyjs.isPro&&wp.element.createElement("span",{className:"fz-pro-label"},"Pro")],initialOpen:!1,className:feedzyjs.isPro?"feedzy-item-filter":"feedzy-item-filter fz-locked"},!feedzyjs.isPro&&wp.element.createElement("div",{className:"fz-upsell-notice"},g("Unlock this feature and more advanced options with")," ",wp.element.createElement(O,{href:"https://themeisle.com/plugins/feedzy-rss-feeds/upgrade/?utm_source=wpadmin&utm_medium=blockeditor&utm_campaign=keywordsfilter&utm_content=feedzy-rss-feeds"},g("Feedzy Pro"))),wp.element.createElement(F,{label:g("Only display if selected field contains:"),help:g("Use comma(,) and plus(+) keyword"),value:this.props.attributes.keywords_title,onChange:this.props.edit.onKeywordsTitle,className:"feedzy-include"}),wp.element.createElement(A,{label:g("Select a field if you want to inc keyword."),value:this.props.attributes.keywords_inc_on,options:[{label:g("Title"),value:"title"},{label:g("Author"),value:"author"},{label:g("Description"),value:"description"}],onChange:this.props.edit.onKeywordsIncludeOn}),wp.element.createElement(F,{label:g("Exclude if selected field contains:"),help:g("Use comma(,) and plus(+) keyword"),value:this.props.attributes.keywords_ban,onChange:this.props.edit.onKeywordsBan,className:"feedzy-ban"}),wp.element.createElement(A,{label:g("Select a field if you want to exc keyword."),value:this.props.attributes.keywords_exc_on,options:[{label:g("Title"),value:"title"},{label:g("Author"),value:"author"},{label:g("Description"),value:"description"}],onChange:this.props.edit.onKeywordsExcludeOn}),wp.element.createElement("p",{className:"fz-main-label"},g("Filter feed item by date range.")),wp.element.createElement(F,{type:"datetime-local",label:g("From:"),value:this.props.attributes.from_datetime,onChange:this.props.edit.onFromDateTime}),wp.element.createElement(F,{type:"datetime-local",label:g("To:"),value:this.props.attributes.to_datetime,onChange:this.props.edit.onToDateTime}))),"fetched"===this.props.state.route&&"style"===this.state.tab&&[wp.element.createElement(C,null,wp.element.createElement(S,{title:g("Item Image Options"),initialOpen:!1,className:"feedzy-image-options"},wp.element.createElement(A,{label:g("Display first image if available?"),value:this.props.attributes.thumb,options:[{label:g("Yes (without a fallback image)"),value:"auto"},{label:g("Yes (with a fallback image)"),value:"yes"},{label:g("No"),value:"no"}],onChange:this.props.edit.onThumb,className:"feedzy-thumb"}),"no"!==this.props.attributes.thumb&&["auto"!==this.props.attributes.thumb&&wp.element.createElement("div",{className:"feedzy-blocks-base-control"},wp.element.createElement("label",{className:"blocks-base-control__label",for:"inspector-media-upload"},g("Fallback image if no image is found.")),wp.element.createElement(k,{type:"image",id:"inspector-media-upload",value:this.props.attributes.default,onSelect:this.props.edit.onDefault,render:function(t){var r=t.open;return[void 0!==e.props.attributes.default&&[wp.element.createElement(L,{naturalWidth:e.props.attributes.default.width,naturalHeight:e.props.attributes.default.height},wp.element.createElement("img",{src:e.props.attributes.default.url,alt:g("Featured image")})),wp.element.createElement(R,{isLarge:!0,isSecondary:!0,onClick:function(){return e.props.setAttributes({default:void 0})},style:{marginTop:"10px"}},g("Remove Image"))],wp.element.createElement(R,{isLarge:!0,isPrimary:!0,onClick:r,style:{marginTop:"10px"},className:void 0===e.props.attributes.default&&"feedzy_image_upload"},g("Upload Image"))]}})),wp.element.createElement(F,{label:g("Thumbnails dimension."),type:"number",value:this.props.attributes.size,onChange:this.props.edit.onSize}),wp.element.createElement(A,{label:g("How should we treat HTTP images?"),value:this.props.attributes.http,options:[{label:g("Show with HTTP link"),value:"auto"},{label:g("Force HTTPS"),value:"https"},{label:g("Ignore and show the default image instead"),value:"default"}],onChange:this.props.edit.onHTTP,className:"feedzy-http",help:t})]),wp.element.createElement(S,{title:[g("Feed Layout"),!feedzyjs.isPro&&wp.element.createElement("span",{className:"fz-pro-label"},"Pro")],initialOpen:!1,className:feedzyjs.isPro?"feedzy-layout":"feedzy-layout fz-locked"},!feedzyjs.isPro&&wp.element.createElement("div",{className:"fz-upsell-notice"},g("Unlock this feature and more advanced options with")," ",wp.element.createElement(O,{href:"https://themeisle.com/plugins/feedzy-rss-feeds/upgrade/?utm_source=wpadmin&utm_medium=blockeditor&utm_campaign=layouts&utm_content=feedzy-rss-feeds"},g("Feedzy Pro"))),wp.element.createElement(j,{label:g("Columns"),help:g("How many columns we should use to display the feed items?"),value:this.props.attributes.columns||1,onChange:this.props.edit.onColumns,min:1,max:6,beforeIcon:"sort",allowReset:!0}),wp.element.createElement(l,{label:g("Template"),selected:this.props.attributes.template,options:[{label:g("Default"),src:feedzyjs.imagepath+"feedzy-default-template.png",value:"default"},{label:g("Round"),src:feedzyjs.imagepath+"feedzy-style1-template.png",value:"style1"},{label:g("Cards"),src:feedzyjs.imagepath+"feedzy-style2-template.png",value:"style2"}],onChange:this.props.edit.onTemplate})))],"fetched"===this.props.state.route&&"advanced"===this.state.tab&&[wp.element.createElement(C,null,wp.element.createElement(S,{title:g("Feed Items Custom Options"),className:"feedzy-advanced-options",initialOpen:!1},wp.element.createElement(N,null,wp.element.createElement(F,{label:feedzyjs.isPro?g("Should we display additional meta fields out of author, date, time or categories? (comma-separated list, in order of display)."):g("Should we display additional meta fields out of author, date or time? (comma-separated list, in order of display)."),help:g('Leave empty to display all and "no" to display nothing.'),placeholder:feedzyjs.isPro?g("(eg: author, date, time, tz=local, categories)"):g("(eg: author, date, time, tz=local)"),value:this.props.attributes.metafields,onChange:this.props.edit.onChangeMeta,className:"feedzy-meta"}),wp.element.createElement(F,{label:g("When using multiple sources, should we display additional meta fields? - source (comma-separated list)."),placeholder:g("(eg: source)"),value:this.props.attributes.multiple_meta,onChange:this.props.edit.onChangeMultipleMeta,className:"feedzy-multiple-meta"}),wp.element.createElement(O,{href:"https://docs.themeisle.com/article/1089-how-to-display-author-date-or-time-from-the-feed"},g("You can find more info about available meta field values here."))),wp.element.createElement(P,{label:g("Display price if available?"),help:this.props.attributes.price&&"default"===this.props.attributes.template?g("Choose a different template for this to work."):null,checked:!!this.props.attributes.price,onChange:this.props.edit.onTogglePrice,className:feedzyjs.isPro?"feedzy-pro-price":"feedzy-pro-price fz-locked"}),null!==this.props.attributes.feedData.channel&&wp.element.createElement(P,{label:g("Display feed title?"),checked:!!this.props.attributes.feed_title,onChange:this.props.edit.onToggleFeedTitle,className:"feedzy-title"}),wp.element.createElement(j,{label:g("Ignore first N items"),value:Number(this.props.attributes.offset)||0,onChange:this.props.edit.onChangeOffset,min:0,max:this.props.attributes.feedData.items.length,beforeIcon:"sort",className:"feedzy-offset"}),wp.element.createElement(P,{label:g("Lazy load feed?"),checked:!!this.props.attributes.lazy,onChange:this.props.edit.onToggleLazy,className:"feedzy-lazy",help:g("Only on the front end.")})),wp.element.createElement(S,{title:[g("Referral URL"),!feedzyjs.isPro&&wp.element.createElement("span",{className:"fz-pro-label"},"Pro")],initialOpen:!1,className:feedzyjs.isPro?"feedzy-pro-options":"feedzy-pro-options fz-locked"},!feedzyjs.isPro&&wp.element.createElement("div",{className:"fz-upsell-notice"},g("Unlock this feature and more advanced options with")," ",wp.element.createElement(O,{href:"https://themeisle.com/plugins/feedzy-rss-feeds/upgrade/?utm_source=wpadmin&utm_medium=blockeditor&utm_campaign=refferal&utm_content=feedzy-rss-feeds"},g("Feedzy Pro"))),wp.element.createElement(F,{label:g("Referral URL parameters."),help:g('Without ("?")'),placeholder:_("(eg. promo_code=feedzy_is_awesome)"),value:this.props.attributes.referral_url,onChange:this.props.edit.onReferralURL})))]))}}])&&d(t.prototype,r),a&&d(t,a),o}(T),I=function(e){var t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",r=[];return""!==e&&e.replace(/[^a-zA-Z]/g,"").length<=500&&(e.split(",").forEach((function(e){""!==(e=e.trim())&&(e=e.split("+").map((function(e){return"(?=.*"+(e=e.trim())+")"})),r.push(e.join("")))})),t="^"+(t=r.join("|"))+".*$",t=new RegExp(t,"i")),t};function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(){return(B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function H(e,t,r,a,n,o,s){try{var i=e[o](s),l=i.value}catch(e){return void r(e)}i.done?t(l):Promise.resolve(l).then(a,n)}function $(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var o=e.apply(t,r);function s(e){H(o,a,n,s,i,"next",e)}function i(e){H(o,a,n,s,i,"throw",e)}s(void 0)}))}}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=Z(e);if(t){var n=Z(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return X(this,r)}}function X(e,t){return!t||"object"!==K(t)&&"function"!=typeof t?Q(e):t}function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var G=wp.i18n.__,J=wp,ee=(J.apiFetch,J.apiRequest),te=wp.element,re=te.Component,ae=(te.Fragment,wp.components),ne=ae.ExternalLink,oe=ae.Placeholder,se=ae.TextControl,ie=ae.Button,le=ae.Spinner,pe=(wp.date.date,function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(l,e);var t,r,a,n,s,i=W(l);function l(){var e;return Y(this,l),(e=i.apply(this,arguments)).loadFeed=e.loadFeed.bind(Q(e)),e.loadCategories=e.loadCategories.bind(Q(e)),e.metaExists=e.metaExists.bind(Q(e)),e.multipleMetaExists=e.multipleMetaExists.bind(Q(e)),e.getImageURL=e.getImageURL.bind(Q(e)),e.getValidateURL=e.getValidateURL.bind(Q(e)),e.onChangeFeed=e.onChangeFeed.bind(Q(e)),e.onChangeMax=e.onChangeMax.bind(Q(e)),e.onChangeOffset=e.onChangeOffset.bind(Q(e)),e.onToggleFeedTitle=e.onToggleFeedTitle.bind(Q(e)),e.onRefresh=e.onRefresh.bind(Q(e)),e.onSort=e.onSort.bind(Q(e)),e.onTarget=e.onTarget.bind(Q(e)),e.onTitle=e.onTitle.bind(Q(e)),e.onChangeMeta=e.onChangeMeta.bind(Q(e)),e.onChangeMultipleMeta=e.onChangeMultipleMeta.bind(Q(e)),e.onToggleSummary=e.onToggleSummary.bind(Q(e)),e.onToggleLazy=e.onToggleLazy.bind(Q(e)),e.onSummaryLength=e.onSummaryLength.bind(Q(e)),e.onKeywordsTitle=e.onKeywordsTitle.bind(Q(e)),e.onKeywordsBan=e.onKeywordsBan.bind(Q(e)),e.onThumb=e.onThumb.bind(Q(e)),e.onDefault=e.onDefault.bind(Q(e)),e.onSize=e.onSize.bind(Q(e)),e.onHTTP=e.onHTTP.bind(Q(e)),e.onReferralURL=e.onReferralURL.bind(Q(e)),e.onColumns=e.onColumns.bind(Q(e)),e.onTemplate=e.onTemplate.bind(Q(e)),e.onTogglePrice=e.onTogglePrice.bind(Q(e)),e.onKeywordsIncludeOn=e.onKeywordsIncludeOn.bind(Q(e)),e.onKeywordsExcludeOn=e.onKeywordsExcludeOn.bind(Q(e)),e.onFromDateTime=e.onFromDateTime.bind(Q(e)),e.onToDateTime=e.onToDateTime.bind(Q(e)),e.feedzyCategoriesList=e.feedzyCategoriesList.bind(Q(e)),e.onToggleItemTitle=e.onToggleItemTitle.bind(Q(e)),e.handleKeyUp=e.handleKeyUp.bind(Q(e)),e.state={route:e.props.attributes.route,loading:!1,error:!1},e}return t=l,(r=[{key:"componentDidMount",value:(s=$(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.loadFeed(),void 0===this.props.attributes.categories&&(this.props.attributes.meta||this.props.setAttributes({meta:!0,metafields:"no"}),setTimeout((function(){t.loadCategories()})));case 2:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"componentDidUpdate",value:(n=$(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"reload"===this.state.route&&this.loadFeed();case 1:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"loadFeed",value:function(){var e=this,t=this.props.attributes.feeds;if(void 0!==t){if(function(e,t){if(void 0===t)return!1;for(var r=!1,a=0;a<t.length;a++)if(t[a]===e){r=!0;break}return r}(t,this.props.attributes.categories)){var r=t;t=o.a.stringify({category:r},{arrayFormat:"bracket"})}else t=t.replace(/\s/g,"").split(",").filter((function(e){return""!==e})),t=o.a.stringify({url:t},{arrayFormat:"bracket"});this.setState({route:"home",loading:!0}),ee({path:"/feedzy/v1/feed?".concat(t),method:"POST",data:this.props.attributes}).then((function(t){return e.unmounting?t:t.error?(e.setState({route:"home",loading:!1,error:!0}),t):(e.props.setAttributes({feedData:t}),e.setState({route:"fetched",loading:!1}),t)})).fail((function(t){return e.setState({route:"home",loading:!1,error:!0}),t}))}}},{key:"loadCategories",value:function(){var e=this;ee({path:"/wp/v2/feedzy_categories?per_page=100"}).then((function(t){if(e.unmounting)return t;var r=0,a=[];t.forEach((function(e){a[r]=e.slug,r+=1}));var n=e;n.props.setAttributes({categories:a}),jQuery(".feedzy-source input").autocomplete({classes:{"ui-autocomplete":"feedzy-ui-autocomplete"},source:a,minLength:0,select:function(e,t){n.props.setAttributes({feeds:t.item.label})}})})).fail((function(e){return e}))}},{key:"metaExists",value:function(e){return 0<=this.props.attributes.metafields.replace(/\s/g,"").split(",").indexOf(e)||""===this.props.attributes.metafields}},{key:"multipleMetaExists",value:function(e){return 0<=this.props.attributes.multiple_meta.replace(/\s/g,"").split(",").indexOf(e)||""===this.props.attributes.multiple_meta}},{key:"getImageURL",value:function(e,t){var r=e.thumbnail?e.thumbnail:this.props.attributes.default?this.props.attributes.default.url:feedzyjs.imagepath+"feedzy.svg";switch(this.props.attributes.http){case"default":-1===r.indexOf("https")&&0===r.indexOf("http")&&(r=this.props.attributes.default?this.props.attributes.default.url:feedzyjs.imagepath+"feedzy.svg");break;case"https":r=r.replace(/http:/g,"https:")}return t&&(r="url("+r+")"),r}},{key:"onChangeFeed",value:function(e){this.props.setAttributes({feeds:e})}},{key:"onChangeMax",value:function(e){this.props.setAttributes({max:e?Number(e):5})}},{key:"onChangeOffset",value:function(e){this.props.setAttributes({offset:Number(e)})}},{key:"onToggleFeedTitle",value:function(e){this.props.setAttributes({feed_title:!this.props.attributes.feed_title})}},{key:"onRefresh",value:function(e){this.props.setAttributes({refresh:e})}},{key:"onSort",value:function(e){this.props.setAttributes({sort:e})}},{key:"onTarget",value:function(e){this.props.setAttributes({target:e})}},{key:"onTitle",value:function(e){""!==e&&(e=Number(e))<0&&(e=0),this.props.setAttributes({title:e})}},{key:"onChangeMeta",value:function(e){this.props.setAttributes({metafields:e})}},{key:"onChangeMultipleMeta",value:function(e){this.props.setAttributes({multiple_meta:e})}},{key:"onToggleSummary",value:function(e){this.props.setAttributes({summary:!this.props.attributes.summary})}},{key:"onToggleLazy",value:function(e){this.props.setAttributes({lazy:!this.props.attributes.lazy})}},{key:"onSummaryLength",value:function(e){this.props.setAttributes({summarylength:Number(e)})}},{key:"onKeywordsTitle",value:function(e){this.props.setAttributes({keywords_title:e})}},{key:"onKeywordsBan",value:function(e){this.props.setAttributes({keywords_ban:e})}},{key:"onThumb",value:function(e){this.props.setAttributes({thumb:e})}},{key:"onDefault",value:function(e){this.props.setAttributes({default:e}),this.setState({route:"reload"})}},{key:"onSize",value:function(e){this.props.setAttributes({size:e?Number(e):150})}},{key:"onHTTP",value:function(e){this.props.setAttributes({http:e}),this.setState({route:"reload"})}},{key:"onReferralURL",value:function(e){this.props.setAttributes({referral_url:e})}},{key:"onColumns",value:function(e){this.props.setAttributes({columns:e})}},{key:"onTemplate",value:function(e){this.props.setAttributes({template:e})}},{key:"onTogglePrice",value:function(e){this.props.setAttributes({price:!this.props.attributes.price})}},{key:"onKeywordsIncludeOn",value:function(e){this.props.setAttributes({keywords_inc_on:e})}},{key:"onKeywordsExcludeOn",value:function(e){this.props.setAttributes({keywords_exc_on:e})}},{key:"onFromDateTime",value:function(e){this.props.setAttributes({from_datetime:e})}},{key:"onToDateTime",value:function(e){this.props.setAttributes({to_datetime:e})}},{key:"feedzyCategoriesList",value:function(e){jQuery(".feedzy-source input").autocomplete("search","")}},{key:"getValidateURL",value:function(){var e="https://validator.w3.org/feed/";return this.props.attributes.feeds&&(e+="check.cgi?url="+this.props.attributes.feeds),e}},{key:"onToggleItemTitle",value:function(e){this.props.setAttributes({itemTitle:!this.props.attributes.itemTitle})}},{key:"handleKeyUp",value:function(e){13===e.keyCode&&this.loadFeed()}},{key:"render",value:function(){var e,t,r,a,n,o,s,i,l,p,u=this;return["fetched"===this.state.route&&wp.element.createElement(U,B({edit:this,state:this.state},this.props)),"home"===this.state.route&&wp.element.createElement("div",{className:this.props.className},wp.element.createElement(oe,{key:"placeholder",icon:"rss",label:G("Feedzy RSS Feeds")},this.state.loading?wp.element.createElement("div",{key:"loading",className:"wp-block-embed is-loading"},wp.element.createElement(le,null),wp.element.createElement("p",null,G("Fetching..."))):[wp.element.createElement("div",{className:"feedzy-source-wrap"},wp.element.createElement(se,{type:"url",className:"feedzy-source",placeholder:G("Enter URL or category of your feed here..."),onChange:this.onChangeFeed,onKeyUp:this.handleKeyUp,value:this.props.attributes.feeds}),wp.element.createElement("span",{className:"dashicons dashicons-arrow-down-alt2",onClick:this.feedzyCategoriesList})),wp.element.createElement(ie,{isLarge:!0,isPrimary:!0,type:"submit",onClick:this.loadFeed},G("Load Feed")),wp.element.createElement(ne,{href:this.getValidateURL(),title:G("Validate Feed ")},G("Validate ")),this.state.error&&wp.element.createElement("div",null,G("Feed URL is invalid. Invalid feeds will NOT display items.")),wp.element.createElement("p",null,G("Enter the full URL of the feed source you wish to display here, or the name of a category you've created. Also you can add multiple URLs just separate them with a comma. You can manage your categories feed from")," ",wp.element.createElement("a",{href:"edit.php?post_type=feedzy_categories",title:G("feedzy categories "),target:"_blank"},G("here ")))])),!("fetched"!==this.state.route||void 0===this.props.attributes.feedData)&&wp.element.createElement("div",{className:"feedzy-rss"},this.props.attributes.feed_title&&null!==this.props.attributes.feedData.channel&&wp.element.createElement("div",{className:"rss_header"},wp.element.createElement("h2",null,wp.element.createElement("a",{className:"rss_title"},I(this.props.attributes.feedData.channel.title)),wp.element.createElement("span",{className:"rss_description"}," "+I(this.props.attributes.feedData.channel.description)))),wp.element.createElement("ul",{className:"feedzy-".concat(this.props.attributes.template)},(e=this.props.attributes.feedData.items,t=this.props.attributes.sort,r=M(this.props.attributes.keywords_title),a=M(this.props.attributes.keywords_ban),n=this.props.attributes.max,o=this.props.attributes.offset,s=this.props.attributes.keywords_inc_on,i=this.props.attributes.keywords_exc_on,l=this.props.attributes.from_datetime,p=this.props.attributes.to_datetime,s="author"===s?"creator":s,i="author"===i?"creator":i,l=""!==l&&void 0!==l&&moment(l).format("X"),p=""!==p&&void 0!==p&&moment(p).format("X"),e=Array.from(e).sort((function(e,r){var a,n;return"date_desc"===t||"date_asc"===t?(a=e.pubDate,n=r.pubDate):"title_desc"!==t&&"title_asc"!==t||(a=e.title.toUpperCase(),n=r.title.toUpperCase()),a<n?"date_desc"===t||"title_desc"===t?1:-1:a>n?"date_desc"===t||"title_desc"===t?-1:1:0})).filter((function(e){return!r||r.test(e[s])})).filter((function(e){return!a||!a.test(e[i])})).filter((function(e){var t=e.date+" "+e.time;return t=moment(new Date(t)).format("X"),!l||!p||l<=t&&t<=p})).slice(o,n+o)).map((function(e,t){var r=(e.date||"")+" "+(e.time||"")+" UTC +0000",a=I(e.date)||"",n=I(e.time)||"",o=I(e.categories)||"";if(u.metaExists("tz=local")){var s=new Date(r);s=s.toUTCString(),a=moment.utc(s).format("MMMM D, YYYY"),n=moment.utc(s).format("h:mm A")}var i=e.creator&&u.metaExists("author")?e.creator:"";""!==u.props.attributes.multiple_meta&&"no"!==u.props.attributes.multiple_meta&&((u.multipleMetaExists("source")||u.multipleMetaExists("yes"))&&""!==i&&""!==e.source?i=i+" ("+e.source+")":(u.multipleMetaExists("source")||u.multipleMetaExists("yes"))&&""!==e.source&&(i=e.source)),""===e.thumbnail&&"auto"===u.props.attributes.thumb&&(e.thumbnail=e.default_img);var l=new Object;return l.author=G("by")+" "+i,l.date=G("on")+" "+I(a),l.time=G("at")+" "+I(n),l.categories=G("in")+" "+I(o),wp.element.createElement("li",{key:t,style:{padding:"15px 0 25px"},className:"rss_item feedzy-rss-col-".concat(u.props.attributes.columns)},(e.thumbnail&&"auto"===u.props.attributes.thumb||"yes"===u.props.attributes.thumb)&&wp.element.createElement("div",{className:"rss_image",style:{width:u.props.attributes.size+"px",height:u.props.attributes.size+"px"}},wp.element.createElement("a",{title:I(e.title),style:{width:u.props.attributes.size+"px",height:u.props.attributes.size+"px"}},wp.element.createElement("span",{className:"fetched",style:{width:u.props.attributes.size+"px",height:u.props.attributes.size+"px",backgroundImage:u.getImageURL(e,!0)},title:I(e.title)}))),wp.element.createElement("div",{className:"rss_content_wrap"},u.props.attributes.itemTitle&&0!==u.props.attributes.title?wp.element.createElement("span",{className:"title"},wp.element.createElement("a",null,u.props.attributes.title&&I(e.title).length>u.props.attributes.title?I(e.title).substring(0,u.props.attributes.title)+"...":I(e.title))):"",wp.element.createElement("div",{className:"rss_content"},"no"!==u.props.attributes.metafields&&wp.element.createElement("small",{className:"meta"},function(e,t){var r="";""===t&&(t="author, date, time");for(var a=t.replace(/\s/g,"").split(","),n=0;n<a.length;n++)void 0!==e[a[n]]&&(r=r+" "+e[a[n]]);return r}(l,u.props.attributes.metafields)),u.props.attributes.summary&&wp.element.createElement("p",{className:"description"},u.props.attributes.summarylength&&I(e.description).length>u.props.attributes.summarylength?I(e.description).substring(0,u.props.attributes.summarylength)+" [...]":I(e.description)),feedzyjs.isPro&&e.media&&e.media.src&&wp.element.createElement("audio",{controls:!0,controlsList:"nodownload"},wp.element.createElement("source",{src:e.media.src,type:e.media.type}),G("Your browser does not support the audio element. But you can check this for the original link: "),wp.element.createElement("a",{href:e.media.src},e.media.src)),feedzyjs.isPro&&u.props.attributes.price&&e.price&&"default"!==u.props.attributes.template&&wp.element.createElement("div",{className:"price-wrap"},wp.element.createElement("a",null,wp.element.createElement("button",{className:"price"},e.price))))))}))))]}}])&&V(t.prototype,r),a&&V(t,a),l}(re)),ue=wp.i18n.__,ce=wp.blocks.registerBlockType;t.default=ce("feedzy-rss-feeds/feedzy-block",{title:ue("Feedzy RSS Feeds"),category:"common",icon:"rss",keywords:[ue("Feedzy RSS Feeds"),ue("RSS"),ue("Feeds")],supports:{html:!1},attributes:a,edit:pe,save:function(){return null}})}});
includes/layouts/feedzy-improve.php CHANGED
@@ -5,10 +5,11 @@
5
  </div>
6
  <div class="left">
7
  <h3 class="h3 pb-16">Answer a few questions to help us improve Feedzy</h3>
8
- <p>We're always looking for suggestions to further improve Feedzy. If your feedback is especially helpful, and we choose to do an interview with you to discuss your suggestions, you will even gain a yearly membership for free for your trouble. </p>
9
  <?php if ( ! feedzy_is_pro() ) { ?>
10
- <p>If your feedback is especially helpful and we choose to do an interview with you to discuss your suggestions, you will even gain a yearly membership for free for your trouble.</p>
11
  <?php } ?>
 
12
  <div class="cta">
13
  <a href="<?php echo esc_url( feedzy_is_pro() ? FEEDZY_SURVEY_PRO : FEEDZY_SURVEY_FREE ); ?>" target="_blank" class="btn btn-outline-primary">Take the Survey</a>
14
  </div>
5
  </div>
6
  <div class="left">
7
  <h3 class="h3 pb-16">Answer a few questions to help us improve Feedzy</h3>
8
+ <p>We're always looking for suggestions to further improve Feedzy.
9
  <?php if ( ! feedzy_is_pro() ) { ?>
10
+ If your feedback is especially helpful and we choose to do an interview with you to discuss your suggestions, you will even gain a yearly membership for free for your trouble.
11
  <?php } ?>
12
+ </p>
13
  <div class="cta">
14
  <a href="<?php echo esc_url( feedzy_is_pro() ? FEEDZY_SURVEY_PRO : FEEDZY_SURVEY_FREE ); ?>" target="_blank" class="btn btn-outline-primary">Take the Survey</a>
15
  </div>
includes/views/js/import-metabox-edit.js CHANGED
@@ -234,6 +234,12 @@
234
  return false;
235
  });
236
 
 
 
 
 
 
 
237
  $( '.feedzy-keyword-filter, #feedzy-import-source' ).on('keyup keypress', function(e) {
238
  var keyCode = e.keyCode || e.which;
239
  var addTagBtn = $( this ).parents( '.fz-input-icon' ).find( '.add-outside-tags' );
@@ -328,6 +334,8 @@
328
 
329
  $("#feedzy-validate-feed").on("click", function (e) {
330
  let $url = $("#feedzy-source-tags").val();
 
 
331
  let $anchor = $(this);
332
  $anchor.attr("href", $anchor.attr("data-href-base") + $url);
333
  });
234
  return false;
235
  });
236
 
237
+ $( '#feedzy-import-source' ).on( 'blur', function(e) {
238
+ var addTagBtn = $( this ).parents( '.fz-input-icon' ).find( '.add-outside-tags' );
239
+ addTagBtn.trigger( 'click' );
240
+ $( this ).val('');
241
+ } );
242
+
243
  $( '.feedzy-keyword-filter, #feedzy-import-source' ).on('keyup keypress', function(e) {
244
  var keyCode = e.keyCode || e.which;
245
  var addTagBtn = $( this ).parents( '.fz-input-icon' ).find( '.add-outside-tags' );
334
 
335
  $("#feedzy-validate-feed").on("click", function (e) {
336
  let $url = $("#feedzy-source-tags").val();
337
+ $url = $url.split( ',' );
338
+ $url = $.trim( $url.pop() );
339
  let $anchor = $(this);
340
  $anchor.attr("href", $anchor.attr("data-href-base") + $url);
341
  });
readme.txt CHANGED
@@ -464,6 +464,16 @@ You have to check first if your feed is valid. Please test it here: https://vali
464
 
465
  == Changelog ==
466
 
 
 
 
 
 
 
 
 
 
 
467
  ##### [Version 4.0.2](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v4.0.1...v4.0.2) (2022-09-09)
468
 
469
  #### Fixes
464
 
465
  == Changelog ==
466
 
467
+ ##### [Version 4.0.3](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v4.0.2...v4.0.3) (2022-09-27)
468
+
469
+ - Fix Feedzy RSS feed cache not working on the widgets.
470
+ - Remove legacy elementor widget for new users
471
+ - Fix external image support on import for some websites
472
+ - Enter key on feed fields should load the feed automatically
473
+
474
+
475
+
476
+
477
  ##### [Version 4.0.2](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v4.0.1...v4.0.2) (2022-09-09)
478
 
479
  #### Fixes
vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInit529b535dcb9a8032ecdc3ce839c60050::getLoader();
vendor/codeinwp/themeisle-sdk/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  ##### [Version 3.2.29](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.28...v3.2.29) (2022-09-08)
2
 
3
  * Adds compatibility mechanism
1
+ ##### [Version 3.2.30](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.29...v3.2.30) (2022-09-15)
2
+
3
+ - fix filesystem wrong use - ref [#138](https://github.com/Codeinwp/themeisle-sdk/issues/138), props [@ethanclevenger91](https://github.com/ethanclevenger91) for reporting
4
+
5
  ##### [Version 3.2.29](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.28...v3.2.29) (2022-09-08)
6
 
7
  * Adds compatibility mechanism
vendor/codeinwp/themeisle-sdk/load.php CHANGED
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
14
  return;
15
  }
16
  // Current SDK version and path.
17
- $themeisle_sdk_version = '3.2.29';
18
  $themeisle_sdk_path = dirname( __FILE__ );
19
 
20
  global $themeisle_sdk_max_version;
14
  return;
15
  }
16
  // Current SDK version and path.
17
+ $themeisle_sdk_version = '3.2.30';
18
  $themeisle_sdk_path = dirname( __FILE__ );
19
 
20
  global $themeisle_sdk_max_version;
vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php CHANGED
@@ -191,17 +191,14 @@ class Promotions extends Abstract_Module {
191
  * @access public
192
  */
193
  public function is_writeable() {
194
- global $wp_filesystem;
195
  include_once ABSPATH . 'wp-admin/includes/file.php';
196
- WP_Filesystem();
197
 
198
- if ( ! function_exists( 'WP_Filesystem' ) ) {
199
- return false;
200
  }
201
-
202
- $writable = WP_Filesystem( false, ABSPATH . 'wp-content' );
203
-
204
- return $writable && 'direct' === $wp_filesystem->method;
205
  }
206
 
207
  /**
191
  * @access public
192
  */
193
  public function is_writeable() {
194
+
195
  include_once ABSPATH . 'wp-admin/includes/file.php';
196
+ $filesystem_method = get_filesystem_method();
197
 
198
+ if ( 'direct' === $filesystem_method ) {
199
+ return true;
200
  }
201
+ return false;
 
 
 
202
  }
203
 
204
  /**
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7
6
  {
7
  private static $loader;
8
 
@@ -22,18 +22,18 @@ class ComposerAutoloaderInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
- $includeFiles = \Composer\Autoload\ComposerStaticInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
- composerRequire8ce3ab2cb73a4e8e5bac7efa5e48e3b7($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
@@ -45,7 +45,7 @@ class ComposerAutoloaderInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7
45
  * @param string $file
46
  * @return void
47
  */
48
- function composerRequire8ce3ab2cb73a4e8e5bac7efa5e48e3b7($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit529b535dcb9a8032ecdc3ce839c60050
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit529b535dcb9a8032ecdc3ce839c60050', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit529b535dcb9a8032ecdc3ce839c60050', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit529b535dcb9a8032ecdc3ce839c60050::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
+ $includeFiles = \Composer\Autoload\ComposerStaticInit529b535dcb9a8032ecdc3ce839c60050::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
+ composerRequire529b535dcb9a8032ecdc3ce839c60050($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
45
  * @param string $file
46
  * @return void
47
  */
48
+ function composerRequire529b535dcb9a8032ecdc3ce839c60050($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7
8
  {
9
  public static $files = array (
10
  '3df8ee254224091c21b9aebb792d2f8b' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -17,7 +17,7 @@ class ComposerStaticInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
- $loader->classMap = ComposerStaticInit8ce3ab2cb73a4e8e5bac7efa5e48e3b7::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit529b535dcb9a8032ecdc3ce839c60050
8
  {
9
  public static $files = array (
10
  '3df8ee254224091c21b9aebb792d2f8b' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
+ $loader->classMap = ComposerStaticInit529b535dcb9a8032ecdc3ce839c60050::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }
vendor/composer/installed.json CHANGED
@@ -2,23 +2,23 @@
2
  "packages": [
3
  {
4
  "name": "codeinwp/themeisle-sdk",
5
- "version": "3.2.29",
6
- "version_normalized": "3.2.29.0",
7
  "source": {
8
  "type": "git",
9
  "url": "https://github.com/Codeinwp/themeisle-sdk.git",
10
- "reference": "9456fb0944ec69c3975de04aaf56233ddc2f828c"
11
  },
12
  "dist": {
13
  "type": "zip",
14
- "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/9456fb0944ec69c3975de04aaf56233ddc2f828c",
15
- "reference": "9456fb0944ec69c3975de04aaf56233ddc2f828c",
16
  "shasum": ""
17
  },
18
  "require-dev": {
19
  "codeinwp/phpcs-ruleset": "dev-main"
20
  },
21
- "time": "2022-09-08T15:34:21+00:00",
22
  "type": "library",
23
  "installation-source": "dist",
24
  "notification-url": "https://packagist.org/downloads/",
@@ -39,7 +39,7 @@
39
  ],
40
  "support": {
41
  "issues": "https://github.com/Codeinwp/themeisle-sdk/issues",
42
- "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.2.29"
43
  },
44
  "install-path": "../codeinwp/themeisle-sdk"
45
  }
2
  "packages": [
3
  {
4
  "name": "codeinwp/themeisle-sdk",
5
+ "version": "3.2.30",
6
+ "version_normalized": "3.2.30.0",
7
  "source": {
8
  "type": "git",
9
  "url": "https://github.com/Codeinwp/themeisle-sdk.git",
10
+ "reference": "7239104ae452b13cd6d506d44e8fc127232d35ce"
11
  },
12
  "dist": {
13
  "type": "zip",
14
+ "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/7239104ae452b13cd6d506d44e8fc127232d35ce",
15
+ "reference": "7239104ae452b13cd6d506d44e8fc127232d35ce",
16
  "shasum": ""
17
  },
18
  "require-dev": {
19
  "codeinwp/phpcs-ruleset": "dev-main"
20
  },
21
+ "time": "2022-09-15T19:54:34+00:00",
22
  "type": "library",
23
  "installation-source": "dist",
24
  "notification-url": "https://packagist.org/downloads/",
39
  ],
40
  "support": {
41
  "issues": "https://github.com/Codeinwp/themeisle-sdk/issues",
42
+ "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.2.30"
43
  },
44
  "install-path": "../codeinwp/themeisle-sdk"
45
  }
vendor/composer/installed.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/feedzy-rss-feeds',
4
- 'pretty_version' => 'v4.0.2',
5
- 'version' => '4.0.2.0',
6
- 'reference' => 'ffa468a768239210aac516de44c0f2469175250a',
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
@@ -11,18 +11,18 @@
11
  ),
12
  'versions' => array(
13
  'codeinwp/feedzy-rss-feeds' => array(
14
- 'pretty_version' => 'v4.0.2',
15
- 'version' => '4.0.2.0',
16
- 'reference' => 'ffa468a768239210aac516de44c0f2469175250a',
17
  'type' => 'wordpress-plugin',
18
  'install_path' => __DIR__ . '/../../',
19
  'aliases' => array(),
20
  'dev_requirement' => false,
21
  ),
22
  'codeinwp/themeisle-sdk' => array(
23
- 'pretty_version' => '3.2.29',
24
- 'version' => '3.2.29.0',
25
- 'reference' => '9456fb0944ec69c3975de04aaf56233ddc2f828c',
26
  'type' => 'library',
27
  'install_path' => __DIR__ . '/../codeinwp/themeisle-sdk',
28
  'aliases' => array(),
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/feedzy-rss-feeds',
4
+ 'pretty_version' => 'v4.0.3',
5
+ 'version' => '4.0.3.0',
6
+ 'reference' => '29c3c2f1dc6b2cab9a236d111537c6b14bbb362c',
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
11
  ),
12
  'versions' => array(
13
  'codeinwp/feedzy-rss-feeds' => array(
14
+ 'pretty_version' => 'v4.0.3',
15
+ 'version' => '4.0.3.0',
16
+ 'reference' => '29c3c2f1dc6b2cab9a236d111537c6b14bbb362c',
17
  'type' => 'wordpress-plugin',
18
  'install_path' => __DIR__ . '/../../',
19
  'aliases' => array(),
20
  'dev_requirement' => false,
21
  ),
22
  'codeinwp/themeisle-sdk' => array(
23
+ 'pretty_version' => '3.2.30',
24
+ 'version' => '3.2.30.0',
25
+ 'reference' => '7239104ae452b13cd6d506d44e8fc127232d35ce',
26
  'type' => 'library',
27
  'install_path' => __DIR__ . '/../codeinwp/themeisle-sdk',
28
  'aliases' => array(),