Ecwid Ecommerce Shopping Cart - Version 6.6

Version Description

  • Apr 29, 2019 =
  • Improved loading time for the Ecwid plugin in WordPress admin backend. We noticed that the Ecwid plugin affected the loading time of the pages editor in the WordPress admin backend. We improved a few things in the plugin to make it load faster.
  • Improved compatibility with WPML. WPML is a popular plugin for multilingual sites. We got a few reports that it didnt work well with Ecwid. We talked to the WPML team and tracked down the issue. Its now fixed and your site should work fine if you use both WPML and Ecwid. In future versions, we will add a full support for WPML you will be able to translate your Ecwid catalog to multiple languages and display your store content in your visitor language.
  • Added Russian translations for Gutenberg blocks. The Ecwid ecommerce plugin now has 10 Gutenberg e-commerce blocks, which help you build your online store pages in more convenient drag-n-drop manner. In this update, we translated those blocks to Russian to make it more friendly for Ecwid users from Russia.
  • Various fixes and improvements.
Download this release

Release Info

Developer Ecwid
Plugin Icon 128x128 Ecwid Ecommerce Shopping Cart
Version 6.6
Comparing to
See all releases

Code changes from version 6.5.3 to 6.6

ecwid-shopping-cart.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ecwid.com?source=wporg
5
  Description: Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
6
  Text Domain: ecwid-shopping-cart
7
  Author: Ecwid Ecommerce
8
- Version: 6.5.3
9
  Author URI: https://ecwid.to/ecwid-site
10
  */
11
 
@@ -40,65 +40,77 @@ if ( ! defined('ECWID_SHORTCODES_DIR' ) ) {
40
  }
41
 
42
  // Older versions of Google XML Sitemaps plugin generate it in admin, newer in site area, so the hook should be assigned in both of them
43
- add_action('sm_buildmap', 'ecwid_build_google_xml_sitemap');
44
 
45
  add_action( 'plugins_loaded', 'ecwid_init_integrations' );
46
- add_filter('plugins_loaded', 'ecwid_load_textdomain');
47
-
48
- if ( is_admin() ){
49
- add_action('admin_init', 'ecwid_settings_api_init');
50
-
51
- add_action('admin_init', 'ecwid_check_version');
52
- add_action('template_redirect', 'ecwid_process_oauth_params');
53
- add_action('admin_notices', 'ecwid_show_admin_messages');
54
- add_action('admin_enqueue_scripts', 'ecwid_common_admin_scripts');
55
- add_action('admin_enqueue_scripts', 'ecwid_register_admin_styles');
56
- add_action('admin_enqueue_scripts', 'ecwid_register_settings_styles');
57
- add_action('wp_ajax_ecwid_hide_vote_message', 'ecwid_hide_vote_message');
58
- add_action('wp_ajax_ecwid_hide_message', 'ecwid_ajax_hide_message');
59
- add_action('wp_ajax_save-widget', 'ecwid_ajax_save_widget');
60
- add_action('wp_ajax_ecwid_reset_categories_cache', 'ecwid_reset_categories_cache');
61
- add_action('wp_ajax_ecwid_create_store', 'ecwid_create_store');
62
- add_filter('plugin_action_links_' . ECWID_PLUGIN_BASENAME, 'ecwid_plugin_actions');
63
- add_action('admin_post_ecwid_sync_products', 'ecwid_sync_products');
64
- add_action('wp_ajax_ecwid_sync_products', 'ecwid_sync_products');
65
- add_action('admin_head', 'ecwid_ie8_fonts_inclusion');
66
- add_action('init', 'ecwid_apply_theme', 0);
67
- add_action('init', 'ecwid_maybe_remove_emoji');
68
- add_action('get_footer', 'ecwid_admin_get_footer');
69
- add_action('admin_post_ec_connect', 'ecwid_admin_post_connect');
70
- add_filter('tiny_mce_before_init', 'ecwid_tinymce_init');
71
- add_action('admin_post_ecwid_get_debug', 'ecwid_get_debug_file');
72
- add_action('admin_init', 'ecwid_admin_check_api_cache');
 
 
 
 
73
  } else {
74
- add_shortcode('ecwid_script', 'ecwid_script_shortcode');
75
- add_action('init', 'ecwid_backward_compatibility');
76
- add_action('send_headers', 'ecwid_503_on_store_closed');
77
- add_action('template_redirect', 'ecwid_404_on_broken_escaped_fragment');
78
- add_action('template_redirect', 'ecwid_apply_theme'); // Why not init?
79
- add_action('wp_enqueue_scripts', 'ecwid_enqueue_frontend');
80
- add_action('wp', 'ecwid_seo_ultimate_compatibility', 0);
81
- add_action('wp', 'ecwid_remove_default_canonical');
82
- add_filter('wp', 'ecwid_seo_compatibility_init', 0);
83
- add_filter('wp_title', 'ecwid_seo_title', 10000, 3);
84
- add_filter('document_title_parts', 'ecwid_seo_title_parts');
85
- add_action('plugins_loaded', 'ecwid_minifier_compatibility', 0);
86
- add_action('wp_head', 'ecwid_meta_description', 0);
87
- add_action('wp_head', 'ecwid_ajax_crawling_fragment');
88
- add_action('wp_head', 'ecwid_meta');
89
- add_action('wp_head', 'ecwid_canonical');
90
- add_action('wp_head', 'ecwid_seo_compatibility_restore', 1000);
91
- add_action('wp_head', 'ecwid_print_inline_js_config');
92
- add_action('wp_head', 'ecwid_product_browser_url_in_head');
93
- add_filter( 'widget_meta_poweredby', 'ecwid_add_credits');
94
- add_filter('body_class', 'ecwid_body_class');
95
- add_action('redirect_canonical', 'ecwid_redirect_canonical', 10, 2 );
96
- add_action('init', 'ecwid_check_api_cache');
97
- $ecwid_seo_title = '';
98
- }
99
- add_action('admin_bar_menu', 'add_ecwid_admin_bar_node', 1000);
100
- if (get_option('ecwid_last_oauth_fail_time') > 0) {
101
- add_action('plugins_loaded', 'ecwid_test_oauth');
 
 
 
 
 
 
 
 
102
  }
103
 
104
  require_once ECWID_PLUGIN_DIR . 'lib/ecwid_platform.php';
@@ -121,6 +133,7 @@ require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-static-home-page.php';
121
 
122
  if ( is_admin() ) {
123
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-help-page.php';
 
124
  }
125
 
126
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-nav-menus.php';
@@ -135,11 +148,13 @@ require_once ECWID_PLUGIN_DIR . 'lib/ecwid_category.php';
135
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-seo-links.php';
136
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-html-meta.php';
137
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-wp-dashboard-feed.php';
 
138
  if (version_compare( phpversion(), '5.6', '>=' ) ) {
139
  require_once ECWID_PLUGIN_DIR . 'includes/importer/importer.php';
140
  }
141
 
142
  $version = get_bloginfo('version');
 
143
  if (version_compare($version, '4.0') >= 0) {
144
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-customizer.php';
145
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-floating-minicart.php';
@@ -154,6 +169,12 @@ foreach (Ecwid_Shortcode_Base::get_store_shortcode_names() as $shortcode_name) {
154
  add_shortcode( $shortcode_name, 'ecwid_shortcode' );
155
  }
156
 
 
 
 
 
 
 
157
  function ecwid_init_integrations()
158
  {
159
  if ( !function_exists( 'get_plugins' ) ) { require_once ( ABSPATH . 'wp-admin/includes/plugin.php' ); }
@@ -193,8 +214,6 @@ function ecwid_estimate_sync() {
193
  echo json_encode($result);
194
  }
195
 
196
- $version = get_bloginfo('version');
197
-
198
  if (version_compare($version, '3.6') < 0) {
199
  /**
200
  * A copy of has_shortcode functionality from wordpress 3.6
@@ -232,9 +251,9 @@ if (version_compare($version, '3.6') < 0) {
232
  }
233
  }
234
 
235
- if (is_admin()) {
236
  $main_button_class = "";
237
- if (version_compare($version, '3.8-beta') > 0) {
238
  $main_button_class = "button-primary";
239
  } else {
240
  $main_button_class = "pure-button pure-button-primary";
@@ -925,8 +944,12 @@ function ecwid_check_api_cache() {
925
 
926
  function ecwid_admin_check_api_cache()
927
  {
928
- if ( wp_doing_ajax() || @$_SERVER['REQUEST_METHOD'] != 'GET' ) return;
929
-
 
 
 
 
930
  EcwidPlatform::cache_log_record( 'admin_init', array() );
931
 
932
  $last_cache = get_option( 'ecwid_last_api_cache_check' );
@@ -934,7 +957,7 @@ function ecwid_admin_check_api_cache()
934
  if ( time() - $last_cache > MINUTE_IN_SECONDS * 5 ) {
935
  Ecwid_Api_V3::reset_api_status();
936
  }
937
-
938
  ecwid_regular_cache_check();
939
  }
940
 
@@ -1079,8 +1102,7 @@ function ecwid_content_has_productbrowser( $content ) {
1079
 
1080
  $result = has_shortcode( $content, 'ecwid_productbrowser' );
1081
 
1082
-
1083
- if ( class_exists( 'Ecwid_Gutenberg' ) && strpos( $content, Ecwid_Gutenberg::STORE_BLOCK ) !== false ) {
1084
  return true;
1085
  }
1086
 
@@ -1237,7 +1259,7 @@ function ecwid_canonical() {
1237
  $main_page_id = Ecwid_Store_page::get_current_store_page_id();
1238
  $params = Ecwid_Store_page::get_store_page_params( $main_page_id );
1239
 
1240
- if ( $params['default_category_id'] ) {
1241
  $current = get_permalink();
1242
  $store_page = Ecwid_Store_Page::get_store_url();
1243
  $link = str_replace( $store_page, $current, $link );
@@ -1500,7 +1522,6 @@ function _ecwid_get_seo_title()
1500
  return "";
1501
  }
1502
 
1503
-
1504
  add_filter('oembed_endpoint_url', 'ecwid_oembed_url', 10, 3);
1505
 
1506
  function ecwid_oembed_url( $url, $permalink, $format ) {
@@ -3381,6 +3402,7 @@ function ecwid_find_shortcodes( $content, $tag ) {
3381
  return false;
3382
  }
3383
 
 
3384
  // Since we use shortcode regex in our own functions, we need it to be persistent
3385
  function ecwid_get_shortcode_regex() {
3386
  global $shortcode_tags;
5
  Description: Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
6
  Text Domain: ecwid-shopping-cart
7
  Author: Ecwid Ecommerce
8
+ Version: 6.6
9
  Author URI: https://ecwid.to/ecwid-site
10
  */
11
 
40
  }
41
 
42
  // Older versions of Google XML Sitemaps plugin generate it in admin, newer in site area, so the hook should be assigned in both of them
43
+ add_action( 'sm_buildmap', 'ecwid_build_google_xml_sitemap' );
44
 
45
  add_action( 'plugins_loaded', 'ecwid_init_integrations' );
46
+ add_filter( 'plugins_loaded', 'ecwid_load_textdomain' );
47
+
48
+ if ( is_admin() ) {
49
+ add_action( 'init', 'ecwid_apply_theme', 0 );
50
+ add_action( 'init', 'ecwid_maybe_remove_emoji' );
51
+
52
+ add_action( 'admin_init', 'ecwid_settings_api_init' );
53
+ add_action( 'admin_init', 'ecwid_check_version' );
54
+ add_action('wp_ajax_check_api_cache', 'ecwid_admin_check_api_cache');
55
+
56
+ add_action( 'admin_enqueue_scripts', 'ecwid_common_admin_scripts' );
57
+ add_action( 'admin_enqueue_scripts', 'ecwid_register_admin_styles' );
58
+ add_action( 'admin_enqueue_scripts', 'ecwid_register_settings_styles' );
59
+
60
+ add_action( 'wp_ajax_ecwid_hide_vote_message', 'ecwid_hide_vote_message' );
61
+ add_action( 'wp_ajax_ecwid_hide_message', 'ecwid_ajax_hide_message' );
62
+ add_action( 'wp_ajax_save-widget', 'ecwid_ajax_save_widget' );
63
+ add_action( 'wp_ajax_ecwid_reset_categories_cache', 'ecwid_reset_categories_cache' );
64
+ add_action( 'wp_ajax_ecwid_create_store', 'ecwid_create_store' );
65
+ add_action( 'wp_ajax_ecwid_sync_products', 'ecwid_sync_products' );
66
+
67
+ add_action( 'admin_post_ecwid_sync_products', 'ecwid_sync_products' );
68
+ add_action( 'admin_post_ec_connect', 'ecwid_admin_post_connect' );
69
+ add_action( 'admin_post_ecwid_get_debug', 'ecwid_get_debug_file' );
70
+
71
+ add_action( 'admin_head', 'ecwid_ie8_fonts_inclusion' );
72
+ add_action( 'get_footer', 'ecwid_admin_get_footer' );
73
+ add_action( 'template_redirect', 'ecwid_process_oauth_params' );
74
+ add_action( 'admin_notices', 'ecwid_show_admin_messages' );
75
+ add_filter( 'plugin_action_links_' . ECWID_PLUGIN_BASENAME, 'ecwid_plugin_actions' );
76
+ add_filter( 'tiny_mce_before_init', 'ecwid_tinymce_init' );
77
  } else {
78
+ add_shortcode( 'ecwid_script', 'ecwid_script_shortcode' );
79
+
80
+ add_action( 'init', 'ecwid_backward_compatibility' );
81
+ add_action( 'init', 'ecwid_check_api_cache' );
82
+
83
+ add_action( 'template_redirect', 'ecwid_404_on_broken_escaped_fragment' );
84
+ add_action( 'template_redirect', 'ecwid_apply_theme' ); // Why not init?
85
+
86
+ add_action( 'wp', 'ecwid_seo_ultimate_compatibility', 0 );
87
+ add_action( 'wp', 'ecwid_remove_default_canonical' );
88
+ add_filter( 'wp', 'ecwid_seo_compatibility_init', 0 );
89
+
90
+ add_action( 'wp_head', 'ecwid_meta_description', 0 );
91
+ add_action( 'wp_head', 'ecwid_ajax_crawling_fragment' );
92
+ add_action( 'wp_head', 'ecwid_meta' );
93
+ add_action( 'wp_head', 'ecwid_canonical' );
94
+ add_action( 'wp_head', 'ecwid_seo_compatibility_restore', 1000 );
95
+ add_action( 'wp_head', 'ecwid_print_inline_js_config' );
96
+ add_action( 'wp_head', 'ecwid_product_browser_url_in_head' );
97
+
98
+ add_action( 'send_headers', 'ecwid_503_on_store_closed' );
99
+ add_action( 'wp_enqueue_scripts', 'ecwid_enqueue_frontend' );
100
+ add_filter( 'wp_title', 'ecwid_seo_title', 10000, 3 );
101
+ add_filter( 'document_title_parts', 'ecwid_seo_title_parts' );
102
+ add_action( 'plugins_loaded', 'ecwid_minifier_compatibility', 0 );
103
+ add_filter( 'widget_meta_poweredby', 'ecwid_add_credits' );
104
+ add_filter( 'body_class', 'ecwid_body_class' );
105
+ add_action( 'redirect_canonical', 'ecwid_redirect_canonical', 10, 2 );
106
+
107
+ $ecwid_seo_title = '';
108
+ }
109
+
110
+ add_action( 'admin_bar_menu', 'add_ecwid_admin_bar_node', 1000 );
111
+
112
+ if ( get_option('ecwid_last_oauth_fail_time') > 0 ) {
113
+ add_action( 'plugins_loaded', 'ecwid_test_oauth');
114
  }
115
 
116
  require_once ECWID_PLUGIN_DIR . 'lib/ecwid_platform.php';
133
 
134
  if ( is_admin() ) {
135
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-help-page.php';
136
+ require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-custom-admin-page.php';
137
  }
138
 
139
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-nav-menus.php';
148
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-seo-links.php';
149
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-html-meta.php';
150
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-wp-dashboard-feed.php';
151
+
152
  if (version_compare( phpversion(), '5.6', '>=' ) ) {
153
  require_once ECWID_PLUGIN_DIR . 'includes/importer/importer.php';
154
  }
155
 
156
  $version = get_bloginfo('version');
157
+
158
  if (version_compare($version, '4.0') >= 0) {
159
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-customizer.php';
160
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-floating-minicart.php';
169
  add_shortcode( $shortcode_name, 'ecwid_shortcode' );
170
  }
171
 
172
+
173
+ add_action( 'update_option_' . Ecwid_Api_V3::TOKEN_OPTION_NAME, array( 'Ecwid_Store_Page', 'set_store_url' ) );
174
+ add_action( 'update_option_' . Ecwid_Store_Page::OPTION_MAIN_STORE_PAGE_ID, array( 'Ecwid_Store_Page', 'set_store_url' ) );
175
+ add_action( 'update_option_rewrite_rules', array( 'Ecwid_Store_Page', 'set_store_url' ) );
176
+
177
+
178
  function ecwid_init_integrations()
179
  {
180
  if ( !function_exists( 'get_plugins' ) ) { require_once ( ABSPATH . 'wp-admin/includes/plugin.php' ); }
214
  echo json_encode($result);
215
  }
216
 
 
 
217
  if (version_compare($version, '3.6') < 0) {
218
  /**
219
  * A copy of has_shortcode functionality from wordpress 3.6
251
  }
252
  }
253
 
254
+ if ( is_admin() ) {
255
  $main_button_class = "";
256
+ if ( version_compare($version, '3.8-beta' ) > 0) {
257
  $main_button_class = "button-primary";
258
  } else {
259
  $main_button_class = "pure-button pure-button-primary";
944
 
945
  function ecwid_admin_check_api_cache()
946
  {
947
+ $is_ajax_check_api_cache = isset( $_GET['action'] ) && $_GET['action'] == 'check_api_cache';
948
+ $is_doing_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX;
949
+ $is_get_request = @$_SERVER['REQUEST_METHOD'] != 'GET';
950
+
951
+ if ( !$is_ajax_check_api_cache && ( $is_doing_ajax || $is_get_request ) ) return;
952
+
953
  EcwidPlatform::cache_log_record( 'admin_init', array() );
954
 
955
  $last_cache = get_option( 'ecwid_last_api_cache_check' );
957
  if ( time() - $last_cache > MINUTE_IN_SECONDS * 5 ) {
958
  Ecwid_Api_V3::reset_api_status();
959
  }
960
+
961
  ecwid_regular_cache_check();
962
  }
963
 
1102
 
1103
  $result = has_shortcode( $content, 'ecwid_productbrowser' );
1104
 
1105
+ if ( class_exists( 'Ecwid_Gutenberg' ) && Ecwid_Gutenberg::has_content_productbrowser( $content ) !== false ) {
 
1106
  return true;
1107
  }
1108
 
1259
  $main_page_id = Ecwid_Store_page::get_current_store_page_id();
1260
  $params = Ecwid_Store_page::get_store_page_params( $main_page_id );
1261
 
1262
+ if ( @$params['default_category_id'] ) {
1263
  $current = get_permalink();
1264
  $store_page = Ecwid_Store_Page::get_store_url();
1265
  $link = str_replace( $store_page, $current, $link );
1522
  return "";
1523
  }
1524
 
 
1525
  add_filter('oembed_endpoint_url', 'ecwid_oembed_url', 10, 3);
1526
 
1527
  function ecwid_oembed_url( $url, $permalink, $format ) {
3402
  return false;
3403
  }
3404
 
3405
+
3406
  // Since we use shortcode regex in our own functions, we need it to be persistent
3407
  function ecwid_get_shortcode_regex() {
3408
  global $shortcode_tags;
includes/class-ecwid-admin.php CHANGED
@@ -93,7 +93,7 @@ class Ecwid_Admin {
93
  $menu = $this->_get_menus();
94
 
95
  foreach ( $menu as $item ) {
96
- if ( @$item['slug'] ) {
97
  add_submenu_page(
98
  self::ADMIN_SLUG,
99
  $item['title'],
@@ -103,7 +103,7 @@ class Ecwid_Admin {
103
  array( $this, 'do_admin_page' )
104
  );
105
 
106
- if (@$item['children']) foreach ($item['children'] as $subitem) {
107
  add_submenu_page(
108
  null,
109
  $subitem['title'],
@@ -283,7 +283,7 @@ class Ecwid_Admin {
283
  $menu_item['type'] = 'separator';
284
  }
285
 
286
- if ( @$item['items'] ) foreach ( $item['items'] as $item2 ) {
287
 
288
  $slug2 = $this->_slugify_ecwid_cp_hash( $item2['path'], $slugs );
289
  $slugs[] = $slug2;
93
  $menu = $this->_get_menus();
94
 
95
  foreach ( $menu as $item ) {
96
+ if ( isset( $item['slug'] ) ) {
97
  add_submenu_page(
98
  self::ADMIN_SLUG,
99
  $item['title'],
103
  array( $this, 'do_admin_page' )
104
  );
105
 
106
+ if ( isset( $item['children'] ) ) foreach ($item['children'] as $subitem) {
107
  add_submenu_page(
108
  null,
109
  $subitem['title'],
283
  $menu_item['type'] = 'separator';
284
  }
285
 
286
+ if ( isset( $item['items'] ) ) foreach ( $item['items'] as $item2 ) {
287
 
288
  $slug2 = $this->_slugify_ecwid_cp_hash( $item2['path'], $slugs );
289
  $slugs[] = $slug2;
includes/class-ecwid-custom-admin-page.php ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Ecwid_Custom_Admin_Page {
4
+ const TAB_NAME = 'ec-apps';
5
+
6
+ public function __construct() {
7
+ if( Ecwid_Api_V3::get_token() && !Ecwid_Config::is_wl() ) {
8
+ add_action( 'current_screen', array( $this, 'init' ) );
9
+ }
10
+ }
11
+
12
+ public function init( $current_screen ) {
13
+
14
+ if( $current_screen->id == 'plugin-install' ){
15
+ add_filter( 'install_plugins_tabs', array( $this, 'plugin_install_init_tab'), 10, 1 );
16
+ add_action( 'install_plugins_' . self::TAB_NAME, array( $this, 'plugin_install_render_tab'), 10, 1 );
17
+ }
18
+
19
+ if( $current_screen->id == 'theme-install' ){
20
+ add_action( 'install_themes_tabs', array( $this, 'themes_install_init_tab') );
21
+ add_action( 'wp_ajax_query-themes', array( $this, 'themes_install_ajax'), 1 );
22
+ }
23
+
24
+ }
25
+
26
+ public function get_iframe_html( $iframe_src ) {
27
+ $html = '<iframe seamless id="ecwid-frame" frameborder="0" width="100%" height="700" scrolling="no" src="' . $iframe_src . '"></iframe>';
28
+
29
+ return $html;
30
+ }
31
+
32
+ public function plugin_install_init_tab( $tabs ) {
33
+ $tabs[ self::TAB_NAME ] = __('Plugins for Ecwid', 'ecwid-shopping-cart');
34
+ return $tabs;
35
+ }
36
+
37
+ public function plugin_install_render_tab( $paged ) {
38
+ $iframe_src = ecwid_get_iframe_src( time(), 'appmarket' );
39
+ $iframe_src .= '&hide_profile_header=true';
40
+
41
+ echo <<<HTML
42
+ <script type='text/javascript'>//<![CDATA[
43
+ jQuery(document).ready(function() {
44
+ jQuery('.search-form.search-plugins').hide();
45
+ });
46
+ //]]>
47
+ </script>
48
+ <p></p>
49
+ HTML;
50
+ echo $this->get_iframe_html( $iframe_src );
51
+ }
52
+
53
+ public function themes_install_init_tab( $tabs ) {
54
+ $iframe_src = ecwid_get_iframe_src( time(), 'apps:view=app&name=templatemonster-themes' );
55
+ $iframe_src .= '&hide_profile_header=true';
56
+
57
+ $tab_content = sprintf(
58
+ __(
59
+ 'Ecwid is compatible with any WordPress theme. Be it a free theme from WordPress.org catalog, a premium theme by a third-party vendor or a custom-made theme, your Ecwid store will work good with it. If you want a premium theme, we recommend <a href="%s">TemplateMonster themes</a>'
60
+ , 'ecwid-shopping-cart'
61
+ ),
62
+ 'https://www.templatemonster.com/ecwid-ready-wordpress-themes/?aff=Ecwid'
63
+ );
64
+ $tab_content = sprintf( '<div id="ec-theme-tab">%s</div>', $tab_content );
65
+
66
+ $link_html = sprintf( '<li><a href="#" data-sort="%s">%s</a></li>', self::TAB_NAME, __('Themes for Ecwid', 'ecwid-shopping-cart') );
67
+
68
+ if ( isset( $_REQUEST['browse'] ) && $_REQUEST['browse'] == self::TAB_NAME ) {
69
+ $init_script = sprintf( 'ecwid_switch_theme_tab("%s");', self::TAB_NAME );
70
+ } else {
71
+ $init_script = '';
72
+ }
73
+
74
+ $content = <<<HTML
75
+ <script type="text/javascript">//<![CDATA[
76
+ function ecwid_switch_theme_tab( sort ){
77
+ if( sort == '%s' ) {
78
+ if( jQuery('#ec-theme-tab').length == 0 ) {
79
+ jQuery('.theme-browser').before('%s');
80
+ // jQuery('#ecwid-frame').css({'margin-top': '-70px'});
81
+ }
82
+
83
+ jQuery('#ec-theme-tab').show();
84
+ jQuery('.filter-count, .button.drawer-toggle, .search-form, .theme-browser').hide();
85
+ } else {
86
+ jQuery('#ec-theme-tab').hide();
87
+ jQuery('.theme-browser').removeAttr('style');
88
+ jQuery('.filter-count, .button.drawer-toggle, .search-form').show();
89
+ }
90
+ }
91
+
92
+ jQuery(document).ready(function(){
93
+ jQuery('.filter-links').append('%s');
94
+
95
+ jQuery(document).on('click', '.filter-links li > a', function(){
96
+ ecwid_switch_theme_tab( jQuery(this).data('sort') );
97
+ });
98
+
99
+ %s
100
+ });
101
+ //]]>
102
+ </script>
103
+ HTML;
104
+
105
+ echo sprintf( $content, self::TAB_NAME, $tab_content, $link_html, $init_script );
106
+
107
+ return $tabs;
108
+ }
109
+
110
+ public function themes_install_ajax() {
111
+ if( $_REQUEST['request']['browse'] == self::TAB_NAME ) {
112
+ $themes_data = array(
113
+ "data" => array(
114
+ "info" => array( "page" => 1, "pages" => 1, "results" => 0 ),
115
+ )
116
+ );
117
+ wp_send_json_success( $themes_data );
118
+ }
119
+ }
120
+ }
121
+
122
+ $ecwid_custom_admin_page = new Ecwid_Custom_Admin_Page();
includes/class-ecwid-customizer.php CHANGED
@@ -139,18 +139,8 @@ class Ecwid_Customizer
139
 
140
  public function preview_init() {
141
  EcwidPlatform::enqueue_script( 'minicart-customize', array(), true );
142
-
143
- add_filter( 'the_content', array($this, 'add_shortcodes_to_content') );
144
  }
145
 
146
- public function add_shortcodes_to_content($content){
147
-
148
- if ( !has_shortcode( $content, 'ecwid' ) && Ecwid_Store_Page::is_store_page() && is_page() ) {
149
- $content .= do_shortcode('[ecwid]');
150
- }
151
-
152
- return $content;
153
- }
154
  }
155
 
156
  new Ecwid_Customizer();
139
 
140
  public function preview_init() {
141
  EcwidPlatform::enqueue_script( 'minicart-customize', array(), true );
 
 
142
  }
143
 
 
 
 
 
 
 
 
 
144
  }
145
 
146
  new Ecwid_Customizer();
includes/class-ecwid-oauth.php CHANGED
@@ -10,6 +10,8 @@ class Ecwid_OAuth {
10
  const OPTION_JUST_CONNECTED = 'ecwid_just_connected';
11
 
12
  const SCOPE_READ_CATALOG = 'read_catalog';
 
 
13
 
14
  protected $state;
15
 
@@ -189,7 +191,14 @@ class Ecwid_OAuth {
189
  } else {
190
  $stored_scope = get_option( 'ecwid_oauth_scope' );
191
  if (empty($stored_scope)) {
192
- $stored_scope = 'read_store_profile ' . Ecwid_OAuth::SCOPE_READ_CATALOG;
 
 
 
 
 
 
 
193
  }
194
  }
195
 
@@ -197,7 +206,14 @@ class Ecwid_OAuth {
197
  }
198
 
199
  protected function _get_default_scopes_array() {
200
- $defaults = array( 'read_store_profile', Ecwid_OAuth::SCOPE_READ_CATALOG, 'allow_sso', 'create_customers', 'public_storefront' );
 
 
 
 
 
 
 
201
 
202
  if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
203
  $defaults[] = 'create_catalog';
10
  const OPTION_JUST_CONNECTED = 'ecwid_just_connected';
11
 
12
  const SCOPE_READ_CATALOG = 'read_catalog';
13
+ const SCOPE_READ_STORE_PROFILE = 'read_store_profile';
14
+ const SCOPE_UPDATE_STORE_PROFILE = 'update_store_profile';
15
 
16
  protected $state;
17
 
191
  } else {
192
  $stored_scope = get_option( 'ecwid_oauth_scope' );
193
  if (empty($stored_scope)) {
194
+ $stored_scope = implode(
195
+ ' ',
196
+ array(
197
+ Ecwid_OAuth::SCOPE_READ_STORE_PROFILE,
198
+ Ecwid_OAuth::SCOPE_UPDATE_STORE_PROFILE,
199
+ Ecwid_OAuth::SCOPE_READ_CATALOG
200
+ )
201
+ );
202
  }
203
  }
204
 
206
  }
207
 
208
  protected function _get_default_scopes_array() {
209
+ $defaults = array(
210
+ Ecwid_OAuth::SCOPE_READ_STORE_PROFILE,
211
+ Ecwid_OAuth::SCOPE_UPDATE_STORE_PROFILE,
212
+ Ecwid_OAuth::SCOPE_READ_CATALOG,
213
+ 'allow_sso',
214
+ 'create_customers',
215
+ 'public_storefront'
216
+ );
217
 
218
  if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
219
  $defaults[] = 'create_catalog';
includes/class-ecwid-popup-deactivate.php CHANGED
@@ -36,7 +36,7 @@ class Ecwid_Popup_Deactivate extends Ecwid_Popup {
36
 
37
  $reasons = $this->_get_reasons();
38
  $reason = $reasons[$_GET['reason']];
39
-
40
  if ( isset( $reason['is_disable_message'] ) ) {
41
  update_option( self::OPTION_DISABLE_POPUP, true );
42
  }
@@ -129,10 +129,16 @@ class Ecwid_Popup_Deactivate extends Ecwid_Popup {
129
  'message_hint' => __( 'What was wrong?', 'ecwid-shopping-cart' ),
130
  ),
131
  array(
132
- 'text' => __( 'The plugin is difficult to set up and use', 'ecwid-shopping-cart' ),
 
 
 
133
  'has_message' => true,
134
- 'code' => 'hard to use',
135
- 'message_hint' => __( 'What was difficult?', 'ecwid-shopping-cart' )
 
 
 
136
  ),
137
  array(
138
  'text' => __( 'The plugin doesn\'t support the feature I want', 'ecwid-shopping-cart' ),
36
 
37
  $reasons = $this->_get_reasons();
38
  $reason = $reasons[$_GET['reason']];
39
+
40
  if ( isset( $reason['is_disable_message'] ) ) {
41
  update_option( self::OPTION_DISABLE_POPUP, true );
42
  }
129
  'message_hint' => __( 'What was wrong?', 'ecwid-shopping-cart' ),
130
  ),
131
  array(
132
+ 'text' => sprintf(
133
+ __( 'I couldn’t find a WordPress theme that goes well with %s', 'ecwid-shopping-cart' ),
134
+ Ecwid_Config::get_brand()
135
+ ),
136
  'has_message' => true,
137
+ 'code' => 'theme',
138
+ 'message_hint' => sprintf(
139
+ __( 'I use this WordPress theme: %s', 'ecwid-shopping-cart' ),
140
+ wp_get_theme()->get('Name')
141
+ )
142
  ),
143
  array(
144
  'text' => __( 'The plugin doesn\'t support the feature I want', 'ecwid-shopping-cart' ),
includes/class-ecwid-seo-links.php CHANGED
@@ -309,7 +309,7 @@ JS;
309
  public function build_rewrite_rules( ) {
310
 
311
  if ( !self::is_enabled() ) return;
312
-
313
  $all_base_urls = $this->_build_all_base_urls();
314
 
315
  foreach ( $all_base_urls as $page_id => $links ) {
@@ -318,7 +318,7 @@ JS;
318
  $post = get_post( $page_id );
319
  if ( ! $post ) continue;
320
  if ( !in_array( $post->post_type, array( 'page', 'post' ) ) ) continue;
321
-
322
  $param_name = $post->post_type == 'page' ? 'page_id' : 'p';
323
 
324
  foreach ( $links as $link ) {
@@ -327,9 +327,8 @@ JS;
327
  if (strpos($link, 'index.php') !== 0) {
328
  $link = '^' . preg_quote( $link );
329
  }
330
-
331
  foreach ( $patterns as $pattern ) {
332
-
333
  add_rewrite_rule( $link . '/' . $pattern . '.*', 'index.php?' . $param_name . '=' . $page_id, 'top' );
334
  }
335
  }
@@ -413,9 +412,12 @@ JS;
413
  if ( !isset( $base_urls[$page_id] ) ) {
414
  $base_urls[$page_id] = array();
415
  }
416
- $base_urls[$page_id][] = urldecode( self::_get_relative_permalink( $page_id ) );
 
 
 
417
  }
418
-
419
  if (
420
  is_plugin_active('polylang/polylang.php')
421
  && function_exists( 'PLL' )
@@ -442,11 +444,44 @@ JS;
442
  }
443
 
444
  protected static function _get_relative_permalink( $item_id ) {
445
- $permalink = get_permalink( $item_id );
446
 
 
447
  $home_url = home_url();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
 
449
- return substr( $permalink, strlen( $home_url ) );
450
  }
451
 
452
  public static function is_noindex_page() {
309
  public function build_rewrite_rules( ) {
310
 
311
  if ( !self::is_enabled() ) return;
312
+
313
  $all_base_urls = $this->_build_all_base_urls();
314
 
315
  foreach ( $all_base_urls as $page_id => $links ) {
318
  $post = get_post( $page_id );
319
  if ( ! $post ) continue;
320
  if ( !in_array( $post->post_type, array( 'page', 'post' ) ) ) continue;
321
+
322
  $param_name = $post->post_type == 'page' ? 'page_id' : 'p';
323
 
324
  foreach ( $links as $link ) {
327
  if (strpos($link, 'index.php') !== 0) {
328
  $link = '^' . preg_quote( $link );
329
  }
330
+
331
  foreach ( $patterns as $pattern ) {
 
332
  add_rewrite_rule( $link . '/' . $pattern . '.*', 'index.php?' . $param_name . '=' . $page_id, 'top' );
333
  }
334
  }
412
  if ( !isset( $base_urls[$page_id] ) ) {
413
  $base_urls[$page_id] = array();
414
  }
415
+
416
+ $link = urldecode( self::_get_relative_permalink( $page_id ) );
417
+
418
+ $base_urls[$page_id][] = $link;
419
  }
420
+
421
  if (
422
  is_plugin_active('polylang/polylang.php')
423
  && function_exists( 'PLL' )
444
  }
445
 
446
  protected static function _get_relative_permalink( $item_id ) {
 
447
 
448
+ $permalink = get_permalink( $item_id );
449
  $home_url = home_url();
450
+ $default_link = substr( $permalink, strlen( $home_url ) );
451
+
452
+ if ( !is_plugin_active( 'sitepress-multilingual-cms/sitepress.php' ) ) {
453
+ return $default_link;
454
+ }
455
+
456
+ try {
457
+ global $sitepress;
458
+
459
+ if ( $sitepress->get_setting( 'language_negotiation_type' ) == WPML_LANGUAGE_NEGOTIATION_TYPE_DIRECTORY ) {
460
+
461
+ $translation_details = apply_filters( 'wpml_element_language_details', null, array(
462
+ 'element_id' => $item_id,
463
+ 'element_type' => 'post_page'
464
+ ) );
465
+
466
+ $code = $translation_details->language_code;
467
+
468
+ $lang_info = apply_filters( 'wpml_active_languages', null );
469
+ $permalink = apply_filters( 'wpml_permalink', get_permalink( $item_id ), $code, true );
470
+ $home_url = $lang_info[$code]['url'];
471
+
472
+ $link = substr( $permalink, strlen( $home_url ) );
473
+ }
474
+ } catch ( Exception $e ) {
475
+ $permalink = get_permalink( $item_id );
476
+
477
+ $home_url = home_url();
478
+
479
+ $link = substr( $permalink, strlen( $home_url ) );
480
+
481
+ return $default_link;
482
+ }
483
 
484
+ return $link;
485
  }
486
 
487
  public static function is_noindex_page() {
includes/class-ecwid-static-home-page.php CHANGED
@@ -37,13 +37,11 @@ class Ecwid_Static_Home_Page {
37
 
38
  if ( !$data || !is_array( $data->cssFiles ) || empty ( $data->cssFiles ) ) return;
39
 
40
- EcwidPlatform::enqueue_script( self::HANDLE_STATIC_PAGE );
41
 
42
  foreach ( $data->cssFiles as $ind => $item ) {
43
  wp_enqueue_style( 'ecwid-' . self::HANDLE_STATIC_PAGE . '-' . $ind, $item );
44
  }
45
-
46
- wp_add_inline_script( 'ecwid-' . self::HANDLE_STATIC_PAGE, "window.ec = window.ec || {}; window.ec.config = window.ec.config || {}; window.ec.config.interactive = false;" );
47
  }
48
 
49
  public function apply_theme( $theme ) {
@@ -83,6 +81,11 @@ class Ecwid_Static_Home_Page {
83
  if ( isset( $store_page_params['default_category_id'] ) && $store_page_params['default_category_id'] ) {
84
  return null;
85
  }
 
 
 
 
 
86
  $params = array();
87
 
88
  if ( Ecwid_Seo_Links::is_enabled() ) {
@@ -130,9 +133,19 @@ class Ecwid_Static_Home_Page {
130
  )
131
  );
132
 
 
133
  if ( $fetched_data && @$fetched_data['data'] ) {
134
-
135
  $fetched_data = @json_decode( $fetched_data['data'] );
 
 
 
 
 
 
 
 
 
136
  EcwidPlatform::store_in_catalog_cache( $cache_key, $fetched_data );
137
 
138
  return $fetched_data;
37
 
38
  if ( !$data || !is_array( $data->cssFiles ) || empty ( $data->cssFiles ) ) return;
39
 
40
+ EcwidPlatform::enqueue_script( self::HANDLE_STATIC_PAGE, array() );
41
 
42
  foreach ( $data->cssFiles as $ind => $item ) {
43
  wp_enqueue_style( 'ecwid-' . self::HANDLE_STATIC_PAGE . '-' . $ind, $item );
44
  }
 
 
45
  }
46
 
47
  public function apply_theme( $theme ) {
81
  if ( isset( $store_page_params['default_category_id'] ) && $store_page_params['default_category_id'] ) {
82
  return null;
83
  }
84
+
85
+ if ( isset( $store_page_params['default_product_id'] ) && $store_page_params['default_product_id'] ) {
86
+ return null;
87
+ }
88
+
89
  $params = array();
90
 
91
  if ( Ecwid_Seo_Links::is_enabled() ) {
133
  )
134
  );
135
 
136
+
137
  if ( $fetched_data && @$fetched_data['data'] ) {
138
+
139
  $fetched_data = @json_decode( $fetched_data['data'] );
140
+
141
+ if ( $fetched_data->jsCode ) {
142
+ $fetched_data->jsCode .= <<<JS
143
+ window.ec = window.ec || {};
144
+ window.ec.config = window.ec.config || {};
145
+ window.ec.config.interactive = false;
146
+ JS;
147
+ }
148
+
149
  EcwidPlatform::store_in_catalog_cache( $cache_key, $fetched_data );
150
 
151
  return $fetched_data;
includes/class-ecwid-store-page.php CHANGED
@@ -285,8 +285,8 @@ class Ecwid_Store_Page {
285
  foreach ( $pages as $ind => $page ) {
286
 
287
  $post = get_post($page);
288
-
289
- if ( $page != self::get_current_store_page_id() && $post && $post->post_type == 'post' ) {
290
  unset( $pages[$ind] );
291
  }
292
  }
@@ -354,6 +354,7 @@ class Ecwid_Store_Page {
354
  return;
355
 
356
  $has_pb = self::post_content_has_productbrowser( $post_id );
 
357
 
358
  if ( self::is_store_page( $post_id ) ) {
359
  $is_disabled = !in_array( get_post_status( $post_id ), self::_get_allowed_post_statuses() );
@@ -363,11 +364,11 @@ class Ecwid_Store_Page {
363
  }
364
  }
365
 
366
- if ($has_pb) {
367
  ecwid_reset_categories_cache();
368
  }
369
 
370
- if ( $has_pb && in_array( get_post_status( $post_id ), self::_get_allowed_post_statuses() ) ) {
371
  self::add_store_page( $post_id );
372
  } else if ( get_option( self::OPTION_MAIN_STORE_PAGE_ID ) == $post_id ) {
373
  update_option( self::OPTION_LAST_STORE_PAGE_ID, $post_id );
@@ -445,6 +446,49 @@ class Ecwid_Store_Page {
445
 
446
  return $title;
447
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
  }
449
 
450
  add_action( 'init', array( 'Ecwid_Store_Page', 'flush_rewrites' ) );
285
  foreach ( $pages as $ind => $page ) {
286
 
287
  $post = get_post($page);
288
+
289
+ if ( $page != self::get_current_store_page_id() && isset( $post ) && $post->post_type != 'page' ) {
290
  unset( $pages[$ind] );
291
  }
292
  }
354
  return;
355
 
356
  $has_pb = self::post_content_has_productbrowser( $post_id );
357
+ $is_allowable_post_type = in_array( get_post_type( $post_id ), array( 'page', 'post' ) );
358
 
359
  if ( self::is_store_page( $post_id ) ) {
360
  $is_disabled = !in_array( get_post_status( $post_id ), self::_get_allowed_post_statuses() );
364
  }
365
  }
366
 
367
+ if ( $is_allowable_post_type && $has_pb ) {
368
  ecwid_reset_categories_cache();
369
  }
370
 
371
+ if ( $is_allowable_post_type && $has_pb && in_array( get_post_status( $post_id ), self::_get_allowed_post_statuses() ) ) {
372
  self::add_store_page( $post_id );
373
  } else if ( get_option( self::OPTION_MAIN_STORE_PAGE_ID ) == $post_id ) {
374
  update_option( self::OPTION_LAST_STORE_PAGE_ID, $post_id );
446
 
447
  return $title;
448
  }
449
+
450
+
451
+ static public function set_store_url()
452
+ {
453
+ $store_url = Ecwid_Store_Page::get_store_url();
454
+
455
+ EcwidPlatform::cache_reset( Ecwid_Api_V3::PROFILE_CACHE_NAME );
456
+
457
+ $api = new Ecwid_Api_V3();
458
+ $profile = $api->get_store_profile();
459
+
460
+ if ( ecwid_is_demo_store() ) {
461
+ return;
462
+ }
463
+
464
+ if ( in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')) ) {
465
+ return;
466
+ }
467
+
468
+ if ( $profile->generalInfo->storeUrl == $store_url ) {
469
+ return;
470
+ }
471
+
472
+ $is_empty = in_array( $profile->generalInfo->storeUrl, array('http://', 'https://') );
473
+ $is_generated_url = $profile->generalInfo->storeUrl == $profile->generalInfo->starterSite->generatedUrl;
474
+ $is_same_domain = wp_parse_url( $profile->generalInfo->storeUrl, PHP_URL_HOST ) == wp_parse_url( $store_url, PHP_URL_HOST );
475
+
476
+ if ( !$is_empty && !$is_generated_url && !$is_same_domain ) {
477
+ return;
478
+ }
479
+
480
+ $params = array(
481
+ 'generalInfo' => array(
482
+ 'storeUrl' => $store_url
483
+ )
484
+ );
485
+
486
+ $result = $api->update_store_profile( $params );
487
+
488
+ if ( $result ) {
489
+ EcwidPlatform::cache_reset( Ecwid_Api_V3::PROFILE_CACHE_NAME );
490
+ }
491
+ }
492
  }
493
 
494
  add_action( 'init', array( 'Ecwid_Store_Page', 'flush_rewrites' ) );
includes/gutenberg/class-ecwid-gutenberg-block-store.php CHANGED
@@ -43,7 +43,9 @@ class Ecwid_Gutenberg_Block_Store extends Ecwid_Gutenberg_Block_Base {
43
 
44
  public function render_callback( $params ) {
45
 
46
- if ( $_SERVER['REQUEST_METHOD'] != 'GET' ) {
 
 
47
  return '';
48
  }
49
 
@@ -161,11 +163,12 @@ window.ec.config.chameleon = window.ec.config.chameleon || Object();
161
  window.ec.config.chameleon.colors = $chameleon[colors];
162
  JS;
163
  }
164
- $result .= "
165
  Ecwid.OnAPILoaded.add(function() {
166
  Ecwid.refreshConfig();
167
  });
168
- </script>";
 
169
 
170
  return $result;
171
  }
43
 
44
  public function render_callback( $params ) {
45
 
46
+ $is_wp_customize = isset( $_REQUEST['wp_customize'] ) && $_REQUEST['wp_customize'] == 'on';
47
+
48
+ if ( $_SERVER['REQUEST_METHOD'] != 'GET' && !$is_wp_customize ) {
49
  return '';
50
  }
51
 
163
  window.ec.config.chameleon.colors = $chameleon[colors];
164
  JS;
165
  }
166
+ $result .= <<<HTML
167
  Ecwid.OnAPILoaded.add(function() {
168
  Ecwid.refreshConfig();
169
  });
170
+ </script>
171
+ HTML;
172
 
173
  return $result;
174
  }
includes/gutenberg/class-ecwid-gutenberg.php CHANGED
@@ -33,7 +33,9 @@ class Ecwid_Gutenberg {
33
  foreach ( $this->_blocks as $block ) {
34
  $block->register();
35
  }
36
-
 
 
37
  add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );
38
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
39
 
@@ -43,6 +45,13 @@ class Ecwid_Gutenberg {
43
  add_filter( 'block_categories', array( $this, 'block_categories' ) );
44
  }
45
 
 
 
 
 
 
 
 
46
  public function admin_enqueue_scripts()
47
  {
48
  wp_enqueue_script( 'gutenberg-store' );
@@ -71,8 +80,7 @@ class Ecwid_Gutenberg {
71
  }
72
 
73
  public function enqueue_block_editor_assets() {
74
-
75
- wp_enqueue_script( 'ecwid-gutenberg-store', ECWID_PLUGIN_URL . 'js/gutenberg/blocks.build.js', array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ), get_option('ecwid_plugin_version') );
76
  wp_enqueue_style( 'ecwid-gutenberg-block', ECWID_PLUGIN_URL . 'css/gutenberg/blocks.editor.build.css', get_option('ecwid_plugin_version') );
77
 
78
  $locale_data = '';
@@ -176,20 +184,30 @@ class Ecwid_Gutenberg {
176
  return $result;
177
  }
178
 
179
- public static function get_block_names() {
180
  // cuz no late static binding sadly
181
- return array(
182
  'store' => self::STORE_BLOCK,
 
 
 
 
 
 
 
183
  'product' => self::PRODUCT_BLOCK,
184
  'buynow' => self::BUYNOW_BLOCK,
185
  'categories' => self::CATEGORIES_BLOCK,
186
  'search' => self::SEARCH_BLOCK,
187
  'minicart' => self::MINICART_BLOCK,
188
- 'category-page' => self::CATEGORY_PAGE_BLOCK,
189
- 'product-page' => self::PRODUCT_PAGE_BLOCK,
190
- 'filters-page' => self::FILTERS_PAGE_BLOCK,
191
  'cart-page' => self::CART_PAGE_BLOCK,
192
  );
 
 
 
 
 
 
193
  }
194
 
195
  /**
@@ -249,6 +267,19 @@ class Ecwid_Gutenberg {
249
 
250
  return $store_block['atts'];
251
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
252
  }
253
 
254
  $ecwid_gutenberg = new Ecwid_Gutenberg();
33
  foreach ( $this->_blocks as $block ) {
34
  $block->register();
35
  }
36
+
37
+ add_action( 'admin_init', array( $this, 'init_scripts' ) );
38
+
39
  add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );
40
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
41
 
45
  add_filter( 'block_categories', array( $this, 'block_categories' ) );
46
  }
47
 
48
+ public function init_scripts()
49
+ {
50
+ wp_register_script( 'ecwid-gutenberg-store', ECWID_PLUGIN_URL . 'js/gutenberg/blocks.build.js', array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ), get_option('ecwid_plugin_version') );
51
+
52
+ wp_set_script_translations( 'ecwid-gutenberg-store', 'ecwid-shopping-cart', ECWID_PLUGIN_DIR . '/languages' );
53
+ }
54
+
55
  public function admin_enqueue_scripts()
56
  {
57
  wp_enqueue_script( 'gutenberg-store' );
80
  }
81
 
82
  public function enqueue_block_editor_assets() {
83
+ wp_enqueue_script( 'ecwid-gutenberg-store' ); //, ECWID_PLUGIN_URL . 'js/gutenberg/blocks.build.js', array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ), get_option('ecwid_plugin_version') );
 
84
  wp_enqueue_style( 'ecwid-gutenberg-block', ECWID_PLUGIN_URL . 'css/gutenberg/blocks.editor.build.css', get_option('ecwid_plugin_version') );
85
 
86
  $locale_data = '';
184
  return $result;
185
  }
186
 
187
+ public static function get_block_names( $return_with_pb_only = false ) {
188
  // cuz no late static binding sadly
189
+ $blocks_with_productbrowser = array(
190
  'store' => self::STORE_BLOCK,
191
+ 'product-page' => self::PRODUCT_PAGE_BLOCK,
192
+ 'category-page' => self::CATEGORY_PAGE_BLOCK,
193
+ 'filters-page' => self::FILTERS_PAGE_BLOCK,
194
+ 'cart-page' => self::CART_PAGE_BLOCK,
195
+ );
196
+
197
+ $blocks_without_productbrowser = array(
198
  'product' => self::PRODUCT_BLOCK,
199
  'buynow' => self::BUYNOW_BLOCK,
200
  'categories' => self::CATEGORIES_BLOCK,
201
  'search' => self::SEARCH_BLOCK,
202
  'minicart' => self::MINICART_BLOCK,
 
 
 
203
  'cart-page' => self::CART_PAGE_BLOCK,
204
  );
205
+
206
+ if( $return_with_pb_only == true ) {
207
+ return $blocks_with_productbrowser;
208
+ }
209
+
210
+ return array_merge($blocks_with_productbrowser, $blocks_without_productbrowser);
211
  }
212
 
213
  /**
267
 
268
  return $store_block['atts'];
269
  }
270
+
271
+ public function has_content_productbrowser( $content ) {
272
+
273
+ $blocks_with_productbrowser = Ecwid_Gutenberg::get_block_names( true );
274
+
275
+ foreach ($blocks_with_productbrowser as $block_name) {
276
+ if( strpos( $content, $block_name ) !== false ) {
277
+ return true;
278
+ }
279
+ }
280
+
281
+ return false;
282
+ }
283
  }
284
 
285
  $ecwid_gutenberg = new Ecwid_Gutenberg();
includes/importer/class-ecwid-importer.php CHANGED
@@ -305,8 +305,6 @@ class Ecwid_Importer
305
  if ( self::count_ecwid_demo_products() > 0 && self::count_ecwid_demo_products() == self::count_ecwid_products() ) {
306
  $this->_set_setting( self::SETTING_DELETE_DEMO, true );
307
  }
308
-
309
- $this->_set_setting( self::SETTING_UPDATE_BY_SKU, true );
310
  }
311
 
312
  protected static function _get_woo_categories( $args ) {
305
  if ( self::count_ecwid_demo_products() > 0 && self::count_ecwid_demo_products() == self::count_ecwid_products() ) {
306
  $this->_set_setting( self::SETTING_DELETE_DEMO, true );
307
  }
 
 
308
  }
309
 
310
  protected static function _get_woo_categories( $args ) {
includes/shortcodes/class-ecwid-shortcode-productbrowser.php CHANGED
@@ -47,12 +47,16 @@ document.body.id = 'ecwid_body';
47
  </script>
48
  HTML;
49
  }
50
-
51
 
52
  $code .= '<div id="static-ecwid">' . htmlspecialchars_decode( $data->htmlCode ) . '</div>';
53
 
54
  $code .= '<div id="dynamic-ecwid">' . $default_render . '</div>';
55
 
 
 
 
 
56
  $code .= <<<HTML
57
  <script language="JavaScript">
58
  EcwidStaticPageLoader.processStaticHomePage('static-ecwid', 'dynamic-ecwid');
47
  </script>
48
  HTML;
49
  }
50
+
51
 
52
  $code .= '<div id="static-ecwid">' . htmlspecialchars_decode( $data->htmlCode ) . '</div>';
53
 
54
  $code .= '<div id="dynamic-ecwid">' . $default_render . '</div>';
55
 
56
+ if ( $data->jsCode ) {
57
+ $code .= '<script type="text/javascript">' . $data->jsCode . '</script>';
58
+ }
59
+
60
  $code .= <<<HTML
61
  <script language="JavaScript">
62
  EcwidStaticPageLoader.processStaticHomePage('static-ecwid', 'dynamic-ecwid');
includes/themes.php CHANGED
@@ -38,17 +38,17 @@ function ecwid_get_theme_identification()
38
  function ecwid_apply_theme($theme_name = null)
39
  {
40
  $generic_themes = array(
41
- 'pixova-lite' => array( 'js', 'scroll' ),
42
  'accesspress-mag' => array( 'css' ),
43
  'attitude' => array( 'css-no-parent' ),
44
  'customizr' => array( 'js', 'css-no-parent', Ecwid_Theme_Base::PROP_USE_JS_API_FOR_CATS_NAV_MENU ),
45
  'edin' => array( 'js' ),
46
  'evolve' => array( 'css-no-parent' ),
47
  'mantra' => array( 'css-no-parent' ),
48
- 'pagelines' => array( 'js', 'scroll' ),
49
  'responsiveboat' => array( 'css' ),
50
- 'twentyfourteen' => array( 'css', 'scroll', Ecwid_Theme_Base::PROP_USE_JS_API_FOR_CATS_NAV_MENU ),
51
- 'twentytwelve' => array( 'js', 'scroll' ),
52
  'sliding-door' => array( 'css-no-parent' ),
53
  'zerif-lite' => array( 'css-no-parent' ),
54
  'storefront' => array( 'css' ),
@@ -60,7 +60,7 @@ function ecwid_apply_theme($theme_name = null)
60
  'uncode' => array( 'css-no-parent' ),
61
  'ribosome' => array( 'css' ),
62
  'optimizepress' => array( 'css' ),
63
- 'edge' => array( 'js', 'scroll' ),
64
  'newsmag' => array( 'css-no-parent'),
65
  'optimizer' => array( 'css' ),
66
  'businesso' => array( 'css' ),
38
  function ecwid_apply_theme($theme_name = null)
39
  {
40
  $generic_themes = array(
41
+ 'pixova-lite' => array( 'js', 'scroll' => 75 ),
42
  'accesspress-mag' => array( 'css' ),
43
  'attitude' => array( 'css-no-parent' ),
44
  'customizr' => array( 'js', 'css-no-parent', Ecwid_Theme_Base::PROP_USE_JS_API_FOR_CATS_NAV_MENU ),
45
  'edin' => array( 'js' ),
46
  'evolve' => array( 'css-no-parent' ),
47
  'mantra' => array( 'css-no-parent' ),
48
+ 'pageline' => array( 'scroll' => 60 ),
49
  'responsiveboat' => array( 'css' ),
50
+ 'twentyfourteen' => array( 'css', 'scroll' => 0, Ecwid_Theme_Base::PROP_USE_JS_API_FOR_CATS_NAV_MENU ),
51
+ 'twentytwelve' => array( 'js' ),
52
  'sliding-door' => array( 'css-no-parent' ),
53
  'zerif-lite' => array( 'css-no-parent' ),
54
  'storefront' => array( 'css' ),
60
  'uncode' => array( 'css-no-parent' ),
61
  'ribosome' => array( 'css' ),
62
  'optimizepress' => array( 'css' ),
63
+ 'edge' => array( 'js', 'scroll' => 50 ),
64
  'newsmag' => array( 'css-no-parent'),
65
  'optimizer' => array( 'css' ),
66
  'businesso' => array( 'css' ),
includes/themes/class-ecwid-theme-avada.php CHANGED
@@ -12,6 +12,8 @@ class Ecwid_Theme_Avada extends Ecwid_Theme_Base
12
 
13
  add_filter( Ecwid_Nav_Menus::FILTER_USE_JS_API_FOR_CATS_MENU, array( $this, 'filter_use_js_api_for_cats_menu' ) );
14
  add_filter( 'ecwid_shortcode_content', array( $this, 'shortcode_content' ) );
 
 
15
  }
16
 
17
  public function shortcode_content( $content )
12
 
13
  add_filter( Ecwid_Nav_Menus::FILTER_USE_JS_API_FOR_CATS_MENU, array( $this, 'filter_use_js_api_for_cats_menu' ) );
14
  add_filter( 'ecwid_shortcode_content', array( $this, 'shortcode_content' ) );
15
+
16
+ $this->create_scroller( array( 'scroll' => 95 ) );
17
  }
18
 
19
  public function shortcode_content( $content )
includes/themes/class-ecwid-theme-base.php CHANGED
@@ -15,6 +15,9 @@ class Ecwid_Theme_Base {
15
 
16
  protected $name;
17
 
 
 
 
18
  protected $has_js = false;
19
  protected $has_css = false;
20
  protected $css_parent = false;
@@ -35,8 +38,8 @@ class Ecwid_Theme_Base {
35
 
36
  if (is_admin()) return;
37
 
38
- if ( in_array( 'scroll', $props ) ) {
39
- $theme->create_scroller();
40
  }
41
 
42
  if ( in_array( 'js', $props ) ) {
@@ -79,16 +82,20 @@ class Ecwid_Theme_Base {
79
  );
80
  }
81
 
82
- protected function create_scroller() {
83
-
84
- if ( get_option( self::OPTION_LEGACY_CUSTOM_SCROLLER, false ) ) {
85
- wp_enqueue_script(
86
- 'ecwid-scroller',
87
- ECWID_PLUGIN_URL . 'js/create_scroller.js' ,
88
- array( 'jquery' ),
89
- get_option('ecwid_plugin_version')
90
- );
91
  }
 
 
 
 
 
 
 
 
92
  }
93
 
94
  protected function add_css( $parent = null ) {
15
 
16
  protected $name;
17
 
18
+ protected $scroll_indent = 100;
19
+ protected $scroll_indent_admin_bar = 32;
20
+
21
  protected $has_js = false;
22
  protected $has_css = false;
23
  protected $css_parent = false;
38
 
39
  if (is_admin()) return;
40
 
41
+ if ( array_key_exists( 'scroll', $props ) ) {
42
+ $theme->create_scroller( $props );
43
  }
44
 
45
  if ( in_array( 'js', $props ) ) {
82
  );
83
  }
84
 
85
+ public function create_scroller( $props ) {
86
+ $this->scroll_indent = $props['scroll'];
87
+
88
+ if( is_admin_bar_showing() ) {
89
+ $this->scroll_indent += $this->scroll_indent_admin_bar;
 
 
 
 
90
  }
91
+
92
+ add_filter( 'ecwid_inline_js_config', array( $this, 'ecwid_inline_js_config_hook' ) );
93
+ }
94
+
95
+ public function ecwid_inline_js_config_hook( $js )
96
+ {
97
+ $js .= 'window.ec.config.scroll_indent = ' . $this->scroll_indent . ';';
98
+ return $js;
99
  }
100
 
101
  protected function add_css( $parent = null ) {
js/admin-menu.js CHANGED
@@ -157,14 +157,40 @@ jQuery(document).ready(function() {
157
  var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
158
  var eventer = window[eventMethod];
159
  var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message";
 
160
 
161
  // Listen to message from child window
162
  eventer(messageEvent,function(e) {
163
 
 
 
 
 
164
  if ( typeof e.data.action != 'undefined') {
 
165
  if ( e.data.action == 'pageLoad' ) {
 
166
  var page = e.data.data.page.path;
167
- jQuery('*[data-ecwid-menu-slug="ec-store-admin-' + page + '"]').eq(0).click();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  } else if (
169
  e.data.action
170
  && e.data.action == 'navigationMenuUpdated'
157
  var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
158
  var eventer = window[eventMethod];
159
  var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message";
160
+ var previous_frame_page;
161
 
162
  // Listen to message from child window
163
  eventer(messageEvent,function(e) {
164
 
165
+ if (typeof e.data.height != 'undefined') {
166
+ jQuery('#ecwid-frame').css('height', e.data.height + 'px');
167
+ }
168
+
169
  if ( typeof e.data.action != 'undefined') {
170
+
171
  if ( e.data.action == 'pageLoad' ) {
172
+ var adminpage = e.currentTarget.adminpage;
173
  var page = e.data.data.page.path;
174
+
175
+ if( adminpage.indexOf(ecwid_admin_menu.baseSlug) != -1 ) {
176
+
177
+ jQuery('*[data-ecwid-menu-slug="ec-store-admin-' + page + '"]').eq(0).click();
178
+
179
+ }
180
+
181
+ if( adminpage == 'plugin-install-php' ) {
182
+ if( page.indexOf('apps:view=app&name=') != -1 ) {
183
+ var admin_page_app = 'admin.php?page=ec-store-admin-my_apps&ec-store-page=';
184
+ window.open( admin_page_app + encodeURIComponent(page), '_blank' );
185
+
186
+ var frame_src = jQuery('#ecwid-frame')
187
+ .attr( 'src' )
188
+ .replace( /(&place=).*?(&)/i, '$1' + previous_frame_page + '$2' );
189
+ jQuery('#ecwid-frame').attr( 'src', frame_src );
190
+ } else {
191
+ previous_frame_page = page;
192
+ }
193
+ }
194
  } else if (
195
  e.data.action
196
  && e.data.action == 'navigationMenuUpdated'
js/admin.js CHANGED
@@ -1,4 +1,15 @@
1
  jQuery(document).ready(function() {
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  var is_safari = navigator.userAgent.indexOf('Chrome') == -1 && navigator.userAgent.indexOf("Safari") > -1;
4
 
1
  jQuery(document).ready(function() {
2
+
3
+
4
+ function ecwidCheckApiCache() {
5
+ jQuery.getJSON(
6
+ 'admin-ajax.php',
7
+ {
8
+ action: 'check_api_cache',
9
+ }
10
+ );
11
+ }
12
+ ecwidCheckApiCache();
13
 
14
  var is_safari = navigator.userAgent.indexOf('Chrome') == -1 && navigator.userAgent.indexOf("Safari") > -1;
15
 
js/gutenberg/blocks.build.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={ecwid:wp.element.createElement("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 20 20","enable-background":"new 0 0 20 20"},wp.element.createElement("path",{fill:"#555d66",d:"M15.32,15.58c-0.37,0-0.66,0.3-0.66,0.67c0,0.37,0.3,0.67,0.66,0.67c0.37,0,0.67-0.3,0.67-0.67 C15.98,15.88,15.69,15.58,15.32,15.58z M15.45,0H4.55C2.04,0,0,2.04,0,4.55v10.91C0,17.97,2.04,20,4.55,20h10.91c2.51,0,4.55-2.04,4.55-4.55V4.55 C20,2.04,17.96,0,15.45,0z M12.97,4.94C13.54,4.94,14,5.4,14,5.96s-0.46,1.03-1.03,1.03c-0.57,0-1.03-0.46-1.03-1.03 C11.95,5.4,12.41,4.94,12.97,4.94z M12.97,8.02c0.57,0,1.03,0.46,1.03,1.03c0,0.57-0.46,1.03-1.03,1.03c-0.57,0-1.03-0.46-1.03-1.03 C11.95,8.48,12.41,8.02,12.97,8.02z M9.98,4.94c0.57,0,1.03,0.46,1.03,1.03s-0.46,1.03-1.03,1.03c-0.57,0-1.03-0.46-1.03-1.03 C8.95,5.4,9.41,4.94,9.98,4.94z M9.98,8.02c0.57,0,1.03,0.46,1.03,1.03s-0.46,1.03-1.03,1.03c-0.57,0-1.03-0.46-1.03-1.03 C8.95,8.48,9.41,8.02,9.98,8.02z M7.03,4.94c0.57,0,1.03,0.46,1.03,1.03S7.6,6.99,7.03,6.99C6.46,6.99,6,6.53,6,5.96 C6,5.4,6.46,4.94,7.03,4.94z M7.03,8.02c0.57,0,1.03,0.46,1.03,1.03s-0.46,1.03-1.03,1.03C6.46,10.08,6,9.62,6,9.05 C6,8.48,6.46,8.02,7.03,8.02z M4.6,18.02c-1.02,0-1.86-0.83-1.86-1.86c0-1.03,0.83-1.86,1.86-1.86c1.03,0,1.86,0.83,1.86,1.86 C6.45,17.19,5.62,18.02,4.6,18.02z M15.32,18.1c-1.02,0-1.86-0.83-1.86-1.86c0-1.03,0.83-1.86,1.86-1.86c1.03,0,1.86,0.83,1.86,1.86 C17.17,17.27,16.34,18.1,15.32,18.1z M18.48,2.79l-1.92,7.14c-0.51,1.91-2.03,3.1-4,3.1H7.2c-1.91,0-3.26-1.09-3.84-2.91L1.73,5 C1.7,4.9,1.72,4.79,1.78,4.71c0.06-0.09,0.16-0.14,0.27-0.14l0.31,0c0.75,0,1.41,0.49,1.64,1.2l1.2,3.76 c0.32,1.02,1.26,1.7,2.33,1.7h4.81c1.1,0,2.08-0.74,2.36-1.81l1.55-5.78c0.2-0.75,0.89-1.28,1.67-1.28h0.24 c0.1,0,0.2,0.05,0.26,0.13C18.48,2.58,18.5,2.68,18.48,2.79z M4.6,15.5c-0.37,0-0.66,0.3-0.66,0.67c0,0.37,0.3,0.67,0.66,0.67c0.37,0,0.67-0.3,0.67-0.67 S4.96,15.5,4.6,15.5z"})),store:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-234.000000, -324.000000)",fill:"#555D66","fill-rule":"nonzero"},wp.element.createElement("g",{id:"store-icon",transform:"translate(234.000000, 324.000000)"},wp.element.createElement("path",{d:"M9,20.4893188 L7,20.4893188 L7,14 C7,13.4477153 7.44771525,13 8,13 L16,13 C16.5522847,13 17,13.4477153 17,14 L17,20.4893188 C16.260376,20.4893188 15.5929565,20.4893188 15,20.4893188 L15,15 L9,15 L9,20.4893188 Z",id:"Rectangle-3"}),wp.element.createElement("path",{d:"M20,10 L22,10 L22,21.0006104 C22,21.5528951 21.5522847,22.0006104 21,22.0006104 L3,22.0006104 C2.44771525,22.0006104 2,21.5528951 2,21.0006104 L2,10 L4,10 L4,20.0006104 L20,20.0006104 L20,10 Z",id:"Rectangle-3"}),wp.element.createElement("path",{d:"M2,6.5 C2,7.88071187 3.11928813,9 4.5,9 C5.18185515,9 5.81786053,8.72707728 6.28575907,8.24959145 L7,7.52071565 L7.71424093,8.24959145 C8.18213947,8.72707728 8.81814485,9 9.5,9 C10.1818552,9 10.8178605,8.72707728 11.2857591,8.24959145 L12,7.52071565 L12.7142409,8.24959145 C13.1821395,8.72707728 13.8181448,9 14.5,9 C15.1818552,9 15.8178605,8.72707728 16.2857591,8.24959145 L17,7.52071565 L17.7142409,8.24959145 C18.1821395,8.72707728 18.8181448,9 19.5,9 C20.8807119,9 22,7.88071187 22,6.5 C22,5.81342077 21.7917279,4.97737648 21.3637104,4 L2.63518632,4 C2.20791709,4.97255801 2,5.80837301 2,6.5 Z M4.5,11 C2.01471863,11 4.4408921e-16,8.98528137 0,6.5 C0,5.33310646 0.374574518,4.02209564 1.10468286,2.55457075 L1.38058736,2 L22.6207487,2 L22.8961752,2.55629959 C23.6256977,4.02977127 24,5.33982925 24,6.5 C24,8.98528137 21.9852814,11 19.5,11 C18.5937006,11 17.7289225,10.73006 17,10.2422809 C16.2710775,10.73006 15.4062994,11 14.5,11 C13.5937006,11 12.7289225,10.73006 12,10.2422809 C11.2710775,10.73006 10.4062994,11 9.5,11 C8.59370056,11 7.72892246,10.73006 7,10.2422809 C6.27107754,10.73006 5.40629944,11 4.5,11 Z",id:"Combined-Shape"}))))),product:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-352.000000, -324.000000)",fill:"#555D66","fill-rule":"nonzero"},wp.element.createElement("g",{id:"icon-product",transform:"translate(352.000000, 324.000000)"},wp.element.createElement("path",{d:"M4,9 L4,20 L20,20 L20,9 L4,9 Z M2,7 L22,7 L22,22 L2,22 L2,7 Z",id:"Rectangle-2-Copy-2"}),wp.element.createElement("path",{d:"M9,7 L15,7 L15,15 L12.0361633,14 L9,15 L9,7 Z M11,9 L11,12 L12.0361633,11.5393066 L13,12 L13,9 L11,9 Z",id:"Combined-Shape"}),wp.element.createElement("polygon",{id:"Line-3",points:"13 9 11 9 11 2 13 2"}),wp.element.createElement("polygon",{id:"Rectangle-2-Copy-2",points:"17.0387503 4 19.4387503 7 22 7 18 2 6 2 2 7 4.56124969 7 6.96124969 4"}))))),aspect169:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"9",y:"14",width:"22",height:"12",rx:"2"}))),aspect916:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"}," ",wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"14",y:"9",width:"12",height:"22",rx:"2"}))),aspect11:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"12",y:"12",width:"16",height:"16",rx:"2"}))),aspect34:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"12",y:"10",width:"16",height:"20",rx:"2"}))),aspect43:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"10",y:"12",width:"20",height:"16",rx:"2"}))),textalignleft:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"13",y:"13",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"16",width:"9",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"19",width:"13",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"22",width:"9",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"25",width:"14",height:"2"}))),textaligncenter:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"13",y:"13",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"16",y:"16",width:"8",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"14",y:"19",width:"12",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"16",y:"22",width:"8",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"25",width:"14",height:"2"}))),textalignright:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"13",y:"13",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"18",y:"16",width:"9",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"14",y:"19",width:"13",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"18",y:"22",width:"9",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"25",width:"14",height:"2"}))),textalignjustify:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",zoomAndPan:"1.5",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"13",y:"13",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"16",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"19",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"22",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"25",width:"14",height:"2"}))),productLayout3Columns:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",transform:"translate(13.000000, 19.500000) rotate(-270.000000) translate(-13.000000, -19.500000) ",x:"3.5",y:"16.5",width:"19",height:"6",rx:"1"}),wp.element.createElement("rect",{fill:"#000000",x:"18",y:"10",width:"5",height:"19"}),wp.element.createElement("rect",{fill:"#000000",x:"25",y:"10",width:"5",height:"8"}),wp.element.createElement("rect",{fill:"#000000",x:"25",y:"19",width:"5",height:"10"}))),productLayout2ColumnsLeft:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"17",y:"10",width:"13",height:"19",rx:"1"}),wp.element.createElement("rect",{fill:"#000000",x:"10",y:"10",width:"5",height:"5"}),wp.element.createElement("rect",{fill:"#000000",x:"10",y:"17",width:"5",height:"12"}))),productLayout2ColumnsRight:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{transform:"translate(10.000000, 10.000000)",fill:"#000000"},wp.element.createElement("rect",{x:"0",y:"0",width:"13",height:"19",rx:"1"}),wp.element.createElement("rect",{x:"15",y:"0",width:"5",height:"5"}),wp.element.createElement("rect",{x:"15",y:"7",width:"5",height:"12"})))),productLayout2ColumnsBottom:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{transform:"translate(10.000000, 10.000000)",fill:"#000000"},wp.element.createElement("rect",{x:"0",y:"0",width:"13",height:"12",rx:"1"}),wp.element.createElement("rect",{x:"15",y:"0",width:"5",height:"12"}),wp.element.createElement("rect",{x:"0",y:"14",width:"20",height:"5"})))),galleryLayoutHorizontal:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{transform:"translate(20.000000, 20.500000) rotate(-180.000000) translate(-20.000000, -20.500000) translate(10.000000, 11.000000)",fill:"#000000","fill-rule":"nonzero"},wp.element.createElement("rect",{x:"0",y:"0",width:"13",height:"19",rx:"1"}),wp.element.createElement("rect",{x:"15",y:"0",width:"5",height:"6"}),wp.element.createElement("rect",{x:"15",y:"14",width:"5",height:"5"}),wp.element.createElement("rect",{x:"15",y:"7",width:"5",height:"6"})))),galleryLayoutVertical:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{transform:"translate(19.500000, 20.000000) rotate(-270.000000) translate(-19.500000, -20.000000) translate(9.500000, 10.500000)",fill:"#000000","fill-rule":"nonzero"},wp.element.createElement("rect",{x:"0",y:"-1.13686838e-13",width:"13",height:"19",rx:"1"}),wp.element.createElement("rect",{x:"15",y:"-1.13686838e-13",width:"5",height:"6"}),wp.element.createElement("rect",{x:"15",y:"7",width:"5",height:"5"}),wp.element.createElement("rect",{x:"15",y:"13",width:"5",height:"6"})))),galleryLayoutFeed:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{transform:"translate(20.500000, 12.500000) rotate(-270.000000) translate(-20.500000, -12.500000) translate(14.000000, 3.000000)",fill:"#000000","fill-rule":"nonzero"},wp.element.createElement("rect",{x:"0",y:"0",width:"13",height:"19",rx:"1"})),wp.element.createElement("g",{transform:"translate(20.500000, 27.500000) rotate(-270.000000) translate(-20.500000, -27.500000) translate(14.000000, 18.000000)",fill:"#000000","fill-rule":"nonzero"},wp.element.createElement("rect",{x:"0",y:"0",width:"13",height:"19",rx:"1"})))),cart:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-352.000000, -415.000000)",fill:"#555D66"},wp.element.createElement("g",{id:"cart-icon",transform:"translate(352.000000, 415.000000)"},wp.element.createElement("path",{d:"M4.5269723,4 L2,4 C1.44771525,4 1,3.55228475 1,3 C1,2.44771525 1.44771525,2 2,2 L5.33333333,2 C5.80393835,2 6.21086155,2.32812702 6.31061146,2.788039 L7.22413999,7 L21,7 C21.6640252,7 22.143636,7.63527258 21.9617572,8.27390353 L19.968471,15.272927 C19.8460922,15.7026358 19.4535094,15.9990234 19.0067139,15.9990234 L7.93579102,15.9990234 C7.465186,15.9990234 7.0582628,15.6708964 6.95851289,15.2109844 L4.5269723,4 Z M7.65791824,9 L8.74215205,13.9990234 L18.2517453,13.9990234 L19.6754416,9 L7.65791824,9 Z",id:"Path-3","fill-rule":"nonzero"}),wp.element.createElement("circle",{id:"Oval-2",cx:"9",cy:"20",r:"2"}),wp.element.createElement("circle",{id:"Oval-2",cx:"18",cy:"20",r:"2"}))))),search:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-469.000000, -324.000000)",fill:"#555D66","fill-rule":"nonzero"},wp.element.createElement("g",{id:"search-icon",transform:"translate(469.000000, 324.000000)"},wp.element.createElement("path",{d:"M3.83470744,16.348799 C3.83470744,15.7965143 4.28242269,15.348799 4.83470744,15.348799 C5.38699219,15.348799 5.83470744,15.7965143 5.83470744,16.348799 L5.81335241,21.7511152 C5.81335241,22.3033999 5.36563716,22.7511152 4.81335241,22.7511152 C4.26106766,22.7511152 3.81335241,22.3033999 3.81335241,21.7511152 L3.83470744,16.348799 Z",id:"Line-2",transform:"translate(4.824030, 19.049957) scale(-1, 1) rotate(-45.000000) translate(-4.824030, -19.049957) "}),wp.element.createElement("path",{d:"M13,18 C16.8659932,18 20,14.8659932 20,11 C20,7.13400675 16.8659932,4 13,4 C9.13400675,4 6,7.13400675 6,11 C6,14.8659932 9.13400675,18 13,18 Z M13,20 C8.02943725,20 4,15.9705627 4,11 C4,6.02943725 8.02943725,2 13,2 C17.9705627,2 22,6.02943725 22,11 C22,15.9705627 17.9705627,20 13,20 Z",id:"Oval",transform:"translate(13.000000, 11.000000) scale(-1, 1) translate(-13.000000, -11.000000) "}),wp.element.createElement("path",{d:"M17,6 C17.5522847,6 18,6.44771525 18,7 C18,7.55228475 17.5522847,8 17,8 C15.0670034,8 13.5,9.56700338 13.5,11.5 C13.5,12.0522847 13.0522847,12.5 12.5,12.5 C11.9477153,12.5 11.5,12.0522847 11.5,11.5 C11.5,8.46243388 13.9624339,6 17,6 Z",id:"Oval",transform:"translate(14.750000, 9.250000) scale(-1, 1) translate(-14.750000, -9.250000) "}))))),categories:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-234.000000, -416.000000)"},wp.element.createElement("g",{id:"categories-icon",transform:"translate(234.000000, 416.000000)"},wp.element.createElement("polygon",{id:"Triangle",fill:"#555D66",points:"3 2 5.5 7 0.5 7"}),wp.element.createElement("polygon",{id:"Line",fill:"#555D66","fill-rule":"nonzero",points:"8 6 8 4 23 4 23 6"}),wp.element.createElement("polygon",{id:"Line",fill:"#555D66","fill-rule":"nonzero",points:"8 13 8 11 23 11 23 13"}),wp.element.createElement("polygon",{id:"Line",fill:"#555D66","fill-rule":"nonzero",points:"8 20 8 18 23 18 23 20"}),wp.element.createElement("rect",{id:"Rectangle",stroke:"#555D66","stroke-width":"2",fill:"#FFFFFF",x:"2",y:"11",width:"2",height:"2"}),wp.element.createElement("rect",{id:"Rectangle",stroke:"#555D66","stroke-width":"2",fill:"#FFFFFF",x:"2",y:"18",width:"2",height:"2",rx:"1"}))))),category:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-470.000000, -416.000000)",fill:"#555D66","fill-rule":"nonzero"},wp.element.createElement("g",{id:"category-icon",transform:"translate(470.000000, 416.000000)"},wp.element.createElement("polygon",{id:"Line-4",points:"3 4 3 2 21 2 21 4"}),wp.element.createElement("path",{d:"M5,17 L5,20 L9,20 L9,17 L5,17 Z M3,15 L11,15 L11,22 L3,22 L3,15 Z",id:"Rectangle-2"}),wp.element.createElement("path",{d:"M5,8 L5,11 L9,11 L9,8 L5,8 Z M3,6 L11,6 L11,13 L3,13 L3,6 Z",id:"Rectangle-2-Copy"}),wp.element.createElement("path",{d:"M15,17 L15,20 L19,20 L19,17 L15,17 Z M13,15 L21,15 L21,22 L13,22 L13,15 Z",id:"Rectangle-2"}),wp.element.createElement("path",{d:"M15,8 L15,11 L19,11 L19,8 L15,8 Z M13,6 L21,6 L21,13 L13,13 L13,6 Z",id:"Rectangle-2-Copy-3"}))))),button:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-345.000000, -280.000000)",fill:"#555D66","fill-rule":"nonzero"},wp.element.createElement("g",{id:"button-icon",transform:"translate(345.000000, 280.000000)"},wp.element.createElement("path",{d:"M4,8 L4,16 L20,16 L20,8 L4,8 Z M4,6 L20,6 C21.1045695,6 22,6.8954305 22,8 L22,16 C22,17.1045695 21.1045695,18 20,18 L4,18 C2.8954305,18 2,17.1045695 2,16 L2,8 C2,6.8954305 2.8954305,6 4,6 Z",id:"Rectangle-5"}),wp.element.createElement("path",{d:"M13.8320367,9.8101295 C14.2137832,9.41102047 14.8467917,9.3969454 15.2459008,9.77869195 C15.6450098,10.1604385 15.6590849,10.793447 15.2773383,11.192556 L12.2122748,14.3970238 C11.8300377,14.7966458 11.1960253,14.8101668 10.7970986,14.427204 L9.5128579,13.1943549 C9.11444327,12.8118837 9.10151859,12.1788506 9.48398981,11.780436 C9.86646103,11.3820214 10.4994941,11.3690967 10.8979087,11.7515679 L11.4594438,12.290632 L13.8320367,9.8101295 Z",id:"Line-6"}))))),productPreview:wp.element.createElement("svg",{width:"72px",height:"72px",viewBox:"0 0 72 72",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets",transform:"translate(-625.000000, -811.000000)",fill:"#AAAAAA"},wp.element.createElement("g",{id:"Group-2",transform:"translate(571.000000, 756.000000)"},wp.element.createElement("g",{id:"product-preview",transform:"translate(54.000000, 55.000000)"},wp.element.createElement("path",{d:"M6,25 L6,69 L66,69 L66,25 L6,25 Z M4,23 L68,23 L68,71 L4,71 L4,23 Z",id:"Rectangle-2-Copy-2","fill-rule":"nonzero"}),wp.element.createElement("path",{d:"M36.5,23.5 L65.836706,23.5 L67.2237665,22.8226349 L55.0328393,7.34740904 L39.8812213,0.895706316 L40.7501329,7.5 L17.0403124,7.5 L5.04031242,22.5 L6.32093727,22.5 L17.5209373,8.5 L36.5,8.5 L36.5,23.5 Z M42.9573255,16.6099474 L41.1011835,2.50206036 L54.4056315,8.16722056 L66.5284549,23.5566573 L42.9573255,16.6099474 Z",id:"Combined-Shape",stroke:"#AAAAAA"}),wp.element.createElement("path",{d:"M29.8056641,41.53125 C29.9375,38.2060547 32.2080078,35.6865234 36.4560547,35.6865234 C40.3232422,35.6865234 42.9306641,37.9863281 42.9306641,41.1210938 C42.9306641,43.3916016 41.7880859,44.9882812 39.8544922,46.1455078 C37.9648438,47.2587891 37.4228516,48.0351562 37.4228516,49.5439453 L37.4228516,50.4375 L34.390625,50.4375 L34.3759766,49.265625 C34.3027344,47.2001953 35.1962891,45.8818359 37.203125,44.6806641 C38.9755859,43.6113281 39.6054688,42.7617188 39.6054688,41.2529297 C39.6054688,39.5976562 38.3017578,38.3818359 36.2949219,38.3818359 C34.2734375,38.3818359 32.9697266,39.5976562 32.8378906,41.53125 L29.8056641,41.53125 Z M35.9287109,57.2197266 C34.859375,57.2197266 34.0097656,56.3994141 34.0097656,55.3300781 C34.0097656,54.2607422 34.859375,53.4404297 35.9287109,53.4404297 C37.0273438,53.4404297 37.8623047,54.2607422 37.8623047,55.3300781 C37.8623047,56.3994141 37.0273438,57.2197266 35.9287109,57.2197266 Z",id:"?"})))))),filters:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-354.000000, -500.000000)",stroke:"#555D66","stroke-width":"2"},wp.element.createElement("g",{id:"filter-icon",transform:"translate(354.000000, 500.000000)"},wp.element.createElement("path",{d:"M3,6 L21,6",id:"Line-5"}),wp.element.createElement("path",{d:"M7,12 L17,12",id:"Line-5"}),wp.element.createElement("path",{d:"M10,18 L14,18",id:"Line-5"}))))),cartPage:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-470.000000, -500.000000)",fill:"#555D66"},wp.element.createElement("g",{id:"cart-icon",transform:"translate(470.000000, 500.000000)"},wp.element.createElement("g",{id:"Group-6",transform:"translate(2.000000, 3.000000)"},wp.element.createElement("path",{d:"M2.5269723,1 L0,1 C-0.55228475,1 -1,0.55228475 -1,-1.11022302e-16 C-1,-0.55228475 -0.55228475,-1 0,-1 L3.33333333,-1 C3.80393835,-1 4.21086155,-0.671872981 4.31061146,-0.211960997 L6.74215205,10.9990234 L16.2517453,10.9990234 L17.6754416,6 L17.0067139,6 C16.4544291,6 16.0067139,5.55228475 16.0067139,5 C16.0067139,4.44771525 16.4544291,4 17.0067139,4 L19,4 C19.6640252,4 20.143636,4.63527258 19.9617572,5.27390353 L17.968471,12.272927 C17.8460922,12.7026358 17.4535094,12.9990234 17.0067139,12.9990234 L5.93579102,12.9990234 C5.465186,12.9990234 5.0582628,12.6708964 4.95851289,12.2109844 L2.5269723,1 Z",id:"Path-3","fill-rule":"nonzero"}),wp.element.createElement("path",{d:"M13.6266547,1.30878828 C14.0084012,0.909679249 14.6414097,0.895604177 15.0405188,1.27735072 C15.4396278,1.65909727 15.4537029,2.29210579 15.0719563,2.69121482 L11.0068929,6.89568259 C10.6246557,7.29530459 9.99064332,7.30882561 9.59171662,6.92586281 L7.61584318,5.00113813 C7.21742856,4.61866691 7.20450388,3.98563386 7.5869751,3.58721924 C7.96944632,3.18880462 8.60247937,3.17587994 9.00089399,3.55835116 L10.2540618,4.78929076 L13.6266547,1.30878828 Z",id:"Line-6","fill-rule":"nonzero"}),wp.element.createElement("circle",{id:"Oval-2",cx:"7",cy:"17",r:"2"}),wp.element.createElement("circle",{id:"Oval-2",cx:"16",cy:"17",r:"2"}))))))}},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=t.attributes,o=function(e,t,o,l){return wp.element.createElement(u,{label:o},wp.element.createElement(d,null,l.map(function(o){return wp.element.createElement(m,{isDefault:!0,isButton:!0,isPrimary:r[t]===o.value,onClick:function(){return e.setAttributes(n({},t,o.value))}},o.title)})))},l=function(e,t,r){return wp.element.createElement(w,{label:r,checked:e.attributes[t],onChange:function(){return e.setAttributes(n({},t,!e.attributes[t]))}})},a=function(e,t,r,o){return wp.element.createElement(u,{label:r},wp.element.createElement("select",{onChange:function(r){e.setAttributes(n({},t,r.target.value))}},o.map(function(r){return wp.element.createElement("option",{value:r.value,selected:parseInt(e.attributes[t])==r.value},r.title)})))},i=function(e,t,r){return wp.element.createElement(u,{label:r},wp.element.createElement("input",{type:"text",value:e.attributes[t],onChange:function(r){e.setAttributes(n({},t,r.target.value))}}))},p=function(e,t,r,o){return wp.element.createElement(u,{label:r},wp.element.createElement(g,{controls:o.map(function(r){return{icon:c.a[r.icon],title:r.title,isActive:e.attributes[t]===r.value,className:"ecwid-toolbar-icon",onClick:function(){return e.setAttributes(n({},t,r.value))}}})}))};return{buttonGroup:function(r){var n=e[r];return o(t,n.name,n.title,n.values)},toggle:function(r){var n=e[r];return l(t,n.name,n.title)},select:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=e[r];return a(t,o.name,n||o.title,o.values)},textbox:function(r){var n=e[r];return builtTextbox(t,n.name,n.title)},toolbar:function(r){var n=e[r];return p(t,n.name,n.title,n.values)},color:function(r){return wp.element.createElement(s.a,{props:t,name:r,title:e[r].title})},defaultCategoryId:function(r){var n=e[r];return n.values&&n.values.length>1?a(t,n.name,n.title,n.values):i(t,n.name,n.title)}}}function l(e){return wp.element.createElement("div",{className:"ec-store-inspector-subheader-row"},wp.element.createElement("label",{className:"ec-store-inspector-subheader"},e))}function a(e){return wp.element.createElement("div",{className:"ec-store-block ec-store-generic-block"},wp.element.createElement("div",{className:"ec-store-block-header"},e.icon,e.title),wp.element.createElement("div",{className:"ec-store-block-content"},e.children),e.showDemoButton&&wp.element.createElement("div",null,wp.element.createElement("a",{className:"button button-primary",href:"admin.php?page=ec-store"},h("Set up your store","ecwid-shopping-cart"))))}function i(e){var t=EcwidGutenbergParams.imagesUrl+e.src;return wp.element.createElement("img",{src:t})}r.d(t,"a",function(){return o}),r.d(t,"c",function(){return l}),r.d(t,"b",function(){return i}),r.d(t,"d",function(){return a});var c=r(0),s=r(6),p=wp.components,d=p.ButtonGroup,m=p.Button,u=p.BaseControl,g=p.Toolbar,w=p.ToggleControl,h=wp.i18n.__},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(3),r(7),r(10),r(13),r(16),r(19),r(22),r(25),r(28),r(31)},function(e,t,r){"use strict";var n=r(4),o=(r.n(n),r(5)),l=(r.n(o),r(0)),a=r(1),i=wp.i18n,c=i.__,s=i._x,p=wp.blocks.registerBlockType,d=wp.editor.InspectorControls,m=wp.components,u=m.PanelBody,g=(m.PanelRow,m.ToggleControl,m.ButtonGroup,m.Button,m.BaseControl),w=(m.Toolbar,m.ColorPalette,m.ColorIndicator,wp.compose.withState,EcwidGutenbergParams.blockParams["ecwid/store-block"]);p("ecwid/store-block",{title:s("Store Home Page","ecwid-shopping-cart"),icon:l.a.store,category:"ec-store",attributes:w.attributes,description:c("Add storefront (product listing)","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,multiple:!1},edit:function(e){function t(e,t){return wp.element.createElement(g,{label:e},wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))}var r=e.attributes;e.setAttributes({widgets:""});var n=wp.element.createElement(a.d,{icon:l.a.store,title:c("Store Home Page"),showDemoButton:w.isDemoStore},wp.element.createElement("div",{className:"ec-store-products"},wp.element.createElement("div",{className:"ec-store-product1"}),wp.element.createElement("div",{className:"ec-store-product2"}),wp.element.createElement("div",{className:"ec-store-product3"})),wp.element.createElement("div",{className:"ec-store-products"},wp.element.createElement("div",{className:"ec-store-product4"}),wp.element.createElement("div",{className:"ec-store-product5"}),wp.element.createElement("div",{className:"ec-store-product6"}))),o=t("",c('To improve the look and feel of your store and manage your storefront appearance here, please enable the \u201cNext-gen look and feel of the product list on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),i=t(c("Display cart icon","ecwid-shopping-cart"),w.customizeMinicartText),s=(t("",c('To improve the look and feel of your product page and manage your its appearance here, please enable the \u201cNext-gen look and feel of the product page on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),w.isNewProductList),p=w.isNewDetailsPage,m=w.attributes.default_category_id&&w.attributes.default_category_id.values&&w.attributes.default_category_id.values.length>0,h=Object(a.a)(w.attributes,e);return[n,wp.element.createElement(d,null,m&&wp.element.createElement(u,{title:c("Category List Appearance","ecwid-shopping-cart"),initialOpen:!1},s&&[h.select("product_list_category_title_behavior"),"SHOW_TEXT_ONLY"!==r.product_list_category_title_behavior&&[h.buttonGroup("product_list_category_image_size"),h.toolbar("product_list_category_image_aspect_ratio")]],!s&&o),wp.element.createElement(u,{title:c("Product List Appearance","ecwid-shopping-cart"),initialOpen:!1},s&&[h.toggle("product_list_show_product_images"),r.product_list_show_product_images&&[h.buttonGroup("product_list_image_size"),h.toolbar("product_list_image_aspect_ratio")],h.toolbar("product_list_product_info_layout"),h.select("product_list_title_behavior"),h.select("product_list_price_behavior"),h.select("product_list_sku_behavior"),h.select("product_list_buybutton_behavior"),h.toggle("product_list_show_additional_image_on_hover"),h.toggle("product_list_show_frame")],!s&&o),wp.element.createElement(u,{title:c("Product Page Appearance","ecwid-shopping-cart"),initialOpen:!1},p&&[h.select("product_details_layout"),("TWO_COLUMNS_SIDEBAR_ON_THE_RIGHT"===r.product_details_layout||"TWO_COLUMNS_SIDEBAR_ON_THE_LEFT"===r.product_details_layout)&&h.toggle("show_description_under_image"),h.toolbar("product_details_gallery_layout"),Object(a.c)(c("Product sidebar content","ecwid-shopping-cart")),h.toggle("product_details_show_product_name"),h.toggle("product_details_show_breadcrumbs"),h.toggle("product_details_show_product_sku"),h.toggle("product_details_show_product_price"),h.toggle("product_details_show_qty"),h.toggle("product_details_show_number_of_items_in_stock"),h.toggle("product_details_show_in_stock_label"),h.toggle("product_details_show_wholesale_prices"),h.toggle("product_details_show_share_buttons")],!p&&o),m&&wp.element.createElement(u,{title:c("Store Front Page","ecwid-shopping-cart"),initialOpen:!1},h.defaultCategoryId("default_category_id")),wp.element.createElement(u,{title:c("Store Navigation","ecwid-shopping-cart"),initialOpen:!1},h.toggle("show_categories"),h.toggle("show_search"),h.toggle("show_breadcrumbs"),s&&h.toggle("show_footer_menu"),h.toggle("show_signin_link"),h.toggle("product_list_show_sort_viewas_options"),i),wp.element.createElement(u,{title:c("Color settings","ecwid-shopping-cart"),initialOpen:!1},h.color("chameleon_color_button"),h.color("chameleon_color_foreground"),h.color("chameleon_color_price"),h.color("chameleon_color_link"),h.color("chameleon_color_background")))]},save:function(e){var t=["productbrowser"];e.attributes.show_categories&&(t[t.length]="categories"),e.attributes.show_search&&(t[t.length]="search");var r={widgets:t.join(" "),default_category_id:"undefined"!==typeof e.attributes.default_category_id?e.attributes.default_category_id:0};return new wp.shortcode({tag:w.shortcodeName,attrs:r,type:"single"}).string()},deprecated:[{attributes:{widgets:{type:"string"},categories_per_row:{type:"integer"},grid:{type:"string"},list:{type:"integer"},table:{type:"integer"},default_category_id:{type:"integer"},default_product_id:{type:"integer"},category_view:{type:"string"},search_view:{type:"string"},minicart_layout:{type:"string"}},save:function(e){return null}},{attributes:{widgets:{type:"string",default:"productbrowser"},default_category_id:{type:"integer",default:0}},migrate:function(e){return{widgets:e.widgets,default_category_id:e.default_category_id}},save:function(e){for(var t={},r=["widgets","default_category_id"],n=0;n<r.length;n++)t[r[n]]=e.attributes[r[n]];return t.default_product_id=0,new wp.shortcode({tag:w.shortcodeName,attrs:t,type:"single"}).string()}},{save:function(e){return"[ecwid]"}},{save:function(e){return'[ecwid widgets="productbrowser" default_category_id="0" default_product_id="0"]'}},{save:function(e){return'[ecwid widgets="productbrowser" default_category_id="0"]'}}],transforms:{from:[{type:"shortcode",tag:["ecwid","ec_store"],attributes:{default_category_id:{type:"integer",shortcode:function(e){return e.default_category_id}},show_categories:{type:"boolean",shortcode:function(e){return-1!==e.named.widgets.indexOf("categories")}},show_search:{type:"boolean",shortcode:function(e){return-1!==e.named.widgets.indexOf("search")}}},priority:10}]}})},function(e,t){},function(e,t){},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){function t(e){l(function(t){return{manual:"manual",color:e}}),m.setAttributes(n({},s,e))}var r=e.manual,o=e.color,l=e.setState,s=arguments[0].name,m=arguments[0].props,u=arguments[0].title,g=null===r&&null!==m.attributes[s]&&""!==m.attributes[s]||"manual"===r;g?null!==o&&m.setAttributes(n({},s,o)):m.setAttributes(n({},s,null));var w=m.attributes[s],h=wp.element.createElement("span",null,u,null!==w&&wp.element.createElement(c,{colorValue:m.attributes[s]}));return wp.element.createElement(a,{label:h,className:"ec-store-color-picker"},wp.element.createElement("select",{onChange:function(e){return l(function(e){return{manual:event.target.value,color:e.color}})}},wp.element.createElement("option",{value:"auto",selected:!g},p("Detect automatically","ecwid-shopping-cart")),wp.element.createElement("option",{value:"manual",selected:g},p("Set manually","ecwid-shopping-cart"))),g&&wp.element.createElement(i,{value:w,colors:d,onChange:t}))}r.d(t,"a",function(){return m});var l=wp.components,a=l.BaseControl,i=l.ColorPalette,c=l.ColorIndicator,s=wp.compose.withState,p=wp.i18n.__,d=[{name:p("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:p("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:p("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:p("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:p("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:p("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:p("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:p("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:p("Very light gray"),slug:"very-light-gray",color:"#eeeeee"},{name:p("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:p("Very dark gray"),slug:"very-dark-gray",color:"#313131"}],m=s({manual:null,color:null})(o)},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(8),l=(r.n(o),r(9)),a=(r.n(l),r(0));if(!EcwidGutenbergParams.isDemoStore){var i=wp.i18n,c=i.__,s=i._x,p=wp.blocks.registerBlockType,d=wp.editor.InspectorControls,m=wp.components,u=m.PanelBody,g=m.ToggleControl;wp.compose.withState,wp.element.Fragment;p("ecwid/product-block",{title:c("Product card small","ecwid-shopping-cart"),icon:a.a.product,category:"ec-store",attributes:{id:{type:"integer"},show_picture:{type:"boolean",default:!0},show_title:{type:"boolean",default:!0},show_price:{type:"boolean",default:!0},show_options:{type:"boolean",default:!0},show_qty:{type:"boolean",default:!1},show_addtobag:{type:"boolean",default:!0},show_price_on_button:{type:"boolean",default:!0},show_border:{type:"boolean",default:!0},center_align:{type:"boolean",default:!0}},description:c("Display product with a buy button","ecwid-shopping-cart"),alignWide:!1,supports:{customClassName:!1,className:!1,html:!1,align:!0,isPrivate:!EcwidGutenbergParams.isApiAvailable},edit:function(e){function t(e,t,r){return wp.element.createElement(g,{label:r,checked:e.attributes[t],onChange:function(){return e.setAttributes(n({},t,!e.attributes[t]))}})}function r(e){ecwid_open_product_popup({saveCallback:l,props:e})}var o=e.attributes,l=function(e){var t={id:e.newProps.product.id};EcwidGutenbergParams.products[e.newProps.product.id]={name:e.newProps.product.name,imageUrl:e.newProps.product.thumb},e.originalProps.setAttributes(t)};return[wp.element.createElement("div",{className:"ec-store-block ec-store-block-product"},EcwidGutenbergParams.products&&o.id&&EcwidGutenbergParams.products[o.id]&&wp.element.createElement("div",{className:"ec-store-block-image"},wp.element.createElement("img",{src:EcwidGutenbergParams.products[o.id].imageUrl})),EcwidGutenbergParams.products&&o.id&&EcwidGutenbergParams.products[o.id]&&wp.element.createElement("div",{className:"ec-store-product-title"},EcwidGutenbergParams.products[o.id].name),!o.id&&wp.element.createElement("div",{className:"ec-store-block-product-preview"},a.a.productPreview),!o.id&&wp.element.createElement("div",null,wp.element.createElement("button",{className:"button ec-store-block-button",onClick:function(){var t={saveCallback:l,props:e};ecwid_open_product_popup(t)}},EcwidGutenbergParams.chooseProduct))),wp.element.createElement(d,null,o.id&&wp.element.createElement("div",null,wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("label",{className:"ec-store-inspector-subheader"},c("Displayed product","ecwid-shopping-cart"))),wp.element.createElement("div",{className:"ec-store-inspector-row"},EcwidGutenbergParams.products&&EcwidGutenbergParams.products[o.id]&&wp.element.createElement("label",null,EcwidGutenbergParams.products[o.id].name),wp.element.createElement("button",{className:"button",onClick:function(){return r(e)}},c("Change","ecwid-shopping-cart")))),!o.id&&wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("button",{className:"button",onClick:function(){return r(e)}},c("Choose product","ecwid-shopping-cart"))),wp.element.createElement(u,{title:s("Content","gutenberg-product-block","ecwid-shopping-cart"),initialOpen:!1},t(e,"show_picture",c("Picture","ecwid-shopping-cart")),t(e,"show_title",c("Title","ecwid-shopping-cart")),t(e,"show_price",c("Price","ecwid-shopping-cart")),t(e,"show_options",c("Options","ecwid-shopping-cart")),t(e,"show_qty",c("Quantity","ecwid-shopping-cart")),t(e,"show_addtobag",c("\xabBuy now\xbb button","ecwid-shopping-cart"))),wp.element.createElement(u,{title:c("Appearance","ecwid-shopping-cart"),initialOpen:!1},t(e,"show_price_on_button",c("Show price inside the \xabBuy now\xbb button","ecwid-shopping-cart")),t(e,"show_border",c("Add border","ecwid-shopping-cart")),t(e,"center_align",c("Center align on a page","ecwid-shopping-cart"))))]},save:function(e){return!1}})}},function(e,t){},function(e,t){},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(11),l=(r.n(o),r(12)),a=(r.n(l),r(0));if(!EcwidGutenbergParams.isDemoStore){var i=wp.i18n,c=i.__,s=(i._x,wp.blocks),p=(s.BlockControls,s.registerBlockType),d=wp.editor.InspectorControls,m=wp.components,u=m.PanelBody,g=m.ToggleControl;wp.compose.withState,wp.element.Fragment;p("ec-store/buynow",{title:c("Buy Now Button","ecwid-shopping-cart"),icon:a.a.button,category:"ec-store",attributes:{id:{type:"integer"},show_price_on_button:{type:"boolean",default:!0},center_align:{type:"boolean",default:!0}},description:c("Display a buy button","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,align:!0,alignWide:!1,isPrivate:!EcwidGutenbergParams.isApiAvailable},edit:function(e){function t(e,t,r){return wp.element.createElement(g,{label:r,checked:e.attributes[t],onChange:function(){return e.setAttributes(n({},t,!e.attributes[t]))}})}function r(e){ecwid_open_product_popup({saveCallback:l,props:e})}var o=e.attributes,l=function(e){var t={id:e.newProps.id};EcwidGutenbergParams.products[e.newProps.id]={name:e.newProps.product.name,imageUrl:e.newProps.product.thumb},e.originalProps.setAttributes(t)};return[wp.element.createElement("div",{className:"ec-store-block ec-store-block-buynow"},!o.id&&wp.element.createElement("div",null,wp.element.createElement("div",{className:"image"}),wp.element.createElement("div",{className:"button-container"},wp.element.createElement("button",{className:"button ec-store-block-button",onClick:function(){var t={saveCallback:l,props:e};ecwid_open_product_popup(t)}},EcwidGutenbergParams.chooseProduct))),o.id&&wp.element.createElement("div",{className:"image"})),wp.element.createElement(d,null,o.id&&wp.element.createElement("div",null,wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("label",{className:"ec-store-inspector-subheader"},c("Linked product","ecwid-shopping-cart"))),wp.element.createElement("div",{className:"ec-store-inspector-row"},EcwidGutenbergParams.products&&EcwidGutenbergParams.products[o.id]&&wp.element.createElement("label",null,EcwidGutenbergParams.products[o.id].name),wp.element.createElement("button",{className:"button",onClick:function(){return r(e)}},c("Change","ecwid-shopping-cart")))),!o.id&&wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("button",{className:"button",onClick:function(){return r(e)}},c("Choose product","ecwid-shopping-cart"))),wp.element.createElement("br",null),wp.element.createElement(u,{title:c("Appearance","ecwid-shopping-cart"),initialOpen:!1},t(e,"show_price_on_button",c("Show price inside the \xabBuy now\xbb button","ecwid-shopping-cart")),t(e,"center_align",c("Center align on a page","ecwid-shopping-cart"))))]},save:function(e){return!1}})}},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(14),o=(r.n(n),r(15)),l=(r.n(o),r(0));if(!EcwidGutenbergParams.isDemoStore){var a=wp.i18n,i=a.__;a._x;(0,wp.blocks.registerBlockType)("ec-store/search",{title:i("Product Search Box","ecwid-shopping-cart"),icon:l.a.search,category:"ec-store",description:i("Display search box","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,isPrivate:!EcwidGutenbergParams.isApiAvailable},edit:function(e){e.attributes;return[wp.element.createElement("div",{className:"ec-store-block ec-store-block-search"},wp.element.createElement("div",{class:"image"}))]},save:function(e){return!1}})}},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(17),o=(r.n(n),r(18)),l=(r.n(o),r(0));if(!EcwidGutenbergParams.isDemoStore){var a=wp.editor.InspectorControls,i=wp.i18n,c=i.__,s=(i._x,wp.blocks.registerBlockType),p=EcwidGutenbergParams.blockParams["ec-store/categories"];s("ec-store/categories",{title:c("Store Categories Menu","ecwid-shopping-cart"),icon:l.a.categories,category:"ec-store",description:c("Display categories menu","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,isPrivate:!EcwidGutenbergParams.isApiAvailable},edit:function(e){var t=(e.attributes,wp.element.createElement("div",{className:"ec-store-block ec-store-block-categories"},wp.element.createElement("div",{className:"ec-store-block-header"},l.a.categories,c("Categories","ecwid-shopping-cart")))),r=c('The block is hidden because you don\'t have categories in your store. <a target="_blank" href="admin.php?page=ec-store-admin-category-id-0-mode-edit">Add categories.</a>',"ecwid-shopping-cart");return[t,wp.element.createElement(a,null,wp.element.createElement("div",{style:{height:"10px"}}),!p.has_categories&&wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:r}}))]},save:function(e){return!1}})}},function(e,t){},function(e,t){},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(20),l=(r.n(o),r(21)),a=(r.n(l),r(0));if(!EcwidGutenbergParams.isDemoStore){var i=wp.i18n,c=i.__,s=(i._x,wp.editor.InspectorControls),p=wp.components,d=p.PanelBody,m=p.BaseControl;(0,wp.blocks.registerBlockType)("ec-store/minicart",{title:c("Shopping Cart Icon","ecwid-shopping-cart"),icon:a.a.cart,category:"ec-store",description:c("Display shopping bag link and summary","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,isPrivate:!EcwidGutenbergParams.isApiAvailable,align:!0,alignWide:!1},attributes:EcwidGutenbergParams.minicartAttributes,edit:function(e){function t(e,t,r,o){return wp.element.createElement(m,{label:r},wp.element.createElement("select",{className:"ec-store-inspector-select",onChange:function(r){e.setAttributes(n({},t,r.target.value))}},o.map(function(r){return wp.element.createElement("option",{value:r.value,selected:e.attributes[t]==r.value},r.title)})))}function r(e,r,n){var o=EcwidGutenbergParams.minicartAttributes[r];return"undefined"===typeof n&&(n=o.type),t(e,o.name,o.title,o.values)}e.attributes;return[wp.element.createElement("div",{className:"ec-store-block ec-store-block-minicart"},wp.element.createElement("div",{className:"image"})),wp.element.createElement(s,null,wp.element.createElement(d,{title:c("Appearance","ecwid-shopping-cart"),initialOpen:!0},r(e,"layout","select"),r(e,"icon","select"),r(e,"fixed_shape","select")))]},save:function(e){return!1}})}},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(23),o=(r.n(n),r(24)),l=(r.n(o),r(0)),a=r(1),i=wp.i18n,c=i.__,s=(i._x,l.a,wp.blocks.registerBlockType),p=wp.editor.InspectorControls,d=wp.components,m=d.PanelBody,u=d.BaseControl,g=EcwidGutenbergParams.blockParams["ec-store/category-page"];s("ec-store/category-page",{title:c("Store Category Page","ecwid-shopping-cart"),icon:l.a.category,category:"ec-store",attributes:EcwidGutenbergStoreBlockParams.attributes,description:c("Display category page","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,multiple:!1},edit:function(e){function t(e,t){return wp.element.createElement(u,{label:e},wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))}var r=e.attributes;e.setAttributes({widgets:""});var n=wp.element.createElement(a.d,{icon:l.a.category,title:c("Store Category Page","ecwid-shopping-cart"),showDemoButton:g.isDemoStore},wp.element.createElement("div",{className:"ec-store-category-products"},wp.element.createElement("div",{className:"ec-store-category-product1"}),wp.element.createElement("div",{className:"ec-store-category-product2"}),wp.element.createElement("div",{className:"ec-store-category-product3"})),wp.element.createElement("div",{className:"ec-store-category-products"},wp.element.createElement("div",{className:"ec-store-category-product4"}),wp.element.createElement("div",{className:"ec-store-category-product5"}),wp.element.createElement("div",{className:"ec-store-category-product6"}))),o=t("",c('To improve the look and feel of your store and manage your storefront appearance here, please enable the \u201cNext-gen look and feel of the product list on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),i=t(c("Display cart icon","ecwid-shopping-cart"),g.customizeMinicartText),s=g.isNewProductList,d=g.isNewDetailsPage,w=Object(a.a)(g.attributes,e);return[n,wp.element.createElement(p,null,wp.element.createElement("div",{style:{height:"10px"}}),!EcwidGutenbergParams.hasCategories&&wp.element.createElement("div",{style:{margin:"10px"}},wp.element.createElement("a",{href:"admin.php?page=ec-store-admin-category-id-0-mode-edit",target:"_blank",class:"button button-primary"},c("Add categories","ecwid-shopping-cart"))),EcwidGutenbergParams.hasCategories&&[!e.attributes.default_category_id&&w.select("default_category_id",c("Select category","ecwid-shopping-cart")),e.attributes.default_category_id&&w.select("default_category_id",c("Selected category","ecwid-shopping-cart"))],wp.element.createElement(m,{title:c("Category List Appearance","ecwid-shopping-cart"),initialOpen:!1},s&&[w.select("product_list_category_title_behavior"),"SHOW_TEXT_ONLY"!==r.product_list_category_title_behavior&&[w.buttonGroup("product_list_category_image_size"),w.toolbar("product_list_category_image_aspect_ratio")]],!s&&o),wp.element.createElement(m,{title:c("Product List Appearance","ecwid-shopping-cart"),initialOpen:!1},s&&[w.toggle("product_list_show_product_images"),r.product_list_show_product_images&&[w.buttonGroup("product_list_image_size"),w.toolbar("product_list_image_aspect_ratio")],w.toolbar("product_list_product_info_layout"),w.select("product_list_title_behavior"),w.select("product_list_price_behavior"),w.select("product_list_sku_behavior"),w.select("product_list_buybutton_behavior"),w.toggle("product_list_show_additional_image_on_hover"),w.toggle("product_list_show_frame")],!s&&o),wp.element.createElement(m,{title:c("Product Page Appearance","ecwid-shopping-cart"),initialOpen:!1},d&&[w.select("product_details_layout"),("TWO_COLUMNS_SIDEBAR_ON_THE_RIGHT"===r.product_details_layout||"TWO_COLUMNS_SIDEBAR_ON_THE_LEFT"===r.product_details_layout)&&w.toggle("show_description_under_image"),w.toolbar("product_details_gallery_layout"),Object(a.c)(c("Product sidebar content","ecwid-shopping-cart")),w.toggle("product_details_show_product_name"),w.toggle("product_details_show_breadcrumbs"),w.toggle("product_details_show_product_sku"),w.toggle("product_details_show_product_price"),w.toggle("product_details_show_qty"),w.toggle("product_details_show_number_of_items_in_stock"),w.toggle("product_details_show_in_stock_label"),w.toggle("product_details_show_wholesale_prices"),w.toggle("product_details_show_share_buttons")],!d&&productDetailsMigrationWarning),wp.element.createElement(m,{title:c("Store Navigation","ecwid-shopping-cart"),initialOpen:!1},w.toggle("show_categories"),w.toggle("show_search"),w.toggle("show_breadcrumbs"),s&&w.toggle("show_footer_menu"),w.toggle("show_signin_link"),w.toggle("product_list_show_sort_viewas_options"),i),wp.element.createElement(m,{title:c("Color settings","ecwid-shopping-cart"),initialOpen:!1},w.color("chameleon_color_button"),w.color("chameleon_color_foreground"),w.color("chameleon_color_price"),w.color("chameleon_color_link"),w.color("chameleon_color_background")))]},save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(26),o=(r.n(n),r(27)),l=(r.n(o),r(0)),a=r(1),i=wp.i18n,c=i.__,s=(i._x,wp.blocks.registerBlockType),p=wp.editor.InspectorControls,d=wp.components,m=d.PanelBody,u=d.BaseControl,g=(wp.compose.withState,EcwidGutenbergParams.blockParams["ec-store/product-page"]);s("ec-store/product-page",{title:c("Product Card Large","ecwid-shopping-cart"),icon:l.a.product,category:"ec-store",attributes:g.attributes,description:c("Display product page with description and a buy button","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,multiple:!1},edit:function(e){function t(e){ecwid_open_product_popup({saveCallback:o,props:e})}function r(e,t){return wp.element.createElement(u,{label:e},wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))}var n=e.attributes,o=function(e){var t={default_product_id:e.newProps.product.id};EcwidGutenbergParams.products[e.newProps.product.id]={name:e.newProps.product.name,imageUrl:e.newProps.product.thumb},e.originalProps.setAttributes(t)},i=wp.element.createElement(a.d,{icon:l.a.product,title:c("Product Card Large")},wp.element.createElement(a.b,{src:"product-page-preview.png"}),!n.default_product_id&&wp.element.createElement("div",{className:"button-container"},wp.element.createElement("button",{className:"button ec-store-block-button",onClick:function(){var t={saveCallback:o,props:e};ecwid_open_product_popup(t)}},EcwidGutenbergParams.chooseProduct))),s=r("",c('To improve the look and feel of your store and manage your storefront appearance here, please enable the \u201cNext-gen look and feel of the product list on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),d=(r("",c('To improve the look and feel of your product page and manage your its appearance here, please enable the \u201cNext-gen look and feel of the product page on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),g.isNewDetailsPage),w=Object(a.a)(g.attributes,e);return[i,wp.element.createElement(p,null,n.default_product_id>0&&wp.element.createElement("div",null,wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("label",{className:"ec-store-inspector-subheader"},c("Linked product","ecwid-shopping-cart"))),wp.element.createElement("div",{className:"ec-store-inspector-row"},EcwidGutenbergParams.products&&EcwidGutenbergParams.products[n.default_product_id]&&wp.element.createElement("label",null,EcwidGutenbergParams.products[n.default_product_id].name),wp.element.createElement("button",{className:"button",onClick:function(){return t(e)}},c("Change","ecwid-shopping-cart")))),!n.default_product_id&&wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("button",{className:"button",onClick:function(){return t(e)}},c("Choose product","ecwid-shopping-cart"))),wp.element.createElement(m,{title:c("Appearance","ecwid-shopping-cart"),initialOpen:!1},d&&[w.select("product_details_layout"),("TWO_COLUMNS_SIDEBAR_ON_THE_RIGHT"===n.product_details_layout||"TWO_COLUMNS_SIDEBAR_ON_THE_LEFT"===n.product_details_layout)&&w.toggle("show_description_under_image"),w.toolbar("product_details_gallery_layout"),Object(a.c)(c("Product sidebar content","ecwid-shopping-cart")),w.toggle("product_details_show_product_name"),w.toggle("product_details_show_breadcrumbs"),w.toggle("product_details_show_product_sku"),w.toggle("product_details_show_product_price"),w.toggle("product_details_show_qty"),w.toggle("product_details_show_number_of_items_in_stock"),w.toggle("product_details_show_in_stock_label"),w.toggle("product_details_show_wholesale_prices"),w.toggle("product_details_show_share_buttons")],!d&&s),wp.element.createElement(m,{title:c("Color settings","ecwid-shopping-cart"),initialOpen:!1},w.color("chameleon_color_button"),w.color("chameleon_color_foreground"),w.color("chameleon_color_price"),w.color("chameleon_color_link"),w.color("chameleon_color_background")))]},save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(29),o=(r.n(n),r(30)),l=(r.n(o),r(0)),a=r(1),i=wp.i18n,c=i.__,s=(i._x,wp.blocks.registerBlockType),p=wp.editor.InspectorControls,d=wp.components,m=d.PanelBody,u=(d.PanelRow,d.ToggleControl,d.ButtonGroup,d.Button,d.BaseControl),g=(d.Toolbar,d.ColorPalette,d.ColorIndicator,wp.compose.withState,EcwidGutenbergParams.blockParams["ec-store/filters-page"]);s("ec-store/filters-page",{title:c("Product Search and filters","ecwid-shopping-cart"),icon:l.a.filters,category:"ec-store",attributes:g.attributes,description:c("Display search page with filters on a side","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,multiple:!1},edit:function(e){function t(e,t){return wp.element.createElement(u,{label:e},wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))}var r=e.attributes,n=wp.element.createElement(a.d,{icon:l.a.filters,title:c("Search and Filters")},wp.element.createElement(a.b,{src:"filter-preview.png"})),o=t("",c('You can enable filters in the store settings: (\u201c<a target="_blank" href="admin.php?page=ec-store-admin-product-filters-mode-main">Settings \u2192 Product Filters</a>\u201d).',"ecwid-shopping-cart")),i=t("",c('To improve the look and feel of your store and manage your storefront appearance here, please enable the \u201cNext-gen look and feel of the product list on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),s=g.isNewProductList,d=Object(a.a)(g.attributes,e);return[n,wp.element.createElement(p,null,wp.element.createElement(m,{title:c("Filters","ecwid-shopping-cart"),initialOpen:!1},!g.filtersEnabled&&o,g.filtersEnabled&&[d.select("product_filters_position_search_page")]),wp.element.createElement(m,{title:c("Product List Appearance","ecwid-shopping-cart"),initialOpen:!1},s&&[d.toggle("product_list_show_product_images"),r.product_list_show_product_images&&[d.buttonGroup("product_list_image_size"),d.toolbar("product_list_image_aspect_ratio")],d.toolbar("product_list_product_info_layout"),d.select("product_list_title_behavior"),d.select("product_list_price_behavior"),d.select("product_list_sku_behavior"),d.select("product_list_buybutton_behavior"),d.toggle("product_list_show_additional_image_on_hover"),d.toggle("product_list_show_frame")],!s&&i),wp.element.createElement(m,{title:c("Store Navigation","ecwid-shopping-cart"),initialOpen:!1},d.toggle("show_categories"),d.toggle("show_breadcrumbs"),s&&d.toggle("show_footer_menu"),d.toggle("show_signin_link"),d.toggle("product_list_show_sort_viewas_options")),wp.element.createElement(m,{title:c("Color settings","ecwid-shopping-cart"),initialOpen:!1},d.color("chameleon_color_button"),d.color("chameleon_color_foreground"),d.color("chameleon_color_price"),d.color("chameleon_color_link"),d.color("chameleon_color_background")))]},save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(32),o=(r.n(n),r(33)),l=(r.n(o),r(0)),a=r(1),i=wp.i18n,c=i.__,s=(i._x,wp.blocks.registerBlockType),p=(wp.editor.InspectorControls,wp.components),d=(p.PanelBody,p.PanelRow,p.ToggleControl,p.ButtonGroup,p.Button,p.BaseControl,p.Toolbar,p.ColorPalette,p.ColorIndicator,wp.compose.withState,EcwidGutenbergParams.blockParams["ec-store/cart-page"]);s("ec-store/cart-page",{title:c("Cart and Checkout","ecwid-shopping-cart"),icon:l.a.cartPage,category:"ec-store",attributes:d.attributes,description:c("Display shopping cart and checkout page","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,multiple:!1},edit:function(e){e.attributes;return[wp.element.createElement(a.d,{icon:l.a.cartPage,title:c("Cart and Checkout")},wp.element.createElement(a.b,{src:"cart-page-preview.png"}))]},save:function(e){return null}})},function(e,t){},function(e,t){}]);
1
+ !function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={ecwid:wp.element.createElement("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 20 20","enable-background":"new 0 0 20 20"},wp.element.createElement("path",{fill:"#555d66",d:"M15.32,15.58c-0.37,0-0.66,0.3-0.66,0.67c0,0.37,0.3,0.67,0.66,0.67c0.37,0,0.67-0.3,0.67-0.67 C15.98,15.88,15.69,15.58,15.32,15.58z M15.45,0H4.55C2.04,0,0,2.04,0,4.55v10.91C0,17.97,2.04,20,4.55,20h10.91c2.51,0,4.55-2.04,4.55-4.55V4.55 C20,2.04,17.96,0,15.45,0z M12.97,4.94C13.54,4.94,14,5.4,14,5.96s-0.46,1.03-1.03,1.03c-0.57,0-1.03-0.46-1.03-1.03 C11.95,5.4,12.41,4.94,12.97,4.94z M12.97,8.02c0.57,0,1.03,0.46,1.03,1.03c0,0.57-0.46,1.03-1.03,1.03c-0.57,0-1.03-0.46-1.03-1.03 C11.95,8.48,12.41,8.02,12.97,8.02z M9.98,4.94c0.57,0,1.03,0.46,1.03,1.03s-0.46,1.03-1.03,1.03c-0.57,0-1.03-0.46-1.03-1.03 C8.95,5.4,9.41,4.94,9.98,4.94z M9.98,8.02c0.57,0,1.03,0.46,1.03,1.03s-0.46,1.03-1.03,1.03c-0.57,0-1.03-0.46-1.03-1.03 C8.95,8.48,9.41,8.02,9.98,8.02z M7.03,4.94c0.57,0,1.03,0.46,1.03,1.03S7.6,6.99,7.03,6.99C6.46,6.99,6,6.53,6,5.96 C6,5.4,6.46,4.94,7.03,4.94z M7.03,8.02c0.57,0,1.03,0.46,1.03,1.03s-0.46,1.03-1.03,1.03C6.46,10.08,6,9.62,6,9.05 C6,8.48,6.46,8.02,7.03,8.02z M4.6,18.02c-1.02,0-1.86-0.83-1.86-1.86c0-1.03,0.83-1.86,1.86-1.86c1.03,0,1.86,0.83,1.86,1.86 C6.45,17.19,5.62,18.02,4.6,18.02z M15.32,18.1c-1.02,0-1.86-0.83-1.86-1.86c0-1.03,0.83-1.86,1.86-1.86c1.03,0,1.86,0.83,1.86,1.86 C17.17,17.27,16.34,18.1,15.32,18.1z M18.48,2.79l-1.92,7.14c-0.51,1.91-2.03,3.1-4,3.1H7.2c-1.91,0-3.26-1.09-3.84-2.91L1.73,5 C1.7,4.9,1.72,4.79,1.78,4.71c0.06-0.09,0.16-0.14,0.27-0.14l0.31,0c0.75,0,1.41,0.49,1.64,1.2l1.2,3.76 c0.32,1.02,1.26,1.7,2.33,1.7h4.81c1.1,0,2.08-0.74,2.36-1.81l1.55-5.78c0.2-0.75,0.89-1.28,1.67-1.28h0.24 c0.1,0,0.2,0.05,0.26,0.13C18.48,2.58,18.5,2.68,18.48,2.79z M4.6,15.5c-0.37,0-0.66,0.3-0.66,0.67c0,0.37,0.3,0.67,0.66,0.67c0.37,0,0.67-0.3,0.67-0.67 S4.96,15.5,4.6,15.5z"})),store:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-234.000000, -324.000000)",fill:"#555D66","fill-rule":"nonzero"},wp.element.createElement("g",{id:"store-icon",transform:"translate(234.000000, 324.000000)"},wp.element.createElement("path",{d:"M9,20.4893188 L7,20.4893188 L7,14 C7,13.4477153 7.44771525,13 8,13 L16,13 C16.5522847,13 17,13.4477153 17,14 L17,20.4893188 C16.260376,20.4893188 15.5929565,20.4893188 15,20.4893188 L15,15 L9,15 L9,20.4893188 Z",id:"Rectangle-3"}),wp.element.createElement("path",{d:"M20,10 L22,10 L22,21.0006104 C22,21.5528951 21.5522847,22.0006104 21,22.0006104 L3,22.0006104 C2.44771525,22.0006104 2,21.5528951 2,21.0006104 L2,10 L4,10 L4,20.0006104 L20,20.0006104 L20,10 Z",id:"Rectangle-3"}),wp.element.createElement("path",{d:"M2,6.5 C2,7.88071187 3.11928813,9 4.5,9 C5.18185515,9 5.81786053,8.72707728 6.28575907,8.24959145 L7,7.52071565 L7.71424093,8.24959145 C8.18213947,8.72707728 8.81814485,9 9.5,9 C10.1818552,9 10.8178605,8.72707728 11.2857591,8.24959145 L12,7.52071565 L12.7142409,8.24959145 C13.1821395,8.72707728 13.8181448,9 14.5,9 C15.1818552,9 15.8178605,8.72707728 16.2857591,8.24959145 L17,7.52071565 L17.7142409,8.24959145 C18.1821395,8.72707728 18.8181448,9 19.5,9 C20.8807119,9 22,7.88071187 22,6.5 C22,5.81342077 21.7917279,4.97737648 21.3637104,4 L2.63518632,4 C2.20791709,4.97255801 2,5.80837301 2,6.5 Z M4.5,11 C2.01471863,11 4.4408921e-16,8.98528137 0,6.5 C0,5.33310646 0.374574518,4.02209564 1.10468286,2.55457075 L1.38058736,2 L22.6207487,2 L22.8961752,2.55629959 C23.6256977,4.02977127 24,5.33982925 24,6.5 C24,8.98528137 21.9852814,11 19.5,11 C18.5937006,11 17.7289225,10.73006 17,10.2422809 C16.2710775,10.73006 15.4062994,11 14.5,11 C13.5937006,11 12.7289225,10.73006 12,10.2422809 C11.2710775,10.73006 10.4062994,11 9.5,11 C8.59370056,11 7.72892246,10.73006 7,10.2422809 C6.27107754,10.73006 5.40629944,11 4.5,11 Z",id:"Combined-Shape"}))))),product:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-352.000000, -324.000000)",fill:"#555D66","fill-rule":"nonzero"},wp.element.createElement("g",{id:"icon-product",transform:"translate(352.000000, 324.000000)"},wp.element.createElement("path",{d:"M4,9 L4,20 L20,20 L20,9 L4,9 Z M2,7 L22,7 L22,22 L2,22 L2,7 Z",id:"Rectangle-2-Copy-2"}),wp.element.createElement("path",{d:"M9,7 L15,7 L15,15 L12.0361633,14 L9,15 L9,7 Z M11,9 L11,12 L12.0361633,11.5393066 L13,12 L13,9 L11,9 Z",id:"Combined-Shape"}),wp.element.createElement("polygon",{id:"Line-3",points:"13 9 11 9 11 2 13 2"}),wp.element.createElement("polygon",{id:"Rectangle-2-Copy-2",points:"17.0387503 4 19.4387503 7 22 7 18 2 6 2 2 7 4.56124969 7 6.96124969 4"}))))),aspect169:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"9",y:"14",width:"22",height:"12",rx:"2"}))),aspect916:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"}," ",wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"14",y:"9",width:"12",height:"22",rx:"2"}))),aspect11:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"12",y:"12",width:"16",height:"16",rx:"2"}))),aspect34:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"12",y:"10",width:"16",height:"20",rx:"2"}))),aspect43:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"10",y:"12",width:"20",height:"16",rx:"2"}))),textalignleft:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"13",y:"13",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"16",width:"9",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"19",width:"13",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"22",width:"9",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"25",width:"14",height:"2"}))),textaligncenter:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"13",y:"13",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"16",y:"16",width:"8",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"14",y:"19",width:"12",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"16",y:"22",width:"8",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"25",width:"14",height:"2"}))),textalignright:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"13",y:"13",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"18",y:"16",width:"9",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"14",y:"19",width:"13",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"18",y:"22",width:"9",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"25",width:"14",height:"2"}))),textalignjustify:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",zoomAndPan:"1.5",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"13",y:"13",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"16",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"19",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"22",width:"14",height:"2"}),wp.element.createElement("rect",{fill:"#000000",x:"13",y:"25",width:"14",height:"2"}))),productLayout3Columns:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",transform:"translate(13.000000, 19.500000) rotate(-270.000000) translate(-13.000000, -19.500000) ",x:"3.5",y:"16.5",width:"19",height:"6",rx:"1"}),wp.element.createElement("rect",{fill:"#000000",x:"18",y:"10",width:"5",height:"19"}),wp.element.createElement("rect",{fill:"#000000",x:"25",y:"10",width:"5",height:"8"}),wp.element.createElement("rect",{fill:"#000000",x:"25",y:"19",width:"5",height:"10"}))),productLayout2ColumnsLeft:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("rect",{fill:"#000000",x:"17",y:"10",width:"13",height:"19",rx:"1"}),wp.element.createElement("rect",{fill:"#000000",x:"10",y:"10",width:"5",height:"5"}),wp.element.createElement("rect",{fill:"#000000",x:"10",y:"17",width:"5",height:"12"}))),productLayout2ColumnsRight:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{transform:"translate(10.000000, 10.000000)",fill:"#000000"},wp.element.createElement("rect",{x:"0",y:"0",width:"13",height:"19",rx:"1"}),wp.element.createElement("rect",{x:"15",y:"0",width:"5",height:"5"}),wp.element.createElement("rect",{x:"15",y:"7",width:"5",height:"12"})))),productLayout2ColumnsBottom:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{transform:"translate(10.000000, 10.000000)",fill:"#000000"},wp.element.createElement("rect",{x:"0",y:"0",width:"13",height:"12",rx:"1"}),wp.element.createElement("rect",{x:"15",y:"0",width:"5",height:"12"}),wp.element.createElement("rect",{x:"0",y:"14",width:"20",height:"5"})))),galleryLayoutHorizontal:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{transform:"translate(20.000000, 20.500000) rotate(-180.000000) translate(-20.000000, -20.500000) translate(10.000000, 11.000000)",fill:"#000000","fill-rule":"nonzero"},wp.element.createElement("rect",{x:"0",y:"0",width:"13",height:"19",rx:"1"}),wp.element.createElement("rect",{x:"15",y:"0",width:"5",height:"6"}),wp.element.createElement("rect",{x:"15",y:"14",width:"5",height:"5"}),wp.element.createElement("rect",{x:"15",y:"7",width:"5",height:"6"})))),galleryLayoutVertical:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{transform:"translate(19.500000, 20.000000) rotate(-270.000000) translate(-19.500000, -20.000000) translate(9.500000, 10.500000)",fill:"#000000","fill-rule":"nonzero"},wp.element.createElement("rect",{x:"0",y:"-1.13686838e-13",width:"13",height:"19",rx:"1"}),wp.element.createElement("rect",{x:"15",y:"-1.13686838e-13",width:"5",height:"6"}),wp.element.createElement("rect",{x:"15",y:"7",width:"5",height:"5"}),wp.element.createElement("rect",{x:"15",y:"13",width:"5",height:"6"})))),galleryLayoutFeed:wp.element.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},wp.element.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{transform:"translate(20.500000, 12.500000) rotate(-270.000000) translate(-20.500000, -12.500000) translate(14.000000, 3.000000)",fill:"#000000","fill-rule":"nonzero"},wp.element.createElement("rect",{x:"0",y:"0",width:"13",height:"19",rx:"1"})),wp.element.createElement("g",{transform:"translate(20.500000, 27.500000) rotate(-270.000000) translate(-20.500000, -27.500000) translate(14.000000, 18.000000)",fill:"#000000","fill-rule":"nonzero"},wp.element.createElement("rect",{x:"0",y:"0",width:"13",height:"19",rx:"1"})))),cart:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-352.000000, -415.000000)",fill:"#555D66"},wp.element.createElement("g",{id:"cart-icon",transform:"translate(352.000000, 415.000000)"},wp.element.createElement("path",{d:"M4.5269723,4 L2,4 C1.44771525,4 1,3.55228475 1,3 C1,2.44771525 1.44771525,2 2,2 L5.33333333,2 C5.80393835,2 6.21086155,2.32812702 6.31061146,2.788039 L7.22413999,7 L21,7 C21.6640252,7 22.143636,7.63527258 21.9617572,8.27390353 L19.968471,15.272927 C19.8460922,15.7026358 19.4535094,15.9990234 19.0067139,15.9990234 L7.93579102,15.9990234 C7.465186,15.9990234 7.0582628,15.6708964 6.95851289,15.2109844 L4.5269723,4 Z M7.65791824,9 L8.74215205,13.9990234 L18.2517453,13.9990234 L19.6754416,9 L7.65791824,9 Z",id:"Path-3","fill-rule":"nonzero"}),wp.element.createElement("circle",{id:"Oval-2",cx:"9",cy:"20",r:"2"}),wp.element.createElement("circle",{id:"Oval-2",cx:"18",cy:"20",r:"2"}))))),search:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-469.000000, -324.000000)",fill:"#555D66","fill-rule":"nonzero"},wp.element.createElement("g",{id:"search-icon",transform:"translate(469.000000, 324.000000)"},wp.element.createElement("path",{d:"M3.83470744,16.348799 C3.83470744,15.7965143 4.28242269,15.348799 4.83470744,15.348799 C5.38699219,15.348799 5.83470744,15.7965143 5.83470744,16.348799 L5.81335241,21.7511152 C5.81335241,22.3033999 5.36563716,22.7511152 4.81335241,22.7511152 C4.26106766,22.7511152 3.81335241,22.3033999 3.81335241,21.7511152 L3.83470744,16.348799 Z",id:"Line-2",transform:"translate(4.824030, 19.049957) scale(-1, 1) rotate(-45.000000) translate(-4.824030, -19.049957) "}),wp.element.createElement("path",{d:"M13,18 C16.8659932,18 20,14.8659932 20,11 C20,7.13400675 16.8659932,4 13,4 C9.13400675,4 6,7.13400675 6,11 C6,14.8659932 9.13400675,18 13,18 Z M13,20 C8.02943725,20 4,15.9705627 4,11 C4,6.02943725 8.02943725,2 13,2 C17.9705627,2 22,6.02943725 22,11 C22,15.9705627 17.9705627,20 13,20 Z",id:"Oval",transform:"translate(13.000000, 11.000000) scale(-1, 1) translate(-13.000000, -11.000000) "}),wp.element.createElement("path",{d:"M17,6 C17.5522847,6 18,6.44771525 18,7 C18,7.55228475 17.5522847,8 17,8 C15.0670034,8 13.5,9.56700338 13.5,11.5 C13.5,12.0522847 13.0522847,12.5 12.5,12.5 C11.9477153,12.5 11.5,12.0522847 11.5,11.5 C11.5,8.46243388 13.9624339,6 17,6 Z",id:"Oval",transform:"translate(14.750000, 9.250000) scale(-1, 1) translate(-14.750000, -9.250000) "}))))),categories:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-234.000000, -416.000000)"},wp.element.createElement("g",{id:"categories-icon",transform:"translate(234.000000, 416.000000)"},wp.element.createElement("polygon",{id:"Triangle",fill:"#555D66",points:"3 2 5.5 7 0.5 7"}),wp.element.createElement("polygon",{id:"Line",fill:"#555D66","fill-rule":"nonzero",points:"8 6 8 4 23 4 23 6"}),wp.element.createElement("polygon",{id:"Line",fill:"#555D66","fill-rule":"nonzero",points:"8 13 8 11 23 11 23 13"}),wp.element.createElement("polygon",{id:"Line",fill:"#555D66","fill-rule":"nonzero",points:"8 20 8 18 23 18 23 20"}),wp.element.createElement("rect",{id:"Rectangle",stroke:"#555D66","stroke-width":"2",fill:"#FFFFFF",x:"2",y:"11",width:"2",height:"2"}),wp.element.createElement("rect",{id:"Rectangle",stroke:"#555D66","stroke-width":"2",fill:"#FFFFFF",x:"2",y:"18",width:"2",height:"2",rx:"1"}))))),category:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-470.000000, -416.000000)",fill:"#555D66","fill-rule":"nonzero"},wp.element.createElement("g",{id:"category-icon",transform:"translate(470.000000, 416.000000)"},wp.element.createElement("polygon",{id:"Line-4",points:"3 4 3 2 21 2 21 4"}),wp.element.createElement("path",{d:"M5,17 L5,20 L9,20 L9,17 L5,17 Z M3,15 L11,15 L11,22 L3,22 L3,15 Z",id:"Rectangle-2"}),wp.element.createElement("path",{d:"M5,8 L5,11 L9,11 L9,8 L5,8 Z M3,6 L11,6 L11,13 L3,13 L3,6 Z",id:"Rectangle-2-Copy"}),wp.element.createElement("path",{d:"M15,17 L15,20 L19,20 L19,17 L15,17 Z M13,15 L21,15 L21,22 L13,22 L13,15 Z",id:"Rectangle-2"}),wp.element.createElement("path",{d:"M15,8 L15,11 L19,11 L19,8 L15,8 Z M13,6 L21,6 L21,13 L13,13 L13,6 Z",id:"Rectangle-2-Copy-3"}))))),button:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-345.000000, -280.000000)",fill:"#555D66","fill-rule":"nonzero"},wp.element.createElement("g",{id:"button-icon",transform:"translate(345.000000, 280.000000)"},wp.element.createElement("path",{d:"M4,8 L4,16 L20,16 L20,8 L4,8 Z M4,6 L20,6 C21.1045695,6 22,6.8954305 22,8 L22,16 C22,17.1045695 21.1045695,18 20,18 L4,18 C2.8954305,18 2,17.1045695 2,16 L2,8 C2,6.8954305 2.8954305,6 4,6 Z",id:"Rectangle-5"}),wp.element.createElement("path",{d:"M13.8320367,9.8101295 C14.2137832,9.41102047 14.8467917,9.3969454 15.2459008,9.77869195 C15.6450098,10.1604385 15.6590849,10.793447 15.2773383,11.192556 L12.2122748,14.3970238 C11.8300377,14.7966458 11.1960253,14.8101668 10.7970986,14.427204 L9.5128579,13.1943549 C9.11444327,12.8118837 9.10151859,12.1788506 9.48398981,11.780436 C9.86646103,11.3820214 10.4994941,11.3690967 10.8979087,11.7515679 L11.4594438,12.290632 L13.8320367,9.8101295 Z",id:"Line-6"}))))),productPreview:wp.element.createElement("svg",{width:"72px",height:"72px",viewBox:"0 0 72 72",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets",transform:"translate(-625.000000, -811.000000)",fill:"#AAAAAA"},wp.element.createElement("g",{id:"Group-2",transform:"translate(571.000000, 756.000000)"},wp.element.createElement("g",{id:"product-preview",transform:"translate(54.000000, 55.000000)"},wp.element.createElement("path",{d:"M6,25 L6,69 L66,69 L66,25 L6,25 Z M4,23 L68,23 L68,71 L4,71 L4,23 Z",id:"Rectangle-2-Copy-2","fill-rule":"nonzero"}),wp.element.createElement("path",{d:"M36.5,23.5 L65.836706,23.5 L67.2237665,22.8226349 L55.0328393,7.34740904 L39.8812213,0.895706316 L40.7501329,7.5 L17.0403124,7.5 L5.04031242,22.5 L6.32093727,22.5 L17.5209373,8.5 L36.5,8.5 L36.5,23.5 Z M42.9573255,16.6099474 L41.1011835,2.50206036 L54.4056315,8.16722056 L66.5284549,23.5566573 L42.9573255,16.6099474 Z",id:"Combined-Shape",stroke:"#AAAAAA"}),wp.element.createElement("path",{d:"M29.8056641,41.53125 C29.9375,38.2060547 32.2080078,35.6865234 36.4560547,35.6865234 C40.3232422,35.6865234 42.9306641,37.9863281 42.9306641,41.1210938 C42.9306641,43.3916016 41.7880859,44.9882812 39.8544922,46.1455078 C37.9648438,47.2587891 37.4228516,48.0351562 37.4228516,49.5439453 L37.4228516,50.4375 L34.390625,50.4375 L34.3759766,49.265625 C34.3027344,47.2001953 35.1962891,45.8818359 37.203125,44.6806641 C38.9755859,43.6113281 39.6054688,42.7617188 39.6054688,41.2529297 C39.6054688,39.5976562 38.3017578,38.3818359 36.2949219,38.3818359 C34.2734375,38.3818359 32.9697266,39.5976562 32.8378906,41.53125 L29.8056641,41.53125 Z M35.9287109,57.2197266 C34.859375,57.2197266 34.0097656,56.3994141 34.0097656,55.3300781 C34.0097656,54.2607422 34.859375,53.4404297 35.9287109,53.4404297 C37.0273438,53.4404297 37.8623047,54.2607422 37.8623047,55.3300781 C37.8623047,56.3994141 37.0273438,57.2197266 35.9287109,57.2197266 Z",id:"?"})))))),filters:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-354.000000, -500.000000)",stroke:"#555D66","stroke-width":"2"},wp.element.createElement("g",{id:"filter-icon",transform:"translate(354.000000, 500.000000)"},wp.element.createElement("path",{d:"M3,6 L21,6",id:"Line-5"}),wp.element.createElement("path",{d:"M7,12 L17,12",id:"Line-5"}),wp.element.createElement("path",{d:"M10,18 L14,18",id:"Line-5"}))))),cartPage:wp.element.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1"},wp.element.createElement("g",{id:"Typography",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wp.element.createElement("g",{id:"gutenberg-widgets-icons",transform:"translate(-470.000000, -500.000000)",fill:"#555D66"},wp.element.createElement("g",{id:"cart-icon",transform:"translate(470.000000, 500.000000)"},wp.element.createElement("g",{id:"Group-6",transform:"translate(2.000000, 3.000000)"},wp.element.createElement("path",{d:"M2.5269723,1 L0,1 C-0.55228475,1 -1,0.55228475 -1,-1.11022302e-16 C-1,-0.55228475 -0.55228475,-1 0,-1 L3.33333333,-1 C3.80393835,-1 4.21086155,-0.671872981 4.31061146,-0.211960997 L6.74215205,10.9990234 L16.2517453,10.9990234 L17.6754416,6 L17.0067139,6 C16.4544291,6 16.0067139,5.55228475 16.0067139,5 C16.0067139,4.44771525 16.4544291,4 17.0067139,4 L19,4 C19.6640252,4 20.143636,4.63527258 19.9617572,5.27390353 L17.968471,12.272927 C17.8460922,12.7026358 17.4535094,12.9990234 17.0067139,12.9990234 L5.93579102,12.9990234 C5.465186,12.9990234 5.0582628,12.6708964 4.95851289,12.2109844 L2.5269723,1 Z",id:"Path-3","fill-rule":"nonzero"}),wp.element.createElement("path",{d:"M13.6266547,1.30878828 C14.0084012,0.909679249 14.6414097,0.895604177 15.0405188,1.27735072 C15.4396278,1.65909727 15.4537029,2.29210579 15.0719563,2.69121482 L11.0068929,6.89568259 C10.6246557,7.29530459 9.99064332,7.30882561 9.59171662,6.92586281 L7.61584318,5.00113813 C7.21742856,4.61866691 7.20450388,3.98563386 7.5869751,3.58721924 C7.96944632,3.18880462 8.60247937,3.17587994 9.00089399,3.55835116 L10.2540618,4.78929076 L13.6266547,1.30878828 Z",id:"Line-6","fill-rule":"nonzero"}),wp.element.createElement("circle",{id:"Oval-2",cx:"7",cy:"17",r:"2"}),wp.element.createElement("circle",{id:"Oval-2",cx:"16",cy:"17",r:"2"}))))))}},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=t.attributes,o=function(e,t,o,l){return wp.element.createElement(u,{label:o},wp.element.createElement(d,null,l.map(function(o){return wp.element.createElement(m,{isDefault:!0,isButton:!0,isPrimary:r[t]===o.value,onClick:function(){return e.setAttributes(n({},t,o.value))}},o.title)})))},l=function(e,t,r){return wp.element.createElement(w,{label:r,checked:e.attributes[t],onChange:function(){return e.setAttributes(n({},t,!e.attributes[t]))}})},a=function(e,t,r,o){return wp.element.createElement(u,{label:r},wp.element.createElement("select",{onChange:function(r){e.setAttributes(n({},t,r.target.value))}},o.map(function(r){return wp.element.createElement("option",{value:r.value,selected:parseInt(e.attributes[t])==r.value},r.title)})))},i=function(e,t,r){return wp.element.createElement(u,{label:r},wp.element.createElement("input",{type:"text",value:e.attributes[t],onChange:function(r){e.setAttributes(n({},t,r.target.value))}}))},p=function(e,t,r,o){return wp.element.createElement(u,{label:r},wp.element.createElement(g,{controls:o.map(function(r){return{icon:c.a[r.icon],title:r.title,isActive:e.attributes[t]===r.value,className:"ecwid-toolbar-icon",onClick:function(){return e.setAttributes(n({},t,r.value))}}})}))};return{buttonGroup:function(r){var n=e[r];return o(t,n.name,n.title,n.values)},toggle:function(r){var n=e[r];return l(t,n.name,n.title)},select:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=e[r];return a(t,o.name,n||o.title,o.values)},textbox:function(r){var n=e[r];return builtTextbox(t,n.name,n.title)},toolbar:function(r){var n=e[r];return p(t,n.name,n.title,n.values)},color:function(r){return wp.element.createElement(s.a,{props:t,name:r,title:e[r].title})},defaultCategoryId:function(r){var n=e[r];return n.values&&n.values.length>1?a(t,n.name,n.title,n.values):i(t,n.name,n.title)}}}function l(e){return wp.element.createElement("div",{className:"ec-store-inspector-subheader-row"},wp.element.createElement("label",{className:"ec-store-inspector-subheader"},e))}function a(e){return wp.element.createElement("div",{className:"ec-store-block ec-store-generic-block"},wp.element.createElement("div",{className:"ec-store-block-header"},e.icon,e.title),wp.element.createElement("div",{className:"ec-store-block-content"},e.children),e.showDemoButton&&wp.element.createElement("div",null,wp.element.createElement("a",{className:"button button-primary",href:"admin.php?page=ec-store"},h("Set up your store","ecwid-shopping-cart"))))}function i(e){var t=EcwidGutenbergParams.imagesUrl+e.src;return wp.element.createElement("img",{src:t})}r.d(t,"a",function(){return o}),r.d(t,"c",function(){return l}),r.d(t,"b",function(){return i}),r.d(t,"d",function(){return a});var c=r(0),s=r(6),p=wp.components,d=p.ButtonGroup,m=p.Button,u=p.BaseControl,g=p.Toolbar,w=p.ToggleControl,h=wp.i18n.__},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(3),r(7),r(10),r(13),r(16),r(19),r(22),r(25),r(28),r(31)},function(e,t,r){"use strict";var n=r(4),o=(r.n(n),r(5)),l=(r.n(o),r(0)),a=r(1),i=wp.i18n,c=i.__,s=i._x,p=wp.blocks.registerBlockType,d=wp.editor.InspectorControls,m=wp.components,u=m.PanelBody,g=(m.PanelRow,m.ToggleControl,m.ButtonGroup,m.Button,m.BaseControl),w=(m.Toolbar,m.ColorPalette,m.ColorIndicator,wp.compose.withState,EcwidGutenbergParams.blockParams["ecwid/store-block"]);p("ecwid/store-block",{title:c("Store Home Page","ecwid-shopping-cart"),icon:l.a.store,category:"ec-store",attributes:w.attributes,description:c("Add storefront (product listing)","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,multiple:!1},edit:function(e){function t(e,t){return wp.element.createElement(g,{label:e},wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))}var r=e.attributes;e.setAttributes({widgets:""});var n=wp.element.createElement(a.d,{icon:l.a.store,title:c("Store Home Page","ecwid-shopping-cart"),showDemoButton:w.isDemoStore},wp.element.createElement("div",{className:"ec-store-products"},wp.element.createElement("div",{className:"ec-store-product1"}),wp.element.createElement("div",{className:"ec-store-product2"}),wp.element.createElement("div",{className:"ec-store-product3"})),wp.element.createElement("div",{className:"ec-store-products"},wp.element.createElement("div",{className:"ec-store-product4"}),wp.element.createElement("div",{className:"ec-store-product5"}),wp.element.createElement("div",{className:"ec-store-product6"}))),o=t("",c('To improve the look and feel of your store and manage your storefront appearance here, please enable the \u201cNext-gen look and feel of the product list on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),i=t(c("Display cart icon","ecwid-shopping-cart"),w.customizeMinicartText),s=(t("",c('To improve the look and feel of your product page and manage your its appearance here, please enable the \u201cNext-gen look and feel of the product page on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),w.isNewProductList),p=w.isNewDetailsPage,m=w.attributes.default_category_id&&w.attributes.default_category_id.values&&w.attributes.default_category_id.values.length>0,h=Object(a.a)(w.attributes,e);return[n,wp.element.createElement(d,null,m&&wp.element.createElement(u,{title:c("Category List Appearance","ecwid-shopping-cart"),initialOpen:!1},s&&[h.select("product_list_category_title_behavior"),"SHOW_TEXT_ONLY"!==r.product_list_category_title_behavior&&[h.buttonGroup("product_list_category_image_size"),h.toolbar("product_list_category_image_aspect_ratio")]],!s&&o),wp.element.createElement(u,{title:c("Product List Appearance","ecwid-shopping-cart"),initialOpen:!1},s&&[h.toggle("product_list_show_product_images"),r.product_list_show_product_images&&[h.buttonGroup("product_list_image_size"),h.toolbar("product_list_image_aspect_ratio")],h.toolbar("product_list_product_info_layout"),h.select("product_list_title_behavior"),h.select("product_list_price_behavior"),h.select("product_list_sku_behavior"),h.select("product_list_buybutton_behavior"),h.toggle("product_list_show_additional_image_on_hover"),h.toggle("product_list_show_frame")],!s&&o),wp.element.createElement(u,{title:c("Product Page Appearance","ecwid-shopping-cart"),initialOpen:!1},p&&[h.select("product_details_layout"),("TWO_COLUMNS_SIDEBAR_ON_THE_RIGHT"===r.product_details_layout||"TWO_COLUMNS_SIDEBAR_ON_THE_LEFT"===r.product_details_layout)&&h.toggle("show_description_under_image"),h.toolbar("product_details_gallery_layout"),Object(a.c)(c("Product sidebar content","ecwid-shopping-cart")),h.toggle("product_details_show_product_name"),h.toggle("product_details_show_breadcrumbs"),h.toggle("product_details_show_product_sku"),h.toggle("product_details_show_product_price"),h.toggle("product_details_show_qty"),h.toggle("product_details_show_number_of_items_in_stock"),h.toggle("product_details_show_in_stock_label"),h.toggle("product_details_show_wholesale_prices"),h.toggle("product_details_show_share_buttons")],!p&&o),m&&wp.element.createElement(u,{title:c("Store Front Page","ecwid-shopping-cart"),initialOpen:!1},h.defaultCategoryId("default_category_id")),wp.element.createElement(u,{title:c("Store Navigation","ecwid-shopping-cart"),initialOpen:!1},h.toggle("show_categories"),h.toggle("show_search"),h.toggle("show_breadcrumbs"),s&&h.toggle("show_footer_menu"),h.toggle("show_signin_link"),h.toggle("product_list_show_sort_viewas_options"),i),wp.element.createElement(u,{title:c("Color settings","ecwid-shopping-cart"),initialOpen:!1},h.color("chameleon_color_button"),h.color("chameleon_color_foreground"),h.color("chameleon_color_price"),h.color("chameleon_color_link"),h.color("chameleon_color_background")))]},save:function(e){var t=["productbrowser"];e.attributes.show_categories&&(t[t.length]="categories"),e.attributes.show_search&&(t[t.length]="search");var r={widgets:t.join(" "),default_category_id:"undefined"!==typeof e.attributes.default_category_id?e.attributes.default_category_id:0};return new wp.shortcode({tag:w.shortcodeName,attrs:r,type:"single"}).string()},deprecated:[{attributes:{widgets:{type:"string"},categories_per_row:{type:"integer"},grid:{type:"string"},list:{type:"integer"},table:{type:"integer"},default_category_id:{type:"integer"},default_product_id:{type:"integer"},category_view:{type:"string"},search_view:{type:"string"},minicart_layout:{type:"string"}},save:function(e){return null}},{attributes:{widgets:{type:"string",default:"productbrowser"},default_category_id:{type:"integer",default:0}},migrate:function(e){return{widgets:e.widgets,default_category_id:e.default_category_id}},save:function(e){for(var t={},r=["widgets","default_category_id"],n=0;n<r.length;n++)t[r[n]]=e.attributes[r[n]];return t.default_product_id=0,new wp.shortcode({tag:w.shortcodeName,attrs:t,type:"single"}).string()}},{save:function(e){return"[ecwid]"}},{save:function(e){return'[ecwid widgets="productbrowser" default_category_id="0" default_product_id="0"]'}},{save:function(e){return'[ecwid widgets="productbrowser" default_category_id="0"]'}}],transforms:{from:[{type:"shortcode",tag:["ecwid","ec_store"],attributes:{default_category_id:{type:"integer",shortcode:function(e){return e.default_category_id}},show_categories:{type:"boolean",shortcode:function(e){return-1!==e.named.widgets.indexOf("categories")}},show_search:{type:"boolean",shortcode:function(e){return-1!==e.named.widgets.indexOf("search")}}},priority:10}]}})},function(e,t){},function(e,t){},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){function t(e){l(function(t){return{manual:"manual",color:e}}),m.setAttributes(n({},s,e))}var r=e.manual,o=e.color,l=e.setState,s=arguments[0].name,m=arguments[0].props,u=arguments[0].title,g=null===r&&null!==m.attributes[s]&&""!==m.attributes[s]||"manual"===r;g?null!==o&&m.setAttributes(n({},s,o)):m.setAttributes(n({},s,null));var w=m.attributes[s],h=wp.element.createElement("span",null,u,null!==w&&wp.element.createElement(c,{colorValue:m.attributes[s]}));return wp.element.createElement(a,{label:h,className:"ec-store-color-picker"},wp.element.createElement("select",{onChange:function(e){return l(function(e){return{manual:event.target.value,color:e.color}})}},wp.element.createElement("option",{value:"auto",selected:!g},p("Detect automatically","ecwid-shopping-cart")),wp.element.createElement("option",{value:"manual",selected:g},p("Set manually","ecwid-shopping-cart"))),g&&wp.element.createElement(i,{value:w,colors:d,onChange:t}))}r.d(t,"a",function(){return m});var l=wp.components,a=l.BaseControl,i=l.ColorPalette,c=l.ColorIndicator,s=wp.compose.withState,p=wp.i18n.__,d=[{name:p("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:p("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:p("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:p("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:p("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:p("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:p("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:p("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:p("Very light gray"),slug:"very-light-gray",color:"#eeeeee"},{name:p("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:p("Very dark gray"),slug:"very-dark-gray",color:"#313131"}],m=s({manual:null,color:null})(o)},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(8),l=(r.n(o),r(9)),a=(r.n(l),r(0));if(!EcwidGutenbergParams.isDemoStore){var i=wp.i18n,c=i.__,s=i._x,p=wp.blocks.registerBlockType,d=wp.editor.InspectorControls,m=wp.components,u=m.PanelBody,g=m.ToggleControl;wp.compose.withState,wp.element.Fragment;p("ecwid/product-block",{title:c("Product card small","ecwid-shopping-cart"),icon:a.a.product,category:"ec-store",attributes:{id:{type:"integer"},show_picture:{type:"boolean",default:!0},show_title:{type:"boolean",default:!0},show_price:{type:"boolean",default:!0},show_options:{type:"boolean",default:!0},show_qty:{type:"boolean",default:!1},show_addtobag:{type:"boolean",default:!0},show_price_on_button:{type:"boolean",default:!0},show_border:{type:"boolean",default:!0},center_align:{type:"boolean",default:!0}},description:c("Display product with a buy button","ecwid-shopping-cart"),alignWide:!1,supports:{customClassName:!1,className:!1,html:!1,align:!0,isPrivate:!EcwidGutenbergParams.isApiAvailable},edit:function(e){function t(e,t,r){return wp.element.createElement(g,{label:r,checked:e.attributes[t],onChange:function(){return e.setAttributes(n({},t,!e.attributes[t]))}})}function r(e){ecwid_open_product_popup({saveCallback:l,props:e})}var o=e.attributes,l=function(e){var t={id:e.newProps.product.id};EcwidGutenbergParams.products[e.newProps.product.id]={name:e.newProps.product.name,imageUrl:e.newProps.product.thumb},e.originalProps.setAttributes(t)};return[wp.element.createElement("div",{className:"ec-store-block ec-store-block-product"},EcwidGutenbergParams.products&&o.id&&EcwidGutenbergParams.products[o.id]&&wp.element.createElement("div",{className:"ec-store-block-image"},wp.element.createElement("img",{src:EcwidGutenbergParams.products[o.id].imageUrl})),EcwidGutenbergParams.products&&o.id&&EcwidGutenbergParams.products[o.id]&&wp.element.createElement("div",{className:"ec-store-product-title"},EcwidGutenbergParams.products[o.id].name),!o.id&&wp.element.createElement("div",{className:"ec-store-block-product-preview"},a.a.productPreview),!o.id&&wp.element.createElement("div",null,wp.element.createElement("button",{className:"button ec-store-block-button",onClick:function(){var t={saveCallback:l,props:e};ecwid_open_product_popup(t)}},EcwidGutenbergParams.chooseProduct))),wp.element.createElement(d,null,o.id&&wp.element.createElement("div",null,wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("label",{className:"ec-store-inspector-subheader"},c("Displayed product","ecwid-shopping-cart"))),wp.element.createElement("div",{className:"ec-store-inspector-row"},EcwidGutenbergParams.products&&EcwidGutenbergParams.products[o.id]&&wp.element.createElement("label",null,EcwidGutenbergParams.products[o.id].name),wp.element.createElement("button",{className:"button",onClick:function(){return r(e)}},c("Change","ecwid-shopping-cart")))),!o.id&&wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("button",{className:"button",onClick:function(){return r(e)}},c("Choose product","ecwid-shopping-cart"))),wp.element.createElement(u,{title:s("Content","gutenberg-product-block","ecwid-shopping-cart"),initialOpen:!1},t(e,"show_picture",c("Picture","ecwid-shopping-cart")),t(e,"show_title",c("Title","ecwid-shopping-cart")),t(e,"show_price",c("Price","ecwid-shopping-cart")),t(e,"show_options",c("Options","ecwid-shopping-cart")),t(e,"show_qty",c("Quantity","ecwid-shopping-cart")),t(e,"show_addtobag",c("\xabBuy now\xbb button","ecwid-shopping-cart"))),wp.element.createElement(u,{title:c("Appearance","ecwid-shopping-cart"),initialOpen:!1},t(e,"show_price_on_button",c("Show price inside the \xabBuy now\xbb button","ecwid-shopping-cart")),t(e,"show_border",c("Add border","ecwid-shopping-cart")),t(e,"center_align",c("Center align on a page","ecwid-shopping-cart"))))]},save:function(e){return!1}})}},function(e,t){},function(e,t){},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(11),l=(r.n(o),r(12)),a=(r.n(l),r(0));if(!EcwidGutenbergParams.isDemoStore){var i=wp.i18n,c=i.__,s=(i._x,wp.blocks),p=(s.BlockControls,s.registerBlockType),d=wp.editor.InspectorControls,m=wp.components,u=m.PanelBody,g=m.ToggleControl;wp.compose.withState,wp.element.Fragment;p("ec-store/buynow",{title:c("Buy Now Button","ecwid-shopping-cart"),icon:a.a.button,category:"ec-store",attributes:{id:{type:"integer"},show_price_on_button:{type:"boolean",default:!0},center_align:{type:"boolean",default:!0}},description:c("Display a buy button","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,align:!0,alignWide:!1,isPrivate:!EcwidGutenbergParams.isApiAvailable},edit:function(e){function t(e,t,r){return wp.element.createElement(g,{label:r,checked:e.attributes[t],onChange:function(){return e.setAttributes(n({},t,!e.attributes[t]))}})}function r(e){ecwid_open_product_popup({saveCallback:l,props:e})}var o=e.attributes,l=function(e){var t={id:e.newProps.id};EcwidGutenbergParams.products[e.newProps.id]={name:e.newProps.product.name,imageUrl:e.newProps.product.thumb},e.originalProps.setAttributes(t)};return[wp.element.createElement("div",{className:"ec-store-block ec-store-block-buynow"},!o.id&&wp.element.createElement("div",null,wp.element.createElement("div",{className:"image"}),wp.element.createElement("div",{className:"button-container"},wp.element.createElement("button",{className:"button ec-store-block-button",onClick:function(){var t={saveCallback:l,props:e};ecwid_open_product_popup(t)}},EcwidGutenbergParams.chooseProduct))),o.id&&wp.element.createElement("div",{className:"image"})),wp.element.createElement(d,null,o.id&&wp.element.createElement("div",null,wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("label",{className:"ec-store-inspector-subheader"},c("Linked product","ecwid-shopping-cart"))),wp.element.createElement("div",{className:"ec-store-inspector-row"},EcwidGutenbergParams.products&&EcwidGutenbergParams.products[o.id]&&wp.element.createElement("label",null,EcwidGutenbergParams.products[o.id].name),wp.element.createElement("button",{className:"button",onClick:function(){return r(e)}},c("Change","ecwid-shopping-cart")))),!o.id&&wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("button",{className:"button",onClick:function(){return r(e)}},c("Choose product","ecwid-shopping-cart"))),wp.element.createElement("br",null),wp.element.createElement(u,{title:c("Appearance","ecwid-shopping-cart"),initialOpen:!1},t(e,"show_price_on_button",c("Show price inside the \xabBuy now\xbb button","ecwid-shopping-cart")),t(e,"center_align",c("Center align on a page","ecwid-shopping-cart"))))]},save:function(e){return!1}})}},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(14),o=(r.n(n),r(15)),l=(r.n(o),r(0));if(!EcwidGutenbergParams.isDemoStore){var a=wp.i18n,i=a.__;a._x;(0,wp.blocks.registerBlockType)("ec-store/search",{title:i("Product Search Box","ecwid-shopping-cart"),icon:l.a.search,category:"ec-store",description:i("Display search box","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,isPrivate:!EcwidGutenbergParams.isApiAvailable},edit:function(e){e.attributes;return[wp.element.createElement("div",{className:"ec-store-block ec-store-block-search"},wp.element.createElement("div",{class:"image"}))]},save:function(e){return!1}})}},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(17),o=(r.n(n),r(18)),l=(r.n(o),r(0));if(!EcwidGutenbergParams.isDemoStore){var a=wp.editor.InspectorControls,i=wp.i18n,c=i.__,s=(i._x,wp.blocks.registerBlockType),p=EcwidGutenbergParams.blockParams["ec-store/categories"];s("ec-store/categories",{title:c("Store Categories Menu","ecwid-shopping-cart"),icon:l.a.categories,category:"ec-store",description:c("Display categories menu","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,isPrivate:!EcwidGutenbergParams.isApiAvailable},edit:function(e){var t=(e.attributes,wp.element.createElement("div",{className:"ec-store-block ec-store-block-categories"},wp.element.createElement("div",{className:"ec-store-block-header"},l.a.categories,c("Categories","ecwid-shopping-cart")))),r=c('The block is hidden because you don\'t have categories in your store. <a target="_blank" href="admin.php?page=ec-store-admin-category-id-0-mode-edit">Add categories.</a>',"ecwid-shopping-cart");return[t,wp.element.createElement(a,null,wp.element.createElement("div",{style:{height:"10px"}}),!p.has_categories&&wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:r}}))]},save:function(e){return!1}})}},function(e,t){},function(e,t){},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(20),l=(r.n(o),r(21)),a=(r.n(l),r(0));if(!EcwidGutenbergParams.isDemoStore){var i=wp.i18n,c=i.__,s=(i._x,wp.editor.InspectorControls),p=wp.components,d=p.PanelBody,m=p.BaseControl;(0,wp.blocks.registerBlockType)("ec-store/minicart",{title:c("Shopping Cart Icon","ecwid-shopping-cart"),icon:a.a.cart,category:"ec-store",description:c("Display shopping bag link and summary","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,isPrivate:!EcwidGutenbergParams.isApiAvailable,align:!0,alignWide:!1},attributes:EcwidGutenbergParams.minicartAttributes,edit:function(e){function t(e,t,r,o){return wp.element.createElement(m,{label:r},wp.element.createElement("select",{className:"ec-store-inspector-select",onChange:function(r){e.setAttributes(n({},t,r.target.value))}},o.map(function(r){return wp.element.createElement("option",{value:r.value,selected:e.attributes[t]==r.value},r.title)})))}function r(e,r,n){var o=EcwidGutenbergParams.minicartAttributes[r];return"undefined"===typeof n&&(n=o.type),t(e,o.name,o.title,o.values)}e.attributes;return[wp.element.createElement("div",{className:"ec-store-block ec-store-block-minicart"},wp.element.createElement("div",{className:"image"})),wp.element.createElement(s,null,wp.element.createElement(d,{title:c("Appearance","ecwid-shopping-cart"),initialOpen:!0},r(e,"layout","select"),r(e,"icon","select"),r(e,"fixed_shape","select")))]},save:function(e){return!1}})}},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(23),o=(r.n(n),r(24)),l=(r.n(o),r(0)),a=r(1),i=wp.i18n,c=i.__,s=(i._x,l.a,wp.blocks.registerBlockType),p=wp.editor.InspectorControls,d=wp.components,m=d.PanelBody,u=d.BaseControl,g=EcwidGutenbergParams.blockParams["ec-store/category-page"];s("ec-store/category-page",{title:c("Store Category Page","ecwid-shopping-cart"),icon:l.a.category,category:"ec-store",attributes:EcwidGutenbergStoreBlockParams.attributes,description:c("Display category page","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,multiple:!1},edit:function(e){function t(e,t){return wp.element.createElement(u,{label:e},wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))}var r=e.attributes;e.setAttributes({widgets:""});var n=wp.element.createElement(a.d,{icon:l.a.category,title:c("Store Category Page","ecwid-shopping-cart"),showDemoButton:g.isDemoStore},wp.element.createElement("div",{className:"ec-store-category-products"},wp.element.createElement("div",{className:"ec-store-category-product1"}),wp.element.createElement("div",{className:"ec-store-category-product2"}),wp.element.createElement("div",{className:"ec-store-category-product3"})),wp.element.createElement("div",{className:"ec-store-category-products"},wp.element.createElement("div",{className:"ec-store-category-product4"}),wp.element.createElement("div",{className:"ec-store-category-product5"}),wp.element.createElement("div",{className:"ec-store-category-product6"}))),o=t("",c('To improve the look and feel of your store and manage your storefront appearance here, please enable the \u201cNext-gen look and feel of the product list on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),i=t(c("Display cart icon","ecwid-shopping-cart"),g.customizeMinicartText),s=g.isNewProductList,d=g.isNewDetailsPage,w=Object(a.a)(g.attributes,e);return[n,wp.element.createElement(p,null,wp.element.createElement("div",{style:{height:"10px"}}),!EcwidGutenbergParams.hasCategories&&wp.element.createElement("div",{style:{margin:"10px"}},wp.element.createElement("a",{href:"admin.php?page=ec-store-admin-category-id-0-mode-edit",target:"_blank",class:"button button-primary"},c("Add categories","ecwid-shopping-cart"))),EcwidGutenbergParams.hasCategories&&[!e.attributes.default_category_id&&w.select("default_category_id",c("Select category","ecwid-shopping-cart")),e.attributes.default_category_id&&w.select("default_category_id",c("Selected category","ecwid-shopping-cart"))],wp.element.createElement(m,{title:c("Category List Appearance","ecwid-shopping-cart"),initialOpen:!1},s&&[w.select("product_list_category_title_behavior"),"SHOW_TEXT_ONLY"!==r.product_list_category_title_behavior&&[w.buttonGroup("product_list_category_image_size"),w.toolbar("product_list_category_image_aspect_ratio")]],!s&&o),wp.element.createElement(m,{title:c("Product List Appearance","ecwid-shopping-cart"),initialOpen:!1},s&&[w.toggle("product_list_show_product_images"),r.product_list_show_product_images&&[w.buttonGroup("product_list_image_size"),w.toolbar("product_list_image_aspect_ratio")],w.toolbar("product_list_product_info_layout"),w.select("product_list_title_behavior"),w.select("product_list_price_behavior"),w.select("product_list_sku_behavior"),w.select("product_list_buybutton_behavior"),w.toggle("product_list_show_additional_image_on_hover"),w.toggle("product_list_show_frame")],!s&&o),wp.element.createElement(m,{title:c("Product Page Appearance","ecwid-shopping-cart"),initialOpen:!1},d&&[w.select("product_details_layout"),("TWO_COLUMNS_SIDEBAR_ON_THE_RIGHT"===r.product_details_layout||"TWO_COLUMNS_SIDEBAR_ON_THE_LEFT"===r.product_details_layout)&&w.toggle("show_description_under_image"),w.toolbar("product_details_gallery_layout"),Object(a.c)(c("Product sidebar content","ecwid-shopping-cart")),w.toggle("product_details_show_product_name"),w.toggle("product_details_show_breadcrumbs"),w.toggle("product_details_show_product_sku"),w.toggle("product_details_show_product_price"),w.toggle("product_details_show_qty"),w.toggle("product_details_show_number_of_items_in_stock"),w.toggle("product_details_show_in_stock_label"),w.toggle("product_details_show_wholesale_prices"),w.toggle("product_details_show_share_buttons")],!d&&productDetailsMigrationWarning),wp.element.createElement(m,{title:c("Store Navigation","ecwid-shopping-cart"),initialOpen:!1},w.toggle("show_categories"),w.toggle("show_search"),w.toggle("show_breadcrumbs"),s&&w.toggle("show_footer_menu"),w.toggle("show_signin_link"),w.toggle("product_list_show_sort_viewas_options"),i),wp.element.createElement(m,{title:c("Color settings","ecwid-shopping-cart"),initialOpen:!1},w.color("chameleon_color_button"),w.color("chameleon_color_foreground"),w.color("chameleon_color_price"),w.color("chameleon_color_link"),w.color("chameleon_color_background")))]},save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(26),o=(r.n(n),r(27)),l=(r.n(o),r(0)),a=r(1),i=wp.i18n,c=i.__,s=(i._x,wp.blocks.registerBlockType),p=wp.editor.InspectorControls,d=wp.components,m=d.PanelBody,u=d.BaseControl,g=(wp.compose.withState,EcwidGutenbergParams.blockParams["ec-store/product-page"]);s("ec-store/product-page",{title:c("Product Card Large","ecwid-shopping-cart"),icon:l.a.product,category:"ec-store",attributes:g.attributes,description:c("Display product page with description and a buy button","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,multiple:!1},edit:function(e){function t(e){ecwid_open_product_popup({saveCallback:o,props:e})}function r(e,t){return wp.element.createElement(u,{label:e},wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))}var n=e.attributes,o=function(e){var t={default_product_id:e.newProps.product.id};EcwidGutenbergParams.products[e.newProps.product.id]={name:e.newProps.product.name,imageUrl:e.newProps.product.thumb},e.originalProps.setAttributes(t)},i=wp.element.createElement(a.d,{icon:l.a.product,title:c("Product Card Large","ecwid-shopping-cart")},wp.element.createElement(a.b,{src:"product-page-preview.png"}),!n.default_product_id&&wp.element.createElement("div",{className:"button-container"},wp.element.createElement("button",{className:"button ec-store-block-button",onClick:function(){var t={saveCallback:o,props:e};ecwid_open_product_popup(t)}},EcwidGutenbergParams.chooseProduct))),s=r("",c('To improve the look and feel of your store and manage your storefront appearance here, please enable the \u201cNext-gen look and feel of the product list on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),d=(r("",c('To improve the look and feel of your product page and manage your its appearance here, please enable the \u201cNext-gen look and feel of the product page on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),g.isNewDetailsPage),w=Object(a.a)(g.attributes,e);return[i,wp.element.createElement(p,null,n.default_product_id>0&&wp.element.createElement("div",null,wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("label",{className:"ec-store-inspector-subheader"},c("Linked product","ecwid-shopping-cart"))),wp.element.createElement("div",{className:"ec-store-inspector-row"},EcwidGutenbergParams.products&&EcwidGutenbergParams.products[n.default_product_id]&&wp.element.createElement("label",null,EcwidGutenbergParams.products[n.default_product_id].name),wp.element.createElement("button",{className:"button",onClick:function(){return t(e)}},c("Change","ecwid-shopping-cart")))),!n.default_product_id&&wp.element.createElement("div",{className:"ec-store-inspector-row"},wp.element.createElement("button",{className:"button",onClick:function(){return t(e)}},c("Choose product","ecwid-shopping-cart"))),wp.element.createElement(m,{title:c("Appearance","ecwid-shopping-cart"),initialOpen:!1},d&&[w.select("product_details_layout"),("TWO_COLUMNS_SIDEBAR_ON_THE_RIGHT"===n.product_details_layout||"TWO_COLUMNS_SIDEBAR_ON_THE_LEFT"===n.product_details_layout)&&w.toggle("show_description_under_image"),w.toolbar("product_details_gallery_layout"),Object(a.c)(c("Product sidebar content","ecwid-shopping-cart")),w.toggle("product_details_show_product_name"),w.toggle("product_details_show_breadcrumbs"),w.toggle("product_details_show_product_sku"),w.toggle("product_details_show_product_price"),w.toggle("product_details_show_qty"),w.toggle("product_details_show_number_of_items_in_stock"),w.toggle("product_details_show_in_stock_label"),w.toggle("product_details_show_wholesale_prices"),w.toggle("product_details_show_share_buttons")],!d&&s),wp.element.createElement(m,{title:c("Color settings","ecwid-shopping-cart"),initialOpen:!1},w.color("chameleon_color_button"),w.color("chameleon_color_foreground"),w.color("chameleon_color_price"),w.color("chameleon_color_link"),w.color("chameleon_color_background")))]},save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(29),o=(r.n(n),r(30)),l=(r.n(o),r(0)),a=r(1),i=wp.i18n,c=i.__,s=(i._x,wp.blocks.registerBlockType),p=wp.editor.InspectorControls,d=wp.components,m=d.PanelBody,u=(d.PanelRow,d.ToggleControl,d.ButtonGroup,d.Button,d.BaseControl),g=(d.Toolbar,d.ColorPalette,d.ColorIndicator,wp.compose.withState,EcwidGutenbergParams.blockParams["ec-store/filters-page"]);s("ec-store/filters-page",{title:c("Product Search and filters","ecwid-shopping-cart"),icon:l.a.filters,category:"ec-store",attributes:g.attributes,description:c("Display search page with filters on a side","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,multiple:!1},edit:function(e){function t(e,t){return wp.element.createElement(u,{label:e},wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))}var r=e.attributes,n=wp.element.createElement(a.d,{icon:l.a.filters,title:c("Search and Filters","ecwid-shopping-cart")},wp.element.createElement(a.b,{src:"filter-preview.png"})),o=t("",c('You can enable filters in the store settings: (\u201c<a target="_blank" href="admin.php?page=ec-store-admin-product-filters-mode-main">Settings \u2192 Product Filters</a>\u201d).',"ecwid-shopping-cart")),i=t("",c('To improve the look and feel of your store and manage your storefront appearance here, please enable the \u201cNext-gen look and feel of the product list on the storefront\u201d option in your store dashboard (\u201c<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings \u2192 What\u2019s New</a>\u201d).',"ecwid-shopping-cart")),s=g.isNewProductList,d=Object(a.a)(g.attributes,e);return[n,wp.element.createElement(p,null,wp.element.createElement(m,{title:c("Filters","ecwid-shopping-cart"),initialOpen:!1},!g.filtersEnabled&&o,g.filtersEnabled&&[d.select("product_filters_position_search_page")]),wp.element.createElement(m,{title:c("Product List Appearance","ecwid-shopping-cart"),initialOpen:!1},s&&[d.toggle("product_list_show_product_images"),r.product_list_show_product_images&&[d.buttonGroup("product_list_image_size"),d.toolbar("product_list_image_aspect_ratio")],d.toolbar("product_list_product_info_layout"),d.select("product_list_title_behavior"),d.select("product_list_price_behavior"),d.select("product_list_sku_behavior"),d.select("product_list_buybutton_behavior"),d.toggle("product_list_show_additional_image_on_hover"),d.toggle("product_list_show_frame")],!s&&i),wp.element.createElement(m,{title:c("Store Navigation","ecwid-shopping-cart"),initialOpen:!1},d.toggle("show_categories"),d.toggle("show_breadcrumbs"),s&&d.toggle("show_footer_menu"),d.toggle("show_signin_link"),d.toggle("product_list_show_sort_viewas_options")),wp.element.createElement(m,{title:c("Color settings","ecwid-shopping-cart"),initialOpen:!1},d.color("chameleon_color_button"),d.color("chameleon_color_foreground"),d.color("chameleon_color_price"),d.color("chameleon_color_link"),d.color("chameleon_color_background")))]},save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(32),o=(r.n(n),r(33)),l=(r.n(o),r(0)),a=r(1),i=wp.i18n,c=i.__,s=(i._x,wp.blocks.registerBlockType),p=(wp.editor.InspectorControls,wp.components),d=(p.PanelBody,p.PanelRow,p.ToggleControl,p.ButtonGroup,p.Button,p.BaseControl,p.Toolbar,p.ColorPalette,p.ColorIndicator,wp.compose.withState,EcwidGutenbergParams.blockParams["ec-store/cart-page"]);s("ec-store/cart-page",{title:c("Cart and Checkout","ecwid-shopping-cart"),icon:l.a.cartPage,category:"ec-store",attributes:d.attributes,description:c("Display shopping cart and checkout page","ecwid-shopping-cart"),supports:{customClassName:!1,className:!1,html:!1,multiple:!1},edit:function(e){e.attributes;return[wp.element.createElement(a.d,{icon:l.a.cartPage,title:c("Cart and Checkout")},wp.element.createElement(a.b,{src:"cart-page-preview.png"}))]},save:function(e){return null}})},function(e,t){},function(e,t){}]);
js/gutenberg/cart-page.jsx CHANGED
@@ -78,7 +78,7 @@ registerBlockType( 'ec-store/cart-page', {
78
 
79
 
80
  const editor =
81
- <EcwidProductBrowserBlock icon={ EcwidIcons.cartPage } title={ __( 'Cart and Checkout') }>
82
  <EcwidImage src="cart-page-preview.png" />
83
  </EcwidProductBrowserBlock>;
84
 
78
 
79
 
80
  const editor =
81
+ <EcwidProductBrowserBlock icon={ EcwidIcons.cartPage } title={ __( 'Cart and Checkout', 'ecwid-shopping-cart' ) }>
82
  <EcwidImage src="cart-page-preview.png" />
83
  </EcwidProductBrowserBlock>;
84
 
js/gutenberg/categories.jsx CHANGED
@@ -36,7 +36,7 @@ registerBlockType( 'ec-store/categories', {
36
  title: __( 'Store Categories Menu', 'ecwid-shopping-cart' ),
37
  icon: EcwidIcons.categories,
38
  category: 'ec-store', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
39
- description: __( 'Display categories menu', 'ecwid-shopping-cart' ),
40
  supports: {
41
  customClassName: false,
42
  className: false,
36
  title: __( 'Store Categories Menu', 'ecwid-shopping-cart' ),
37
  icon: EcwidIcons.categories,
38
  category: 'ec-store', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
39
+ description: __( 'Display categories navigation bar', 'ecwid-shopping-cart' ),
40
  supports: {
41
  customClassName: false,
42
  className: false,
js/gutenberg/filters-page.jsx CHANGED
@@ -77,7 +77,7 @@ registerBlockType( 'ec-store/filters-page', {
77
  const { attributes } = props;
78
 
79
  const editor =
80
- <EcwidProductBrowserBlock icon={ EcwidIcons.filters } title={ __( 'Search and Filters') }>
81
  <EcwidImage src="filter-preview.png" />
82
  </EcwidProductBrowserBlock>;
83
  /* const editor =
77
  const { attributes } = props;
78
 
79
  const editor =
80
+ <EcwidProductBrowserBlock icon={ EcwidIcons.filters } title={ __( 'Search and Filters', 'ecwid-shopping-cart' ) }>
81
  <EcwidImage src="filter-preview.png" />
82
  </EcwidProductBrowserBlock>;
83
  /* const editor =
js/gutenberg/product-page.jsx CHANGED
@@ -88,7 +88,7 @@ registerBlockType( 'ec-store/product-page', {
88
  }
89
 
90
  const editor =
91
- <EcwidProductBrowserBlock icon={ EcwidIcons.product } title={ __( 'Product Card Large') }>
92
  <EcwidImage src="product-page-preview.png" />
93
  { !attributes.default_product_id &&
94
 
88
  }
89
 
90
  const editor =
91
+ <EcwidProductBrowserBlock icon={ EcwidIcons.product } title={ __( 'Product Card Large', 'ecwid-shopping-cart' ) }>
92
  <EcwidImage src="product-page-preview.png" />
93
  { !attributes.default_product_id &&
94
 
js/gutenberg/store.jsx CHANGED
@@ -52,7 +52,7 @@ const blockParams = EcwidGutenbergParams.blockParams[blockName];
52
  * registered; otherwise `undefined`.
53
  */
54
  registerBlockType( 'ecwid/store-block', {
55
- title: _x( 'Store Home Page', 'ecwid-shopping-cart' ), // Block title.
56
  icon: EcwidIcons.store,
57
  category: 'ec-store', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
58
  attributes: blockParams.attributes,
@@ -80,7 +80,7 @@ registerBlockType( 'ecwid/store-block', {
80
  props.setAttributes({widgets:''});
81
 
82
  const editor =
83
- <EcwidProductBrowserBlock icon={ EcwidIcons.store } title={ __( 'Store Home Page') } showDemoButton={ blockParams.isDemoStore }>
84
  <div className="ec-store-products">
85
  <div className="ec-store-product1"></div>
86
  <div className="ec-store-product2"></div>
@@ -109,7 +109,7 @@ registerBlockType( 'ecwid/store-block', {
109
 
110
  const productDetailsMigrationWarning = buildDangerousHTMLMessageWithTitle(
111
  '',
112
- __( 'To improve the look and feel of your product page and manage your its appearance here, please enable the “Next-gen look and feel of the product page on the storefront” option in your store dashboard (“<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings → What’s New</a>”).', 'ecwid-shopping-cart' )
113
  );
114
 
115
  const isNewProductList = blockParams.isNewProductList;
52
  * registered; otherwise `undefined`.
53
  */
54
  registerBlockType( 'ecwid/store-block', {
55
+ title: __( 'Store Home Page', 'ecwid-shopping-cart' ), // Block title.
56
  icon: EcwidIcons.store,
57
  category: 'ec-store', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
58
  attributes: blockParams.attributes,
80
  props.setAttributes({widgets:''});
81
 
82
  const editor =
83
+ <EcwidProductBrowserBlock icon={ EcwidIcons.store } title={ __( 'Store Home Page', 'ecwid-shopping-cart') } showDemoButton={ blockParams.isDemoStore }>
84
  <div className="ec-store-products">
85
  <div className="ec-store-product1"></div>
86
  <div className="ec-store-product2"></div>
109
 
110
  const productDetailsMigrationWarning = buildDangerousHTMLMessageWithTitle(
111
  '',
112
+ __( 'To improve the look and feel of your product page and manage its appearance here, please enable the “Next-gen look and feel of the product page on the storefront” option in your store dashboard (“<a href="admin.php?page=ec-store&ec-store-page=whatsnew">Settings → What’s New</a>”).', 'ecwid-shopping-cart' )
113
  );
114
 
115
  const isNewProductList = blockParams.isNewProductList;
js/product-popup.js CHANGED
@@ -443,6 +443,11 @@ jQuery(document).ready(function() {
443
 
444
  if (!getInitialSearchData()) {
445
  setInitialSearchData(data);
 
 
 
 
 
446
  }
447
  }
448
 
443
 
444
  if (!getInitialSearchData()) {
445
  setInitialSearchData(data);
446
+ } else {
447
+ popup().find('img[data-src]').each(function( index ){
448
+ var src = jQuery(this).data('src');
449
+ popup().find('img[data-src]').eq(index).attr('src', src);
450
+ });
451
  }
452
  }
453
 
languages/ecwid-shopping-cart-ru_RU-ecwid-gutenberg-store.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {locale_data:{messages:{
2
+ "": {},
3
+ "Add storefront (product listing)": ["Витрина магазина"],
4
+ "Store Home Page": ["Домашняя страница магазина"],
5
+ "To improve the look and feel of your store and manage your storefront appearance here, please enable the “Next-gen look and feel of the product list on the storefront” option in your store dashboard (“<a href=\"admin.php?page=ec-store&ec-store-page=whatsnew\">Settings → What’s New</a>”).": ["Чтобы обновить дизайн своего магазина и управлять настройками вида в редакторе, включите опцию “Обновленный внешний вид каталога товаров на витрине” в панели управления магазина (“<a href=\"admin.php?page=ec-store&ec-store-page=whatsnew\">Настройки → Обновления</a>)"],
6
+ "To improve the look and feel of your product page and manage your its appearance here, please enable the “Next-gen look and feel of the product page on the storefront” option in your store dashboard (“<a href=\"admin.php?page=ec-store&ec-store-page=whatsnew\">Settings → What’s New</a>”).": ["Чтобы обновить дизайн страницы товара и управлять настройками вида в редакторе, включите опцию “Обновленный внешний вид страницы товара” в панели управления магазина (<a href=\"admin.php?page=ec-store&ec-store-page=whatsnew\">Настройки → Обновления</a>)"],
7
+ "Category List Appearance": ["Дизайн списка категорий"],
8
+ "Product List Appearance": ["Дизайн списка товаров"],
9
+ "Product Page Appearance": ["Дизайн страницы товара"],
10
+ "Product sidebar content": ["Информация на странице"],
11
+ "Store Front Page": ["Главная страница магазина"],
12
+ "Store Navigation": ["Навигация магазина"],
13
+ "Color settings": ["Настройки цвета"],
14
+ "Buy Now Button": ["Кнопка «Купить»"],
15
+ "Display a buy button": ["Кнопка \"Купить\""],
16
+ "Linked product": ["Товар"],
17
+ "Change": ["Изменить"],
18
+ "Choose product": ["Выбрать товар"],
19
+ "Appearance": ["Внешний вид"],
20
+ "Show price inside the «Buy now» button": ["Показывать цену в кнопке «Купить»"],
21
+ "Center align on a page": ["Выровнять карточку по центру страницы"],
22
+ "Cart and Checkout": ["Страница корзины"],
23
+ "Display shopping cart and checkout page": ["Страница корзины и оформления заказа"],
24
+ "Store Categories Menu": ["Меню категорий"],
25
+ "Display categories navigation bar": ["Строка меню категорий магазина"],
26
+ "Categories": ["Категории"],
27
+ "The block is hidden because you don\"t have categories in your store. <a target=\"_blank\" href=\"admin.php?page=ec-store-admin-category-id-0-mode-edit\">Add categories.</a>": ["Блок скрыт, потому что в магазине нет категорий. <a target=\"_blank\" href=\"admin.php?page=ec-store-admin-category-id-0-mode-edit\">Добавить категории.</a>"],
28
+ "Store Category Page": ["Категория магазина"],
29
+ "Display category page": ["Страница категории с листингом товаров"],
30
+ "Display cart icon": ["Показывать иконку корзины"],
31
+ "Add categories": ["Добавить категории"],
32
+ "Select category": ["Выбрать категорию"],
33
+ "Selected category": ["Выбранная категория"],
34
+ "Search and Filters": ["Поиск и фильтры"],
35
+ "Product Search and filters": ["Страница поиска и фильтров"],
36
+ "Display search page with filters on a side": ["Страница поиска с листингом товаров и полоской фильтров"],
37
+ "Set up your store": ["Настроить магазин"],
38
+ "You can enable filters in the store settings: (“<a target=\"_blank\" href=\"admin.php?page=ec-store-admin-product-filters-mode-main\">Settings → Product Filters</a>”).": ["Включить фильтры можно в настройках магазина: <a target=\"_blank\" href=\"admin.php?page=ec-store-admin-product-filters-mode-main\">Настройки -> Товарные фильтры</a>"],
39
+ "Filters": ["Фильтры"],
40
+ "Detect automatically": ["Определять автоматически"],
41
+ "Set manually": ["Выставить вручную"],
42
+ "Shopping Cart Icon": ["Иконка корзины"],
43
+ "Display shopping bag link and summary": ["Ссылка на корзину и количество товаров в корзине"],
44
+ "Product card small": ["Карточка товара"],
45
+ "Display product with a buy button": ["Товар с кнопкой \"Купить\""],
46
+ "Displayed product": ["Выбранный товар"],
47
+ "gutenberg-product-block\u0004Content": ["Элементы виджета"],
48
+ "Picture": ["Изображение"],
49
+ "Title": ["Название"],
50
+ "Price": ["Цена"],
51
+ "Options": ["Параметры"],
52
+ "Quantity": ["Количество"],
53
+ "«Buy now» button": ["Кнопка «Купить»"],
54
+ "Add border": ["Показывать рамку"],
55
+ "Product Card Large": ["Страница товара"],
56
+ "Display product page with description and a buy button": ["Страница товара с описанием и кнопкой \"Купить\""],
57
+ "Product Search Box": ["Поле поиска товаров"],
58
+ "Display search box": [""]
59
+ }}}
languages/ecwid-shopping-cart-ru_RU.mo CHANGED
Binary file
languages/ecwid-shopping-cart-ru_RU.po CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: Ecwid Shopping Cart 4.9.4\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ecwid-shopping-cart\n"
7
  "POT-Creation-Date: 2017-05-30 19:04:12+00:00\n"
8
- "PO-Revision-Date: 2019-03-19 16:04+0400\n"
9
  "Language: ru_RU\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -1531,6 +1531,12 @@ msgstr "Горизонтальные 3:2"
1531
  msgid "Online Store Apps"
1532
  msgstr "Приложения для магазина"
1533
 
 
 
 
 
 
 
1534
  msgid "Migration warning"
1535
  msgstr ""
1536
 
@@ -1570,6 +1576,15 @@ msgstr "3 колонки, изображение справа"
1570
  msgid "3 columns, image on the left"
1571
  msgstr "3 колонки, изображение слева"
1572
 
 
 
 
 
 
 
 
 
 
1573
  msgid "Show description under the image"
1574
  msgstr "Показывать описание под изображением"
1575
 
@@ -1651,6 +1666,12 @@ msgstr "Редактировать товар"
1651
  msgid "Edit Category"
1652
  msgstr "Редактировать категорию"
1653
 
 
 
 
 
 
 
1654
  msgid "To improve the look and feel of your product page and manage your its appearance here, please enable the “Next-gen look and feel of the product page on the storefront” option in your store dashboard (<a href=\"admin.php?page=ec-store-admin-whatsnew\">Settings → What’s New</a>)."
1655
  msgstr "Чтобы обновить дизайн страницы товара и управлять настройками вида в редакторе, включите опцию “Обновленный внешний вид страницы товара” в панели управления магазина (<a href=\"admin.php?page=ec-store-admin-whatsnew\">Настройки → Обновления</a>)"
1656
 
5
  "Project-Id-Version: Ecwid Shopping Cart 4.9.4\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ecwid-shopping-cart\n"
7
  "POT-Creation-Date: 2017-05-30 19:04:12+00:00\n"
8
+ "PO-Revision-Date: 2019-04-25 17:52+0400\n"
9
  "Language: ru_RU\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
1531
  msgid "Online Store Apps"
1532
  msgstr "Приложения для магазина"
1533
 
1534
+ msgid "Plugins for Ecwid"
1535
+ msgstr "Приложения для Эквида"
1536
+
1537
+ msgid "Themes for Ecwid"
1538
+ msgstr "Темы для Эквида"
1539
+
1540
  msgid "Migration warning"
1541
  msgstr ""
1542
 
1576
  msgid "3 columns, image on the left"
1577
  msgstr "3 колонки, изображение слева"
1578
 
1579
+ msgid "Filters panel position"
1580
+ msgstr "Положение панели фильтров"
1581
+
1582
+ msgid "On the left"
1583
+ msgstr "Слева"
1584
+
1585
+ msgid "On the right"
1586
+ msgstr "Справа"
1587
+
1588
  msgid "Show description under the image"
1589
  msgstr "Показывать описание под изображением"
1590
 
1666
  msgid "Edit Category"
1667
  msgstr "Редактировать категорию"
1668
 
1669
+ msgid "I couldn’t find a WordPress theme that goes well with %s"
1670
+ msgstr "Я не смог подобрать тему, которая хорошо работает с %s"
1671
+
1672
+ msgid "I use this WordPress theme: %s"
1673
+ msgstr "Тема моего сайта: %s"
1674
+
1675
  msgid "To improve the look and feel of your product page and manage your its appearance here, please enable the “Next-gen look and feel of the product page on the storefront” option in your store dashboard (<a href=\"admin.php?page=ec-store-admin-whatsnew\">Settings → What’s New</a>)."
1676
  msgstr "Чтобы обновить дизайн страницы товара и управлять настройками вида в редакторе, включите опцию “Обновленный внешний вид страницы товара” в панели управления магазина (<a href=\"admin.php?page=ec-store-admin-whatsnew\">Настройки → Обновления</a>)"
1677
 
lib/ecwid_api_v3.php CHANGED
@@ -48,6 +48,7 @@ class Ecwid_Api_V3
48
 
49
  $this->_categories_api_url = $this->_api_url . $this->store_id . '/categories';
50
  $this->_products_api_url = $this->_api_url . $this->store_id . '/products';
 
51
 
52
  add_option( self::OPTION_API_STATUS, self::API_STATUS_UNDEFINED );
53
  }
@@ -200,6 +201,9 @@ class Ecwid_Api_V3
200
  {
201
  $cats = $this->get_categories( array( 'limit' => 1 ) );
202
 
 
 
 
203
  return $cats->total > 0;
204
  }
205
 
@@ -498,7 +502,7 @@ class Ecwid_Api_V3
498
  }
499
 
500
  $stats = json_decode($result['data']);
501
-
502
  return $stats;
503
  }
504
 
@@ -509,14 +513,12 @@ class Ecwid_Api_V3
509
  if ( $profile ) {
510
  return $profile;
511
  }
512
-
513
- $url = $this->_api_url . $this->store_id . '/profile';
514
 
515
  $params = array(
516
  'token' => self::get_token()
517
  );
518
 
519
- $url = $this->build_request_url($url, $params);
520
  $result = EcwidPlatform::fetch_url($url);
521
 
522
  if ( @$result['code'] == '403' ) {
@@ -539,9 +541,28 @@ class Ecwid_Api_V3
539
  EcwidPlatform::set('hide_out_of_stock', $profile->settings->hideOutOfStockProductsInStorefront);
540
  }
541
 
 
 
542
  return $profile;
543
  }
544
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545
  public function is_store_feature_enabled( $feature_name ) {
546
 
547
  static $features = array();
48
 
49
  $this->_categories_api_url = $this->_api_url . $this->store_id . '/categories';
50
  $this->_products_api_url = $this->_api_url . $this->store_id . '/products';
51
+ $this->_profile_api_url = $this->_api_url . $this->store_id . '/profile';
52
 
53
  add_option( self::OPTION_API_STATUS, self::API_STATUS_UNDEFINED );
54
  }
201
  {
202
  $cats = $this->get_categories( array( 'limit' => 1 ) );
203
 
204
+ if( !isset($cats->total) )
205
+ return false;
206
+
207
  return $cats->total > 0;
208
  }
209
 
502
  }
503
 
504
  $stats = json_decode($result['data']);
505
+
506
  return $stats;
507
  }
508
 
513
  if ( $profile ) {
514
  return $profile;
515
  }
 
 
516
 
517
  $params = array(
518
  'token' => self::get_token()
519
  );
520
 
521
+ $url = $this->build_request_url($this->_profile_api_url, $params);
522
  $result = EcwidPlatform::fetch_url($url);
523
 
524
  if ( @$result['code'] == '403' ) {
541
  EcwidPlatform::set('hide_out_of_stock', $profile->settings->hideOutOfStockProductsInStorefront);
542
  }
543
 
544
+ add_action( 'wp' , array( 'Ecwid_Store_Page', 'set_store_url' ) );
545
+
546
  return $profile;
547
  }
548
 
549
+
550
+ public function update_store_profile( $params ) {
551
+ $request_params = array(
552
+ 'token'
553
+ );
554
+
555
+ $url = $this->build_request_url( $this->_profile_api_url, $request_params );
556
+
557
+ $result = $this->_do_put( $url, $params );
558
+
559
+ if ( @$result['response']['code'] == '200' ) {
560
+ return $result;
561
+ }
562
+
563
+ return false;
564
+ }
565
+
566
  public function is_store_feature_enabled( $feature_name ) {
567
 
568
  static $features = array();
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Ecwid
3
  Tags: ecommerce, e-commerce, storefront, online store, sell
4
  Requires at least: 3.7
5
  Tested up to: 5.1
6
- Stable tag: 6.5.3
7
 
8
  Powerful, easy to use ecommerce shopping cart. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
9
 
@@ -150,6 +150,13 @@ You can use Ecwid’s built-in import tools to copy your store products from any
150
  * [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
151
 
152
  == Changelog ==
 
 
 
 
 
 
 
153
  = 6.5.3 - Apr 11, 2019 =
154
  - **Compatibility fixes for KingComposer Editor.** There was a problem in how Ecwid e-commerce plugin works with KingComposer editor. We've fixed it.
155
  - Minor fixes and improvements.
3
  Tags: ecommerce, e-commerce, storefront, online store, sell
4
  Requires at least: 3.7
5
  Tested up to: 5.1
6
+ Stable tag: 6.6
7
 
8
  Powerful, easy to use ecommerce shopping cart. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
9
 
150
  * [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
151
 
152
  == Changelog ==
153
+ = 6.6 - Apr 29, 2019 =
154
+ - **Improved loading time for the Ecwid plugin in WordPress admin backend**. We noticed that the Ecwid plugin affected the loading time of the pages editor in the WordPress admin backend. We improved a few things in the plugin to make it load faster.
155
+ - **Improved compatibility with WPML**. WPML is a popular plugin for multilingual sites. We got a few reports that it didn’t work well with Ecwid. We talked to the WPML team and tracked down the issue. It’s now fixed and your site should work fine if you use both WPML and Ecwid. In future versions, we will add a full support for WPML — you will be able to translate your Ecwid catalog to multiple languages and display your store content in your visitor language.
156
+ - **Added Russian translations for Gutenberg blocks**. The Ecwid ecommerce plugin now has 10 Gutenberg e-commerce blocks, which help you build your online store pages in more convenient drag-n-drop manner. In this update, we translated those blocks to Russian to make it more friendly for Ecwid users from Russia.
157
+ - Various fixes and improvements.
158
+
159
+
160
  = 6.5.3 - Apr 11, 2019 =
161
  - **Compatibility fixes for KingComposer Editor.** There was a problem in how Ecwid e-commerce plugin works with KingComposer editor. We've fixed it.
162
  - Minor fixes and improvements.
templates/ecwid-admin.php CHANGED
@@ -1,70 +1,17 @@
1
  <script type='text/javascript'>//<![CDATA[
2
- jQuery(document.body).addClass('ecwid-admin-iframe');
3
 
4
  jQuery(document).ready(function() {
5
- document.body.className += ' ecwid-no-padding';
6
-
7
- // Create IE + others compatible event handler
8
- var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
9
- var eventer = window[eventMethod];
10
- var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message";
11
-
12
- // Listen to message from child window
13
- eventer(messageEvent,function(e) {
14
- if (typeof e.data.height != 'undefined') {
15
- jQuery('#ecwid-frame').css('height', e.data.height + 'px');
16
- }
17
- },false);
18
-
19
  jQuery('#ecwid-frame').attr('src', '<?php echo $iframe_src; ?>');
20
  ecwidSetPopupCentering('#ecwid-frame');
 
 
 
 
21
  });
22
  //]]>
23
-
24
- function ecwidUpdateAdminMenus(menus) {
25
-
26
- var result = [];
27
- for (var i = 0; i < menus.length; i++) {
28
- var menu = menus[i];
29
- if (menu.type == 'separator') {
30
- continue;
31
- }
32
-
33
- var newItem = {};
34
- newItem.title = menu.title;
35
- newItem.slug = menu.path;
36
-
37
- if (menu.items) {
38
- newItem.children = [];
39
- for (var j = 0; j < menu.items.length; j++) {
40
- child = menu.items[j];
41
- newItem.children[newItem.children.length] = {
42
- 'title': child.title,
43
- 'slug': child.path
44
- };
45
- }
46
- }
47
-
48
- result[result.length] = newItem;
49
- }
50
-
51
- jQuery('li[data-ecwid-dynamic-menu=1]').remove();
52
-
53
- ecwidAddMenuItems(result);
54
- }
55
-
56
  </script>
57
 
 
58
 
59
- <iframe seamless id="ecwid-frame" frameborder="0" width="100%" height="700" scrolling="no"></iframe>
60
-
61
- <script type="text/javascript">
62
- jQuery(document).ready(function() {
63
- jQuery.ajax(
64
- {
65
- url: ajaxurl + '?action=<?php echo Ecwid_Store_Page::WARMUP_ACTION; ?>'
66
- }
67
- );
68
- });
69
- </script>
70
  <?php require_once ECWID_PLUGIN_DIR . 'templates/admin-footer.php'; ?>
1
  <script type='text/javascript'>//<![CDATA[
2
+ jQuery(document.body).addClass('ecwid-admin-iframe ecwid-no-padding');
3
 
4
  jQuery(document).ready(function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  jQuery('#ecwid-frame').attr('src', '<?php echo $iframe_src; ?>');
6
  ecwidSetPopupCentering('#ecwid-frame');
7
+
8
+ jQuery.ajax({
9
+ url: ajaxurl + '?action=<?php echo Ecwid_Store_Page::WARMUP_ACTION; ?>'
10
+ });
11
  });
12
  //]]>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  </script>
14
 
15
+ <iframe seamless id="ecwid-frame" frameborder="0" width="100%" height="700" scrolling="no"></iframe>
16
 
 
 
 
 
 
 
 
 
 
 
 
17
  <?php require_once ECWID_PLUGIN_DIR . 'templates/admin-footer.php'; ?>
templates/popup/deactivate.php CHANGED
@@ -13,7 +13,7 @@
13
  </label>
14
  <?php if ( @$reason['has_message'] ): ?>
15
  <div class="message">
16
- <textarea name="message[<?php echo $key; ?>]" placeholder="<?php echo $reason['message_hint']; ?>"></textarea>
17
  </div>
18
  <?php endif; ?>
19
  </li>
13
  </label>
14
  <?php if ( @$reason['has_message'] ): ?>
15
  <div class="message">
16
+ <textarea name="message[<?php echo $key; ?>]" placeholder="<?php echo $reason['message_hint']; ?>"><?php if($reason['code'] == 'theme'){ echo $reason['message_hint']; } ?></textarea>
17
  </div>
18
  <?php endif; ?>
19
  </li>
templates/product-popup.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  <tr id="product-{{ data.id }}">
4
  <td class="product-thumb column-product-thumb has-row-actions" data-colname="Product">
5
- <div><img src="{{ data.image_url }}" alt=""></div>
6
  </td>
7
  <td class="product-name column-product-name has-row-actions column-primary" data-colname="Product Name">
8
  <div>{{ data.name }}</div>
2
 
3
  <tr id="product-{{ data.id }}">
4
  <td class="product-thumb column-product-thumb has-row-actions" data-colname="Product">
5
+ <div><img data-src="{{ data.image_url }}" alt=""></div>
6
  </td>
7
  <td class="product-name column-product-name has-row-actions column-primary" data-colname="Product Name">
8
  <div>{{ data.name }}</div>