Version Description
Code changes from version 1.2 to 1.3
- admin/includes/wpr-conditions-manager.php +42 -0
- admin/includes/wpr-render-templates.php +199 -0
- admin/includes/wpr-templates-actions.php +43 -13
- admin/includes/wpr-templates-all.php +0 -290
- admin/includes/wpr-templates-data.php +0 -105
- admin/includes/wpr-templates-library.php +51 -14
- admin/includes/wpr-templates-loop.php +170 -85
- admin/includes/wpr-templates-modal-popups.php +234 -0
- admin/includes/wpr-templates-popups.php +0 -373
- admin/plugin-options.php +51 -74
- admin/popups.php +72 -0
- admin/templates/views/astra/class-astra-compat.php +82 -0
- admin/templates/views/generatepress/class-generatepress-compat.php +71 -0
- admin/templates/views/oceanwp/class-oceanwp-compat.php +70 -0
- admin/templates/views/royal/theme-footer-royal.php +24 -0
- admin/templates/views/royal/theme-header-royal.php +40 -0
- admin/templates/views/storefront/class-storefront-compat.php +102 -0
- admin/templates/views/theme-footer.php +20 -0
- admin/templates/views/theme-header.php +34 -0
- admin/templates/wpr-templates-data.php +90 -1
- admin/templates/{wpr-templates-blocks.php → wpr-templates-library-blocks.php} +13 -5
- admin/templates/wpr-templates-library-popups.php +107 -0
- admin/templates/wpr-templates-pages.php +4 -4
- admin/theme-builder.php +82 -0
- assets/css/admin/plugin-options.css +308 -186
- assets/css/admin/plugin-options.min.css +0 -618
- assets/css/admin/rating-notice.css +0 -3
- assets/css/editor.css +126 -6
- assets/css/editor.min.css +1 -643
- assets/css/frontend.css +86 -12
- assets/css/frontend.min.css +1 -1
- assets/css/library-frontend.css +4 -3
- assets/css/library-frontend.min.css +1 -693
- assets/img/icon-256x256.png +0 -0
- assets/img/pro-options/group_popup_settings.jpg +0 -0
- assets/js/admin/plugin-options.js +141 -109
- assets/js/admin/plugin-options.min.js +0 -1
- assets/js/admin/update-notice.js +0 -0
- assets/js/editor.js +49 -27
- assets/js/editor.min.js +1 -324
- assets/js/frontend.js +123 -6
- assets/js/frontend.min.js +1 -1
- assets/js/lib/jarallax/jarallax.js +1033 -0
- assets/js/lib/jarallax/jarallax.min.js +6 -0
- assets/js/lib/parallax/parallax.js +593 -0
- assets/js/lib/parallax/parallax.min.js +1 -0
- assets/js/lib/particles/particles.js +1541 -0
- assets/js/lib/particles/particles.min.js +9 -0
- assets/js/lib/perfect-scrollbar/perfect-scrollbar.js +1324 -0
- assets/js/lib/perfect-scrollbar/perfect-scrollbar.min.js +6 -0
- assets/js/lib/perfectscrollbar/perfect-scrollbar.js +0 -97
admin/includes/wpr-conditions-manager.php
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace WprAddons\Admin\Includes;
|
3 |
+
|
4 |
+
use WprAddons\Classes\Utilities;
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
7 |
+
|
8 |
+
/**
|
9 |
+
* WPR_Conditions_Manager setup
|
10 |
+
*
|
11 |
+
* @since 1.0
|
12 |
+
*/
|
13 |
+
class WPR_Conditions_Manager {
|
14 |
+
|
15 |
+
/**
|
16 |
+
** Header & Footer Conditions
|
17 |
+
*/
|
18 |
+
public static function header_footer_display_conditions( $conditions ) {
|
19 |
+
$template = NULL;
|
20 |
+
|
21 |
+
// Custom
|
22 |
+
if ( defined('WPR_ADDONS_PRO_LICENSE') ) {
|
23 |
+
if ( ! empty($conditions) ) {
|
24 |
+
|
25 |
+
// Archive Pages (includes search)
|
26 |
+
if ( ! is_null( \WprAddonsPro\Classes\Pro_Modules::archive_templates_conditions( $conditions ) ) ) {
|
27 |
+
$template = \WprAddonsPro\Classes\Pro_Modules::archive_templates_conditions( $conditions );
|
28 |
+
}
|
29 |
+
|
30 |
+
// Single Pages
|
31 |
+
if ( ! is_null( \WprAddonsPro\Classes\Pro_Modules::single_templates_conditions( $conditions, true ) ) ) {
|
32 |
+
$template = \WprAddonsPro\Classes\Pro_Modules::single_templates_conditions( $conditions, true );
|
33 |
+
}
|
34 |
+
|
35 |
+
}
|
36 |
+
} else {
|
37 |
+
$template = Utilities::get_template_slug( $conditions, 'global' );
|
38 |
+
}
|
39 |
+
|
40 |
+
return $template;
|
41 |
+
}
|
42 |
+
}
|
admin/includes/wpr-render-templates.php
ADDED
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace WprAddons\Admin\Includes;
|
3 |
+
|
4 |
+
use WprAddons\Classes\Utilities;
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
7 |
+
|
8 |
+
/**
|
9 |
+
* WPR_Render_Templates setup
|
10 |
+
*
|
11 |
+
* @since 1.0
|
12 |
+
*/
|
13 |
+
class WPR_Render_Templates {
|
14 |
+
|
15 |
+
/**
|
16 |
+
** Instance of Elemenntor Frontend class.
|
17 |
+
*
|
18 |
+
** @var \Elementor\Frontend()
|
19 |
+
*/
|
20 |
+
private static $elementor_instance;
|
21 |
+
|
22 |
+
/**
|
23 |
+
** Get Current Theme.
|
24 |
+
*/
|
25 |
+
public $current_theme;
|
26 |
+
|
27 |
+
/**
|
28 |
+
** Royal Themes Array.
|
29 |
+
*/
|
30 |
+
public $royal_themes;
|
31 |
+
|
32 |
+
|
33 |
+
/**
|
34 |
+
** Constructor
|
35 |
+
*/
|
36 |
+
public function __construct() {
|
37 |
+
|
38 |
+
// Elementor Frontend
|
39 |
+
self::$elementor_instance = \Elementor\Plugin::instance();
|
40 |
+
|
41 |
+
// Ative Theme
|
42 |
+
$this->current_theme = get_template();
|
43 |
+
|
44 |
+
// Royal Themes
|
45 |
+
$this->royal_themes = ['ashe', 'ashe-pro', 'ashe-pro-premium', 'bard', 'bard-pro', 'bard-pro-premium'];
|
46 |
+
|
47 |
+
// Popular Themes
|
48 |
+
if ( 'astra' === $this->current_theme ) {
|
49 |
+
require_once(__DIR__ . '/../templates/views/astra/class-astra-compat.php');
|
50 |
+
|
51 |
+
} else if ( 'generatepress' === $this->current_theme ) {
|
52 |
+
require_once(__DIR__ . '/../templates/views/generatepress/class-generatepress-compat.php');
|
53 |
+
|
54 |
+
} else if ( 'oceanwp' === $this->current_theme ) {
|
55 |
+
require_once(__DIR__ . '/../templates/views/oceanwp/class-oceanwp-compat.php');
|
56 |
+
|
57 |
+
} else if ( 'storefront' === $this->current_theme ) {
|
58 |
+
require_once(__DIR__ . '/../templates/views/storefront/class-storefront-compat.php');
|
59 |
+
|
60 |
+
// Other Themes
|
61 |
+
} else {
|
62 |
+
add_action( 'get_header', [ $this, 'replace_header' ] );
|
63 |
+
add_action( 'get_footer', [ $this, 'replace_footer' ] );
|
64 |
+
}
|
65 |
+
|
66 |
+
// Canvas Page Content
|
67 |
+
// add_action( 'elementor/page_templates/canvas/wpr_content', [ $this, 'canvas_page_content_display' ], 1 );
|
68 |
+
|
69 |
+
// Scripts and Styles
|
70 |
+
add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
|
71 |
+
|
72 |
+
}
|
73 |
+
|
74 |
+
/**
|
75 |
+
** Check if a Template has Conditions
|
76 |
+
*/
|
77 |
+
public function is_template_available( $type ) {
|
78 |
+
$conditions = json_decode( get_option('wpr_'. $type .'_conditions', '[]'), true );
|
79 |
+
$template = WPR_Conditions_Manager::header_footer_display_conditions( $conditions );
|
80 |
+
|
81 |
+
return (!empty( $conditions ) && !is_null($template)) ? true : false;
|
82 |
+
}
|
83 |
+
|
84 |
+
/**
|
85 |
+
** Header
|
86 |
+
*/
|
87 |
+
public function replace_header() {
|
88 |
+
if ( $this->is_template_available('header') ) {
|
89 |
+
if ( ! in_array($this->current_theme, $this->royal_themes) ) {
|
90 |
+
require __DIR__ . '/../templates/views/theme-header.php';
|
91 |
+
} else {
|
92 |
+
require __DIR__ . '/../templates/views/royal/theme-header-royal.php';
|
93 |
+
}
|
94 |
+
|
95 |
+
$templates = [];
|
96 |
+
$templates[] = 'header.php';
|
97 |
+
|
98 |
+
remove_all_actions( 'wp_head' ); // Avoid running wp_head hooks again.
|
99 |
+
|
100 |
+
ob_start();
|
101 |
+
locate_template( $templates, true );
|
102 |
+
ob_get_clean();
|
103 |
+
}
|
104 |
+
}
|
105 |
+
|
106 |
+
/**
|
107 |
+
** Footer
|
108 |
+
*/
|
109 |
+
public function replace_footer() {
|
110 |
+
if ( $this->is_template_available('footer') ) {
|
111 |
+
if ( ! in_array($this->current_theme, $this->royal_themes) ) {
|
112 |
+
require __DIR__ . '/../templates/views/theme-footer.php';
|
113 |
+
} else {
|
114 |
+
require __DIR__ . '/../templates/views/royal/theme-footer-royal.php';
|
115 |
+
}
|
116 |
+
|
117 |
+
$templates = [];
|
118 |
+
$templates[] = 'footer.php';
|
119 |
+
|
120 |
+
remove_all_actions( 'wp_footer' ); // Avoid running wp_footer hooks again.
|
121 |
+
|
122 |
+
ob_start();
|
123 |
+
locate_template( $templates, true );
|
124 |
+
ob_get_clean();
|
125 |
+
}
|
126 |
+
}
|
127 |
+
|
128 |
+
/**
|
129 |
+
** Theme Builder Content Display
|
130 |
+
*/
|
131 |
+
// public function canvas_page_content_display() {//TODO: Change and Adapt this function (maybe move to conditions manager)
|
132 |
+
// // Get Conditions
|
133 |
+
// $archives = json_decode( get_option( 'wpr_archive_conditions' ), true );
|
134 |
+
// $archives = is_null( $archives ) ? [] : $archives;
|
135 |
+
// $singles = json_decode( get_option( 'wpr_single_conditions' ), true );
|
136 |
+
// $singles = is_null( $singles ) ? [] : $singles;
|
137 |
+
|
138 |
+
// // Reset
|
139 |
+
// $template = '';
|
140 |
+
|
141 |
+
// // Archive Pages (includes search)
|
142 |
+
// if ( ! is_null( $this->archive_templates_conditions( $archives ) ) ) {
|
143 |
+
// $template = $this->archive_templates_conditions( $archives );
|
144 |
+
// }
|
145 |
+
|
146 |
+
// // Single Pages
|
147 |
+
// if ( ! is_null( $this->single_templates_conditions( $singles, false ) ) ) {
|
148 |
+
// $template = $this->single_templates_conditions( $singles, false );
|
149 |
+
// }
|
150 |
+
|
151 |
+
// // Display Template
|
152 |
+
// Utilities::render_elementor_template( $template );
|
153 |
+
// }
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Enqueue styles and scripts.
|
157 |
+
*/
|
158 |
+
public function enqueue_scripts() {
|
159 |
+
|
160 |
+
if ( class_exists( '\Elementor\Plugin' ) ) {
|
161 |
+
$elementor = \Elementor\Plugin::instance();
|
162 |
+
$elementor->frontend->enqueue_styles();
|
163 |
+
}
|
164 |
+
|
165 |
+
if ( class_exists( '\ElementorPro\Plugin' ) ) {
|
166 |
+
$elementor_pro = \ElementorPro\Plugin::instance();
|
167 |
+
$elementor_pro->enqueue_styles();
|
168 |
+
}
|
169 |
+
|
170 |
+
// Load Header Template CSS File
|
171 |
+
$heder_conditions = json_decode( get_option('wpr_header_conditions', '[]'), true );
|
172 |
+
$header_template_id = Utilities::get_template_id(WPR_Conditions_Manager::header_footer_display_conditions($heder_conditions));
|
173 |
+
|
174 |
+
if ( false !== $header_template_id ) {
|
175 |
+
if ( class_exists( '\Elementor\Core\Files\CSS\Post' ) ) {
|
176 |
+
$header_css_file = new \Elementor\Core\Files\CSS\Post( $header_template_id );
|
177 |
+
} elseif ( class_exists( '\Elementor\Post_CSS_File' ) ) {
|
178 |
+
$header_css_file = new \Elementor\Post_CSS_File( $header_template_id );
|
179 |
+
}
|
180 |
+
|
181 |
+
$header_css_file->enqueue();
|
182 |
+
}
|
183 |
+
|
184 |
+
// Load Footer Template CSS File
|
185 |
+
$footer_conditions = json_decode( get_option('wpr_footer_conditions', '[]'), true );
|
186 |
+
$footer_template_id = Utilities::get_template_id(WPR_Conditions_Manager::header_footer_display_conditions($footer_conditions));
|
187 |
+
|
188 |
+
if ( false !== $footer_template_id ) {
|
189 |
+
if ( class_exists( '\Elementor\Core\Files\CSS\Post' ) ) {
|
190 |
+
$footer_css_file = new \Elementor\Core\Files\CSS\Post( $footer_template_id );
|
191 |
+
} elseif ( class_exists( '\Elementor\Post_CSS_File' ) ) {
|
192 |
+
$footer_css_file = new \Elementor\Post_CSS_File( $footer_template_id );
|
193 |
+
}
|
194 |
+
|
195 |
+
$footer_css_file->enqueue();
|
196 |
+
}
|
197 |
+
}
|
198 |
+
|
199 |
+
}
|
admin/includes/wpr-templates-actions.php
CHANGED
@@ -21,7 +21,7 @@ class WPR_Templates_Actions {
|
|
21 |
public function __construct() {
|
22 |
|
23 |
// Save Conditions
|
24 |
-
|
25 |
|
26 |
// Create Template
|
27 |
add_action( 'wp_ajax_wpr_create_template', [ $this, 'wpr_create_template' ] );
|
@@ -33,13 +33,47 @@ class WPR_Templates_Actions {
|
|
33 |
add_action( 'wp_ajax_wpr_import_library_template', [ $this, 'wpr_import_library_template' ] );
|
34 |
|
35 |
// Reset Template
|
36 |
-
add_action( '
|
37 |
|
38 |
// Enqueue Scripts
|
39 |
add_action( 'admin_enqueue_scripts', [ $this, 'templates_library_scripts' ] );
|
40 |
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
/**
|
44 |
** Create Template
|
45 |
*/
|
@@ -59,9 +93,9 @@ class WPR_Templates_Actions {
|
|
59 |
wp_set_object_terms( $template_id, [sanitize_text_field($_POST['user_template_type']), 'user'], 'wpr_template_type' );
|
60 |
|
61 |
if ( 'popup' === $_POST['user_template_type'] ) {
|
62 |
-
update_post_meta( $template_id, '_elementor_template_type', 'wpr-
|
63 |
} else {
|
64 |
-
update_post_meta( $template_id, '_elementor_template_type', 'wpr-
|
65 |
update_post_meta( $template_id, '_wpr_template_type', sanitize_text_field($_POST['user_template_type']) );
|
66 |
}
|
67 |
} else {
|
@@ -164,7 +198,7 @@ class WPR_Templates_Actions {
|
|
164 |
/**
|
165 |
** Reset Template
|
166 |
*/
|
167 |
-
public function
|
168 |
$post = get_page_by_path( sanitize_text_field($_POST['template_slug']), OBJECT, sanitize_text_field($_POST['template_library']) );
|
169 |
wp_delete_post( $post->ID, true );
|
170 |
}
|
@@ -174,26 +208,22 @@ class WPR_Templates_Actions {
|
|
174 |
*/
|
175 |
public function templates_library_scripts( $hook ) {
|
176 |
// Deny if NOT Plugin Page
|
177 |
-
if ( 'toplevel_page_wpr-addons' != $hook ) {
|
178 |
return;
|
179 |
}
|
180 |
|
181 |
// Get Plugin Version
|
182 |
$version = Plugin::instance()->get_version();
|
183 |
|
184 |
-
// Suffix
|
185 |
-
$dir = is_rtl() ? '-rtl' : '';
|
186 |
-
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : $dir .'.min';
|
187 |
-
|
188 |
// Color Picker
|
189 |
wp_enqueue_style( 'wp-color-picker' );
|
190 |
wp_enqueue_script( 'wp-color-picker-alpha', WPR_ADDONS_URL .'assets/js/admin/wp-color-picker-alpha.min.js', ['jquery', 'wp-color-picker'], $version, true );
|
191 |
|
192 |
// enqueue CSS
|
193 |
-
wp_enqueue_style( 'wpr-plugin-options-css', WPR_ADDONS_URL .'assets/css/admin/plugin-options
|
194 |
|
195 |
// enqueue JS
|
196 |
-
wp_enqueue_script( 'wpr-plugin-options-js', WPR_ADDONS_URL .'assets/js/admin/plugin-options
|
197 |
}
|
198 |
}
|
199 |
|
@@ -268,7 +298,7 @@ class WPR_Library_Source extends \Elementor\TemplateLibrary\Source_Base {
|
|
268 |
$data['content'] = $this->process_export_import_content( $data['content'], 'on_import' );
|
269 |
|
270 |
// TODO: Find out why EK has this setting. Maybe for page import and document settings?
|
271 |
-
// $post_id =
|
272 |
// $document = \Elementor\Plugin::instance()->documents->get( $post_id );
|
273 |
|
274 |
// if ( $document ) {
|
21 |
public function __construct() {
|
22 |
|
23 |
// Save Conditions
|
24 |
+
add_action( 'wp_ajax_wpr_save_template_conditions', [ $this, 'wpr_save_template_conditions' ] );
|
25 |
|
26 |
// Create Template
|
27 |
add_action( 'wp_ajax_wpr_create_template', [ $this, 'wpr_create_template' ] );
|
33 |
add_action( 'wp_ajax_wpr_import_library_template', [ $this, 'wpr_import_library_template' ] );
|
34 |
|
35 |
// Reset Template
|
36 |
+
add_action( 'wp_ajax_wpr_delete_template', [ $this, 'wpr_delete_template' ] );
|
37 |
|
38 |
// Enqueue Scripts
|
39 |
add_action( 'admin_enqueue_scripts', [ $this, 'templates_library_scripts' ] );
|
40 |
|
41 |
}
|
42 |
|
43 |
+
/**
|
44 |
+
** Save Template Conditions
|
45 |
+
*/
|
46 |
+
public function wpr_save_template_conditions() {
|
47 |
+
// Header
|
48 |
+
if ( isset($_POST['wpr_header_conditions']) ) {
|
49 |
+
update_option( 'wpr_header_conditions', $this->sanitize_conditions($_POST['wpr_header_conditions']) );
|
50 |
+
}
|
51 |
+
|
52 |
+
// Footer
|
53 |
+
if ( isset($_POST['wpr_footer_conditions']) ) {
|
54 |
+
update_option( 'wpr_footer_conditions', $this->sanitize_conditions($_POST['wpr_footer_conditions']) );
|
55 |
+
}
|
56 |
+
|
57 |
+
// Archive
|
58 |
+
if ( isset($_POST['wpr_archive_conditions']) ) {
|
59 |
+
update_option( 'wpr_archive_conditions', $this->sanitize_conditions($_POST['wpr_archive_conditions']) );
|
60 |
+
}
|
61 |
+
|
62 |
+
// Single
|
63 |
+
if ( isset($_POST['wpr_single_conditions']) ) {
|
64 |
+
update_option( 'wpr_single_conditions', $this->sanitize_conditions($_POST['wpr_single_conditions']) );
|
65 |
+
}
|
66 |
+
|
67 |
+
// Popup
|
68 |
+
if ( isset($_POST['wpr_popup_conditions']) ) {
|
69 |
+
update_option( 'wpr_popup_conditions', $this->sanitize_conditions($_POST['wpr_popup_conditions']) );
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
public function sanitize_conditions( $data ) {
|
74 |
+
return stripslashes( json_encode( array_filter( json_decode(stripcslashes($data), true) ) ) );
|
75 |
+
}
|
76 |
+
|
77 |
/**
|
78 |
** Create Template
|
79 |
*/
|
93 |
wp_set_object_terms( $template_id, [sanitize_text_field($_POST['user_template_type']), 'user'], 'wpr_template_type' );
|
94 |
|
95 |
if ( 'popup' === $_POST['user_template_type'] ) {
|
96 |
+
update_post_meta( $template_id, '_elementor_template_type', 'wpr-popups' );
|
97 |
} else {
|
98 |
+
update_post_meta( $template_id, '_elementor_template_type', 'wpr-theme-builder' );
|
99 |
update_post_meta( $template_id, '_wpr_template_type', sanitize_text_field($_POST['user_template_type']) );
|
100 |
}
|
101 |
} else {
|
198 |
/**
|
199 |
** Reset Template
|
200 |
*/
|
201 |
+
public function wpr_delete_template() {
|
202 |
$post = get_page_by_path( sanitize_text_field($_POST['template_slug']), OBJECT, sanitize_text_field($_POST['template_library']) );
|
203 |
wp_delete_post( $post->ID, true );
|
204 |
}
|
208 |
*/
|
209 |
public function templates_library_scripts( $hook ) {
|
210 |
// Deny if NOT Plugin Page
|
211 |
+
if ( 'toplevel_page_wpr-addons' != $hook && 'royal-addons_page_wpr-theme-builder' != $hook && 'royal-addons_page_wpr-popups' != $hook ) {
|
212 |
return;
|
213 |
}
|
214 |
|
215 |
// Get Plugin Version
|
216 |
$version = Plugin::instance()->get_version();
|
217 |
|
|
|
|
|
|
|
|
|
218 |
// Color Picker
|
219 |
wp_enqueue_style( 'wp-color-picker' );
|
220 |
wp_enqueue_script( 'wp-color-picker-alpha', WPR_ADDONS_URL .'assets/js/admin/wp-color-picker-alpha.min.js', ['jquery', 'wp-color-picker'], $version, true );
|
221 |
|
222 |
// enqueue CSS
|
223 |
+
wp_enqueue_style( 'wpr-plugin-options-css', WPR_ADDONS_URL .'assets/css/admin/plugin-options.css', [], $version );
|
224 |
|
225 |
// enqueue JS
|
226 |
+
wp_enqueue_script( 'wpr-plugin-options-js', WPR_ADDONS_URL .'assets/js/admin/plugin-options.js', ['jquery'], $version );
|
227 |
}
|
228 |
}
|
229 |
|
298 |
$data['content'] = $this->process_export_import_content( $data['content'], 'on_import' );
|
299 |
|
300 |
// TODO: Find out why EK has this setting. Maybe for page import and document settings?
|
301 |
+
// $post_id = 94;
|
302 |
// $document = \Elementor\Plugin::instance()->documents->get( $post_id );
|
303 |
|
304 |
// if ( $document ) {
|
admin/includes/wpr-templates-all.php
DELETED
@@ -1,290 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
namespace WprAddons\Admin\Includes;
|
3 |
-
|
4 |
-
use WprAddons\Classes\Utilities;
|
5 |
-
|
6 |
-
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
7 |
-
|
8 |
-
/**
|
9 |
-
* WPR_Templates_All setup
|
10 |
-
*
|
11 |
-
* @since 1.0
|
12 |
-
*/
|
13 |
-
class WPR_Templates_All {
|
14 |
-
|
15 |
-
/**
|
16 |
-
** Instance of Elemenntor Frontend class.
|
17 |
-
*
|
18 |
-
** @var \Elementor\Frontend()
|
19 |
-
*/
|
20 |
-
private static $elementor_instance;
|
21 |
-
|
22 |
-
/**
|
23 |
-
** Constructor
|
24 |
-
*/
|
25 |
-
public function __construct() {
|
26 |
-
|
27 |
-
// Elementor Frontend
|
28 |
-
self::$elementor_instance = \Elementor\Plugin::instance();
|
29 |
-
|
30 |
-
// Custom Canvas Template
|
31 |
-
add_filter( 'template_include', [ $this, 'convert_to_canvas_template' ], 12 );
|
32 |
-
|
33 |
-
// Canvas Page Header and Footer
|
34 |
-
add_action( 'elementor/page_templates/canvas/before_content', [ $this, 'render_header' ], -1 );
|
35 |
-
add_action( 'elementor/page_templates/canvas/after_content', [ $this, 'render_footer' ] );
|
36 |
-
|
37 |
-
// Canvas Page Content
|
38 |
-
add_action( 'elementor/page_templates/canvas/wpr_content', [ $this, 'canvas_page_content_display' ], 1 );
|
39 |
-
|
40 |
-
}
|
41 |
-
|
42 |
-
|
43 |
-
/**
|
44 |
-
** Canvas Header
|
45 |
-
*/
|
46 |
-
public function render_header() {
|
47 |
-
$conditions = json_decode( get_option('wpr_header_conditions'), true );
|
48 |
-
|
49 |
-
if ( ! empty( $conditions ) ) {
|
50 |
-
$this->canvas_before_after_content( $conditions );
|
51 |
-
}
|
52 |
-
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
** Canvas Footer
|
56 |
-
*/
|
57 |
-
public function render_footer() {
|
58 |
-
$conditions = json_decode( get_option('wpr_footer_conditions'), true );
|
59 |
-
|
60 |
-
if ( ! empty( $conditions ) ) {
|
61 |
-
$this->canvas_before_after_content( $conditions );
|
62 |
-
}
|
63 |
-
}
|
64 |
-
|
65 |
-
/**
|
66 |
-
** Archive Templates Conditions
|
67 |
-
*/
|
68 |
-
public function archive_templates_conditions( $conditions ) {
|
69 |
-
$term_id = '';
|
70 |
-
$term_name = '';
|
71 |
-
$queried_object = get_queried_object();
|
72 |
-
|
73 |
-
// Get Terms
|
74 |
-
if ( ! is_null( $queried_object ) ) {
|
75 |
-
if ( isset( $queried_object->term_id ) && isset( $queried_object->taxonomy ) ) {
|
76 |
-
$term_id = $queried_object->term_id;
|
77 |
-
$term_name = $queried_object->taxonomy;
|
78 |
-
}
|
79 |
-
}
|
80 |
-
|
81 |
-
// Reset
|
82 |
-
$template = null;
|
83 |
-
|
84 |
-
// Archive Pages (includes search)
|
85 |
-
if ( is_archive() || is_search() ) {
|
86 |
-
if ( is_archive() && ! is_search() ) {
|
87 |
-
// Author
|
88 |
-
if ( is_author() ) {
|
89 |
-
$template = $this->get_template_slug( $conditions, 'archive/author' );
|
90 |
-
// Date
|
91 |
-
} elseif ( is_date() ) {
|
92 |
-
$template = $this->get_template_slug( $conditions, 'archive/date' );
|
93 |
-
// Category
|
94 |
-
} elseif ( is_category() ) {
|
95 |
-
$template = $this->get_template_slug( $conditions, 'archive/categories', $term_id );
|
96 |
-
// Tag
|
97 |
-
} elseif ( is_tag() ) {
|
98 |
-
$template = $this->get_template_slug( $conditions, 'archive/tags', $term_id );
|
99 |
-
// Custom Taxonomies
|
100 |
-
} elseif ( is_tax() ) {
|
101 |
-
$template = $this->get_template_slug( $conditions, 'archive/'. $term_name, $term_id );
|
102 |
-
// Products
|
103 |
-
} elseif ( class_exists( 'WooCommerce' ) && is_shop() ) {
|
104 |
-
$template = $this->get_template_slug( $conditions, 'archive/products' );
|
105 |
-
}
|
106 |
-
|
107 |
-
// Search Page
|
108 |
-
} else {
|
109 |
-
$template = $this->get_template_slug( $conditions, 'archive/search' );
|
110 |
-
}
|
111 |
-
|
112 |
-
// Posts Page
|
113 |
-
} elseif ( Utilities::is_blog_archive() ) {
|
114 |
-
$template = $this->get_template_slug( $conditions, 'archive/posts' );
|
115 |
-
}
|
116 |
-
|
117 |
-
return $template;
|
118 |
-
}
|
119 |
-
|
120 |
-
/**
|
121 |
-
** Single Templates Conditions
|
122 |
-
*/
|
123 |
-
public function single_templates_conditions( $conditions, $pages ) {
|
124 |
-
global $post;
|
125 |
-
|
126 |
-
// Get Posts
|
127 |
-
$post_id = is_null($post) ? '' : $post->ID;
|
128 |
-
$post_type = is_null($post) ? '' : $post->post_type;
|
129 |
-
|
130 |
-
// Reset
|
131 |
-
$template = null;
|
132 |
-
|
133 |
-
// Single Pages
|
134 |
-
if ( is_single() || is_front_page() || is_page() || is_404() ) {
|
135 |
-
|
136 |
-
if ( is_single() ) {
|
137 |
-
// Blog Posts
|
138 |
-
if ( 'post' == $post_type ) {
|
139 |
-
$template = $this->get_template_slug( $conditions, 'single/posts', $post_id );
|
140 |
-
// CPT
|
141 |
-
} else {
|
142 |
-
$template = $this->get_template_slug( $conditions, 'single/'. $post_type, $post_id );
|
143 |
-
}
|
144 |
-
} else {
|
145 |
-
// Front page
|
146 |
-
if ( $pages && is_front_page() ) {
|
147 |
-
$template = $this->get_template_slug( $conditions, 'single/front_page' );
|
148 |
-
// Error 404 Page
|
149 |
-
} elseif ( is_404() ) {
|
150 |
-
$template = $this->get_template_slug( $conditions, 'single/page_404' );
|
151 |
-
// Single Page
|
152 |
-
} elseif ( $pages && is_page() ) {
|
153 |
-
$template = $this->get_template_slug( $conditions, 'single/pages', $post_id );
|
154 |
-
}
|
155 |
-
}
|
156 |
-
|
157 |
-
}
|
158 |
-
|
159 |
-
return $template;
|
160 |
-
}
|
161 |
-
|
162 |
-
/**
|
163 |
-
** Canvas Page Before/After Content
|
164 |
-
*/
|
165 |
-
public function canvas_before_after_content( $conditions ) {
|
166 |
-
// Template Type
|
167 |
-
$post_terms = wp_get_post_terms( get_the_ID(), 'wpr_template_type' );
|
168 |
-
$template_type = ! empty($post_terms) ? $post_terms[0]->slug : '';
|
169 |
-
|
170 |
-
// Global
|
171 |
-
$template = $this->get_template_slug( $conditions, 'global' );
|
172 |
-
|
173 |
-
// Custom
|
174 |
-
if ( ! empty($conditions) && (sizeof( $conditions ) > 1 || sizeof( reset($conditions) ) > 1) ) {
|
175 |
-
|
176 |
-
// Archive Pages (includes search)
|
177 |
-
if ( ! is_null( $this->archive_templates_conditions( $conditions ) ) ) {
|
178 |
-
$template = $this->archive_templates_conditions( $conditions );
|
179 |
-
}
|
180 |
-
|
181 |
-
// Single Pages
|
182 |
-
if ( ! is_null( $this->single_templates_conditions( $conditions, true ) ) ) {
|
183 |
-
$template = $this->single_templates_conditions( $conditions, true );
|
184 |
-
}
|
185 |
-
|
186 |
-
}
|
187 |
-
|
188 |
-
// Display Template
|
189 |
-
if ( 'header' !== $template_type && 'footer' !== $template_type && 'popup' !== $template_type ) {
|
190 |
-
$this->display_elementor_content( $template );
|
191 |
-
}
|
192 |
-
}
|
193 |
-
|
194 |
-
/**
|
195 |
-
** Canvas Page Templates
|
196 |
-
*/
|
197 |
-
public function canvas_page_content_display() {
|
198 |
-
// Get Conditions
|
199 |
-
$archives = json_decode( get_option( 'wpr_archive_conditions' ), true );
|
200 |
-
$archives = is_null( $archives ) ? [] : $archives;
|
201 |
-
$singles = json_decode( get_option( 'wpr_single_conditions' ), true );
|
202 |
-
$singles = is_null( $singles ) ? [] : $singles;
|
203 |
-
|
204 |
-
// Reset
|
205 |
-
$template = '';
|
206 |
-
|
207 |
-
// Archive Pages (includes search)
|
208 |
-
if ( ! is_null( $this->archive_templates_conditions( $archives ) ) ) {
|
209 |
-
$template = $this->archive_templates_conditions( $archives );
|
210 |
-
}
|
211 |
-
|
212 |
-
// Single Pages
|
213 |
-
if ( ! is_null( $this->single_templates_conditions( $singles, false ) ) ) {
|
214 |
-
$template = $this->single_templates_conditions( $singles, false );
|
215 |
-
}
|
216 |
-
|
217 |
-
// Display Template
|
218 |
-
$this->display_elementor_content( $template );
|
219 |
-
}
|
220 |
-
|
221 |
-
|
222 |
-
/**
|
223 |
-
** Custom Canvas Template
|
224 |
-
*/
|
225 |
-
public function convert_to_canvas_template( $template ) {
|
226 |
-
if ( \Elementor\Plugin::$instance->preview->is_preview_mode() && 'wpr_templates' === get_queried_object()->post_type ) {
|
227 |
-
return WPR_ADDONS_MODULES_PATH . '/page-templates/wpr-canvas.php';
|
228 |
-
} else {
|
229 |
-
return $template;
|
230 |
-
}
|
231 |
-
}
|
232 |
-
|
233 |
-
|
234 |
-
/**
|
235 |
-
** Get Template Slug
|
236 |
-
*/
|
237 |
-
public function get_template_slug( $data, $page, $post_id = '' ) {
|
238 |
-
$template = null;
|
239 |
-
|
240 |
-
// Custom
|
241 |
-
if ( sizeof($data) > 1 ) {
|
242 |
-
// Find a Custom Condition
|
243 |
-
foreach( $data as $id => $conditions ) {
|
244 |
-
if ( in_array( $page .'/'. $post_id, $conditions) ) {
|
245 |
-
$template = $id;
|
246 |
-
} elseif ( in_array( $page .'/all', $conditions) ) {
|
247 |
-
$template = $id;
|
248 |
-
} elseif ( in_array( $page, $conditions) ) {
|
249 |
-
$template = $id;
|
250 |
-
}
|
251 |
-
}
|
252 |
-
|
253 |
-
// If a Custom NOT Found, use Global
|
254 |
-
if ( is_null($template) ) {
|
255 |
-
foreach( $data as $id => $conditions ) {
|
256 |
-
if ( in_array( 'global', $conditions) ) {
|
257 |
-
$template = $id;
|
258 |
-
}
|
259 |
-
}
|
260 |
-
}
|
261 |
-
// Global
|
262 |
-
} else {
|
263 |
-
$template = key( $data );
|
264 |
-
}
|
265 |
-
|
266 |
-
return $template;
|
267 |
-
}
|
268 |
-
|
269 |
-
|
270 |
-
/**
|
271 |
-
** Display Elementor Content
|
272 |
-
*/
|
273 |
-
public function display_elementor_content( $slug ) {
|
274 |
-
// Deny if not Elemenntor Canvas
|
275 |
-
if ( 'elementor_canvas' !== get_page_template_slug() ) {//tmp
|
276 |
-
// return;
|
277 |
-
}
|
278 |
-
|
279 |
-
$template_id = Utilities::get_template_id( $slug );
|
280 |
-
$get_elementor_content = self::$elementor_instance->frontend->get_builder_content( $template_id, false );
|
281 |
-
|
282 |
-
if ( '' === $get_elementor_content ) {
|
283 |
-
return;
|
284 |
-
}
|
285 |
-
|
286 |
-
// Template Content
|
287 |
-
echo $get_elementor_content;
|
288 |
-
}
|
289 |
-
|
290 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/includes/wpr-templates-data.php
DELETED
@@ -1,105 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WprAddons\Admin\Includes;
|
4 |
-
|
5 |
-
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
6 |
-
|
7 |
-
/**
|
8 |
-
* WPR_Templates_Data setup
|
9 |
-
*
|
10 |
-
* @since 1.0
|
11 |
-
*/
|
12 |
-
class WPR_Templates_Data {
|
13 |
-
|
14 |
-
/**
|
15 |
-
** List of Predefined Templates
|
16 |
-
*/
|
17 |
-
public static function get( $template ) {
|
18 |
-
|
19 |
-
// Headers
|
20 |
-
if ( $template === 'header' ) {
|
21 |
-
$templates = array(
|
22 |
-
'Header v1',
|
23 |
-
'Header v2',
|
24 |
-
'Header v3',
|
25 |
-
'Header v4',
|
26 |
-
);
|
27 |
-
|
28 |
-
// Footers
|
29 |
-
} elseif ( $template === 'footer' ) {
|
30 |
-
$templates = array(
|
31 |
-
'Footer v1',
|
32 |
-
'Footer v2',
|
33 |
-
'Footer v3',
|
34 |
-
'Footer v4',
|
35 |
-
);
|
36 |
-
|
37 |
-
// Blog Posts
|
38 |
-
} elseif ( $template === 'blog-post' ) {
|
39 |
-
$templates = array(
|
40 |
-
'Blog Post v1',
|
41 |
-
'Blog Post v2',
|
42 |
-
'Blog Post v3',
|
43 |
-
);
|
44 |
-
|
45 |
-
// Portfolio Posts
|
46 |
-
} elseif ( $template === 'portfolio-post' ) {
|
47 |
-
$templates = array(
|
48 |
-
'Portfolio Post v1',
|
49 |
-
'Portfolio Post v2',
|
50 |
-
'Portfolio Post v3',
|
51 |
-
);
|
52 |
-
|
53 |
-
// WooCommerce Products
|
54 |
-
} elseif ( $template === 'woocommerce-product' ) {
|
55 |
-
$templates = array(
|
56 |
-
'WooCommerce Product v1',
|
57 |
-
'WooCommerce Product v2',
|
58 |
-
'WooCommerce Product v3',
|
59 |
-
);
|
60 |
-
|
61 |
-
// 404 Pages
|
62 |
-
} elseif ( $template === '404-page' ) {
|
63 |
-
$templates = array(
|
64 |
-
'404 Page v1',
|
65 |
-
'404 Page v2',
|
66 |
-
'404 Page v3',
|
67 |
-
);
|
68 |
-
|
69 |
-
// Blog Archives
|
70 |
-
} elseif ( $template === 'blog-archive' ) {
|
71 |
-
$templates = array(
|
72 |
-
'Blog Archive v1',
|
73 |
-
'Blog Archive v2',
|
74 |
-
'Blog Archive v3',
|
75 |
-
);
|
76 |
-
|
77 |
-
// Portfolio Archives
|
78 |
-
} elseif ( $template === 'portfolio-archive' ) {
|
79 |
-
$templates = array(
|
80 |
-
'Portfolio Archive v1',
|
81 |
-
'Portfolio Archive v2',
|
82 |
-
'Portfolio Archive v3',
|
83 |
-
);
|
84 |
-
|
85 |
-
// WooCommerce Archives
|
86 |
-
} elseif ( $template === 'woocommerce-archive' ) {
|
87 |
-
$templates = array(
|
88 |
-
'WooCommerce Archive v1',
|
89 |
-
'WooCommerce Archive v2',
|
90 |
-
'WooCommerce Archive v3',
|
91 |
-
);
|
92 |
-
|
93 |
-
// Popups
|
94 |
-
} elseif ( $template === 'popup' ) {
|
95 |
-
$templates = array(
|
96 |
-
'Popup v1',
|
97 |
-
'Popup v2',
|
98 |
-
'Popup v3',
|
99 |
-
);
|
100 |
-
}
|
101 |
-
|
102 |
-
return $templates;
|
103 |
-
}
|
104 |
-
|
105 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/includes/wpr-templates-library.php
CHANGED
@@ -2,12 +2,14 @@
|
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
4 |
|
5 |
-
use WprAddons\Admin\Includes\
|
6 |
use WprAddons\Admin\Includes\WPR_Templates_Shortcode;
|
7 |
-
use WprAddons\Admin\Includes\
|
8 |
use WprAddons\Admin\Includes\WPR_Templates_Actions;
|
9 |
-
use WprAddons\Admin\Templates\
|
10 |
-
use WprAddons\Admin\Templates\
|
|
|
|
|
11 |
|
12 |
/**
|
13 |
* WPR_Templates_Library setup
|
@@ -24,42 +26,59 @@ class WPR_Templates_Library {
|
|
24 |
// Register CPTs
|
25 |
add_action( 'init', [ $this, 'register_templates_library_cpt' ] );
|
26 |
add_action( 'template_redirect', [ $this, 'block_template_frontend' ] );
|
|
|
27 |
|
28 |
// Templates Shortcode
|
29 |
new WPR_Templates_Shortcode();
|
30 |
|
31 |
-
// Popups
|
32 |
-
new
|
33 |
|
34 |
-
//
|
35 |
-
new
|
36 |
|
37 |
// Template Actions
|
38 |
new WPR_Templates_Actions();
|
39 |
|
40 |
-
//
|
41 |
-
new
|
42 |
|
43 |
-
//
|
44 |
-
new
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
}
|
47 |
|
48 |
/**
|
49 |
** Register Templates Library
|
50 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
public function register_templates_library_cpt() {
|
52 |
|
53 |
$args = array(
|
|
|
54 |
'public' => true,
|
55 |
'rewrite' => false,
|
56 |
-
'show_ui' =>
|
57 |
'show_in_menu' => false,
|
58 |
'show_in_nav_menus' => false,
|
59 |
'exclude_from_search' => true,
|
60 |
'capability_type' => 'post',
|
61 |
'hierarchical' => false,
|
62 |
-
'supports' => array( 'title', 'thumbnail', 'wpr-addons' ),
|
63 |
);
|
64 |
|
65 |
register_post_type( 'wpr_templates', $args );
|
@@ -88,6 +107,24 @@ class WPR_Templates_Library {
|
|
88 |
}
|
89 |
}
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
92 |
|
93 |
new WPR_Templates_Library();
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
4 |
|
5 |
+
use WprAddons\Admin\Includes\WPR_Render_Templates;
|
6 |
use WprAddons\Admin\Includes\WPR_Templates_Shortcode;
|
7 |
+
use WprAddons\Admin\Includes\WPR_Templates_Modal_Popups;
|
8 |
use WprAddons\Admin\Includes\WPR_Templates_Actions;
|
9 |
+
use WprAddons\Admin\Templates\WPR_Templates_Library_Blocks;
|
10 |
+
use WprAddons\Admin\Templates\WPR_Templates_Library_Popups;
|
11 |
+
use WprAddons\Admin\Templates\WPR_Templates_Library_Pages;
|
12 |
+
use WprAddons\Classes\Utilities;
|
13 |
|
14 |
/**
|
15 |
* WPR_Templates_Library setup
|
26 |
// Register CPTs
|
27 |
add_action( 'init', [ $this, 'register_templates_library_cpt' ] );
|
28 |
add_action( 'template_redirect', [ $this, 'block_template_frontend' ] );
|
29 |
+
add_action( 'current_screen', [ $this, 'redirect_to_options_page' ] );
|
30 |
|
31 |
// Templates Shortcode
|
32 |
new WPR_Templates_Shortcode();
|
33 |
|
34 |
+
// Init Popups
|
35 |
+
new WPR_Templates_Modal_Popups();
|
36 |
|
37 |
+
// Init Theme Builder
|
38 |
+
new WPR_Render_Templates();
|
39 |
|
40 |
// Template Actions
|
41 |
new WPR_Templates_Actions();
|
42 |
|
43 |
+
// Add Blocks to Library
|
44 |
+
new WPR_Templates_Library_Blocks();
|
45 |
|
46 |
+
// Add Popups to Library
|
47 |
+
new WPR_Templates_Library_Popups();
|
48 |
+
|
49 |
+
// Add Pages to Library
|
50 |
+
// new WPR_Templates_Library_Pages();
|
51 |
+
|
52 |
+
// Enable Elementor for 'wpr_templates'
|
53 |
+
$this->add_elementor_cpt_support();
|
54 |
|
55 |
}
|
56 |
|
57 |
/**
|
58 |
** Register Templates Library
|
59 |
*/
|
60 |
+
public function redirect_to_options_page() {
|
61 |
+
if ( get_current_screen()->post_type == 'wpr_templates' && isset($_GET['action']) && $_GET['action'] == 'edit' ) {
|
62 |
+
if ( 'wpr-popups' === Utilities::get_elementor_template_type($_GET['post']) ) {
|
63 |
+
wp_redirect('admin.php?page=wpr-popups');
|
64 |
+
} else {
|
65 |
+
wp_redirect('admin.php?page=wpr-theme-builder');
|
66 |
+
}
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
public function register_templates_library_cpt() {
|
71 |
|
72 |
$args = array(
|
73 |
+
'label' => esc_html( 'Royal Templates', 'wpr-addons' ),
|
74 |
'public' => true,
|
75 |
'rewrite' => false,
|
76 |
+
'show_ui' => true,
|
77 |
'show_in_menu' => false,
|
78 |
'show_in_nav_menus' => false,
|
79 |
'exclude_from_search' => true,
|
80 |
'capability_type' => 'post',
|
81 |
'hierarchical' => false,
|
|
|
82 |
);
|
83 |
|
84 |
register_post_type( 'wpr_templates', $args );
|
107 |
}
|
108 |
}
|
109 |
|
110 |
+
/**
|
111 |
+
*** Add elementor support for wpr_templates.
|
112 |
+
**/
|
113 |
+
function add_elementor_cpt_support() {
|
114 |
+
if ( ! is_admin() ) {
|
115 |
+
return;
|
116 |
+
}
|
117 |
+
|
118 |
+
$cpt_support = get_option( 'elementor_cpt_support' );
|
119 |
+
|
120 |
+
if ( ! $cpt_support || in_array( 'wpr_templates', $cpt_support ) ) {
|
121 |
+
update_option( 'elementor_cpt_support', ['post', 'page', 'wpr_templates'] );
|
122 |
+
} else if ( ! in_array( 'wpr_templates', $cpt_support ) ) {
|
123 |
+
$cpt_support[] = 'wpr_templates';
|
124 |
+
update_option( 'elementor_cpt_support', $cpt_support );
|
125 |
+
}
|
126 |
+
}
|
127 |
+
|
128 |
}
|
129 |
|
130 |
new WPR_Templates_Library();
|
admin/includes/wpr-templates-loop.php
CHANGED
@@ -4,7 +4,6 @@ namespace WprAddons\Admin\Includes;
|
|
4 |
|
5 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
6 |
|
7 |
-
use WprAddons\Admin\Includes\WPR_Templates_Data;
|
8 |
use WprAddons\Classes\Utilities;
|
9 |
|
10 |
/**
|
@@ -12,44 +11,10 @@ use WprAddons\Classes\Utilities;
|
|
12 |
*/
|
13 |
class WPR_Templates_Loop {
|
14 |
|
15 |
-
/**
|
16 |
-
** Loop Through Templates
|
17 |
-
*/
|
18 |
-
public static function get_predefined_templates( $template ) {
|
19 |
-
// Loop User Templates
|
20 |
-
WPR_Templates_Loop::get_user_templates( $template );
|
21 |
-
|
22 |
-
// Deny if NOT Predefined
|
23 |
-
if ( strpos( $template, 'other' ) === 0 ) {
|
24 |
-
return;
|
25 |
-
}
|
26 |
-
|
27 |
-
// Loop Predefined Templates
|
28 |
-
$data = WPR_Templates_Data::get( $template );
|
29 |
-
$image_url = 'https://wp-royal.com/test/elementor/'. $template .'/images';
|
30 |
-
|
31 |
-
foreach ( $data as $item ) {
|
32 |
-
$slug = sanitize_title( $item );
|
33 |
-
|
34 |
-
echo '<div class="wpr-'. $template .' template-grid-item">';
|
35 |
-
echo '<div class="wpr-screenshot">';
|
36 |
-
echo '<img src="'. esc_attr($image_url .'/'. $slug) .'.png">';
|
37 |
-
echo '</div>';
|
38 |
-
echo '<footer>';
|
39 |
-
echo '<div class="wpr-title">'. $item .'</div>';
|
40 |
-
WPR_Templates_Loop::render_action_buttons( $slug );
|
41 |
-
echo '</footer>';
|
42 |
-
echo '</div>';
|
43 |
-
}
|
44 |
-
}
|
45 |
-
|
46 |
/**
|
47 |
** Loop Through Custom Templates
|
48 |
*/
|
49 |
-
public static function
|
50 |
-
// Default Image
|
51 |
-
$image_url = 'https://wp-royal.com/test/elementor/images';
|
52 |
-
|
53 |
// WP_Query arguments
|
54 |
$args = array (
|
55 |
'post_type' => array( 'wpr_templates' ),
|
@@ -69,34 +34,31 @@ class WPR_Templates_Loop {
|
|
69 |
$user_templates = get_posts( $args );
|
70 |
|
71 |
// The Loop
|
72 |
-
|
73 |
-
foreach ( $user_templates as $user_template ) {
|
74 |
-
$slug = $user_template->post_name;
|
75 |
-
$edit_url = str_replace( 'edit', 'elementor', get_edit_post_link( $user_template->ID ) );
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
echo '</div>';
|
85 |
-
echo '<footer>';
|
86 |
-
echo '<div class="wpr-title">'. esc_html($user_template->post_title) .'</div>';
|
87 |
|
88 |
echo '<div class="wpr-action-buttons">';
|
89 |
// Activate
|
90 |
-
echo '<span class="button
|
91 |
// Edit
|
92 |
-
echo '<a href="'. esc_url($edit_url) .'" class="wpr-edit button">'. esc_html__( 'Edit', 'wpr-addons' ) .'</a>';
|
93 |
// Delete
|
94 |
-
echo '<span class="wpr-
|
95 |
echo '</div>';
|
96 |
-
|
97 |
-
|
|
|
|
|
98 |
}
|
99 |
-
|
|
|
100 |
|
101 |
// Restore original Post Data
|
102 |
wp_reset_postdata();
|
@@ -106,7 +68,7 @@ class WPR_Templates_Loop {
|
|
106 |
/**
|
107 |
** Loop Through My Templates
|
108 |
*/
|
109 |
-
public static function
|
110 |
|
111 |
// WP_Query arguments
|
112 |
$args = array (
|
@@ -133,8 +95,8 @@ class WPR_Templates_Loop {
|
|
133 |
echo '<li>';
|
134 |
echo '<h3>'. $user_template->post_title .'</h3>';
|
135 |
echo '<span class="wpr-action-buttons">';
|
136 |
-
echo '<a href="'. esc_url($edit_url) .'"class="button button-primary">'. esc_html__( 'Edit', 'wpr-addons' ) .'</a>';
|
137 |
-
echo '<span class="wpr-
|
138 |
echo '</span>';
|
139 |
echo '</li>';
|
140 |
}
|
@@ -147,35 +109,158 @@ class WPR_Templates_Loop {
|
|
147 |
}
|
148 |
|
149 |
/**
|
150 |
-
** Render
|
151 |
*/
|
152 |
-
public static function
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
|
169 |
-
// Preview
|
170 |
-
echo '<a class="wpr-preview button">'. esc_html__( 'Preview', 'wpr-addons' ) .'</a>';
|
171 |
-
// Import/Activate
|
172 |
-
echo '<span class="button'. esc_attr($import_class) .'" data-slug="'. esc_attr($slug) .'">'. esc_html($text) .'</span>';
|
173 |
-
// Edit
|
174 |
-
echo '<a href="'. esc_url($edit_url) .'" class="wpr-edit button'. esc_attr($hidden_class) .'">'. esc_html__( 'Edit', 'wpr-addons' ) .'</a>';
|
175 |
-
// Reset
|
176 |
-
echo '<span class="wpr-reset button'. esc_attr($hidden_class) .'" data-slug="'. esc_attr($slug) .'">'. esc_html__( 'Reset', 'wpr-addons' ) .'</span>';
|
177 |
|
178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
}
|
180 |
|
181 |
/**
|
4 |
|
5 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
6 |
|
|
|
7 |
use WprAddons\Classes\Utilities;
|
8 |
|
9 |
/**
|
11 |
*/
|
12 |
class WPR_Templates_Loop {
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
/**
|
15 |
** Loop Through Custom Templates
|
16 |
*/
|
17 |
+
public static function render_theme_builder_templates( $template ) {
|
|
|
|
|
|
|
18 |
// WP_Query arguments
|
19 |
$args = array (
|
20 |
'post_type' => array( 'wpr_templates' ),
|
34 |
$user_templates = get_posts( $args );
|
35 |
|
36 |
// The Loop
|
37 |
+
echo '<ul class="wpr-'. esc_attr($template) .'-templates-list wpr-my-templates-list" data-pro="'. esc_attr(defined('WPR_ADDONS_PRO_LICENSE')) .'">';
|
|
|
|
|
|
|
38 |
|
39 |
+
if ( ! empty( $user_templates ) ) {
|
40 |
+
foreach ( $user_templates as $user_template ) {
|
41 |
+
$slug = $user_template->post_name;
|
42 |
+
$edit_url = str_replace( 'edit', 'elementor', get_edit_post_link( $user_template->ID ) );
|
43 |
+
|
44 |
+
echo '<li>';
|
45 |
+
echo '<h3 class="wpr-title">'. esc_html($user_template->post_title) .'</h3>';
|
|
|
|
|
|
|
46 |
|
47 |
echo '<div class="wpr-action-buttons">';
|
48 |
// Activate
|
49 |
+
echo '<span class="wpr-template-conditions button button-primary" data-slug="'. esc_attr($slug) .'">'. esc_html__( 'Manage Conditions', 'wpr-addons' ) .'</span>';
|
50 |
// Edit
|
51 |
+
echo '<a href="'. esc_url($edit_url) .'" class="wpr-edit-template button button-primary">'. esc_html__( 'Edit Template', 'wpr-addons' ) .'</a>';
|
52 |
// Delete
|
53 |
+
echo '<span class="wpr-delete-template button button-primary" data-slug="'. esc_attr($slug) .'" data-warning="'. esc_html__( 'Are you sure you want to delete this template?', 'wpr-addons' ) .'"><span class="dashicons dashicons-no-alt"></span></span>';
|
54 |
echo '</div>';
|
55 |
+
echo '</li>';
|
56 |
+
}
|
57 |
+
} else {
|
58 |
+
echo '<li class="wpr-no-templates">You don\'t have any headers yet!</li>';
|
59 |
}
|
60 |
+
|
61 |
+
echo '</ul>';
|
62 |
|
63 |
// Restore original Post Data
|
64 |
wp_reset_postdata();
|
68 |
/**
|
69 |
** Loop Through My Templates
|
70 |
*/
|
71 |
+
public static function render_elementor_saved_templates() {
|
72 |
|
73 |
// WP_Query arguments
|
74 |
$args = array (
|
95 |
echo '<li>';
|
96 |
echo '<h3>'. $user_template->post_title .'</h3>';
|
97 |
echo '<span class="wpr-action-buttons">';
|
98 |
+
echo '<a href="'. esc_url($edit_url) .'" class="button button-primary">'. esc_html__( 'Edit', 'wpr-addons' ) .'</a>';
|
99 |
+
echo '<span class="wpr-delete-template button button-primary" data-slug="'. esc_attr($user_template->post_name) .'" data-warning="'. esc_html__( 'Are you sure you want to delete this template?', 'wpr-addons' ) .'"><span class="dashicons dashicons-no-alt"></span></span>';
|
100 |
echo '</span>';
|
101 |
echo '</li>';
|
102 |
}
|
109 |
}
|
110 |
|
111 |
/**
|
112 |
+
** Render Conditions Popup
|
113 |
*/
|
114 |
+
public static function render_conditions_popup() {
|
115 |
+
?>
|
116 |
+
|
117 |
+
<div class="wpr-condition-popup-wrap wpr-admin-popup-wrap">
|
118 |
+
<div class="wpr-condition-popup wpr-admin-popup">
|
119 |
+
<header>
|
120 |
+
<h2><?php esc_html_e( 'Where Do You Want to Display Your Template?', 'wpr-addons' ); ?></h2>
|
121 |
+
<p>
|
122 |
+
<?php esc_html_e( 'Set the conditions that determine where your Template is used throughout your site.', 'wpr-addons' ); ?><br>
|
123 |
+
<?php esc_html_e( 'For example, choose \'Entire Site\' to display the template across your site.', 'wpr-addons' ); ?>
|
124 |
+
</p>
|
125 |
+
</header>
|
126 |
+
<span class="close-popup dashicons dashicons-no-alt"></span>
|
127 |
+
|
128 |
+
<!-- Conditions -->
|
129 |
+
<div class="wpr-conditions-wrap">
|
130 |
+
<div class="wpr-conditions-sample">
|
131 |
+
<?php if ( defined('WPR_ADDONS_PRO_LICENSE') ) : ?>
|
132 |
+
<!-- Global -->
|
133 |
+
<select name="global_condition_select" class="global-condition-select">
|
134 |
+
<option value="global"><?php esc_html_e( 'Entire Site', 'wpr-addons' ); ?></option>
|
135 |
+
<option value="archive"><?php esc_html_e( 'Archives', 'wpr-addons' ); ?></option>
|
136 |
+
<option value="single"><?php esc_html_e( 'Singular', 'wpr-addons' ); ?></option>
|
137 |
+
</select>
|
138 |
+
<!-- Archive -->
|
139 |
+
<select name="archives_condition_select" class="archives-condition-select">
|
140 |
+
<option value="posts"><?php esc_html_e( 'Posts Archive', 'wpr-addons' ); ?></option>
|
141 |
+
<option value="author"><?php esc_html_e( 'Author Archive', 'wpr-addons' ); ?></option>
|
142 |
+
<option value="date"><?php esc_html_e( 'Date Archive', 'wpr-addons' ); ?></option>
|
143 |
+
<option value="search"><?php esc_html_e( 'Search Results', 'wpr-addons' ); ?></option>
|
144 |
+
<option value="categories" class="custom-ids"><?php esc_html_e( 'Post Categories', 'wpr-addons' ); ?></option>
|
145 |
+
<option value="tags" class="custom-ids"><?php esc_html_e( 'Post Tags', 'wpr-addons' ); ?></option>
|
146 |
+
<?php // Custom Taxonomies
|
147 |
+
$custom_taxonomies = Utilities::get_custom_types_of( 'tax', true );
|
148 |
+
foreach ($custom_taxonomies as $key => $value) {
|
149 |
+
// Add Shop Archives
|
150 |
+
if ( 'product_cat' === $key ) {
|
151 |
+
echo '<option value="products">'. esc_html__( 'Products Archive', 'wpr-addons' ) .'</option>';
|
152 |
+
}
|
153 |
+
// List Taxonomies
|
154 |
+
echo '<option value="'. esc_attr($key) .'" class="custom-type-ids">'. esc_html($value) .'</option>';
|
155 |
+
}
|
156 |
+
?>
|
157 |
+
</select>
|
158 |
+
<!-- Single -->
|
159 |
+
<select name="singles_condition_select" class="singles-condition-select">
|
160 |
+
<option value="front_page"><?php esc_html_e( 'Front Page', 'wpr-addons' ); ?></option>
|
161 |
+
<option value="page_404"><?php esc_html_e( '404 Page', 'wpr-addons' ); ?></option>
|
162 |
+
<option value="pages" class="custom-ids"><?php esc_html_e( 'Pages', 'wpr-addons' ); ?></option>
|
163 |
+
<option value="posts" class="custom-ids"><?php esc_html_e( 'Posts', 'wpr-addons' ); ?></option>
|
164 |
+
<?php // Custom Post Types
|
165 |
+
$custom_taxonomies = Utilities::get_custom_types_of( 'post', true );
|
166 |
+
foreach ($custom_taxonomies as $key => $value) {
|
167 |
+
echo '<option value="'. esc_attr($key) .'" class="custom-type-ids">'. esc_html($value) .'</option>';
|
168 |
+
}
|
169 |
+
?>
|
170 |
+
</select>
|
171 |
+
|
172 |
+
<input type="text" placeholder="<?php esc_html_e( 'Enter comma separated IDs', 'wpr-addons' ); ?>" name="condition_input_ids"class="wpr-condition-input-ids">
|
173 |
+
<span class="wpr-delete-template-conditions dashicons dashicons-no-alt"></span>
|
174 |
+
|
175 |
+
<?php else: ?>
|
176 |
+
|
177 |
+
<!-- Global -->
|
178 |
+
<select name="global_condition_select" class="global-condition-select">
|
179 |
+
<option value="global"><?php esc_html_e( 'Entire Site', 'wpr-addons' ); ?></option>
|
180 |
+
<option value="archive"><?php esc_html_e( 'Archives (Pro)', 'wpr-addons' ); ?></option>
|
181 |
+
<option value="single"><?php esc_html_e( 'Singular (Pro)', 'wpr-addons' ); ?></option>
|
182 |
+
</select>
|
183 |
+
<!-- Archive -->
|
184 |
+
<select name="archives_condition_select" class="archives-condition-select">
|
185 |
+
<option value="posts"><?php esc_html_e( 'Posts Archive (Pro)', 'wpr-addons' ); ?></option>
|
186 |
+
<option value="author"><?php esc_html_e( 'Author Archive (Pro)', 'wpr-addons' ); ?></option>
|
187 |
+
<option value="date"><?php esc_html_e( 'Date Archive (Pro)', 'wpr-addons' ); ?></option>
|
188 |
+
<option value="search"><?php esc_html_e( 'Search Results (Pro)', 'wpr-addons' ); ?></option>
|
189 |
+
<option value="categories" class="custom-ids"><?php esc_html_e( 'Post Categories (Pro)', 'wpr-addons' ); ?></option>
|
190 |
+
<option value="tags" class="custom-ids"><?php esc_html_e( 'Post Tags (Pro)', 'wpr-addons' ); ?></option>
|
191 |
+
<?php // Custom Taxonomies
|
192 |
+
$custom_taxonomies = Utilities::get_custom_types_of( 'tax', true );
|
193 |
+
foreach ($custom_taxonomies as $key => $value) {
|
194 |
+
// Add Shop Archives
|
195 |
+
if ( 'product_cat' === $key ) {
|
196 |
+
echo '<option value="products">'. esc_html__( 'Products Archive (Pro)', 'wpr-addons' ) .'</option>';
|
197 |
+
}
|
198 |
+
// List Taxonomies
|
199 |
+
echo '<option value="'. esc_attr($key) .'" class="custom-type-ids">'. esc_html($value) .' (Pro)</option>';
|
200 |
+
}
|
201 |
+
?>
|
202 |
+
</select>
|
203 |
+
<!-- Single -->
|
204 |
+
<select name="singles_condition_select" class="singles-condition-select">
|
205 |
+
<option value="front_page"><?php esc_html_e( 'Front Page (Pro)', 'wpr-addons' ); ?></option>
|
206 |
+
<option value="page_404"><?php esc_html_e( '404 Page (Pro)', 'wpr-addons' ); ?></option>
|
207 |
+
<option value="pages" class="custom-ids"><?php esc_html_e( 'Pages (Pro)', 'wpr-addons' ); ?></option>
|
208 |
+
<option value="posts" class="custom-ids"><?php esc_html_e( 'Posts (Pro)', 'wpr-addons' ); ?></option>
|
209 |
+
<?php // Custom Post Types
|
210 |
+
$custom_taxonomies = Utilities::get_custom_types_of( 'post', true );
|
211 |
+
foreach ($custom_taxonomies as $key => $value) {
|
212 |
+
echo '<option value="'. esc_attr($key) .'" class="custom-type-ids">'. esc_html($value) .' (Pro)</option>';
|
213 |
+
}
|
214 |
+
?>
|
215 |
+
</select>
|
216 |
+
|
217 |
+
<input type="text" placeholder="<?php esc_html_e( 'Enter comma separated IDs (Pro)', 'wpr-addons' ); ?>" name="condition_input_ids"class="wpr-condition-input-ids">
|
218 |
+
<span class="wpr-delete-template-conditions dashicons dashicons-no-alt"></span>
|
219 |
+
|
220 |
+
<?php endif; ?>
|
221 |
+
</div>
|
222 |
+
</div>
|
223 |
+
|
224 |
+
<?php
|
225 |
+
if ( ! defined('WPR_ADDONS_PRO_LICENSE') ) {
|
226 |
+
// echo '<span style="color: #7f8b96;"><br>Conditions are fully suppoted in the <strong><a href="https://royal-elementor-addons.com/?ref=rea-plugin-backend-conditions-upgrade-pro#purchasepro" target="_blank">Pro version</a></strong></span>';
|
227 |
+
echo '<span style="color: #7f8b96;"><br>Conditions are fully suppoted in the <strong><a href="'. admin_url('admin.php?page=wpr-addons-pricing') .'" target="_blank">Pro version</a></strong></span>';
|
228 |
+
}
|
229 |
+
?>
|
230 |
+
|
231 |
+
<!-- Action Buttons -->
|
232 |
+
<span class="wpr-add-conditions"><?php esc_html_e( 'Add Conditions', 'wpr-addons' ); ?></span>
|
233 |
+
<span class="wpr-save-conditions"><?php esc_html_e( 'Save Conditions', 'wpr-addons' ); ?></span>
|
234 |
+
|
235 |
+
</div>
|
236 |
+
</div>
|
237 |
+
|
238 |
+
<?php
|
239 |
+
}
|
240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
|
242 |
+
/**
|
243 |
+
** Render Create Template Popup
|
244 |
+
*/
|
245 |
+
public static function render_create_template_popup() {
|
246 |
+
?>
|
247 |
+
|
248 |
+
<!-- Custom Template Popup -->
|
249 |
+
<div class="wpr-user-template-popup-wrap wpr-admin-popup-wrap">
|
250 |
+
<div class="wpr-user-template-popup wpr-admin-popup">
|
251 |
+
<header>
|
252 |
+
<h2><?php esc_html_e( 'Templates Help You Work Efficiently!', 'wpr-addons' ); ?></h2>
|
253 |
+
<p><?php esc_html_e( 'Use templates to create the different pieces of your site, and reuse them with one click whenever needed.', 'wpr-addons' ); ?></p>
|
254 |
+
</header>
|
255 |
+
|
256 |
+
<input type="text" name="user_template_title" class="wpr-user-template-title" placeholder="<?php esc_html_e( 'Enter Template Title', 'wpr-addons' ); ?>">
|
257 |
+
<input type="hidden" name="user_template_type" class="user-template-type">
|
258 |
+
<span class="wpr-create-template"><?php esc_html_e( 'Create Template', 'wpr-addons' ); ?></span>
|
259 |
+
<span class="close-popup dashicons dashicons-no-alt"></span>
|
260 |
+
</div>
|
261 |
+
</div>
|
262 |
+
|
263 |
+
<?php
|
264 |
}
|
265 |
|
266 |
/**
|
admin/includes/wpr-templates-modal-popups.php
ADDED
@@ -0,0 +1,234 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace WprAddons\Admin\Includes;
|
3 |
+
|
4 |
+
use WprAddons\Plugin;
|
5 |
+
use WprAddons\Classes\Utilities;
|
6 |
+
|
7 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
8 |
+
|
9 |
+
/**
|
10 |
+
* WPR_Templates_Modal_Popups setup
|
11 |
+
*
|
12 |
+
* @since 1.0
|
13 |
+
*/
|
14 |
+
class WPR_Templates_Modal_Popups {
|
15 |
+
|
16 |
+
/**
|
17 |
+
** Instance of Elemenntor Frontend class.
|
18 |
+
*
|
19 |
+
** @var \Elementor\Frontend()
|
20 |
+
*/
|
21 |
+
private static $elementor_instance;
|
22 |
+
|
23 |
+
/**
|
24 |
+
** Constructor
|
25 |
+
*/
|
26 |
+
public function __construct() {
|
27 |
+
// Elementor Frontend
|
28 |
+
self::$elementor_instance = \Elementor\Plugin::instance();
|
29 |
+
|
30 |
+
add_action( 'template_include', [ $this, 'set_post_type_template' ], 9999 );
|
31 |
+
|
32 |
+
add_action( 'wp_footer', [ $this, 'render_popups' ] );
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Set blank template for editor
|
37 |
+
*/
|
38 |
+
public function set_post_type_template( $template ) {
|
39 |
+
|
40 |
+
if ( is_singular( 'wpr_templates' ) ) {
|
41 |
+
if ( 'wpr-popups' === Utilities::get_elementor_template_type(get_the_ID()) && self::$elementor_instance->preview->is_preview_mode() ) {
|
42 |
+
$template = WPR_ADDONS_PATH . 'modules/popup/editor.php';
|
43 |
+
}
|
44 |
+
|
45 |
+
return $template;
|
46 |
+
}
|
47 |
+
|
48 |
+
return $template;
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
** Popups
|
53 |
+
*/
|
54 |
+
public function render_popups() {
|
55 |
+
$conditions = json_decode( get_option('wpr_popup_conditions'), true );
|
56 |
+
|
57 |
+
if ( ! empty( $conditions ) ) {
|
58 |
+
$conditions = $this->reverse_template_conditions( $conditions );
|
59 |
+
|
60 |
+
// Global
|
61 |
+
if ( isset( $conditions['global'] ) ) {
|
62 |
+
WPR_Templates_Modal_Popups::display_popups_by_location( $conditions, 'global' );
|
63 |
+
}
|
64 |
+
|
65 |
+
// Custom
|
66 |
+
if ( defined('WPR_ADDONS_PRO_LICENSE') ) {
|
67 |
+
// Archive
|
68 |
+
\WprAddonsPro\Classes\Pro_Modules::archive_pages_popup_conditions( $conditions );
|
69 |
+
|
70 |
+
// Single
|
71 |
+
\WprAddonsPro\Classes\Pro_Modules::single_pages_popup_conditions( $conditions );
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
// Enqueue ScrolBar JS //TODO - check if displayed multiple times
|
76 |
+
wp_enqueue_script( 'wpr-popup-scroll-js', WPR_ADDONS_URL .'assets/js/lib/perfect-scrollbar/perfect-scrollbar.min.js', [ 'jquery' ], '0.4.9' );
|
77 |
+
}
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
** Reverse Template Conditions
|
82 |
+
*/
|
83 |
+
public function reverse_template_conditions( $conditions ) {
|
84 |
+
$reverse = [];
|
85 |
+
|
86 |
+
foreach ( $conditions as $key => $condition ) {
|
87 |
+
foreach( $condition as $location ) {
|
88 |
+
if ( ! isset( $reverse[$location] ) ) {
|
89 |
+
$reverse[$location] = [ $key ];
|
90 |
+
} else {
|
91 |
+
array_push( $reverse[$location], $key );
|
92 |
+
}
|
93 |
+
}
|
94 |
+
}
|
95 |
+
|
96 |
+
return $reverse;
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
** Display Popups by Location
|
101 |
+
*/
|
102 |
+
public static function display_popups_by_location( $conditions, $page ) {
|
103 |
+
foreach ( $conditions[$page] as $key => $popup ) {
|
104 |
+
WPR_Templates_Modal_Popups::render_popup_content( $popup );
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
/**
|
109 |
+
** Display Elementor Content
|
110 |
+
*/
|
111 |
+
public static function render_popup_content( $slug ) {
|
112 |
+
$template_name = '';
|
113 |
+
|
114 |
+
$template_id = Utilities::get_template_id( $slug );
|
115 |
+
$get_settings = WPR_Templates_Modal_Popups::get_template_settings( $slug );
|
116 |
+
$get_elementor_content = self::$elementor_instance->frontend->get_builder_content( $template_id, false );
|
117 |
+
|
118 |
+
if ( '' === $get_elementor_content ) {
|
119 |
+
return;
|
120 |
+
}
|
121 |
+
|
122 |
+
// Encode Settings
|
123 |
+
$get_encoded_settings = ! empty( $get_settings ) ? wp_json_encode( $get_settings ) : '[]';
|
124 |
+
|
125 |
+
// Template Attributes
|
126 |
+
$template_id_attr = 'id="wpr-popup-id-'. $template_id .'"';
|
127 |
+
$template_class_attr = 'class="wpr-template-popup"';
|
128 |
+
$template_settings_attr = "data-settings='". $get_encoded_settings ."'";
|
129 |
+
|
130 |
+
// Return if NOT available for current user
|
131 |
+
if ( ! WPR_Templates_Modal_Popups::check_available_user_roles( $get_settings['popup_show_for_roles'] ) ) {
|
132 |
+
return;
|
133 |
+
}
|
134 |
+
|
135 |
+
if ( ! self::$elementor_instance->preview->is_preview_mode() ) {
|
136 |
+
echo '<div '. $template_id_attr .' '. $template_class_attr .' '. $template_settings_attr .'>';
|
137 |
+
echo '<div class="wpr-template-popup-inner">';
|
138 |
+
|
139 |
+
// Popup Overlay & Close Button
|
140 |
+
echo '<div class="wpr-popup-overlay"></div>';
|
141 |
+
|
142 |
+
// Template Container
|
143 |
+
echo '<div class="wpr-popup-container">';
|
144 |
+
|
145 |
+
// Close Button
|
146 |
+
echo '<div class="wpr-popup-close-btn"><i class="eicon-close"></i></div>';
|
147 |
+
|
148 |
+
// Template Content
|
149 |
+
echo '<div class="wpr-popup-container-inner">';
|
150 |
+
echo $get_elementor_content;
|
151 |
+
echo '</div>';
|
152 |
+
|
153 |
+
echo '</div>';
|
154 |
+
|
155 |
+
echo '</div>';
|
156 |
+
echo '</div>';
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
** Get Template Settings
|
162 |
+
*/
|
163 |
+
public static function get_template_settings( $slug ) {
|
164 |
+
$settings = [];
|
165 |
+
$defaults = [];
|
166 |
+
|
167 |
+
$template_id = Utilities::get_template_id( $slug );
|
168 |
+
$meta_settings = get_post_meta( $template_id, '_elementor_page_settings', true );
|
169 |
+
|
170 |
+
$popup_defaults = [
|
171 |
+
'popup_trigger' => 'load',
|
172 |
+
'popup_load_delay' => 1,
|
173 |
+
'popup_scroll_progress' => 10,
|
174 |
+
'popup_inactivity_time' => 15,
|
175 |
+
'popup_element_scroll' => '',
|
176 |
+
'popup_custom_trigger' => '',
|
177 |
+
'popup_specific_date' => date( 'Y-m-d H:i', strtotime( '+1 month' ) + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ),
|
178 |
+
'popup_stop_after_date' => false,
|
179 |
+
'popup_stop_after_date_select' => date( 'Y-m-d H:i', strtotime( '+1 day' ) + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ),
|
180 |
+
'popup_show_again_delay' => 1,
|
181 |
+
'popup_disable_esc_key' => false,
|
182 |
+
'popup_automatic_close_switch' => false,
|
183 |
+
'popup_automatic_close_delay' => 10,
|
184 |
+
'popup_animation' => 'fade',
|
185 |
+
'popup_animation_duration' => 1,
|
186 |
+
'popup_show_for_roles' => '',
|
187 |
+
'popup_show_via_referral' => false,
|
188 |
+
'popup_referral_keyword' => '',
|
189 |
+
'popup_display_as' => 'modal',
|
190 |
+
'popup_show_on_device' => true,
|
191 |
+
'popup_show_on_device_mobile' => true,
|
192 |
+
'popup_show_on_device_tablet' => true,
|
193 |
+
'popup_disable_page_scroll' => true,
|
194 |
+
'popup_overlay_disable_close' => false,
|
195 |
+
'popup_close_button_display_delay' => 0,
|
196 |
+
];
|
197 |
+
|
198 |
+
// Determine Template
|
199 |
+
if ( strpos( $slug, 'popup') ) {
|
200 |
+
$defaults = $popup_defaults;
|
201 |
+
}
|
202 |
+
|
203 |
+
foreach( $defaults as $option => $value ) {
|
204 |
+
if ( isset($meta_settings[$option]) ) {
|
205 |
+
$settings[$option] = $meta_settings[$option];
|
206 |
+
}
|
207 |
+
}
|
208 |
+
|
209 |
+
return array_merge( $defaults, $settings );
|
210 |
+
}
|
211 |
+
|
212 |
+
/**
|
213 |
+
** Check Available User Rols
|
214 |
+
*/
|
215 |
+
public static function check_available_user_roles( $selected_roles ) {
|
216 |
+
if ( empty( $selected_roles ) ) {
|
217 |
+
return true;
|
218 |
+
}
|
219 |
+
|
220 |
+
$current_user = wp_get_current_user();
|
221 |
+
|
222 |
+
if ( ! empty( $current_user->roles ) ) {
|
223 |
+
$role = $current_user->roles[0];
|
224 |
+
} else {
|
225 |
+
$role = 'guest';
|
226 |
+
}
|
227 |
+
|
228 |
+
if ( in_array( $role, $selected_roles ) ) {
|
229 |
+
return true;
|
230 |
+
}
|
231 |
+
|
232 |
+
return false;
|
233 |
+
}
|
234 |
+
}
|
admin/includes/wpr-templates-popups.php
DELETED
@@ -1,373 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
namespace WprAddons\Admin\Includes;
|
3 |
-
|
4 |
-
use WprAddons\Plugin;
|
5 |
-
use WprAddons\Classes\Utilities;
|
6 |
-
|
7 |
-
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
8 |
-
|
9 |
-
/**
|
10 |
-
* WPR_Templates_Popups setup
|
11 |
-
*
|
12 |
-
* @since 1.0
|
13 |
-
*/
|
14 |
-
class WPR_Templates_Popups {
|
15 |
-
|
16 |
-
/**
|
17 |
-
** Instance of Elemenntor Frontend class.
|
18 |
-
*
|
19 |
-
** @var \Elementor\Frontend()
|
20 |
-
*/
|
21 |
-
private static $elementor_instance;
|
22 |
-
|
23 |
-
/**
|
24 |
-
** Constructor
|
25 |
-
*/
|
26 |
-
public function __construct() {
|
27 |
-
// Elementor Frontend
|
28 |
-
self::$elementor_instance = \Elementor\Plugin::instance();
|
29 |
-
|
30 |
-
|
31 |
-
add_action( 'wp_footer', [ $this, 'render_popups' ] );
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
** Popups
|
36 |
-
*/
|
37 |
-
public function render_popups() {
|
38 |
-
$conditions = json_decode( get_option('wpr_popup_conditions'), true );
|
39 |
-
|
40 |
-
if ( ! empty( $conditions ) ) {
|
41 |
-
$conditions = $this->reverse_template_conditions( $conditions );
|
42 |
-
|
43 |
-
// Global
|
44 |
-
if ( isset( $conditions['global'] ) ) {
|
45 |
-
$this->display_popups_by_location( $conditions, 'global' );
|
46 |
-
}
|
47 |
-
|
48 |
-
// Archive
|
49 |
-
$this->archive_pages_popup_conditions( $conditions );
|
50 |
-
|
51 |
-
// Single
|
52 |
-
$this->single_pages_popup_conditions( $conditions );
|
53 |
-
|
54 |
-
// Enqueue ScrolBar JS //tmp - check if displayed multiple times
|
55 |
-
wp_enqueue_script( 'wpr-popup-scroll-js', WPR_ADDONS_URL .'assets/js/lib/perfectscrollbar/perfect-scrollbar.min.js', [ 'jquery' ], '0.4.9' );
|
56 |
-
}
|
57 |
-
}
|
58 |
-
|
59 |
-
/**
|
60 |
-
** Archive Pages Popup Conditions
|
61 |
-
*/
|
62 |
-
public function archive_pages_popup_conditions( $conditions ) {
|
63 |
-
$term_id = '';
|
64 |
-
$term_name = '';
|
65 |
-
$queried_object = get_queried_object();
|
66 |
-
|
67 |
-
// Get Terms
|
68 |
-
if ( ! is_null( $queried_object ) ) {
|
69 |
-
if ( isset( $queried_object->term_id ) && isset( $queried_object->taxonomy ) ) {
|
70 |
-
$term_id = $queried_object->term_id;
|
71 |
-
$term_name = $queried_object->taxonomy;
|
72 |
-
}
|
73 |
-
}
|
74 |
-
|
75 |
-
// Reset
|
76 |
-
$template = null;
|
77 |
-
|
78 |
-
// Archive Pages (includes search)
|
79 |
-
if ( is_archive() || is_search() ) {
|
80 |
-
if ( is_archive() && ! is_search() ) {
|
81 |
-
// Author
|
82 |
-
if ( is_author() ) {
|
83 |
-
if ( isset( $conditions['archive/author'] ) ) {
|
84 |
-
$this->display_popups_by_location( $conditions, 'archive/author' );
|
85 |
-
}
|
86 |
-
}
|
87 |
-
|
88 |
-
// Date
|
89 |
-
if ( is_date() ) {
|
90 |
-
if ( isset( $conditions['archive/date'] ) ) {
|
91 |
-
$this->display_popups_by_location( $conditions, 'archive/date' );
|
92 |
-
}
|
93 |
-
}
|
94 |
-
|
95 |
-
// Category
|
96 |
-
if ( is_category() ) {
|
97 |
-
if ( isset( $conditions['archive/categories/'. $term_id] ) ) {
|
98 |
-
$this->display_popups_by_location( $conditions, 'archive/categories/'. $term_id );
|
99 |
-
}
|
100 |
-
|
101 |
-
if ( isset( $conditions['archive/categories/all'] ) ) {
|
102 |
-
$this->display_popups_by_location( $conditions, 'archive/categories/all' );
|
103 |
-
}
|
104 |
-
}
|
105 |
-
|
106 |
-
// Tag
|
107 |
-
if ( is_tag() ) {
|
108 |
-
if ( isset( $conditions['archive/tags/'. $term_id] ) ) {
|
109 |
-
$this->display_popups_by_location( $conditions, 'archive/tags/'. $term_id );
|
110 |
-
}
|
111 |
-
|
112 |
-
if ( isset( $conditions['archive/tags/all'] ) ) {
|
113 |
-
$this->display_popups_by_location( $conditions, 'archive/tags/all' );
|
114 |
-
}
|
115 |
-
}
|
116 |
-
|
117 |
-
// Custom Taxonomies
|
118 |
-
if ( is_tax() ) {
|
119 |
-
if ( isset( $conditions['archive/'. $term_name .'/'. $term_id] ) ) {
|
120 |
-
$this->display_popups_by_location( $conditions, 'archive/'. $term_name .'/'. $term_id );
|
121 |
-
}
|
122 |
-
|
123 |
-
if ( isset( $conditions['archive/'. $term_name .'/all'] ) ) {
|
124 |
-
$this->display_popups_by_location( $conditions, 'archive/'. $term_name .'/all' );
|
125 |
-
}
|
126 |
-
}
|
127 |
-
|
128 |
-
// Products
|
129 |
-
if ( class_exists( 'WooCommerce' ) && is_shop() ) {
|
130 |
-
if ( isset( $conditions['archive/products'] ) ) {
|
131 |
-
$this->display_popups_by_location( $conditions, 'archive/products' );
|
132 |
-
}
|
133 |
-
}
|
134 |
-
|
135 |
-
// Search Page
|
136 |
-
} else {
|
137 |
-
if ( isset( $conditions['archive/search'] ) ) {
|
138 |
-
$this->display_popups_by_location( $conditions, 'archive/search' );
|
139 |
-
}
|
140 |
-
}
|
141 |
-
|
142 |
-
// Posts Page
|
143 |
-
} elseif ( Utilities::is_blog_archive() ) {
|
144 |
-
if ( isset( $conditions['archive/posts'] ) ) {
|
145 |
-
$this->display_popups_by_location( $conditions, 'archive/posts' );
|
146 |
-
}
|
147 |
-
}
|
148 |
-
}
|
149 |
-
|
150 |
-
|
151 |
-
/**
|
152 |
-
** Single Pages Popup Conditions
|
153 |
-
*/
|
154 |
-
public function single_pages_popup_conditions( $conditions ) {
|
155 |
-
global $post;
|
156 |
-
|
157 |
-
// Get Posts
|
158 |
-
$post_id = is_null($post) ? '' : $post->ID;
|
159 |
-
$post_type = is_null($post) ? '' : $post->post_type;
|
160 |
-
|
161 |
-
// Reset
|
162 |
-
$template = null;
|
163 |
-
|
164 |
-
// Single Pages
|
165 |
-
if ( is_single() || is_front_page() || is_page() || is_404() ) {
|
166 |
-
|
167 |
-
if ( is_single() ) {
|
168 |
-
// Blog Posts
|
169 |
-
if ( 'post' == $post_type ) {
|
170 |
-
if ( isset( $conditions['single/posts/'. $post_id] ) ) {
|
171 |
-
$this->display_popups_by_location( $conditions, 'single/posts/'. $post_id );
|
172 |
-
}
|
173 |
-
|
174 |
-
if ( isset( $conditions['single/posts/all'] ) ) {
|
175 |
-
$this->display_popups_by_location( $conditions, 'single/posts/all' );
|
176 |
-
}
|
177 |
-
|
178 |
-
// CPT
|
179 |
-
} else {
|
180 |
-
if ( isset( $conditions['single/'. $post_type .'/'. $post_id] ) ) {
|
181 |
-
$this->display_popups_by_location( $conditions, 'single/'. $post_type .'/'. $post_id );
|
182 |
-
}
|
183 |
-
|
184 |
-
if ( isset( $conditions['single/'. $post_type .'/all'] ) ) {
|
185 |
-
$this->display_popups_by_location( $conditions, 'single/'. $post_type .'/all' );
|
186 |
-
}
|
187 |
-
}
|
188 |
-
} else {
|
189 |
-
// Front page
|
190 |
-
if ( is_front_page() ) {
|
191 |
-
if ( isset( $conditions['single/front_page'] ) ) {
|
192 |
-
$this->display_popups_by_location( $conditions, 'single/front_page' );
|
193 |
-
}
|
194 |
-
// Error 404 Page
|
195 |
-
} elseif ( is_404() ) {
|
196 |
-
if ( isset( $conditions['single/page_404'] ) ) {
|
197 |
-
$this->display_popups_by_location( $conditions, 'single/page_404' );
|
198 |
-
}
|
199 |
-
// Single Page
|
200 |
-
} elseif ( is_page() ) {
|
201 |
-
if ( isset( $conditions['single/pages/'. $post_id] ) ) {
|
202 |
-
$this->display_popups_by_location( $conditions, 'single/pages/'. $post_id );
|
203 |
-
}
|
204 |
-
|
205 |
-
if ( isset( $conditions['single/pages/all'] ) ) {
|
206 |
-
$this->display_popups_by_location( $conditions, 'single/pages/all' );
|
207 |
-
}
|
208 |
-
}
|
209 |
-
}
|
210 |
-
|
211 |
-
}
|
212 |
-
}
|
213 |
-
|
214 |
-
/**
|
215 |
-
** Reverse Template Conditions
|
216 |
-
*/
|
217 |
-
public function reverse_template_conditions( $conditions ) {
|
218 |
-
$reverse = [];
|
219 |
-
|
220 |
-
foreach ( $conditions as $key => $condition ) {
|
221 |
-
foreach( $condition as $location ) {
|
222 |
-
if ( ! isset( $reverse[$location] ) ) {
|
223 |
-
$reverse[$location] = [ $key ];
|
224 |
-
} else {
|
225 |
-
array_push( $reverse[$location], $key );
|
226 |
-
}
|
227 |
-
}
|
228 |
-
}
|
229 |
-
|
230 |
-
return $reverse;
|
231 |
-
}
|
232 |
-
|
233 |
-
/**
|
234 |
-
** Display Popups by Location
|
235 |
-
*/
|
236 |
-
public function display_popups_by_location( $conditions, $page ) {
|
237 |
-
foreach ( $conditions[$page] as $key => $popup ) {
|
238 |
-
$this->display_elementor_content( $popup );
|
239 |
-
}
|
240 |
-
}
|
241 |
-
|
242 |
-
/**
|
243 |
-
** Display Elementor Content
|
244 |
-
*/
|
245 |
-
public function display_elementor_content( $slug ) {
|
246 |
-
// Deny if not Elemenntor Canvas
|
247 |
-
if ( 'elementor_canvas' !== get_page_template_slug() ) {//tmp
|
248 |
-
// return;
|
249 |
-
}
|
250 |
-
|
251 |
-
$template_name = '';
|
252 |
-
|
253 |
-
$template_id = Utilities::get_template_id( $slug );
|
254 |
-
$get_settings = $this->get_template_settings( $slug );
|
255 |
-
$get_elementor_content = self::$elementor_instance->frontend->get_builder_content( $template_id, false );
|
256 |
-
|
257 |
-
if ( '' === $get_elementor_content ) {
|
258 |
-
return;
|
259 |
-
}
|
260 |
-
|
261 |
-
// Encode Settings
|
262 |
-
$get_encoded_settings = ! empty( $get_settings ) ? wp_json_encode( $get_settings ) : '[]';
|
263 |
-
|
264 |
-
// Template Attributes
|
265 |
-
$template_id_attr = 'id="wpr-popup-id-'. $template_id .'"';
|
266 |
-
$template_class_attr = 'class="wpr-template-popup"';
|
267 |
-
$template_settings_attr = "data-settings='". $get_encoded_settings ."'";
|
268 |
-
|
269 |
-
// Return if NOT available for current user
|
270 |
-
if ( ! $this->check_available_user_roles( $get_settings['popup_show_for_roles'] ) ) {
|
271 |
-
return;
|
272 |
-
}
|
273 |
-
|
274 |
-
if ( ! self::$elementor_instance->preview->is_preview_mode() ) {
|
275 |
-
echo '<div '. $template_id_attr .' '. $template_class_attr .' '. $template_settings_attr .'>';
|
276 |
-
echo '<div class="wpr-template-popup-inner">';
|
277 |
-
|
278 |
-
// Popup Overlay & Close Button
|
279 |
-
echo '<div class="wpr-popup-overlay"></div>';
|
280 |
-
echo '<div class="wpr-popup-close-btn"><i class="eicon-close"></i></div>';
|
281 |
-
|
282 |
-
// Template Container
|
283 |
-
echo '<div class="wpr-popup-container">';
|
284 |
-
|
285 |
-
// Popup Image Overlay & Close Button
|
286 |
-
echo '<div class="wpr-popup-image-overlay"></div>';
|
287 |
-
echo '<div class="wpr-popup-close-btn"><i class="eicon-close"></i></div>';
|
288 |
-
|
289 |
-
// Template Content
|
290 |
-
echo $get_elementor_content;
|
291 |
-
|
292 |
-
echo '</div>';
|
293 |
-
|
294 |
-
echo '</div>';
|
295 |
-
echo '</div>';
|
296 |
-
}
|
297 |
-
}
|
298 |
-
|
299 |
-
/**
|
300 |
-
** Get Template Settings
|
301 |
-
*/
|
302 |
-
public function get_template_settings( $slug ) {
|
303 |
-
$settings = [];
|
304 |
-
$defaults = [];
|
305 |
-
|
306 |
-
$template_id = Utilities::get_template_id( $slug );
|
307 |
-
$meta_settings = get_post_meta( $template_id, '_elementor_page_settings', true );
|
308 |
-
|
309 |
-
$popup_defaults = [
|
310 |
-
'popup_trigger' => 'load',
|
311 |
-
'popup_load_delay' => 1,
|
312 |
-
'popup_scroll_progress' => 10,
|
313 |
-
'popup_inactivity_time' => 15,
|
314 |
-
'popup_element_scroll' => '',
|
315 |
-
'popup_custom_trigger' => '',
|
316 |
-
'popup_specific_date' => date( 'Y-m-d H:i', strtotime( '+1 month' ) + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ),
|
317 |
-
'popup_stop_after_date' => false,
|
318 |
-
'popup_stop_after_date_select' => date( 'Y-m-d H:i', strtotime( '+1 day' ) + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ),
|
319 |
-
'popup_show_again_delay' => 1,
|
320 |
-
'popup_disable_esc_key' => false,
|
321 |
-
'popup_automatic_close_delay' => false,
|
322 |
-
'popup_animation' => 'fade',
|
323 |
-
'popup_animation_duration' => 1,
|
324 |
-
'popup_show_for_roles' => '',
|
325 |
-
'popup_show_via_referral' => false,
|
326 |
-
'popup_referral_keyword' => '',
|
327 |
-
'popup_display_as' => 'modal',
|
328 |
-
'popup_show_on_device' => true,
|
329 |
-
'popup_show_on_device_mobile' => true,
|
330 |
-
'popup_show_on_device_tablet' => true,
|
331 |
-
'popup_disable_page_scroll' => true,
|
332 |
-
'popup_overlay_disable_close' => false,
|
333 |
-
'popup_close_button_display_delay' => 0,
|
334 |
-
'popup_close_button_position' => 'inside',
|
335 |
-
];
|
336 |
-
|
337 |
-
// Determine Template
|
338 |
-
if ( strpos( $slug, 'popup') ) {
|
339 |
-
$defaults = $popup_defaults;
|
340 |
-
}
|
341 |
-
|
342 |
-
foreach( $defaults as $option => $value ) {
|
343 |
-
if ( isset($meta_settings[$option]) ) {
|
344 |
-
$settings[$option] = $meta_settings[$option];
|
345 |
-
}
|
346 |
-
}
|
347 |
-
|
348 |
-
return array_merge( $defaults, $settings );
|
349 |
-
}
|
350 |
-
|
351 |
-
/**
|
352 |
-
** Check Available User Rols
|
353 |
-
*/
|
354 |
-
public function check_available_user_roles( $selected_roles ) {
|
355 |
-
if ( empty( $selected_roles ) ) {
|
356 |
-
return true;
|
357 |
-
}
|
358 |
-
|
359 |
-
$current_user = wp_get_current_user();
|
360 |
-
|
361 |
-
if ( ! empty( $current_user->roles ) ) {
|
362 |
-
$role = $current_user->roles[0];
|
363 |
-
} else {
|
364 |
-
$role = 'guest';
|
365 |
-
}
|
366 |
-
|
367 |
-
if ( in_array( $role, $selected_roles ) ) {
|
368 |
-
return true;
|
369 |
-
}
|
370 |
-
|
371 |
-
return false;
|
372 |
-
}
|
373 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-options.php
CHANGED
@@ -9,9 +9,18 @@ use WprAddons\Admin\Includes\WPR_Templates_Loop;
|
|
9 |
function wpr_addons_add_admin_menu() {
|
10 |
add_menu_page( 'Royal Addons', 'Royal Addons', 'manage_options', 'wpr-addons', 'wpr_addons_settings_page', 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iNzUiIHZpZXdCb3g9IjAgMCA5NyA3NSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuMDM2NDA4NiAyMy4yODlDLTAuNTc1NDkgMTguNTIxIDYuNjg4NzMgMTYuMzY2NiA5LjU0OSAyMC40Njc4TDQyLjgzNjUgNjguMTk3MkM0NC45MTgxIDcxLjE4MiA0Mi40NDk0IDc1IDM4LjQzNzggNzVIMTEuMjc1NkM4LjY1NDc1IDc1IDYuNDUyNjQgNzMuMjg1NSA2LjE2MTcgNzEuMDE4NEwwLjAzNjQwODYgMjMuMjg5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTk2Ljk2MzYgMjMuMjg5Qzk3LjU3NTUgMTguNTIxIDkwLjMxMTMgMTYuMzY2NiA4Ny40NTEgMjAuNDY3OEw1NC4xNjM1IDY4LjE5NzJDNTIuMDgxOCA3MS4xODIgNTQuNTUwNiA3NSA1OC41NjIyIDc1SDg1LjcyNDRDODguMzQ1MiA3NSA5MC41NDc0IDczLjI4NTUgOTAuODM4MyA3MS4wMTg0TDk2Ljk2MzYgMjMuMjg5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTUzLjI0MTIgNC40ODUyN0M1My4yNDEyIC0wLjI3MDc2MSA0NS44NDg1IC0xLjc0ODAzIDQzLjQ2NTEgMi41MzE3NEw2LjY4OTkxIDY4LjU2NzdDNS4wMzM0OSA3MS41NDIxIDcuNTIyNzIgNzUgMTEuMzIwMyA3NUg0OC4wOTU1QzUwLjkzNzQgNzUgNTMuMjQxMiA3Mi45OTQ4IDUzLjI0MTIgNzAuNTIxMlY0LjQ4NTI3WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTQzLjc1ODggNC40ODUyN0M0My43NTg4IC0wLjI3MDc2MSA1MS4xNTE1IC0xLjc0ODAzIDUzLjUzNDkgMi41MzE3NEw5MC4zMTAxIDY4LjU2NzdDOTEuOTY2NSA3MS41NDIxIDg5LjQ3NzMgNzUgODUuNjc5NyA3NUg0OC45MDQ1QzQ2LjA2MjYgNzUgNDMuNzU4OCA3Mi45OTQ4IDQzLjc1ODggNzAuNTIxMlY0LjQ4NTI3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==', '58.6' );
|
11 |
add_action( 'admin_init', 'wpr_register_addons_settings' );
|
|
|
12 |
}
|
13 |
add_action( 'admin_menu', 'wpr_addons_add_admin_menu' );
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
// Register Settings
|
16 |
function wpr_register_addons_settings() {
|
17 |
// Integrations
|
@@ -31,6 +40,12 @@ function wpr_register_addons_settings() {
|
|
31 |
register_setting( 'wpr-settings', 'wpr_lb_arrow_size' );
|
32 |
register_setting( 'wpr-settings', 'wpr_lb_text_size' );
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
// Element Toggle
|
35 |
foreach ( Utilities::get_registered_modules() as $title => $data ) {
|
36 |
$slug = $data[0];
|
@@ -61,86 +76,19 @@ function wpr_addons_settings_page() {
|
|
61 |
// Active Tab
|
62 |
$active_tab = isset( $_GET['tab'] ) ? esc_attr($_GET['tab']) : 'wpr_tab_elements';
|
63 |
|
|
|
|
|
|
|
64 |
?>
|
65 |
|
66 |
-
<!-- Template ID Holder -->
|
67 |
-
<input type="hidden" name="wpr_template" id="wpr_template" value="">
|
68 |
-
|
69 |
-
<!-- Conditions Popup -->
|
70 |
-
<div class="wpr-condition-popup-wrap">
|
71 |
-
<div class="wpr-condition-popup">
|
72 |
-
<h2><?php esc_html_e( 'Please select conditions to display your Header', 'wpr-addons' ); ?></h2>
|
73 |
-
<span class="close-popup dashicons dashicons-no-alt"></span>
|
74 |
-
|
75 |
-
<!-- Conditions -->
|
76 |
-
<div class="wpr-conditions-wrap">
|
77 |
-
<div class="wpr-conditions-sample">
|
78 |
-
<!-- Global -->
|
79 |
-
<select name="global_condition_select" class="global-condition-select">
|
80 |
-
<option value="global"><?php esc_html_e( 'Entire Site', 'wpr-addons' ); ?></option>
|
81 |
-
<option value="archive"><?php esc_html_e( 'Archives', 'wpr-addons' ); ?></option>
|
82 |
-
<option value="single"><?php esc_html_e( 'Singular', 'wpr-addons' ); ?></option>
|
83 |
-
</select>
|
84 |
-
<!-- Archive -->
|
85 |
-
<select name="archives_condition_select" class="archives-condition-select">
|
86 |
-
<option value="posts"><?php esc_html_e( 'Posts Archive', 'wpr-addons' ); ?></option>
|
87 |
-
<option value="author"><?php esc_html_e( 'Author Archive', 'wpr-addons' ); ?></option>
|
88 |
-
<option value="date"><?php esc_html_e( 'Date Archive', 'wpr-addons' ); ?></option>
|
89 |
-
<option value="search"><?php esc_html_e( 'Search Results', 'wpr-addons' ); ?></option>
|
90 |
-
<option value="categories" class="custom-ids"><?php esc_html_e( 'Post Categories', 'wpr-addons' ); ?></option>
|
91 |
-
<option value="tags" class="custom-ids"><?php esc_html_e( 'Post Tags', 'wpr-addons' ); ?></option>
|
92 |
-
<?php // Custom Taxonomies
|
93 |
-
$custom_taxonomies = Utilities::get_custom_types_of( 'tax', true );
|
94 |
-
foreach ($custom_taxonomies as $key => $value) {
|
95 |
-
// Add Shop Archives
|
96 |
-
if ( 'product_cat' === $key ) {
|
97 |
-
echo '<option value="products">'. esc_html__( 'Products Archive', 'wpr-addons' ) .'</option>';
|
98 |
-
}
|
99 |
-
// List Taxonomies
|
100 |
-
echo '<option value="'. esc_attr($key) .'" class="custom-type-ids">'. esc_html($value) .'</option>';
|
101 |
-
}
|
102 |
-
?>
|
103 |
-
</select>
|
104 |
-
<!-- Single -->
|
105 |
-
<select name="singles_condition_select" class="singles-condition-select">
|
106 |
-
<option value="front_page"><?php esc_html_e( 'Front Page', 'wpr-addons' ); ?></option>
|
107 |
-
<option value="page_404"><?php esc_html_e( '404 Page', 'wpr-addons' ); ?></option>
|
108 |
-
<option value="pages" class="custom-ids"><?php esc_html_e( 'Pages', 'wpr-addons' ); ?></option>
|
109 |
-
<option value="posts" class="custom-ids"><?php esc_html_e( 'Posts', 'wpr-addons' ); ?></option>
|
110 |
-
<?php // Custom Post Types
|
111 |
-
$custom_taxonomies = Utilities::get_custom_types_of( 'post', true );
|
112 |
-
foreach ($custom_taxonomies as $key => $value) {
|
113 |
-
echo '<option value="'. esc_attr($key) .'" class="custom-type-ids">'. esc_html($value) .'</option>';
|
114 |
-
}
|
115 |
-
?>
|
116 |
-
</select>
|
117 |
-
<input type="text" name="condition_input_ids" class="condition-input-ids">
|
118 |
-
<span class="delete-conditions dashicons dashicons-no-alt"></span>
|
119 |
-
</div>
|
120 |
-
</div>
|
121 |
-
|
122 |
-
<!-- Action Buttons -->
|
123 |
-
<span class="add-conditions button"><?php esc_html_e( 'Add Conditions', 'wpr-addons' ); ?></span>
|
124 |
-
<span class="save-conditions button button-primary"><?php esc_html_e( 'Save Conditions', 'wpr-addons' ); ?></span>
|
125 |
-
|
126 |
-
</div>
|
127 |
-
</div>
|
128 |
-
|
129 |
-
<!-- Custom Template Popup -->
|
130 |
-
<div class="user-template-popup-wrap">
|
131 |
-
<div class="user-template-popup">
|
132 |
-
<input type="text" name="user_template_title" class="user-template-title" placeholder="<?php esc_html_e( 'Enter Template Title', 'wpr-addons' ); ?>">
|
133 |
-
<input type="hidden" name="user_template_type" class="user-template-type">
|
134 |
-
<span class="create-template"><?php esc_html_e( 'Create Template', 'wpr-addons' ); ?></span>
|
135 |
-
<span class="close-popup dashicons dashicons-no-alt"></span>
|
136 |
-
</div>
|
137 |
-
</div>
|
138 |
-
|
139 |
<!-- Tabs -->
|
140 |
<div class="nav-tab-wrapper wpr-nav-tab-wrapper">
|
141 |
<a href="?page=wpr-addons&tab=wpr_tab_elements" data-title="Elements" class="nav-tab <?php echo $active_tab == 'wpr_tab_elements' ? 'nav-tab-active' : ''; ?>">
|
142 |
<?php esc_html_e( 'Elements', 'wpr-addons' ); ?>
|
143 |
</a>
|
|
|
|
|
|
|
144 |
<a href="?page=wpr-addons&tab=wpr_tab_my_templates" data-title="My Templates" class="nav-tab <?php echo $active_tab == 'wpr_tab_my_templates' ? 'nav-tab-active' : ''; ?>">
|
145 |
<?php esc_html_e( 'My Templates', 'wpr-addons' ); ?>
|
146 |
</a>
|
@@ -203,7 +151,7 @@ function wpr_addons_settings_page() {
|
|
203 |
</div>
|
204 |
<?php endif; ?>
|
205 |
|
206 |
-
<?php Wpr_Templates_Loop::
|
207 |
|
208 |
<?php elseif ( $active_tab == 'wpr_tab_settings' ) : ?>
|
209 |
|
@@ -308,6 +256,35 @@ function wpr_addons_settings_page() {
|
|
308 |
|
309 |
<?php endif; ?>
|
310 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
</form>
|
312 |
</div>
|
313 |
|
9 |
function wpr_addons_add_admin_menu() {
|
10 |
add_menu_page( 'Royal Addons', 'Royal Addons', 'manage_options', 'wpr-addons', 'wpr_addons_settings_page', 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iNzUiIHZpZXdCb3g9IjAgMCA5NyA3NSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuMDM2NDA4NiAyMy4yODlDLTAuNTc1NDkgMTguNTIxIDYuNjg4NzMgMTYuMzY2NiA5LjU0OSAyMC40Njc4TDQyLjgzNjUgNjguMTk3MkM0NC45MTgxIDcxLjE4MiA0Mi40NDk0IDc1IDM4LjQzNzggNzVIMTEuMjc1NkM4LjY1NDc1IDc1IDYuNDUyNjQgNzMuMjg1NSA2LjE2MTcgNzEuMDE4NEwwLjAzNjQwODYgMjMuMjg5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTk2Ljk2MzYgMjMuMjg5Qzk3LjU3NTUgMTguNTIxIDkwLjMxMTMgMTYuMzY2NiA4Ny40NTEgMjAuNDY3OEw1NC4xNjM1IDY4LjE5NzJDNTIuMDgxOCA3MS4xODIgNTQuNTUwNiA3NSA1OC41NjIyIDc1SDg1LjcyNDRDODguMzQ1MiA3NSA5MC41NDc0IDczLjI4NTUgOTAuODM4MyA3MS4wMTg0TDk2Ljk2MzYgMjMuMjg5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTUzLjI0MTIgNC40ODUyN0M1My4yNDEyIC0wLjI3MDc2MSA0NS44NDg1IC0xLjc0ODAzIDQzLjQ2NTEgMi41MzE3NEw2LjY4OTkxIDY4LjU2NzdDNS4wMzM0OSA3MS41NDIxIDcuNTIyNzIgNzUgMTEuMzIwMyA3NUg0OC4wOTU1QzUwLjkzNzQgNzUgNTMuMjQxMiA3Mi45OTQ4IDUzLjI0MTIgNzAuNTIxMlY0LjQ4NTI3WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTQzLjc1ODggNC40ODUyN0M0My43NTg4IC0wLjI3MDc2MSA1MS4xNTE1IC0xLjc0ODAzIDUzLjUzNDkgMi41MzE3NEw5MC4zMTAxIDY4LjU2NzdDOTEuOTY2NSA3MS41NDIxIDg5LjQ3NzMgNzUgODUuNjc5NyA3NUg0OC45MDQ1QzQ2LjA2MjYgNzUgNDMuNzU4OCA3Mi45OTQ4IDQzLjc1ODggNzAuNTIxMlY0LjQ4NTI3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==', '58.6' );
|
11 |
add_action( 'admin_init', 'wpr_register_addons_settings' );
|
12 |
+
add_filter( 'plugin_action_links_royal-elementor-addons/wpr-addons.php', 'wpr_settings_link' );
|
13 |
}
|
14 |
add_action( 'admin_menu', 'wpr_addons_add_admin_menu' );
|
15 |
|
16 |
+
// Add Settings page link to plugins screen
|
17 |
+
function wpr_settings_link( $links ) {
|
18 |
+
$settings_link = '<a href="admin.php?page=wpr-addons">Settings</a>';
|
19 |
+
array_push( $links, $settings_link );
|
20 |
+
|
21 |
+
return $links;
|
22 |
+
}
|
23 |
+
|
24 |
// Register Settings
|
25 |
function wpr_register_addons_settings() {
|
26 |
// Integrations
|
40 |
register_setting( 'wpr-settings', 'wpr_lb_arrow_size' );
|
41 |
register_setting( 'wpr-settings', 'wpr_lb_text_size' );
|
42 |
|
43 |
+
// Extensions
|
44 |
+
register_setting('wpr-extension-settings', 'wpr-particles');
|
45 |
+
register_setting('wpr-extension-settings', 'wpr-parallax-background');
|
46 |
+
register_setting('wpr-extension-settings', 'wpr-parallax-multi-layer');
|
47 |
+
register_setting('wpr-extension-settings', 'wpr-sticky-section');
|
48 |
+
|
49 |
// Element Toggle
|
50 |
foreach ( Utilities::get_registered_modules() as $title => $data ) {
|
51 |
$slug = $data[0];
|
76 |
// Active Tab
|
77 |
$active_tab = isset( $_GET['tab'] ) ? esc_attr($_GET['tab']) : 'wpr_tab_elements';
|
78 |
|
79 |
+
// Render Create Templte Popup
|
80 |
+
WPR_Templates_Loop::render_create_template_popup();
|
81 |
+
|
82 |
?>
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
<!-- Tabs -->
|
85 |
<div class="nav-tab-wrapper wpr-nav-tab-wrapper">
|
86 |
<a href="?page=wpr-addons&tab=wpr_tab_elements" data-title="Elements" class="nav-tab <?php echo $active_tab == 'wpr_tab_elements' ? 'nav-tab-active' : ''; ?>">
|
87 |
<?php esc_html_e( 'Elements', 'wpr-addons' ); ?>
|
88 |
</a>
|
89 |
+
<a href="?page=wpr-addons&tab=wpr_tab_extensions" data-title="Extensions" class="nav-tab <?php echo $active_tab == 'wpr_tab_extensions' ? 'nav-tab-active' : ''; ?>">
|
90 |
+
<?php esc_html_e( 'Extensions', 'wpr-addons' ); ?>
|
91 |
+
</a>
|
92 |
<a href="?page=wpr-addons&tab=wpr_tab_my_templates" data-title="My Templates" class="nav-tab <?php echo $active_tab == 'wpr_tab_my_templates' ? 'nav-tab-active' : ''; ?>">
|
93 |
<?php esc_html_e( 'My Templates', 'wpr-addons' ); ?>
|
94 |
</a>
|
151 |
</div>
|
152 |
<?php endif; ?>
|
153 |
|
154 |
+
<?php Wpr_Templates_Loop::render_elementor_saved_templates(); ?>
|
155 |
|
156 |
<?php elseif ( $active_tab == 'wpr_tab_settings' ) : ?>
|
157 |
|
256 |
|
257 |
<?php endif; ?>
|
258 |
|
259 |
+
<?php if ( $active_tab == 'wpr_tab_extensions' ) :
|
260 |
+
// Extensions
|
261 |
+
settings_fields( 'wpr-extension-settings' );
|
262 |
+
do_settings_sections( 'wpr-extension-settings' );
|
263 |
+
|
264 |
+
global $new_allowed_options;
|
265 |
+
|
266 |
+
// array of option names
|
267 |
+
$option_names = $new_allowed_options[ 'wpr-extension-settings' ];
|
268 |
+
|
269 |
+
echo '<div class="wpr-elements">';
|
270 |
+
|
271 |
+
foreach ($option_names as $option_name) {
|
272 |
+
$option_title = ucwords( preg_replace( '/-/i', ' ', preg_replace('/wpr-||-toggle/i', '', $option_name ) ));
|
273 |
+
|
274 |
+
echo '<div class="wpr-element">';
|
275 |
+
echo '<div class="wpr-element-info">';
|
276 |
+
echo '<h3>' . $option_title . '</h3>';
|
277 |
+
echo '<input type="checkbox" name="'. $option_name .'" id="'. $option_name .'" '. checked( get_option(''. $option_name .'', 'on'), 'on', false ) .'>';
|
278 |
+
echo '<label for="'. $option_name .'"></label>';
|
279 |
+
echo '</div>';
|
280 |
+
echo '</div>';
|
281 |
+
}
|
282 |
+
|
283 |
+
echo '</div>';
|
284 |
+
|
285 |
+
submit_button( '', 'wpr-options-button' );
|
286 |
+
endif; ?>
|
287 |
+
|
288 |
</form>
|
289 |
</div>
|
290 |
|
admin/popups.php
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
4 |
+
|
5 |
+
use WprAddons\Admin\Includes\WPR_Templates_Loop;
|
6 |
+
|
7 |
+
// Register Menus
|
8 |
+
function wpr_addons_add_popups_menu() {
|
9 |
+
add_submenu_page( 'wpr-addons', 'Popups', 'Popups', 'manage_options', 'wpr-popups', 'wpr_addons_popups_page' );
|
10 |
+
}
|
11 |
+
add_action( 'admin_menu', 'wpr_addons_add_popups_menu' );
|
12 |
+
|
13 |
+
function wpr_addons_popups_page() {
|
14 |
+
|
15 |
+
?>
|
16 |
+
|
17 |
+
<div class="wrap wpr-settings-page-wrap">
|
18 |
+
|
19 |
+
<div class="wpr-settings-page-header">
|
20 |
+
<h1><?php esc_html_e( 'Royal Elementor Addons', 'wpr-addons' ); ?></h1>
|
21 |
+
<p><?php esc_html_e( 'The most powerful Elementor Addons in the universe.', 'wpr-addons' ); ?></p>
|
22 |
+
|
23 |
+
<!-- Custom Template -->
|
24 |
+
<div class="wpr-user-template">
|
25 |
+
<span><?php esc_html_e( 'Create Template', 'wpr-addons' ); ?></span>
|
26 |
+
<span class="plus-icon">+</span>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
|
30 |
+
<div class="wpr-settings-page">
|
31 |
+
<form method="post" action="options.php">
|
32 |
+
<?php
|
33 |
+
|
34 |
+
// Active Tab
|
35 |
+
$active_tab = isset( $_GET['tab'] ) ? esc_attr($_GET['tab']) : 'wpr_tab_popups';
|
36 |
+
|
37 |
+
?>
|
38 |
+
|
39 |
+
<!-- Template ID Holder -->
|
40 |
+
<input type="hidden" name="wpr_template" id="wpr_template" value="">
|
41 |
+
|
42 |
+
<!-- Conditions Popup -->
|
43 |
+
<?php WPR_Templates_Loop::render_conditions_popup(); ?>
|
44 |
+
|
45 |
+
<!-- Create Templte Popup -->
|
46 |
+
<?php WPR_Templates_Loop::render_create_template_popup(); ?>
|
47 |
+
|
48 |
+
<!-- Tabs -->
|
49 |
+
<div class="nav-tab-wrapper wpr-nav-tab-wrapper">
|
50 |
+
<a href="?page=wpr-theme-builder&tab=wpr_tab_popups" data-title="popup" class="nav-tab <?php echo $active_tab == 'wpr_tab_popups' ? 'nav-tab-active' : ''; ?>">
|
51 |
+
<?php esc_html_e( 'Popups', 'wpr-addons' ); ?>
|
52 |
+
</a>
|
53 |
+
</div>
|
54 |
+
|
55 |
+
<?php if ( $active_tab == 'wpr_tab_popups' ) : ?>
|
56 |
+
|
57 |
+
<!-- Save Conditions -->
|
58 |
+
<input type="hidden" name="wpr_popup_conditions" id="wpr_popup_conditions" value="<?php echo esc_attr(get_option('wpr_popup_conditions', '[]')); ?>">
|
59 |
+
|
60 |
+
<?php WPR_Templates_Loop::render_theme_builder_templates( 'popup' ); ?>
|
61 |
+
|
62 |
+
<?php endif; ?>
|
63 |
+
|
64 |
+
</form>
|
65 |
+
</div>
|
66 |
+
|
67 |
+
</div>
|
68 |
+
|
69 |
+
|
70 |
+
<?php
|
71 |
+
|
72 |
+
} // End wpr_addons_popups_page()
|
admin/templates/views/astra/class-astra-compat.php
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use WprAddons\Admin\Includes\WPR_Render_Templates;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Wpr_Astra_Compat setup
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Astra theme compatibility.
|
12 |
+
*/
|
13 |
+
class Wpr_Astra_Compat {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Instance of Wpr_Astra_Compat.
|
17 |
+
*
|
18 |
+
* @var Wpr_Astra_Compat
|
19 |
+
*/
|
20 |
+
private static $instance;
|
21 |
+
|
22 |
+
/**
|
23 |
+
* WPR_Render_Templates() Class
|
24 |
+
*/
|
25 |
+
private $render_templates;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Initiator
|
29 |
+
*/
|
30 |
+
public static function instance() {
|
31 |
+
if ( ! isset( self::$instance ) ) {
|
32 |
+
self::$instance = new Wpr_Astra_Compat();
|
33 |
+
|
34 |
+
add_action( 'wp', [ self::$instance, 'hooks' ] );
|
35 |
+
}
|
36 |
+
|
37 |
+
return self::$instance;
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Run all the Actions / Filters.
|
42 |
+
*/
|
43 |
+
public function hooks() {
|
44 |
+
$this->render_templates = new WPR_Render_Templates();
|
45 |
+
|
46 |
+
if ( $this->render_templates->is_template_available('header') ) {
|
47 |
+
add_action( 'template_redirect', [ $this, 'astra_setup_header' ], 10 );
|
48 |
+
add_action( 'astra_header', [$this->render_templates, 'replace_header'] );
|
49 |
+
}
|
50 |
+
|
51 |
+
if ( $this->render_templates->is_template_available('footer') ) {
|
52 |
+
add_action( 'template_redirect', [ $this, 'astra_setup_footer' ], 10 );
|
53 |
+
add_action( 'astra_footer', [$this->render_templates, 'replace_footer'] );
|
54 |
+
}
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Disable header from the theme.
|
59 |
+
*/
|
60 |
+
public function astra_setup_header() {
|
61 |
+
remove_action( 'astra_header', 'astra_header_markup' );
|
62 |
+
|
63 |
+
// Remove the new header builder action.
|
64 |
+
if ( class_exists( '\Astra_Builder_Helper' ) && \Astra_Builder_Helper::$is_header_footer_builder_active ) {
|
65 |
+
remove_action( 'astra_header', [ Astra_Builder_Header::get_instance(), 'prepare_header_builder_markup' ] );
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Disable footer from the theme.
|
71 |
+
*/
|
72 |
+
public function astra_setup_footer() {
|
73 |
+
remove_action( 'astra_footer', 'astra_footer_markup' );
|
74 |
+
|
75 |
+
// Remove the new footer builder action.
|
76 |
+
if ( class_exists( '\Astra_Builder_Helper' ) && \Astra_Builder_Helper::$is_header_footer_builder_active ) {
|
77 |
+
remove_action( 'astra_footer', [ Astra_Builder_Footer::get_instance(), 'footer_markup' ] );
|
78 |
+
}
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
Wpr_Astra_Compat::instance();
|
admin/templates/views/generatepress/class-generatepress-compat.php
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use WprAddons\Admin\Includes\WPR_Render_Templates;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Wpr_GeneratePress_Compat setup
|
7 |
+
*
|
8 |
+
* @since 1.0
|
9 |
+
*/
|
10 |
+
class Wpr_GeneratePress_Compat {
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Instance of Wpr_GeneratePress_Compat
|
14 |
+
*
|
15 |
+
* @var Wpr_GeneratePress_Compat
|
16 |
+
*/
|
17 |
+
private static $instance;
|
18 |
+
|
19 |
+
/**
|
20 |
+
* WPR_Render_Templates() Class
|
21 |
+
*/
|
22 |
+
private $render_templates;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Initiator
|
26 |
+
*/
|
27 |
+
public static function instance() {
|
28 |
+
if ( ! isset( self::$instance ) ) {
|
29 |
+
self::$instance = new Wpr_GeneratePress_Compat();
|
30 |
+
|
31 |
+
add_action( 'wp', [ self::$instance, 'hooks' ] );
|
32 |
+
}
|
33 |
+
|
34 |
+
return self::$instance;
|
35 |
+
}
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Run all the Actions / Filters.
|
39 |
+
*/
|
40 |
+
public function hooks() {
|
41 |
+
$this->render_templates = new WPR_Render_Templates();
|
42 |
+
|
43 |
+
if ( $this->render_templates->is_template_available('header') ) {
|
44 |
+
add_action( 'template_redirect', [ $this, 'generatepress_setup_header' ] );
|
45 |
+
add_action( 'generate_header', [$this->render_templates, 'replace_header'] );
|
46 |
+
}
|
47 |
+
|
48 |
+
if ( $this->render_templates->is_template_available('footer') ) {
|
49 |
+
add_action( 'template_redirect', [ $this, 'generatepress_setup_footer' ] );
|
50 |
+
add_action( 'generate_footer', [$this->render_templates, 'replace_footer'] );
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
/**
|
55 |
+
* Disable header from the theme.
|
56 |
+
*/
|
57 |
+
public function generatepress_setup_header() {
|
58 |
+
remove_action( 'generate_header', 'generate_construct_header' );
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Disable footer from the theme.
|
63 |
+
*/
|
64 |
+
public function generatepress_setup_footer() {
|
65 |
+
remove_action( 'generate_footer', 'generate_construct_footer_widgets', 5 );
|
66 |
+
remove_action( 'generate_footer', 'generate_construct_footer' );
|
67 |
+
}
|
68 |
+
|
69 |
+
}
|
70 |
+
|
71 |
+
Wpr_GeneratePress_Compat::instance();
|
admin/templates/views/oceanwp/class-oceanwp-compat.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use WprAddons\Admin\Includes\WPR_Render_Templates;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* OceanWP theme compatibility.
|
7 |
+
*/
|
8 |
+
class Wpr_OceanWP_Compat {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Instance of Wpr_OceanWP_Compat.
|
12 |
+
*
|
13 |
+
* @var Wpr_OceanWP_Compat
|
14 |
+
*/
|
15 |
+
private static $instance;
|
16 |
+
|
17 |
+
/**
|
18 |
+
* WPR_Render_Templates() Class
|
19 |
+
*/
|
20 |
+
private $render_templates;
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Initiator
|
24 |
+
*/
|
25 |
+
public static function instance() {
|
26 |
+
if ( ! isset( self::$instance ) ) {
|
27 |
+
self::$instance = new Wpr_OceanWP_Compat();
|
28 |
+
|
29 |
+
add_action( 'wp', [ self::$instance, 'hooks' ] );
|
30 |
+
}
|
31 |
+
|
32 |
+
return self::$instance;
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Run all the Actions / Filters.
|
37 |
+
*/
|
38 |
+
public function hooks() {
|
39 |
+
$this->render_templates = new WPR_Render_Templates();
|
40 |
+
|
41 |
+
if ( $this->render_templates->is_template_available('header') ) {
|
42 |
+
add_action( 'template_redirect', [ $this, 'setup_header' ], 10 );
|
43 |
+
add_action( 'ocean_header', [$this->render_templates, 'replace_header'] );
|
44 |
+
}
|
45 |
+
|
46 |
+
if ( $this->render_templates->is_template_available('footer') ) {
|
47 |
+
add_action( 'template_redirect', [ $this, 'setup_footer' ], 10 );
|
48 |
+
add_action( 'ocean_footer', [$this->render_templates, 'replace_footer'] );
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Disable header from the theme.
|
54 |
+
*/
|
55 |
+
public function setup_header() {
|
56 |
+
remove_action( 'ocean_top_bar', 'oceanwp_top_bar_template' );
|
57 |
+
remove_action( 'ocean_header', 'oceanwp_header_template' );
|
58 |
+
remove_action( 'ocean_page_header', 'oceanwp_page_header_template' );
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Disable footer from the theme.
|
63 |
+
*/
|
64 |
+
public function setup_footer() {
|
65 |
+
remove_action( 'ocean_footer', 'oceanwp_footer_template' );
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
69 |
+
|
70 |
+
Wpr_OceanWP_Compat::instance();
|
admin/templates/views/royal/theme-footer-royal.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
use WprAddons\Admin\Includes\WPR_Conditions_Manager;
|
3 |
+
use WprAddons\Classes\Utilities;
|
4 |
+
|
5 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
+
exit; // Exit if accessed directly.
|
7 |
+
}
|
8 |
+
|
9 |
+
$conditions = json_decode( get_option('wpr_footer_conditions', '[]'), true );
|
10 |
+
$template_slug = WPR_Conditions_Manager::header_footer_display_conditions($conditions);
|
11 |
+
|
12 |
+
// Render Royal Addons Header
|
13 |
+
Utilities::render_elementor_template($template_slug);
|
14 |
+
|
15 |
+
wp_footer();
|
16 |
+
|
17 |
+
// Royal themes compatibility
|
18 |
+
echo '</div>'; // .page-content
|
19 |
+
echo '</div>'; // #page-wrap
|
20 |
+
|
21 |
+
?>
|
22 |
+
|
23 |
+
</body>
|
24 |
+
</html>
|
admin/templates/views/royal/theme-header-royal.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
use WprAddons\Admin\Includes\WPR_Conditions_Manager;
|
3 |
+
use WprAddons\Classes\Utilities;
|
4 |
+
|
5 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
+
exit; // Exit if accessed directly.
|
7 |
+
}
|
8 |
+
|
9 |
+
$conditions = json_decode( get_option('wpr_header_conditions', '[]'), true );
|
10 |
+
$template_slug = WPR_Conditions_Manager::header_footer_display_conditions($conditions);
|
11 |
+
|
12 |
+
?>
|
13 |
+
|
14 |
+
<!DOCTYPE html>
|
15 |
+
<html <?php language_attributes(); ?>>
|
16 |
+
<head>
|
17 |
+
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
18 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
19 |
+
<?php if ( ! current_theme_supports( 'title-tag' ) ) : ?>
|
20 |
+
<title>
|
21 |
+
<?php echo wp_get_document_title(); ?>
|
22 |
+
</title>
|
23 |
+
<?php endif; ?>
|
24 |
+
<?php wp_head(); ?>
|
25 |
+
</head>
|
26 |
+
|
27 |
+
<body <?php body_class(); ?>>
|
28 |
+
|
29 |
+
<?php
|
30 |
+
|
31 |
+
do_action( 'wp_body_open' );
|
32 |
+
|
33 |
+
// Royal themes compatibility
|
34 |
+
echo '<div id="page-wrap">';
|
35 |
+
|
36 |
+
// Render Royal Addons Header
|
37 |
+
Utilities::render_elementor_template($template_slug);
|
38 |
+
|
39 |
+
// Royal themes compatibility
|
40 |
+
echo '<div class="page-content">';
|
admin/templates/views/storefront/class-storefront-compat.php
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use WprAddons\Admin\Includes\WPR_Render_Templates;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Astra theme compatibility.
|
7 |
+
*/
|
8 |
+
class Wpr_Storefront_Compat {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Instance of Wpr_Storefront_Compat.
|
12 |
+
*
|
13 |
+
* @var Wpr_Storefront_Compat
|
14 |
+
*/
|
15 |
+
private static $instance;
|
16 |
+
|
17 |
+
/**
|
18 |
+
* WPR_Render_Templates() Class
|
19 |
+
*/
|
20 |
+
private $render_templates;
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Initiator
|
24 |
+
*/
|
25 |
+
public static function instance() {
|
26 |
+
if ( ! isset( self::$instance ) ) {
|
27 |
+
self::$instance = new Wpr_Storefront_Compat();
|
28 |
+
|
29 |
+
add_action( 'wp', [ self::$instance, 'hooks' ] );
|
30 |
+
}
|
31 |
+
|
32 |
+
return self::$instance;
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Run all the Actions / Filters.
|
37 |
+
*/
|
38 |
+
public function hooks() {
|
39 |
+
$this->render_templates = new WPR_Render_Templates();
|
40 |
+
|
41 |
+
if ( $this->render_templates->is_template_available('header') ) {
|
42 |
+
add_action( 'template_redirect', [ $this, 'setup_header' ], 10 );
|
43 |
+
add_action( 'storefront_before_header', [$this->render_templates, 'replace_header'], 500 );
|
44 |
+
}
|
45 |
+
|
46 |
+
if ( $this->render_templates->is_template_available('footer') ) {
|
47 |
+
add_action( 'template_redirect', [ $this, 'setup_footer' ], 10 );
|
48 |
+
add_action( 'storefront_after_footer', [$this->render_templates, 'replace_footer'], 500 );
|
49 |
+
}
|
50 |
+
|
51 |
+
if ( $this->render_templates->is_template_available('header') || $this->render_templates->is_template_available('footer') ) {
|
52 |
+
add_action( 'wp_head', [ $this, 'styles' ] );
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Add inline CSS to hide empty divs for header and footer in storefront
|
58 |
+
*
|
59 |
+
* @since 1.2.0
|
60 |
+
* @return void
|
61 |
+
*/
|
62 |
+
public function styles() {
|
63 |
+
$css = '<style id="wpr-disable-storefront-hf">';
|
64 |
+
|
65 |
+
if ( $this->render_templates->is_template_available('header') ) {
|
66 |
+
$css .= '.site-header {
|
67 |
+
display: none;
|
68 |
+
}';
|
69 |
+
}
|
70 |
+
|
71 |
+
if ( $this->render_templates->is_template_available('footer') ) {
|
72 |
+
$css .= '.site-footer {
|
73 |
+
display: none;
|
74 |
+
}';
|
75 |
+
}
|
76 |
+
|
77 |
+
$css .= '</style>';
|
78 |
+
|
79 |
+
echo $css;
|
80 |
+
}
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Disable header from the theme.
|
84 |
+
*/
|
85 |
+
public function setup_header() {
|
86 |
+
for ( $priority = 0; $priority < 200; $priority ++ ) {
|
87 |
+
remove_all_actions( 'storefront_header', $priority );
|
88 |
+
}
|
89 |
+
}
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Disable footer from the theme.
|
93 |
+
*/
|
94 |
+
public function setup_footer() {
|
95 |
+
for ( $priority = 0; $priority < 200; $priority ++ ) {
|
96 |
+
remove_all_actions( 'storefront_footer', $priority );
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
+
}
|
101 |
+
|
102 |
+
Wpr_Storefront_Compat::instance();
|
admin/templates/views/theme-footer.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
use WprAddons\Admin\Includes\WPR_Conditions_Manager;
|
3 |
+
use WprAddons\Classes\Utilities;
|
4 |
+
|
5 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
+
exit; // Exit if accessed directly.
|
7 |
+
}
|
8 |
+
|
9 |
+
$conditions = json_decode( get_option('wpr_footer_conditions', '[]'), true );
|
10 |
+
$template_slug = WPR_Conditions_Manager::header_footer_display_conditions($conditions);
|
11 |
+
|
12 |
+
// Render Royal Addons Header
|
13 |
+
Utilities::render_elementor_template($template_slug);
|
14 |
+
|
15 |
+
wp_footer();
|
16 |
+
|
17 |
+
?>
|
18 |
+
|
19 |
+
</body>
|
20 |
+
</html>
|
admin/templates/views/theme-header.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
use WprAddons\Admin\Includes\WPR_Conditions_Manager;
|
3 |
+
use WprAddons\Classes\Utilities;
|
4 |
+
|
5 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
+
exit; // Exit if accessed directly.
|
7 |
+
}
|
8 |
+
|
9 |
+
$conditions = json_decode( get_option('wpr_header_conditions', '[]'), true );
|
10 |
+
$template_slug = WPR_Conditions_Manager::header_footer_display_conditions($conditions);
|
11 |
+
|
12 |
+
?>
|
13 |
+
|
14 |
+
<!DOCTYPE html>
|
15 |
+
<html <?php language_attributes(); ?>>
|
16 |
+
<head>
|
17 |
+
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
18 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
19 |
+
<?php if ( ! current_theme_supports( 'title-tag' ) ) : ?>
|
20 |
+
<title>
|
21 |
+
<?php echo wp_get_document_title(); ?>
|
22 |
+
</title>
|
23 |
+
<?php endif; ?>
|
24 |
+
<?php wp_head(); ?>
|
25 |
+
</head>
|
26 |
+
|
27 |
+
<body <?php body_class(); ?>>
|
28 |
+
|
29 |
+
<?php
|
30 |
+
|
31 |
+
do_action( 'wp_body_open' );
|
32 |
+
|
33 |
+
// Render Royal Addons Header
|
34 |
+
Utilities::render_elementor_template($template_slug);
|
admin/templates/wpr-templates-data.php
CHANGED
@@ -24,6 +24,10 @@ class WPR_Templates_Data {
|
|
24 |
'v8-pro' => ['type' => 'iframe', 'url' => 'grid/v8/'],
|
25 |
'v9-pro' => ['type' => 'iframe', 'url' => 'grid/v9/'],
|
26 |
'v10-pro' => ['type' => 'iframe', 'url' => 'grid/v10/'],
|
|
|
|
|
|
|
|
|
27 |
],
|
28 |
'woo-grid' => [
|
29 |
'v1' => ['type' => 'iframe', 'url' => 'woocommerce-grid/v1/'],
|
@@ -33,6 +37,8 @@ class WPR_Templates_Data {
|
|
33 |
'v5-pro' => ['type' => 'iframe', 'url' => 'woocommerce-grid/v5/'],
|
34 |
'v6-pro' => ['type' => 'iframe', 'url' => 'woocommerce-grid/v6/'],
|
35 |
'v7-pro' => ['type' => 'iframe', 'url' => 'woocommerce-grid/v7/'],
|
|
|
|
|
36 |
],
|
37 |
'media-grid' => [
|
38 |
'v1' => ['type' => 'iframe', 'url' => 'image-grid/v1/'],
|
@@ -42,22 +48,41 @@ class WPR_Templates_Data {
|
|
42 |
'v1' => ['type' => 'iframe', 'url' => 'magazine-grid/v1/'],
|
43 |
'v2' => ['type' => 'iframe', 'url' => 'magazine-grid/v2/'],
|
44 |
// 'v3' => ['type' => 'iframe', 'url' => 'magazine-grid/v3/', 'sub' => 'carousel'], <-- Keep as example
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
],
|
46 |
'advanced-slider' => [
|
47 |
'v1' => ['type' => 'iframe', 'url' => 'advanced-slider/v1/'],
|
48 |
'v2' => ['type' => 'iframe', 'url' => 'advanced-slider/v2/'],
|
49 |
'v3' => ['type' => 'iframe', 'url' => 'advanced-slider/v3/'],
|
|
|
|
|
|
|
|
|
|
|
50 |
],
|
51 |
'testimonial' => [
|
52 |
'v1' => ['type' => 'iframe', 'url' => 'testimonial-slider/v1/'],
|
53 |
'v2' => ['type' => 'iframe', 'url' => 'testimonial-slider/v2/'],
|
54 |
'v3' => ['type' => 'iframe', 'url' => 'testimonial-slider/v3/'],
|
55 |
'v4' => ['type' => 'iframe', 'url' => 'testimonial-slider/v4/'],
|
|
|
|
|
|
|
|
|
|
|
56 |
],
|
57 |
'nav-menu' => [
|
58 |
'v1' => ['type' => 'iframe', 'url' => 'nav-menu/v1/'],
|
59 |
'v2' => ['type' => 'iframe', 'url' => 'nav-menu/v2/'],
|
60 |
'v3' => ['type' => 'iframe', 'url' => 'nav-menu/v3/'],
|
|
|
|
|
|
|
61 |
],
|
62 |
'onepage-nav' => [
|
63 |
'v1' => ['type' => 'iframe', 'url' => 'one-page-navigation/v1/'],
|
@@ -71,10 +96,15 @@ class WPR_Templates_Data {
|
|
71 |
'v3' => ['type' => 'iframe', 'url' => 'pricing-table/v3/'],
|
72 |
'v4' => ['type' => 'iframe', 'url' => 'pricing-table/v4/'],
|
73 |
'v5' => ['type' => 'iframe', 'url' => 'pricing-table/v5/'],
|
|
|
|
|
|
|
74 |
],
|
75 |
'content-toggle' => [
|
76 |
'v1' => ['type' => 'iframe', 'url' => 'content-toggle/v1/'],
|
77 |
'v2' => ['type' => 'iframe', 'url' => 'content-toggle/v2/'],
|
|
|
|
|
78 |
],
|
79 |
'countdown' => [
|
80 |
'v1' => ['type' => 'iframe', 'url' => 'countdown/v1/'],
|
@@ -109,6 +139,7 @@ class WPR_Templates_Data {
|
|
109 |
'v1' => ['type' => 'iframe', 'url' => 'flip-box/v1/'],
|
110 |
'v2' => ['type' => 'iframe', 'url' => 'flip-box/v2/'],
|
111 |
'v3' => ['type' => 'iframe', 'url' => 'flip-box/v3/'],
|
|
|
112 |
],
|
113 |
'promo-box' => [
|
114 |
'v1' => ['type' => 'iframe', 'url' => 'promo-box/v1/'],
|
@@ -135,12 +166,17 @@ class WPR_Templates_Data {
|
|
135 |
'v3' => ['type' => 'iframe', 'url' => 'mailchimp/v3/'],
|
136 |
'v4' => ['type' => 'iframe', 'url' => 'mailchimp/v4/'],
|
137 |
'v5' => ['type' => 'iframe', 'url' => 'mailchimp/v5/'],
|
|
|
|
|
|
|
138 |
],
|
139 |
'content-ticker' => [
|
140 |
'v1' => ['type' => 'iframe', 'url' => 'content-ticker/v1/'],
|
141 |
'v2' => ['type' => 'iframe', 'url' => 'content-ticker/v2/'],
|
142 |
'v3' => ['type' => 'iframe', 'url' => 'content-ticker/v3/'],
|
143 |
'v4-pro' => ['type' => 'iframe', 'url' => 'content-ticker/v4/'],
|
|
|
|
|
144 |
],
|
145 |
'button' => [
|
146 |
'v1' => ['type' => 'iframe', 'url' => 'button/v1/'],
|
@@ -159,7 +195,10 @@ class WPR_Templates_Data {
|
|
159 |
'v2' => ['type' => 'iframe', 'url' => 'team-member/v2/'],
|
160 |
'v3' => ['type' => 'iframe', 'url' => 'team-member/v3/'],
|
161 |
'v4' => ['type' => 'iframe', 'url' => 'team-member/v4/'],
|
162 |
-
'v5' => ['type' => 'iframe', 'url' => 'team-member/v5/']
|
|
|
|
|
|
|
163 |
],
|
164 |
'google-maps' => [
|
165 |
'v1' => ['type' => 'iframe', 'url' => 'google-map/v1/'],
|
@@ -172,6 +211,10 @@ class WPR_Templates_Data {
|
|
172 |
'v1' => ['type' => 'iframe', 'url' => 'price-list/v1/'],
|
173 |
'v2' => ['type' => 'iframe', 'url' => 'price-list/v2/'],
|
174 |
'v3' => ['type' => 'iframe', 'url' => 'price-list/v3/'],
|
|
|
|
|
|
|
|
|
175 |
],
|
176 |
'business-hours' => [
|
177 |
'v1' => ['type' => 'iframe', 'url' => 'business-hours/v1/'],
|
@@ -182,6 +225,8 @@ class WPR_Templates_Data {
|
|
182 |
'v1' => ['type' => 'iframe', 'url' => 'sharing-button/v1/'],
|
183 |
'v2' => ['type' => 'iframe', 'url' => 'sharing-button/v2/'],
|
184 |
'v3' => ['type' => 'iframe', 'url' => 'sharing-button/v3/'],
|
|
|
|
|
185 |
],
|
186 |
'logo' => [],
|
187 |
'search' => [
|
@@ -193,4 +238,48 @@ class WPR_Templates_Data {
|
|
193 |
'back-to-top' => [],
|
194 |
];
|
195 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
}
|
24 |
'v8-pro' => ['type' => 'iframe', 'url' => 'grid/v8/'],
|
25 |
'v9-pro' => ['type' => 'iframe', 'url' => 'grid/v9/'],
|
26 |
'v10-pro' => ['type' => 'iframe', 'url' => 'grid/v10/'],
|
27 |
+
'v11' => ['type' => 'iframe', 'url' => 'grid/v11/'],
|
28 |
+
'v12' => ['type' => 'iframe', 'url' => 'grid/v12/'],
|
29 |
+
'v13' => ['type' => 'iframe', 'url' => 'grid/v13/'],
|
30 |
+
'v14' => ['type' => 'iframe', 'url' => 'grid/v14/'],
|
31 |
],
|
32 |
'woo-grid' => [
|
33 |
'v1' => ['type' => 'iframe', 'url' => 'woocommerce-grid/v1/'],
|
37 |
'v5-pro' => ['type' => 'iframe', 'url' => 'woocommerce-grid/v5/'],
|
38 |
'v6-pro' => ['type' => 'iframe', 'url' => 'woocommerce-grid/v6/'],
|
39 |
'v7-pro' => ['type' => 'iframe', 'url' => 'woocommerce-grid/v7/'],
|
40 |
+
'v8-pro' => ['type' => 'iframe', 'url' => 'woocommerce-grid/v8/'],
|
41 |
+
'v9-pro' => ['type' => 'iframe', 'url' => 'woocommerce-grid/v9/'],
|
42 |
],
|
43 |
'media-grid' => [
|
44 |
'v1' => ['type' => 'iframe', 'url' => 'image-grid/v1/'],
|
48 |
'v1' => ['type' => 'iframe', 'url' => 'magazine-grid/v1/'],
|
49 |
'v2' => ['type' => 'iframe', 'url' => 'magazine-grid/v2/'],
|
50 |
// 'v3' => ['type' => 'iframe', 'url' => 'magazine-grid/v3/', 'sub' => 'carousel'], <-- Keep as example
|
51 |
+
'v3-pro' => ['type' => 'iframe', 'url' => 'magazine-grid/v3/'],
|
52 |
+
'v4-pro' => ['type' => 'iframe', 'url' => 'magazine-grid/v4/'],
|
53 |
+
'v5-pro' => ['type' => 'iframe', 'url' => 'magazine-grid/v5/'],
|
54 |
+
'v6-pro' => ['type' => 'iframe', 'url' => 'magazine-grid/v6/'],
|
55 |
+
'v7-pro' => ['type' => 'iframe', 'url' => 'magazine-grid/v7/'],
|
56 |
+
'v8-pro' => ['type' => 'iframe', 'url' => 'magazine-grid/v8/'],
|
57 |
],
|
58 |
'advanced-slider' => [
|
59 |
'v1' => ['type' => 'iframe', 'url' => 'advanced-slider/v1/'],
|
60 |
'v2' => ['type' => 'iframe', 'url' => 'advanced-slider/v2/'],
|
61 |
'v3' => ['type' => 'iframe', 'url' => 'advanced-slider/v3/'],
|
62 |
+
'v4-pro' => ['type' => 'iframe', 'url' => 'advanced-slider/v4/'],
|
63 |
+
'v5-pro' => ['type' => 'iframe', 'url' => 'advanced-slider/v5/'],
|
64 |
+
'v6-pro' => ['type' => 'iframe', 'url' => 'advanced-slider/v6/'],
|
65 |
+
'v7-pro' => ['type' => 'iframe', 'url' => 'advanced-slider/v7/'],
|
66 |
+
'v8-pro' => ['type' => 'iframe', 'url' => 'advanced-slider/v8/'],
|
67 |
],
|
68 |
'testimonial' => [
|
69 |
'v1' => ['type' => 'iframe', 'url' => 'testimonial-slider/v1/'],
|
70 |
'v2' => ['type' => 'iframe', 'url' => 'testimonial-slider/v2/'],
|
71 |
'v3' => ['type' => 'iframe', 'url' => 'testimonial-slider/v3/'],
|
72 |
'v4' => ['type' => 'iframe', 'url' => 'testimonial-slider/v4/'],
|
73 |
+
'v5-pro' => ['type' => 'iframe', 'url' => 'testimonial-slider/v5/'],
|
74 |
+
'v6-pro' => ['type' => 'iframe', 'url' => 'testimonial-slider/v6/'],
|
75 |
+
'v7-pro' => ['type' => 'iframe', 'url' => 'testimonial-slider/v7/'],
|
76 |
+
'v8-pro' => ['type' => 'iframe', 'url' => 'testimonial-slider/v8/'],
|
77 |
+
'v9-pro' => ['type' => 'iframe', 'url' => 'testimonial-slider/v9/'],
|
78 |
],
|
79 |
'nav-menu' => [
|
80 |
'v1' => ['type' => 'iframe', 'url' => 'nav-menu/v1/'],
|
81 |
'v2' => ['type' => 'iframe', 'url' => 'nav-menu/v2/'],
|
82 |
'v3' => ['type' => 'iframe', 'url' => 'nav-menu/v3/'],
|
83 |
+
'v4' => ['type' => 'iframe', 'url' => 'nav-menu/v4/'],
|
84 |
+
'v5' => ['type' => 'iframe', 'url' => 'nav-menu/v5/'],
|
85 |
+
'v6' => ['type' => 'iframe', 'url' => 'nav-menu/v6/'],
|
86 |
],
|
87 |
'onepage-nav' => [
|
88 |
'v1' => ['type' => 'iframe', 'url' => 'one-page-navigation/v1/'],
|
96 |
'v3' => ['type' => 'iframe', 'url' => 'pricing-table/v3/'],
|
97 |
'v4' => ['type' => 'iframe', 'url' => 'pricing-table/v4/'],
|
98 |
'v5' => ['type' => 'iframe', 'url' => 'pricing-table/v5/'],
|
99 |
+
'v6-pro' => ['type' => 'iframe', 'url' => 'pricing-table/v6/'],
|
100 |
+
'v7-pro' => ['type' => 'iframe', 'url' => 'pricing-table/v7/'],
|
101 |
+
'v8-pro' => ['type' => 'iframe', 'url' => 'pricing-table/v8/'],
|
102 |
],
|
103 |
'content-toggle' => [
|
104 |
'v1' => ['type' => 'iframe', 'url' => 'content-toggle/v1/'],
|
105 |
'v2' => ['type' => 'iframe', 'url' => 'content-toggle/v2/'],
|
106 |
+
'v3-pro' => ['type' => 'iframe', 'url' => 'content-toggle/v3/'],
|
107 |
+
'v4-pro' => ['type' => 'iframe', 'url' => 'content-toggle/v4/'],
|
108 |
],
|
109 |
'countdown' => [
|
110 |
'v1' => ['type' => 'iframe', 'url' => 'countdown/v1/'],
|
139 |
'v1' => ['type' => 'iframe', 'url' => 'flip-box/v1/'],
|
140 |
'v2' => ['type' => 'iframe', 'url' => 'flip-box/v2/'],
|
141 |
'v3' => ['type' => 'iframe', 'url' => 'flip-box/v3/'],
|
142 |
+
'v4-pro' => ['type' => 'iframe', 'url' => 'flip-box/v4/'],
|
143 |
],
|
144 |
'promo-box' => [
|
145 |
'v1' => ['type' => 'iframe', 'url' => 'promo-box/v1/'],
|
166 |
'v3' => ['type' => 'iframe', 'url' => 'mailchimp/v3/'],
|
167 |
'v4' => ['type' => 'iframe', 'url' => 'mailchimp/v4/'],
|
168 |
'v5' => ['type' => 'iframe', 'url' => 'mailchimp/v5/'],
|
169 |
+
'v6-pro' => ['type' => 'iframe', 'url' => 'mailchimp/v6/'],
|
170 |
+
'v7-pro' => ['type' => 'iframe', 'url' => 'mailchimp/v7/'],
|
171 |
+
'v8-pro' => ['type' => 'iframe', 'url' => 'mailchimp/v8/'],
|
172 |
],
|
173 |
'content-ticker' => [
|
174 |
'v1' => ['type' => 'iframe', 'url' => 'content-ticker/v1/'],
|
175 |
'v2' => ['type' => 'iframe', 'url' => 'content-ticker/v2/'],
|
176 |
'v3' => ['type' => 'iframe', 'url' => 'content-ticker/v3/'],
|
177 |
'v4-pro' => ['type' => 'iframe', 'url' => 'content-ticker/v4/'],
|
178 |
+
'v5-pro' => ['type' => 'iframe', 'url' => 'content-ticker/v5/'],
|
179 |
+
'v6-pro' => ['type' => 'iframe', 'url' => 'content-ticker/v6/'],
|
180 |
],
|
181 |
'button' => [
|
182 |
'v1' => ['type' => 'iframe', 'url' => 'button/v1/'],
|
195 |
'v2' => ['type' => 'iframe', 'url' => 'team-member/v2/'],
|
196 |
'v3' => ['type' => 'iframe', 'url' => 'team-member/v3/'],
|
197 |
'v4' => ['type' => 'iframe', 'url' => 'team-member/v4/'],
|
198 |
+
'v5' => ['type' => 'iframe', 'url' => 'team-member/v5/'],
|
199 |
+
'v6-pro' => ['type' => 'iframe', 'url' => 'team-member/v6/'],
|
200 |
+
'v7-pro' => ['type' => 'iframe', 'url' => 'team-member/v7/'],
|
201 |
+
'v8-pro' => ['type' => 'iframe', 'url' => 'team-member/v8/'],
|
202 |
],
|
203 |
'google-maps' => [
|
204 |
'v1' => ['type' => 'iframe', 'url' => 'google-map/v1/'],
|
211 |
'v1' => ['type' => 'iframe', 'url' => 'price-list/v1/'],
|
212 |
'v2' => ['type' => 'iframe', 'url' => 'price-list/v2/'],
|
213 |
'v3' => ['type' => 'iframe', 'url' => 'price-list/v3/'],
|
214 |
+
'v4-pro' => ['type' => 'iframe', 'url' => 'price-list/v4/'],
|
215 |
+
'v5-pro' => ['type' => 'iframe', 'url' => 'price-list/v5/'],
|
216 |
+
'v6-pro' => ['type' => 'iframe', 'url' => 'price-list/v6/'],
|
217 |
+
'v7-pro' => ['type' => 'iframe', 'url' => 'price-list/v7/'],
|
218 |
],
|
219 |
'business-hours' => [
|
220 |
'v1' => ['type' => 'iframe', 'url' => 'business-hours/v1/'],
|
225 |
'v1' => ['type' => 'iframe', 'url' => 'sharing-button/v1/'],
|
226 |
'v2' => ['type' => 'iframe', 'url' => 'sharing-button/v2/'],
|
227 |
'v3' => ['type' => 'iframe', 'url' => 'sharing-button/v3/'],
|
228 |
+
'v4-pro' => ['type' => 'iframe', 'url' => 'sharing-button/v4/'],
|
229 |
+
'v5-pro' => ['type' => 'iframe', 'url' => 'sharing-button/v5/'],
|
230 |
],
|
231 |
'logo' => [],
|
232 |
'search' => [
|
238 |
'back-to-top' => [],
|
239 |
];
|
240 |
}
|
241 |
+
|
242 |
+
public static function get_available_popups() {
|
243 |
+
return [
|
244 |
+
// 'contact' => [
|
245 |
+
// 'v1' => ['type' => 'iframe', 'url' => 'search/v1/'],
|
246 |
+
// 'v2' => ['type' => 'iframe', 'url' => 'search/v2/'],
|
247 |
+
// 'v3' => ['type' => 'iframe', 'url' => 'search/v3/'],
|
248 |
+
// ],
|
249 |
+
'cookie' => [
|
250 |
+
'v1' => ['type' => 'image', 'url' => 'popups/cookie/v1-preview.jpg'],
|
251 |
+
'v2-pro' => ['type' => 'image', 'url' => 'popups/cookie/v2-pro-preview.jpg'],
|
252 |
+
'v3-pro' => ['type' => 'image', 'url' => 'popups/cookie/v3-pro-preview.jpg'],
|
253 |
+
'v4-pro' => ['type' => 'image', 'url' => 'popups/cookie/v4-pro-preview.jpg'],
|
254 |
+
],
|
255 |
+
'discount' => [
|
256 |
+
'v1' => ['type' => 'image', 'url' => 'popups/discount/v1-preview.jpg'],
|
257 |
+
'v2-pro' => ['type' => 'image', 'url' => 'popups/discount/v2-pro-preview.jpg'],
|
258 |
+
'v3-pro' => ['type' => 'image', 'url' => 'popups/discount/v3-pro-preview.jpg'],
|
259 |
+
'v4-pro' => ['type' => 'image', 'url' => 'popups/discount/v4-pro-preview.jpg'],
|
260 |
+
'v5-pro' => ['type' => 'image', 'url' => 'popups/discount/v5-pro-preview.jpg'],
|
261 |
+
'v6' => ['type' => 'image', 'url' => 'popups/discount/v6-preview.jpg'],
|
262 |
+
'v7-pro' => ['type' => 'image', 'url' => 'popups/discount/v7-pro-preview.jpg'],
|
263 |
+
'v8-pro' => ['type' => 'image', 'url' => 'popups/discount/v8-pro-preview.jpg'],
|
264 |
+
'v9' => ['type' => 'image', 'url' => 'popups/discount/v9-preview.jpg'],
|
265 |
+
'v10' => ['type' => 'image', 'url' => 'popups/discount/v10-preview.jpg'],
|
266 |
+
'v11-pro' => ['type' => 'image', 'url' => 'popups/discount/v11-pro-preview.jpg'],
|
267 |
+
'v12-pro' => ['type' => 'image', 'url' => 'popups/discount/v12-pro-preview.jpg'],
|
268 |
+
'v13-pro' => ['type' => 'image', 'url' => 'popups/discount/v13-pro-preview.jpg'],
|
269 |
+
'v14-pro' => ['type' => 'image', 'url' => 'popups/discount/v14-pro-preview.jpg'],
|
270 |
+
'v15-pro' => ['type' => 'image', 'url' => 'popups/discount/v15-pro-preview.jpg'],
|
271 |
+
'v16-pro' => ['type' => 'image', 'url' => 'popups/discount/v16-pro-preview.jpg'],
|
272 |
+
],
|
273 |
+
'subscribe' => [
|
274 |
+
'v1-pro' => ['type' => 'image', 'url' => 'popups/subscribe/v1-pro-preview.jpg'],
|
275 |
+
'v2-pro' => ['type' => 'image', 'url' => 'popups/subscribe/v2-pro-preview.jpg'],
|
276 |
+
'v3-pro' => ['type' => 'image', 'url' => 'popups/subscribe/v3-pro-preview.jpg'],
|
277 |
+
],
|
278 |
+
'yesno' => [
|
279 |
+
'v1-pro' => ['type' => 'image', 'url' => 'popups/yesno/v1-pro-preview.jpg'],
|
280 |
+
'v2-pro' => ['type' => 'image', 'url' => 'popups/yesno/v2-pro-preview.jpg'],
|
281 |
+
'v3-pro' => ['type' => 'image', 'url' => 'popups/yesno/v3-pro-preview.jpg'],
|
282 |
+
],
|
283 |
+
];
|
284 |
+
}
|
285 |
}
|
admin/templates/{wpr-templates-blocks.php → wpr-templates-library-blocks.php}
RENAMED
@@ -6,11 +6,11 @@ use WprAddons\Admin\Templates\WPR_Templates_Data;
|
|
6 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
7 |
|
8 |
/**
|
9 |
-
*
|
10 |
*
|
11 |
* @since 1.0
|
12 |
*/
|
13 |
-
class
|
14 |
|
15 |
/**
|
16 |
** Constructor
|
@@ -18,14 +18,14 @@ class WPR_Templates_Blocks {
|
|
18 |
public function __construct() {
|
19 |
|
20 |
// Template Library Popup
|
21 |
-
add_action( '
|
22 |
|
23 |
}
|
24 |
|
25 |
/**
|
26 |
** Template Library Popup
|
27 |
*/
|
28 |
-
public function
|
29 |
|
30 |
?>
|
31 |
|
@@ -50,9 +50,17 @@ class WPR_Templates_Blocks {
|
|
50 |
<?php
|
51 |
|
52 |
$modules = Utilities::get_available_modules();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
foreach ($modules as $title => $slug) {
|
55 |
-
if (
|
56 |
echo '<li data-filter="'. $slug[0] .'">'. $title .'</li>';
|
57 |
}
|
58 |
}
|
6 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
7 |
|
8 |
/**
|
9 |
+
* WPR_Templates_Library_Blocks setup
|
10 |
*
|
11 |
* @since 1.0
|
12 |
*/
|
13 |
+
class WPR_Templates_Library_Blocks {
|
14 |
|
15 |
/**
|
16 |
** Constructor
|
18 |
public function __construct() {
|
19 |
|
20 |
// Template Library Popup
|
21 |
+
add_action( 'wp_ajax_render_library_templates_blocks', [ $this, 'render_library_templates_blocks' ] );
|
22 |
|
23 |
}
|
24 |
|
25 |
/**
|
26 |
** Template Library Popup
|
27 |
*/
|
28 |
+
public function render_library_templates_blocks() {
|
29 |
|
30 |
?>
|
31 |
|
50 |
<?php
|
51 |
|
52 |
$modules = Utilities::get_available_modules();
|
53 |
+
|
54 |
+
$exclude_widgets = [
|
55 |
+
'logo',
|
56 |
+
'forms',
|
57 |
+
'phone-call',
|
58 |
+
'back-to-top',
|
59 |
+
'popup-trigger',
|
60 |
+
];
|
61 |
|
62 |
foreach ($modules as $title => $slug) {
|
63 |
+
if ( ! in_array($slug[0], $exclude_widgets) ) {
|
64 |
echo '<li data-filter="'. $slug[0] .'">'. $title .'</li>';
|
65 |
}
|
66 |
}
|
admin/templates/wpr-templates-library-popups.php
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace WprAddons\Admin\Templates;
|
3 |
+
use WprAddons\Classes\Utilities;
|
4 |
+
use WprAddons\Admin\Templates\WPR_Templates_Data;
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
7 |
+
|
8 |
+
/**
|
9 |
+
* WPR_Templates_Library_Popups setup
|
10 |
+
*
|
11 |
+
* @since 1.0
|
12 |
+
*/
|
13 |
+
class WPR_Templates_Library_Popups {
|
14 |
+
|
15 |
+
/**
|
16 |
+
** Constructor
|
17 |
+
*/
|
18 |
+
public function __construct() {
|
19 |
+
|
20 |
+
// Template Library Popup
|
21 |
+
add_action( 'wp_ajax_render_library_templates_popups', [ $this, 'render_library_templates_popups' ] );
|
22 |
+
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
** Template Library Popup
|
27 |
+
*/
|
28 |
+
public function render_library_templates_popups() {
|
29 |
+
|
30 |
+
?>
|
31 |
+
|
32 |
+
<div class="wpr-tplib-sidebar">
|
33 |
+
<div class="wpr-tplib-search">
|
34 |
+
<input type="text" placeholder="Search Template">
|
35 |
+
<i class="eicon-search"></i>
|
36 |
+
</div>
|
37 |
+
|
38 |
+
<div class="wpr-tplib-filters-wrap">
|
39 |
+
<div class="wpr-tplib-filters">
|
40 |
+
<h3>
|
41 |
+
<span><?php esc_html_e( 'Category', 'wpr-addons' ); ?></span>
|
42 |
+
<i class="fas fa-angle-down"></i>
|
43 |
+
</h3>
|
44 |
+
|
45 |
+
<div class="wpr-tplib-filters-list">
|
46 |
+
<ul>
|
47 |
+
<li data-filter="all"><?php esc_html_e( 'All', 'wpr-addons' ) ?></li>
|
48 |
+
<li data-filter="cookie"><?php esc_html_e( 'Cookie', 'wpr-addons' ) ?></li>
|
49 |
+
<li data-filter="discount"><?php esc_html_e( 'Discount', 'wpr-addons' ) ?></li>
|
50 |
+
<li data-filter="subscribe"><?php esc_html_e( 'Subscribe', 'wpr-addons' ) ?></li>
|
51 |
+
<li data-filter="yesno"><?php esc_html_e( 'Yes/No', 'wpr-addons' ) ?></li>
|
52 |
+
</ul>
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
|
57 |
+
</div>
|
58 |
+
|
59 |
+
<div class="wpr-tplib-template-gird elementor-clearfix">
|
60 |
+
<div class="wpr-tplib-template-gird-inner">
|
61 |
+
|
62 |
+
<?php
|
63 |
+
|
64 |
+
$popups = WPR_Templates_Data::get_available_popups();
|
65 |
+
|
66 |
+
foreach ($popups as $type => $data) :
|
67 |
+
|
68 |
+
for ( $i=0; $i < count($popups[$type]); $i++ ) :
|
69 |
+
|
70 |
+
$template_slug = array_keys($popups[$type])[$i];
|
71 |
+
$template_title = ucfirst($type) .' '. $template_slug;
|
72 |
+
$preview_type = $popups[$type][$template_slug]['type'];
|
73 |
+
$preview_url = $popups[$type][$template_slug]['url'];
|
74 |
+
$templte_class = ( strpos($template_slug, 'pro') && ! defined('WPR_ADDONS_PRO_LICENSE') ) ? ' wpr-tplib-pro-wrap' : '';
|
75 |
+
|
76 |
+
?>
|
77 |
+
|
78 |
+
<div class="wpr-tplib-template-wrap<?php echo esc_attr($templte_class); ?>">
|
79 |
+
<div class="wpr-tplib-template" data-slug="<?php echo esc_attr($template_slug); ?>" data-filter="<?php echo esc_attr($type); ?>" data-preview-type="<?php echo esc_attr($preview_type); ?>" data-preview-url="<?php echo esc_attr($preview_url); ?>">
|
80 |
+
<div class="wpr-tplib-template-media">
|
81 |
+
<img src="<?php echo 'https://royal-elementor-addons.com/library/premade-styles/popups/'. $type .'/'. $template_slug .'.jpg'; ?>">
|
82 |
+
<div class="wpr-tplib-template-media-overlay">
|
83 |
+
<i class="eicon-eye"></i>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
<div class="wpr-tplib-template-footer elementor-clearfix">
|
87 |
+
<h3><?php echo str_replace('-pro', ' Pro', $template_title); ?></h3>
|
88 |
+
|
89 |
+
<?php if ( strpos($template_slug, 'pro') && ! defined('WPR_ADDONS_PRO_LICENSE') ) : ?>
|
90 |
+
<span class="wpr-tplib-insert-template wpr-tplib-insert-pro"><i class="eicon-star"></i> <span><?php esc_html_e( 'Go Pro', 'wpr-addons' ); ?></span></span>
|
91 |
+
<?php else : ?>
|
92 |
+
<span class="wpr-tplib-insert-template"><i class="eicon-file-download"></i> <span><?php esc_html_e( 'Insert', 'wpr-addons' ); ?></span></span>
|
93 |
+
<?php endif; ?>
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
|
98 |
+
<?php endfor; ?>
|
99 |
+
<?php endforeach; ?>
|
100 |
+
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
|
104 |
+
<?php exit();
|
105 |
+
}
|
106 |
+
|
107 |
+
}
|
admin/templates/wpr-templates-pages.php
CHANGED
@@ -4,11 +4,11 @@ namespace WprAddons\Admin\Templates;
|
|
4 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
5 |
|
6 |
/**
|
7 |
-
*
|
8 |
*
|
9 |
* @since 1.0
|
10 |
*/
|
11 |
-
class
|
12 |
|
13 |
/**
|
14 |
** Constructor
|
@@ -16,14 +16,14 @@ class WPR_Templates_Pages {
|
|
16 |
public function __construct() {
|
17 |
|
18 |
// Template Library Popup
|
19 |
-
add_action( '
|
20 |
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
** Template Library Popup
|
25 |
*/
|
26 |
-
public function
|
27 |
?>
|
28 |
|
29 |
<div class="wpr-tplib-sidebar">
|
4 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
5 |
|
6 |
/**
|
7 |
+
* WPR_Templates_Library_Pages setup
|
8 |
*
|
9 |
* @since 1.0
|
10 |
*/
|
11 |
+
class WPR_Templates_Library_Pages {
|
12 |
|
13 |
/**
|
14 |
** Constructor
|
16 |
public function __construct() {
|
17 |
|
18 |
// Template Library Popup
|
19 |
+
add_action( 'wp_ajax_render_library_templates_pages', [ $this, 'render_library_templates_pages' ] );
|
20 |
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
** Template Library Popup
|
25 |
*/
|
26 |
+
public function render_library_templates_pages() {
|
27 |
?>
|
28 |
|
29 |
<div class="wpr-tplib-sidebar">
|
admin/theme-builder.php
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
4 |
+
|
5 |
+
use WprAddons\Admin\Includes\WPR_Templates_Loop;
|
6 |
+
|
7 |
+
// Register Menus
|
8 |
+
function wpr_addons_add_theme_builder_menu() {
|
9 |
+
add_submenu_page( 'wpr-addons', 'Header & Footer', 'Header & Footer', 'manage_options', 'wpr-theme-builder', 'wpr_addons_theme_builder_page' );
|
10 |
+
}
|
11 |
+
add_action( 'admin_menu', 'wpr_addons_add_theme_builder_menu' );
|
12 |
+
|
13 |
+
function wpr_addons_theme_builder_page() {
|
14 |
+
|
15 |
+
?>
|
16 |
+
|
17 |
+
<div class="wrap wpr-settings-page-wrap">
|
18 |
+
|
19 |
+
<div class="wpr-settings-page-header">
|
20 |
+
<h1><?php esc_html_e( 'Royal Elementor Addons', 'wpr-addons' ); ?></h1>
|
21 |
+
<p><?php esc_html_e( 'The most powerful Elementor Addons in the universe.', 'wpr-addons' ); ?></p>
|
22 |
+
|
23 |
+
<!-- Custom Template -->
|
24 |
+
<div class="wpr-user-template">
|
25 |
+
<span><?php esc_html_e( 'Create Template', 'wpr-addons' ); ?></span>
|
26 |
+
<span class="plus-icon">+</span>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
|
30 |
+
<div class="wpr-settings-page">
|
31 |
+
<form method="post" action="options.php">
|
32 |
+
<?php
|
33 |
+
|
34 |
+
// Active Tab
|
35 |
+
$active_tab = isset( $_GET['tab'] ) ? esc_attr($_GET['tab']) : 'wpr_tab_header';
|
36 |
+
|
37 |
+
?>
|
38 |
+
|
39 |
+
<!-- Template ID Holder -->
|
40 |
+
<input type="hidden" name="wpr_template" id="wpr_template" value="">
|
41 |
+
|
42 |
+
<!-- Conditions Popup -->
|
43 |
+
<?php WPR_Templates_Loop::render_conditions_popup(); ?>
|
44 |
+
|
45 |
+
<!-- Create Templte Popup -->
|
46 |
+
<?php WPR_Templates_Loop::render_create_template_popup(); ?>
|
47 |
+
|
48 |
+
<!-- Tabs -->
|
49 |
+
<div class="nav-tab-wrapper wpr-nav-tab-wrapper">
|
50 |
+
<a href="?page=wpr-theme-builder&tab=wpr_tab_header" data-title="Header" class="nav-tab <?php echo $active_tab == 'wpr_tab_header' ? 'nav-tab-active' : ''; ?>">
|
51 |
+
<?php esc_html_e( 'Header', 'wpr-addons' ); ?>
|
52 |
+
</a>
|
53 |
+
<a href="?page=wpr-theme-builder&tab=wpr_tab_footer" data-title="Footer" class="nav-tab <?php echo $active_tab == 'wpr_tab_footer' ? 'nav-tab-active' : ''; ?>">
|
54 |
+
<?php esc_html_e( 'Footer', 'wpr-addons' ); ?>
|
55 |
+
</a>
|
56 |
+
</div>
|
57 |
+
|
58 |
+
<?php if ( $active_tab == 'wpr_tab_header' ) : ?>
|
59 |
+
|
60 |
+
<!-- Save Conditions -->
|
61 |
+
<input type="hidden" name="wpr_header_conditions" id="wpr_header_conditions" value="<?php echo esc_attr(get_option('wpr_header_conditions', '[]')); ?>">
|
62 |
+
|
63 |
+
<?php WPR_Templates_Loop::render_theme_builder_templates( 'header' ); ?>
|
64 |
+
|
65 |
+
<?php elseif ( $active_tab == 'wpr_tab_footer' ) : ?>
|
66 |
+
|
67 |
+
<!-- Save Conditions -->
|
68 |
+
<input type="hidden" name="wpr_footer_conditions" id="wpr_footer_conditions" value="<?php echo esc_attr(get_option('wpr_footer_conditions', '[]')); ?>">
|
69 |
+
|
70 |
+
<?php WPR_Templates_Loop::render_theme_builder_templates( 'footer' ); ?>
|
71 |
+
|
72 |
+
<?php endif; ?>
|
73 |
+
|
74 |
+
</form>
|
75 |
+
</div>
|
76 |
+
|
77 |
+
</div>
|
78 |
+
|
79 |
+
|
80 |
+
<?php
|
81 |
+
|
82 |
+
} // End wpr_addons_theme_builder_page()
|
assets/css/admin/plugin-options.css
CHANGED
@@ -175,7 +175,8 @@
|
|
175 |
display: block;
|
176 |
clear: both;
|
177 |
font-size: 12px;
|
178 |
-
box-shadow: none !important;
|
|
|
179 |
}
|
180 |
|
181 |
.wpr-element-info input,
|
@@ -241,16 +242,28 @@
|
|
241 |
/*--------------------------------------------------------------
|
242 |
== My Templates
|
243 |
--------------------------------------------------------------*/
|
244 |
-
|
245 |
.wpr-my-templates-list {
|
246 |
width: 50%;
|
247 |
}
|
248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
.wpr-my-templates-list li {
|
250 |
overflow: hidden;
|
251 |
-
padding:
|
252 |
margin-bottom: 15px;
|
253 |
-
border-radius: 3px;
|
254 |
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
|
255 |
box-shadow: 0 0 2px rgba(0,0,0,0.2);
|
256 |
}
|
@@ -268,116 +281,56 @@
|
|
268 |
float: right;
|
269 |
}
|
270 |
|
271 |
-
.wpr-my-templates-list .wpr-
|
272 |
-
|
273 |
-
padding: 3px 25px;
|
274 |
-
margin-right: 10px;
|
275 |
-
border: 0;
|
276 |
-
background: #6A4BFF;
|
277 |
-
letter-spacing: 0.5px;
|
278 |
-
-webkit-box-shadow: 0 0 3px rgba(0,0,0,0.3);
|
279 |
-
box-shadow: 0 0 3px rgba(0,0,0,0.3);
|
280 |
}
|
281 |
|
282 |
-
.wpr-
|
283 |
-
background: #
|
284 |
-
}
|
285 |
-
|
286 |
-
.wpr-my-templates-list .wpr-action-buttons > span {
|
287 |
-
width: 34px;
|
288 |
-
height: 34px;
|
289 |
-
padding: 0;
|
290 |
-
border: 0;
|
291 |
-
color: #fff;
|
292 |
-
background: #FF4062;
|
293 |
-
text-align: center;
|
294 |
-
-webkit-box-shadow: 0 0 3px rgba(0,0,0,0.3);
|
295 |
-
box-shadow: 0 0 3px rgba(0,0,0,0.3);
|
296 |
-
}
|
297 |
-
|
298 |
-
.wpr-my-templates-list .wpr-action-buttons > span:hover {
|
299 |
-
color: #fff;
|
300 |
-
background: #FF2C53;
|
301 |
-
}
|
302 |
-
|
303 |
-
.wpr-my-templates-list .wpr-action-buttons .dashicons {
|
304 |
-
font-size: 16px;
|
305 |
-
line-height: 34px;
|
306 |
-
}
|
307 |
-
|
308 |
-
.user-template-popup {
|
309 |
-
position: absolute;
|
310 |
-
top: 50%;
|
311 |
-
left: 50%;
|
312 |
-
-webkit-transform: translate(-50%,-50%);
|
313 |
-
-ms-transform: translate(-50%,-50%);
|
314 |
-
transform: translate(-50%,-50%);
|
315 |
-
display: -webkit-box;
|
316 |
-
display: -ms-flexbox;
|
317 |
-
display: flex;
|
318 |
-
-webkit-box-align: center;
|
319 |
-
-ms-flex-align: center;
|
320 |
-
align-items: center;
|
321 |
-
-webkit-box-pack: center;
|
322 |
-
-ms-flex-pack: center;
|
323 |
-
justify-content: center;
|
324 |
-
width: 80%;
|
325 |
-
max-width: 550px;
|
326 |
-
padding: 55px;
|
327 |
-
border-radius: 3px;
|
328 |
-
border: 0;
|
329 |
-
background: #fff;
|
330 |
}
|
331 |
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
padding: 5px 10px;
|
336 |
-
border-radius: 3px;
|
337 |
}
|
338 |
|
339 |
-
|
340 |
-
|
341 |
}
|
342 |
|
343 |
-
|
344 |
-
|
345 |
}
|
346 |
|
347 |
-
|
348 |
-
|
349 |
}
|
350 |
|
351 |
-
|
352 |
-
|
353 |
}
|
354 |
|
355 |
-
|
356 |
-
|
|
|
|
|
|
|
|
|
357 |
}
|
358 |
|
359 |
-
|
360 |
-
|
361 |
-
-webkit-box-shadow: none;
|
362 |
-
box-shadow: none;
|
363 |
}
|
364 |
|
365 |
-
.
|
366 |
-
|
367 |
-
|
368 |
-
color: #fff;
|
369 |
-
background: #6A4BFF;
|
370 |
-
border-radius: 3px;
|
371 |
-
cursor: pointer;
|
372 |
}
|
373 |
|
374 |
-
.
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
font-size: 24px;
|
379 |
-
cursor: pointer;
|
380 |
-
color: #7a7a7a;
|
381 |
}
|
382 |
|
383 |
|
@@ -437,22 +390,10 @@ input.user-template-title:focus {
|
|
437 |
}
|
438 |
|
439 |
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
/* Condition Popup */
|
454 |
-
.wpr-condition-popup-wrap,
|
455 |
-
.user-template-popup-wrap {
|
456 |
display: none;
|
457 |
position: fixed;
|
458 |
top: 0;
|
@@ -463,7 +404,19 @@ input.user-template-title:focus {
|
|
463 |
height: 100%;
|
464 |
}
|
465 |
|
466 |
-
.wpr-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
467 |
position: absolute;
|
468 |
top: 50%;
|
469 |
left: 50%;
|
@@ -471,34 +424,19 @@ input.user-template-title:focus {
|
|
471 |
-ms-transform: translate(-50%,-50%);
|
472 |
transform: translate(-50%,-50%);
|
473 |
width: 80%;
|
474 |
-
max-width:
|
475 |
-
padding:
|
476 |
-
|
477 |
-
background-color: #fff;
|
478 |
-
border: 1px solid #000;
|
479 |
}
|
480 |
|
481 |
-
.wpr-condition-popup h2 {
|
482 |
-
margin-top: 0;
|
483 |
-
}
|
484 |
|
485 |
-
.wpr-
|
486 |
position: absolute;
|
487 |
-
top:
|
488 |
-
right:
|
489 |
-
font-size:
|
490 |
cursor: pointer;
|
491 |
-
color: #
|
492 |
-
}
|
493 |
-
|
494 |
-
.wpr-conditions-sample {
|
495 |
-
display: none !important;
|
496 |
-
}
|
497 |
-
|
498 |
-
.wpr-conditions {
|
499 |
-
position: relative;
|
500 |
-
overflow: hidden;
|
501 |
-
margin-top: 10px;
|
502 |
}
|
503 |
|
504 |
.wpr-conditions.wpr-tab-archive .global-condition-select,
|
@@ -519,100 +457,284 @@ input.user-template-title:focus {
|
|
519 |
display: block !important;
|
520 |
}
|
521 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
522 |
|
523 |
.wpr-conditions select {
|
524 |
-
float: left;
|
525 |
height: 35px;
|
526 |
-
|
527 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
}
|
529 |
|
530 |
-
.
|
|
|
|
|
|
|
|
|
531 |
display: none;
|
532 |
-
padding:
|
|
|
|
|
|
|
533 |
}
|
534 |
|
535 |
-
.
|
536 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
537 |
}
|
538 |
|
539 |
-
.delete-conditions {
|
540 |
-
margin-
|
541 |
-
|
542 |
-
|
543 |
-
color: #
|
544 |
-
|
545 |
cursor: pointer;
|
546 |
}
|
547 |
|
548 |
-
.
|
549 |
-
|
550 |
-
right: 20px;
|
551 |
-
bottom: 20px;
|
552 |
}
|
553 |
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
558 |
}
|
559 |
|
560 |
-
.template-
|
561 |
-
|
562 |
}
|
563 |
|
564 |
-
.template-
|
565 |
-
|
566 |
-
padding: 7px 13px;
|
567 |
-
background: #fff;
|
568 |
-
cursor: pointer;
|
569 |
}
|
570 |
|
571 |
-
.template-
|
572 |
-
|
573 |
-
|
574 |
color: #fff;
|
|
|
|
|
|
|
575 |
}
|
576 |
|
577 |
-
.
|
578 |
-
|
|
|
579 |
}
|
580 |
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
|
|
585 |
}
|
586 |
|
587 |
-
.
|
588 |
-
.
|
589 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
590 |
}
|
591 |
|
592 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
593 |
#fs_connect {
|
594 |
-
margin:
|
595 |
-
|
|
|
596 |
}
|
597 |
|
598 |
#fs_connect .fs-content {
|
599 |
-
padding: 25px;
|
600 |
}
|
601 |
|
602 |
-
#fs_connect .fs-
|
603 |
-
|
604 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
605 |
}
|
606 |
|
607 |
#fs_connect .fs-actions {
|
608 |
-
|
609 |
-
background
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
610 |
}
|
611 |
|
612 |
-
#
|
613 |
-
#fs_connect .fs-permissions,
|
|
|
614 |
#fs_connect .fs-freemium-licensing,
|
615 |
-
#fs_connect .fs-terms,
|
616 |
#license_issues_link {
|
617 |
display: none !important;
|
618 |
}
|
175 |
display: block;
|
176 |
clear: both;
|
177 |
font-size: 12px;
|
178 |
+
-webkit-box-shadow: none !important;
|
179 |
+
box-shadow: none !important;
|
180 |
}
|
181 |
|
182 |
.wpr-element-info input,
|
242 |
/*--------------------------------------------------------------
|
243 |
== My Templates
|
244 |
--------------------------------------------------------------*/
|
|
|
245 |
.wpr-my-templates-list {
|
246 |
width: 50%;
|
247 |
}
|
248 |
|
249 |
+
.wpr-header-templates-list.wpr-my-templates-list,
|
250 |
+
.wpr-footer-templates-list.wpr-my-templates-list,
|
251 |
+
.wpr-popup-templates-list.wpr-my-templates-list {
|
252 |
+
width: 65%;
|
253 |
+
}
|
254 |
+
|
255 |
+
@media screen and (max-width: 1400px) {
|
256 |
+
.wpr-header-templates-list.wpr-my-templates-list,
|
257 |
+
.wpr-footer-templates-list.wpr-my-templates-list,
|
258 |
+
.wpr-popup-templates-list.wpr-my-templates-list {
|
259 |
+
width: 100%;
|
260 |
+
}
|
261 |
+
}
|
262 |
+
|
263 |
.wpr-my-templates-list li {
|
264 |
overflow: hidden;
|
265 |
+
padding: 20px 35px;
|
266 |
margin-bottom: 15px;
|
|
|
267 |
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
|
268 |
box-shadow: 0 0 2px rgba(0,0,0,0.2);
|
269 |
}
|
281 |
float: right;
|
282 |
}
|
283 |
|
284 |
+
.wpr-my-templates-list .wpr-template-conditions {
|
285 |
+
background: #b3b3b3;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
}
|
287 |
|
288 |
+
.wpr-active-conditions-template .wpr-template-conditions {
|
289 |
+
background: #7a5ffd;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
}
|
291 |
|
292 |
+
.wpr-my-templates-list .wpr-template-conditions:hover,
|
293 |
+
.wpr-active-conditions-template .wpr-template-conditions:hover {
|
294 |
+
background: #6A4BFF;
|
|
|
|
|
295 |
}
|
296 |
|
297 |
+
.wpr-my-templates-list .wpr-edit-template {
|
298 |
+
background: #646464;
|
299 |
}
|
300 |
|
301 |
+
.wpr-my-templates-list .wpr-edit-template:hover {
|
302 |
+
background: #535353;
|
303 |
}
|
304 |
|
305 |
+
.wpr-my-templates-list .wpr-delete-template {
|
306 |
+
background: #ff5a4b;
|
307 |
}
|
308 |
|
309 |
+
.wpr-my-templates-list .wpr-delete-template:hover {
|
310 |
+
background: #FF4635;
|
311 |
}
|
312 |
|
313 |
+
.wpr-my-templates-list .wpr-action-buttons > * {
|
314 |
+
display: inline-block;
|
315 |
+
padding: 3px 20px;
|
316 |
+
margin-right: 10px;
|
317 |
+
border: 0;
|
318 |
+
letter-spacing: 0.5px;
|
319 |
}
|
320 |
|
321 |
+
.wpr-my-templates-list .wpr-action-buttons > *:last-child {
|
322 |
+
margin-right: 0;
|
|
|
|
|
323 |
}
|
324 |
|
325 |
+
.wpr-my-templates-list .wpr-action-buttons .dashicons {
|
326 |
+
font-size: 16px;
|
327 |
+
line-height: 30px;
|
|
|
|
|
|
|
|
|
328 |
}
|
329 |
|
330 |
+
.wpr-header-templates-list li.wpr-active-conditions-template,
|
331 |
+
.wpr-footer-templates-list li.wpr-active-conditions-template {
|
332 |
+
border-left: 5px solid #6A4BFF;
|
333 |
+
background: #F6F7F7;
|
|
|
|
|
|
|
334 |
}
|
335 |
|
336 |
|
390 |
}
|
391 |
|
392 |
|
393 |
+
/*--------------------------------------------------------------
|
394 |
+
== Conditions
|
395 |
+
--------------------------------------------------------------*/
|
396 |
+
.wpr-admin-popup-wrap {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
397 |
display: none;
|
398 |
position: fixed;
|
399 |
top: 0;
|
404 |
height: 100%;
|
405 |
}
|
406 |
|
407 |
+
.wpr-admin-popup {
|
408 |
+
display: -webkit-box;
|
409 |
+
display: -ms-flexbox;
|
410 |
+
display: flex;
|
411 |
+
-ms-flex-pack: distribute;
|
412 |
+
justify-content: space-around;
|
413 |
+
-webkit-box-align: center;
|
414 |
+
-ms-flex-align: center;
|
415 |
+
align-items: center;
|
416 |
+
-webkit-box-orient: vertical;
|
417 |
+
-webkit-box-direction: normal;
|
418 |
+
-ms-flex-direction: column;
|
419 |
+
flex-direction: column;
|
420 |
position: absolute;
|
421 |
top: 50%;
|
422 |
left: 50%;
|
424 |
-ms-transform: translate(-50%,-50%);
|
425 |
transform: translate(-50%,-50%);
|
426 |
width: 80%;
|
427 |
+
max-width: 850px;
|
428 |
+
padding: 70px 20px 20px 20px;
|
429 |
+
background-color: #F1F3F5;
|
|
|
|
|
430 |
}
|
431 |
|
|
|
|
|
|
|
432 |
|
433 |
+
.wpr-admin-popup .close-popup {
|
434 |
position: absolute;
|
435 |
+
top: 10px;
|
436 |
+
right: 15px;
|
437 |
+
font-size: 26px;
|
438 |
cursor: pointer;
|
439 |
+
color: #59626a;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
}
|
441 |
|
442 |
.wpr-conditions.wpr-tab-archive .global-condition-select,
|
457 |
display: block !important;
|
458 |
}
|
459 |
|
460 |
+
.wpr-conditions-sample {
|
461 |
+
display: none !important;
|
462 |
+
}
|
463 |
+
|
464 |
+
.wpr-conditions {
|
465 |
+
position: relative;
|
466 |
+
display: -webkit-box;
|
467 |
+
display: -ms-flexbox;
|
468 |
+
display: flex;
|
469 |
+
-webkit-box-align: center;
|
470 |
+
-ms-flex-align: center;
|
471 |
+
align-items: center;
|
472 |
+
margin-top: 10px;
|
473 |
+
width: 600px;
|
474 |
+
border-radius: 3px;
|
475 |
+
border: 1px solid #e8e8e8;
|
476 |
+
background: #fff;
|
477 |
+
}
|
478 |
+
|
479 |
+
.wpr-admin-popup header {
|
480 |
+
margin-top: 0;
|
481 |
+
margin-bottom: 20px;
|
482 |
+
text-align: center;
|
483 |
+
}
|
484 |
+
|
485 |
+
.wpr-admin-popup header h2 {
|
486 |
+
margin: 25px auto;
|
487 |
+
font-size: 26px;
|
488 |
+
color: #59626a;
|
489 |
+
}
|
490 |
+
|
491 |
+
.wpr-admin-popup header p {
|
492 |
+
margin-top: 0;
|
493 |
+
margin-bottom: 0;
|
494 |
+
color: #7f8b96;
|
495 |
+
}
|
496 |
|
497 |
.wpr-conditions select {
|
|
|
498 |
height: 35px;
|
499 |
+
height: 100%;
|
500 |
+
padding-top: 5px;
|
501 |
+
padding-bottom: 5px;
|
502 |
+
border-radius: 0;
|
503 |
+
border: none;
|
504 |
+
-webkit-box-flex: 1;
|
505 |
+
-ms-flex-positive: 1;
|
506 |
+
flex-grow: 1;
|
507 |
+
border-right: 1px solid #e8e8e8 !important;
|
508 |
+
background-size: 14px 14px;
|
509 |
+
}
|
510 |
+
|
511 |
+
span.wpr-add-conditions {
|
512 |
+
margin-top: 30px;
|
513 |
+
background: #A4AFB7;
|
514 |
+
color: #fff;
|
515 |
+
font-weight: 600;
|
516 |
+
letter-spacing: 1px;
|
517 |
+
text-transform: uppercase;
|
518 |
+
padding: 8px 20px;
|
519 |
+
border-radius: 3px;
|
520 |
+
cursor: pointer;
|
521 |
}
|
522 |
|
523 |
+
span.wpr-add-conditions:hover {
|
524 |
+
background: #848c92;
|
525 |
+
}
|
526 |
+
|
527 |
+
input.wpr-condition-input-ids {
|
528 |
display: none;
|
529 |
+
padding: 5px;
|
530 |
+
outline: none;
|
531 |
+
border: none;
|
532 |
+
border-radius: 0;
|
533 |
}
|
534 |
|
535 |
+
input.wpr-condition-input-ids,
|
536 |
+
.wpr-conditions select {
|
537 |
+
-ms-flex-negative: 0;
|
538 |
+
flex-shrink: 0;
|
539 |
+
-webkit-box-flex: 1;
|
540 |
+
-ms-flex-positive: 1;
|
541 |
+
flex-grow: 1;
|
542 |
+
max-width: none;
|
543 |
+
border: none;
|
544 |
+
-webkit-box-shadow: none !important;
|
545 |
+
box-shadow: none !important;
|
546 |
+
outline: none;
|
547 |
+
margin: 0;
|
548 |
+
text-indent: 5px;
|
549 |
}
|
550 |
|
551 |
+
.wpr-delete-template-conditions {
|
552 |
+
margin-left: auto;
|
553 |
+
position: absolute;
|
554 |
+
right: -30px;
|
555 |
+
color: #C2CBD2;
|
556 |
+
font-size: 22px;
|
557 |
cursor: pointer;
|
558 |
}
|
559 |
|
560 |
+
.wpr-delete-template-conditions:hover {
|
561 |
+
color: #81868a;
|
|
|
|
|
562 |
}
|
563 |
|
564 |
+
.wpr-save-conditions {
|
565 |
+
padding: 8px 20px;
|
566 |
+
color: #fff;
|
567 |
+
background: #6A4BFF;
|
568 |
+
margin-left: auto;
|
569 |
+
border-radius: 3px;
|
570 |
+
margin-top: 80px;
|
571 |
+
text-transform: uppercase;
|
572 |
+
letter-spacing: 0.5px;
|
573 |
+
font-weight: 600;
|
574 |
+
cursor: pointer;
|
575 |
}
|
576 |
|
577 |
+
.wpr-user-template-popup {
|
578 |
+
padding-top: 40px;
|
579 |
}
|
580 |
|
581 |
+
.wpr-user-template-popup header {
|
582 |
+
margin-bottom: 27px;
|
|
|
|
|
|
|
583 |
}
|
584 |
|
585 |
+
.wpr-user-template-popup .wpr-create-template {
|
586 |
+
padding: 11px 20px;
|
587 |
+
margin: 25px auto;
|
588 |
color: #fff;
|
589 |
+
background: #6A4BFF;
|
590 |
+
border-radius: 3px;
|
591 |
+
cursor: pointer;
|
592 |
}
|
593 |
|
594 |
+
.wpr-user-template-popup p {
|
595 |
+
max-width: 70%;
|
596 |
+
margin: auto;
|
597 |
}
|
598 |
|
599 |
+
input.wpr-user-template-title {
|
600 |
+
width: 350px;
|
601 |
+
border: 1px solid #d1d1d1;
|
602 |
+
padding: 5px 10px;
|
603 |
+
border-radius: 3px;
|
604 |
}
|
605 |
|
606 |
+
input.wpr-user-template-title::-webkit-input-placeholder,
|
607 |
+
input.wpr-condition-input-ids::-webkit-input-placeholder {
|
608 |
+
color: #9a9a9a;
|
609 |
+
}
|
610 |
+
|
611 |
+
input.wpr-user-template-title::-moz-placeholder,
|
612 |
+
input.wpr-condition-input-ids::-moz-placeholder {
|
613 |
+
color: #9a9a9a;
|
614 |
+
}
|
615 |
+
|
616 |
+
input.wpr-user-template-title:-ms-input-placeholder,
|
617 |
+
input.wpr-condition-input-ids:-ms-input-placeholder {
|
618 |
+
color: #9a9a9a;
|
619 |
}
|
620 |
|
621 |
+
input.wpr-user-template-title::-ms-input-placeholder,
|
622 |
+
input.wpr-condition-input-ids::-ms-input-placeholder {
|
623 |
+
color: #9a9a9a;
|
624 |
+
}
|
625 |
+
|
626 |
+
input.wpr-user-template-title::-webkit-input-placeholder, input.wpr-condition-input-ids::-webkit-input-placeholder {
|
627 |
+
color: #9a9a9a;
|
628 |
+
}
|
629 |
+
|
630 |
+
input.wpr-user-template-title::-moz-placeholder, input.wpr-condition-input-ids::-moz-placeholder {
|
631 |
+
color: #9a9a9a;
|
632 |
+
}
|
633 |
+
|
634 |
+
input.wpr-user-template-title:-ms-input-placeholder, input.wpr-condition-input-ids:-ms-input-placeholder {
|
635 |
+
color: #9a9a9a;
|
636 |
+
}
|
637 |
+
|
638 |
+
input.wpr-user-template-title::-ms-input-placeholder, input.wpr-condition-input-ids::-ms-input-placeholder {
|
639 |
+
color: #9a9a9a;
|
640 |
+
}
|
641 |
+
|
642 |
+
input.wpr-user-template-title::placeholder,
|
643 |
+
input.wpr-condition-input-ids::placeholder {
|
644 |
+
color: #9a9a9a;
|
645 |
+
}
|
646 |
+
|
647 |
+
input.wpr-user-template-title:focus {
|
648 |
+
border-color: #6A4BFF;
|
649 |
+
-webkit-box-shadow: none;
|
650 |
+
box-shadow: none;
|
651 |
+
}
|
652 |
+
|
653 |
+
|
654 |
+
/*--------------------------------------------------------------
|
655 |
+
== Freemius
|
656 |
+
--------------------------------------------------------------*/
|
657 |
#fs_connect {
|
658 |
+
margin: 40px !important;
|
659 |
+
width: 615px !important;
|
660 |
+
border-top: 3px solid #2271B1 !important;
|
661 |
}
|
662 |
|
663 |
#fs_connect .fs-content {
|
664 |
+
padding: 25px 20px 35px 20px !important;
|
665 |
}
|
666 |
|
667 |
+
#fs_connect .fs-visual {
|
668 |
+
background: transparent !important;
|
669 |
+
}
|
670 |
+
|
671 |
+
#fs_connect .fs-visual .fs-site-icon,
|
672 |
+
#fs_connect .fs-visual .fs-plugin-icon,
|
673 |
+
#fs_connect .fs-visual .fs-connect-logo {
|
674 |
+
top: 20px !important;
|
675 |
+
}
|
676 |
+
|
677 |
+
#fs_connect .fs-visual .fs-plugin-icon,
|
678 |
+
#fs_connect .fs-visual .fs-connect-logo,
|
679 |
+
#fs_connect .fs-visual .fs-site-icon {
|
680 |
+
border: none !important;
|
681 |
+
}
|
682 |
+
|
683 |
+
#fs_connect .fs-visual .fs-site-icon i,
|
684 |
+
#fs_connect .fs-visual img{
|
685 |
+
overflow: hidden !important;
|
686 |
+
border-radius: 100px !important;
|
687 |
}
|
688 |
|
689 |
#fs_connect .fs-actions {
|
690 |
+
border-top: 1px solid #F2F2F2 !important;
|
691 |
+
background: #F2F2F2 !important;
|
692 |
+
}
|
693 |
+
|
694 |
+
#fs_connect .fs-actions .button {
|
695 |
+
font-size: 14px !important;
|
696 |
+
}
|
697 |
+
|
698 |
+
#fs_connect .fs-actions .button.button-secondary {
|
699 |
+
padding: 0 25px !important;
|
700 |
+
}
|
701 |
+
|
702 |
+
#fs_connect .fs-permissions {
|
703 |
+
margin-top: 20px !important;
|
704 |
+
}
|
705 |
+
|
706 |
+
#fs_connect .fs-permissions>.fs-trigger {
|
707 |
+
-webkit-box-shadow: none !important;
|
708 |
+
box-shadow: none !important;
|
709 |
+
}
|
710 |
+
|
711 |
+
#fs_connect .fs-permissions.fs-open ul {
|
712 |
+
margin: 30px 20px !important;
|
713 |
+
}
|
714 |
+
|
715 |
+
#fs_connect .fs-permissions ul li {
|
716 |
+
margin-bottom: 20px !important;
|
717 |
+
}
|
718 |
+
|
719 |
+
#fs_connect .fs-permissions ul li .fs-permission-description span {
|
720 |
+
font-size: 12px !important;
|
721 |
+
text-transform: capitalize !important;
|
722 |
+
}
|
723 |
+
|
724 |
+
#fs_connect .fs-permissions ul li .fs-permission-description p {
|
725 |
+
font-size: 11px !important;
|
726 |
+
margin-top: 0 !important;
|
727 |
+
}
|
728 |
+
|
729 |
+
#fs_connect .fs-license-key-container {
|
730 |
+
width: 100% !important;
|
731 |
+
margin-top: 20px;
|
732 |
}
|
733 |
|
734 |
+
#pframe,
|
735 |
+
#fs_connect.require-license-key .fs-permissions,
|
736 |
+
#fs_connect.require-license-key .fs-terms,
|
737 |
#fs_connect .fs-freemium-licensing,
|
|
|
738 |
#license_issues_link {
|
739 |
display: none !important;
|
740 |
}
|
assets/css/admin/plugin-options.min.css
DELETED
@@ -1,618 +0,0 @@
|
|
1 |
-
#wpwrap {
|
2 |
-
background: #fff;
|
3 |
-
}
|
4 |
-
|
5 |
-
#wpcontent {
|
6 |
-
padding: 0;
|
7 |
-
}
|
8 |
-
|
9 |
-
.wpr-settings-page-wrap {
|
10 |
-
margin: 0;
|
11 |
-
}
|
12 |
-
|
13 |
-
.wpr-settings-page-header {
|
14 |
-
padding: 10px 30px 130px;
|
15 |
-
background: #f6f6f6
|
16 |
-
}
|
17 |
-
|
18 |
-
.wpr-settings-page-header h1 {
|
19 |
-
font-size: 42px;
|
20 |
-
}
|
21 |
-
|
22 |
-
.wpr-settings-page-header p {
|
23 |
-
margin-top: 5px;
|
24 |
-
color: #5a5a5a;
|
25 |
-
font-size: 16px;
|
26 |
-
margin-bottom: 30px;
|
27 |
-
}
|
28 |
-
|
29 |
-
.wpr-user-template {
|
30 |
-
-webkit-box-sizing: border-box;
|
31 |
-
box-sizing: border-box;
|
32 |
-
overflow: hidden;
|
33 |
-
display: inline-block;
|
34 |
-
width: 220px;
|
35 |
-
height: 50px;
|
36 |
-
line-height: 50px;
|
37 |
-
padding: 0 20px;
|
38 |
-
color: #fff;
|
39 |
-
background: #6A4BFF;
|
40 |
-
font-size: 15px;
|
41 |
-
-webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
|
42 |
-
box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
|
43 |
-
border-radius: 5px;
|
44 |
-
cursor: pointer;
|
45 |
-
}
|
46 |
-
|
47 |
-
.wpr-user-template .plus-icon {
|
48 |
-
float: right;
|
49 |
-
display: block;
|
50 |
-
width: 30px;
|
51 |
-
height: 30px;
|
52 |
-
line-height: 28px;
|
53 |
-
margin-top: 10px;
|
54 |
-
border-radius: 50%;
|
55 |
-
color: #333;
|
56 |
-
background-color: #fff;
|
57 |
-
font-size: 18px;
|
58 |
-
text-align: center;
|
59 |
-
}
|
60 |
-
|
61 |
-
.wpr-settings-page {
|
62 |
-
padding: 0 30px;
|
63 |
-
}
|
64 |
-
|
65 |
-
.wpr-nav-tab-wrapper {
|
66 |
-
padding-top: 0;
|
67 |
-
border-bottom: 0;
|
68 |
-
-webkit-transform: translateY(-100%);
|
69 |
-
-ms-transform: translateY(-100%);
|
70 |
-
transform: translateY(-100%);
|
71 |
-
}
|
72 |
-
|
73 |
-
.wpr-nav-tab-wrapper a {
|
74 |
-
border: 0 !important;
|
75 |
-
padding: 13px 35px;
|
76 |
-
background-color: transparent;
|
77 |
-
font-size: 16px;
|
78 |
-
margin-left: 0;
|
79 |
-
margin-right: 15px;
|
80 |
-
border-radius: 3px 4px 0 0;
|
81 |
-
color: #333;
|
82 |
-
}
|
83 |
-
|
84 |
-
.wpr-nav-tab-wrapper a:hover {
|
85 |
-
color: #6A4BFF;
|
86 |
-
background: #fff;
|
87 |
-
}
|
88 |
-
|
89 |
-
.wpr-nav-tab-wrapper .nav-tab-active {
|
90 |
-
color: #6A4BFF;
|
91 |
-
background: #fff;
|
92 |
-
-webkit-box-shadow: 3px -2px 5px rgba(0,0,0,0.03);
|
93 |
-
box-shadow: 3px -2px 5px rgba(0,0,0,0.03);
|
94 |
-
}
|
95 |
-
|
96 |
-
.wpr-nav-tab-wrapper a:focus {
|
97 |
-
-webkit-box-shadow: none;
|
98 |
-
box-shadow: none;
|
99 |
-
}
|
100 |
-
|
101 |
-
.button.wpr-options-button {
|
102 |
-
padding: 7px 22px;
|
103 |
-
border: 0;
|
104 |
-
color: #fff;
|
105 |
-
background: #6A4BFF;
|
106 |
-
-webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
|
107 |
-
box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
|
108 |
-
font-size: 14px;
|
109 |
-
}
|
110 |
-
|
111 |
-
.button.wpr-options-button:hover,
|
112 |
-
.button.wpr-options-button:focus {
|
113 |
-
color: #fff;
|
114 |
-
background: #6A4BFF;
|
115 |
-
border: none;
|
116 |
-
}
|
117 |
-
|
118 |
-
|
119 |
-
/*--------------------------------------------------------------
|
120 |
-
== Elements
|
121 |
-
--------------------------------------------------------------*/
|
122 |
-
.wpr-elements-toggle {
|
123 |
-
overflow: hidden;
|
124 |
-
text-align: center;
|
125 |
-
}
|
126 |
-
|
127 |
-
.wpr-elements-toggle > div {
|
128 |
-
display: inline-block;
|
129 |
-
}
|
130 |
-
|
131 |
-
.wpr-elements-toggle h3 {
|
132 |
-
float: left;
|
133 |
-
font-size: 18px;
|
134 |
-
margin: 0 20px 0 0;
|
135 |
-
}
|
136 |
-
|
137 |
-
.wpr-elements-toggle p {
|
138 |
-
margin: 10px 0 60px 0;
|
139 |
-
}
|
140 |
-
|
141 |
-
.wpr-elements {
|
142 |
-
display: -webkit-box;
|
143 |
-
display: -ms-flexbox;
|
144 |
-
display: flex;
|
145 |
-
-ms-flex-wrap: wrap;
|
146 |
-
flex-wrap: wrap;
|
147 |
-
width: 100%;
|
148 |
-
}
|
149 |
-
|
150 |
-
.wpr-element {
|
151 |
-
-webkit-box-sizing: border-box;
|
152 |
-
box-sizing: border-box;
|
153 |
-
width: 24%;
|
154 |
-
padding: 22px 30px;
|
155 |
-
margin-right: 1%;
|
156 |
-
margin-bottom: 20px;
|
157 |
-
-webkit-box-shadow: 0 0 15px rgba(0,0,0,0.05);
|
158 |
-
box-shadow: 0 0 15px rgba(0,0,0,0.05);
|
159 |
-
border-radius: 4px;
|
160 |
-
}
|
161 |
-
|
162 |
-
.wpr-element-info h3 {
|
163 |
-
float: left;
|
164 |
-
margin: 0;
|
165 |
-
color: #3a3a3a;
|
166 |
-
font-size: 16px;
|
167 |
-
}
|
168 |
-
|
169 |
-
.wpr-element-info label,
|
170 |
-
.wpr-elements-toggle label {
|
171 |
-
float: right;
|
172 |
-
}
|
173 |
-
|
174 |
-
.wpr-element-info a {
|
175 |
-
display: block;
|
176 |
-
clear: both;
|
177 |
-
font-size: 12px;
|
178 |
-
box-shadow: none !important;
|
179 |
-
}
|
180 |
-
|
181 |
-
.wpr-element-info input,
|
182 |
-
.wpr-elements-toggle input {
|
183 |
-
position: absolute;
|
184 |
-
z-index: -1000;
|
185 |
-
left: -1000px;
|
186 |
-
overflow: hidden;
|
187 |
-
clip: rect(0 0 0 0);
|
188 |
-
height: 1px;
|
189 |
-
width: 1px;
|
190 |
-
margin: -1px;
|
191 |
-
padding: 0;
|
192 |
-
border: 0;
|
193 |
-
}
|
194 |
-
|
195 |
-
.wpr-element-info label,
|
196 |
-
.wpr-elements-toggle label {
|
197 |
-
position: relative;
|
198 |
-
display: block;
|
199 |
-
width: 45px;
|
200 |
-
height: 23px;
|
201 |
-
border-radius: 20px;
|
202 |
-
background: #e8e8e8;
|
203 |
-
cursor: pointer;
|
204 |
-
-webkit-touch-callout: none;
|
205 |
-
-webkit-user-select: none;
|
206 |
-
-moz-user-select: none;
|
207 |
-
-ms-user-select: none;
|
208 |
-
user-select: none;
|
209 |
-
-webkit-transition: all 0.2s ease-in;
|
210 |
-
-o-transition: all 0.2s ease-in;
|
211 |
-
transition: all 0.2s ease-in;
|
212 |
-
}
|
213 |
-
|
214 |
-
.wpr-element-info input + label:after,
|
215 |
-
.wpr-elements-toggle input + label:after {
|
216 |
-
content: ' ';
|
217 |
-
display: block;
|
218 |
-
position: absolute;
|
219 |
-
top: 3px;
|
220 |
-
left: 3px;
|
221 |
-
width: 17px;
|
222 |
-
height: 17px;
|
223 |
-
border-radius: 50%;
|
224 |
-
background: #fff;
|
225 |
-
-webkit-transition: all 0.2s ease-in;
|
226 |
-
-o-transition: all 0.2s ease-in;
|
227 |
-
transition: all 0.2s ease-in;
|
228 |
-
}
|
229 |
-
|
230 |
-
.wpr-element-info input:checked + label,
|
231 |
-
.wpr-elements-toggle input:checked + label {
|
232 |
-
background: #6A4BFF;
|
233 |
-
}
|
234 |
-
|
235 |
-
.wpr-element-info input:checked + label:after,
|
236 |
-
.wpr-elements-toggle input:checked + label:after {
|
237 |
-
left: 24px;
|
238 |
-
}
|
239 |
-
|
240 |
-
|
241 |
-
/*--------------------------------------------------------------
|
242 |
-
== My Templates
|
243 |
-
--------------------------------------------------------------*/
|
244 |
-
|
245 |
-
.wpr-my-templates-list {
|
246 |
-
width: 50%;
|
247 |
-
}
|
248 |
-
|
249 |
-
.wpr-my-templates-list li {
|
250 |
-
overflow: hidden;
|
251 |
-
padding: 15px 35px;
|
252 |
-
margin-bottom: 15px;
|
253 |
-
border-radius: 3px;
|
254 |
-
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
|
255 |
-
box-shadow: 0 0 2px rgba(0,0,0,0.2);
|
256 |
-
}
|
257 |
-
|
258 |
-
.wpr-my-templates-list li h3 {
|
259 |
-
float: left;
|
260 |
-
margin: 0;
|
261 |
-
color: #555;
|
262 |
-
font-size: 16px;
|
263 |
-
line-height: 34px;
|
264 |
-
text-transform: capitalize;
|
265 |
-
}
|
266 |
-
|
267 |
-
.wpr-my-templates-list .wpr-action-buttons {
|
268 |
-
float: right;
|
269 |
-
}
|
270 |
-
|
271 |
-
.wpr-my-templates-list .wpr-action-buttons a {
|
272 |
-
display: inline-block;
|
273 |
-
padding: 3px 25px;
|
274 |
-
margin-right: 10px;
|
275 |
-
border: 0;
|
276 |
-
background: #6A4BFF;
|
277 |
-
letter-spacing: 0.5px;
|
278 |
-
-webkit-box-shadow: 0 0 3px rgba(0,0,0,0.3);
|
279 |
-
box-shadow: 0 0 3px rgba(0,0,0,0.3);
|
280 |
-
}
|
281 |
-
|
282 |
-
.wpr-my-templates-list .wpr-action-buttons a:hover {
|
283 |
-
background: #5938FF;
|
284 |
-
}
|
285 |
-
|
286 |
-
.wpr-my-templates-list .wpr-action-buttons > span {
|
287 |
-
width: 34px;
|
288 |
-
height: 34px;
|
289 |
-
padding: 0;
|
290 |
-
border: 0;
|
291 |
-
color: #fff;
|
292 |
-
background: #FF4062;
|
293 |
-
text-align: center;
|
294 |
-
-webkit-box-shadow: 0 0 3px rgba(0,0,0,0.3);
|
295 |
-
box-shadow: 0 0 3px rgba(0,0,0,0.3);
|
296 |
-
}
|
297 |
-
|
298 |
-
.wpr-my-templates-list .wpr-action-buttons > span:hover {
|
299 |
-
color: #fff;
|
300 |
-
background: #FF2C53;
|
301 |
-
}
|
302 |
-
|
303 |
-
.wpr-my-templates-list .wpr-action-buttons .dashicons {
|
304 |
-
font-size: 16px;
|
305 |
-
line-height: 34px;
|
306 |
-
}
|
307 |
-
|
308 |
-
.user-template-popup {
|
309 |
-
position: absolute;
|
310 |
-
top: 50%;
|
311 |
-
left: 50%;
|
312 |
-
-webkit-transform: translate(-50%,-50%);
|
313 |
-
-ms-transform: translate(-50%,-50%);
|
314 |
-
transform: translate(-50%,-50%);
|
315 |
-
display: -webkit-box;
|
316 |
-
display: -ms-flexbox;
|
317 |
-
display: flex;
|
318 |
-
-webkit-box-align: center;
|
319 |
-
-ms-flex-align: center;
|
320 |
-
align-items: center;
|
321 |
-
-webkit-box-pack: center;
|
322 |
-
-ms-flex-pack: center;
|
323 |
-
justify-content: center;
|
324 |
-
width: 80%;
|
325 |
-
max-width: 550px;
|
326 |
-
padding: 55px;
|
327 |
-
border-radius: 3px;
|
328 |
-
border: 0;
|
329 |
-
background: #fff;
|
330 |
-
}
|
331 |
-
|
332 |
-
input.user-template-title {
|
333 |
-
width: 350px;
|
334 |
-
border: 1px solid #d1d1d1;
|
335 |
-
padding: 5px 10px;
|
336 |
-
border-radius: 3px;
|
337 |
-
}
|
338 |
-
|
339 |
-
input.user-template-title::-webkit-input-placeholder {
|
340 |
-
color: #9a9a9a;
|
341 |
-
}
|
342 |
-
|
343 |
-
input.user-template-title::-moz-placeholder {
|
344 |
-
color: #9a9a9a;
|
345 |
-
}
|
346 |
-
|
347 |
-
input.user-template-title:-ms-input-placeholder {
|
348 |
-
color: #9a9a9a;
|
349 |
-
}
|
350 |
-
|
351 |
-
input.user-template-title::-ms-input-placeholder {
|
352 |
-
color: #9a9a9a;
|
353 |
-
}
|
354 |
-
|
355 |
-
input.user-template-title::placeholder {
|
356 |
-
color: #9a9a9a;
|
357 |
-
}
|
358 |
-
|
359 |
-
input.user-template-title:focus {
|
360 |
-
border-color: #6A4BFF;
|
361 |
-
-webkit-box-shadow: none;
|
362 |
-
box-shadow: none;
|
363 |
-
}
|
364 |
-
|
365 |
-
.user-template-popup .create-template {
|
366 |
-
padding: 11px 20px;
|
367 |
-
margin-left: 5px;
|
368 |
-
color: #fff;
|
369 |
-
background: #6A4BFF;
|
370 |
-
border-radius: 3px;
|
371 |
-
cursor: pointer;
|
372 |
-
}
|
373 |
-
|
374 |
-
.user-template-popup .close-popup {
|
375 |
-
position: absolute;
|
376 |
-
top: 7px;
|
377 |
-
right: 10px;
|
378 |
-
font-size: 24px;
|
379 |
-
cursor: pointer;
|
380 |
-
color: #7a7a7a;
|
381 |
-
}
|
382 |
-
|
383 |
-
|
384 |
-
/*--------------------------------------------------------------
|
385 |
-
== Settings
|
386 |
-
--------------------------------------------------------------*/
|
387 |
-
.wpr-settings-group:first-of-type {
|
388 |
-
margin-top: 50px;
|
389 |
-
}
|
390 |
-
|
391 |
-
.wpr-settings-group {
|
392 |
-
position: relative;
|
393 |
-
width: 35%;
|
394 |
-
background: #f9f9f9;
|
395 |
-
padding: 30px;
|
396 |
-
margin-bottom: 80px;
|
397 |
-
-webkit-box-shadow: 1px 2px 3px rgba(0,0,0,0.1);
|
398 |
-
box-shadow: 1px 2px 3px rgba(0,0,0,0.1);
|
399 |
-
border-radius: 0 3px 3px 3px;
|
400 |
-
}
|
401 |
-
|
402 |
-
.wpr-settings-group-title {
|
403 |
-
position: absolute;
|
404 |
-
top: 0;
|
405 |
-
left: 0;
|
406 |
-
-webkit-transform: translateY(-100%);
|
407 |
-
-ms-transform: translateY(-100%);
|
408 |
-
transform: translateY(-100%);
|
409 |
-
padding: 10px 30px;
|
410 |
-
background: #f9f9f9;
|
411 |
-
margin: 0;
|
412 |
-
-webkit-box-shadow: 0 -2px 3px rgba(0,0,0,0.05);
|
413 |
-
box-shadow: 0 -2px 3px rgba(0,0,0,0.05);
|
414 |
-
border-radius: 3px 3px 0 0;
|
415 |
-
color: #6A4BFF;
|
416 |
-
font-size: 14px;
|
417 |
-
}
|
418 |
-
|
419 |
-
.wpr-setting {
|
420 |
-
margin-bottom: 20px;
|
421 |
-
}
|
422 |
-
|
423 |
-
.wpr-setting h4 {
|
424 |
-
margin-bottom: 8px;
|
425 |
-
}
|
426 |
-
|
427 |
-
.wpr-setting input {
|
428 |
-
border: 1px solid #e8e8e8;
|
429 |
-
width: 100%;
|
430 |
-
padding: 5px 15px;
|
431 |
-
}
|
432 |
-
|
433 |
-
.wpr-settings .submit:first-of-type {
|
434 |
-
margin-top: 0;
|
435 |
-
padding-top: 0;
|
436 |
-
margin-bottom: 70px;
|
437 |
-
}
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
/* Condition Popup */
|
454 |
-
.wpr-condition-popup-wrap,
|
455 |
-
.user-template-popup-wrap {
|
456 |
-
display: none;
|
457 |
-
position: fixed;
|
458 |
-
top: 0;
|
459 |
-
left: 0;
|
460 |
-
z-index: 9999;
|
461 |
-
background-color: rgba(0, 0, 0, 0.6);
|
462 |
-
width: 100%;
|
463 |
-
height: 100%;
|
464 |
-
}
|
465 |
-
|
466 |
-
.wpr-condition-popup {
|
467 |
-
position: absolute;
|
468 |
-
top: 50%;
|
469 |
-
left: 50%;
|
470 |
-
-webkit-transform: translate(-50%,-50%);
|
471 |
-
-ms-transform: translate(-50%,-50%);
|
472 |
-
transform: translate(-50%,-50%);
|
473 |
-
width: 80%;
|
474 |
-
max-width: 800px;
|
475 |
-
padding: 30px;
|
476 |
-
padding-bottom: 100px;
|
477 |
-
background-color: #fff;
|
478 |
-
border: 1px solid #000;
|
479 |
-
}
|
480 |
-
|
481 |
-
.wpr-condition-popup h2 {
|
482 |
-
margin-top: 0;
|
483 |
-
}
|
484 |
-
|
485 |
-
.wpr-condition-popup .close-popup {
|
486 |
-
position: absolute;
|
487 |
-
top: 7px;
|
488 |
-
right: 10px;
|
489 |
-
font-size: 24px;
|
490 |
-
cursor: pointer;
|
491 |
-
color: #555;
|
492 |
-
}
|
493 |
-
|
494 |
-
.wpr-conditions-sample {
|
495 |
-
display: none !important;
|
496 |
-
}
|
497 |
-
|
498 |
-
.wpr-conditions {
|
499 |
-
position: relative;
|
500 |
-
overflow: hidden;
|
501 |
-
margin-top: 10px;
|
502 |
-
}
|
503 |
-
|
504 |
-
.wpr-conditions.wpr-tab-archive .global-condition-select,
|
505 |
-
.wpr-conditions.wpr-tab-archive .singles-condition-select,
|
506 |
-
.wpr-conditions.wpr-tab-single .global-condition-select,
|
507 |
-
.wpr-conditions.wpr-tab-single .archives-condition-select {
|
508 |
-
display: none !important;
|
509 |
-
}
|
510 |
-
|
511 |
-
.wpr-conditions-wrap.blog-posts .singles-condition-select option:nth-child(1),
|
512 |
-
.wpr-conditions-wrap.blog-posts .singles-condition-select option:nth-child(2),
|
513 |
-
.wpr-conditions-wrap.blog-posts .singles-condition-select option:nth-child(3) {
|
514 |
-
/*display: none;*/
|
515 |
-
}
|
516 |
-
|
517 |
-
.wpr-conditions.wpr-tab-archive .archives-condition-select,
|
518 |
-
.wpr-conditions.wpr-tab-single .singles-condition-select {
|
519 |
-
display: block !important;
|
520 |
-
}
|
521 |
-
|
522 |
-
|
523 |
-
.wpr-conditions select {
|
524 |
-
float: left;
|
525 |
-
height: 35px;
|
526 |
-
padding: 0 10px;
|
527 |
-
margin-right: 10px;
|
528 |
-
}
|
529 |
-
|
530 |
-
.condition-input-ids {
|
531 |
-
display: none;
|
532 |
-
padding: 7px;
|
533 |
-
}
|
534 |
-
|
535 |
-
.add-conditions {
|
536 |
-
margin-top: 15px !important;
|
537 |
-
}
|
538 |
-
|
539 |
-
.delete-conditions {
|
540 |
-
margin-top: 5px;
|
541 |
-
margin-left: 10px;
|
542 |
-
padding: 3px;
|
543 |
-
color: #f44;
|
544 |
-
border-bottom: 1px solid #f44;
|
545 |
-
cursor: pointer;
|
546 |
-
}
|
547 |
-
|
548 |
-
.save-conditions {
|
549 |
-
position: absolute;
|
550 |
-
right: 20px;
|
551 |
-
bottom: 20px;
|
552 |
-
}
|
553 |
-
|
554 |
-
/* Filters */
|
555 |
-
.template-filters {
|
556 |
-
text-align: center;
|
557 |
-
margin-bottom: 30px;
|
558 |
-
}
|
559 |
-
|
560 |
-
.template-filters ul li {
|
561 |
-
display: inline-block;
|
562 |
-
}
|
563 |
-
|
564 |
-
.template-filters ul li span {
|
565 |
-
display: inline-block;
|
566 |
-
padding: 7px 13px;
|
567 |
-
background: #fff;
|
568 |
-
cursor: pointer;
|
569 |
-
}
|
570 |
-
|
571 |
-
.template-filters ul li.active-filter > span,
|
572 |
-
.template-filters ul li:hover > span {
|
573 |
-
background: #333;
|
574 |
-
color: #fff;
|
575 |
-
}
|
576 |
-
|
577 |
-
.sub-filters {
|
578 |
-
display: none;
|
579 |
-
}
|
580 |
-
|
581 |
-
/* Single Template s */
|
582 |
-
.single-templates .column-3-wrap,
|
583 |
-
.archive-templates .column-3-wrap {
|
584 |
-
display: none;
|
585 |
-
}
|
586 |
-
|
587 |
-
.single-templates .blog-posts,
|
588 |
-
.archive-templates .blog-archives {
|
589 |
-
display: block;
|
590 |
-
}
|
591 |
-
|
592 |
-
/* Freemius */
|
593 |
-
#fs_connect {
|
594 |
-
margin: 50px !important;
|
595 |
-
border: 1px solid #e8e8e8;
|
596 |
-
}
|
597 |
-
|
598 |
-
#fs_connect .fs-content {
|
599 |
-
padding: 25px;
|
600 |
-
}
|
601 |
-
|
602 |
-
#fs_connect .fs-license-key-container {
|
603 |
-
width: 100% !important;
|
604 |
-
margin-top: 20px;
|
605 |
-
}
|
606 |
-
|
607 |
-
#fs_connect .fs-actions {
|
608 |
-
padding: 0 !important;
|
609 |
-
background-color: transparent !important;
|
610 |
-
}
|
611 |
-
|
612 |
-
#fs_connect .fs-visual,
|
613 |
-
#fs_connect .fs-permissions,
|
614 |
-
#fs_connect .fs-freemium-licensing,
|
615 |
-
#fs_connect .fs-terms,
|
616 |
-
#license_issues_link {
|
617 |
-
display: none !important;
|
618 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/admin/rating-notice.css
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
.notice-for-rating .notice-dismiss {
|
2 |
-
display: none;
|
3 |
-
}
|
|
|
|
|
|
assets/css/editor.css
CHANGED
@@ -25,8 +25,8 @@
|
|
25 |
font-size: 10px;
|
26 |
font-weight: bold;
|
27 |
color: #ffffff;
|
28 |
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#6A4BFF), to(#7E94FE));
|
29 |
background-image: -o-linear-gradient(#6A4BFF, #7E94FE);
|
|
|
30 |
background-image: linear-gradient(#6A4BFF, #7E94FE);
|
31 |
-webkit-box-shadow: 0 0 2px 2px #b8c7ff;
|
32 |
box-shadow: 0 0 2px 2px #b8c7ff;
|
@@ -41,6 +41,29 @@
|
|
41 |
position: relative !important;
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
/*--------------------------------------------------------------
|
46 |
== Adjustments
|
@@ -96,7 +119,9 @@
|
|
96 |
.elementor-control-title_transition_duration,
|
97 |
.elementor-control-tax1_transition_duration,
|
98 |
.elementor-control-tax2_transition_duration,
|
99 |
-
.elementor-control-filters_transition_duration
|
|
|
|
|
100 |
padding-top: 15px !important;
|
101 |
}
|
102 |
|
@@ -293,7 +318,9 @@
|
|
293 |
/*--------------------------------------------------------------
|
294 |
== Modal Popup Editor
|
295 |
--------------------------------------------------------------*/
|
296 |
-
.elementor-editor-wpr-
|
|
|
|
|
297 |
display: none !important;
|
298 |
}
|
299 |
|
@@ -504,12 +531,16 @@
|
|
504 |
}
|
505 |
|
506 |
.elementor-control[class*="pro_notice"] {
|
507 |
-
padding:
|
508 |
-
|
509 |
-
|
|
|
|
|
510 |
border-top: 1px solid #e6e9ec;
|
511 |
border-bottom: 1px solid #e6e9ec;
|
512 |
background-color: #f2fbff;
|
|
|
|
|
513 |
}
|
514 |
|
515 |
.elementor-control-slider_section_pro_notice {
|
@@ -539,4 +570,93 @@
|
|
539 |
top: 0;
|
540 |
left: 0;
|
541 |
background: rgba(0,0,0,0.2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
542 |
}
|
25 |
font-size: 10px;
|
26 |
font-weight: bold;
|
27 |
color: #ffffff;
|
|
|
28 |
background-image: -o-linear-gradient(#6A4BFF, #7E94FE);
|
29 |
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#6A4BFF), to(#7E94FE));
|
30 |
background-image: linear-gradient(#6A4BFF, #7E94FE);
|
31 |
-webkit-box-shadow: 0 0 2px 2px #b8c7ff;
|
32 |
box-shadow: 0 0 2px 2px #b8c7ff;
|
41 |
position: relative !important;
|
42 |
}
|
43 |
|
44 |
+
.elementor-control-type-section[class*="elementor-control-wpr_section_"]:after {
|
45 |
+
content: 'R';
|
46 |
+
display: block;
|
47 |
+
position: absolute;
|
48 |
+
top: 7px;
|
49 |
+
right: 7px;
|
50 |
+
font-family: Roboto,Arial,Helvetica,Verdana,sans-serif;
|
51 |
+
font-size: 10px;
|
52 |
+
font-weight: bold;
|
53 |
+
color: #ffffff;
|
54 |
+
background-image: -o-linear-gradient(#6A4BFF, #7E94FE);
|
55 |
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#6A4BFF), to(#7E94FE));
|
56 |
+
background-image: linear-gradient(#6A4BFF, #7E94FE);
|
57 |
+
-webkit-box-shadow: 0 0 2px 2px #b8c7ff;
|
58 |
+
box-shadow: 0 0 2px 2px #b8c7ff;
|
59 |
+
width: 19px;
|
60 |
+
height: 19px;
|
61 |
+
line-height: 19px;
|
62 |
+
border-radius: 15px;
|
63 |
+
margin: 3px;
|
64 |
+
text-align: center;
|
65 |
+
}
|
66 |
+
|
67 |
|
68 |
/*--------------------------------------------------------------
|
69 |
== Adjustments
|
119 |
.elementor-control-title_transition_duration,
|
120 |
.elementor-control-tax1_transition_duration,
|
121 |
.elementor-control-tax2_transition_duration,
|
122 |
+
.elementor-control-filters_transition_duration,
|
123 |
+
.elementor-control-pagination_older_text,
|
124 |
+
.elementor-control-tooltip_position {
|
125 |
padding-top: 15px !important;
|
126 |
}
|
127 |
|
318 |
/*--------------------------------------------------------------
|
319 |
== Modal Popup Editor
|
320 |
--------------------------------------------------------------*/
|
321 |
+
.elementor-editor-wpr-popups .elementor-control-document_settings,
|
322 |
+
.elementor-editor-wpr-popups .elementor-control-post_title,
|
323 |
+
.elementor-editor-wpr-popups .elementor-control-post_status {
|
324 |
display: none !important;
|
325 |
}
|
326 |
|
531 |
}
|
532 |
|
533 |
.elementor-control[class*="pro_notice"] {
|
534 |
+
padding: 5px 0 15px 0 !important;
|
535 |
+
}
|
536 |
+
|
537 |
+
.wpr-pro-notice {
|
538 |
+
padding: 20px;
|
539 |
border-top: 1px solid #e6e9ec;
|
540 |
border-bottom: 1px solid #e6e9ec;
|
541 |
background-color: #f2fbff;
|
542 |
+
line-height: 1.4;
|
543 |
+
text-align: center;
|
544 |
}
|
545 |
|
546 |
.elementor-control-slider_section_pro_notice {
|
570 |
top: 0;
|
571 |
left: 0;
|
572 |
background: rgba(0,0,0,0.2);
|
573 |
+
}
|
574 |
+
|
575 |
+
/* Adjustments */
|
576 |
+
.elementor-control.elementor-control-element_align_pro_notice,
|
577 |
+
.elementor-control.elementor-control-search_pro_notice,
|
578 |
+
.elementor-control.elementor-control-layout_select_pro_notice,
|
579 |
+
.elementor-control.elementor-control-grid_columns_pro_notice,
|
580 |
+
.elementor-control.elementor-control-slider_content_type_pro_notice,
|
581 |
+
.elementor-control.elementor-control-slider_repeater_pro_notice,
|
582 |
+
.elementor-control.elementor-control-slider_dots_layout_pro_notice,
|
583 |
+
.elementor-control.elementor-control-testimonial_repeater_pro_notice,
|
584 |
+
.elementor-control.elementor-control-testimonial_icon_pro_notice,
|
585 |
+
.elementor-control.elementor-control-menu_layout_pro_notice,
|
586 |
+
.elementor-control.elementor-control-menu_items_submenu_entrance_pro_notice,
|
587 |
+
.elementor-control.elementor-control-switcher_label_style_pro_notice,
|
588 |
+
.elementor-control.elementor-control-countdown_type_pro_notice,
|
589 |
+
.elementor-control.elementor-control-layout_pro_notice,
|
590 |
+
.elementor-control.elementor-control-anim_timing_pro_notice,
|
591 |
+
.elementor-control.elementor-control-tab_content_type_pro_notice,
|
592 |
+
.elementor-control.elementor-control-tabs_repeater_pro_notice,
|
593 |
+
.elementor-control.elementor-control-tabs_align_pro_notice,
|
594 |
+
.elementor-control.elementor-control-front_trigger_pro_notice,
|
595 |
+
.elementor-control.elementor-control-back_link_type_pro_notice,
|
596 |
+
.elementor-control.elementor-control-box_anim_timing_pro_notice,
|
597 |
+
.elementor-control.elementor-control-image_style_pro_notice,
|
598 |
+
.elementor-control.elementor-control-image_animation_timing_pro_notice,
|
599 |
+
.elementor-control.elementor-control-label_display_pro_notice,
|
600 |
+
.elementor-control.elementor-control-post_type_pro_notice,
|
601 |
+
.elementor-control.elementor-control-type_select_pro_notice,
|
602 |
+
.elementor-control.elementor-control-icon_style_pro_notice,
|
603 |
+
.elementor-control.elementor-control-dual_button_pro_notice,
|
604 |
+
.elementor-control.elementor-control-team_member_pro_notice,
|
605 |
+
.elementor-control.elementor-control-price_list_pro_notice,
|
606 |
+
.elementor-control.elementor-control-business_hours_pro_notice,
|
607 |
+
.elementor-control.elementor-control-sharing_columns_pro_notice,
|
608 |
+
.elementor-control.elementor-control-popup_trigger_pro_notice,
|
609 |
+
.elementor-control.elementor-control-popup_show_again_delay_pro_notice,
|
610 |
+
.elementor-control.elementor-control-group_popup_settings_pro_notice,
|
611 |
+
.elementor-control.elementor-control-which_particle_pro_notice,
|
612 |
+
.elementor-control.elementor-control-paralax_repeater_pro_notice {
|
613 |
+
padding-bottom: 0 !important;
|
614 |
+
}
|
615 |
+
|
616 |
+
.elementor-control-search_pro_notice .wpr-pro-notice,
|
617 |
+
.elementor-control-grid_columns_pro_notice .wpr-pro-notice,
|
618 |
+
.elementor-control-slider_content_type_pro_notice .wpr-pro-notice,
|
619 |
+
.elementor-control-slider_repeater_pro_notice .wpr-pro-notice,
|
620 |
+
.elementor-control-slider_dots_layout_pro_notice .wpr-pro-notice,
|
621 |
+
.elementor-control-testimonial_repeater_pro_notice .wpr-pro-notice,
|
622 |
+
.elementor-control-testimonial_icon_pro_notice .wpr-pro-notice,
|
623 |
+
.elementor-control-menu_layout_pro_notice .wpr-pro-notice,
|
624 |
+
.elementor-control-menu_items_submenu_entrance_pro_notice .wpr-pro-notice,
|
625 |
+
.elementor-control-switcher_label_style_pro_notice .wpr-pro-notice,
|
626 |
+
.elementor-control-countdown_type_pro_notice .wpr-pro-notice,
|
627 |
+
.elementor-control-layout_pro_notice .wpr-pro-notice,
|
628 |
+
.elementor-control-anim_timing_pro_notice .wpr-pro-notice,
|
629 |
+
.elementor-control-tab_content_type_pro_notice .wpr-pro-notice,
|
630 |
+
.elementor-control-tabs_repeater_pro_notice .wpr-pro-notice,
|
631 |
+
.elementor-control-tabs_align_pro_notice .wpr-pro-notice,
|
632 |
+
.elementor-control-front_trigger_pro_notice .wpr-pro-notice,
|
633 |
+
.elementor-control-back_link_type_pro_notice .wpr-pro-notice,
|
634 |
+
.elementor-control-box_anim_timing_pro_notice .wpr-pro-notice,
|
635 |
+
.elementor-control-image_style_pro_notice .wpr-pro-notice,
|
636 |
+
.elementor-control-image_animation_timing_pro_notice .wpr-pro-notice,
|
637 |
+
.elementor-control-label_display_pro_notice .wpr-pro-notice,
|
638 |
+
.elementor-control-post_type_pro_notice .wpr-pro-notice,
|
639 |
+
.elementor-control-type_select_pro_notice .wpr-pro-notice,
|
640 |
+
.elementor-control-icon_style_pro_notice .wpr-pro-notice,
|
641 |
+
.elementor-control-dual_button_pro_notice .wpr-pro-notice,
|
642 |
+
.elementor-control-team_member_pro_notice .wpr-pro-notice,
|
643 |
+
.elementor-control-price_list_pro_notice .wpr-pro-notice,
|
644 |
+
.elementor-control-business_hours_pro_notice .wpr-pro-notice,
|
645 |
+
.elementor-control-sharing_columns_pro_notice .wpr-pro-notice,
|
646 |
+
.elementor-control-popup_trigger_pro_notice .wpr-pro-notice,
|
647 |
+
.elementor-control-popup_show_again_delay_pro_notice .wpr-pro-notice,
|
648 |
+
.elementor-control-group_popup_settings_pro_notice .wpr-pro-notice {
|
649 |
+
border-bottom: none !important;
|
650 |
+
}
|
651 |
+
|
652 |
+
/* Both */
|
653 |
+
.elementor-control.elementor-control-pagination_type_pro_notice,
|
654 |
+
.elementor-control.elementor-control-tooltip_trigger_pro_notice {
|
655 |
+
padding-top: 0 !important;
|
656 |
+
padding-bottom: 0 !important;
|
657 |
+
}
|
658 |
+
|
659 |
+
.elementor-control-pagination_type_pro_notice .wpr-pro-notice {
|
660 |
+
border-top: none !important;
|
661 |
+
border-bottom: none !important;
|
662 |
}
|
assets/css/editor.min.css
CHANGED
@@ -1,643 +1 @@
|
|
1 |
-
/*--------------------------------------------------------------
|
2 |
-
== General
|
3 |
-
--------------------------------------------------------------*/
|
4 |
-
.wpr-elementor-hidden-control {
|
5 |
-
overflow: hidden;
|
6 |
-
width: 0 !important;
|
7 |
-
height: 0 !important;
|
8 |
-
padding: 0 !important;
|
9 |
-
margin: 0 !important;
|
10 |
-
visibility: hidden !important;
|
11 |
-
opacity: 0 !important;
|
12 |
-
}
|
13 |
-
|
14 |
-
|
15 |
-
/*--------------------------------------------------------------
|
16 |
-
== WPR Widgets
|
17 |
-
--------------------------------------------------------------*/
|
18 |
-
.elementor-panel .wpr-icon:after {
|
19 |
-
content: 'R';
|
20 |
-
display: block;
|
21 |
-
position: absolute;
|
22 |
-
top: 3px;
|
23 |
-
right: 3px;
|
24 |
-
font-family: Roboto,Arial,Helvetica,Verdana,sans-serif;
|
25 |
-
font-size: 10px;
|
26 |
-
font-weight: bold;
|
27 |
-
color: #ffffff;
|
28 |
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#6A4BFF), to(#7E94FE));
|
29 |
-
background-image: -o-linear-gradient(#6A4BFF, #7E94FE);
|
30 |
-
background-image: linear-gradient(#6A4BFF, #7E94FE);
|
31 |
-
-webkit-box-shadow: 0 0 2px 2px #b8c7ff;
|
32 |
-
box-shadow: 0 0 2px 2px #b8c7ff;
|
33 |
-
width: 19px;
|
34 |
-
height: 19px;
|
35 |
-
line-height: 19px;
|
36 |
-
border-radius: 15px;
|
37 |
-
margin: 3px;
|
38 |
-
}
|
39 |
-
|
40 |
-
.elementor-panel .elementor-element .icon {
|
41 |
-
position: relative !important;
|
42 |
-
}
|
43 |
-
|
44 |
-
|
45 |
-
/*--------------------------------------------------------------
|
46 |
-
== Adjustments
|
47 |
-
--------------------------------------------------------------*/
|
48 |
-
.elementor-control-element_select,
|
49 |
-
.elementor-control-element_align_hr,
|
50 |
-
.elementor-control-element_read_more_text,
|
51 |
-
.elementor-control-element_tax_sep,
|
52 |
-
.elementor-control-element_sharing_icon_6,
|
53 |
-
.elementor-control-element_sharing_trigger_direction,
|
54 |
-
.elementor-control-element_sharing_icon_display,
|
55 |
-
.elementor-control-element_sharing_tooltip,
|
56 |
-
.elementor-control-element_custom_field_wrapper_html,
|
57 |
-
.elementor-control-slider_item_bg_size,
|
58 |
-
.elementor-control-element_addcart_variable_txt,
|
59 |
-
.elementor-control-type {
|
60 |
-
margin-bottom: 15px;
|
61 |
-
}
|
62 |
-
|
63 |
-
.elementor-control-slider_content_bg_color,
|
64 |
-
.elementor-control-slider_nav_border_border,
|
65 |
-
.elementor-control-slider_nav_border_radius,
|
66 |
-
.elementor-control-scroll_btn_vr,
|
67 |
-
.elementor-control-pagination_load_more_text,
|
68 |
-
.elementor-control-pagination_finish_text,
|
69 |
-
.elementor-control-pagination_prev_next,
|
70 |
-
.elementor-control-author_transition_duration,
|
71 |
-
.elementor-control-comments_transition_duration,
|
72 |
-
.elementor-control-likes_transition_duration,
|
73 |
-
.elementor-control-sharing_transition_duration,
|
74 |
-
.elementor-control-lightbox_transition_duration,
|
75 |
-
.elementor-control-custom_field1_transition_duration,
|
76 |
-
.elementor-control-custom_field2_transition_duration,
|
77 |
-
.elementor-control-custom_field3_transition_duration,
|
78 |
-
.elementor-control-custom_field4_transition_duration,
|
79 |
-
.elementor-control-filters_transition_duration,
|
80 |
-
.elementor-control-pagination_transition_duration,
|
81 |
-
.elementor-control-element_extra_text_pos,
|
82 |
-
.elementor-control-element_custom_field_wrapper,
|
83 |
-
.elementor-control-overlay_post_link,
|
84 |
-
.elementor-control-read_more_animation_height,
|
85 |
-
.elementor-control-archive_link_transition_duration,
|
86 |
-
.elementor-control-post_info_tax_select,
|
87 |
-
.elementor-control-post_info_link_wrap,
|
88 |
-
.elementor-control-tabs_sharing_custom_colors,
|
89 |
-
.elementor-control-post_info_show_avatar,
|
90 |
-
.elementor-control-post_info_cf,
|
91 |
-
.elementor-control-pricing_items .elementor-control-price,
|
92 |
-
.elementor-control-pricing_items .elementor-control-feature_text,
|
93 |
-
.elementor-control-pricing_items .elementor-control-btn_text,
|
94 |
-
.elementor-control-divider_style,
|
95 |
-
.elementor-control-filters_pointer,
|
96 |
-
.elementor-control-title_transition_duration,
|
97 |
-
.elementor-control-tax1_transition_duration,
|
98 |
-
.elementor-control-tax2_transition_duration,
|
99 |
-
.elementor-control-filters_transition_duration,
|
100 |
-
.elementor-control-pagination_older_text,
|
101 |
-
.elementor-control-tooltip_position {
|
102 |
-
padding-top: 15px !important;
|
103 |
-
}
|
104 |
-
|
105 |
-
.elementor-control-title_pointer_animation + .elementor-control-title_transition_duration,
|
106 |
-
.elementor-control-tax1_pointer_animation + .elementor-control-tax1_transition_duration,
|
107 |
-
.elementor-control-tax2_pointer_animation + .elementor-control-tax2_transition_duration,
|
108 |
-
.elementor-control-filters_pointer_animation + .elementor-control-filters_transition_duration {
|
109 |
-
padding-top: 0 !important;
|
110 |
-
}
|
111 |
-
|
112 |
-
.elementor-control-pagination_load_more_text {
|
113 |
-
padding-bottom: 0 !important;
|
114 |
-
}
|
115 |
-
|
116 |
-
.elementor-control-filters_transition_duration {
|
117 |
-
padding-top: 0 !important;
|
118 |
-
}
|
119 |
-
|
120 |
-
.elementor-control-animation_divider,
|
121 |
-
.elementor-control-overlay_divider,
|
122 |
-
.elementor-control-slider_item_btn_1_divider,
|
123 |
-
.elementor-control-slider_item_btn_2_divider,
|
124 |
-
.elementor-control-slider_btn_typography_1_divider,
|
125 |
-
.elementor-control-slider_btn_box_shadow_1_divider,
|
126 |
-
.elementor-control-slider_btn_typography_2_divider,
|
127 |
-
.elementor-control-slider_btn_box_shadow_2_divider,
|
128 |
-
.elementor-control-testimonial_title_divider,
|
129 |
-
.elementor-control-social_media_divider,
|
130 |
-
.elementor-control-social_divider_1,
|
131 |
-
.elementor-control-social_divider_2,
|
132 |
-
.elementor-control-social_divider_3,
|
133 |
-
.elementor-control-social_divider_4,
|
134 |
-
.elementor-control-social_divider_5,
|
135 |
-
.elementor-control-custom_field_wrapper_html_divider1,
|
136 |
-
.elementor-control-custom_field_wrapper_html_divider2,
|
137 |
-
.elementor-control-lightbox_shadow_divider {
|
138 |
-
padding: 0 !important;
|
139 |
-
}
|
140 |
-
|
141 |
-
.elementor-control-custom_field_wrapper_html_divider1 hr,
|
142 |
-
.elementor-control-lightbox_shadow_divider hr {
|
143 |
-
height: 1px !important;
|
144 |
-
}
|
145 |
-
|
146 |
-
.elementor-control-element_show_on {
|
147 |
-
padding-top: 15px !important;
|
148 |
-
border-top: 1px solid #d5dadf;
|
149 |
-
}
|
150 |
-
|
151 |
-
[class*="wpr__section_"] ~ .elementor-control-type-number .elementor-control-input-wrapper,
|
152 |
-
[class*="wpr__section_"] ~ .elementor-control-type-repeater .elementor-control-type-number .elementor-control-input-wrapper {
|
153 |
-
max-width: 30% !important;
|
154 |
-
margin-left: auto !important;
|
155 |
-
}
|
156 |
-
|
157 |
-
[class*="wpr__section_"] ~ .elementor-control-type-select .elementor-control-input-wrapper,
|
158 |
-
[class*="wpr__section_"] ~ .elementor-control-type-repeater .elementor-control-type-select .elementor-control-input-wrapper {
|
159 |
-
width: auto !important;
|
160 |
-
min-width: 30% !important;
|
161 |
-
margin-left: auto !important;
|
162 |
-
}
|
163 |
-
|
164 |
-
.elementor-control-submit_preview_changes .elementor-control-input-wrapper {
|
165 |
-
text-align: center !important;
|
166 |
-
}
|
167 |
-
|
168 |
-
.elementor-control-query_manual_related,
|
169 |
-
.elementor-control-query_manual_current {
|
170 |
-
display: none !important;
|
171 |
-
}
|
172 |
-
|
173 |
-
/* Fix Select Inputs */
|
174 |
-
.elementor-control-button_hover_animation .elementor-control-input-wrapper,
|
175 |
-
.elementor-control-front_btn_animation .elementor-control-input-wrapper,
|
176 |
-
.elementor-control-back_btn_animation .elementor-control-input-wrapper,
|
177 |
-
|
178 |
-
.elementor-control-select_template .select2-selection,
|
179 |
-
.elementor-control-switcher_first_select_template .select2-selection,
|
180 |
-
.elementor-control-switcher_second_select_template .select2-selection,
|
181 |
-
.elementor-control-switcher_select_template .select2-selection,
|
182 |
-
.elementor-control-slider_select_template .select2-selection {
|
183 |
-
width: 135px !important;
|
184 |
-
}
|
185 |
-
|
186 |
-
.elementor-control-type-repeater .elementor-control-content > label {
|
187 |
-
display: none !important;
|
188 |
-
}
|
189 |
-
|
190 |
-
|
191 |
-
/*--------------------------------------------------------------
|
192 |
-
== Notification
|
193 |
-
--------------------------------------------------------------*/
|
194 |
-
#wpr-template-settings-notification {
|
195 |
-
position: fixed;
|
196 |
-
left: 40px;
|
197 |
-
bottom: 5px;
|
198 |
-
z-index: 9999;
|
199 |
-
padding: 13px 25px;
|
200 |
-
background: #fff;
|
201 |
-
color: #222;
|
202 |
-
-webkit-box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.3);
|
203 |
-
box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.3);
|
204 |
-
border-radius: 3px;
|
205 |
-
}
|
206 |
-
|
207 |
-
#wpr-template-settings-notification:before {
|
208 |
-
content: "";
|
209 |
-
position: absolute;
|
210 |
-
left: -6px;
|
211 |
-
bottom: 10px;
|
212 |
-
width: 0;
|
213 |
-
height: 0;
|
214 |
-
border-top: 6px solid transparent;
|
215 |
-
border-bottom: 6px solid transparent;
|
216 |
-
border-right-style: solid;
|
217 |
-
border-right-width: 6px;
|
218 |
-
border-right-color: #fff;
|
219 |
-
}
|
220 |
-
|
221 |
-
#wpr-template-settings-notification h4 {
|
222 |
-
margin-bottom: 10px;
|
223 |
-
}
|
224 |
-
|
225 |
-
#wpr-template-settings-notification h4 span {
|
226 |
-
font-size: 14px;
|
227 |
-
vertical-align: super;
|
228 |
-
color: #5f5f5f;
|
229 |
-
}
|
230 |
-
|
231 |
-
#wpr-template-settings-notification h4 i {
|
232 |
-
margin-right: 10px;
|
233 |
-
color: #3db050;
|
234 |
-
font-size: 24px;
|
235 |
-
}
|
236 |
-
|
237 |
-
#wpr-template-settings-notification p {
|
238 |
-
color: #666;
|
239 |
-
font-size: 12px;
|
240 |
-
line-height: 1.5;
|
241 |
-
}
|
242 |
-
|
243 |
-
#wpr-template-settings-notification > i {
|
244 |
-
position: absolute;
|
245 |
-
top: 7px;
|
246 |
-
right: 7px;
|
247 |
-
cursor: pointer;
|
248 |
-
color: #999;
|
249 |
-
}
|
250 |
-
|
251 |
-
.elementor-control-cf7_notice,
|
252 |
-
.elementor-control-wpforms_notice,
|
253 |
-
.elementor-control-ninja_forms_notice,
|
254 |
-
.elementor-control-caldera_notice {
|
255 |
-
color: red;
|
256 |
-
}
|
257 |
-
|
258 |
-
/* Help Button */
|
259 |
-
#elementor-panel__editor__help__link[href^="https://royal-elementor-addons.com/contact/"] {
|
260 |
-
display: inline-block;
|
261 |
-
padding: 12px 35px;
|
262 |
-
font-size: 13px;
|
263 |
-
font-weight: normal;
|
264 |
-
color: #fff;
|
265 |
-
background: #6A65FF;
|
266 |
-
border-radius: 3px;
|
267 |
-
-webkit-box-shadow: 0 2px 7px 0 rgba(0,0,0,0.3);
|
268 |
-
box-shadow: 0 2px 7px 0 rgba(0,0,0,0.3);
|
269 |
-
letter-spacing: 0.3px;
|
270 |
-
-webkit-transition: all 0.2s ease-in;
|
271 |
-
-o-transition: all 0.2s ease-in;
|
272 |
-
transition: all 0.2s ease-in;
|
273 |
-
}
|
274 |
-
|
275 |
-
#elementor-panel__editor__help__link[href^="https://royal-elementor-addons.com/contact/"]:hover {
|
276 |
-
color: #fff;
|
277 |
-
background: #6A4BFF;
|
278 |
-
}
|
279 |
-
|
280 |
-
#elementor-panel__editor__help__link[href^="https://royal-elementor-addons.com/contact/"] i {
|
281 |
-
color: #fff;
|
282 |
-
font-size: 14px;
|
283 |
-
vertical-align: top;
|
284 |
-
}
|
285 |
-
|
286 |
-
#elementor-panel__editor__help__link[href^="https://royal-elementor-addons.com/contact/"]:hover i {
|
287 |
-
color: #fff;
|
288 |
-
}
|
289 |
-
|
290 |
-
#elementor-panel__editor__help__link[href^="https://royal-elementor-addons.com/contact/"]:hover i:before {
|
291 |
-
content: '\e942' !important;
|
292 |
-
}
|
293 |
-
|
294 |
-
|
295 |
-
/*--------------------------------------------------------------
|
296 |
-
== Modal Popup Editor
|
297 |
-
--------------------------------------------------------------*/
|
298 |
-
.elementor-editor-wpr-popup .elementor-control-post_status {
|
299 |
-
display: none !important;
|
300 |
-
}
|
301 |
-
|
302 |
-
|
303 |
-
/*--------------------------------------------------------------
|
304 |
-
== Elementor Editor Popup
|
305 |
-
--------------------------------------------------------------*/
|
306 |
-
#wpr-template-editor-popup .dialog-widget-content {
|
307 |
-
width: 90vw;
|
308 |
-
height: 90vh;
|
309 |
-
}
|
310 |
-
|
311 |
-
#wpr-template-editor-popup .dialog-message {
|
312 |
-
padding: 0;
|
313 |
-
width: 100%;
|
314 |
-
height: 100%;
|
315 |
-
}
|
316 |
-
|
317 |
-
#wpr-template-editor-popup .dialog-close-button {
|
318 |
-
font-size: 24px;
|
319 |
-
color: #222;
|
320 |
-
}
|
321 |
-
|
322 |
-
#wpr-template-editor-popup .dialog-header {
|
323 |
-
display: none;
|
324 |
-
}
|
325 |
-
|
326 |
-
#wpr-template-editor-loading {
|
327 |
-
position: absolute;
|
328 |
-
top: 0;
|
329 |
-
left: 0;
|
330 |
-
width: 100%;
|
331 |
-
height: 100%;
|
332 |
-
background: #f1f3f5;
|
333 |
-
z-index: 9999;
|
334 |
-
-webkit-transform: translateZ(0);
|
335 |
-
transform: translateZ(0);
|
336 |
-
display: -webkit-box;
|
337 |
-
display: -ms-flexbox;
|
338 |
-
display: flex;
|
339 |
-
-webkit-box-pack: center;
|
340 |
-
-ms-flex-pack: center;
|
341 |
-
justify-content: center;
|
342 |
-
-webkit-box-align: center;
|
343 |
-
-ms-flex-align: center;
|
344 |
-
align-items: center;
|
345 |
-
}
|
346 |
-
|
347 |
-
#wpr-template-editor-loading .elementor-loader-wrapper {
|
348 |
-
top: auto;
|
349 |
-
left: auto;
|
350 |
-
-webkit-transform: none;
|
351 |
-
-ms-transform: none;
|
352 |
-
transform: none;
|
353 |
-
}
|
354 |
-
|
355 |
-
/* Disable Transitions on Responsive Preview */
|
356 |
-
#elementor-preview-responsive-wrapper {
|
357 |
-
-webkit-transition: none !important;
|
358 |
-
-o-transition: none !important;
|
359 |
-
transition: none !important;
|
360 |
-
}
|
361 |
-
|
362 |
-
|
363 |
-
/*--------------------------------------------------------------
|
364 |
-
== Magazine Grid Layout
|
365 |
-
--------------------------------------------------------------*/
|
366 |
-
.elementor-control-layout_select.elementor-control .elementor-control-field {
|
367 |
-
-webkit-box-orient: vertical !important;
|
368 |
-
-webkit-box-direction: normal !important;
|
369 |
-
-ms-flex-direction: column !important;
|
370 |
-
flex-direction: column !important;
|
371 |
-
-webkit-box-align: start;
|
372 |
-
-ms-flex-align: start;
|
373 |
-
align-items: flex-start;
|
374 |
-
}
|
375 |
-
|
376 |
-
.elementor-control-layout_select.elementor-control .elementor-control-input-wrapper {
|
377 |
-
display: -webkit-box;
|
378 |
-
display: -ms-flexbox;
|
379 |
-
display: flex;
|
380 |
-
width: 100% !important;
|
381 |
-
margin-top: 10px;
|
382 |
-
}
|
383 |
-
|
384 |
-
.elementor-control-layout_select.elementor-control .elementor-choices {
|
385 |
-
-ms-flex-wrap: wrap;
|
386 |
-
flex-wrap: wrap;
|
387 |
-
-webkit-box-align: stretch;
|
388 |
-
-ms-flex-align: stretch;
|
389 |
-
align-items: stretch;
|
390 |
-
width: 100% !important;
|
391 |
-
height: auto;
|
392 |
-
border: 1px solid #dfd5d5;
|
393 |
-
}
|
394 |
-
|
395 |
-
.elementor-control-layout_select.elementor-control .elementor-choices label {
|
396 |
-
width: 33.3%;
|
397 |
-
height: 50px;
|
398 |
-
background-size: 75%;
|
399 |
-
background-position: center center;
|
400 |
-
background-repeat: no-repeat;
|
401 |
-
}
|
402 |
-
|
403 |
-
.elementor-control-layout_select input[type="radio"]:checked + label {
|
404 |
-
border: 2px solid #D30C5C;
|
405 |
-
border-radius: 0 !important;
|
406 |
-
background-color: #ffffff;
|
407 |
-
}
|
408 |
-
|
409 |
-
.elementor-control-layout_select label:nth-child(2) {
|
410 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='25.6' y='15.2' class='st1' width='22.2' height='11.9'/%3E%3Crect x='25.6' y='4.9' class='st1' width='22.2' height='9.2'/%3E%3C/g%3E%3C/svg%3E");
|
411 |
-
}
|
412 |
-
|
413 |
-
.elementor-control-layout_select label:nth-child(4) {
|
414 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='25.6' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='37.2' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='25.6' y='4.9' class='st1' width='22.2' height='10.5'/%3E%3C/g%3E%3C/svg%3E");
|
415 |
-
}
|
416 |
-
|
417 |
-
.elementor-control-layout_select label:nth-child(6) {
|
418 |
-
background: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Cg%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='25.6' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='37.2' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='25.6' y='4.9' class='st1' width='10.5' height='10.5'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='10.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
419 |
-
}
|
420 |
-
|
421 |
-
.elementor-control-layout_select label:nth-child(8) {
|
422 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='25.6' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3Crect x='37.2' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='10.5'/%3E%3C/g%3E%3C/svg%3E");
|
423 |
-
}
|
424 |
-
|
425 |
-
.elementor-control-layout_select label:nth-child(10) {
|
426 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='13.9' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='37.2' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='10.5'/%3E%3Crect x='2.3' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='2.3' y='4.9' class='st1' width='10.5' height='10.5'/%3E%3C/g%3E%3C/svg%3E");
|
427 |
-
}
|
428 |
-
|
429 |
-
.elementor-control-layout_select label:nth-child(12) {
|
430 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='28.5' height='22.2'/%3E%3Crect x='31.8' y='12.9' class='st1' width='15.9' height='6.3'/%3E%3Crect x='31.8' y='4.9' class='st1' width='15.9' height='6.8'/%3E%3Crect x='31.8' y='20.3' class='st1' width='15.9' height='6.8'/%3E%3C/g%3E%3C/svg%3E");
|
431 |
-
}
|
432 |
-
|
433 |
-
.elementor-control-layout_select label:nth-child(14) {
|
434 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='13.9' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='2.2' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3C/g%3E%3C/svg%3E");
|
435 |
-
}
|
436 |
-
|
437 |
-
.elementor-control-layout_select label:nth-child(16) {
|
438 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='33.9' height='13.2'/%3E%3Crect x='2.2' y='19.3' class='st1' width='16.4' height='7.8'/%3E%3Crect x='19.7' y='19.3' class='st1' width='16.4' height='7.8'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='13.2'/%3E%3Crect x='37.2' y='19.3' class='st1' width='10.5' height='7.8'/%3E%3C/g%3E%3C/svg%3E");
|
439 |
-
}
|
440 |
-
|
441 |
-
.elementor-control-layout_select label:nth-child(18) {
|
442 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='12.1'/%3E%3Crect x='25.6' y='4.9' class='st1' width='22.2' height='12.1'/%3E%3Crect x='2.2' y='18.2' class='st1' width='14.4' height='8.9'/%3E%3Crect x='17.8' y='18.2' class='st1' width='14.4' height='8.9'/%3E%3Crect x='33.3' y='18.2' class='st1' width='14.4' height='8.9'/%3E%3C/g%3E%3C/svg%3E");
|
443 |
-
}
|
444 |
-
|
445 |
-
.elementor-control-layout_select label:nth-child(20) {
|
446 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='25.6' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3C/g%3E%3C/svg%3E");
|
447 |
-
}
|
448 |
-
|
449 |
-
.elementor-control-layout_select label:nth-child(22) {
|
450 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='14.5' height='22.2'/%3E%3Crect x='33.4' y='4.9' class='st1' width='14.4' height='22.2'/%3E%3Crect x='17.9' y='4.9' class='st1' width='14.4' height='22.2'/%3E%3C/g%3E%3C/svg%3E");
|
451 |
-
}
|
452 |
-
|
453 |
-
.elementor-control-layout_select label:nth-child(24) {
|
454 |
-
background-image: url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='10.6' height='22.2'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3Crect x='25.6' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3Crect x='14' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3C/g%3E%3C/svg%3E");
|
455 |
-
}
|
456 |
-
|
457 |
-
/*--------------------------------------------------------------
|
458 |
-
== Widget Preview and Library buttons
|
459 |
-
--------------------------------------------------------------*/
|
460 |
-
.elementor-control-wpr_library_buttons {
|
461 |
-
height: 80px;
|
462 |
-
padding: 0;
|
463 |
-
}
|
464 |
-
|
465 |
-
.elementor-control-wpr_library_buttons .elementor-control-raw-html {
|
466 |
-
display: -webkit-box;
|
467 |
-
display: -ms-flexbox;
|
468 |
-
display: flex;
|
469 |
-
-webkit-box-pack: center;
|
470 |
-
-ms-flex-pack: center;
|
471 |
-
justify-content: center;
|
472 |
-
padding: 0 10px 20px 10px;
|
473 |
-
border-bottom: 1px solid #efefef;
|
474 |
-
}
|
475 |
-
|
476 |
-
.elementor-control-wpr_library_buttons a {
|
477 |
-
-webkit-box-flex: 1;
|
478 |
-
-ms-flex-positive: 1;
|
479 |
-
flex-grow: 1;
|
480 |
-
padding: 10px 15px;
|
481 |
-
border-radius: 3px;
|
482 |
-
/*box-shadow: 1px 2px 5px 0 rgba(0,0,0,0.2);*/
|
483 |
-
white-space: nowrap;
|
484 |
-
overflow: hidden;
|
485 |
-
-o-text-overflow: ellipsis;
|
486 |
-
text-overflow: ellipsis;
|
487 |
-
text-align: center;
|
488 |
-
}
|
489 |
-
.elementor-control-wpr_library_buttons a:first-child {
|
490 |
-
background-color: #1CB4E4;
|
491 |
-
color: #fff;
|
492 |
-
margin-right: 3px;
|
493 |
-
}
|
494 |
-
.elementor-control-wpr_library_buttons a:last-child {
|
495 |
-
margin-left: 3px;
|
496 |
-
background-color: #6A65FF;
|
497 |
-
color: #fff;
|
498 |
-
}
|
499 |
-
|
500 |
-
|
501 |
-
/*--------------------------------------------------------------
|
502 |
-
== Free/Pro Options
|
503 |
-
--------------------------------------------------------------*/
|
504 |
-
.elementor-control select option[value*=pro-] {
|
505 |
-
background: #f0f0f0;
|
506 |
-
}
|
507 |
-
|
508 |
-
.elementor-control[class*="pro_notice"] {
|
509 |
-
padding: 5px 0 15px 0 !important;
|
510 |
-
}
|
511 |
-
|
512 |
-
.wpr-pro-notice {
|
513 |
-
padding: 20px;
|
514 |
-
border-top: 1px solid #e6e9ec;
|
515 |
-
border-bottom: 1px solid #e6e9ec;
|
516 |
-
background-color: #f2fbff;
|
517 |
-
line-height: 1.4;
|
518 |
-
text-align: center;
|
519 |
-
}
|
520 |
-
|
521 |
-
.elementor-control-slider_section_pro_notice {
|
522 |
-
margin-top: -16px;
|
523 |
-
}
|
524 |
-
|
525 |
-
.elementor-control-layout_select_pro_notice + div,
|
526 |
-
.elementor-control-element_align_pro_notice + div {
|
527 |
-
padding-top: 15px;
|
528 |
-
}
|
529 |
-
|
530 |
-
.elementor-control-layout_select .elementor-choices label {
|
531 |
-
position: relative;
|
532 |
-
}
|
533 |
-
|
534 |
-
.elementor-control-layout_select .elementor-choices label:nth-child(2):after,
|
535 |
-
.elementor-control-layout_select .elementor-choices label:nth-child(4):after,
|
536 |
-
.elementor-control-layout_select .elementor-choices label:nth-child(6):after,
|
537 |
-
.elementor-control-layout_select .elementor-choices label:nth-child(8):after,
|
538 |
-
.elementor-control-layout_select .elementor-choices label:nth-child(10):after,
|
539 |
-
.elementor-control-layout_select .elementor-choices label:nth-child(12):after {
|
540 |
-
content: ' ';
|
541 |
-
display: block;
|
542 |
-
width: 100%;
|
543 |
-
height: 100%;
|
544 |
-
position: absolute;
|
545 |
-
top: 0;
|
546 |
-
left: 0;
|
547 |
-
background: rgba(0,0,0,0.2);
|
548 |
-
}
|
549 |
-
|
550 |
-
/* Adjustments */
|
551 |
-
.elementor-control.elementor-control-element_align_pro_notice,
|
552 |
-
.elementor-control.elementor-control-search_pro_notice,
|
553 |
-
.elementor-control.elementor-control-layout_select_pro_notice,
|
554 |
-
.elementor-control.elementor-control-grid_columns_pro_notice,
|
555 |
-
.elementor-control.elementor-control-slider_content_type_pro_notice,
|
556 |
-
.elementor-control.elementor-control-slider_repeater_pro_notice,
|
557 |
-
.elementor-control.elementor-control-slider_dots_layout_pro_notice,
|
558 |
-
.elementor-control.elementor-control-testimonial_repeater_pro_notice,
|
559 |
-
.elementor-control.elementor-control-testimonial_icon_pro_notice,
|
560 |
-
.elementor-control.elementor-control-menu_layout_pro_notice,
|
561 |
-
.elementor-control.elementor-control-menu_items_submenu_entrance_pro_notice,
|
562 |
-
.elementor-control.elementor-control-switcher_label_style_pro_notice,
|
563 |
-
.elementor-control.elementor-control-countdown_type_pro_notice,
|
564 |
-
.elementor-control.elementor-control-layout_pro_notice,
|
565 |
-
.elementor-control.elementor-control-anim_timing_pro_notice,
|
566 |
-
.elementor-control.elementor-control-tab_content_type_pro_notice,
|
567 |
-
.elementor-control.elementor-control-tabs_repeater_pro_notice,
|
568 |
-
.elementor-control.elementor-control-tabs_align_pro_notice,
|
569 |
-
.elementor-control.elementor-control-front_trigger_pro_notice,
|
570 |
-
.elementor-control.elementor-control-back_link_type_pro_notice,
|
571 |
-
.elementor-control.elementor-control-box_anim_timing_pro_notice,
|
572 |
-
.elementor-control.elementor-control-image_style_pro_notice,
|
573 |
-
.elementor-control.elementor-control-image_animation_timing_pro_notice,
|
574 |
-
.elementor-control.elementor-control-label_display_pro_notice,
|
575 |
-
.elementor-control.elementor-control-post_type_pro_notice,
|
576 |
-
.elementor-control.elementor-control-type_select_pro_notice,
|
577 |
-
.elementor-control.elementor-control-icon_style_pro_notice,
|
578 |
-
.elementor-control.elementor-control-dual_button_pro_notice,
|
579 |
-
.elementor-control.elementor-control-team_member_pro_notice,
|
580 |
-
.elementor-control.elementor-control-price_list_pro_notice,
|
581 |
-
.elementor-control.elementor-control-business_hours_pro_notice,
|
582 |
-
.elementor-control.elementor-control-sharing_columns_pro_notice {
|
583 |
-
padding-bottom: 0 !important;
|
584 |
-
}
|
585 |
-
|
586 |
-
.elementor-control-search_pro_notice .wpr-pro-notice,
|
587 |
-
.elementor-control-grid_columns_pro_notice .wpr-pro-notice,
|
588 |
-
.elementor-control-slider_content_type_pro_notice .wpr-pro-notice,
|
589 |
-
.elementor-control-slider_repeater_pro_notice .wpr-pro-notice,
|
590 |
-
.elementor-control-slider_dots_layout_pro_notice .wpr-pro-notice,
|
591 |
-
.elementor-control-testimonial_repeater_pro_notice .wpr-pro-notice,
|
592 |
-
.elementor-control-testimonial_icon_pro_notice .wpr-pro-notice,
|
593 |
-
.elementor-control-menu_layout_pro_notice .wpr-pro-notice,
|
594 |
-
.elementor-control-menu_items_submenu_entrance_pro_notice .wpr-pro-notice,
|
595 |
-
.elementor-control-switcher_label_style_pro_notice .wpr-pro-notice,
|
596 |
-
.elementor-control-countdown_type_pro_notice .wpr-pro-notice,
|
597 |
-
.elementor-control-layout_pro_notice .wpr-pro-notice,
|
598 |
-
.elementor-control-anim_timing_pro_notice .wpr-pro-notice,
|
599 |
-
.elementor-control-tab_content_type_pro_notice .wpr-pro-notice,
|
600 |
-
.elementor-control-tabs_repeater_pro_notice .wpr-pro-notice,
|
601 |
-
.elementor-control-tabs_align_pro_notice .wpr-pro-notice,
|
602 |
-
.elementor-control-front_trigger_pro_notice .wpr-pro-notice,
|
603 |
-
.elementor-control-back_link_type_pro_notice .wpr-pro-notice,
|
604 |
-
.elementor-control-box_anim_timing_pro_notice .wpr-pro-notice,
|
605 |
-
.elementor-control-image_style_pro_notice .wpr-pro-notice,
|
606 |
-
.elementor-control-image_animation_timing_pro_notice .wpr-pro-notice,
|
607 |
-
.elementor-control-label_display_pro_notice .wpr-pro-notice,
|
608 |
-
.elementor-control-post_type_pro_notice .wpr-pro-notice,
|
609 |
-
.elementor-control-type_select_pro_notice .wpr-pro-notice,
|
610 |
-
.elementor-control-icon_style_pro_notice .wpr-pro-notice,
|
611 |
-
.elementor-control-dual_button_pro_notice .wpr-pro-notice,
|
612 |
-
.elementor-control-team_member_pro_notice .wpr-pro-notice,
|
613 |
-
.elementor-control-price_list_pro_notice .wpr-pro-notice,
|
614 |
-
.elementor-control-business_hours_pro_notice .wpr-pro-notice,
|
615 |
-
.elementor-control-sharing_columns_pro_notice .wpr-pro-notice {
|
616 |
-
border-bottom: none !important;
|
617 |
-
}
|
618 |
-
|
619 |
-
/* Both */
|
620 |
-
.elementor-control.elementor-control-pagination_type_pro_notice,
|
621 |
-
.elementor-control.elementor-control-tooltip_trigger_pro_notice {
|
622 |
-
padding-top: 0 !important;
|
623 |
-
padding-bottom: 0 !important;
|
624 |
-
}
|
625 |
-
|
626 |
-
.elementor-control-pagination_type_pro_notice .wpr-pro-notice {
|
627 |
-
border-top: none !important;
|
628 |
-
border-bottom: none !important;
|
629 |
-
}
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
1 |
+
.wpr-elementor-hidden-control{overflow:hidden;width:0!important;height:0!important;padding:0!important;margin:0!important;visibility:hidden!important;opacity:0!important}.elementor-panel .wpr-icon:after{content:'R';display:block;position:absolute;top:3px;right:3px;font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;font-size:10px;font-weight:700;color:#fff;background-image:-o-linear-gradient(#6a4bff,#7e94fe);background-image:-webkit-gradient(linear,left top,left bottom,from(#6a4bff),to(#7e94fe));background-image:linear-gradient(#6a4bff,#7e94fe);-webkit-box-shadow:0 0 2px 2px #b8c7ff;box-shadow:0 0 2px 2px #b8c7ff;width:19px;height:19px;line-height:19px;border-radius:15px;margin:3px}.elementor-panel .elementor-element .icon{position:relative!important}.elementor-control-type-section[class*=elementor-control-wpr_section_]:after{content:'R';display:block;position:absolute;top:7px;right:7px;font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;font-size:10px;font-weight:700;color:#fff;background-image:-o-linear-gradient(#6a4bff,#7e94fe);background-image:-webkit-gradient(linear,left top,left bottom,from(#6a4bff),to(#7e94fe));background-image:linear-gradient(#6a4bff,#7e94fe);-webkit-box-shadow:0 0 2px 2px #b8c7ff;box-shadow:0 0 2px 2px #b8c7ff;width:19px;height:19px;line-height:19px;border-radius:15px;margin:3px;text-align:center}.elementor-control-element_addcart_variable_txt,.elementor-control-element_align_hr,.elementor-control-element_custom_field_wrapper_html,.elementor-control-element_read_more_text,.elementor-control-element_select,.elementor-control-element_sharing_icon_6,.elementor-control-element_sharing_icon_display,.elementor-control-element_sharing_tooltip,.elementor-control-element_sharing_trigger_direction,.elementor-control-element_tax_sep,.elementor-control-slider_item_bg_size,.elementor-control-type{margin-bottom:15px}.elementor-control-archive_link_transition_duration,.elementor-control-author_transition_duration,.elementor-control-comments_transition_duration,.elementor-control-custom_field1_transition_duration,.elementor-control-custom_field2_transition_duration,.elementor-control-custom_field3_transition_duration,.elementor-control-custom_field4_transition_duration,.elementor-control-divider_style,.elementor-control-element_custom_field_wrapper,.elementor-control-element_extra_text_pos,.elementor-control-filters_pointer,.elementor-control-filters_transition_duration,.elementor-control-lightbox_transition_duration,.elementor-control-likes_transition_duration,.elementor-control-overlay_post_link,.elementor-control-pagination_finish_text,.elementor-control-pagination_load_more_text,.elementor-control-pagination_older_text,.elementor-control-pagination_prev_next,.elementor-control-pagination_transition_duration,.elementor-control-post_info_cf,.elementor-control-post_info_link_wrap,.elementor-control-post_info_show_avatar,.elementor-control-post_info_tax_select,.elementor-control-pricing_items .elementor-control-btn_text,.elementor-control-pricing_items .elementor-control-feature_text,.elementor-control-pricing_items .elementor-control-price,.elementor-control-read_more_animation_height,.elementor-control-scroll_btn_vr,.elementor-control-sharing_transition_duration,.elementor-control-slider_content_bg_color,.elementor-control-slider_nav_border_border,.elementor-control-slider_nav_border_radius,.elementor-control-tabs_sharing_custom_colors,.elementor-control-tax1_transition_duration,.elementor-control-tax2_transition_duration,.elementor-control-title_transition_duration,.elementor-control-tooltip_position{padding-top:15px!important}.elementor-control-filters_pointer_animation+.elementor-control-filters_transition_duration,.elementor-control-tax1_pointer_animation+.elementor-control-tax1_transition_duration,.elementor-control-tax2_pointer_animation+.elementor-control-tax2_transition_duration,.elementor-control-title_pointer_animation+.elementor-control-title_transition_duration{padding-top:0!important}.elementor-control-pagination_load_more_text{padding-bottom:0!important}.elementor-control-filters_transition_duration{padding-top:0!important}.elementor-control-animation_divider,.elementor-control-custom_field_wrapper_html_divider1,.elementor-control-custom_field_wrapper_html_divider2,.elementor-control-lightbox_shadow_divider,.elementor-control-overlay_divider,.elementor-control-slider_btn_box_shadow_1_divider,.elementor-control-slider_btn_box_shadow_2_divider,.elementor-control-slider_btn_typography_1_divider,.elementor-control-slider_btn_typography_2_divider,.elementor-control-slider_item_btn_1_divider,.elementor-control-slider_item_btn_2_divider,.elementor-control-social_divider_1,.elementor-control-social_divider_2,.elementor-control-social_divider_3,.elementor-control-social_divider_4,.elementor-control-social_divider_5,.elementor-control-social_media_divider,.elementor-control-testimonial_title_divider{padding:0!important}.elementor-control-custom_field_wrapper_html_divider1 hr,.elementor-control-lightbox_shadow_divider hr{height:1px!important}.elementor-control-element_show_on{padding-top:15px!important;border-top:1px solid #d5dadf}[class*=wpr__section_]~.elementor-control-type-number .elementor-control-input-wrapper,[class*=wpr__section_]~.elementor-control-type-repeater .elementor-control-type-number .elementor-control-input-wrapper{max-width:30%!important;margin-left:auto!important}[class*=wpr__section_]~.elementor-control-type-repeater .elementor-control-type-select .elementor-control-input-wrapper,[class*=wpr__section_]~.elementor-control-type-select .elementor-control-input-wrapper{width:auto!important;min-width:30%!important;margin-left:auto!important}.elementor-control-submit_preview_changes .elementor-control-input-wrapper{text-align:center!important}.elementor-control-query_manual_current,.elementor-control-query_manual_related{display:none!important}.elementor-control-back_btn_animation .elementor-control-input-wrapper,.elementor-control-button_hover_animation .elementor-control-input-wrapper,.elementor-control-front_btn_animation .elementor-control-input-wrapper,.elementor-control-select_template .select2-selection,.elementor-control-slider_select_template .select2-selection,.elementor-control-switcher_first_select_template .select2-selection,.elementor-control-switcher_second_select_template .select2-selection,.elementor-control-switcher_select_template .select2-selection{width:135px!important}.elementor-control-type-repeater .elementor-control-content>label{display:none!important}#wpr-template-settings-notification{position:fixed;left:40px;bottom:5px;z-index:9999;padding:13px 25px;background:#fff;color:#222;-webkit-box-shadow:1px 1px 5px 0 rgba(0,0,0,.3);box-shadow:1px 1px 5px 0 rgba(0,0,0,.3);border-radius:3px}#wpr-template-settings-notification:before{content:"";position:absolute;left:-6px;bottom:10px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right-style:solid;border-right-width:6px;border-right-color:#fff}#wpr-template-settings-notification h4{margin-bottom:10px}#wpr-template-settings-notification h4 span{font-size:14px;vertical-align:super;color:#5f5f5f}#wpr-template-settings-notification h4 i{margin-right:10px;color:#3db050;font-size:24px}#wpr-template-settings-notification p{color:#666;font-size:12px;line-height:1.5}#wpr-template-settings-notification>i{position:absolute;top:7px;right:7px;cursor:pointer;color:#999}.elementor-control-caldera_notice,.elementor-control-cf7_notice,.elementor-control-ninja_forms_notice,.elementor-control-wpforms_notice{color:red}#elementor-panel__editor__help__link[href^="https://royal-elementor-addons.com/contact/"]{display:inline-block;padding:12px 35px;font-size:13px;font-weight:400;color:#fff;background:#6a65ff;border-radius:3px;-webkit-box-shadow:0 2px 7px 0 rgba(0,0,0,.3);box-shadow:0 2px 7px 0 rgba(0,0,0,.3);letter-spacing:.3px;-webkit-transition:all .2s ease-in;-o-transition:all .2s ease-in;transition:all .2s ease-in}#elementor-panel__editor__help__link[href^="https://royal-elementor-addons.com/contact/"]:hover{color:#fff;background:#6a4bff}#elementor-panel__editor__help__link[href^="https://royal-elementor-addons.com/contact/"] i{color:#fff;font-size:14px;vertical-align:top}#elementor-panel__editor__help__link[href^="https://royal-elementor-addons.com/contact/"]:hover i{color:#fff}#elementor-panel__editor__help__link[href^="https://royal-elementor-addons.com/contact/"]:hover i:before{content:'\e942'!important}.elementor-editor-wpr-popups .elementor-control-document_settings,.elementor-editor-wpr-popups .elementor-control-post_status,.elementor-editor-wpr-popups .elementor-control-post_title{display:none!important}#wpr-template-editor-popup .dialog-widget-content{width:90vw;height:90vh}#wpr-template-editor-popup .dialog-message{padding:0;width:100%;height:100%}#wpr-template-editor-popup .dialog-close-button{font-size:24px;color:#222}#wpr-template-editor-popup .dialog-header{display:none}#wpr-template-editor-loading{position:absolute;top:0;left:0;width:100%;height:100%;background:#f1f3f5;z-index:9999;-webkit-transform:translateZ(0);transform:translateZ(0);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#wpr-template-editor-loading .elementor-loader-wrapper{top:auto;left:auto;-webkit-transform:none;-ms-transform:none;transform:none}#elementor-preview-responsive-wrapper{-webkit-transition:none!important;-o-transition:none!important;transition:none!important}.elementor-control-layout_select.elementor-control .elementor-control-field{-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.elementor-control-layout_select.elementor-control .elementor-control-input-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%!important;margin-top:10px}.elementor-control-layout_select.elementor-control .elementor-choices{-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:100%!important;height:auto;border:1px solid #dfd5d5}.elementor-control-layout_select.elementor-control .elementor-choices label{width:33.3%;height:50px;background-size:75%;background-position:center center;background-repeat:no-repeat}.elementor-control-layout_select input[type=radio]:checked+label{border:2px solid #d30c5c;border-radius:0!important;background-color:#fff}.elementor-control-layout_select label:nth-child(2){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='25.6' y='15.2' class='st1' width='22.2' height='11.9'/%3E%3Crect x='25.6' y='4.9' class='st1' width='22.2' height='9.2'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(4){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='25.6' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='37.2' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='25.6' y='4.9' class='st1' width='22.2' height='10.5'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(6){background:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Cg%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='25.6' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='37.2' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='25.6' y='4.9' class='st1' width='10.5' height='10.5'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='10.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(8){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='25.6' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3Crect x='37.2' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='10.5'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(10){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='13.9' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='37.2' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='10.5'/%3E%3Crect x='2.3' y='16.6' class='st1' width='10.5' height='10.5'/%3E%3Crect x='2.3' y='4.9' class='st1' width='10.5' height='10.5'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(12){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='28.5' height='22.2'/%3E%3Crect x='31.8' y='12.9' class='st1' width='15.9' height='6.3'/%3E%3Crect x='31.8' y='4.9' class='st1' width='15.9' height='6.8'/%3E%3Crect x='31.8' y='20.3' class='st1' width='15.9' height='6.8'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(14){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='13.9' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='2.2' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(16){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='33.9' height='13.2'/%3E%3Crect x='2.2' y='19.3' class='st1' width='16.4' height='7.8'/%3E%3Crect x='19.7' y='19.3' class='st1' width='16.4' height='7.8'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='13.2'/%3E%3Crect x='37.2' y='19.3' class='st1' width='10.5' height='7.8'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(18){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='12.1'/%3E%3Crect x='25.6' y='4.9' class='st1' width='22.2' height='12.1'/%3E%3Crect x='2.2' y='18.2' class='st1' width='14.4' height='8.9'/%3E%3Crect x='17.8' y='18.2' class='st1' width='14.4' height='8.9'/%3E%3Crect x='33.3' y='18.2' class='st1' width='14.4' height='8.9'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(20){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3Crect x='25.6' y='4.9' class='st1' width='22.2' height='22.2'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(22){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='14.5' height='22.2'/%3E%3Crect x='33.4' y='4.9' class='st1' width='14.4' height='22.2'/%3E%3Crect x='17.9' y='4.9' class='st1' width='14.4' height='22.2'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-layout_select label:nth-child(24){background-image:url("data:image/svg+xml;charset=utf8,%3C?xml version='1.0' encoding='utf-8'?%3E%3C!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 32' style='enable-background:new 0 0 50 32;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0{fill:%23FFFFFF;} .st1{fill:%23C2C1C0;} %3C/style%3E%3Cg id='Background'%3E%3Crect class='st0' width='50' height='32'/%3E%3C/g%3E%3Cg id='Layer_1'%3E%3Crect x='2.2' y='4.9' class='st1' width='10.6' height='22.2'/%3E%3Crect x='37.2' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3Crect x='25.6' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3Crect x='14' y='4.9' class='st1' width='10.5' height='22.2'/%3E%3C/g%3E%3C/svg%3E")}.elementor-control-wpr_library_buttons{height:80px;padding:0}.elementor-control-wpr_library_buttons .elementor-control-raw-html{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0 10px 20px 10px;border-bottom:1px solid #efefef}.elementor-control-wpr_library_buttons a{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:10px 15px;border-radius:3px;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;text-align:center}.elementor-control-wpr_library_buttons a:first-child{background-color:#1cb4e4;color:#fff;margin-right:3px}.elementor-control-wpr_library_buttons a:last-child{margin-left:3px;background-color:#6a65ff;color:#fff}.elementor-control select option[value*=pro-]{background:#f0f0f0}.elementor-control[class*=pro_notice]{padding:5px 0 15px 0!important}.wpr-pro-notice{padding:20px;border-top:1px solid #e6e9ec;border-bottom:1px solid #e6e9ec;background-color:#f2fbff;line-height:1.4;text-align:center}.elementor-control-slider_section_pro_notice{margin-top:-16px}.elementor-control-element_align_pro_notice+div,.elementor-control-layout_select_pro_notice+div{padding-top:15px}.elementor-control-layout_select .elementor-choices label{position:relative}.elementor-control-layout_select .elementor-choices label:nth-child(10):after,.elementor-control-layout_select .elementor-choices label:nth-child(12):after,.elementor-control-layout_select .elementor-choices label:nth-child(2):after,.elementor-control-layout_select .elementor-choices label:nth-child(4):after,.elementor-control-layout_select .elementor-choices label:nth-child(6):after,.elementor-control-layout_select .elementor-choices label:nth-child(8):after{content:' ';display:block;width:100%;height:100%;position:absolute;top:0;left:0;background:rgba(0,0,0,.2)}.elementor-control.elementor-control-anim_timing_pro_notice,.elementor-control.elementor-control-back_link_type_pro_notice,.elementor-control.elementor-control-box_anim_timing_pro_notice,.elementor-control.elementor-control-business_hours_pro_notice,.elementor-control.elementor-control-countdown_type_pro_notice,.elementor-control.elementor-control-dual_button_pro_notice,.elementor-control.elementor-control-element_align_pro_notice,.elementor-control.elementor-control-front_trigger_pro_notice,.elementor-control.elementor-control-grid_columns_pro_notice,.elementor-control.elementor-control-group_popup_settings_pro_notice,.elementor-control.elementor-control-icon_style_pro_notice,.elementor-control.elementor-control-image_animation_timing_pro_notice,.elementor-control.elementor-control-image_style_pro_notice,.elementor-control.elementor-control-label_display_pro_notice,.elementor-control.elementor-control-layout_pro_notice,.elementor-control.elementor-control-layout_select_pro_notice,.elementor-control.elementor-control-menu_items_submenu_entrance_pro_notice,.elementor-control.elementor-control-menu_layout_pro_notice,.elementor-control.elementor-control-paralax_repeater_pro_notice,.elementor-control.elementor-control-popup_show_again_delay_pro_notice,.elementor-control.elementor-control-popup_trigger_pro_notice,.elementor-control.elementor-control-post_type_pro_notice,.elementor-control.elementor-control-price_list_pro_notice,.elementor-control.elementor-control-search_pro_notice,.elementor-control.elementor-control-sharing_columns_pro_notice,.elementor-control.elementor-control-slider_content_type_pro_notice,.elementor-control.elementor-control-slider_dots_layout_pro_notice,.elementor-control.elementor-control-slider_repeater_pro_notice,.elementor-control.elementor-control-switcher_label_style_pro_notice,.elementor-control.elementor-control-tab_content_type_pro_notice,.elementor-control.elementor-control-tabs_align_pro_notice,.elementor-control.elementor-control-tabs_repeater_pro_notice,.elementor-control.elementor-control-team_member_pro_notice,.elementor-control.elementor-control-testimonial_icon_pro_notice,.elementor-control.elementor-control-testimonial_repeater_pro_notice,.elementor-control.elementor-control-type_select_pro_notice,.elementor-control.elementor-control-which_particle_pro_notice{padding-bottom:0!important}.elementor-control-anim_timing_pro_notice .wpr-pro-notice,.elementor-control-back_link_type_pro_notice .wpr-pro-notice,.elementor-control-box_anim_timing_pro_notice .wpr-pro-notice,.elementor-control-business_hours_pro_notice .wpr-pro-notice,.elementor-control-countdown_type_pro_notice .wpr-pro-notice,.elementor-control-dual_button_pro_notice .wpr-pro-notice,.elementor-control-front_trigger_pro_notice .wpr-pro-notice,.elementor-control-grid_columns_pro_notice .wpr-pro-notice,.elementor-control-group_popup_settings_pro_notice .wpr-pro-notice,.elementor-control-icon_style_pro_notice .wpr-pro-notice,.elementor-control-image_animation_timing_pro_notice .wpr-pro-notice,.elementor-control-image_style_pro_notice .wpr-pro-notice,.elementor-control-label_display_pro_notice .wpr-pro-notice,.elementor-control-layout_pro_notice .wpr-pro-notice,.elementor-control-menu_items_submenu_entrance_pro_notice .wpr-pro-notice,.elementor-control-menu_layout_pro_notice .wpr-pro-notice,.elementor-control-popup_show_again_delay_pro_notice .wpr-pro-notice,.elementor-control-popup_trigger_pro_notice .wpr-pro-notice,.elementor-control-post_type_pro_notice .wpr-pro-notice,.elementor-control-price_list_pro_notice .wpr-pro-notice,.elementor-control-search_pro_notice .wpr-pro-notice,.elementor-control-sharing_columns_pro_notice .wpr-pro-notice,.elementor-control-slider_content_type_pro_notice .wpr-pro-notice,.elementor-control-slider_dots_layout_pro_notice .wpr-pro-notice,.elementor-control-slider_repeater_pro_notice .wpr-pro-notice,.elementor-control-switcher_label_style_pro_notice .wpr-pro-notice,.elementor-control-tab_content_type_pro_notice .wpr-pro-notice,.elementor-control-tabs_align_pro_notice .wpr-pro-notice,.elementor-control-tabs_repeater_pro_notice .wpr-pro-notice,.elementor-control-team_member_pro_notice .wpr-pro-notice,.elementor-control-testimonial_icon_pro_notice .wpr-pro-notice,.elementor-control-testimonial_repeater_pro_notice .wpr-pro-notice,.elementor-control-type_select_pro_notice .wpr-pro-notice{border-bottom:none!important}.elementor-control.elementor-control-pagination_type_pro_notice,.elementor-control.elementor-control-tooltip_trigger_pro_notice{padding-top:0!important;padding-bottom:0!important}.elementor-control-pagination_type_pro_notice .wpr-pro-notice{border-top:none!important;border-bottom:none!important}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/frontend.css
CHANGED
@@ -4610,11 +4610,22 @@ body:not(.elementor-editor-active) .wpr-template-popup {
|
|
4610 |
}
|
4611 |
|
4612 |
.wpr-popup-container {
|
|
|
|
|
|
|
|
|
4613 |
display: -webkit-box;
|
4614 |
display: -ms-flexbox;
|
4615 |
display: flex;
|
4616 |
overflow: hidden;
|
4617 |
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4618 |
}
|
4619 |
|
4620 |
.wpr-popup-container > div {
|
@@ -4648,7 +4659,7 @@ body:not(.elementor-editor-active) .wpr-template-popup {
|
|
4648 |
top: 0;
|
4649 |
right: 0;
|
4650 |
z-index: 99;
|
4651 |
-
|
4652 |
cursor: pointer;
|
4653 |
}
|
4654 |
|
@@ -4661,27 +4672,32 @@ body:not(.elementor-editor-active) .wpr-template-popup {
|
|
4661 |
display: none !important;
|
4662 |
}
|
4663 |
|
4664 |
-
|
4665 |
-
.wpr-popup-container.ps
|
4666 |
-
.wpr-popup-container.ps-container.ps-active-y > .ps-scrollbar-y-rail {
|
4667 |
display: block;
|
4668 |
background-color: transparent;
|
4669 |
}
|
4670 |
|
4671 |
-
.wpr-popup-container.ps-container > .ps-scrollbar-y-rail
|
|
|
4672 |
display: none;
|
4673 |
position: absolute;
|
4674 |
right: 3px;
|
4675 |
width: 3px;
|
4676 |
}
|
4677 |
|
4678 |
-
.wpr-popup-container.ps-container > .ps-scrollbar-y-rail > .ps-scrollbar-y
|
|
|
4679 |
position: absolute;
|
4680 |
cursor: pointer;
|
4681 |
right: 0;
|
4682 |
width: 3px;
|
4683 |
}
|
4684 |
|
|
|
|
|
|
|
|
|
4685 |
.wpr-popup-notification .wpr-popup-container .slideInDown {
|
4686 |
-webkit-animation-timing-function: linear;
|
4687 |
animation-timing-function: linear;
|
@@ -4727,12 +4743,22 @@ body:not(.elementor-editor-active) .wpr-template-popup {
|
|
4727 |
border-width: 0 0 22px 12px;
|
4728 |
}
|
4729 |
|
4730 |
-
.elementor-editor-active [data-elementor-type="wpr-
|
4731 |
-
.elementor-editor-active [data-elementor-type="wpr-
|
4732 |
display: none;
|
4733 |
}
|
4734 |
|
|
|
|
|
|
|
|
|
|
|
|
|
4735 |
|
|
|
|
|
|
|
|
|
4736 |
|
4737 |
/* Template Edit button */
|
4738 |
.wpr-template-edit-btn {
|
@@ -6232,7 +6258,6 @@ body:not(.elementor-editor-active) .wpr-template-popup {
|
|
6232 |
== Search
|
6233 |
--------------------------------------------------------------*/
|
6234 |
.wpr-search-form-input-wrap {
|
6235 |
-
border-style: solid;
|
6236 |
width: 100%;
|
6237 |
overflow: hidden;
|
6238 |
}
|
@@ -6242,6 +6267,7 @@ body:not(.elementor-editor-active) .wpr-template-popup {
|
|
6242 |
height: 100%;
|
6243 |
font-size: 14px;
|
6244 |
background-color: transparent;
|
|
|
6245 |
}
|
6246 |
|
6247 |
.wpr-search-form-style-inner .wpr-search-form-input-wrap,
|
@@ -8436,7 +8462,6 @@ body:not(.elementor-editor-active) .wpr-template-popup {
|
|
8436 |
}
|
8437 |
|
8438 |
.wpr-flip-box-btn {
|
8439 |
-
position: relative;
|
8440 |
display: inline-table;
|
8441 |
cursor: pointer;
|
8442 |
}
|
@@ -9814,7 +9839,8 @@ body:not(.elementor-editor-active) .wpr-template-popup {
|
|
9814 |
-ms-flex-pack: center;
|
9815 |
justify-content: center;
|
9816 |
line-height: 1;
|
9817 |
-
box-shadow: 0px 0px 10px 0px rgb(0,0,0,0.25);
|
|
|
9818 |
}
|
9819 |
|
9820 |
.wpr-stt-btn-icon-left .wpr-stt-btn {
|
@@ -9897,7 +9923,8 @@ body:not(.elementor-editor-active) .wpr-template-popup {
|
|
9897 |
}
|
9898 |
|
9899 |
.elementor a.wpr-pc-btn {
|
9900 |
-
box-shadow: 0px 0px 10px 0px rgb(0,0,0,0.2);
|
|
|
9901 |
}
|
9902 |
|
9903 |
.wpr-pc-content {
|
@@ -9953,4 +9980,51 @@ body:not(.elementor-editor-active) .wpr-template-popup {
|
|
9953 |
|
9954 |
.wpr-pc-btn-align-fixed-left .wpr-pc-btn {
|
9955 |
right: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9956 |
}
|
4610 |
}
|
4611 |
|
4612 |
.wpr-popup-container {
|
4613 |
+
position: relative;
|
4614 |
+
}
|
4615 |
+
|
4616 |
+
.wpr-popup-container-inner {
|
4617 |
display: -webkit-box;
|
4618 |
display: -ms-flexbox;
|
4619 |
display: flex;
|
4620 |
overflow: hidden;
|
4621 |
position: relative;
|
4622 |
+
background: #ffffff;
|
4623 |
+
}
|
4624 |
+
|
4625 |
+
.wpr-popup-container-inner > div {
|
4626 |
+
width: 100%;
|
4627 |
+
-ms-flex-negative: 0;
|
4628 |
+
flex-shrink: 0;
|
4629 |
}
|
4630 |
|
4631 |
.wpr-popup-container > div {
|
4659 |
top: 0;
|
4660 |
right: 0;
|
4661 |
z-index: 99;
|
4662 |
+
text-align: center;
|
4663 |
cursor: pointer;
|
4664 |
}
|
4665 |
|
4672 |
display: none !important;
|
4673 |
}
|
4674 |
|
4675 |
+
.wpr-popup-container-inner.ps-container.ps-active-y > .ps-scrollbar-y-rail,
|
4676 |
+
.wpr-popup-container-inner.ps.ps--active-y > .ps__rail-y {
|
|
|
4677 |
display: block;
|
4678 |
background-color: transparent;
|
4679 |
}
|
4680 |
|
4681 |
+
.wpr-popup-container-inner.ps-container > .ps-scrollbar-y-rail,
|
4682 |
+
.wpr-popup-container-inner.ps > .ps__rail-y {
|
4683 |
display: none;
|
4684 |
position: absolute;
|
4685 |
right: 3px;
|
4686 |
width: 3px;
|
4687 |
}
|
4688 |
|
4689 |
+
.wpr-popup-container-inner.ps-container > .ps-scrollbar-y-rail > .ps-scrollbar-y,
|
4690 |
+
.wpr-popup-container-inner.ps > .ps__rail-y > .ps__thumb-y {
|
4691 |
position: absolute;
|
4692 |
cursor: pointer;
|
4693 |
right: 0;
|
4694 |
width: 3px;
|
4695 |
}
|
4696 |
|
4697 |
+
.wpr-popup-container .ps-scrollbar-x-rail {
|
4698 |
+
display: none !important;
|
4699 |
+
}
|
4700 |
+
|
4701 |
.wpr-popup-notification .wpr-popup-container .slideInDown {
|
4702 |
-webkit-animation-timing-function: linear;
|
4703 |
animation-timing-function: linear;
|
4743 |
border-width: 0 0 22px 12px;
|
4744 |
}
|
4745 |
|
4746 |
+
.elementor-editor-active [data-elementor-type="wpr-popups"] .elementor-section-wrap:not(:empty) + #elementor-add-new-section,
|
4747 |
+
.elementor-editor-active [data-elementor-type="wpr-popups"]:not(.elementor-edit-mode) {
|
4748 |
display: none;
|
4749 |
}
|
4750 |
|
4751 |
+
.elementor .elementor-widget-wpr-popup-trigger .wpr-popup-trigger-button {
|
4752 |
+
display: inline-block;
|
4753 |
+
font-size: 14px;
|
4754 |
+
font-weight: 500;
|
4755 |
+
cursor: pointer;
|
4756 |
+
}
|
4757 |
|
4758 |
+
.elementor-editor-active [data-elementor-type="wpr-popup"] .elementor-section-wrap:not(:empty) + #elementor-add-new-section,
|
4759 |
+
.elementor-editor-active [data-elementor-type="wpr-popup"]:not(.elementor-edit-mode) {
|
4760 |
+
display: none;
|
4761 |
+
}
|
4762 |
|
4763 |
/* Template Edit button */
|
4764 |
.wpr-template-edit-btn {
|
6258 |
== Search
|
6259 |
--------------------------------------------------------------*/
|
6260 |
.wpr-search-form-input-wrap {
|
|
|
6261 |
width: 100%;
|
6262 |
overflow: hidden;
|
6263 |
}
|
6267 |
height: 100%;
|
6268 |
font-size: 14px;
|
6269 |
background-color: transparent;
|
6270 |
+
border-style: solid;
|
6271 |
}
|
6272 |
|
6273 |
.wpr-search-form-style-inner .wpr-search-form-input-wrap,
|
8462 |
}
|
8463 |
|
8464 |
.wpr-flip-box-btn {
|
|
|
8465 |
display: inline-table;
|
8466 |
cursor: pointer;
|
8467 |
}
|
9839 |
-ms-flex-pack: center;
|
9840 |
justify-content: center;
|
9841 |
line-height: 1;
|
9842 |
+
-webkit-box-shadow: 0px 0px 10px 0px rgb(0,0,0,0.25);
|
9843 |
+
box-shadow: 0px 0px 10px 0px rgb(0,0,0,0.25);
|
9844 |
}
|
9845 |
|
9846 |
.wpr-stt-btn-icon-left .wpr-stt-btn {
|
9923 |
}
|
9924 |
|
9925 |
.elementor a.wpr-pc-btn {
|
9926 |
+
-webkit-box-shadow: 0px 0px 10px 0px rgb(0,0,0,0.2);
|
9927 |
+
box-shadow: 0px 0px 10px 0px rgb(0,0,0,0.2);
|
9928 |
}
|
9929 |
|
9930 |
.wpr-pc-content {
|
9980 |
|
9981 |
.wpr-pc-btn-align-fixed-left .wpr-pc-btn {
|
9982 |
right: auto;
|
9983 |
+
}
|
9984 |
+
|
9985 |
+
|
9986 |
+
/*--------------------------------------------------------------
|
9987 |
+
== Section Extensions
|
9988 |
+
--------------------------------------------------------------*/
|
9989 |
+
.wpr-particle-wrapper {
|
9990 |
+
position: absolute;
|
9991 |
+
top: 0;
|
9992 |
+
left: 0;
|
9993 |
+
width: 100%;
|
9994 |
+
height: 100%;
|
9995 |
+
z-index: 0;
|
9996 |
+
}
|
9997 |
+
|
9998 |
+
.wpr-particle-wrapper canvas {
|
9999 |
+
position: relative;
|
10000 |
+
z-index: -1;
|
10001 |
+
}
|
10002 |
+
|
10003 |
+
.wpr-jarallax {
|
10004 |
+
position: relative;
|
10005 |
+
-webkit-transition: all 0.9s ease-in-out;
|
10006 |
+
-o-transition: all 0.9s ease-in-out;
|
10007 |
+
transition: all 0.9s ease-in-out;
|
10008 |
+
}
|
10009 |
+
|
10010 |
+
.wpr-parallax-multi-layer {
|
10011 |
+
position: absolute;
|
10012 |
+
top: 0;
|
10013 |
+
left: 0;
|
10014 |
+
height: 100%;
|
10015 |
+
width: 100%;
|
10016 |
+
}
|
10017 |
+
|
10018 |
+
.wpr-parallax-ml-children {
|
10019 |
+
position: relative;
|
10020 |
+
display: none;
|
10021 |
+
}
|
10022 |
+
|
10023 |
+
.wpr-parallax-ml-children img {
|
10024 |
+
max-width: 100%;
|
10025 |
+
width: 100%;
|
10026 |
+
}
|
10027 |
+
|
10028 |
+
.wpr-sticky-section-yes {
|
10029 |
+
width: 100%;
|
10030 |
}
|
assets/css/frontend.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline}article,aside,figcaption,figure,footer,header,main,nav,section{display:block}ul{list-style-type:none}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible;border:0;height:1px;margin:20px 0}pre{font-family:monospace,monospace;font-size:1em}a{text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{display:block;border-style:none}svg:not(:root){overflow:hidden;display:inline}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:0}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important}[type=search]:focus{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}.wpr-hidden-element{display:none!important}.wpr-cv-container{display:block;width:100%;height:100%;position:absolute;left:0;top:0;z-index:90}.wpr-cv-outer{display:table;width:100%;height:100%}.wpr-cv-inner{display:table-cell;vertical-align:middle}.wpr-no-transition-delay{-webkit-transition-delay:0s!important;-o-transition-delay:0s!important;transition-delay:0s!important}.wpr-enable-dropcap p:first-child:first-letter{float:left;padding-right:10px;font-size:50px;line-height:1}.wpr-tooltip{visibility:hidden;opacity:0;position:absolute;top:0;left:0;-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%);padding:6px 10px;border-radius:4px;font-size:15px;-webkit-transition:all 230ms ease-in-out 0s;-o-transition:all 230ms ease-in-out 0s;transition:all 230ms ease-in-out 0s}.wpr-tooltip:before{content:"";position:absolute;left:10px;bottom:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top-style:solid;border-top-width:6px}.wpr-mobile-nav-menu,.wpr-nav-menu{list-style:none;font-size:0}.wpr-nav-menu li{position:relative}.wpr-nav-menu-horizontal .wpr-nav-menu>li{display:inline-block}.wpr-nav-menu .wpr-menu-item{display:block;position:relative;z-index:1}.wpr-mobile-nav-menu li,.wpr-nav-menu li{font-size:16px;line-height:1}.wpr-nav-menu-horizontal .wpr-nav-menu>li:first-child,.wpr-pointer-line-fx .wpr-nav-menu-horizontal>li:first-child .wpr-menu-item,.wpr-pointer-none .wpr-nav-menu-horizontal>li:first-child .wpr-menu-item{padding-left:0!important;margin-left:0!important}.wpr-nav-menu-horizontal .wpr-nav-menu>li:last-child,.wpr-pointer-line-fx .wpr-nav-menu-horizontal>li:last-child .wpr-menu-item,.wpr-pointer-none .wpr-nav-menu-horizontal>li:last-child .wpr-menu-item{padding-right:0!important;margin-right:0!important}div[class*=wpr-main-menu-align-] .wpr-nav-menu-vertical .wpr-nav-menu>li>.wpr-sub-menu{left:100%}.wpr-main-menu-align-center .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align-left .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align-right .wpr-nav-menu-vertical .wpr-sub-icon{left:0}.wpr-main-menu-align-left .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align-left .wpr-nav-menu-vertical .wpr-menu-item,.wpr-main-menu-align-left .wpr-nav-menu-vertical .wpr-sub-menu li a{text-align:left}.wpr-main-menu-align-center .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align-center .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align-right .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align-right .wpr-nav-menu-vertical .wpr-menu-item,.wpr-main-menu-align-right .wpr-nav-menu-vertical .wpr-sub-menu li a{text-align:right}@media screen and (min-width:2400px){.wpr-main-menu-align--widescreencenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--widescreenleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--widescreenleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--widescreenleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--widescreencenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--widescreencenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--widescreenright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--widescreenright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}@media screen and (max-width:1221px){.wpr-main-menu-align--laptopcenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--laptopleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--laptopleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--laptopleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--laptopcenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--laptopcenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--laptopright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--laptopright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}@media screen and (max-width:1200px){.wpr-main-menu-align--tablet_extracenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--tablet_extraleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--tablet_extraleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tablet_extraleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--tablet_extracenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tablet_extracenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--tablet_extraright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tablet_extraright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}@media screen and (max-width:1024px){.wpr-main-menu-align--tabletcenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--tabletleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--tabletleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tabletleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--tabletcenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tabletcenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--tabletright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tabletright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}@media screen and (max-width:880px){.wpr-main-menu-align--mobile_extracenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--mobile_extraleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--mobile_extraleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobile_extraleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--mobile_extracenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobile_extracenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--mobile_extraright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobile_extraright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}@media screen and (max-width:767px){.wpr-main-menu-align--mobilecenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--mobileleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--mobileleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobileleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--mobilecenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobilecenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--mobileright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobileright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}.wpr-nav-menu .wpr-sub-menu{display:none;position:absolute;z-index:999;width:180px;text-align:left;list-style:none;margin:0}.wpr-nav-menu-vertical .wpr-nav-menu>li>.wpr-sub-menu{top:0}.wpr-sub-menu-position-inline .wpr-nav-menu-vertical .wpr-sub-menu{position:static;width:100%!important;text-align:center!important;margin-left:0!important}.wpr-sub-menu-position-inline .wpr-sub-menu a{position:relative}.wpr-nav-menu .wpr-sub-menu .wpr-sub-menu{top:0;left:100%}.wpr-sub-menu .wpr-sub-menu-item{display:block;font-size:14px}.wpr-nav-menu-horizontal .wpr-menu-item .wpr-sub-icon{margin-left:7px;text-indent:0}.wpr-sub-icon{position:absolute;top:48%;transform:translateY(-50%);-ms-transform:translateY(-50%);-webkit-transform:translateY(-50%)}.wpr-sub-icon-rotate{-webkit-transform:rotate(-90deg) translateX(80%);-ms-transform:rotate(-90deg) translateX(80%);transform:rotate(-90deg) translateX(80%)}.wpr-sub-divider-yes .wpr-sub-menu li:not(:last-child){border-bottom-style:solid}.wpr-mobile-nav-menu,.wpr-mobile-nav-menu-container{display:none}.wpr-mobile-nav-menu{position:absolute;z-index:9999}.wpr-mobile-menu-drdown-align-left .wpr-mobile-nav-menu{left:0}.wpr-mobile-menu-drdown-align-center .wpr-mobile-nav-menu{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-mobile-menu-drdown-align-right .wpr-mobile-nav-menu{right:0}.wpr-mobile-menu-item,.wpr-mobile-sub-menu-item{position:relative}.wpr-mobile-menu-item,.wpr-mobile-sub-menu-item{display:block}.wpr-mobile-sub-menu{display:none}.wpr-mobile-nav-menu .menu-item-has-children>a:after{position:absolute;right:0;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);-webkit-transform:translateY(-50%)}.wpr-mobile-menu-item-align-left .wpr-mobile-sub-menu a:before{content:' ';display:inline-block;width:10px}.wpr-mobile-menu-item-align-left .wpr-mobile-sub-menu .wpr-mobile-sub-menu a:before{width:20px}.wpr-mobile-menu-item-align-center .wpr-mobile-nav-menu{text-align:center}.wpr-mobile-menu-item-align-right .wpr-mobile-nav-menu{text-align:right}.wpr-mobile-menu-item-align-right .wpr-mobile-nav-menu .menu-item-has-children>a:after{right:auto!important;left:0}div[class*=wpr-sub-icon-] .wpr-mobile-nav-menu .menu-item-has-children>a:after{font-family:"Font Awesome 5 Free";font-size:12px;font-weight:900;font-style:normal;text-decoration:none;line-height:1;letter-spacing:0;text-rendering:auto;-webkit-font-smoothing:antialiased}.wpr-sub-icon-caret-down .wpr-mobile-nav-menu .menu-item-has-children>a:after,.wpr-sub-icon-caret-down .wpr-sub-icon:before{content:"\f0d7"}.wpr-sub-icon-angle-down .wpr-mobile-nav-menu .menu-item-has-children>a:after,.wpr-sub-icon-angle-down .wpr-sub-icon:before{content:"\f107"}.wpr-sub-icon-chevron-down .wpr-mobile-nav-menu .menu-item-has-children>a:after,.wpr-sub-icon-chevron-down .wpr-sub-icon:before{content:"\f078"}.wpr-sub-icon-plus .wpr-mobile-nav-menu .menu-item-has-children>a:after,.wpr-sub-icon-plus .wpr-sub-icon:before{content:"\f067"}.wpr-mobile-divider-yes .wpr-mobile-nav-menu a{border-bottom-style:solid}.wpr-mobile-toggle-wrap{font-size:0;line-height:0}.wpr-mobile-toggle{display:inline-block;padding:7px;cursor:pointer;border-style:solid;text-align:center}.wpr-mobile-toggle-line{display:block;width:100%}.wpr-mobile-toggle-line:last-child{margin-bottom:0!important}.wpr-mobile-toggle-text{font-size:16px;line-height:1!important}.wpr-mobile-toggle-text:last-child{display:none}.wpr-mobile-toggle-v2 .wpr-mobile-toggle-line:nth-child(2){width:78%;margin-left:24%}.wpr-mobile-toggle-v2 .wpr-mobile-toggle-line:nth-child(3){width:45%;margin-left:57%}.wpr-mobile-toggle-v3 .wpr-mobile-toggle-line:nth-child(2){width:75%;margin-left:15%}.wpr-mobile-toggle-v4 .wpr-mobile-toggle-line:nth-child(1),.wpr-mobile-toggle-v4 .wpr-mobile-toggle-line:nth-child(3){width:75%;margin-left:25%}.wpr-mobile-toggle-v4 .wpr-mobile-toggle-line:nth-child(2){width:75%;margin-right:25%}.wpr-mobile-toggle-v5 .wpr-mobile-toggle-line:nth-child(1){display:none}.wpr-nav-menu-bp-always .wpr-nav-menu-container{display:none}.wpr-nav-menu-bp-always .wpr-mobile-nav-menu-container{display:block}@media screen and (max-width:1025px){.wpr-nav-menu-bp-tablet .wpr-nav-menu-container{display:none}.wpr-nav-menu-bp-tablet .wpr-mobile-nav-menu-container{display:block}}@media screen and (max-width:767px){.wpr-nav-menu-bp-mobile .wpr-nav-menu-container,.wpr-nav-menu-bp-pro-al .wpr-nav-menu-container,.wpr-nav-menu-bp-pro-nn .wpr-nav-menu-container{display:none}.wpr-nav-menu-bp-mobile .wpr-mobile-nav-menu-container,.wpr-nav-menu-bp-pro-al .wpr-mobile-nav-menu-container,.wpr-nav-menu-bp-pro-nn .wpr-mobile-nav-menu-container{display:block}}.wpr-pointer-background-fx .wpr-active-menu-item:before,.wpr-pointer-border-fx .wpr-active-menu-item:before,.wpr-pointer-line-fx .wpr-active-menu-item:after,.wpr-pointer-line-fx .wpr-active-menu-item:before{opacity:1!important}.wpr-pointer-fx-none{-webkit-transition-duration:0s!important;-o-transition-duration:0s!important;transition-duration:0s!important}.wpr-pointer-double-line.wpr-pointer-fx-grow .wpr-active-menu-item:after,.wpr-pointer-double-line.wpr-pointer-fx-grow .wpr-active-menu-item:before,.wpr-pointer-double-line.wpr-pointer-fx-slide .wpr-active-menu-item:after,.wpr-pointer-double-line.wpr-pointer-fx-slide .wpr-active-menu-item:before,.wpr-pointer-overline.wpr-pointer-fx-grow .wpr-active-menu-item:before,.wpr-pointer-overline.wpr-pointer-fx-slide .wpr-active-menu-item:before,.wpr-pointer-underline.wpr-pointer-fx-grow .wpr-active-menu-item:after,.wpr-pointer-underline.wpr-pointer-fx-slide .wpr-active-menu-item:after{width:100%}.wpr-pointer-line-fx.wpr-pointer-fx-drop .wpr-active-menu-item:before{top:0}.wpr-pointer-line-fx.wpr-pointer-fx-drop .wpr-active-menu-item:after{bottom:0}.wpr-pointer-background-fx.wpr-pointer-fx-grow .wpr-active-menu-item:before,.wpr-pointer-background-fx.wpr-pointer-fx-shrink .wpr-active-menu-item:before,.wpr-pointer-background-fx.wpr-pointer-fx-sweep .wpr-active-menu-item:before,.wpr-pointer-border-fx.wpr-pointer-fx-grow .wpr-active-menu-item:before,.wpr-pointer-border-fx.wpr-pointer-fx-shrink .wpr-active-menu-item:before{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.wpr-pointer-background-fx.wpr-pointer-fx-skew .wpr-active-menu-item:before{-webkit-transform:perspective(600px) rotateX(0);transform:perspective(600px) rotateX(0)}.wpr-mobile-nav-menu .sub-menu-toggle{display:none!important}.elementor-widget-wpr-nav-menu .wpr-mobile-nav-menu a,.elementor-widget-wpr-nav-menu .wpr-mobile-toggle-text,.elementor-widget-wpr-nav-menu .wpr-nav-menu .wpr-menu-item{line-height:26px}.elementor-widget-wpr-nav-menu .wpr-sub-menu .wpr-sub-menu-item{font-size:14px}.wpr-onepage-nav{position:fixed;z-index:99999;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-onepage-nav-item{position:relative}.wpr-onepage-nav-item:last-child{margin-bottom:0!important}.wpr-onepage-nav-vr-top .wpr-onepage-nav{top:0}.wpr-onepage-nav-vr-middle .wpr-onepage-nav{top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translateY(-50%)}.wpr-onepage-nav-vr-bottom .wpr-onepage-nav{bottom:0}.wpr-onepage-nav-hr-left .wpr-onepage-nav{left:0}.wpr-onepage-nav-hr-right .wpr-onepage-nav{right:0}.wpr-onepage-nav-item .wpr-tooltip{text-align:center}.wpr-onepage-nav-item:hover .wpr-tooltip{opacity:1;visibility:visible}.wpr-onepage-nav-hr-left .wpr-onepage-nav-item:hover .wpr-tooltip{-ms-transform:translate(10%,-50%);transform:translate(10%,-50%);-webkit-transform:translate(10%,-50%)}.wpr-onepage-nav-hr-left .wpr-onepage-nav-item .wpr-tooltip{top:50%;left:100%;-ms-transform:translate(20%,-50%);transform:translate(20%,-50%);-webkit-transform:translate(20%,-50%)}.wpr-onepage-nav-hr-left .wpr-onepage-nav-item .wpr-tooltip:before{left:auto;left:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(90deg);-ms-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}.wpr-onepage-nav-hr-right .wpr-onepage-nav-item:hover .wpr-tooltip{-ms-transform:translate(-110%,-50%);transform:translate(-110%,-50%);-webkit-transform:translate(-110%,-50%)}.wpr-onepage-nav-hr-right .wpr-onepage-nav-item .wpr-tooltip{top:50%;left:0;-ms-transform:translate(-120%,-50%);transform:translate(-120%,-50%);-webkit-transform:translate(-120%,-50%)}.wpr-onepage-nav-hr-right .wpr-onepage-nav-item .wpr-tooltip:before{left:auto;right:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(-90deg);-ms-transform:translateY(-50%) rotate(-90deg);transform:translateY(-50%) rotate(-90deg)}.elementor-widget-wpr-onepage-nav .wpr-onepage-nav{background-color:#605be5;-webkit-box-shadow:0 0 15px 0 #d7d7d7;box-shadow:0 0 15px 0 #d7d7d7}.elementor-widget-wpr-onepage-nav .wpr-onepage-nav-item .wpr-tooltip{font-size:14px}.wpr-featured-media-image{position:relative;display:inline-block;vertical-align:middle}.wpr-featured-media-caption{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%}.wpr-featured-media-caption span{display:inline-block}.wpr-fm-image-caption-hover [data-caption=gallery] .wpr-featured-media-caption,.wpr-fm-image-caption-hover [data-caption=standard] .wpr-featured-media-caption{opacity:0;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.wpr-fm-image-caption-hover [data-caption=gallery]:hover .wpr-featured-media-caption,.wpr-fm-image-caption-hover [data-caption=standard]:hover .wpr-featured-media-caption{opacity:1}.wpr-gallery-slider{opacity:0}.wpr-gallery-lightbox-yes .wpr-featured-media-image{cursor:pointer}.wpr-gallery-slide img{margin:0 auto}.wpr-gallery-slider-arrow{position:absolute;z-index:120;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;text-align:center;cursor:pointer}.wpr-gallery-slider-arrow i{display:block;width:100%;height:100%;line-height:inherit}.wpr-gallery-slider-arrow{-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-gallery-slider-nav-fade .wpr-gallery-slider-arrow{opacity:0;visibility:hidden}.wpr-gallery-slider-nav-fade .wpr-gallery-slider:hover .wpr-gallery-slider-arrow{opacity:1;visibility:visible}.wpr-gallery-slider-dots{position:absolute;display:inline-table;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:110}.wpr-gallery-slider-dots ul{list-style:none;margin:0;padding:0}.wpr-gallery-slider-dots li{float:left}.wpr-gallery-slider-dot{display:block;cursor:pointer}.wpr-gallery-slider-dots li:last-child .wpr-gallery-slider-dot{margin:0!important}.wpr-author-box-image{display:inline-block;overflow:hidden}.wpr-author-box-arrange-left .wpr-author-box{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-author-box-arrange-right .wpr-author-box{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-author-box-arrange-left .wpr-author-box-image,.wpr-author-box-arrange-right .wpr-author-box-image{-ms-flex-negative:0;flex-shrink:0}.wpr-author-box-arrange-left .wpr-author-box-text,.wpr-author-box-arrange-right .wpr-author-box-text{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.wpr-author-box-btn{display:inline-block}.wpr-post-navigation-wrap{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-post-navigation-wrap>div:last-child{margin-right:0!important}.wpr-post-nav-fixed-default-wrap{position:fixed;bottom:0;z-index:999}.wpr-post-nav-fixed.wpr-post-navigation{position:fixed;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);z-index:999}.wpr-post-nav-fixed.wpr-post-navigation a{display:block}.wpr-post-nav-fixed.wpr-post-navigation img{position:absolute;top:0}.wpr-post-nav-fixed.wpr-post-nav-prev{left:0}.wpr-post-nav-fixed.wpr-post-nav-next{right:0}.wpr-post-nav-fixed.wpr-post-nav-hover img{opacity:0}.wpr-post-nav-fixed.wpr-post-nav-hover.wpr-post-nav-prev img{-webkit-transform:perspective(600px) rotateY(90deg);transform:perspective(600px) rotateY(90deg);-webkit-transform-origin:center left 0;-ms-transform-origin:center left 0;transform-origin:center left 0}.wpr-post-nav-fixed.wpr-post-nav-hover.wpr-post-nav-next img{-webkit-transform:perspective(600px) rotateY(-90deg);transform:perspective(600px) rotateY(-90deg);-webkit-transform-origin:center right 0;-ms-transform-origin:center right 0;transform-origin:center right 0}.wpr-post-nav-fixed.wpr-post-nav-hover:hover img{opacity:1;position:absolute;-webkit-transform:none;-ms-transform:none;transform:none}.wpr-post-nav-static.wpr-post-navigation{width:50%}.wpr-post-navigation{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;background-size:cover;background-position:center center;background-repeat:no-repeat}.wpr-post-navigation{position:relative}.wpr-post-navigation a{position:relative;z-index:2}.wpr-post-nav-overlay{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transition:all .3s ease-in 0s;-o-transition:all .3s ease-in 0s;transition:all .3s ease-in 0s}.wpr-post-nav-back{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;font-size:30px}.wpr-post-navigation a{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-post-nav-next a{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpr-post-nav-labels{min-width:0}.wpr-post-nav-labels h5{overflow:hidden;white-space:nowrap;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.wpr-post-nav-next{text-align:right}.wpr-post-navigation i{font-size:20px;text-align:center}.wpr-post-nav-labels span{display:inline-block}.wpr-post-nav-dividers{padding:10px 0;border-top:1px solid #000;border-bottom:1px solid #000}.wpr-post-nav-divider{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;-ms-flex-negative:0;flex-shrink:0}.wpr-post-nav-dividers.wpr-post-navigation-wrap{padding-left:0!important;padding-right:0!important}.wpr-post-nav-back a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:0}.wpr-post-nav-back span{display:inline-block;border-style:solid}.wpr-post-nav-back span:nth-child(2n){margin-right:0!important}.wpr-post-info li{position:relative}.wpr-post-info-horizontal li{display:inline-block}.wpr-post-info-horizontal li:last-child{padding-right:0!important}.wpr-post-info-vertical li:last-child{padding-bottom:0!important}.wpr-post-info li:after{content:' ';display:inline-block;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-post-info li:last-child:after{display:none}.wpr-post-info li .wpr-post-info-text{display:inline-block;text-align:left!important}.wpr-post-info-align-left .wpr-post-info-vertical li:after{left:0}.wpr-post-info-align-center .wpr-post-info-vertical li:after{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-post-info-align-right .wpr-post-info-vertical li:after{right:0}.wpr-post-info-text span{display:inline-block}.wpr-post-info-author img{display:inline-block;margin-right:10px}.wpr-post-info-custom-field a,.wpr-post-info-custom-field span{display:inline-block}.wpr-comment-avatar{float:left;overflow:hidden}.wpr-comment-avatar img{position:static!important}.wpr-comment-metadata>*{display:inline-block}.wpr-comment-metadata p{display:block}.wpr-comments-wrap .comment-reply-link{float:none!important}.wpr-comment-reply-separate.wpr-comment-reply-align-right .wpr-comment-reply{text-align:right}.wpr-comment-reply-inline.wpr-comment-reply-align-right .wpr-comment-reply{float:right}.wpr-comment-reply-inline.wpr-comment-reply-align-left .wpr-comment-reply:before{content:'\00a0|\00a0'}.wpr-comment-reply a,.wpr-comments-navigation a,.wpr-comments-navigation span{display:inline-block}.wpr-comments-navigation-center,.wpr-comments-navigation-justify{text-align:center}.wpr-comments-navigation-left{text-align:left}.wpr-comments-navigation-right{text-align:right}.wpr-comments-navigation-justify a.prev{float:left}.wpr-comments-navigation-justify a.next{float:right}.wpr-comment-form .comment-notes{display:none}.wpr-comment-form-author input,.wpr-comment-form-email input,.wpr-comment-form-text,.wpr-comment-form-text textarea,.wpr-comment-form-url input{display:block;width:100%}.wpr-comment-form{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-contact-form-fields{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-cf-no-url .wpr-comment-form-email{margin-right:0!important}.wpr-cf-style-1 .wpr-contact-form-fields,.wpr-cf-style-4 .wpr-contact-form-fields{display:block}.wpr-comment-form .wpr-contact-form-fields>div{width:100%}.wpr-cf-style-2 .wpr-contact-form-fields,.wpr-cf-style-5 .wpr-contact-form-fields{display:block;width:50%}.wpr-cf-style-2 .wpr-contact-form-fields>div,.wpr-cf-style-5 .wpr-contact-form-fields>div{margin-right:0!important}.wpr-cf-style-4.wpr-comment-form .wpr-comment-form-text,.wpr-cf-style-5.wpr-comment-form .wpr-comment-form-text,.wpr-cf-style-6.wpr-comment-form .wpr-comment-form-text{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.wpr-submit-comment{cursor:pointer}.wpr-comments-list .comment-respond{margin-bottom:30px}.wpr-product-media-wrap{position:relative;display:inline-block;max-width:100%}.wpr-product-media-image{display:inline-block;position:relative;vertical-align:middle;overflow:hidden}.wpr-product-media-caption{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%}.wpr-product-media-caption span{display:inline-block}.wpr-pd-image-caption-hover .wpr-product-media-wrap .wpr-product-media-caption{opacity:0;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.wpr-pd-image-caption-hover .wpr-product-media-wrap:hover .wpr-product-media-caption{opacity:1}.wpr-product-thumb-nav li{overflow:hidden;cursor:pointer;opacity:.75}.wpr-product-thumb-nav li.slick-current{opacity:1}.wpr-product-thumb-nav li img{width:100%}.wpr-gallery-lightbox-yes .wpr-product-media-image{cursor:pointer}.wpr-gallery-zoom-yes .wpr-product-media-image:hover img{-webkit-transform:scale(1.5);-ms-transform:scale(1.5);transform:scale(1.5)}.wpr-product-media-onsale{position:absolute;top:0;left:0;z-index:2}.wpr-product-price-separate .wpr-product-price del,.wpr-product-price-separate .wpr-product-price ins{display:block}.wpr-grid{opacity:0}.wpr-grid-item{float:left;position:relative;text-align:center}.wpr-grid-item,.wpr-grid-item *{outline:0!important}.wpr-grid-last-row{margin-bottom:0!important}.wpr-grid-item-above-content{border-bottom:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.wpr-grid:not([data-settings*=list]) .wpr-grid-item-below-content{border-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.wpr-grid-item-inner,.wpr-grid-media-wrap{position:relative}.wpr-grid-image-wrap{overflow:hidden}.wpr-grid-image-wrap img{display:block;width:100%}.wpr-grid-media-hover{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.wpr-grid-media-hover-top{position:absolute;top:0;left:0;width:100%;z-index:2}.wpr-grid-media-hover-bottom{position:absolute;bottom:0;left:0;width:100%;z-index:2}.wpr-grid-media-hover-middle{position:relative;z-index:2}.wpr-grid .wpr-cv-container,.wpr-magazine-grid .wpr-cv-container{z-index:1}.wpr-grid-item-display-block{clear:both}.wpr-grid-item-display-custom.wpr-grid-item-align-left,.wpr-grid-item-display-inline.wpr-grid-item-align-left{float:left}.wpr-grid-item-display-custom.wpr-grid-item-align-right,.wpr-grid-item-display-inline.wpr-grid-item-align-right{float:right}.wpr-grid-item-display-custom.wpr-grid-item-align-center,.wpr-grid-item-display-inline.wpr-grid-item-align-center{float:none;display:inline-block;vertical-align:middle}.wpr-grid-cf-style-1 .inner-block>a,.wpr-grid-cf-style-1 .inner-block>span,.wpr-grid-cf-style-2 .inner-block>a,.wpr-grid-cf-style-2 .inner-block>span,.wpr-grid-item-add-to-cart .inner-block>a,.wpr-grid-item-author .inner-block a,.wpr-grid-item-comments .inner-block a,.wpr-grid-item-date .inner-block>span,.wpr-grid-item-lightbox .inner-block>span,.wpr-grid-item-likes .inner-block a,.wpr-grid-item-price .inner-block>span,.wpr-grid-item-read-more .inner-block a,.wpr-grid-item-sharing .inner-block>span,.wpr-grid-item-status .inner-block>span,.wpr-grid-item-time .inner-block>span,.wpr-grid-item-title .inner-block a,.wpr-grid-product-categories .inner-block a,.wpr-grid-product-tags .inner-block a,.wpr-grid-sep-style-1 .inner-block>span,.wpr-grid-sep-style-2 .inner-block>span,.wpr-grid-tax-style-1 .inner-block a,.wpr-grid-tax-style-2 .inner-block a{display:inline-block}.wpr-grid-item-display-custom.wpr-grid-cf-style-1 .inner-block>a,.wpr-grid-item-display-custom.wpr-grid-cf-style-1 .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-cf-style-2 .inner-block>a,.wpr-grid-item-display-custom.wpr-grid-cf-style-2 .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-add-to-cart .inner-block>a,.wpr-grid-item-display-custom.wpr-grid-item-comments .inner-block a,.wpr-grid-item-display-custom.wpr-grid-item-date .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-lightbox .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-likes .inner-block a,.wpr-grid-item-display-custom.wpr-grid-item-product-price .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-product-status .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-read-more .inner-block a,.wpr-grid-item-display-custom.wpr-grid-item-sharing .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-time .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-title .inner-block a,.wpr-grid-item-display-custom.wpr-grid-sep-style-1 .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-sep-style-2 .inner-block>span{width:100%}.wpr-grid-item-excerpt .inner-block p{margin:0!important}.wpr-grid-media-hover-bg{position:absolute}.wpr-grid-media-hover-bg img{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) scale(1)!important;-ms-transform:translate(-50%,-50%) scale(1)!important;transform:translate(-50%,-50%) scale(1)!important;-webkit-filter:grayscale(0)!important;filter:grayscale(0)!important;-webkit-filter:blur(0)!important;-filter:blur(0)!important}.wpr-grid-item-author img,.wpr-grid-item-author span{display:inline-block;vertical-align:middle}.wpr-grid-item-author img{-webkit-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-filter:none!important;filter:none!important}.wpr-grid-item-likes .inner-block a{text-align:center}.wpr-likes-no-default.wpr-likes-zero i{padding:0!important}.wpr-grid-item-sharing .inner-block a{text-align:center}.wpr-grid-item-sharing .wpr-post-sharing{position:relative}.wpr-grid-item-sharing .wpr-sharing-icon{display:inline-block;position:relative}.wpr-grid-item-sharing .wpr-sharing-icon .wpr-tooltip{left:50%;-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform:translate(-50%,-100%)}.wpr-grid-item-sharing .wpr-sharing-icon:hover .wpr-tooltip{visibility:visible;opacity:1;-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%);-webkit-transform:translate(-50%,-120%)}.wpr-grid-item-sharing .wpr-tooltip:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%)}.wpr-grid-item-sharing .wpr-sharing-trigger{cursor:pointer}.wpr-grid-item-sharing .wpr-tooltip{display:block;padding:10px}.wpr-grid-item-sharing .wpr-sharing-hidden{visibility:hidden;position:absolute;z-index:3;text-align:center}.wpr-grid-item-sharing .wpr-sharing-hidden a{opacity:0}.wpr-sharing-hidden a{position:relative;top:-5px;-webkit-transition-duration:.3s!important;-o-transition-duration:.3s!important;transition-duration:.3s!important;-webkit-transition-timing-function:cubic-bezier(.445,.050,.55,.95);-o-transition-timing-function:cubic-bezier(.445,.050,.55,.95);transition-timing-function:cubic-bezier(.445,.050,.55,.95);-webkit-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s}.wpr-sharing-hidden a+a{-webkit-transition-delay:.1s;-o-transition-delay:.1s;transition-delay:.1s}.wpr-sharing-hidden a+a+a{-webkit-transition-delay:.2s;-o-transition-delay:.2s;transition-delay:.2s}.wpr-sharing-hidden a+a+a+a{-webkit-transition-delay:.3s;-o-transition-delay:.3s;transition-delay:.3s}.wpr-sharing-hidden a+a+a+a+a{-webkit-transition-delay:.4s;-o-transition-delay:.4s;transition-delay:.4s}.wpr-grid-item-sharing a:last-of-type{margin-right:0!important}.wpr-grid-item-sharing .inner-block a{-webkit-transition-property:color,background-color,border;-o-transition-property:color,background-color,border;transition-property:color,background-color,border;-webkit-transition-timing-function:linear;-o-transition-timing-function:linear;transition-timing-function:linear}.wpr-grid-item-add-to-cart .inner-block>a,.wpr-grid-item-read-more .inner-block>a{position:relative;overflow:hidden;vertical-align:middle}.wpr-grid-item-add-to-cart .inner-block>a i,.wpr-grid-item-add-to-cart .inner-block>a span,.wpr-grid-item-read-more .inner-block>a i,.wpr-grid-item-read-more .inner-block>a span{position:relative;z-index:2;opacity:1}.wpr-grid-item-add-to-cart .inner-block>a:after,.wpr-grid-item-add-to-cart .inner-block>a:before,.wpr-grid-item-read-more .inner-block>a:after,.wpr-grid-item-read-more .inner-block>a:before{z-index:1}.wpr-grid-item-lightbox .inner-block>span,.wpr-grid-lightbox-overlay{cursor:pointer}.wpr-grid-lightbox-overlay{position:absolute;top:0;left:0;z-index:10;width:100%;height:100%}.admin-bar .lg-toolbar{top:32px}.wpr-grid-item-separator .inner-block{font-size:0;line-height:0}.wpr-grid-item-separator.wpr-grid-item-display-inline span{width:100%!important}.wpr-woo-rating i{display:inline;position:relative;font-family:eicons;font-style:normal;line-height:1;overflow:hidden}.wpr-woo-rating i:before{content:'\e934';font-weight:900;display:block;position:absolute;top:0;left:0;font-size:inherit;font-family:inherit;overflow:hidden}.wpr-woo-rating-style-2 .wpr-woo-rating i:before{content:'\002605'}.wpr-woo-rating i:last-of-type{margin-right:0!important}.wpr-rating-icon-empty:before{display:none!important}.wpr-rating-icon-0:before{width:0}.wpr-rating-icon-1:before{width:10%}.wpr-rating-icon-2:before{width:20%}.wpr-rating-icon-3:before{width:30%}.wpr-rating-icon-4:before{width:40%}.wpr-rating-icon-5:before{width:50%}.wpr-rating-icon-6:before{width:60%}.wpr-rating-icon-7:before{width:70%}.wpr-rating-icon-8:before{width:80%}.wpr-rating-icon-9:before{width:90%}.wpr-rating-icon-full:before{width:100%}.wpr-grid-filters li{display:inline-block}.wpr-grid-filters li:last-of-type{margin-right:0!important}.wpr-grid-filters li span{display:inline-block;cursor:pointer;text-decoration:inherit}.wpr-grid-filters li a{display:inline-block}.wpr-grid-filters li sup{position:relative;padding-left:5px;line-height:1}.wpr-grid-filters li sup[data-brackets=yes]:before{content:'\0028'}.wpr-grid-filters li sup[data-brackets=yes]:after{content:'\0029'}.wpr-grid-filters .wpr-active-filter.wpr-pointer-item:after,.wpr-grid-filters .wpr-active-filter.wpr-pointer-item:before{opacity:1!important;width:100%!important}.wpr-grid-filters-sep{font-style:normal}.wpr-grid-filters-sep-left li:first-child .wpr-grid-filters-sep,.wpr-grid-filters-sep-right li:last-of-type .wpr-grid-filters-sep{display:none}.wpr-sub-filters{display:none}.wpr-grid-sorting{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.wpr-grid-sorting .woocommerce-ordering,.wpr-grid-sorting>div{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.wpr-grid-sorting .woocommerce-ordering{text-align:right}.wpr-grid-sorting .woocommerce-ordering select{width:auto;outline:0!important}.wpr-grid-sorting .woocommerce-ordering,.wpr-grid-sorting .woocommerce-result-count,.wpr-grid-sorting .wpr-shop-page-title{margin:0!important}.wpr-grid-pagination{margin-top:30px}.wpr-grid-pagination>a,.wpr-grid-pagination>span{display:inline-block}.wpr-grid-pagination svg{vertical-align:middle}.wpr-grid-pagination .wpr-disabled-arrow{cursor:not-allowed;opacity:.4}.wpr-pagination-finish,.wpr-pagination-loading{display:none}.wpr-grid-pagination-center .wpr-grid-pagination,.wpr-grid-pagination-justify .wpr-grid-pagination{text-align:center}.wpr-grid-pagination-left .wpr-grid-pagination{text-align:left}.wpr-grid-pagination-right .wpr-grid-pagination{text-align:right}.wpr-grid-pagination-infinite-scroll{text-align:center}.wpr-grid-pagination-justify .wpr-grid-pagi-left-arrows,.wpr-grid-pagination-justify .wpr-grid-pagination-default .wpr-prev-post-link{float:left}.wpr-grid-pagination-justify .wpr-grid-pagi-right-arrows,.wpr-grid-pagination-justify .wpr-grid-pagination-default .wpr-next-post-link{float:right}.wpr-grid-pagi-left-arrows,.wpr-grid-pagi-right-arrows,.wpr-grid-pagination>div>a,.wpr-grid-pagination>div>span{display:inline-block}.wpr-grid-pagi-right-arrows a:last-child,.wpr-grid-pagi-right-arrows span:last-child,.wpr-load-more-btn{margin-right:0!important}@media screen and (max-width:767px){.wpr-grid-pagination a,.wpr-grid-pagination span{margin-bottom:10px}.wpr-grid-pagination a>span,.wpr-grid-pagination span>span{display:none}.wpr-grid-pagination a i,.wpr-grid-pagination span i{padding:0!important}}.elementor-editor-active .wpr-grid-pagination-infinite-scroll{display:none}.wpr-grid-slider-nav-position-default .wpr-grid-slider-arrow-container{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-grid-slider-nav-position-default .wpr-grid-slider-arrow{position:static}.wpr-grid-slider-nav-position-default .wpr-grid-slider-prev-arrow{-ms-transform:none;transform:none;-webkit-transform:none}.wpr-grid-slider-nav-position-default .wpr-grid-slider-next-arrow{-ms-transform:translateY(0) rotate(180deg);transform:translateY(0) rotate(180deg);-webkit-transform:translateY(0) rotate(180deg)}.wpr-grid-slider-nav-align-bottom-center .wpr-grid-slider-arrow-container,.wpr-grid-slider-nav-align-top-center .wpr-grid-slider-arrow-container{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-grid-slider-arrow{position:absolute;z-index:120;top:50%;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;text-align:center;cursor:pointer}.wpr-grid-slider-arrow i{display:block;width:100%;height:100%}.wpr-grid-slider-prev-arrow{left:1%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-grid-slider-next-arrow{right:1%;-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.wpr-grid-slider-nav-fade .wpr-grid-slider-arrow-container{opacity:0;visibility:hidden}.wpr-grid-slider-nav-fade:hover .wpr-grid-slider-arrow-container{opacity:1;visibility:visible}.wpr-grid-slider-dots{display:inline-table;position:absolute;z-index:110;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wpr-grid-slider-dots ul{list-style:none;margin:0;padding:0}.wpr-grid-slider-dots-horizontal .wpr-grid-slider-dots li,.wpr-grid-slider-dots-pro-vr .slick-dots li{float:left}.wpr-grid.slick-dotted.slick-slider{margin-bottom:0!important}.wpr-grid-slider-dots-vertical .slick-dots li{display:block;width:auto!important;height:auto!important;margin:0!important}.wpr-grid-slider-dots-horizontal .slick-dots li,.wpr-grid-slider-dots-pro-vr .slick-dots li{width:auto!important;padding-top:10px;margin:0!important}.wpr-grid-slider-dots-horizontal .slick-dots li:last-child span{margin-right:0!important}.wpr-grid-slider-dot{display:block;cursor:pointer}.wpr-grid-slider-dots li:last-child .wpr-grid-slider-dot{margin:0!important}.wpr-grid-item-protected{position:absolute;top:0;left:0;z-index:11!important;width:100%;height:100%}.wpr-grid-item-protected i{font-size:22px}.wpr-grid-item-protected input{width:50%;border:none;margin-top:10px;padding:7px 13px;font-size:13px}.elementor-widget-wpr-grid .wpr-grid-media-hover-bg,.elementor-widget-wpr-media-grid .wpr-grid-media-hover-bg,.elementor-widget-wpr-woo-grid .wpr-grid-media-hover-bg{background-color:rgba(0,0,0,.25)}.elementor-widget-wpr-magazine-grid .wpr-grid-media-hover-bg{background-image:-o-linear-gradient(top,rgba(255,255,255,0) 46%,rgba(96,91,229,.87) 100%);background-image:-webkit-gradient(linear,left top,left bottom,color-stop(46%,rgba(255,255,255,0)),to(rgba(96,91,229,.87)));background-image:linear-gradient(180deg,rgba(255,255,255,0) 46%,rgba(96,91,229,.87) 100%)}.elementor-widget-wpr-grid .wpr-grid-item-title,.elementor-widget-wpr-woo-grid .wpr-grid-item-title{font-size:21px;font-weight:700;line-height:23px}.elementor-widget-wpr-magazine-grid .wpr-grid-item-title{font-size:22px}.elementor-widget-wpr-media-grid .wpr-grid-item-title{font-size:15px;font-weight:500}.elementor-widget-wpr-grid .wpr-grid-cf-style-1,.elementor-widget-wpr-grid .wpr-grid-filters li,.elementor-widget-wpr-grid .wpr-grid-item-author,.elementor-widget-wpr-grid .wpr-grid-item-content,.elementor-widget-wpr-grid .wpr-grid-item-excerpt,.elementor-widget-wpr-grid .wpr-grid-item-likes,.elementor-widget-wpr-grid .wpr-grid-item-protected p,.elementor-widget-wpr-grid .wpr-grid-item-read-more a,.elementor-widget-wpr-grid .wpr-grid-item-sharing,.elementor-widget-wpr-grid .wpr-grid-item-time,.elementor-widget-wpr-grid .wpr-grid-pagination,.elementor-widget-wpr-grid .wpr-grid-tax-style-1,.elementor-widget-wpr-magazine-grid .wpr-grid-item-content,.elementor-widget-wpr-magazine-grid .wpr-grid-item-excerpt,.elementor-widget-wpr-media-grid .wpr-grid-filters li,.elementor-widget-wpr-media-grid .wpr-grid-item-sharing,.elementor-widget-wpr-woo-grid .wpr-grid-item-add-to-cart a,.elementor-widget-wpr-woo-grid .wpr-grid-item-content,.elementor-widget-wpr-woo-grid .wpr-grid-item-lightbox,.elementor-widget-wpr-woo-grid .wpr-grid-item-likes,.elementor-widget-wpr-woo-grid .wpr-grid-item-price .inner-block>span,.elementor-widget-wpr-woo-grid .wpr-grid-item-sharing,.elementor-widget-wpr-woo-grid .wpr-grid-item-status .inner-block>span,.elementor-widget-wpr-woo-grid .wpr-grid-pagination,.elementor-widget-wpr-woo-grid .wpr-grid-product-categories,.elementor-widget-wpr-woo-grid .wpr-grid-product-tags,.elementor-widget-wpr-woo-grid .wpr-woo-rating span{font-size:14px}.elementor-widget-wpr-magazine-grid .wpr-grid-tax-style-1{font-size:12px;list-style-position:.5px}.elementor-widget-wpr-magazine-grid .wpr-grid-item-author,.elementor-widget-wpr-magazine-grid .wpr-grid-item-date,.elementor-widget-wpr-magazine-grid .wpr-grid-item-time{font-size:12px;list-style-position:.3px}.elementor-widget-wpr-grid .wpr-grid-item-comments,.elementor-widget-wpr-grid .wpr-grid-item-date,.elementor-widget-wpr-grid .wpr-grid-tax-style-2,.elementor-widget-wpr-media-grid .wpr-grid-item-author,.elementor-widget-wpr-media-grid .wpr-grid-item-caption,.elementor-widget-wpr-media-grid .wpr-grid-item-date,.elementor-widget-wpr-media-grid .wpr-grid-item-likes,.elementor-widget-wpr-media-grid .wpr-grid-item-time,.elementor-widget-wpr-media-grid .wpr-grid-tax-style-1,.elementor-widget-wpr-media-grid .wpr-grid-tax-style-2,.elementor-widget-wpr-media-magazine-grid .wpr-grid-tax-style-2{font-size:14px}.elementor-widget-wpr-grid .wpr-grid-item-lightbox,.elementor-widget-wpr-media-grid .wpr-grid-item-lightbox{font-size:18px}.elementor-widget-wpr-grid .wpr-grid-cf-style-2,.elementor-widget-wpr-media-grid .wpr-grid-pagination{font-size:15px}.elementor-widget-wpr-grid .wpr-grid-tax-style-2 .inner-block a{background-color:#605be5}.elementor-widget-wpr-grid .wpr-grid-tax-style-2 .inner-block a:hover{background-color:#4a45d2}.wpr-magazine-grid{display:-ms-grid;display:grid;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;-ms-grid-rows:1fr 1fr;grid-template-rows:1fr 1fr}.wpr-mgzn-grid-item{text-align:center}.wpr-mgzn-grid-1vh-3h{-ms-grid-rows:auto;grid-template-rows:auto}.wpr-mgzn-grid-1-1-1{-ms-grid-rows:1fr;grid-template-rows:1fr}.wpr-mgzn-grid-1-1-3,.wpr-mgzn-grid-2-3{-ms-grid-columns:(1fr)[6];grid-template-columns:repeat(6,1fr)}.wpr-mgzn-grid-2-h{-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr)}.wpr-mgzn-grid-3-h{-ms-grid-columns:(1fr)[3];grid-template-columns:repeat(3,1fr)}.wpr-mgzn-grid-4-h{-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr)}.wpr-mgzn-grid-1vh-3h .wpr-mgzn-grid-item:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:3;grid-row-end:4}.wpr-mgzn-grid-1vh-3h .wpr-mgzn-grid-item:nth-child(2){-ms-grid-column:2;grid-column-start:2}.wpr-mgzn-grid-1vh-3h .wpr-mgzn-grid-item:nth-child(3){-ms-grid-column:2;grid-column-start:2}.wpr-mgzn-grid-1vh-3h .wpr-mgzn-grid-item:nth-child(4){-ms-grid-column:2;grid-column-start:2}.wpr-mgzn-grid-1-1-2 .wpr-mgzn-grid-item:nth-child(1),.wpr-mgzn-grid-1-2 .wpr-mgzn-grid-item:nth-child(1),.wpr-mgzn-grid-1-3 .wpr-mgzn-grid-item:nth-child(1),.wpr-mgzn-grid-1-4 .wpr-mgzn-grid-item:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:2;grid-row-end:3}.wpr-mgzn-grid-1-1-2 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:2;grid-row-end:3}.wpr-mgzn-grid-2-1-2 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-column:2;grid-column-start:2;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:2;grid-row-end:3}.wpr-mgzn-grid-1-3 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:2;grid-column-end:4}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(1),.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(2),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(1),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:1;grid-row-end:2}.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:3;grid-column-end:4}.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-column:4;grid-column-start:4;-ms-grid-column-span:3;grid-column-end:7}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:4;grid-column-end:5}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-column:5;grid-column-start:5;-ms-grid-column-span:2;grid-column-end:7}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(3),.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(4),.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(5),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(3),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(4),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(5){-ms-grid-row:2;grid-row-start:2;-ms-grid-row-span:1;grid-row-end:3}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(3),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(3){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(4),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(4){-ms-grid-column:3;grid-column-start:3;-ms-grid-column-span:2;grid-column-end:5}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(5),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(5){-ms-grid-column:5;grid-column-start:5;-ms-grid-column-span:2;grid-column-end:7}.wpr-magazine-grid .wpr-grid-image-wrap,.wpr-magazine-grid .wpr-grid-item-inner,.wpr-magazine-grid .wpr-grid-media-wrap{height:100%}.wpr-magazine-grid .wpr-grid-image-wrap{background-size:cover;background-position:center center}.wpr-magazine-grid .wpr-grid-media-hover{z-index:1}@media screen and (max-width:1024px){.wpr-magazine-grid.wpr-mgzn-grid-1-2{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-2 article:nth-child(1){-ms-grid-column-span:3!important;grid-column-end:3!important}.wpr-magazine-grid.wpr-mgzn-grid-1-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:1fr 1fr 1fr!important;grid-template-rows:1fr 1fr 1fr!important}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-3 article:nth-child(1){-ms-grid-column-span:3!important;grid-column-end:3!important;-ms-grid-row-span:2!important;grid-row-end:2!important}.wpr-magazine-grid.wpr-mgzn-grid-1-3 article:nth-child(2){-ms-grid-column:1!important;grid-column-start:1!important;-ms-grid-column-span:2!important;grid-column-end:3!important}.wpr-magazine-grid.wpr-mgzn-grid-1-4{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[3];grid-template-rows:repeat(3,1fr)}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-4 article:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3;-ms-grid-row-span:1!important;grid-row-end:1!important}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:1fr 1fr 1fr!important;grid-template-rows:1fr 1fr 1fr!important}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2 article:nth-child(1){-ms-grid-column-span:3;grid-column-end:3;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:1;grid-row-end:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2 article:nth-child(2){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3;-ms-grid-row:2;grid-row-start:2;-ms-grid-row-span:1;grid-row-end:3}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:1fr 1fr 1fr!important;grid-template-rows:1fr 1fr 1fr!important}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2 article:nth-child(2){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3;-ms-grid-row:2;grid-row-start:2}.wpr-magazine-grid.wpr-mgzn-grid-1vh-3h{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:1fr 1fr!important;grid-template-rows:1fr 1fr!important}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1 article:nth-child(2){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3;-ms-grid-row:1;grid-row-start:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[3];grid-template-rows:repeat(3,1fr)}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3 article:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3;-ms-grid-row-span:2;grid-row-end:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3 article:nth-child(2){-ms-grid-row:2;grid-row-start:2;-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3 article:nth-child(3){-ms-grid-row:2;grid-row-start:2;-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3 article:nth-child(4){-ms-grid-row:3;grid-row-start:3;-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3 article:nth-child(5){-ms-grid-row:3;grid-row-start:3;-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3}.wpr-magazine-grid.wpr-mgzn-grid-2-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[6]!important;grid-template-rows:repeat(6,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(7){-ms-grid-row:4;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(8){-ms-grid-row:4;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(9){-ms-grid-row:5;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(10){-ms-grid-row:5;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(11){-ms-grid-row:6;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(12){-ms-grid-row:6;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3 article:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:3;grid-row-end:4}.wpr-magazine-grid.wpr-mgzn-grid-2-3 article:nth-child(2){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2;-ms-grid-row:4;grid-row-start:4;-ms-grid-row-span:3;grid-row-end:7}.wpr-magazine-grid.wpr-mgzn-grid-2-3 article:nth-child(3){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:2;grid-row-end:3}.wpr-magazine-grid.wpr-mgzn-grid-2-3 article:nth-child(4){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-row:3;grid-row-start:3;-ms-grid-row-span:2;grid-row-end:5}.wpr-magazine-grid.wpr-mgzn-grid-2-3 article:nth-child(5){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-row:5;grid-row-start:5;-ms-grid-row-span:2;grid-row-end:7}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-1{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[2]!important;grid-template-rows:repeat(2,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-1>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-1>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-1>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-1>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[4]!important;grid-template-rows:repeat(4,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(7){-ms-grid-row:4;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(8){-ms-grid-row:4;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[6]!important;grid-template-rows:repeat(6,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(7){-ms-grid-row:4;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(8){-ms-grid-row:4;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(9){-ms-grid-row:5;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(10){-ms-grid-row:5;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(11){-ms-grid-row:6;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(12){-ms-grid-row:6;-ms-grid-column:2}}@media screen and (max-width:767px){.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-1{-ms-grid-columns:1fr!important;grid-template-columns:1fr!important;-ms-grid-rows:(1fr)[3]!important;grid-template-rows:repeat(3,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-1>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-1>:nth-child(2){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-1>:nth-child(3){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2{-ms-grid-columns:1fr!important;grid-template-columns:1fr!important;-ms-grid-rows:(1fr)[6]!important;grid-template-rows:repeat(6,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(2){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(3){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(4){-ms-grid-row:4;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(5){-ms-grid-row:5;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(6){-ms-grid-row:6;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3{-ms-grid-columns:1fr!important;grid-template-columns:1fr!important;-ms-grid-rows:(1fr)[9]!important;grid-template-rows:repeat(9,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(2){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(3){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(4){-ms-grid-row:4;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(5){-ms-grid-row:5;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(6){-ms-grid-row:6;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(7){-ms-grid-row:7;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(8){-ms-grid-row:8;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(9){-ms-grid-row:9;-ms-grid-column:1}}.wpr-sharing-buttons .wpr-sharing-icon{overflow:hidden;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;color:#fff!important}.wpr-sharing-buttons .wpr-sharing-icon i{display:block;text-align:center}.wpr-sharing-label{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.elementor-widget-wpr-sharing-buttons.elementor-grid-0 .wpr-sharing-buttons,.elementor-widget-wpr-sharing-buttons[class*=elementor-grid-pro-] .wpr-sharing-buttons{display:-webkit-box;display:-ms-flexbox;display:flex}.elementor-widget-wpr-sharing-buttons:not(.elementor-grid-0):not(.elementor-grid-pro-3):not(.elementor-grid-pro-4):not(.elementor-grid-pro-5):not(.elementor-grid-pro-6) .wpr-sharing-label-off .wpr-sharing-icon i{width:100%!important}.wpr-sharing-buttons.wpr-sharing-col-1 .wpr-sharing-icon{width:100%;margin-right:0!important}.wpr-sharing-buttons .wpr-sharing-icon:last-child,.wpr-sharing-col-1 .wpr-sharing-buttons .wpr-sharing-icon,.wpr-sharing-col-2 .wpr-sharing-buttons .wpr-sharing-icon:nth-child(2n),.wpr-sharing-col-3 .wpr-sharing-buttons .wpr-sharing-icon:nth-child(3n),.wpr-sharing-col-4 .wpr-sharing-buttons .wpr-sharing-icon:nth-child(4n),.wpr-sharing-col-5 .wpr-sharing-buttons .wpr-sharing-icon:nth-child(5n),.wpr-sharing-col-6 .wpr-sharing-buttons .wpr-sharing-icon:nth-child(6n){margin-right:0!important}.wpr-sharing-buttons .wpr-sharing-icon{transition-propery:opacity,border-color;-webkit-transition-timing-function:linear;-o-transition-timing-function:linear;transition-timing-function:linear}.wpr-sharing-buttons .wpr-sharing-icon i,.wpr-sharing-buttons .wpr-sharing-icon span{transition-propery:color,background-color;-webkit-transition-timing-function:linear;-o-transition-timing-function:linear;transition-timing-function:linear}.wpr-sharing-official .wpr-sharing-icon:hover{opacity:.85}.wpr-sharing-official .wpr-sharing-facebook-f i,.wpr-sharing-official .wpr-sharing-facebook-f span{background-color:#3b5998}.wpr-sharing-official .wpr-sharing-twitter i,.wpr-sharing-official .wpr-sharing-twitter span{background-color:#1da1f2}.wpr-sharing-official .wpr-sharing-linkedin-in i,.wpr-sharing-official .wpr-sharing-linkedin-in span{background-color:#0077b5}.wpr-sharing-official .wpr-sharing-pinterest-p i,.wpr-sharing-official .wpr-sharing-pinterest-p span{background-color:#bd081c}.wpr-sharing-official .wpr-sharing-reddit i,.wpr-sharing-official .wpr-sharing-reddit span{background-color:#ff4500}.wpr-sharing-official .wpr-sharing-tumblr i,.wpr-sharing-official .wpr-sharing-tumblr span{background-color:#35465c}.wpr-sharing-official .wpr-sharing-digg i,.wpr-sharing-official .wpr-sharing-digg span{background-color:#005be2}.wpr-sharing-official .wpr-sharing-xing i,.wpr-sharing-official .wpr-sharing-xing span{background-color:#026466}.wpr-sharing-official .wpr-sharing-stumbleupon i,.wpr-sharing-official .wpr-sharing-stumbleupon span{background-color:#eb4924}.wpr-sharing-official .wpr-sharing-vk i,.wpr-sharing-official .wpr-sharing-vk span{background-color:#45668e}.wpr-sharing-official .wpr-sharing-odnoklassniki i,.wpr-sharing-official .wpr-sharing-odnoklassniki span{background-color:#f4731c}.wpr-sharing-official .wpr-sharing-get-pocket i,.wpr-sharing-official .wpr-sharing-get-pocket span{background-color:#ef3f56}.wpr-sharing-official .wpr-sharing-skype i,.wpr-sharing-official .wpr-sharing-skype span{background-color:#00aff0}.wpr-sharing-official .wpr-sharing-whatsapp i,.wpr-sharing-official .wpr-sharing-whatsapp span{background-color:#25d366}.wpr-sharing-official .wpr-sharing-telegram i,.wpr-sharing-official .wpr-sharing-telegram span{background-color:#2ca5e0}.wpr-sharing-official .wpr-sharing-delicious i,.wpr-sharing-official .wpr-sharing-delicious span{background-color:#39f}.wpr-sharing-official .wpr-sharing-envelope i,.wpr-sharing-official .wpr-sharing-envelope span{background-color:#c13b2c}.wpr-sharing-official .wpr-sharing-print i,.wpr-sharing-official .wpr-sharing-print span{background-color:#96c859}.wpr-sharing-official .wpr-sharing-facebook-f{border-color:#3b5998}.wpr-sharing-official .wpr-sharing-twitter{border-color:#1da1f2}.wpr-sharing-official .wpr-sharing-linkedin-in{border-color:#0077b5}.wpr-sharing-official .wpr-sharing-pinterest-p{border-color:#bd081c}.wpr-sharing-official .wpr-sharing-reddit{border-color:#ff4500}.wpr-sharing-official .wpr-sharing-tumblr{border-color:#35465c}.wpr-sharing-official .wpr-sharing-digg{border-color:#005be2}.wpr-sharing-official .wpr-sharing-xing{border-color:#026466}.wpr-sharing-official .wpr-sharing-stumbleupon{border-color:#eb4924}.wpr-sharing-official .wpr-sharing-vk{border-color:#45668e}.wpr-sharing-official .wpr-sharing-odnoklassniki{border-color:#f4731c}.wpr-sharing-official .wpr-sharing-get-pocket{border-color:#ef3f56}.wpr-sharing-official .wpr-sharing-skype{border-color:#00aff0}.wpr-sharing-official .wpr-sharing-whatsapp{border-color:#25d366}.wpr-sharing-official .wpr-sharing-telegram{border-color:#2ca5e0}.wpr-sharing-official .wpr-sharing-delicious{border-color:#39f}.wpr-sharing-official .wpr-sharing-envelope{border-color:#c13b2c}.wpr-sharing-official .wpr-sharing-print{border-color:#96c859}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-facebook-f i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-facebook-f span{color:#3b5998;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-twitter i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-twitter span{color:#1da1f2;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-linkedin-in i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-linkedin-in span{color:#0077b5;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-pinterest-p i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-pinterest-p span{color:#bd081c;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-reddit i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-reddit span{color:#ff4500;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-tumblr i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-tumblr span{color:#35465c;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-digg i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-digg span{color:#005be2;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-xing i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-xing span{color:#026466;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-stumbleupon i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-stumbleupon span{color:#eb4924;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-vk i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-vk span{color:#45668e;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-odnoklassniki i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-odnoklassniki span{color:#f4731c;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-get-pocket i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-get-pocket span{color:#ef3f56;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-skype i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-skype span{color:#00aff0;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-whatsapp i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-whatsapp span{color:#25d366;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-telegram i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-telegram span{color:#2ca5e0;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-delicious i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-delicious span{color:#39f;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-envelope i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-envelope span{color:#c13b2c;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-print i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-print span{color:#96c859;background-color:transparent}.wpr-countdown-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin:0 auto}.wpr-countdown-item{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;overflow:hidden;color:#fff;text-align:center}.wpr-countdown-item:first-child{margin-left:0!important}.wpr-countdown-item:last-of-type{margin-right:0!important}.wpr-countdown-number{display:block}.wpr-countdown-separator{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.wpr-countdown-separator span{display:block}.wpr-countdown-separator:last-of-type{display:none!important}.wpr-countdown-wrap+div:not(.wpr-countdown-message){display:none}.wpr-countdown-message+div{display:none}.elementor-widget-wpr-countdown .wpr-countdown-item{background-color:#605be5}.elementor-widget-wpr-countdown .wpr-countdown-number{font-size:70px}.elementor-widget-wpr-countdown .wpr-countdown-label{font-size:19px;line-height:45px}.wpr-google-map .gm-style-iw-c{padding:0!important}.wpr-google-map .gm-style-iw-c>button{top:0!important;right:0!important}.wpr-google-map .gm-style-iw-c .wpr-gm-iwindow h3{margin-bottom:7px}.wpr-google-map .gm-style-iw-d{overflow:hidden!important}.wpr-google-map .gm-style img{max-width:none!important}.wpr-forms-container .wpcf7-form .wpcf7-form-control-wrap{display:block!important}.wpcf7 label,.wpcf7-quiz-label{width:100%}.wpr-forms-container .wpcf7 p{margin-bottom:0}.wpr-forms-container .wpcf7-form .ajax-loader{display:block;visibility:hidden;height:0;overflow:hidden;clear:both}.wpr-forms-container .caldera-grid select.form-control,.wpr-forms-container .nf-field-container select,.wpr-forms-container .wpcf7-date,.wpr-forms-container .wpcf7-number,.wpr-forms-container .wpcf7-select,.wpr-forms-container select.wpforms-field-medium{padding:7px 10px!important}.wpr-forms-container .wpcf7-date{width:auto!important}.wpr-forms-container .wpcf7-number{width:100px!important}.wpr-forms-container .wpcf7-form .wpcf7-submit{display:block}.wpr-forms-container .wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item,.wpr-forms-container .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item,.wpr-forms-container .wpcf7-form-control.wpcf7-radio .wpcf7-list-item{margin-left:0;margin-right:10px}.wpr-forms-container .wpcf7-response-output{clear:both;margin:0}.wpr-forms-container .wpforms-field:not(.wpforms-field-address) .wpforms-field-medium{display:inline-block!important;max-width:100%!important}.wpr-forms-container .wpforms-field-address,.wpr-forms-container .wpforms-field-phone,.wpr-forms-container .wpforms-page-indicator{display:inline-block}.wpr-forms-container .wpforms-field-address .wpforms-field-medium{max-width:100%!important}.wpr-forms-container .intl-tel-input.allow-dropdown input.wpforms-field-medium,.wpr-forms-container .wpforms-field-address div.wpforms-field-medium{width:100%!important;max-width:100%!important}.wpr-forms-container .intl-tel-input.allow-dropdown{display:inline-block!important;max-width:100%!important}.wpr-forms-align-left .wpr-forms-container div.wpforms-container-full .wpforms-form .wpforms-list-inline ul li:last-child{margin-right:0!important}.wpr-forms-container .caldera-grid .alert-success,.wpr-forms-container .nf-response-msg,.wpr-forms-container .wpcf7-mail-sent-ok,.wpr-forms-container .wpforms-confirmation-container-full{padding:10px 15px;border:2px solid}.wpr-forms-container label.wpforms-error a{text-decoration:underline}.wpr-forms-container .wpforms-smart-phone-field{text-indent:0!important}.wpr-forms-container select.ninja-forms-field{line-height:1!important}.wpr-forms-container .nf-form-wrap .checkbox-wrap label{display:inline-block!important}.wpr-forms-container .nf-form-wrap .starrating .stars{display:inline-block}.wpr-forms-submit-center .caldera-grid .btn-default:not(a),.wpr-forms-submit-center .submit-wrap .ninja-forms-field,.wpr-forms-submit-center .wpcf7-submit,.wpr-forms-submit-center .wpforms-page-next,.wpr-forms-submit-center .wpforms-page-previous,.wpr-forms-submit-center .wpforms-submit{display:block!important;margin-left:auto!important;margin-right:auto!important}.wpr-forms-submit-left .caldera-grid .btn-default:not(a),.wpr-forms-submit-left .submit-wrap .ninja-forms-field,.wpr-forms-submit-left .wpcf7-submit,.wpr-forms-submit-left .wpforms-page-next,.wpr-forms-submit-left .wpforms-page-previous,.wpr-forms-submit-left .wpforms-submit{float:left!important}.wpr-forms-submit-left .caldera-grid .btn-default:not(a),.wpr-forms-submit-right .submit-wrap .ninja-forms-field,.wpr-forms-submit-right .wpcf7-submit,.wpr-forms-submit-right .wpforms-page-next,.wpr-forms-submit-right .wpforms-page-previous,.wpr-forms-submit-right .wpforms-submit{float:right!important}.wpr-forms-submit-justify .caldera-grid .btn-default:not(a),.wpr-forms-submit-justify .submit-wrap .ninja-forms-field,.wpr-forms-submit-justify .wpcf7-submit,.wpr-forms-submit-justify .wpforms-page-next,.wpr-forms-submit-justify .wpforms-page-previous,.wpr-forms-submit-justify .wpforms-submit{display:block!important;width:100%!important;text-align:center!important}.wpr-custom-chk-radio .wpcf7-acceptance input,.wpr-custom-chk-radio .wpcf7-checkbox input,.wpr-custom-chk-radio .wpcf7-radio input,.wpr-custom-chk-radio .wpforms-field-checkbox input,.wpr-custom-chk-radio .wpforms-field-gdpr-checkbox input,.wpr-custom-chk-radio .wpforms-field-radio input{display:none!important}.wpr-custom-chk-radio .wpcf7-acceptance .wpcf7-list-item-label,.wpr-custom-chk-radio .wpcf7-checkbox .wpcf7-list-item-label,.wpr-custom-chk-radio .wpcf7-radio .wpcf7-list-item-label,.wpr-custom-chk-radio .wpforms-field-checkbox input+label,.wpr-custom-chk-radio .wpforms-field-gdpr-checkbox input+label,.wpr-custom-chk-radio .wpforms-field-radio input+label,.wpr-custom-chk-radio .wpforms-field-radio input+span{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wpr-custom-chk-radio .wpcf7-acceptance .wpcf7-list-item-label:before,.wpr-custom-chk-radio .wpcf7-checkbox .wpcf7-list-item-label:before,.wpr-custom-chk-radio .wpcf7-radio .wpcf7-list-item-label:before,.wpr-custom-chk-radio .wpforms-field-checkbox input+label:before,.wpr-custom-chk-radio .wpforms-field-gdpr-checkbox input+label:before,.wpr-custom-chk-radio .wpforms-field-radio input+label:before,.wpr-custom-chk-radio .wpforms-field-radio input:not(.wpforms-screen-reader-element)+span:before{content:"\2714";display:inline-block;position:relative;top:-1px;text-align:center;border:1px solid;margin-right:5px;color:transparent}.wpr-forms-align-right .wpforms-field-checkbox ul li input:first-child,.wpr-forms-align-right .wpforms-field-gdpr-checkbox input:first-child,.wpr-forms-align-right .wpforms-field-radio ul li input:first-child,.wpr-forms-align-right .wpforms-image-choices label input:first-of-type{float:right;margin-right:0!important;margin-left:10px!important}.wpr-forms-align-right .wpr-forms-container,.wpr-forms-align-right .wpr-forms-container .wpcf7-form-control{direction:rtl}.wpr-forms-align-right .nf-form-wrap .field-wrap{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpr-forms-align-right .label-right .nf-field-description{margin-right:0!important}.wpr-forms-align-right .nf-error.field-wrap .nf-field-element:after{right:auto!important;left:1px!important}.wpr-forms-align-right .wpr-custom-chk-radio .wpcf7-acceptance .wpcf7-list-item-label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpcf7-checkbox .wpcf7-list-item-label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpcf7-radio .wpcf7-list-item-label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpforms-field-checkbox input+label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpforms-field-gdpr-checkbox input+label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpforms-field-radio input+label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpforms-field-radio input:not(.wpforms-screen-reader-element)+span:before{margin-right:0;margin-left:5px}.wpr-forms-align-right .wpcf7-acceptance .wpcf7-list-item,.wpr-forms-align-right .wpcf7-list-item.last,.wpr-forms-align-right div.wpforms-container-full .wpforms-form .wpforms-list-inline ul li:first-child{margin-right:0!important}.wpr-forms-align-right .wpr-forms-container .intl-tel-input .flag-container{left:auto!important;right:0!important}.wpr-forms-align-right .caldera-grid .col-sm-4,.wpr-forms-align-right .caldera-grid .col-sm-6{float:right}.wpr-forms-align-right .wpr-forms-container .caldera-grid .checkbox label,.wpr-forms-align-right .wpr-forms-container .caldera-grid .checkbox-inline label,.wpr-forms-align-right .wpr-forms-container .caldera-grid .radio label{padding-left:0!important;padding-right:20px}.wpr-forms-align-right .wpr-forms-container .caldera-grid .checkbox input,.wpr-forms-align-right .wpr-forms-container .caldera-grid .radio input{margin-right:-20px!important;margin-left:0!important}.wpr-forms-align-right .wpr-forms-container .caldera-grid .cf-credit-card{background-position:99% center!important}.wpr-forms-align-right .wpr-forms-container .caldera-grid .live-gravatar{text-align:right!important}.wpr-forms-align-left .wpr-forms-container .caldera-grid .live-gravatar{text-align:left!important}.wpr-forms-container .nf-form-content{padding:0;max-width:none}.wpr-forms-container .nf-form-content .label-above .field-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-forms-container .nf-form-content .label-above .nf-field-label{margin-top:0}.wpr-forms-container .field-wrap:not(.textarea-wrap):not(.submit-wrap) .ninja-forms-field{border-radius:0}.wpr-forms-container .field-wrap.textarea-wrap .ninja-forms-field{display:block}.wpr-forms-container .field-wrap.submit-wrap .ninja-forms-field{cursor:pointer}.wpr-forms-container .listselect-wrap>div select.ninja-forms-field{-webkit-appearance:menulist;-moz-appearance:menulist;appearance:menulist}.wpr-forms-container .nf-form-content .list-select-wrap .nf-field-element>div,.wpr-forms-container .nf-form-content input:not([type=button]),.wpr-forms-container .nf-form-content textarea{background:0 0;border:none}.wpr-forms-container .checkbox-container.label-right .field-wrap{display:block}.wpr-forms-container .listcheckbox-wrap ul li,.wpr-forms-container .listradio-wrap ul li{display:inline-block;margin-right:10px!important;margin-bottom:7px!important}.wpr-forms-container .listcheckbox-container .nf-field-element label:after{top:1px}.wpr-forms-container .listradio-wrap .nf-field-element label{margin-left:25px!important}.wpr-forms-container .listradio-wrap .nf-field-element label:after{top:0;left:-25px}.wpr-forms-container .listradio-wrap .nf-field-element label.nf-checked-label:before{top:4px;left:-21px}.wpr-forms-container .checkbox-wrap label,.wpr-forms-container .listcheckbox-wrap label,.wpr-forms-container .listradio-wrap label{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wpr-forms-container .nf-error.field-wrap .nf-field-element:after{top:0!important;bottom:0!important;height:auto!important}.wpr-forms-container .wpforms-form .wpforms-field,.wpr-forms-container .wpforms-submit-container{padding:0!important}.wpr-forms-container .wpforms-container,.wpr-forms-container .wpforms-field-address .wpforms-field-row:nth-last-child(2),.wpr-forms-container div.wpforms-container-full .wpforms-form .wpforms-field-row{margin-bottom:0!important}.wpr-forms-container .wpforms-submit-container:after{content:" ";clear:both;display:table}.wpr-forms-container .caldera-grid .help-block{margin-bottom:0}.wpr-forms-container .caldera-grid .caldera-forms-gdpr-field-label a{text-decoration:underline}.wpr-forms-container .caldera-grid .intl-tel-input input{text-indent:40px}.wpr-forms-container .caldera-grid input.cf-credit-card{text-indent:33px}.wpr-forms-container .caldera-grid .cf-credit-card{background-position:5px center!important}.wpr-forms-container .cf2-dropzone .form-control{height:auto}.wpr-forms-container .caldera-grid .form-group input,.wpr-forms-container .caldera-grid .form-group textarea{-webkit-box-shadow:none;box-shadow:none}.wpr-forms-container .caldera-grid .has-error .form-control{-webkit-box-shadow:none;box-shadow:none}.wpr-forms-container .caldera-grid .alert-success{text-shadow:none}.elementor-widget-wpr-forms .nf-form-title h3,.elementor-widget-wpr-forms .wpforms-head-container .wpforms-title{font-size:28px;font-weight:800}.elementor-widget-wpr-forms .nf-form-fields-required,.elementor-widget-wpr-forms .wpforms-head-container .wpforms-description{font-size:14px}.elementor-widget-wpr-forms .caldera-forms-summary-field ul li,.elementor-widget-wpr-forms .caldera-grid .caldera-forms-gdpr-field-label,.elementor-widget-wpr-forms .caldera-grid .checkbox label,.elementor-widget-wpr-forms .caldera-grid .control-label,.elementor-widget-wpr-forms .caldera-grid .radio label,.elementor-widget-wpr-forms .caldera-grid .total-line,.elementor-widget-wpr-forms .nf-field-container label,.elementor-widget-wpr-forms .wpcf7-form,.elementor-widget-wpr-forms .wpforms-captcha-equation,.elementor-widget-wpr-forms .wpforms-captcha-question,.elementor-widget-wpr-forms .wpforms-field-label,.elementor-widget-wpr-forms .wpforms-field-label-inline,.elementor-widget-wpr-forms .wpforms-image-choices-label,.elementor-widget-wpr-forms .wpforms-payment-total,.elementor-widget-wpr-forms .wpr-forms-container .nf-response-msg,.elementor-widget-wpr-forms .wpr-forms-container .wpforms-confirmation-container-full{font-size:14px}.elementor-widget-wpr-forms .caldera-grid .form-control[type=color_picker],.elementor-widget-wpr-forms .caldera-grid .form-control[type=credit_card_cvc],.elementor-widget-wpr-forms .caldera-grid .form-control[type=email],.elementor-widget-wpr-forms .caldera-grid .form-control[type=number],.elementor-widget-wpr-forms .caldera-grid .form-control[type=phone],.elementor-widget-wpr-forms .caldera-grid .form-control[type=tel],.elementor-widget-wpr-forms .caldera-grid .form-control[type=text],.elementor-widget-wpr-forms .caldera-grid .form-control[type=url],.elementor-widget-wpr-forms .caldera-grid select.form-control,.elementor-widget-wpr-forms .caldera-grid textarea.form-control,.elementor-widget-wpr-forms .ninja-forms-field,.elementor-widget-wpr-forms .wpcf7-date,.elementor-widget-wpr-forms .wpcf7-number,.elementor-widget-wpr-forms .wpcf7-quiz,.elementor-widget-wpr-forms .wpcf7-select,.elementor-widget-wpr-forms .wpcf7-text,.elementor-widget-wpr-forms .wpcf7-textarea,.elementor-widget-wpr-forms .wpforms-form input[type=date],.elementor-widget-wpr-forms .wpforms-form input[type=datetime-local],.elementor-widget-wpr-forms .wpforms-form input[type=datetime],.elementor-widget-wpr-forms .wpforms-form input[type=email],.elementor-widget-wpr-forms .wpforms-form input[type=month],.elementor-widget-wpr-forms .wpforms-form input[type=number],.elementor-widget-wpr-forms .wpforms-form input[type=password],.elementor-widget-wpr-forms .wpforms-form input[type=range],.elementor-widget-wpr-forms .wpforms-form input[type=search],.elementor-widget-wpr-forms .wpforms-form input[type=tel],.elementor-widget-wpr-forms .wpforms-form input[type=text],.elementor-widget-wpr-forms .wpforms-form input[type=time],.elementor-widget-wpr-forms .wpforms-form input[type=url],.elementor-widget-wpr-forms .wpforms-form input[type=week],.elementor-widget-wpr-forms .wpforms-form select,.elementor-widget-wpr-forms .wpforms-form textarea{font-size:13px;letter-spacing:.2px}.elementor-widget-wpr-forms .caldera-grid .btn-default,.elementor-widget-wpr-forms .caldera-grid .cf2-dropzone button,.elementor-widget-wpr-forms .submit-wrap .ninja-forms-field,.elementor-widget-wpr-forms .wpcf7-submit,.elementor-widget-wpr-forms .wpforms-page-next,.elementor-widget-wpr-forms .wpforms-page-previous,.elementor-widget-wpr-forms .wpforms-submit{background-color:#605be5}.elementor-widget-wpr-forms .caldera-grid .btn-default:hover,.elementor-widget-wpr-forms .caldera-grid .btn-success,.elementor-widget-wpr-forms .caldera-grid .cf2-dropzone button:hover,.elementor-widget-wpr-forms .submit-wrap .ninja-forms-field:hover,.elementor-widget-wpr-forms .wpcf7-submit:hover,.elementor-widget-wpr-forms .wpforms-page-next:hover,.elementor-widget-wpr-forms .wpforms-page-previous:hover,.elementor-widget-wpr-forms .wpforms-submit:hover{background-color:#4a45d2}.elementor-widget-wpr-forms .wpr-forms-container .caldera_ajax_error_block,.elementor-widget-wpr-forms .wpr-forms-container .nf-error-msg,.elementor-widget-wpr-forms .wpr-forms-container .wpcf7-not-valid-tip,.elementor-widget-wpr-forms .wpr-forms-container .wpcf7-response-output,.elementor-widget-wpr-forms .wpr-forms-container label.wpforms-error{font-size:14px}.elementor-widget-wpr-forms .caldera-forms-summary-field ul li,.elementor-widget-wpr-forms .caldera-grid .caldera-forms-gdpr-field-label,.elementor-widget-wpr-forms .caldera-grid .checkbox label,.elementor-widget-wpr-forms .caldera-grid .control-label,.elementor-widget-wpr-forms .caldera-grid .radio label,.elementor-widget-wpr-forms .caldera-grid .total-line,.elementor-widget-wpr-forms .nf-field-container label,.elementor-widget-wpr-forms .wpcf7-form,.elementor-widget-wpr-forms .wpforms-captcha-equation,.elementor-widget-wpr-forms .wpforms-captcha-question,.elementor-widget-wpr-forms .wpforms-field-label,.elementor-widget-wpr-forms .wpforms-field-label-inline,.elementor-widget-wpr-forms .wpforms-image-choices-label,.elementor-widget-wpr-forms .wpforms-payment-total,.elementor-widget-wpr-forms .wpr-forms-container .nf-response-msg,.elementor-widget-wpr-forms .wpr-forms-container .wpforms-confirmation-container-full{font-weight:400}.elementor-widget-wpr-forms.caldera-grid .help-block,.elementor-widget-wpr-forms.nf-field-description,.elementor-widget-wpr-forms.wpforms-field-description,.elementor-widget-wpr-forms.wpforms-field-sublabel{font-size:14px}.wpr-ba-image-container{position:relative;overflow:hidden}.wpr-ba-image-container *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wpr-ba-image-1 img,.wpr-ba-image-2 img{max-width:100%;width:100%}.wpr-ba-image-2{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.wpr-ba-image-2 img{position:absolute;top:0}.wpr-ba-divider{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:0;left:50%;z-index:3;height:100%;cursor:pointer;-ms-touch-action:none;touch-action:none}.wpr-ba-divider-icons{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-ba-vertical .wpr-ba-divider-icons{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-ba-horizontal .wpr-ba-divider-icons i:first-child{text-align:right;padding-right:10%}.wpr-ba-horizontal .wpr-ba-divider-icons i:last-child{text-align:left;padding-left:10%}.wpr-ba-divider-icons .fa{text-align:center}.wpr-ba-vertical .wpr-ba-divider{top:50%;left:auto;width:100%;height:auto}.wpr-ba-vertical .wpr-ba-image-2 img{top:auto}.wpr-ba-horizontal .wpr-ba-divider-icons:after,.wpr-ba-horizontal .wpr-ba-divider-icons:before{content:'';display:block;position:absolute;height:100%}.wpr-ba-vertical .wpr-ba-divider-icons:after,.wpr-ba-vertical .wpr-ba-divider-icons:before{content:'';display:block;position:absolute;width:100%}.wpr-ba-label{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;padding:15px}.wpr-ba-labels-none .wpr-ba-label{display:none}.wpr-ba-labels-hover .wpr-ba-label{opacity:0;-webkit-transition:.1s ease-in;-o-transition:.1s ease-in;transition:.1s ease-in}.wpr-ba-labels-hover:hover .wpr-ba-label{opacity:1}.wpr-ba-horizontal .wpr-ba-label{top:0;height:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-ba-horizontal .wpr-ba-label-1{left:0}.wpr-ba-horizontal .wpr-ba-label-2{right:0}.wpr-ba-vertical .wpr-ba-label{left:0;width:100%}.wpr-ba-vertical .wpr-ba-label-1{top:0}.wpr-ba-vertical .wpr-ba-label-2{bottom:0}.elementor-widget-wpr-before-after .wpr-ba-label>div{background-color:#605be5;font-size:14px}body:not(.elementor-editor-active) .wpr-template-popup{display:none}.wpr-template-popup{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99999999}.wpr-template-popup-inner{display:-webkit-box;display:-ms-flexbox;display:flex;position:fixed;top:0;left:0;width:100%;height:100%}.wpr-popup-container{display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden;position:relative}.wpr-popup-container>div{width:100%}.wpr-popup-image-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#fff}.wpr-popup-overlay{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;background:rgba(0,0,0,.7)}.wpr-popup-close-btn{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:0;right:0;z-index:99;width:auto!important;cursor:pointer}.wpr-popup-notification .wpr-template-popup-inner,.wpr-popup-notification.wpr-template-popup{height:auto!important}.wpr-popup-notification .wpr-popup-overlay{display:none!important}.wpr-popup-container.ps-container.ps-active-x>.ps-scrollbar-x-rail,.wpr-popup-container.ps-container.ps-active-y>.ps-scrollbar-y-rail{display:block;background-color:transparent}.wpr-popup-container.ps-container>.ps-scrollbar-y-rail{display:none;position:absolute;right:3px;width:3px}.wpr-popup-container.ps-container>.ps-scrollbar-y-rail>.ps-scrollbar-y{position:absolute;cursor:pointer;right:0;width:3px}.wpr-popup-notification .wpr-popup-container .slideInDown{-webkit-animation-timing-function:linear;animation-timing-function:linear}.wpr-popup-notification .wpr-popup-container{width:100%!important;-webkit-box-align:start!important;-ms-flex-align:start!important;align-items:flex-start!important}.wpr-popup-trigger-button{display:inline-block;font-size:14px;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;cursor:pointer}.wpr-popup-container .elementor-editor-section-settings{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);border-radius:0 0 5px 5px}.wpr-popup-container .elementor-editor-section-settings .elementor-editor-element-setting:first-child{border-radius:0 0 0 5px}.wpr-popup-container .elementor-editor-section-settings .elementor-editor-element-setting:first-child:before{top:0;border-width:0 12px 22px 0}.wpr-popup-container .elementor-editor-section-settings .elementor-editor-element-setting:last-child{border-radius:0 0 5px 0}.wpr-popup-container .elementor-editor-section-settings .elementor-editor-element-setting:last-child:after{top:0;border-width:0 0 22px 12px}.elementor-editor-active [data-elementor-type=wpr-popup] .elementor-section-wrap:not(:empty)+#elementor-add-new-section,.elementor-editor-active [data-elementor-type=wpr-popup]:not(.elementor-edit-mode){display:none}.wpr-template-edit-btn{position:absolute;top:0;right:40px;display:none;line-height:1;padding:8px 13px;cursor:pointer;background:#333;color:#fff;border:1px solid #000}.elementor-editor-active .wpr-template-edit-btn{display:inline-block;opacity:0;visibility:hidden}.elementor-editor-active .elementor-element-edit-mode:hover .wpr-template-edit-btn{opacity:1;visibility:visible}.wpr-mailchimp-fields{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-mailchimp-email input,.wpr-mailchimp-email label,.wpr-mailchimp-first-name input,.wpr-mailchimp-first-name label,.wpr-mailchimp-last-name input,.wpr-mailchimp-last-name label{display:block;width:100%}.wpr-mailchimp-layout-hr .wpr-mailchimp-fields{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.wpr-mailchimp-layout-vr .wpr-mailchimp-fields{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-mailchimp-layout-hr .wpr-mailchimp-email,.wpr-mailchimp-layout-hr .wpr-mailchimp-first-name,.wpr-mailchimp-layout-hr .wpr-mailchimp-last-name{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.wpr-mailchimp-subscribe-btn{width:100%;padding:0;outline:0!important;cursor:pointer}.wpr-mailchimp-error-message,.wpr-mailchimp-message,.wpr-mailchimp-success-message{display:none}.elementor-widget-wpr-mailchimp .wpr-mailchimp-header h3{font-size:28px;font-weight:800}.elementor-widget-wpr-mailchimp .wpr-mailchimp-header p{font-size:14px}.elementor-widget-wpr-mailchimp .wpr-mailchimp-fields label{font-size:13px}.elementor-widget-wpr-mailchimp .wpr-mailchimp-subscribe-btn{background-color:#605be5}.elementor-widget-wpr-mailchimp .wpr-mailchimp-subscribe-btn:hover{background-color:#4a45d2}.wpr-advanced-slider-wrap{position:relative}.wpr-advanced-slider{position:relative;height:500px;overflow:hidden}.wpr-slider-item{position:relative;height:500px;overflow:hidden}.wpr-slider-content{position:relative;max-width:750px;width:100%;padding:10px 50px 50px 50px;z-index:90}.wpr-slider-item-bg{position:absolute;top:0;left:0;width:100%;height:100%;background-repeat:no-repeat;background-position:center}.wpr-slider-description p,.wpr-slider-sub-title h3,.wpr-slider-title h2{display:inline-block}.wpr-slider-title h2{color:#fff;font-size:40px;font-weight:600;line-height:1.5em;padding:5px 10px 5px 10px;margin:0 0 2px 0}.wpr-slider-sub-title h3{font-size:16px;padding:5px 10px 5px 10px;margin:0 0 10px 0}.wpr-slider-description p{padding:5px 10px 5px 10px;margin:0 0 30px 0}.wpr-slider-primary-btn,.wpr-slider-secondary-btn{padding:12px 25px 12px 25px;margin:0 10px 0 10px;border-style:solid;border-width:1px;border-color:#fff;border-radius:2px}.wpr-slider-btns svg,.wpr-slider-scroll-btn svg{vertical-align:bottom}@keyframes ken-burns-in{0%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(1.3);transform:scale(1.3)}}@-webkit-keyframes ken-burns-in{0%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(1.3);transform:scale(1.3)}}@keyframes ken-burns-out{0%{-webkit-transform:scale(1.3);transform:scale(1.3)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes ken-burns-out{0%{-webkit-transform:scale(1.3);transform:scale(1.3)}100%{-webkit-transform:scale(1);transform:scale(1)}}.wpr-advanced-slider .slick-slide.slick-active .wpr-slider-item-bg{-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:10s;animation-duration:10s}.wpr-advanced-slider .slick-slide.slick-active .wpr-slider-item-bg.wpr-ken-burns-in{-webkit-animation-name:ken-burns-in;animation-name:ken-burns-in;-webkit-transform:scale(1.3);-ms-transform:scale(1.3);transform:scale(1.3)}.wpr-advanced-slider .slick-slide.slick-active .wpr-slider-item-bg.wpr-ken-burns-out{-webkit-animation-name:ken-burns-out;animation-name:ken-burns-out;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.wpr-ken-burns-in{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.wpr-ken-burns-out{-webkit-transform:scale(1.3);-ms-transform:scale(1.3);transform:scale(1.3)}.wpr-slider-item-url{display:block;width:100%;height:100%;position:absolute;left:0;top:0;z-index:90}.wpr-slider-nav-position-default .wpr-slider-arrow-container{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-slider-nav-position-default .wpr-slider-arrow{position:static}.wpr-slider-nav-position-default .wpr-slider-prev-arrow{-ms-transform:none;transform:none;-webkit-transform:none}.wpr-slider-nav-position-default .wpr-slider-next-arrow{-ms-transform:translateY(0) rotate(180deg);transform:translateY(0) rotate(180deg);-webkit-transform:translateY(0) rotate(180deg)}.wpr-slider-nav-align-bottom-center .wpr-slider-arrow-container,.wpr-slider-nav-align-top-center .wpr-slider-arrow-container{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-slider-arrow{position:absolute;z-index:120;top:50%;-webkit-box-sizing:content-box;box-sizing:content-box;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-slider-arrow i{display:block;line-height:inherit}.wpr-slider-prev-arrow{left:1%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-slider-next-arrow{right:1%;-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.wpr-slider-nav-fade .wpr-slider-arrow{opacity:0;visibility:hidden}.wpr-slider-nav-fade .wpr-advanced-slider-wrap:hover .wpr-slider-arrow{opacity:1;visibility:visible}.wpr-slider-dots{display:inline-table;position:absolute;z-index:110;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wpr-slider-dots .slick-dots{position:static!important}.wpr-slider-dots ul{list-style:none;margin:0;padding:0}.wpr-advanced-slider.slick-dotted.slick-slider{margin-bottom:0!important}.wpr-slider-dots-vertical .slick-dots li{display:block;width:auto!important;height:auto!important;margin:0!important}.wpr-slider-dots-horizontal .slick-dots li{width:auto!important;padding-top:10px;margin:0!important}.wpr-slider-dots-horizontal .slick-dots li:last-child span,.wpr-slider-dots-pro-vr .slick-dots li:last-child span{margin-right:0!important}.wpr-slider-dots-horizontal .wpr-slider-dots li,.wpr-slider-dots-pro-vr .wpr-slider-dots li{float:left}.wpr-slider-dot{display:block;cursor:pointer}.wpr-slider-dots li:last-child .wpr-slider-dot{margin:0!important}.wpr-slider-scroll-btn{position:absolute;bottom:45px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);display:inline-block;-webkit-transition-duration:.2s;-o-transition-duration:.2s;transition-duration:.2s;line-height:1;overflow:hidden}@-webkit-keyframes wpr-scroll-animation{0%{opacity:0;-webkit-transform:translate3d(0,-60%,0);transform:translate3d(0,-60%,0)}50%{opacity:1;-webkit-transform:translate3d(0,20%,0);transform:translate3d(0,20%,0)}100%{opacity:0;-webkit-transform:translate3d(0,20%,0);transform:translate3d(0,20%,0)}}@keyframes wpr-scroll-animation{0%{opacity:0;-webkit-transform:translate3d(0,-60%,0);transform:translate3d(0,-60%,0)}50%{opacity:1;-webkit-transform:translate3d(0,20%,0);transform:translate3d(0,20%,0)}100%{opacity:0;-webkit-transform:translate3d(0,20%,0);transform:translate3d(0,20%,0)}}.wpr-scroll-animation{-webkit-animation-name:wpr-scroll-animation;animation-name:wpr-scroll-animation;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.wpr-slider-video{position:absolute;width:100%;height:100%;top:0;left:0;z-index:90}.wpr-slider-video-btn{margin:0 auto}.wpr-slider-video-btn i{display:block}.wpr-slider-video-icon-size-none .wpr-slider-video-btn{display:none}.wpr-slider-video-icon-size-small .wpr-slider-video-btn{height:50px;width:50px;font-size:16px;padding:16px 0 0 4px;border-width:1px}.wpr-slider-video-icon-size-medium .wpr-slider-video-btn{height:80px;width:80px;font-size:26px;padding:25px 0 0 5px;border-width:2px}.wpr-slider-video-icon-size-large .wpr-slider-video-btn{height:100px;width:100px;font-size:30px;padding:33px 0 0 7px;border-width:2px}.wpr-slider-video-btn{text-align:center;border-style:solid;border-radius:50%;cursor:pointer}.wpr-slider-item-overlay{position:absolute;left:0;top:0;width:100%;height:100%;z-index:80}.wpr-pricing-table{position:relative}.wpr-pricing-table-heading{text-align:center}.wpr-pricing-table-headding-inner{display:inline-block}.wpr-pricing-table-heading-left .wpr-pricing-table-headding-inner>div,.wpr-pricing-table-heading-right .wpr-pricing-table-headding-inner>div{display:inline-block;vertical-align:top}.wpr-pricing-table-heading-left .wpr-pricing-table-icon{float:left}.wpr-pricing-table-heading-right .wpr-pricing-table-icon{float:right}.wpr-pricing-table-heading-left .wpr-pricing-table-title-wrap,.wpr-pricing-table-heading-right .wpr-pricing-table-title-wrap{text-align:left}.wpr-pricing-table-heading-center .wpr-pricing-table-icon img{margin:0 auto}.wpr-pricing-table-icon img{display:block;border-style:none}.elementor-widget-wpr-pricing-table .wpr-pricing-table-title-wrap .wpr-pricing-table-title{font-size:26px;font-weight:600}.elementor-widget-wpr-pricing-table .wpr-pricing-table-title-wrap .wpr-pricing-table-sub-title{font-size:14px}.wpr-pricing-table-price{text-align:center;font-size:65px;font-weight:500;line-height:.9}.wpr-pricing-table-price-inner{-ms-box-orient:horizontal;display:-webkit-box;display:-ms-flexbox;display:-moz-flex;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-pricing-table-currency,.wpr-pricing-table-old-price,.wpr-pricing-table-preiod,.wpr-pricing-table-sub-price{line-height:1}.wpr-pricing-table-preiod{font-size:17px;line-height:1.5;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end}.wpr-pricing-table-old-price{text-decoration:line-through!important}.wpr-pricing-table-feature{position:relative;font-size:15px}.wpr-pricing-table-feature-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0 auto}.wpr-pricing-table-feature-inner span{position:relative}.wpr-pricing-table-feature-inner span.wpr-pricing-table-ftext-line-yes{text-decoration:line-through}.wpr-pricing-table-feature:after{content:"";display:block;width:100%;margin:0 auto}.wpr-pricing-table section:last-of-type:after{display:none}.wpr-pricing-table-feature-icon,.wpr-pricing-table-feature-text{display:inline}.wpr-pricing-table-feature-icon{margin-right:8px}.wpr-pricing-table-feature-tooltip{position:absolute;top:0;left:50%;border-radius:4px;padding:6px 10px;visibility:hidden;opacity:0;font-size:15px;-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transition:all 230ms ease-in-out 0s;-o-transition:all 230ms ease-in-out 0s;transition:all 230ms ease-in-out 0s;text-align:center}.wpr-pricing-table-feature-tooltip:before{content:"";position:absolute;left:10px;bottom:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top-style:solid;border-top-width:6px}.wpr-pricing-table-feature:hover .wpr-pricing-table-feature-tooltip{visibility:visible;opacity:1;-ms-transform:translate(-50%,-80%);transform:translate(-50%,-80%);-webkit-transform:translate(-50%,-80%)}.wpr-pricing-table-feature-tooltip:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%)!important}.wpr-pricing-table-button{text-align:center;font-size:17px}.wpr-pricing-table-btn{position:relative;overflow:hidden;display:inline-block;vertical-align:middle;cursor:pointer}.wpr-pricing-table-btn span{position:relative;z-index:2;opacity:1!important}.wpr-pricing-table-btn:after,.wpr-pricing-table-btn:before{z-index:1!important}.wpr-pricing-table-badge{position:absolute;display:inline-block;text-align:center;z-index:2}.elementor-widget-wpr-pricing-table .wpr-pricing-table-badge .wpr-pricing-table-badge-inner{font-size:15px;font-weight:900}.wpr-pricing-table-badge-left{left:0;right:auto}.wpr-pricing-table-badge-right{left:auto;right:0}.wpr-pricing-table-badge-corner{top:0;width:200px;height:200px;overflow:hidden}.wpr-pricing-table-badge-corner .wpr-pricing-table-badge-inner{width:200%}.wpr-pricing-table-badge-corner.wpr-pricing-table-badge-right{-ms-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform:rotate(90deg)}.wpr-pricing-table-badge-cyrcle{top:0}.wpr-pricing-table-badge-cyrcle .wpr-pricing-table-badge-inner{border-radius:100%}.wpr-pricing-table-badge-flag{border-right:5px}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-left{margin-left:-10px}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-right{margin-right:-10px}.wpr-pricing-table-badge-flag:before{content:"";position:absolute;z-index:1;bottom:-5px;width:0;height:0;margin-left:-10px;border-left:10px solid transparent;border-right:10px solid transparent;border-top-style:solid;border-top-width:10px}.wpr-pricing-table-badge-flag .wpr-pricing-table-badge-inner{position:relative;z-index:2;border-top-left-radius:3px;border-top-right-radius:3px}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-left:before{left:5px;-ms-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform:rotate(90deg)}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-right:before{right:-5px;-ms-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-left .wpr-pricing-table-badge-inner{border-bottom-right-radius:3px}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-right .wpr-pricing-table-badge-inner{border-bottom-left-radius:3px}.wpr-pricing-table-text{font-size:13px;line-height:1.3}.wpr-pricing-table-divider{margin:0 auto}.wpr-pricing-table-animation-slide{-webkit-transition-property:margin;-o-transition-property:margin;transition-property:margin;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.wpr-pricing-table-animation-bounce{-webkit-animation-iteration-count:1;animation-iteration-count:1}.wpr-pricing-table-animation-slide:hover{margin-top:-5px}.wpr-pricing-table-animation-bounce:hover{-webkit-animation-name:bounce;animation-name:bounce}.elementor-widget-wpr-pricing-table .wpr-pricing-table-heading{background-color:#f9f9f9}.elementor-widget-wpr-pricing-table .wpr-pricing-table-price{background-color:#605be5}.elementor-widget-wpr-pricing-table .wpr-pricing-table-button{background-color:#f9f9f9}.elementor-widget-wpr-pricing-table .wpr-pricing-table-btn{background-color:#2b2b2b}.elementor-widget-wpr-pricing-table .wpr-pricing-table-btn:hover{background-color:#4a45d2}.elementor-widget-wpr-pricing-table .wpr-pricing-table-text{background-color:#f9f9f9}.wpr-logo{position:relative;display:inline-table;overflow:hidden}.wpr-logo-image img{display:block}.wpr-logo-description{margin:0}.wpr-logo-image{position:relative;display:block;width:100%;z-index:7}.wpr-logo-url{position:absolute;display:block;width:100%;height:100%;top:0;left:0;z-index:5}.wpr-logo-position-left .wpr-logo-image,.wpr-logo-position-left .wpr-logo-text{float:left}.wpr-logo-position-right .wpr-logo-image,.wpr-logo-position-right .wpr-logo-text{float:right}.wpr-logo-position-center .wpr-logo-image{margin:0 auto}.wpr-logo-position-center .wpr-logo-text{text-align:center}.wpr-logo-position-left .wpr-logo-text,.wpr-logo-position-right .wpr-logo-text{text-align:left}.elementor-widget-wpr-logo .wpr-logo-title{font-size:16px;line-height:1.5}.elementor-widget-wpr-logo .wpr-logo-description{font-size:13px}.wpr-testimonial-carousel .slick-slider{cursor:drag}.wpr-testimonial-carousel .slick-track{display:-webkit-box!important;display:flex!important;display:-ms-flexbox!important}.wpr-testimonial-carousel .slick-slide{height:inherit!important}.wpr-testimonial-carousel-wrap .slick-list{padding-right:1px!important}.wpr-testimonial-nav-position-default .wpr-testimonial-arrow-container{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-testimonial-nav-position-default .wpr-testimonial-arrow{position:static}.wpr-testimonial-nav-position-default .wpr-testimonial-prev-arrow{-ms-transform:none;transform:none;-webkit-transform:none}.wpr-testimonial-nav-position-default .wpr-testimonial-next-arrow{-ms-transform:translateY(0) rotate(180deg);transform:translateY(0) rotate(180deg);-webkit-transform:translateY(0) rotate(180deg)}.wpr-testimonial-nav-align-bottom-center .wpr-testimonial-arrow-container,.wpr-testimonial-nav-align-top-center .wpr-testimonial-arrow-container{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-testimonial-arrow{position:absolute;z-index:120;top:52%;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;cursor:pointer}.wpr-testimonial-arrow i{display:block;line-height:inherit}.wpr-testimonial-prev-arrow{left:2%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-testimonial-next-arrow{right:2%;-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.wpr-testimonial-nav-fade .wpr-testimonial-arrow{opacity:0}.wpr-testimonial-dots{display:inline-table;position:absolute;z-index:110;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wpr-testimonial-dots ul{list-style:none;margin:0}.wpr-testimonial-dots li{float:left;width:auto!important;margin:0!important}.wpr-testimonial-dot{display:block;cursor:pointer}.wpr-testimonial-dots li:last-child .wpr-testimonial-dot{margin:0!important}.wpr-testimonial-social-media{display:inline-block}.wpr-testimonial-social{display:block;float:left;width:45px;height:45px;line-height:45px;font-size:45px;-webkit-box-sizing:content-box;box-sizing:content-box;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;cursor:pointer}.wpr-testimonial-social i{display:block;width:100%;height:100%;line-height:inherit}.wpr-testimonial-social:last-child{margin-right:0!important}.wpr-testimonial-rating i{display:inline;position:relative;font-family:eicons;font-style:normal;line-height:1;overflow:hidden}.wpr-testimonial-rating i:before{content:'\e934';font-weight:900;display:block;position:absolute;top:0;left:0;font-size:inherit;font-family:inherit;overflow:hidden}.wpr-testimonial-rating-style_2 .wpr-testimonial-rating i:before{content:'\002605'}.wpr-testimonial-rating i:last-of-type{margin-right:0!important}.wpr-rating-icon-empty:before{display:none!important}.elementor-widget-wpr-testimonial-carousel .wpr-testimonial-content-wrap .wpr-testimonial-title{font-size:18px;font-weight:700}.wpr-testimonial-content{position:relative;font-size:15px}.wpr-testimonial-content p{position:relative;z-index:5;margin:0}.wpr-testimonial-content .wpr-testimonial-icon{position:absolute;width:100%;z-index:1}.wpr-testimonial-date{font-size:10px}.wpr-testimonial-content-inner{position:relative;background-color:#f9f9f9}.wpr-testimonial-triangle-yes .wpr-testimonial-content-inner:before{content:"";position:absolute;width:0;height:0;border-left:15px solid transparent;border-right:15px solid transparent;border-top-style:solid;border-top-width:15px}.wpr-testimonial-meta-position-bottom.wpr-testimonial-meta-align-center .wpr-testimonial-content-inner:before,.wpr-testimonial-meta-position-top.wpr-testimonial-meta-align-center .wpr-testimonial-content-inner:before{right:calc(50% - 15px)}.wpr-testimonial-meta-position-bottom.wpr-testimonial-meta-align-left .wpr-testimonial-content-inner:before,.wpr-testimonial-meta-position-top.wpr-testimonial-meta-align-left .wpr-testimonial-content-inner:before{margin-left:-15px}.wpr-testimonial-meta-position-bottom.wpr-testimonial-meta-align-right .wpr-testimonial-content-inner:before,.wpr-testimonial-meta-position-top.wpr-testimonial-meta-align-right .wpr-testimonial-content-inner:before{margin-right:-15px}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner:before,.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner:before{margin-top:-7.5px}.wpr-testimonial-meta-position-top .wpr-testimonial-content-inner:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.wpr-testimonial-meta-position-top .wpr-testimonial-content-inner{margin-top:15px}.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner:before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner{margin-right:15px}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner{margin-left:15px}.wpr-testimonial-meta-position-bottom .wpr-testimonial-content-inner:before{bottom:-15px}.wpr-testimonial-meta-position-bottom .wpr-testimonial-content-inner{margin-bottom:15px}.wpr-testimonial-meta-position-extra .wpr-testimonial-content-inner:before{display:none}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner:before{left:-22px}.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner:before{right:-22px}.wpr-testimonial-meta-position-top .wpr-testimonial-content-inner:before{top:-15px}.wpr-testimonial-meta-position-bottom .wpr-testimonial-content-inner:before{bottom:-15px}.wpr-testimonial-image{overflow:hidden}.elementor-widget-wpr-testimonial-carousel .wpr-testimonial-meta .wpr-testimonial-name{font-size:14px;font-weight:700}.wpr-testimonial-logo-image{display:block;overflow:hidden}.wpr-testimonial-item{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.wpr-testimonial-meta-position-extra .wpr-testimonial-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-testimonial-meta-position-top .wpr-testimonial-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-testimonial-meta-position-bottom .wpr-testimonial-item{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpr-testimonial-meta-position-right .wpr-testimonial-item{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-testimonial-meta-position-left .wpr-testimonial-item{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.wpr-testimonial-meta-position-left .wpr-testimonial-meta,.wpr-testimonial-meta-position-right .wpr-testimonial-meta{-ms-flex-negative:0;flex-shrink:0}@media screen and (max-width:480px){.wpr-testimonial-meta-position-left .wpr-testimonial-item,.wpr-testimonial-meta-position-right .wpr-testimonial-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner,.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner{margin-left:0!important}.wpr-testimonial-meta-position-left .wpr-testimonial-meta,.wpr-testimonial-meta-position-right .wpr-testimonial-meta{margin-left:0!important;margin-right:0!important;padding:0!important;margin-bottom:20px}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner:before,.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner:before{display:none}}.wpr-testimonial-job{font-size:10px}.wpr-testimonial-image-position-left .wpr-testimonial-meta-inner>div,.wpr-testimonial-image-position-right .wpr-testimonial-meta-inner>div{display:inline-block;vertical-align:top}.wpr-testimonial-image-position-center.wpr-testimonial-meta-align-left .wpr-testimonial-meta img,.wpr-testimonial-image-position-left .wpr-testimonial-image,.wpr-testimonial-image-position-left .wpr-testimonial-logo-image img{float:left}.wpr-testimonial-image-position-center.wpr-testimonial-meta-align-right .wpr-testimonial-meta img,.wpr-testimonial-image-position-right .wpr-testimonial-image,.wpr-testimonial-image-position-right .wpr-testimonial-logo-image img{float:right}.wpr-testimonial-image-position-left .wpr-testimonial-meta-content-wrap,.wpr-testimonial-meta-align-left .wpr-testimonial-meta{text-align:left}.wpr-testimonial-meta-align-center .wpr-testimonial-meta{text-align:center}.wpr-testimonial-image-position-right .wpr-testimonial-meta-content-wrap,.wpr-testimonial-meta-align-right .wpr-testimonial-meta{text-align:right}.wpr-testimonial-meta-align-center .wpr-testimonial-meta img{margin:0 auto}.wpr-testimonial-meta-position-extra .wpr-testimonial-meta img{display:inline-block}.wpr-testimonial-meta-inner{display:inline-block}.wpr-testimonial-meta-position-bottom .wpr-testimonial-logo-image img,.wpr-testimonial-meta-position-bottom .wpr-testimonial-social-media,.wpr-testimonial-meta-position-top .wpr-testimonial-logo-image img,.wpr-testimonial-meta-position-top .wpr-testimonial-social-media{float:none!important;display:inline-block!important}@media screen and (min-width:480px){.wpr-testimonial-image-position-left .wpr-testimonial-image,.wpr-testimonial-image-position-right .wpr-testimonial-image{margin-bottom:0!important}}@media screen and (max-width:480px){.wpr-testimonial-meta-position-left .wpr-testimonial-image,.wpr-testimonial-meta-position-left .wpr-testimonial-meta-content-wrap,.wpr-testimonial-meta-position-right .wpr-testimonial-image,.wpr-testimonial-meta-position-right .wpr-testimonial-meta-content-wrap{display:block!important;float:none!important;text-align:center!important}.wpr-testimonial-meta-position-left.wpr-testimonial-image-position-left .wpr-testimonial-image,.wpr-testimonial-meta-position-left.wpr-testimonial-image-position-right .wpr-testimonial-image,.wpr-testimonial-meta-position-right.wpr-testimonial-image-position-left .wpr-testimonial-image,.wpr-testimonial-meta-position-right.wpr-testimonial-image-position-right .wpr-testimonial-image{margin-left:0!important;margin-right:0!important}.wpr-testimonial-meta-position-left .wpr-testimonial-image img,.wpr-testimonial-meta-position-left .wpr-testimonial-logo-image img,.wpr-testimonial-meta-position-right .wpr-testimonial-image img,.wpr-testimonial-meta-position-right .wpr-testimonial-logo-image img{display:inline-block!important;float:none!important}}.wpr-search-form-input-wrap{border-style:solid;width:100%;overflow:hidden}.wpr-search-form .wpr-search-form-input{width:100%;height:100%;font-size:14px;background-color:transparent}.wpr-search-form-style-inner .wpr-search-form-input-wrap,.wpr-search-form-style-outer .wpr-search-form{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-search-form-style-inner.wpr-search-form-position-left .wpr-search-form-input-wrap,.wpr-search-form-style-outer.wpr-search-form-position-left .wpr-search-form{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-search-form-submit{cursor:pointer;border-style:solid;-webkit-transition:all .2s;-o-transition:all .2s;transition:all .2s}.wpr-search-form-disable-submit-btn-yes .wpr-search-form-submit{pointer-events:none;cursor:default}.wpr-team-member{overflow:hidden}.wpr-member-content{overflow:hidden}.wpr-member-name{display:block;line-height:1}.elementor .elementor-widget-wpr-team-member .wpr-member-name{font-size:24px;font-weight:500}.wpr-member-job{font-size:13px}.wpr-member-description{font-size:15px;line-height:1.4}.wpr-member-media{position:relative;margin:0 auto;width:100%;overflow:hidden}.wpr-member-image{overflow:hidden}.wpr-member-overlay-content{position:relative}.wpr-member-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(255,255,255,.9)}.wpr-member-social-media{display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.wpr-member-social{display:block;width:45px;height:45px;line-height:45px;font-size:45px;-webkit-box-sizing:content-box;box-sizing:content-box;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;cursor:pointer}.wpr-member-social i{display:block;width:100%;height:100%;line-height:inherit}.wpr-member-social:last-child{margin-right:0!important}.wpr-team-member-social-media-left .wpr-member-social-media{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.wpr-team-member-social-media-right .wpr-member-social-media{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpr-team-member-social-media-center .wpr-member-social-media{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-member-btn{display:inline-block;position:relative;overflow:hidden;display:inline-block;vertical-align:middle;background-color:#222;cursor:pointer;font-size:14px}.wpr-member-btn span{position:relative;z-index:2;opacity:1!important}.wpr-member-btn:after,.wpr-member-btn:before{z-index:1!important}.wpr-member-divider{overflow:hidden}.wpr-member-divider:after{content:"";display:block;width:100%;margin-top:0;overflow:hidden}.wpr-team-member-divider-left .wpr-member-divider:after{float:left}.wpr-team-member-divider-right .wpr-member-divider:after{float:right}.wpr-team-member-divider-center .wpr-member-divider:after{margin-left:auto;margin-right:auto}.wpr-button-wrap{position:relative;display:inline-table;z-index:1;width:100%}.wpr-button{display:block;position:relative;width:100%;z-index:1;overflow:hidden}.elementor .elementor-widget-wpr-button .wpr-button-text{font-size:15px;font-weight:500}.wpr-button-icon-style-block .wpr-button-text,.wpr-button-icon-style-inline-block .wpr-button-text{width:100%}.wpr-button-icon-style-block .wpr-button-icon,.wpr-button-icon-style-inline-block .wpr-button-icon{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-button-content{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-button-icon,.wpr-button-text{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-button-icon-position-left .wpr-button-icon{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.wpr-button-icon-position-left .wpr-button-text{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.wpr-button-tooltip{position:absolute;border-radius:4px;visibility:hidden;opacity:0;font-size:13px;line-height:1.5;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;z-index:20}.wpr-button-tooltip:before{content:"";position:absolute;width:0;height:0;border-top-style:solid;border-left:6px solid transparent;border-right:6px solid transparent;border-top-width:6px}.wpr-button-tooltip p{margin:0}.wpr-button-wrap:hover .wpr-button-tooltip{visibility:visible;opacity:1}.wpr-button-tooltip-position-top .wpr-button-tooltip{top:0;left:50%;-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%);-webkit-transform:translate(-50%,-120%);margin-top:-5px}.wpr-button-tooltip-position-top .wpr-button-wrap:hover .wpr-button-tooltip{-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform:translate(-50%,-100%)}.wpr-button-tooltip-position-top .wpr-button-tooltip:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%);bottom:-5px}.wpr-button-tooltip-position-bottom .wpr-button-tooltip{bottom:0;left:50%;-ms-transform:translate(-50%,120%);transform:translate(-50%,120%);-webkit-transform:translate(-50%,120%);margin-bottom:-5px}.wpr-button-tooltip-position-bottom .wpr-button-wrap:hover .wpr-button-tooltip{-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);-webkit-transform:translate(-50%,100%)}.wpr-button-tooltip-position-bottom .wpr-button-tooltip:before{top:-5px;left:50%;-webkit-transform:translateX(-50%) rotate(180deg);-ms-transform:translateX(-50%) rotate(180deg);transform:translateX(-50%) rotate(180deg)}.wpr-button-tooltip-position-left .wpr-button-tooltip{top:50%;left:0;-ms-transform:translate(-120%,-50%);transform:translate(-120%,-50%);-webkit-transform:translate(-120%,-50%);margin-left:-5px}.wpr-button-tooltip-position-left .wpr-button-wrap:hover .wpr-button-tooltip{-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);-webkit-transform:translate(-100%,-50%)}.wpr-button-tooltip-position-left .wpr-button-tooltip:before{right:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(-90deg);-ms-transform:translateY(-50%) rotate(-90deg);transform:translateY(-50%) rotate(-90deg)}.wpr-button-tooltip-position-right .wpr-button-tooltip{top:50%;right:0;-ms-transform:translate(120%,-50%);transform:translate(120%,-50%);-webkit-transform:translate(120%,-50%);margin-right:-5px}.wpr-button-tooltip-position-right .wpr-button-wrap:hover .wpr-button-tooltip{-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);-webkit-transform:translate(100%,-50%)}.wpr-button-tooltip-position-right .wpr-button-tooltip:before{left:-8px;top:50%;-ms-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg);-webkit-transform:translateY(-50%) rotate(90deg)}.elementor-widget-wpr-button .wpr-button{background-color:#605be5}.elementor-widget-wpr-button .wpr-button-none:hover,.elementor-widget-wpr-button .wpr-button::after,.elementor-widget-wpr-button .wpr-button::before,.elementor-widget-wpr-button [class*=elementor-animation]:hover{background-color:#4a45d2}.elementor-widget-wpr-button .wpr-button-text,.elementor-widget-wpr-button .wpr-button::after{font-size:14px}.wpr-dual-button{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-button-a-wrap,.wpr-button-b-wrap{position:relative;width:100%}.wpr-button-a-wrap{z-index:5}.wpr-button-b-wrap{z-index:2}.wpr-button-a,.wpr-button-b{display:block;position:relative;width:100%;z-index:1;overflow:hidden}.wpr-button-content-a,.wpr-button-content-b{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-button-icon-a,.wpr-button-icon-b,.wpr-button-text-a,.wpr-button-text-b{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-button-icon-a-position-left .wpr-button-icon-a,.wpr-button-icon-b-position-left .wpr-button-icon-b{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.wpr-button-icon-a-position-left .wpr-button-text-a,.wpr-button-icon-b-position-left .wpr-button-text-b{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.wpr-button-middle-badge{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:50%;right:0;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);text-align:center;-webkit-box-sizing:content-box;box-sizing:content-box;z-index:10;border-width:3px;border-color:#00ce1b;-webkit-box-shadow:0 0 0 4px rgba(255,255,255,.3);box-shadow:0 0 0 4px rgba(255,255,255,.3)}.wpr-button-middle-badge i{line-height:inherit}.wpr-button-tooltip-a{position:absolute;border-radius:4px;visibility:hidden;opacity:0;font-size:13px;line-height:1.5;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;z-index:20}.wpr-button-tooltip-a:before{content:"";position:absolute;width:0;height:0;border-top-style:solid;border-left:6px solid transparent;border-right:6px solid transparent;border-top-width:6px}.wpr-button-tooltip-a p{margin:0}.wpr-button-a-wrap:hover .wpr-button-tooltip-a{visibility:visible;opacity:1}.wpr-button-tooltip-a-position-top .wpr-button-tooltip-a{top:0;left:50%;-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%);-webkit-transform:translate(-50%,-120%);margin-top:-5px}.wpr-button-tooltip-a-position-top .wpr-button-a-wrap:hover .wpr-button-tooltip-a{-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform:translate(-50%,-100%)}.wpr-button-tooltip-a-position-top .wpr-button-tooltip-a:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%);bottom:-5px}.wpr-button-tooltip-a-position-bottom .wpr-button-tooltip-a{bottom:0;left:50%;-ms-transform:translate(-50%,120%);transform:translate(-50%,120%);-webkit-transform:translate(-50%,120%);margin-bottom:-5px}.wpr-button-tooltip-a-position-bottom .wpr-button-a-wrap:hover .wpr-button-tooltip-a{-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);-webkit-transform:translate(-50%,100%)}.wpr-button-tooltip-a-position-bottom .wpr-button-tooltip-a:before{top:-5px;left:50%;-webkit-transform:translateX(-50%) rotate(180deg);-ms-transform:translateX(-50%) rotate(180deg);transform:translateX(-50%) rotate(180deg)}.wpr-button-tooltip-a-position-left .wpr-button-tooltip-a{top:50%;left:0;-ms-transform:translate(-120%,-50%);transform:translate(-120%,-50%);-webkit-transform:translate(-120%,-50%);margin-left:-5px}.wpr-button-tooltip-a-position-left .wpr-button-a-wrap:hover .wpr-button-tooltip-a{-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);-webkit-transform:translate(-100%,-50%)}.wpr-button-tooltip-a-position-left .wpr-button-tooltip-a:before{right:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(-90deg);-ms-transform:translateY(-50%) rotate(-90deg);transform:translateY(-50%) rotate(-90deg)}.wpr-button-tooltip-a-position-right .wpr-button-tooltip-a{top:50%;right:0;-ms-transform:translate(120%,-50%);transform:translate(120%,-50%);-webkit-transform:translate(120%,-50%);margin-right:-5px}.wpr-button-tooltip-a-position-right .wpr-button-a-wrap:hover .wpr-button-tooltip-a{-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);-webkit-transform:translate(100%,-50%)}.wpr-button-tooltip-a-position-right .wpr-button-tooltip-a:before{left:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(90deg);-ms-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}.wpr-button-tooltip-b{position:absolute;border-radius:4px;visibility:hidden;opacity:0;font-size:13px;line-height:1.5;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;z-index:20}.wpr-button-tooltip-b:before{content:"";position:absolute;width:0;height:0;border-top-style:solid;border-left:6px solid transparent;border-right:6px solid transparent;border-top-width:6px}.wpr-button-tooltip-b p{margin:0}.wpr-button-b-wrap:hover .wpr-button-tooltip-b{visibility:visible;opacity:1}.wpr-button-tooltip-b-position-top .wpr-button-tooltip-b{top:0;left:50%;-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%);-webkit-transform:translate(-50%,-120%);margin-top:-5px}.wpr-button-tooltip-b-position-top .wpr-button-b-wrap:hover .wpr-button-tooltip-b{-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform:translate(-50%,-100%)}.wpr-button-tooltip-b-position-top .wpr-button-tooltip-b:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%);bottom:-5px}.wpr-button-tooltip-b-position-bottom .wpr-button-tooltip-b{bottom:0;left:50%;-ms-transform:translate(-50%,120%);transform:translate(-50%,120%);-webkit-transform:translate(-50%,120%);margin-bottom:-5px}.wpr-button-tooltip-b-position-bottom .wpr-button-b-wrap:hover .wpr-button-tooltip-b{-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);-webkit-transform:translate(-50%,100%)}.wpr-button-tooltip-b-position-bottom .wpr-button-tooltip-b:before{top:-5px;left:50%;-webkit-transform:translateX(-50%) rotate(180deg);-ms-transform:translateX(-50%) rotate(180deg);transform:translateX(-50%) rotate(180deg)}.wpr-button-tooltip-b-position-left .wpr-button-tooltip-b{top:50%;left:0;-ms-transform:translate(-120%,-50%);transform:translate(-120%,-50%);-webkit-transform:translate(-120%,-50%);margin-left:-5px}.wpr-button-tooltip-b-position-left .wpr-button-b-wrap:hover .wpr-button-tooltip-b{-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);-webkit-transform:translate(-100%,-50%)}.wpr-button-tooltip-b-position-left .wpr-button-tooltip-b:before{right:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(-90deg);-ms-transform:translateY(-50%) rotate(-90deg);transform:translateY(-50%) rotate(-90deg)}.wpr-button-tooltip-b-position-right .wpr-button-tooltip-b{top:50%;right:0;-ms-transform:translate(120%,-50%);transform:translate(120%,-50%);-webkit-transform:translate(120%,-50%);margin-right:-5px}.wpr-button-tooltip-b-position-right .wpr-button-b-wrap:hover .wpr-button-tooltip-b{-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);-webkit-transform:translate(100%,-50%)}.wpr-button-tooltip-b-position-right .wpr-button-tooltip-b:before{left:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(90deg);-ms-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}@media screen and (max-width:480px){.wpr-button-tooltip-a-position-left .wpr-button-tooltip-a,.wpr-button-tooltip-b-position-right .wpr-button-tooltip-b,.wpr-button-tooltip-position-left .wpr-button-tooltip,.wpr-button-tooltip-position-right .wpr-button-tooltip{top:0;left:50%!important;right:auto!important;-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%);-webkit-transform:translate(-50%,-120%);margin-top:-5px}.wpr-button-tooltip-a-position-left .wpr-button-a-wrap:hover .wpr-button-tooltip-a,.wpr-button-tooltip-b-position-right .wpr-button-b-wrap:hover .wpr-button-tooltip-b,.wpr-button-tooltip-position-left .wpr-button-wrap:hover .wpr-button-tooltip,.wpr-button-tooltip-position-right .wpr-button-wrap:hover .wpr-button-tooltip{-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform:translate(-50%,-100%)}.wpr-button-tooltip-a-position-left .wpr-button-tooltip-a:before,.wpr-button-tooltip-b-position-right .wpr-button-tooltip-b:before,.wpr-button-tooltip-position-left .wpr-button-tooltip:before,.wpr-button-tooltip-position-right .wpr-button-tooltip:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%);bottom:-5px;top:auto}}.elementor-widget-wpr-dual-button .wpr-button-a,.elementor-widget-wpr-dual-button .wpr-button-b{background-color:#605be5}.elementor-widget-wpr-dual-button .wpr-dual-button .wpr-button-effect::after,.elementor-widget-wpr-dual-button .wpr-dual-button .wpr-button-effect::before,.elementor-widget-wpr-dual-button .wpr-dual-button .wpr-button-none:hover,.elementor-widget-wpr-dual-button .wpr-dual-button [class*=elementor-animation]:hover{background-color:#4a45d2}.elementor-widget-wpr-dual-button .wpr-button-a::after,.elementor-widget-wpr-dual-button .wpr-button-b::after,.elementor-widget-wpr-dual-button .wpr-button-text-a,.elementor-widget-wpr-dual-button .wpr-button-text-b{font-size:14px}.elementor-widget-wpr-dual-button .wpr-button-middle-badge{font-size:13px}.wpr-anim-text,.wpr-clipped-text,.wpr-highlighted-text{display:inline-block;vertical-align:middle}.wpr-advanced-text-preffix,.wpr-advanced-text-suffix{vertical-align:middle}.elementor-widget-wpr-advanced-text b{font-weight:none}.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-advanced-text-preffix,.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-advanced-text-suffix,.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-anim-text,.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-anim-text b,.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-highlighted-text{font-size:32px;font-weight:700}.wpr-advanced-text{display:block}.wpr-clipped-text{position:relative;-ms-transform:translate(0,0);transform:translate(0,0);-webkit-transform:translate(0,0);z-index:0}.wpr-clipped-text-content{-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-clipped-text{font-size:50px;font-weight:700}.wpr-clipped-text-long-shadow{position:absolute;display:inline-block;top:0;left:0;width:100%;height:100%;z-index:-1}.wpr-highlighted-text{position:relative;text-align:left}.wpr-highlighted-text-inner{position:relative;z-index:1}.wpr-highlighted-text svg{position:absolute;top:50%;left:50%;width:100%;height:100%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);overflow:visible;z-index:auto}.wpr-highlighted-text svg path{-webkit-animation-name:wpr-anim-text;animation-name:wpr-anim-text;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;fill:none;stroke-width:4;stroke-dasharray:1500;-webkit-animation-iteration-count:1;-animation-iteration-count:1;opacity:0}.wpr-highlighted-text .wpr-highlight-curly{-webkit-transform:translate(-50%,25%);-ms-transform:translate(-50%,25%);transform:translate(-50%,25%)}.wpr-highlighted-text .wpr-highlight-x{-webkit-transform:translate(-50%,-35%);-ms-transform:translate(-50%,-35%);transform:translate(-50%,-35%)}.wpr-highlighted-text .wpr-highlight-strikethrough{-webkit-transform:translate(-50%,-47%);-ms-transform:translate(-50%,-47%);transform:translate(-50%,-47%)}.wpr-highlighted-text .wpr-highlight-underline{-webkit-transform:translate(-50%,27%);-ms-transform:translate(-50%,27%);transform:translate(-50%,27%)}.wpr-highlighted-text .wpr-highlight-double{-webkit-transform:translate(-50%,-40%);-ms-transform:translate(-50%,-40%);transform:translate(-50%,-40%)}.wpr-highlighted-text .wpr-highlight-double-underline{-webkit-transform:translate(-50%,30%);-ms-transform:translate(-50%,30%);transform:translate(-50%,30%)}.wpr-highlighted-text .wpr-highlight-diagonal{-webkit-transform:translate(-50%,-40%);-ms-transform:translate(-50%,-40%);transform:translate(-50%,-40%)}.wpr-animated-text-infinite-yes .wpr-highlighted-text svg path{-webkit-animation-name:wpr-anim-text-infinite;animation-name:wpr-anim-text-infinite}@-webkit-keyframes wpr-anim-text-infinite{0%{opacity:1;stroke-dasharray:0 1500}12%{stroke-dasharray:1500 1500}80%{opacity:1}97%{opacity:0;stroke-dasharray:1500 1500}100%{stroke-dasharray:0 1500}}@keyframes wpr-anim-text-infinite{0%{opacity:1;stroke-dasharray:0 1500}12%{stroke-dasharray:1500 1500}80%{opacity:1}97%{opacity:0;stroke-dasharray:1500 1500}100%{stroke-dasharray:0 1500}}@-webkit-keyframes wpr-anim-text{0%{opacity:1;stroke-dasharray:0 1500}12%{stroke-dasharray:1500 1500}100%{opacity:1}}@keyframes wpr-anim-text{0%{opacity:1;stroke-dasharray:0 1500}12%{stroke-dasharray:1500 1500}100%{opacity:1}}@-webkit-keyframes wpr-anim-text-infinite{0%{opacity:1;stroke-dasharray:0 1500}12%{stroke-dasharray:1500 1500}100%{opacity:1}}.wpr-anim-text-inner{float:left}.wpr-anim-text-cursor{display:inline-block;zoom:1;opacity:1;-webkit-animation-name:wpr-cursor-blink;animation-name:wpr-cursor-blink;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes wpr-cursor-blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}@keyframes wpr-cursor-blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.elementor-widget-wpr-advanced-text .wpr-clipped-text-content{background-color:#605be5}.wpr-prbar-counter-value-suffix{line-height:1}.wpr-prbar-hr-line{position:relative;width:100%;overflow:hidden}.wpr-prbar-hr-line-inner{position:relative;top:0;left:0;width:0;height:100%;-webkit-transition-property:width;-o-transition-property:width;transition-property:width;overflow:hidden}.wpr-prbar-hr-line .wpr-prbar-content{position:absolute;top:0;left:0;width:100%;height:100%}.wpr-prbar-hr-line .wpr-prbar-title-wrap{position:absolute;top:50%;left:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-prbar-layout-hr-line .wpr-prbar-subtitle{text-align:left}.wpr-prbar-hr-line .wpr-prbar-counter{position:absolute;top:50%;right:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-prbar-layout-hr-line .wpr-prbar-title-wrap{float:left}.wpr-prbar-layout-hr-line .wpr-prbar-counter{float:right}.wpr-prbar-vr-line{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;width:100%;margin:0 auto;overflow:hidden}.wpr-prbar-vr-line-inner{position:relative;width:100%;height:0;-webkit-transition-property:height;-o-transition-property:height;transition-property:height;overflow:hidden}.wpr-prbar-circle{position:relative;display:table;width:100%;height:auto;margin:0 auto}.wpr-prbar-circle-svg{width:100%;height:auto;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);border-radius:50%}.wpr-prbar-circle-prline{-webkit-transition-property:stroke-dasharray,stroke-dashoffset;-o-transition-property:stroke-dasharray,stroke-dashoffset;transition-property:stroke-dasharray,stroke-dashoffset;stroke-linecap:butt}.wpr-prbar-circle .wpr-prbar-content{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wpr-prbar-content{text-align:center;overflow:hidden}.wpr-prbar-counter{display:-webkit-box;display:-ms-flexbox;display:-moz-flex;display:flex;font-size:12px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-prbar-subtitle,.wpr-prbar-title{font-size:12px;text-align:center}.wpr-prbar-stripe-yes .wpr-prbar-hr-line-inner:after,.wpr-prbar-stripe-yes .wpr-prbar-vr-line-inner:after{content:'';position:absolute;top:0;left:-30px;width:calc(100% + 60px);height:100%;background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:30px 30px}.wpr-prbar-stripe-yes.wpr-prbar-stripe-anim-right .wpr-prbar-hr-line-inner:after,.wpr-prbar-stripe-yes.wpr-prbar-stripe-anim-right .wpr-prbar-vr-line-inner:after{-webkit-animation:stripe-anim-right 2s linear infinite;animation:stripe-anim-right 2s linear infinite}.wpr-prbar-stripe-yes.wpr-prbar-stripe-anim-left .wpr-prbar-hr-line-inner:after,.wpr-prbar-stripe-yes.wpr-prbar-stripe-anim-left .wpr-prbar-vr-line-inner:after{-webkit-animation:stripe-anim-left 2s linear infinite;animation:stripe-anim-left 2s linear infinite}@-webkit-keyframes stripe-anim-right{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(30px,0);transform:translate(30px,0)}}@keyframes stripe-anim-right{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(30px,0);transform:translate(30px,0)}}@-webkit-keyframes stripe-anim-left{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(-30px,0);transform:translate(-30px,0)}}@keyframes stripe-anim-left{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(-30px,0);transform:translate(-30px,0)}}.elementor-widget-wpr-progress-bar .wpr-prbar-hr-line-inner,.elementor-widget-wpr-progress-bar .wpr-prbar-vr-line-inner{background-color:#605be5}.wpr-price-list-item:last-child{margin-bottom:0}.wpr-price-list-content{width:100%;overflow:hidden}.wpr-price-list-item{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.wpr-price-list-link{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.wpr-price-list-position-right .wpr-price-list-item{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-price-list-position-center .wpr-price-list-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-price-list-position-center .wpr-price-list-heading{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-price-list-position-center .wpr-price-list-separator{display:none}.wpr-price-list-position-left .wpr-price-list-price-wrap,.wpr-price-list-position-right .wpr-price-list-price-wrap{margin-left:auto}.wpr-price-list-image img{display:block;margin:0 auto}.wpr-price-list-heading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.elementor-widget-wpr-price-list .wpr-price-list-heading .wpr-price-list-price,.elementor-widget-wpr-price-list .wpr-price-list-heading .wpr-price-list-title{font-size:17px;font-weight:700}.wpr-price-list-old-price{font-size:11px}.wpr-price-list-description{font-size:14px}.wpr-price-list-separator{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:0}.wpr-price-list-price-wrap{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-price-list-old-position-after .wpr-price-list-price-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-price-list-old-position-after .wpr-price-list-old-price{margin-right:10px}.wpr-price-list-old-position-before .wpr-price-list-old-price{margin-left:3px}.wpr-price-list-old-price{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;text-decoration:line-through}.wpr-image-hotspots{position:relative}.wpr-hotspot-item-container{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.wpr-hotspot-image img{width:100%}.wpr-hotspot-item{position:absolute}.wpr-hotspot-text{font-size:15px}.wpr-hotspot-content{position:relative;z-index:15;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;text-align:center}.wpr-hotspot-icon-position-left .wpr-hotspot-content{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-hotspot-item,.wpr-hotspot-item:before{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-play-state:running;animation-play-state:running}.wpr-hotspot-trigger-click .wpr-hotspot-item,.wpr-hotspot-trigger-hover .wpr-hotspot-item{cursor:pointer}.wpr-hotspot-tooltip{position:absolute;border-radius:4px;visibility:hidden;opacity:0;font-size:13px;line-height:1.5;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;z-index:20;-webkit-box-shadow:0 0 4px 0 rgba(0,0,0,.5);box-shadow:0 0 4px 0 rgba(0,0,0,.5);font-size:13px}.wpr-hotspot-tooltip:before{content:"";position:absolute;width:0;height:0}.wpr-hotspot-tooltip-position-pro-bt .wpr-hotspot-tooltip,.wpr-hotspot-tooltip-position-pro-lt .wpr-hotspot-tooltip,.wpr-hotspot-tooltip-position-pro-rt .wpr-hotspot-tooltip{top:-120%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-hotspot-tooltip-position-bottom .wpr-hotspot-tooltip:before,.wpr-hotspot-tooltip-position-top .wpr-hotspot-tooltip:before{border-left-color:transparent;border-right-color:transparent;border-top-style:solid;border-left-style:solid;border-right-style:solid}.wpr-hotspot-tooltip-position-left .wpr-hotspot-tooltip:before,.wpr-hotspot-tooltip-position-right .wpr-hotspot-tooltip:before{border-bottom-color:transparent;border-top-color:transparent;border-right-style:solid;border-bottom-style:solid;border-top-style:solid}.wpr-hotspot-tooltip p{margin:0}.wpr-tooltip-active .wpr-hotspot-tooltip{visibility:visible;opacity:1}.wpr-hotspot-tooltip-position-top .wpr-hotspot-tooltip:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%)}.wpr-hotspot-tooltip-position-bottom .wpr-hotspot-tooltip:before{left:50%;-webkit-transform:translateX(-50%) rotate(180deg);-ms-transform:translateX(-50%) rotate(180deg);transform:translateX(-50%) rotate(180deg)}.wpr-hotspot-tooltip-position-left .wpr-hotspot-tooltip:before{top:50%;-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.wpr-hotspot-tooltip-position-right .wpr-hotspot-tooltip:before{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-hotspot-tooltip-position-bottom .wpr-hotspot-tooltip,.wpr-hotspot-tooltip-position-top .wpr-hotspot-tooltip{left:50%}.wpr-hotspot-tooltip-position-left .wpr-hotspot-tooltip,.wpr-hotspot-tooltip-position-right .wpr-hotspot-tooltip{top:50%}.wpr-hotspot-tooltip-position-top.wpr-tooltip-effect-shift-toward .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,-120%);-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%)}.wpr-hotspot-tooltip-position-top.wpr-tooltip-effect-shift-toward .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.wpr-hotspot-tooltip-position-bottom.wpr-tooltip-effect-shift-toward .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,120%);-ms-transform:translate(-50%,120%);transform:translate(-50%,120%)}.wpr-hotspot-tooltip-position-bottom.wpr-tooltip-effect-shift-toward .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%)}.wpr-hotspot-tooltip-position-left.wpr-tooltip-effect-shift-toward .wpr-hotspot-tooltip{-webkit-transform:translate(-120%,-50%);-ms-transform:translate(-120%,-50%);transform:translate(-120%,-50%)}.wpr-hotspot-tooltip-position-left.wpr-tooltip-effect-shift-toward .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.wpr-hotspot-tooltip-position-right.wpr-tooltip-effect-shift-toward .wpr-hotspot-tooltip{-webkit-transform:translate(120%,-50%);-ms-transform:translate(120%,-50%);transform:translate(120%,-50%)}.wpr-hotspot-tooltip-position-right.wpr-tooltip-effect-shift-toward .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%)}.wpr-hotspot-tooltip-position-top.wpr-tooltip-effect-fade .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.wpr-hotspot-tooltip-position-bottom.wpr-tooltip-effect-fade .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%)}.wpr-hotspot-tooltip-position-left.wpr-tooltip-effect-fade .wpr-hotspot-tooltip{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.wpr-hotspot-tooltip-position-right.wpr-tooltip-effect-fade .wpr-hotspot-tooltip{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%)}.wpr-hotspot-tooltip-position-top.wpr-tooltip-effect-scale .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,-100%) scale(.7);-ms-transform:translate(-50%,-100%) scale(.7);transform:translate(-50%,-100%) scale(.7)}.wpr-hotspot-tooltip-position-bottom.wpr-tooltip-effect-scale .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,100%) scale(.7);-ms-transform:translate(-50%,100%) scale(.7);transform:translate(-50%,100%) scale(.7)}.wpr-hotspot-tooltip-position-left.wpr-tooltip-effect-scale .wpr-hotspot-tooltip{-webkit-transform:translate(-100%,-50%) scale(.7);-ms-transform:translate(-100%,-50%) scale(.7);transform:translate(-100%,-50%) scale(.7)}.wpr-hotspot-tooltip-position-right.wpr-tooltip-effect-scale .wpr-hotspot-tooltip{-webkit-transform:translate(100%,-50%) scale(.7);-ms-transform:translate(100%,-50%) scale(.7);transform:translate(100%,-50%) scale(.7)}.wpr-hotspot-tooltip-position-top.wpr-tooltip-effect-scale .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,-100%) scale(1);-ms-transform:translate(-50%,-100%) scale(1);transform:translate(-50%,-100%) scale(1)}.wpr-hotspot-tooltip-position-bottom.wpr-tooltip-effect-scale .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,100%) scale(1);-ms-transform:translate(-50%,100%) scale(1);transform:translate(-50%,100%) scale(1)}.wpr-hotspot-tooltip-position-left.wpr-tooltip-effect-scale .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-100%,-50%) scale(1);-ms-transform:translate(-100%,-50%) scale(1);transform:translate(-100%,-50%) scale(1)}.wpr-hotspot-tooltip-position-right.wpr-tooltip-effect-scale .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(100%,-50%) scale(1);-ms-transform:translate(100%,-50%) scale(1);transform:translate(100%,-50%) scale(1)}@keyframes wpr-hotspot-anim-pulse{0%,100%,87%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}88%,92%,96%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}90%,94%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}}@-webkit-keyframes wpr-hotspot-anim-pulse{0%,100%,87%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}88%,92%,96%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}90%,94%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}}.wpr-hotspot-anim-pulse{-webkit-animation-name:wpr-hotspot-anim-pulse;animation-name:wpr-hotspot-anim-pulse;-webkit-animation-duration:5s;animation-duration:5s}@keyframes wpr-hotspot-anim-shake{0%,100%,87%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}88%,92%,96%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}90%,94%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}}@-webkit-keyframes wpr-hotspot-anim-shake{0%,100%,87%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}88%,92%,96%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}90%,94%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}}.wpr-hotspot-anim-shake{-webkit-animation-name:wpr-hotspot-anim-shake;animation-name:wpr-hotspot-anim-shake;-webkit-animation-duration:5s;animation-duration:5s}@keyframes wpr-hotspot-anim-swing{0%,100%,70%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}75%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}80%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}85%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}90%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}}@-webkit-keyframes wpr-hotspot-anim-swing{0%,100%,70%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}75%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}80%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}85%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}90%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}}.wpr-hotspot-anim-swing{-webkit-animation-name:wpr-hotspot-anim-swing;animation-name:wpr-hotspot-anim-swing;-webkit-animation-duration:5s;animation-duration:5s}@keyframes wpr-hotspot-anim-tada{0%,100%,84%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}85%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}88%,92%,96%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}90%,94%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}}@-webkit-keyframes wpr-hotspot-anim-tada{0%,100%,84%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}85%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}88%,92%,96%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}90%,94%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}}.wpr-hotspot-anim-tada{-webkit-animation-name:wpr-hotspot-anim-tada;animation-name:wpr-hotspot-anim-tada;-webkit-animation-duration:6s;animation-duration:6s}@keyframes wpr-hotspot-anim-glow{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(1.5);transform:scale(1.5);opacity:0}}@-webkit-keyframes wpr-hotspot-anim-glow{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(1.5);transform:scale(1.5);opacity:0}}.wpr-hotspot-anim-glow:before{content:'';display:block;position:absolute;left:0;top:0;height:100%;width:100%;z-index:-1;-webkit-animation-name:wpr-hotspot-anim-glow;animation-name:wpr-hotspot-anim-glow;-webkit-animation-duration:2s;animation-duration:2s}.wpr-divider-wrap{display:inline-block;width:100%;overflow:hidden}.wpr-divider{display:-ms-flexbox;display:-webkit-box;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-divider-text{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.elementor-widget-wpr-divider .wpr-divider .wpr-divider-text{font-size:21px}.wpr-divider-border-left,.wpr-divider-border-right{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.wpr-divider-border{display:block;width:100%;height:1px}.wpr-divider-align-left .wpr-divider-border-left,.wpr-divider-align-right .wpr-divider-border-right{display:none}.wpr-divider-image{display:block;overflow:hidden}.wpr-business-hours{overflow:hidden}.wpr-business-hours-item{position:relative;display:-ms-flexbox;display:-webkit-box;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:all .1s;-o-transition:all .1s;transition:all .1s}.wpr-business-day{-webkit-box-flex:1;-ms-flex:1 0 0px;flex:1 0 0;text-align:left}.elementor-widget-wpr-business-hours .wpr-business-hours .wpr-business-closed,.elementor-widget-wpr-business-hours .wpr-business-hours .wpr-business-day,.elementor-widget-wpr-business-hours .wpr-business-hours .wpr-business-time{font-size:16px;font-weight:500}.wpr-business-closed,.wpr-business-time{-webkit-box-flex:1;-ms-flex:1 0 0px;flex:1 0 0;text-align:right}.wpr-business-hours-item:after{content:"";display:block;position:absolute;bottom:0;left:0;width:100%}.wpr-business-hours-item:last-of-type:after{display:none}.elementor-widget-wpr-business-hours .wpr-business-closed,.elementor-widget-wpr-business-hours .wpr-business-day,.elementor-widget-wpr-business-hours .wpr-business-time{font-weight:500}.wpr-flip-box{position:relative;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease;-webkit-perspective:1000px;perspective:1000px}.wpr-flip-box-item{position:absolute;top:0;left:0;width:100%;height:100%}.wpr-flip-box-front{z-index:5}.wpr-flip-box[data-trigger=box]{cursor:pointer}.elementor-widget-wpr-flip-box .wpr-flip-box-back .wpr-flip-box-content .wpr-flip-box-title,.elementor-widget-wpr-flip-box .wpr-flip-box-front .wpr-flip-box-content .wpr-flip-box-title{font-size:23px;font-weight:600}.elementor-widget-wpr-flip-box .wpr-flip-box-back .wpr-flip-box-content .wpr-flip-box-description,.elementor-widget-wpr-flip-box .wpr-flip-box-front .wpr-flip-box-content .wpr-flip-box-description{font-size:15px}.wpr-flip-box-item{-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-property:all;-o-transition-property:all;transition-property:all}.wpr-flip-box-content{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;z-index:10}.wpr-flip-box-overlay{position:absolute;width:100%;height:100%;top:0;left:0;z-index:5}.wpr-flip-box-link{display:block;position:absolute;width:100%;height:100%;top:0;left:0;z-index:20}.wpr-flip-box-btn{position:relative;display:inline-table;cursor:pointer}.wpr-flip-box-btn-icon{margin-left:5px}.wpr-flip-box-btn span{position:relative;z-index:2;opacity:1!important}.wpr-flip-box-btn:after,.wpr-flip-box-btn:before{z-index:1!important}.wpr-flip-box-image img{display:block;width:100%}.wpr-flip-box-title a,.wpr-flip-box-title a:hover{color:inherit}.wpr-flip-box-back-align-left .wpr-flip-box-back .wpr-flip-box-image img,.wpr-flip-box-front-align-left .wpr-flip-box-front .wpr-flip-box-image img{float:left}.wpr-flip-box-back-align-center .wpr-flip-box-back .wpr-flip-box-image img,.wpr-flip-box-front-align-center .wpr-flip-box-front .wpr-flip-box-image img{margin:0 auto}.wpr-flip-box-back-align-right .wpr-flip-box-back .wpr-flip-box-image img,.wpr-flip-box-front-align-right .wpr-flip-box-front .wpr-flip-box-image img{float:right}.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-left .wpr-flip-box-active .wpr-flip-box-front,.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-right .wpr-flip-box-back{-webkit-transform:rotateX(0) rotateY(-180deg);transform:rotateX(0) rotateY(-180deg)}.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-left .wpr-flip-box-back,.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-right .wpr-flip-box-active .wpr-flip-box-front{-webkit-transform:rotateX(0) rotateY(180deg);transform:rotateX(0) rotateY(180deg)}.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-down .wpr-flip-box-active .wpr-flip-box-front,.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-up .wpr-flip-box-back{-webkit-transform:rotateX(-180deg) rotateY(0);transform:rotateX(-180deg) rotateY(0)}.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-down .wpr-flip-box-back,.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-up .wpr-flip-box-active .wpr-flip-box-front{-webkit-transform:rotateX(180deg) rotateY(0);transform:rotateX(180deg) rotateY(0)}.wpr-flip-box-animation-flip .wpr-flip-box-active .wpr-flip-box-back{-webkit-transform:none;-ms-transform:none;transform:none}.wpr-flip-box-animation-3d-yes .wpr-flip-box-content{-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform:translateZ(70px) scale(.93);transform:translateZ(70px) scale(.93)}.wpr-flip-box-animation-push .wpr-flip-box,.wpr-flip-box-animation-slide .wpr-flip-box{overflow:hidden}.wpr-flip-box-animation-push .wpr-flip-box-back,.wpr-flip-box-animation-slide .wpr-flip-box-back{z-index:10}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-up .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-up .wpr-flip-box-back{top:100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-up .wpr-flip-box-active .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-up .wpr-flip-box-active .wpr-flip-box-back{top:0}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-down .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-down .wpr-flip-box-back{top:auto;bottom:100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-down .wpr-flip-box-active .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-down .wpr-flip-box-active .wpr-flip-box-back{top:auto;bottom:0}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-left .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-left .wpr-flip-box-back{left:100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-left .wpr-flip-box-active .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-left .wpr-flip-box-active .wpr-flip-box-back{left:0}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-right .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-right .wpr-flip-box-back{left:auto;right:100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-right .wpr-flip-box-active .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-right .wpr-flip-box-active .wpr-flip-box-back{left:auto;right:0}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-up .wpr-flip-box-active .wpr-flip-box-front{top:-100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-down .wpr-flip-box-active .wpr-flip-box-front{top:100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-left .wpr-flip-box-active .wpr-flip-box-front{left:-100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-right .wpr-flip-box-active .wpr-flip-box-front{left:100%}.wpr-flip-box-animation-fade .wpr-flip-box-active .wpr-flip-box-front{opacity:0}.wpr-flip-box-animation-zoom-in .wpr-flip-box-back{opacity:0;-webkit-transform:scale(.9);-ms-transform:scale(.9);transform:scale(.9);z-index:10}.wpr-flip-box-animation-zoom-in .wpr-flip-box-active .wpr-flip-box-back{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.wpr-flip-box-animation-zoom-out .wpr-flip-box-active .wpr-flip-box-front{opacity:0;-webkit-transform:scale(.9);-ms-transform:scale(.9);transform:scale(.9)}.elementor-widget-wpr-flip-box .wpr-flip-box-front{background-color:#605be5}.elementor-widget-wpr-flip-box .wpr-flip-box-back{background-color:#ff348b}.wpr-promo-box{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.wpr-promo-box-image{position:relative;overflow:hidden}.wpr-promo-box-style-cover .wpr-promo-box-image,.wpr-promo-box-style-pro-cs .wpr-promo-box-image{position:absolute;top:0;left:0;height:100%;width:100%}.wpr-promo-box-bg-image{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10;background-size:cover;background-position:50%}.wpr-promo-box-bg-overlay{position:absolute;top:0;left:0;height:100%;width:100%;z-index:15;-webkit-transition-property:all;-o-transition-property:all;transition-property:all}.wpr-promo-box-content{position:relative;z-index:20;width:100%;display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.elementor-widget-wpr-promo-box.wpr-promo-box-style-classic .wpr-promo-box-content{background-color:#212121}.elementor-widget-wpr-promo-box.wpr-promo-box-style-classic .wpr-promo-box:hover .wpr-promo-box-content{background-color:#ddb34f}.wpr-promo-box-image-position-right .wpr-promo-box{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-promo-box-image-position-center .wpr-promo-box{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width:640px){.wpr-promo-box-style-classic .wpr-promo-box{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-promo-box-style-classic .wpr-promo-box-image{min-width:auto!important}}.wpr-promo-box-link{display:block;position:absolute;width:100%;height:100%;top:0;left:0;z-index:40}.wpr-promo-box-btn{display:inline-block}.wpr-promo-box-btn-wrap,.wpr-promo-box-description,.wpr-promo-box-icon,.wpr-promo-box-title{width:100%}.wpr-promo-box-btn-icon{margin-left:5px}.wpr-promo-box-icon img{display:inline-block}.elementor .elementor-widget-wpr-promo-box .wpr-promo-box:hover .wpr-promo-box-bg-image{-webkit-filter:brightness( 100% ) contrast( 100% ) saturate( 100% ) hue-rotate( 0deg );filter:brightness( 100% ) contrast( 100% ) saturate( 100% ) hue-rotate( 0deg )}.wpr-promo-box-badge{position:absolute;display:inline-block;text-align:center;z-index:35}.wpr-promo-box-badge-left{left:0;right:auto}.wpr-promo-box-badge-right{left:auto;right:0}.wpr-promo-box-badge-corner{top:0;width:200px;height:200px;overflow:hidden}.wpr-promo-box-badge-corner .wpr-promo-box-badge-inner{width:200%}.wpr-promo-box-badge-corner.wpr-promo-box-badge-right{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.wpr-promo-box-badge-cyrcle{top:0}.wpr-promo-box-badge-cyrcle.wpr-promo-box-badge-left{-webkit-transform:translateX(-40%) translateY(-40%);-ms-transform:translateX(-40%) translateY(-40%);transform:translateX(-40%) translateY(-40%)}.wpr-promo-box-badge-cyrcle.wpr-promo-box-badge-right{-webkit-transform:translateX(40%) translateY(-40%);-ms-transform:translateX(40%) translateY(-40%);transform:translateX(40%) translateY(-40%)}.wpr-promo-box-badge-cyrcle .wpr-promo-box-badge-inner{border-radius:100%}.wpr-promo-box-badge-flag{border-right:5px}.wpr-promo-box-badge-flag.wpr-promo-box-badge-left{margin-left:-10px}.wpr-promo-box-badge-flag.wpr-promo-box-badge-right{margin-right:-10px}.wpr-promo-box-badge-flag:before{content:"";position:absolute;z-index:1;bottom:-5px;width:0;height:0;margin-left:-10px;border-left:10px solid transparent;border-right:10px solid transparent;border-top-style:solid;border-top-width:10px}.wpr-promo-box-badge-flag .wpr-promo-box-badge-inner{position:relative;z-index:2;border-top-left-radius:3px;border-top-right-radius:3px}.wpr-promo-box-badge-flag.wpr-promo-box-badge-left:before{left:5px;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.wpr-promo-box-badge-flag.wpr-promo-box-badge-right:before{right:-5px;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.wpr-promo-box-badge-flag.wpr-promo-box-badge-left .wpr-promo-box-badge-inner{border-bottom-right-radius:3px}.wpr-promo-box-badge-flag.wpr-promo-box-badge-right .wpr-promo-box-badge-inner{border-bottom-left-radius:3px}.elementor-widget-wpr-promo-box .wpr-promo-box-title{font-size:24px;font-weight:600}.elementor-widget-wpr-promo-box .wpr-promo-box-description{font-size:15px}.elementor-widget-wpr-promo-box .wpr-promo-box-badge,.elementor-widget-wpr-promo-box .wpr-promo-box-btn{font-size:14px}.elementor-widget-wpr-promo-box .wpr-promo-box-badge .wpr-promo-box-badge-inner{font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}.elementor-widget-wpr-promo-box .wpr-promo-box-badge-corner .wpr-promo-box-badge-inner{line-height:1.6}.wpr-content-ticker{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.wpr-content-ticker-inner{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;z-index:20;width:100%;overflow:hidden}.wpr-ticker-arrow-position-left .wpr-content-ticker-inner{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-ticker-gradient-type-both .wpr-ticker-gradient:before,.wpr-ticker-gradient-type-left .wpr-ticker-gradient:before{content:"";position:absolute;bottom:0;top:0;left:0;width:40px;z-index:20}.wpr-ticker-gradient-type-both .wpr-ticker-gradient:after,.wpr-ticker-gradient-type-right .wpr-ticker-gradient:after{content:"";position:absolute;bottom:0;top:0;right:0;width:40px;z-index:20}.wpr-ticker-arrow-position-left .wpr-ticker-slider-controls{margin-right:20px}.wpr-ticker-arrow-position-right .wpr-ticker-slider-controls{margin-left:20px}.wpr-ticker-slider{position:relative;width:100%;overflow:hidden}.wpr-ticker-heading-position-right .wpr-content-ticker{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-ticker-title{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-align-items:center;overflow:hidden;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-duration:.2s;-o-transition-duration:.2s;transition-duration:.2s}.wpr-ticker-title a,.wpr-ticker-title:hover a{color:inherit}.elementor-widget-wpr-content-ticker .wpr-ticker-item .wpr-ticker-title{font-size:14px}.wpr-ticker-title-inner{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:inline}.wpr-ticker-heading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;z-index:25;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.wpr-ticker-heading-icon-position-left .wpr-ticker-heading{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.elementor-widget-wpr-content-ticker .wpr-content-ticker .wpr-ticker-heading{font-size:14px}.wpr-ticker-heading-triangle-middle .wpr-ticker-heading:before{content:"";position:absolute;width:0;height:0;background:0 0!important;border-bottom-color:transparent;border-top-color:transparent;border-right-style:solid;border-bottom-style:solid;border-top-style:solid;border-width:10px;top:50%;-webkit-transition-property:inherit;-o-transition-property:inherit;transition-property:inherit;-webkit-transition-timing-function:inherit;-o-transition-timing-function:inherit;transition-timing-function:inherit;-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.wpr-ticker-heading-triangle-bottom .wpr-ticker-heading:before,.wpr-ticker-heading-triangle-top .wpr-ticker-heading:before{content:"";position:absolute;top:0;bottom:0;width:100%;z-index:1;-webkit-transition-property:inherit;-o-transition-property:inherit;transition-property:inherit;-webkit-transition-timing-function:inherit;-o-transition-timing-function:inherit;transition-timing-function:inherit;-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.wpr-ticker-heading-icon,.wpr-ticker-heading-text{position:relative;z-index:20;-webkit-transition-property:inherit;-o-transition-property:inherit;transition-property:inherit;-webkit-transition-timing-function:inherit;-o-transition-timing-function:inherit;transition-timing-function:inherit;-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.wpr-ticker-heading-triangle-top .wpr-ticker-heading:before{-ms-transform:skew(20deg);transform:skew(20deg);-webkit-transform:skew(20deg)}.wpr-ticker-heading-triangle-bottom .wpr-ticker-heading:before{-ms-transform:skew(-20deg);transform:skew(-20deg);-webkit-transform:skew(-20deg)}.wpr-ticker-heading-position-left.wpr-ticker-heading-triangle-middle .wpr-ticker-heading:before{-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.wpr-ticker-heading-position-right.wpr-ticker-heading-triangle-middle .wpr-ticker-heading:before{-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-ticker-slider-controls{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-ticker-arrow-style-vertical .wpr-ticker-slider-controls{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-ticker-arrow-style-horizontal .wpr-ticker-slider-controls{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.wpr-ticker-arrow{-webkit-box-sizing:content-box;box-sizing:content-box;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;cursor:pointer}.wpr-ticker-arrow i{display:block;width:100%;height:100%;line-height:inherit}.wpr-ticker-next-arrow{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.wpr-content-ticker-inner .wpr-ticker-item{display:-moz-flex!important;display:-ms-flex!important;display:-o-flex!important;display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center!important;-ms-flex-align:center!important;align-items:center;position:relative;overflow:hidden}.wpr-ticker-marquee{overflow:hidden}.wpr-ticker-marquee .js-marquee{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-ticker-arrow-style-vertical .wpr-ticker-slider .wpr-ticker-item{margin:1px 0}.wpr-ticker-image{margin-right:10px}.wpr-ticker-link{display:block;position:absolute;width:100%;height:100%;top:0;left:0;z-index:20}.wpr-ticker-icon-circle{display:block;border-radius:50%;-webkit-border-radius:50%;z-index:5;-webkit-transition-property:inherit;-o-transition-property:inherit;transition-property:inherit;-webkit-transition-timing-function:inherit;-o-transition-timing-function:inherit;transition-timing-function:inherit;-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.wpr-ticker-icon-circle:after,.wpr-ticker-icon-circle:before{content:"";position:absolute;top:50%;left:50%;-webkit-animation-name:wpr-ticker-icon-blink;animation-name:wpr-ticker-icon-blink;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;border-radius:50%;border-width:1px;border-style:solid;-webkit-border-radius:50%;-moz-border-radius:50%;-webkit-transition-property:inherit;-o-transition-property:inherit;transition-property:inherit;-webkit-transition-timing-function:inherit;-o-transition-timing-function:inherit;transition-timing-function:inherit;-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.wpr-ticker-icon-circle:after{-webkit-animation-delay:1s;animation-delay:1s}@-webkit-keyframes wpr-ticker-icon-blink{0%{-webkit-transform:scale(1,1);transform:scale(1,1)}100%{-webkit-transform:scale(3,3);transform:scale(3,3);opacity:0}}@keyframes wpr-ticker-icon-blink{0%{-webkit-transform:scale(1,1);transform:scale(1,1)}100%{-webkit-transform:scale(3,3);transform:scale(3,3);opacity:0}}.wpr-tabs{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-tabs-position-above>.elementor-widget-container>.wpr-tabs{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-tabs-position-left>.elementor-widget-container>.wpr-tabs{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.wpr-tabs-position-right>.elementor-widget-container>.wpr-tabs{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-tabs-wrap{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.wpr-tabs-position-left>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap,.wpr-tabs-position-right>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-tabs-hr-position-center>.elementor-widget-container>.wpr-tabs{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-tabs-hr-position-left>.elementor-widget-container>.wpr-tabs{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.wpr-tabs-hr-position-right>.elementor-widget-container>.wpr-tabs{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.wpr-tabs-hr-position-justify>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap{width:100%}.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab,.wpr-tabs-hr-position-justify>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0}.wpr-tabs-hr-position-justify>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:first-of-type{margin-left:0!important}.wpr-tabs-hr-position-justify>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:last-of-type{margin-right:0!important}.wpr-tab{position:relative;z-index:25;display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.wpr-tab,.wpr-tab-icon,.wpr-tab-image,.wpr-tab-title{-webkit-transition-property:all;-o-transition-property:all;transition-property:all}.wpr-tab-icon,.wpr-tab-icon i,.wpr-tab-image,.wpr-tab-title{-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.elementor-element.elementor-widget-wpr-tabs>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab .wpr-tab-title,.elementor-element.elementor-widget-wpr-tabs>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab.wpr-tab-active .wpr-tab-title,.elementor-element.elementor-widget-wpr-tabs>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:hover .wpr-tab-title{font-size:15px;font-weight:500}.wpr-tabs-content-wrap{position:relative;width:100%;-webkit-transition-property:height;-o-transition-property:height;transition-property:height;-webkit-transition-timing-function:cubic-bezier(.5,.9,.6,.95);-o-transition-timing-function:cubic-bezier(.5,.9,.6,.95);transition-timing-function:cubic-bezier(.5,.9,.6,.95);-webkit-transition-duration:.5s;-o-transition-duration:.5s;transition-duration:.5s;z-index:1;overflow:hidden}.wpr-tab-content{position:absolute;width:100%;top:0;left:0;z-index:1}.elementor-element.elementor-widget-wpr-tabs>.elementor-widget-container>.wpr-tabs>.wpr-tabs-content-wrap>.wpr-tab-content{font-size:14px}.wpr-tab-content-active{position:relative;z-index:100}.wpr-tab-content-inner{opacity:0}.wpr-tab-content-active .wpr-tab-content-inner.wpr-overlay-none{opacity:1}.wpr-tabs-icon-position-left>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab .wpr-tab-icon,.wpr-tabs-icon-position-left>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab .wpr-tab-image{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.wpr-tabs-icon-position-left>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab .wpr-tab-title{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.wpr-tabs-icon-position-center>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.wpr-tabs-triangle-yes>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{content:"";position:absolute;width:0;height:0;-webkit-transition-property:border-color;-o-transition-property:border-color;transition-property:border-color;-webkit-transition-timing-function:ease-in;-o-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0;visibility:hidden;z-index:110}.wpr-tabs-triangle-yes>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab-active.wpr-tab:before{opacity:1;visibility:visible}.wpr-tabs-position-above>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{border-left-color:transparent;border-right-color:transparent;border-top-color:#fff;border-top-style:solid;border-left-style:solid;border-right-style:solid}.wpr-tabs-position-left>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before,.wpr-tabs-position-right>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{border-bottom-color:transparent;border-top-color:transparent;border-right-style:solid;border-bottom-style:solid;border-top-style:solid}.wpr-tabs-position-above.wpr-tabs-triangle-type-outer.wpr-tabs-position-above>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%)}.wpr-tabs-position-above.wpr-tabs-triangle-type-inner.wpr-tabs-position-above>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{left:50%;-ms-transform:translateX(-50%) rotate(180deg);transform:translateX(-50%) rotate(180deg);-webkit-transform:translateX(-50%) rotate(180deg);bottom:-1px}.wpr-tabs-position-left.wpr-tabs-triangle-type-outer>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before,.wpr-tabs-position-right.wpr-tabs-triangle-type-inner>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{top:50%;-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg);-webkit-transform:translateY(-50%) rotate(180deg)}.wpr-tabs-position-left.wpr-tabs-triangle-type-inner>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before,.wpr-tabs-position-right.wpr-tabs-triangle-type-outer>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translateY(-50%)}.wpr-tabs-position-left.wpr-tabs-triangle-type-inner>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{right:0}.wpr-tabs-position-right.wpr-tabs-triangle-type-inner>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{left:0}.wpr-ticker-effect-typing .wpr-ticker-title:after{display:inline-block;vertical-align:top;opacity:1;color:inherit;margin-left:2px}.wpr-ticker-effect-typing .slick-current .wpr-ticker-title:after{-webkit-animation-name:wpr-cursor-blink;animation-name:wpr-cursor-blink;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-duration:.5s;animation-duration:.5s}.wpr-ticker-effect-typing .slick-current .wpr-ticker-title-inner{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-animation:wpr-ticker-typing 1s steps(30,end);animation:wpr-ticker-typing 1s steps(30,end);overflow:hidden}@-webkit-keyframes wpr-ticker-typing{from{width:0}to{width:100%}}@keyframes wpr-ticker-typing{from{width:0}to{width:100%}}.wpr-switcher-container{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto}.wpr-switcher-wrap{position:relative;display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-switcher{position:relative;display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;z-index:20;cursor:pointer}.wpr-switcher-inner{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-switcher-label-style-outer>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-first{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpr-switcher-label-style-outer>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-second{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.wpr-switcher-icon-position-left>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-inner>.wpr-switcher-icon,.wpr-switcher-icon-position-left>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-outer>.wpr-switcher-wrap>.wpr-switcher>.wpr-switcher-inner>.wpr-switcher-icon{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.wpr-switcher-icon-position-left>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-inner>.wpr-switcher-label,.wpr-switcher-icon-position-left>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-outer>.wpr-switcher-wrap>.wpr-switcher>.wpr-switcher-inner>.wpr-switcher-label{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.wpr-switcher-content-wrap{position:relative;width:100%;-webkit-transition-property:height;-o-transition-property:height;transition-property:height;-webkit-transition-timing-function:cubic-bezier(.5,.9,.6,.95);-o-transition-timing-function:cubic-bezier(.5,.9,.6,.95);transition-timing-function:cubic-bezier(.5,.9,.6,.95);-webkit-transition-duration:.5s;-o-transition-duration:.5s;transition-duration:.5s;z-index:1;overflow:hidden}.wpr-switcher-content{position:absolute;width:100%;top:0;left:0;z-index:1}.wpr-switcher-content-active{position:relative;z-index:100}.wpr-switcher-content-inner{opacity:0}.wpr-switcher-content-active .wpr-switcher-content-inner.wpr-overlay-none{opacity:1}.wpr-switcher-bg{position:absolute;height:100%;z-index:1;-o-transition:all ease-in-out .4s;transition:all ease-in-out .4s;-webkit-transition:all ease-in-out .4s}.wpr-switcher-style-dual.wpr-switcher-label-style-outer>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container[data-active-switcher*="1"] .wpr-switcher-bg{left:0}.wpr-switcher-style-dual.wpr-switcher-label-style-outer>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container[data-active-switcher*="2"] .wpr-switcher-bg{left:100%;-ms-transform:translateX(-100%);transform:translateX(-100%);-webkit-transform:translateX(-100%)}.wpr-stt-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-stt-btn{border:none;cursor:pointer;font-size:16px;line-height:48px;text-align:center;padding:20px;max-width:5cm;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1;box-shadow:0 0 10px 0 rgb(0,0,0,.25)}.wpr-stt-btn-icon-left .wpr-stt-btn{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-stt-btn-icon-right .wpr-stt-btn{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-stt-btn-icon-bottom .wpr-stt-btn{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.wpr-stt-btn-icon-top .wpr-stt-btn{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-stt-btn-align-fixed .wpr-stt-btn{visibility:hidden;position:fixed;z-index:9999}.wpr-stt-btn-align-fixed-right .wpr-stt-btn{left:auto}.wpr-stt-btn-align-fixed-left .wpr-stt-btn{right:auto}.wpr-pc-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-pc-btn{border:none;cursor:pointer;font-size:16px;line-height:48px;text-align:center;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1}.elementor a.wpr-pc-btn{box-shadow:0 0 10px 0 rgb(0,0,0,.2)}.wpr-pc-content{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-pc-btn-icon-right .wpr-pc-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-pc-btn-icon-left .wpr-pc-content{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-pc-btn-icon-bottom .wpr-pc-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-pc-btn-icon-top .wpr-pc-content{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.wpr-pc-btn-align-fixed .wpr-pc-btn{position:fixed;z-index:9999}.wpr-pc-btn-align-fixed-right .wpr-pc-btn{left:auto}.wpr-pc-btn-align-fixed-left .wpr-pc-btn{right:auto}
|
1 |
+
html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline}article,aside,figcaption,figure,footer,header,main,nav,section{display:block}ul{list-style-type:none}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible;border:0;height:1px;margin:20px 0}pre{font-family:monospace,monospace;font-size:1em}a{text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{display:block;border-style:none}svg:not(:root){overflow:hidden;display:inline}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:0}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important}[type=search]:focus{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}.wpr-hidden-element{display:none!important}.wpr-cv-container{display:block;width:100%;height:100%;position:absolute;left:0;top:0;z-index:90}.wpr-cv-outer{display:table;width:100%;height:100%}.wpr-cv-inner{display:table-cell;vertical-align:middle}.wpr-no-transition-delay{-webkit-transition-delay:0s!important;-o-transition-delay:0s!important;transition-delay:0s!important}.wpr-enable-dropcap p:first-child:first-letter{float:left;padding-right:10px;font-size:50px;line-height:1}.wpr-tooltip{visibility:hidden;opacity:0;position:absolute;top:0;left:0;-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%);padding:6px 10px;border-radius:4px;font-size:15px;-webkit-transition:all 230ms ease-in-out 0s;-o-transition:all 230ms ease-in-out 0s;transition:all 230ms ease-in-out 0s}.wpr-tooltip:before{content:"";position:absolute;left:10px;bottom:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top-style:solid;border-top-width:6px}.wpr-mobile-nav-menu,.wpr-nav-menu{list-style:none;font-size:0}.wpr-nav-menu li{position:relative}.wpr-nav-menu-horizontal .wpr-nav-menu>li{display:inline-block}.wpr-nav-menu .wpr-menu-item{display:block;position:relative;z-index:1}.wpr-mobile-nav-menu li,.wpr-nav-menu li{font-size:16px;line-height:1}.wpr-nav-menu-horizontal .wpr-nav-menu>li:first-child,.wpr-pointer-line-fx .wpr-nav-menu-horizontal>li:first-child .wpr-menu-item,.wpr-pointer-none .wpr-nav-menu-horizontal>li:first-child .wpr-menu-item{padding-left:0!important;margin-left:0!important}.wpr-nav-menu-horizontal .wpr-nav-menu>li:last-child,.wpr-pointer-line-fx .wpr-nav-menu-horizontal>li:last-child .wpr-menu-item,.wpr-pointer-none .wpr-nav-menu-horizontal>li:last-child .wpr-menu-item{padding-right:0!important;margin-right:0!important}div[class*=wpr-main-menu-align-] .wpr-nav-menu-vertical .wpr-nav-menu>li>.wpr-sub-menu{left:100%}.wpr-main-menu-align-center .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align-left .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align-right .wpr-nav-menu-vertical .wpr-sub-icon{left:0}.wpr-main-menu-align-left .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align-left .wpr-nav-menu-vertical .wpr-menu-item,.wpr-main-menu-align-left .wpr-nav-menu-vertical .wpr-sub-menu li a{text-align:left}.wpr-main-menu-align-center .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align-center .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align-right .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align-right .wpr-nav-menu-vertical .wpr-menu-item,.wpr-main-menu-align-right .wpr-nav-menu-vertical .wpr-sub-menu li a{text-align:right}@media screen and (min-width:2400px){.wpr-main-menu-align--widescreencenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--widescreenleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--widescreenleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--widescreenleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--widescreencenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--widescreencenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--widescreenright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--widescreenright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}@media screen and (max-width:1221px){.wpr-main-menu-align--laptopcenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--laptopleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--laptopleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--laptopleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--laptopcenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--laptopcenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--laptopright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--laptopright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}@media screen and (max-width:1200px){.wpr-main-menu-align--tablet_extracenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--tablet_extraleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--tablet_extraleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tablet_extraleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--tablet_extracenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tablet_extracenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--tablet_extraright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tablet_extraright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}@media screen and (max-width:1024px){.wpr-main-menu-align--tabletcenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--tabletleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--tabletleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tabletleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--tabletcenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tabletcenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--tabletright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--tabletright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}@media screen and (max-width:880px){.wpr-main-menu-align--mobile_extracenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--mobile_extraleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--mobile_extraleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobile_extraleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--mobile_extracenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobile_extracenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--mobile_extraright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobile_extraright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}@media screen and (max-width:767px){.wpr-main-menu-align--mobilecenter .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon,.wpr-main-menu-align--mobileleft .wpr-nav-menu-vertical .wpr-menu-item .wpr-sub-icon{right:0}.wpr-main-menu-align--mobileleft .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobileleft .wpr-nav-menu-vertical .wpr-menu-item{text-align:left}.wpr-main-menu-align--mobilecenter .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobilecenter .wpr-nav-menu-vertical .wpr-menu-item{text-align:center}.wpr-main-menu-align--mobileright .wpr-nav-menu-horizontal .wpr-nav-menu,.wpr-main-menu-align--mobileright .wpr-nav-menu-vertical .wpr-menu-item{text-align:right}}.wpr-nav-menu .wpr-sub-menu{display:none;position:absolute;z-index:999;width:180px;text-align:left;list-style:none;margin:0}.wpr-nav-menu-vertical .wpr-nav-menu>li>.wpr-sub-menu{top:0}.wpr-sub-menu-position-inline .wpr-nav-menu-vertical .wpr-sub-menu{position:static;width:100%!important;text-align:center!important;margin-left:0!important}.wpr-sub-menu-position-inline .wpr-sub-menu a{position:relative}.wpr-nav-menu .wpr-sub-menu .wpr-sub-menu{top:0;left:100%}.wpr-sub-menu .wpr-sub-menu-item{display:block;font-size:14px}.wpr-nav-menu-horizontal .wpr-menu-item .wpr-sub-icon{margin-left:7px;text-indent:0}.wpr-sub-icon{position:absolute;top:48%;transform:translateY(-50%);-ms-transform:translateY(-50%);-webkit-transform:translateY(-50%)}.wpr-sub-icon-rotate{-webkit-transform:rotate(-90deg) translateX(80%);-ms-transform:rotate(-90deg) translateX(80%);transform:rotate(-90deg) translateX(80%)}.wpr-sub-divider-yes .wpr-sub-menu li:not(:last-child){border-bottom-style:solid}.wpr-mobile-nav-menu,.wpr-mobile-nav-menu-container{display:none}.wpr-mobile-nav-menu{position:absolute;z-index:9999}.wpr-mobile-menu-drdown-align-left .wpr-mobile-nav-menu{left:0}.wpr-mobile-menu-drdown-align-center .wpr-mobile-nav-menu{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-mobile-menu-drdown-align-right .wpr-mobile-nav-menu{right:0}.wpr-mobile-menu-item,.wpr-mobile-sub-menu-item{position:relative}.wpr-mobile-menu-item,.wpr-mobile-sub-menu-item{display:block}.wpr-mobile-sub-menu{display:none}.wpr-mobile-nav-menu .menu-item-has-children>a:after{position:absolute;right:0;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);-webkit-transform:translateY(-50%)}.wpr-mobile-menu-item-align-left .wpr-mobile-sub-menu a:before{content:' ';display:inline-block;width:10px}.wpr-mobile-menu-item-align-left .wpr-mobile-sub-menu .wpr-mobile-sub-menu a:before{width:20px}.wpr-mobile-menu-item-align-center .wpr-mobile-nav-menu{text-align:center}.wpr-mobile-menu-item-align-right .wpr-mobile-nav-menu{text-align:right}.wpr-mobile-menu-item-align-right .wpr-mobile-nav-menu .menu-item-has-children>a:after{right:auto!important;left:0}div[class*=wpr-sub-icon-] .wpr-mobile-nav-menu .menu-item-has-children>a:after{font-family:"Font Awesome 5 Free";font-size:12px;font-weight:900;font-style:normal;text-decoration:none;line-height:1;letter-spacing:0;text-rendering:auto;-webkit-font-smoothing:antialiased}.wpr-sub-icon-caret-down .wpr-mobile-nav-menu .menu-item-has-children>a:after,.wpr-sub-icon-caret-down .wpr-sub-icon:before{content:"\f0d7"}.wpr-sub-icon-angle-down .wpr-mobile-nav-menu .menu-item-has-children>a:after,.wpr-sub-icon-angle-down .wpr-sub-icon:before{content:"\f107"}.wpr-sub-icon-chevron-down .wpr-mobile-nav-menu .menu-item-has-children>a:after,.wpr-sub-icon-chevron-down .wpr-sub-icon:before{content:"\f078"}.wpr-sub-icon-plus .wpr-mobile-nav-menu .menu-item-has-children>a:after,.wpr-sub-icon-plus .wpr-sub-icon:before{content:"\f067"}.wpr-mobile-divider-yes .wpr-mobile-nav-menu a{border-bottom-style:solid}.wpr-mobile-toggle-wrap{font-size:0;line-height:0}.wpr-mobile-toggle{display:inline-block;padding:7px;cursor:pointer;border-style:solid;text-align:center}.wpr-mobile-toggle-line{display:block;width:100%}.wpr-mobile-toggle-line:last-child{margin-bottom:0!important}.wpr-mobile-toggle-text{font-size:16px;line-height:1!important}.wpr-mobile-toggle-text:last-child{display:none}.wpr-mobile-toggle-v2 .wpr-mobile-toggle-line:nth-child(2){width:78%;margin-left:24%}.wpr-mobile-toggle-v2 .wpr-mobile-toggle-line:nth-child(3){width:45%;margin-left:57%}.wpr-mobile-toggle-v3 .wpr-mobile-toggle-line:nth-child(2){width:75%;margin-left:15%}.wpr-mobile-toggle-v4 .wpr-mobile-toggle-line:nth-child(1),.wpr-mobile-toggle-v4 .wpr-mobile-toggle-line:nth-child(3){width:75%;margin-left:25%}.wpr-mobile-toggle-v4 .wpr-mobile-toggle-line:nth-child(2){width:75%;margin-right:25%}.wpr-mobile-toggle-v5 .wpr-mobile-toggle-line:nth-child(1){display:none}.wpr-nav-menu-bp-always .wpr-nav-menu-container{display:none}.wpr-nav-menu-bp-always .wpr-mobile-nav-menu-container{display:block}@media screen and (max-width:1025px){.wpr-nav-menu-bp-tablet .wpr-nav-menu-container{display:none}.wpr-nav-menu-bp-tablet .wpr-mobile-nav-menu-container{display:block}}@media screen and (max-width:767px){.wpr-nav-menu-bp-mobile .wpr-nav-menu-container,.wpr-nav-menu-bp-pro-al .wpr-nav-menu-container,.wpr-nav-menu-bp-pro-nn .wpr-nav-menu-container{display:none}.wpr-nav-menu-bp-mobile .wpr-mobile-nav-menu-container,.wpr-nav-menu-bp-pro-al .wpr-mobile-nav-menu-container,.wpr-nav-menu-bp-pro-nn .wpr-mobile-nav-menu-container{display:block}}.wpr-pointer-background-fx .wpr-active-menu-item:before,.wpr-pointer-border-fx .wpr-active-menu-item:before,.wpr-pointer-line-fx .wpr-active-menu-item:after,.wpr-pointer-line-fx .wpr-active-menu-item:before{opacity:1!important}.wpr-pointer-fx-none{-webkit-transition-duration:0s!important;-o-transition-duration:0s!important;transition-duration:0s!important}.wpr-pointer-double-line.wpr-pointer-fx-grow .wpr-active-menu-item:after,.wpr-pointer-double-line.wpr-pointer-fx-grow .wpr-active-menu-item:before,.wpr-pointer-double-line.wpr-pointer-fx-slide .wpr-active-menu-item:after,.wpr-pointer-double-line.wpr-pointer-fx-slide .wpr-active-menu-item:before,.wpr-pointer-overline.wpr-pointer-fx-grow .wpr-active-menu-item:before,.wpr-pointer-overline.wpr-pointer-fx-slide .wpr-active-menu-item:before,.wpr-pointer-underline.wpr-pointer-fx-grow .wpr-active-menu-item:after,.wpr-pointer-underline.wpr-pointer-fx-slide .wpr-active-menu-item:after{width:100%}.wpr-pointer-line-fx.wpr-pointer-fx-drop .wpr-active-menu-item:before{top:0}.wpr-pointer-line-fx.wpr-pointer-fx-drop .wpr-active-menu-item:after{bottom:0}.wpr-pointer-background-fx.wpr-pointer-fx-grow .wpr-active-menu-item:before,.wpr-pointer-background-fx.wpr-pointer-fx-shrink .wpr-active-menu-item:before,.wpr-pointer-background-fx.wpr-pointer-fx-sweep .wpr-active-menu-item:before,.wpr-pointer-border-fx.wpr-pointer-fx-grow .wpr-active-menu-item:before,.wpr-pointer-border-fx.wpr-pointer-fx-shrink .wpr-active-menu-item:before{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.wpr-pointer-background-fx.wpr-pointer-fx-skew .wpr-active-menu-item:before{-webkit-transform:perspective(600px) rotateX(0);transform:perspective(600px) rotateX(0)}.wpr-mobile-nav-menu .sub-menu-toggle{display:none!important}.elementor-widget-wpr-nav-menu .wpr-mobile-nav-menu a,.elementor-widget-wpr-nav-menu .wpr-mobile-toggle-text,.elementor-widget-wpr-nav-menu .wpr-nav-menu .wpr-menu-item{line-height:26px}.elementor-widget-wpr-nav-menu .wpr-sub-menu .wpr-sub-menu-item{font-size:14px}.wpr-onepage-nav{position:fixed;z-index:99999;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-onepage-nav-item{position:relative}.wpr-onepage-nav-item:last-child{margin-bottom:0!important}.wpr-onepage-nav-vr-top .wpr-onepage-nav{top:0}.wpr-onepage-nav-vr-middle .wpr-onepage-nav{top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translateY(-50%)}.wpr-onepage-nav-vr-bottom .wpr-onepage-nav{bottom:0}.wpr-onepage-nav-hr-left .wpr-onepage-nav{left:0}.wpr-onepage-nav-hr-right .wpr-onepage-nav{right:0}.wpr-onepage-nav-item .wpr-tooltip{text-align:center}.wpr-onepage-nav-item:hover .wpr-tooltip{opacity:1;visibility:visible}.wpr-onepage-nav-hr-left .wpr-onepage-nav-item:hover .wpr-tooltip{-ms-transform:translate(10%,-50%);transform:translate(10%,-50%);-webkit-transform:translate(10%,-50%)}.wpr-onepage-nav-hr-left .wpr-onepage-nav-item .wpr-tooltip{top:50%;left:100%;-ms-transform:translate(20%,-50%);transform:translate(20%,-50%);-webkit-transform:translate(20%,-50%)}.wpr-onepage-nav-hr-left .wpr-onepage-nav-item .wpr-tooltip:before{left:auto;left:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(90deg);-ms-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}.wpr-onepage-nav-hr-right .wpr-onepage-nav-item:hover .wpr-tooltip{-ms-transform:translate(-110%,-50%);transform:translate(-110%,-50%);-webkit-transform:translate(-110%,-50%)}.wpr-onepage-nav-hr-right .wpr-onepage-nav-item .wpr-tooltip{top:50%;left:0;-ms-transform:translate(-120%,-50%);transform:translate(-120%,-50%);-webkit-transform:translate(-120%,-50%)}.wpr-onepage-nav-hr-right .wpr-onepage-nav-item .wpr-tooltip:before{left:auto;right:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(-90deg);-ms-transform:translateY(-50%) rotate(-90deg);transform:translateY(-50%) rotate(-90deg)}.elementor-widget-wpr-onepage-nav .wpr-onepage-nav{background-color:#605be5;-webkit-box-shadow:0 0 15px 0 #d7d7d7;box-shadow:0 0 15px 0 #d7d7d7}.elementor-widget-wpr-onepage-nav .wpr-onepage-nav-item .wpr-tooltip{font-size:14px}.wpr-featured-media-image{position:relative;display:inline-block;vertical-align:middle}.wpr-featured-media-caption{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%}.wpr-featured-media-caption span{display:inline-block}.wpr-fm-image-caption-hover [data-caption=gallery] .wpr-featured-media-caption,.wpr-fm-image-caption-hover [data-caption=standard] .wpr-featured-media-caption{opacity:0;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.wpr-fm-image-caption-hover [data-caption=gallery]:hover .wpr-featured-media-caption,.wpr-fm-image-caption-hover [data-caption=standard]:hover .wpr-featured-media-caption{opacity:1}.wpr-gallery-slider{opacity:0}.wpr-gallery-lightbox-yes .wpr-featured-media-image{cursor:pointer}.wpr-gallery-slide img{margin:0 auto}.wpr-gallery-slider-arrow{position:absolute;z-index:120;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;text-align:center;cursor:pointer}.wpr-gallery-slider-arrow i{display:block;width:100%;height:100%;line-height:inherit}.wpr-gallery-slider-arrow{-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-gallery-slider-nav-fade .wpr-gallery-slider-arrow{opacity:0;visibility:hidden}.wpr-gallery-slider-nav-fade .wpr-gallery-slider:hover .wpr-gallery-slider-arrow{opacity:1;visibility:visible}.wpr-gallery-slider-dots{position:absolute;display:inline-table;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:110}.wpr-gallery-slider-dots ul{list-style:none;margin:0;padding:0}.wpr-gallery-slider-dots li{float:left}.wpr-gallery-slider-dot{display:block;cursor:pointer}.wpr-gallery-slider-dots li:last-child .wpr-gallery-slider-dot{margin:0!important}.wpr-author-box-image{display:inline-block;overflow:hidden}.wpr-author-box-arrange-left .wpr-author-box{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-author-box-arrange-right .wpr-author-box{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-author-box-arrange-left .wpr-author-box-image,.wpr-author-box-arrange-right .wpr-author-box-image{-ms-flex-negative:0;flex-shrink:0}.wpr-author-box-arrange-left .wpr-author-box-text,.wpr-author-box-arrange-right .wpr-author-box-text{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.wpr-author-box-btn{display:inline-block}.wpr-post-navigation-wrap{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-post-navigation-wrap>div:last-child{margin-right:0!important}.wpr-post-nav-fixed-default-wrap{position:fixed;bottom:0;z-index:999}.wpr-post-nav-fixed.wpr-post-navigation{position:fixed;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);z-index:999}.wpr-post-nav-fixed.wpr-post-navigation a{display:block}.wpr-post-nav-fixed.wpr-post-navigation img{position:absolute;top:0}.wpr-post-nav-fixed.wpr-post-nav-prev{left:0}.wpr-post-nav-fixed.wpr-post-nav-next{right:0}.wpr-post-nav-fixed.wpr-post-nav-hover img{opacity:0}.wpr-post-nav-fixed.wpr-post-nav-hover.wpr-post-nav-prev img{-webkit-transform:perspective(600px) rotateY(90deg);transform:perspective(600px) rotateY(90deg);-webkit-transform-origin:center left 0;-ms-transform-origin:center left 0;transform-origin:center left 0}.wpr-post-nav-fixed.wpr-post-nav-hover.wpr-post-nav-next img{-webkit-transform:perspective(600px) rotateY(-90deg);transform:perspective(600px) rotateY(-90deg);-webkit-transform-origin:center right 0;-ms-transform-origin:center right 0;transform-origin:center right 0}.wpr-post-nav-fixed.wpr-post-nav-hover:hover img{opacity:1;position:absolute;-webkit-transform:none;-ms-transform:none;transform:none}.wpr-post-nav-static.wpr-post-navigation{width:50%}.wpr-post-navigation{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;background-size:cover;background-position:center center;background-repeat:no-repeat}.wpr-post-navigation{position:relative}.wpr-post-navigation a{position:relative;z-index:2}.wpr-post-nav-overlay{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transition:all .3s ease-in 0s;-o-transition:all .3s ease-in 0s;transition:all .3s ease-in 0s}.wpr-post-nav-back{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;font-size:30px}.wpr-post-navigation a{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-post-nav-next a{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpr-post-nav-labels{min-width:0}.wpr-post-nav-labels h5{overflow:hidden;white-space:nowrap;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.wpr-post-nav-next{text-align:right}.wpr-post-navigation i{font-size:20px;text-align:center}.wpr-post-nav-labels span{display:inline-block}.wpr-post-nav-dividers{padding:10px 0;border-top:1px solid #000;border-bottom:1px solid #000}.wpr-post-nav-divider{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;-ms-flex-negative:0;flex-shrink:0}.wpr-post-nav-dividers.wpr-post-navigation-wrap{padding-left:0!important;padding-right:0!important}.wpr-post-nav-back a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:0}.wpr-post-nav-back span{display:inline-block;border-style:solid}.wpr-post-nav-back span:nth-child(2n){margin-right:0!important}.wpr-post-info li{position:relative}.wpr-post-info-horizontal li{display:inline-block}.wpr-post-info-horizontal li:last-child{padding-right:0!important}.wpr-post-info-vertical li:last-child{padding-bottom:0!important}.wpr-post-info li:after{content:' ';display:inline-block;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-post-info li:last-child:after{display:none}.wpr-post-info li .wpr-post-info-text{display:inline-block;text-align:left!important}.wpr-post-info-align-left .wpr-post-info-vertical li:after{left:0}.wpr-post-info-align-center .wpr-post-info-vertical li:after{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-post-info-align-right .wpr-post-info-vertical li:after{right:0}.wpr-post-info-text span{display:inline-block}.wpr-post-info-author img{display:inline-block;margin-right:10px}.wpr-post-info-custom-field a,.wpr-post-info-custom-field span{display:inline-block}.wpr-comment-avatar{float:left;overflow:hidden}.wpr-comment-avatar img{position:static!important}.wpr-comment-metadata>*{display:inline-block}.wpr-comment-metadata p{display:block}.wpr-comments-wrap .comment-reply-link{float:none!important}.wpr-comment-reply-separate.wpr-comment-reply-align-right .wpr-comment-reply{text-align:right}.wpr-comment-reply-inline.wpr-comment-reply-align-right .wpr-comment-reply{float:right}.wpr-comment-reply-inline.wpr-comment-reply-align-left .wpr-comment-reply:before{content:'\00a0|\00a0'}.wpr-comment-reply a,.wpr-comments-navigation a,.wpr-comments-navigation span{display:inline-block}.wpr-comments-navigation-center,.wpr-comments-navigation-justify{text-align:center}.wpr-comments-navigation-left{text-align:left}.wpr-comments-navigation-right{text-align:right}.wpr-comments-navigation-justify a.prev{float:left}.wpr-comments-navigation-justify a.next{float:right}.wpr-comment-form .comment-notes{display:none}.wpr-comment-form-author input,.wpr-comment-form-email input,.wpr-comment-form-text,.wpr-comment-form-text textarea,.wpr-comment-form-url input{display:block;width:100%}.wpr-comment-form{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-contact-form-fields{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-cf-no-url .wpr-comment-form-email{margin-right:0!important}.wpr-cf-style-1 .wpr-contact-form-fields,.wpr-cf-style-4 .wpr-contact-form-fields{display:block}.wpr-comment-form .wpr-contact-form-fields>div{width:100%}.wpr-cf-style-2 .wpr-contact-form-fields,.wpr-cf-style-5 .wpr-contact-form-fields{display:block;width:50%}.wpr-cf-style-2 .wpr-contact-form-fields>div,.wpr-cf-style-5 .wpr-contact-form-fields>div{margin-right:0!important}.wpr-cf-style-4.wpr-comment-form .wpr-comment-form-text,.wpr-cf-style-5.wpr-comment-form .wpr-comment-form-text,.wpr-cf-style-6.wpr-comment-form .wpr-comment-form-text{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.wpr-submit-comment{cursor:pointer}.wpr-comments-list .comment-respond{margin-bottom:30px}.wpr-product-media-wrap{position:relative;display:inline-block;max-width:100%}.wpr-product-media-image{display:inline-block;position:relative;vertical-align:middle;overflow:hidden}.wpr-product-media-caption{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%}.wpr-product-media-caption span{display:inline-block}.wpr-pd-image-caption-hover .wpr-product-media-wrap .wpr-product-media-caption{opacity:0;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.wpr-pd-image-caption-hover .wpr-product-media-wrap:hover .wpr-product-media-caption{opacity:1}.wpr-product-thumb-nav li{overflow:hidden;cursor:pointer;opacity:.75}.wpr-product-thumb-nav li.slick-current{opacity:1}.wpr-product-thumb-nav li img{width:100%}.wpr-gallery-lightbox-yes .wpr-product-media-image{cursor:pointer}.wpr-gallery-zoom-yes .wpr-product-media-image:hover img{-webkit-transform:scale(1.5);-ms-transform:scale(1.5);transform:scale(1.5)}.wpr-product-media-onsale{position:absolute;top:0;left:0;z-index:2}.wpr-product-price-separate .wpr-product-price del,.wpr-product-price-separate .wpr-product-price ins{display:block}.wpr-grid{opacity:0}.wpr-grid-item{float:left;position:relative;text-align:center}.wpr-grid-item,.wpr-grid-item *{outline:0!important}.wpr-grid-last-row{margin-bottom:0!important}.wpr-grid-item-above-content{border-bottom:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.wpr-grid:not([data-settings*=list]) .wpr-grid-item-below-content{border-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.wpr-grid-item-inner,.wpr-grid-media-wrap{position:relative}.wpr-grid-image-wrap{overflow:hidden}.wpr-grid-image-wrap img{display:block;width:100%}.wpr-grid-media-hover{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.wpr-grid-media-hover-top{position:absolute;top:0;left:0;width:100%;z-index:2}.wpr-grid-media-hover-bottom{position:absolute;bottom:0;left:0;width:100%;z-index:2}.wpr-grid-media-hover-middle{position:relative;z-index:2}.wpr-grid .wpr-cv-container,.wpr-magazine-grid .wpr-cv-container{z-index:1}.wpr-grid-item-display-block{clear:both}.wpr-grid-item-display-custom.wpr-grid-item-align-left,.wpr-grid-item-display-inline.wpr-grid-item-align-left{float:left}.wpr-grid-item-display-custom.wpr-grid-item-align-right,.wpr-grid-item-display-inline.wpr-grid-item-align-right{float:right}.wpr-grid-item-display-custom.wpr-grid-item-align-center,.wpr-grid-item-display-inline.wpr-grid-item-align-center{float:none;display:inline-block;vertical-align:middle}.wpr-grid-cf-style-1 .inner-block>a,.wpr-grid-cf-style-1 .inner-block>span,.wpr-grid-cf-style-2 .inner-block>a,.wpr-grid-cf-style-2 .inner-block>span,.wpr-grid-item-add-to-cart .inner-block>a,.wpr-grid-item-author .inner-block a,.wpr-grid-item-comments .inner-block a,.wpr-grid-item-date .inner-block>span,.wpr-grid-item-lightbox .inner-block>span,.wpr-grid-item-likes .inner-block a,.wpr-grid-item-price .inner-block>span,.wpr-grid-item-read-more .inner-block a,.wpr-grid-item-sharing .inner-block>span,.wpr-grid-item-status .inner-block>span,.wpr-grid-item-time .inner-block>span,.wpr-grid-item-title .inner-block a,.wpr-grid-product-categories .inner-block a,.wpr-grid-product-tags .inner-block a,.wpr-grid-sep-style-1 .inner-block>span,.wpr-grid-sep-style-2 .inner-block>span,.wpr-grid-tax-style-1 .inner-block a,.wpr-grid-tax-style-2 .inner-block a{display:inline-block}.wpr-grid-item-display-custom.wpr-grid-cf-style-1 .inner-block>a,.wpr-grid-item-display-custom.wpr-grid-cf-style-1 .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-cf-style-2 .inner-block>a,.wpr-grid-item-display-custom.wpr-grid-cf-style-2 .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-add-to-cart .inner-block>a,.wpr-grid-item-display-custom.wpr-grid-item-comments .inner-block a,.wpr-grid-item-display-custom.wpr-grid-item-date .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-lightbox .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-likes .inner-block a,.wpr-grid-item-display-custom.wpr-grid-item-product-price .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-product-status .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-read-more .inner-block a,.wpr-grid-item-display-custom.wpr-grid-item-sharing .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-time .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-item-title .inner-block a,.wpr-grid-item-display-custom.wpr-grid-sep-style-1 .inner-block>span,.wpr-grid-item-display-custom.wpr-grid-sep-style-2 .inner-block>span{width:100%}.wpr-grid-item-excerpt .inner-block p{margin:0!important}.wpr-grid-media-hover-bg{position:absolute}.wpr-grid-media-hover-bg img{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) scale(1)!important;-ms-transform:translate(-50%,-50%) scale(1)!important;transform:translate(-50%,-50%) scale(1)!important;-webkit-filter:grayscale(0)!important;filter:grayscale(0)!important;-webkit-filter:blur(0)!important;-filter:blur(0)!important}.wpr-grid-item-author img,.wpr-grid-item-author span{display:inline-block;vertical-align:middle}.wpr-grid-item-author img{-webkit-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-filter:none!important;filter:none!important}.wpr-grid-item-likes .inner-block a{text-align:center}.wpr-likes-no-default.wpr-likes-zero i{padding:0!important}.wpr-grid-item-sharing .inner-block a{text-align:center}.wpr-grid-item-sharing .wpr-post-sharing{position:relative}.wpr-grid-item-sharing .wpr-sharing-icon{display:inline-block;position:relative}.wpr-grid-item-sharing .wpr-sharing-icon .wpr-tooltip{left:50%;-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform:translate(-50%,-100%)}.wpr-grid-item-sharing .wpr-sharing-icon:hover .wpr-tooltip{visibility:visible;opacity:1;-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%);-webkit-transform:translate(-50%,-120%)}.wpr-grid-item-sharing .wpr-tooltip:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%)}.wpr-grid-item-sharing .wpr-sharing-trigger{cursor:pointer}.wpr-grid-item-sharing .wpr-tooltip{display:block;padding:10px}.wpr-grid-item-sharing .wpr-sharing-hidden{visibility:hidden;position:absolute;z-index:3;text-align:center}.wpr-grid-item-sharing .wpr-sharing-hidden a{opacity:0}.wpr-sharing-hidden a{position:relative;top:-5px;-webkit-transition-duration:.3s!important;-o-transition-duration:.3s!important;transition-duration:.3s!important;-webkit-transition-timing-function:cubic-bezier(.445,.050,.55,.95);-o-transition-timing-function:cubic-bezier(.445,.050,.55,.95);transition-timing-function:cubic-bezier(.445,.050,.55,.95);-webkit-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s}.wpr-sharing-hidden a+a{-webkit-transition-delay:.1s;-o-transition-delay:.1s;transition-delay:.1s}.wpr-sharing-hidden a+a+a{-webkit-transition-delay:.2s;-o-transition-delay:.2s;transition-delay:.2s}.wpr-sharing-hidden a+a+a+a{-webkit-transition-delay:.3s;-o-transition-delay:.3s;transition-delay:.3s}.wpr-sharing-hidden a+a+a+a+a{-webkit-transition-delay:.4s;-o-transition-delay:.4s;transition-delay:.4s}.wpr-grid-item-sharing a:last-of-type{margin-right:0!important}.wpr-grid-item-sharing .inner-block a{-webkit-transition-property:color,background-color,border;-o-transition-property:color,background-color,border;transition-property:color,background-color,border;-webkit-transition-timing-function:linear;-o-transition-timing-function:linear;transition-timing-function:linear}.wpr-grid-item-add-to-cart .inner-block>a,.wpr-grid-item-read-more .inner-block>a{position:relative;overflow:hidden;vertical-align:middle}.wpr-grid-item-add-to-cart .inner-block>a i,.wpr-grid-item-add-to-cart .inner-block>a span,.wpr-grid-item-read-more .inner-block>a i,.wpr-grid-item-read-more .inner-block>a span{position:relative;z-index:2;opacity:1}.wpr-grid-item-add-to-cart .inner-block>a:after,.wpr-grid-item-add-to-cart .inner-block>a:before,.wpr-grid-item-read-more .inner-block>a:after,.wpr-grid-item-read-more .inner-block>a:before{z-index:1}.wpr-grid-item-lightbox .inner-block>span,.wpr-grid-lightbox-overlay{cursor:pointer}.wpr-grid-lightbox-overlay{position:absolute;top:0;left:0;z-index:10;width:100%;height:100%}.admin-bar .lg-toolbar{top:32px}.wpr-grid-item-separator .inner-block{font-size:0;line-height:0}.wpr-grid-item-separator.wpr-grid-item-display-inline span{width:100%!important}.wpr-woo-rating i{display:inline;position:relative;font-family:eicons;font-style:normal;line-height:1;overflow:hidden}.wpr-woo-rating i:before{content:'\e934';font-weight:900;display:block;position:absolute;top:0;left:0;font-size:inherit;font-family:inherit;overflow:hidden}.wpr-woo-rating-style-2 .wpr-woo-rating i:before{content:'\002605'}.wpr-woo-rating i:last-of-type{margin-right:0!important}.wpr-rating-icon-empty:before{display:none!important}.wpr-rating-icon-0:before{width:0}.wpr-rating-icon-1:before{width:10%}.wpr-rating-icon-2:before{width:20%}.wpr-rating-icon-3:before{width:30%}.wpr-rating-icon-4:before{width:40%}.wpr-rating-icon-5:before{width:50%}.wpr-rating-icon-6:before{width:60%}.wpr-rating-icon-7:before{width:70%}.wpr-rating-icon-8:before{width:80%}.wpr-rating-icon-9:before{width:90%}.wpr-rating-icon-full:before{width:100%}.wpr-grid-filters li{display:inline-block}.wpr-grid-filters li:last-of-type{margin-right:0!important}.wpr-grid-filters li span{display:inline-block;cursor:pointer;text-decoration:inherit}.wpr-grid-filters li a{display:inline-block}.wpr-grid-filters li sup{position:relative;padding-left:5px;line-height:1}.wpr-grid-filters li sup[data-brackets=yes]:before{content:'\0028'}.wpr-grid-filters li sup[data-brackets=yes]:after{content:'\0029'}.wpr-grid-filters .wpr-active-filter.wpr-pointer-item:after,.wpr-grid-filters .wpr-active-filter.wpr-pointer-item:before{opacity:1!important;width:100%!important}.wpr-grid-filters-sep{font-style:normal}.wpr-grid-filters-sep-left li:first-child .wpr-grid-filters-sep,.wpr-grid-filters-sep-right li:last-of-type .wpr-grid-filters-sep{display:none}.wpr-sub-filters{display:none}.wpr-grid-sorting{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.wpr-grid-sorting .woocommerce-ordering,.wpr-grid-sorting>div{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.wpr-grid-sorting .woocommerce-ordering{text-align:right}.wpr-grid-sorting .woocommerce-ordering select{width:auto;outline:0!important}.wpr-grid-sorting .woocommerce-ordering,.wpr-grid-sorting .woocommerce-result-count,.wpr-grid-sorting .wpr-shop-page-title{margin:0!important}.wpr-grid-pagination{margin-top:30px}.wpr-grid-pagination>a,.wpr-grid-pagination>span{display:inline-block}.wpr-grid-pagination svg{vertical-align:middle}.wpr-grid-pagination .wpr-disabled-arrow{cursor:not-allowed;opacity:.4}.wpr-pagination-finish,.wpr-pagination-loading{display:none}.wpr-grid-pagination-center .wpr-grid-pagination,.wpr-grid-pagination-justify .wpr-grid-pagination{text-align:center}.wpr-grid-pagination-left .wpr-grid-pagination{text-align:left}.wpr-grid-pagination-right .wpr-grid-pagination{text-align:right}.wpr-grid-pagination-infinite-scroll{text-align:center}.wpr-grid-pagination-justify .wpr-grid-pagi-left-arrows,.wpr-grid-pagination-justify .wpr-grid-pagination-default .wpr-prev-post-link{float:left}.wpr-grid-pagination-justify .wpr-grid-pagi-right-arrows,.wpr-grid-pagination-justify .wpr-grid-pagination-default .wpr-next-post-link{float:right}.wpr-grid-pagi-left-arrows,.wpr-grid-pagi-right-arrows,.wpr-grid-pagination>div>a,.wpr-grid-pagination>div>span{display:inline-block}.wpr-grid-pagi-right-arrows a:last-child,.wpr-grid-pagi-right-arrows span:last-child,.wpr-load-more-btn{margin-right:0!important}@media screen and (max-width:767px){.wpr-grid-pagination a,.wpr-grid-pagination span{margin-bottom:10px}.wpr-grid-pagination a>span,.wpr-grid-pagination span>span{display:none}.wpr-grid-pagination a i,.wpr-grid-pagination span i{padding:0!important}}.elementor-editor-active .wpr-grid-pagination-infinite-scroll{display:none}.wpr-grid-slider-nav-position-default .wpr-grid-slider-arrow-container{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-grid-slider-nav-position-default .wpr-grid-slider-arrow{position:static}.wpr-grid-slider-nav-position-default .wpr-grid-slider-prev-arrow{-ms-transform:none;transform:none;-webkit-transform:none}.wpr-grid-slider-nav-position-default .wpr-grid-slider-next-arrow{-ms-transform:translateY(0) rotate(180deg);transform:translateY(0) rotate(180deg);-webkit-transform:translateY(0) rotate(180deg)}.wpr-grid-slider-nav-align-bottom-center .wpr-grid-slider-arrow-container,.wpr-grid-slider-nav-align-top-center .wpr-grid-slider-arrow-container{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-grid-slider-arrow{position:absolute;z-index:120;top:50%;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;text-align:center;cursor:pointer}.wpr-grid-slider-arrow i{display:block;width:100%;height:100%}.wpr-grid-slider-prev-arrow{left:1%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-grid-slider-next-arrow{right:1%;-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.wpr-grid-slider-nav-fade .wpr-grid-slider-arrow-container{opacity:0;visibility:hidden}.wpr-grid-slider-nav-fade:hover .wpr-grid-slider-arrow-container{opacity:1;visibility:visible}.wpr-grid-slider-dots{display:inline-table;position:absolute;z-index:110;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wpr-grid-slider-dots ul{list-style:none;margin:0;padding:0}.wpr-grid-slider-dots-horizontal .wpr-grid-slider-dots li,.wpr-grid-slider-dots-pro-vr .slick-dots li{float:left}.wpr-grid.slick-dotted.slick-slider{margin-bottom:0!important}.wpr-grid-slider-dots-vertical .slick-dots li{display:block;width:auto!important;height:auto!important;margin:0!important}.wpr-grid-slider-dots-horizontal .slick-dots li,.wpr-grid-slider-dots-pro-vr .slick-dots li{width:auto!important;padding-top:10px;margin:0!important}.wpr-grid-slider-dots-horizontal .slick-dots li:last-child span{margin-right:0!important}.wpr-grid-slider-dot{display:block;cursor:pointer}.wpr-grid-slider-dots li:last-child .wpr-grid-slider-dot{margin:0!important}.wpr-grid-item-protected{position:absolute;top:0;left:0;z-index:11!important;width:100%;height:100%}.wpr-grid-item-protected i{font-size:22px}.wpr-grid-item-protected input{width:50%;border:none;margin-top:10px;padding:7px 13px;font-size:13px}.elementor-widget-wpr-grid .wpr-grid-media-hover-bg,.elementor-widget-wpr-media-grid .wpr-grid-media-hover-bg,.elementor-widget-wpr-woo-grid .wpr-grid-media-hover-bg{background-color:rgba(0,0,0,.25)}.elementor-widget-wpr-magazine-grid .wpr-grid-media-hover-bg{background-image:-o-linear-gradient(top,rgba(255,255,255,0) 46%,rgba(96,91,229,.87) 100%);background-image:-webkit-gradient(linear,left top,left bottom,color-stop(46%,rgba(255,255,255,0)),to(rgba(96,91,229,.87)));background-image:linear-gradient(180deg,rgba(255,255,255,0) 46%,rgba(96,91,229,.87) 100%)}.elementor-widget-wpr-grid .wpr-grid-item-title,.elementor-widget-wpr-woo-grid .wpr-grid-item-title{font-size:21px;font-weight:700;line-height:23px}.elementor-widget-wpr-magazine-grid .wpr-grid-item-title{font-size:22px}.elementor-widget-wpr-media-grid .wpr-grid-item-title{font-size:15px;font-weight:500}.elementor-widget-wpr-grid .wpr-grid-cf-style-1,.elementor-widget-wpr-grid .wpr-grid-filters li,.elementor-widget-wpr-grid .wpr-grid-item-author,.elementor-widget-wpr-grid .wpr-grid-item-content,.elementor-widget-wpr-grid .wpr-grid-item-excerpt,.elementor-widget-wpr-grid .wpr-grid-item-likes,.elementor-widget-wpr-grid .wpr-grid-item-protected p,.elementor-widget-wpr-grid .wpr-grid-item-read-more a,.elementor-widget-wpr-grid .wpr-grid-item-sharing,.elementor-widget-wpr-grid .wpr-grid-item-time,.elementor-widget-wpr-grid .wpr-grid-pagination,.elementor-widget-wpr-grid .wpr-grid-tax-style-1,.elementor-widget-wpr-magazine-grid .wpr-grid-item-content,.elementor-widget-wpr-magazine-grid .wpr-grid-item-excerpt,.elementor-widget-wpr-media-grid .wpr-grid-filters li,.elementor-widget-wpr-media-grid .wpr-grid-item-sharing,.elementor-widget-wpr-woo-grid .wpr-grid-item-add-to-cart a,.elementor-widget-wpr-woo-grid .wpr-grid-item-content,.elementor-widget-wpr-woo-grid .wpr-grid-item-lightbox,.elementor-widget-wpr-woo-grid .wpr-grid-item-likes,.elementor-widget-wpr-woo-grid .wpr-grid-item-price .inner-block>span,.elementor-widget-wpr-woo-grid .wpr-grid-item-sharing,.elementor-widget-wpr-woo-grid .wpr-grid-item-status .inner-block>span,.elementor-widget-wpr-woo-grid .wpr-grid-pagination,.elementor-widget-wpr-woo-grid .wpr-grid-product-categories,.elementor-widget-wpr-woo-grid .wpr-grid-product-tags,.elementor-widget-wpr-woo-grid .wpr-woo-rating span{font-size:14px}.elementor-widget-wpr-magazine-grid .wpr-grid-tax-style-1{font-size:12px;list-style-position:.5px}.elementor-widget-wpr-magazine-grid .wpr-grid-item-author,.elementor-widget-wpr-magazine-grid .wpr-grid-item-date,.elementor-widget-wpr-magazine-grid .wpr-grid-item-time{font-size:12px;list-style-position:.3px}.elementor-widget-wpr-grid .wpr-grid-item-comments,.elementor-widget-wpr-grid .wpr-grid-item-date,.elementor-widget-wpr-grid .wpr-grid-tax-style-2,.elementor-widget-wpr-media-grid .wpr-grid-item-author,.elementor-widget-wpr-media-grid .wpr-grid-item-caption,.elementor-widget-wpr-media-grid .wpr-grid-item-date,.elementor-widget-wpr-media-grid .wpr-grid-item-likes,.elementor-widget-wpr-media-grid .wpr-grid-item-time,.elementor-widget-wpr-media-grid .wpr-grid-tax-style-1,.elementor-widget-wpr-media-grid .wpr-grid-tax-style-2,.elementor-widget-wpr-media-magazine-grid .wpr-grid-tax-style-2{font-size:14px}.elementor-widget-wpr-grid .wpr-grid-item-lightbox,.elementor-widget-wpr-media-grid .wpr-grid-item-lightbox{font-size:18px}.elementor-widget-wpr-grid .wpr-grid-cf-style-2,.elementor-widget-wpr-media-grid .wpr-grid-pagination{font-size:15px}.elementor-widget-wpr-grid .wpr-grid-tax-style-2 .inner-block a{background-color:#605be5}.elementor-widget-wpr-grid .wpr-grid-tax-style-2 .inner-block a:hover{background-color:#4a45d2}.wpr-magazine-grid{display:-ms-grid;display:grid;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;-ms-grid-rows:1fr 1fr;grid-template-rows:1fr 1fr}.wpr-mgzn-grid-item{text-align:center}.wpr-mgzn-grid-1vh-3h{-ms-grid-rows:auto;grid-template-rows:auto}.wpr-mgzn-grid-1-1-1{-ms-grid-rows:1fr;grid-template-rows:1fr}.wpr-mgzn-grid-1-1-3,.wpr-mgzn-grid-2-3{-ms-grid-columns:(1fr)[6];grid-template-columns:repeat(6,1fr)}.wpr-mgzn-grid-2-h{-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr)}.wpr-mgzn-grid-3-h{-ms-grid-columns:(1fr)[3];grid-template-columns:repeat(3,1fr)}.wpr-mgzn-grid-4-h{-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr)}.wpr-mgzn-grid-1vh-3h .wpr-mgzn-grid-item:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:3;grid-row-end:4}.wpr-mgzn-grid-1vh-3h .wpr-mgzn-grid-item:nth-child(2){-ms-grid-column:2;grid-column-start:2}.wpr-mgzn-grid-1vh-3h .wpr-mgzn-grid-item:nth-child(3){-ms-grid-column:2;grid-column-start:2}.wpr-mgzn-grid-1vh-3h .wpr-mgzn-grid-item:nth-child(4){-ms-grid-column:2;grid-column-start:2}.wpr-mgzn-grid-1-1-2 .wpr-mgzn-grid-item:nth-child(1),.wpr-mgzn-grid-1-2 .wpr-mgzn-grid-item:nth-child(1),.wpr-mgzn-grid-1-3 .wpr-mgzn-grid-item:nth-child(1),.wpr-mgzn-grid-1-4 .wpr-mgzn-grid-item:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:2;grid-row-end:3}.wpr-mgzn-grid-1-1-2 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:2;grid-row-end:3}.wpr-mgzn-grid-2-1-2 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-column:2;grid-column-start:2;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:2;grid-row-end:3}.wpr-mgzn-grid-1-3 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:2;grid-column-end:4}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(1),.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(2),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(1),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:1;grid-row-end:2}.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:3;grid-column-end:4}.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-column:4;grid-column-start:4;-ms-grid-column-span:3;grid-column-end:7}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:4;grid-column-end:5}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(2){-ms-grid-column:5;grid-column-start:5;-ms-grid-column-span:2;grid-column-end:7}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(3),.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(4),.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(5),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(3),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(4),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(5){-ms-grid-row:2;grid-row-start:2;-ms-grid-row-span:1;grid-row-end:3}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(3),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(3){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(4),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(4){-ms-grid-column:3;grid-column-start:3;-ms-grid-column-span:2;grid-column-end:5}.wpr-mgzn-grid-1-1-3 .wpr-mgzn-grid-item:nth-child(5),.wpr-mgzn-grid-2-3 .wpr-mgzn-grid-item:nth-child(5){-ms-grid-column:5;grid-column-start:5;-ms-grid-column-span:2;grid-column-end:7}.wpr-magazine-grid .wpr-grid-image-wrap,.wpr-magazine-grid .wpr-grid-item-inner,.wpr-magazine-grid .wpr-grid-media-wrap{height:100%}.wpr-magazine-grid .wpr-grid-image-wrap{background-size:cover;background-position:center center}.wpr-magazine-grid .wpr-grid-media-hover{z-index:1}@media screen and (max-width:1024px){.wpr-magazine-grid.wpr-mgzn-grid-1-2{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-2>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-2 article:nth-child(1){-ms-grid-column-span:3!important;grid-column-end:3!important}.wpr-magazine-grid.wpr-mgzn-grid-1-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:1fr 1fr 1fr!important;grid-template-rows:1fr 1fr 1fr!important}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-3>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-3 article:nth-child(1){-ms-grid-column-span:3!important;grid-column-end:3!important;-ms-grid-row-span:2!important;grid-row-end:2!important}.wpr-magazine-grid.wpr-mgzn-grid-1-3 article:nth-child(2){-ms-grid-column:1!important;grid-column-start:1!important;-ms-grid-column-span:2!important;grid-column-end:3!important}.wpr-magazine-grid.wpr-mgzn-grid-1-4{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[3];grid-template-rows:repeat(3,1fr)}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-4>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-4 article:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3;-ms-grid-row-span:1!important;grid-row-end:1!important}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:1fr 1fr 1fr!important;grid-template-rows:1fr 1fr 1fr!important}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2 article:nth-child(1){-ms-grid-column-span:3;grid-column-end:3;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:1;grid-row-end:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-2 article:nth-child(2){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3;-ms-grid-row:2;grid-row-start:2;-ms-grid-row-span:1;grid-row-end:3}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:1fr 1fr 1fr!important;grid-template-rows:1fr 1fr 1fr!important}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-1-2 article:nth-child(2){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3;-ms-grid-row:2;grid-row-start:2}.wpr-magazine-grid.wpr-mgzn-grid-1vh-3h{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:1fr 1fr!important;grid-template-rows:1fr 1fr!important}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-1 article:nth-child(2){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3;-ms-grid-row:1;grid-row-start:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[3];grid-template-rows:repeat(3,1fr)}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3 article:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:2;grid-column-end:3;-ms-grid-row-span:2;grid-row-end:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3 article:nth-child(2){-ms-grid-row:2;grid-row-start:2;-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3 article:nth-child(3){-ms-grid-row:2;grid-row-start:2;-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3 article:nth-child(4){-ms-grid-row:3;grid-row-start:3;-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2}.wpr-magazine-grid.wpr-mgzn-grid-1-1-3 article:nth-child(5){-ms-grid-row:3;grid-row-start:3;-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3}.wpr-magazine-grid.wpr-mgzn-grid-2-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[6]!important;grid-template-rows:repeat(6,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(7){-ms-grid-row:4;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(8){-ms-grid-row:4;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(9){-ms-grid-row:5;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(10){-ms-grid-row:5;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(11){-ms-grid-row:6;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-2-3>:nth-child(12){-ms-grid-row:6;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-2-3 article:nth-child(1){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:3;grid-row-end:4}.wpr-magazine-grid.wpr-mgzn-grid-2-3 article:nth-child(2){-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2;-ms-grid-row:4;grid-row-start:4;-ms-grid-row-span:3;grid-row-end:7}.wpr-magazine-grid.wpr-mgzn-grid-2-3 article:nth-child(3){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:2;grid-row-end:3}.wpr-magazine-grid.wpr-mgzn-grid-2-3 article:nth-child(4){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-row:3;grid-row-start:3;-ms-grid-row-span:2;grid-row-end:5}.wpr-magazine-grid.wpr-mgzn-grid-2-3 article:nth-child(5){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-row:5;grid-row-start:5;-ms-grid-row-span:2;grid-row-end:7}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-1{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[2]!important;grid-template-rows:repeat(2,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-1>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-1>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-1>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-1>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[4]!important;grid-template-rows:repeat(4,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(7){-ms-grid-row:4;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-2>:nth-child(8){-ms-grid-row:4;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;-ms-grid-rows:(1fr)[6]!important;grid-template-rows:repeat(6,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(3){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(4){-ms-grid-row:2;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(5){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(6){-ms-grid-row:3;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(7){-ms-grid-row:4;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(8){-ms-grid-row:4;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(9){-ms-grid-row:5;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(10){-ms-grid-row:5;-ms-grid-column:2}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(11){-ms-grid-row:6;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-4-h.wpr-mgzn-grid-rows-3>:nth-child(12){-ms-grid-row:6;-ms-grid-column:2}}@media screen and (max-width:767px){.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-1{-ms-grid-columns:1fr!important;grid-template-columns:1fr!important;-ms-grid-rows:(1fr)[3]!important;grid-template-rows:repeat(3,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-1>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-1>:nth-child(2){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-1>:nth-child(3){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2{-ms-grid-columns:1fr!important;grid-template-columns:1fr!important;-ms-grid-rows:(1fr)[6]!important;grid-template-rows:repeat(6,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(2){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(3){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(4){-ms-grid-row:4;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(5){-ms-grid-row:5;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-2>:nth-child(6){-ms-grid-row:6;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3{-ms-grid-columns:1fr!important;grid-template-columns:1fr!important;-ms-grid-rows:(1fr)[9]!important;grid-template-rows:repeat(9,1fr)!important}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(2){-ms-grid-row:2;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(3){-ms-grid-row:3;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(4){-ms-grid-row:4;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(5){-ms-grid-row:5;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(6){-ms-grid-row:6;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(7){-ms-grid-row:7;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(8){-ms-grid-row:8;-ms-grid-column:1}.wpr-magazine-grid.wpr-mgzn-grid-3-h.wpr-mgzn-grid-rows-3>:nth-child(9){-ms-grid-row:9;-ms-grid-column:1}}.wpr-sharing-buttons .wpr-sharing-icon{overflow:hidden;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;color:#fff!important}.wpr-sharing-buttons .wpr-sharing-icon i{display:block;text-align:center}.wpr-sharing-label{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.elementor-widget-wpr-sharing-buttons.elementor-grid-0 .wpr-sharing-buttons,.elementor-widget-wpr-sharing-buttons[class*=elementor-grid-pro-] .wpr-sharing-buttons{display:-webkit-box;display:-ms-flexbox;display:flex}.elementor-widget-wpr-sharing-buttons:not(.elementor-grid-0):not(.elementor-grid-pro-3):not(.elementor-grid-pro-4):not(.elementor-grid-pro-5):not(.elementor-grid-pro-6) .wpr-sharing-label-off .wpr-sharing-icon i{width:100%!important}.wpr-sharing-buttons.wpr-sharing-col-1 .wpr-sharing-icon{width:100%;margin-right:0!important}.wpr-sharing-buttons .wpr-sharing-icon:last-child,.wpr-sharing-col-1 .wpr-sharing-buttons .wpr-sharing-icon,.wpr-sharing-col-2 .wpr-sharing-buttons .wpr-sharing-icon:nth-child(2n),.wpr-sharing-col-3 .wpr-sharing-buttons .wpr-sharing-icon:nth-child(3n),.wpr-sharing-col-4 .wpr-sharing-buttons .wpr-sharing-icon:nth-child(4n),.wpr-sharing-col-5 .wpr-sharing-buttons .wpr-sharing-icon:nth-child(5n),.wpr-sharing-col-6 .wpr-sharing-buttons .wpr-sharing-icon:nth-child(6n){margin-right:0!important}.wpr-sharing-buttons .wpr-sharing-icon{transition-propery:opacity,border-color;-webkit-transition-timing-function:linear;-o-transition-timing-function:linear;transition-timing-function:linear}.wpr-sharing-buttons .wpr-sharing-icon i,.wpr-sharing-buttons .wpr-sharing-icon span{transition-propery:color,background-color;-webkit-transition-timing-function:linear;-o-transition-timing-function:linear;transition-timing-function:linear}.wpr-sharing-official .wpr-sharing-icon:hover{opacity:.85}.wpr-sharing-official .wpr-sharing-facebook-f i,.wpr-sharing-official .wpr-sharing-facebook-f span{background-color:#3b5998}.wpr-sharing-official .wpr-sharing-twitter i,.wpr-sharing-official .wpr-sharing-twitter span{background-color:#1da1f2}.wpr-sharing-official .wpr-sharing-linkedin-in i,.wpr-sharing-official .wpr-sharing-linkedin-in span{background-color:#0077b5}.wpr-sharing-official .wpr-sharing-pinterest-p i,.wpr-sharing-official .wpr-sharing-pinterest-p span{background-color:#bd081c}.wpr-sharing-official .wpr-sharing-reddit i,.wpr-sharing-official .wpr-sharing-reddit span{background-color:#ff4500}.wpr-sharing-official .wpr-sharing-tumblr i,.wpr-sharing-official .wpr-sharing-tumblr span{background-color:#35465c}.wpr-sharing-official .wpr-sharing-digg i,.wpr-sharing-official .wpr-sharing-digg span{background-color:#005be2}.wpr-sharing-official .wpr-sharing-xing i,.wpr-sharing-official .wpr-sharing-xing span{background-color:#026466}.wpr-sharing-official .wpr-sharing-stumbleupon i,.wpr-sharing-official .wpr-sharing-stumbleupon span{background-color:#eb4924}.wpr-sharing-official .wpr-sharing-vk i,.wpr-sharing-official .wpr-sharing-vk span{background-color:#45668e}.wpr-sharing-official .wpr-sharing-odnoklassniki i,.wpr-sharing-official .wpr-sharing-odnoklassniki span{background-color:#f4731c}.wpr-sharing-official .wpr-sharing-get-pocket i,.wpr-sharing-official .wpr-sharing-get-pocket span{background-color:#ef3f56}.wpr-sharing-official .wpr-sharing-skype i,.wpr-sharing-official .wpr-sharing-skype span{background-color:#00aff0}.wpr-sharing-official .wpr-sharing-whatsapp i,.wpr-sharing-official .wpr-sharing-whatsapp span{background-color:#25d366}.wpr-sharing-official .wpr-sharing-telegram i,.wpr-sharing-official .wpr-sharing-telegram span{background-color:#2ca5e0}.wpr-sharing-official .wpr-sharing-delicious i,.wpr-sharing-official .wpr-sharing-delicious span{background-color:#39f}.wpr-sharing-official .wpr-sharing-envelope i,.wpr-sharing-official .wpr-sharing-envelope span{background-color:#c13b2c}.wpr-sharing-official .wpr-sharing-print i,.wpr-sharing-official .wpr-sharing-print span{background-color:#96c859}.wpr-sharing-official .wpr-sharing-facebook-f{border-color:#3b5998}.wpr-sharing-official .wpr-sharing-twitter{border-color:#1da1f2}.wpr-sharing-official .wpr-sharing-linkedin-in{border-color:#0077b5}.wpr-sharing-official .wpr-sharing-pinterest-p{border-color:#bd081c}.wpr-sharing-official .wpr-sharing-reddit{border-color:#ff4500}.wpr-sharing-official .wpr-sharing-tumblr{border-color:#35465c}.wpr-sharing-official .wpr-sharing-digg{border-color:#005be2}.wpr-sharing-official .wpr-sharing-xing{border-color:#026466}.wpr-sharing-official .wpr-sharing-stumbleupon{border-color:#eb4924}.wpr-sharing-official .wpr-sharing-vk{border-color:#45668e}.wpr-sharing-official .wpr-sharing-odnoklassniki{border-color:#f4731c}.wpr-sharing-official .wpr-sharing-get-pocket{border-color:#ef3f56}.wpr-sharing-official .wpr-sharing-skype{border-color:#00aff0}.wpr-sharing-official .wpr-sharing-whatsapp{border-color:#25d366}.wpr-sharing-official .wpr-sharing-telegram{border-color:#2ca5e0}.wpr-sharing-official .wpr-sharing-delicious{border-color:#39f}.wpr-sharing-official .wpr-sharing-envelope{border-color:#c13b2c}.wpr-sharing-official .wpr-sharing-print{border-color:#96c859}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-facebook-f i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-facebook-f span{color:#3b5998;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-twitter i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-twitter span{color:#1da1f2;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-linkedin-in i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-linkedin-in span{color:#0077b5;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-pinterest-p i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-pinterest-p span{color:#bd081c;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-reddit i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-reddit span{color:#ff4500;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-tumblr i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-tumblr span{color:#35465c;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-digg i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-digg span{color:#005be2;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-xing i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-xing span{color:#026466;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-stumbleupon i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-stumbleupon span{color:#eb4924;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-vk i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-vk span{color:#45668e;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-odnoklassniki i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-odnoklassniki span{color:#f4731c;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-get-pocket i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-get-pocket span{color:#ef3f56;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-skype i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-skype span{color:#00aff0;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-whatsapp i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-whatsapp span{color:#25d366;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-telegram i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-telegram span{color:#2ca5e0;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-delicious i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-delicious span{color:#39f;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-envelope i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-envelope span{color:#c13b2c;background-color:transparent}.wpr-sharing-official.wpr-sharing-icon-tr .wpr-sharing-print i,.wpr-sharing-official.wpr-sharing-label-tr .wpr-sharing-print span{color:#96c859;background-color:transparent}.wpr-countdown-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin:0 auto}.wpr-countdown-item{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;overflow:hidden;color:#fff;text-align:center}.wpr-countdown-item:first-child{margin-left:0!important}.wpr-countdown-item:last-of-type{margin-right:0!important}.wpr-countdown-number{display:block}.wpr-countdown-separator{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.wpr-countdown-separator span{display:block}.wpr-countdown-separator:last-of-type{display:none!important}.wpr-countdown-wrap+div:not(.wpr-countdown-message){display:none}.wpr-countdown-message+div{display:none}.elementor-widget-wpr-countdown .wpr-countdown-item{background-color:#605be5}.elementor-widget-wpr-countdown .wpr-countdown-number{font-size:70px}.elementor-widget-wpr-countdown .wpr-countdown-label{font-size:19px;line-height:45px}.wpr-google-map .gm-style-iw-c{padding:0!important}.wpr-google-map .gm-style-iw-c>button{top:0!important;right:0!important}.wpr-google-map .gm-style-iw-c .wpr-gm-iwindow h3{margin-bottom:7px}.wpr-google-map .gm-style-iw-d{overflow:hidden!important}.wpr-google-map .gm-style img{max-width:none!important}.wpr-forms-container .wpcf7-form .wpcf7-form-control-wrap{display:block!important}.wpcf7 label,.wpcf7-quiz-label{width:100%}.wpr-forms-container .wpcf7 p{margin-bottom:0}.wpr-forms-container .wpcf7-form .ajax-loader{display:block;visibility:hidden;height:0;overflow:hidden;clear:both}.wpr-forms-container .caldera-grid select.form-control,.wpr-forms-container .nf-field-container select,.wpr-forms-container .wpcf7-date,.wpr-forms-container .wpcf7-number,.wpr-forms-container .wpcf7-select,.wpr-forms-container select.wpforms-field-medium{padding:7px 10px!important}.wpr-forms-container .wpcf7-date{width:auto!important}.wpr-forms-container .wpcf7-number{width:100px!important}.wpr-forms-container .wpcf7-form .wpcf7-submit{display:block}.wpr-forms-container .wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item,.wpr-forms-container .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item,.wpr-forms-container .wpcf7-form-control.wpcf7-radio .wpcf7-list-item{margin-left:0;margin-right:10px}.wpr-forms-container .wpcf7-response-output{clear:both;margin:0}.wpr-forms-container .wpforms-field:not(.wpforms-field-address) .wpforms-field-medium{display:inline-block!important;max-width:100%!important}.wpr-forms-container .wpforms-field-address,.wpr-forms-container .wpforms-field-phone,.wpr-forms-container .wpforms-page-indicator{display:inline-block}.wpr-forms-container .wpforms-field-address .wpforms-field-medium{max-width:100%!important}.wpr-forms-container .intl-tel-input.allow-dropdown input.wpforms-field-medium,.wpr-forms-container .wpforms-field-address div.wpforms-field-medium{width:100%!important;max-width:100%!important}.wpr-forms-container .intl-tel-input.allow-dropdown{display:inline-block!important;max-width:100%!important}.wpr-forms-align-left .wpr-forms-container div.wpforms-container-full .wpforms-form .wpforms-list-inline ul li:last-child{margin-right:0!important}.wpr-forms-container .caldera-grid .alert-success,.wpr-forms-container .nf-response-msg,.wpr-forms-container .wpcf7-mail-sent-ok,.wpr-forms-container .wpforms-confirmation-container-full{padding:10px 15px;border:2px solid}.wpr-forms-container label.wpforms-error a{text-decoration:underline}.wpr-forms-container .wpforms-smart-phone-field{text-indent:0!important}.wpr-forms-container select.ninja-forms-field{line-height:1!important}.wpr-forms-container .nf-form-wrap .checkbox-wrap label{display:inline-block!important}.wpr-forms-container .nf-form-wrap .starrating .stars{display:inline-block}.wpr-forms-submit-center .caldera-grid .btn-default:not(a),.wpr-forms-submit-center .submit-wrap .ninja-forms-field,.wpr-forms-submit-center .wpcf7-submit,.wpr-forms-submit-center .wpforms-page-next,.wpr-forms-submit-center .wpforms-page-previous,.wpr-forms-submit-center .wpforms-submit{display:block!important;margin-left:auto!important;margin-right:auto!important}.wpr-forms-submit-left .caldera-grid .btn-default:not(a),.wpr-forms-submit-left .submit-wrap .ninja-forms-field,.wpr-forms-submit-left .wpcf7-submit,.wpr-forms-submit-left .wpforms-page-next,.wpr-forms-submit-left .wpforms-page-previous,.wpr-forms-submit-left .wpforms-submit{float:left!important}.wpr-forms-submit-left .caldera-grid .btn-default:not(a),.wpr-forms-submit-right .submit-wrap .ninja-forms-field,.wpr-forms-submit-right .wpcf7-submit,.wpr-forms-submit-right .wpforms-page-next,.wpr-forms-submit-right .wpforms-page-previous,.wpr-forms-submit-right .wpforms-submit{float:right!important}.wpr-forms-submit-justify .caldera-grid .btn-default:not(a),.wpr-forms-submit-justify .submit-wrap .ninja-forms-field,.wpr-forms-submit-justify .wpcf7-submit,.wpr-forms-submit-justify .wpforms-page-next,.wpr-forms-submit-justify .wpforms-page-previous,.wpr-forms-submit-justify .wpforms-submit{display:block!important;width:100%!important;text-align:center!important}.wpr-custom-chk-radio .wpcf7-acceptance input,.wpr-custom-chk-radio .wpcf7-checkbox input,.wpr-custom-chk-radio .wpcf7-radio input,.wpr-custom-chk-radio .wpforms-field-checkbox input,.wpr-custom-chk-radio .wpforms-field-gdpr-checkbox input,.wpr-custom-chk-radio .wpforms-field-radio input{display:none!important}.wpr-custom-chk-radio .wpcf7-acceptance .wpcf7-list-item-label,.wpr-custom-chk-radio .wpcf7-checkbox .wpcf7-list-item-label,.wpr-custom-chk-radio .wpcf7-radio .wpcf7-list-item-label,.wpr-custom-chk-radio .wpforms-field-checkbox input+label,.wpr-custom-chk-radio .wpforms-field-gdpr-checkbox input+label,.wpr-custom-chk-radio .wpforms-field-radio input+label,.wpr-custom-chk-radio .wpforms-field-radio input+span{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wpr-custom-chk-radio .wpcf7-acceptance .wpcf7-list-item-label:before,.wpr-custom-chk-radio .wpcf7-checkbox .wpcf7-list-item-label:before,.wpr-custom-chk-radio .wpcf7-radio .wpcf7-list-item-label:before,.wpr-custom-chk-radio .wpforms-field-checkbox input+label:before,.wpr-custom-chk-radio .wpforms-field-gdpr-checkbox input+label:before,.wpr-custom-chk-radio .wpforms-field-radio input+label:before,.wpr-custom-chk-radio .wpforms-field-radio input:not(.wpforms-screen-reader-element)+span:before{content:"\2714";display:inline-block;position:relative;top:-1px;text-align:center;border:1px solid;margin-right:5px;color:transparent}.wpr-forms-align-right .wpforms-field-checkbox ul li input:first-child,.wpr-forms-align-right .wpforms-field-gdpr-checkbox input:first-child,.wpr-forms-align-right .wpforms-field-radio ul li input:first-child,.wpr-forms-align-right .wpforms-image-choices label input:first-of-type{float:right;margin-right:0!important;margin-left:10px!important}.wpr-forms-align-right .wpr-forms-container,.wpr-forms-align-right .wpr-forms-container .wpcf7-form-control{direction:rtl}.wpr-forms-align-right .nf-form-wrap .field-wrap{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpr-forms-align-right .label-right .nf-field-description{margin-right:0!important}.wpr-forms-align-right .nf-error.field-wrap .nf-field-element:after{right:auto!important;left:1px!important}.wpr-forms-align-right .wpr-custom-chk-radio .wpcf7-acceptance .wpcf7-list-item-label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpcf7-checkbox .wpcf7-list-item-label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpcf7-radio .wpcf7-list-item-label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpforms-field-checkbox input+label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpforms-field-gdpr-checkbox input+label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpforms-field-radio input+label:before,.wpr-forms-align-right .wpr-custom-chk-radio .wpforms-field-radio input:not(.wpforms-screen-reader-element)+span:before{margin-right:0;margin-left:5px}.wpr-forms-align-right .wpcf7-acceptance .wpcf7-list-item,.wpr-forms-align-right .wpcf7-list-item.last,.wpr-forms-align-right div.wpforms-container-full .wpforms-form .wpforms-list-inline ul li:first-child{margin-right:0!important}.wpr-forms-align-right .wpr-forms-container .intl-tel-input .flag-container{left:auto!important;right:0!important}.wpr-forms-align-right .caldera-grid .col-sm-4,.wpr-forms-align-right .caldera-grid .col-sm-6{float:right}.wpr-forms-align-right .wpr-forms-container .caldera-grid .checkbox label,.wpr-forms-align-right .wpr-forms-container .caldera-grid .checkbox-inline label,.wpr-forms-align-right .wpr-forms-container .caldera-grid .radio label{padding-left:0!important;padding-right:20px}.wpr-forms-align-right .wpr-forms-container .caldera-grid .checkbox input,.wpr-forms-align-right .wpr-forms-container .caldera-grid .radio input{margin-right:-20px!important;margin-left:0!important}.wpr-forms-align-right .wpr-forms-container .caldera-grid .cf-credit-card{background-position:99% center!important}.wpr-forms-align-right .wpr-forms-container .caldera-grid .live-gravatar{text-align:right!important}.wpr-forms-align-left .wpr-forms-container .caldera-grid .live-gravatar{text-align:left!important}.wpr-forms-container .nf-form-content{padding:0;max-width:none}.wpr-forms-container .nf-form-content .label-above .field-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-forms-container .nf-form-content .label-above .nf-field-label{margin-top:0}.wpr-forms-container .field-wrap:not(.textarea-wrap):not(.submit-wrap) .ninja-forms-field{border-radius:0}.wpr-forms-container .field-wrap.textarea-wrap .ninja-forms-field{display:block}.wpr-forms-container .field-wrap.submit-wrap .ninja-forms-field{cursor:pointer}.wpr-forms-container .listselect-wrap>div select.ninja-forms-field{-webkit-appearance:menulist;-moz-appearance:menulist;appearance:menulist}.wpr-forms-container .nf-form-content .list-select-wrap .nf-field-element>div,.wpr-forms-container .nf-form-content input:not([type=button]),.wpr-forms-container .nf-form-content textarea{background:0 0;border:none}.wpr-forms-container .checkbox-container.label-right .field-wrap{display:block}.wpr-forms-container .listcheckbox-wrap ul li,.wpr-forms-container .listradio-wrap ul li{display:inline-block;margin-right:10px!important;margin-bottom:7px!important}.wpr-forms-container .listcheckbox-container .nf-field-element label:after{top:1px}.wpr-forms-container .listradio-wrap .nf-field-element label{margin-left:25px!important}.wpr-forms-container .listradio-wrap .nf-field-element label:after{top:0;left:-25px}.wpr-forms-container .listradio-wrap .nf-field-element label.nf-checked-label:before{top:4px;left:-21px}.wpr-forms-container .checkbox-wrap label,.wpr-forms-container .listcheckbox-wrap label,.wpr-forms-container .listradio-wrap label{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wpr-forms-container .nf-error.field-wrap .nf-field-element:after{top:0!important;bottom:0!important;height:auto!important}.wpr-forms-container .wpforms-form .wpforms-field,.wpr-forms-container .wpforms-submit-container{padding:0!important}.wpr-forms-container .wpforms-container,.wpr-forms-container .wpforms-field-address .wpforms-field-row:nth-last-child(2),.wpr-forms-container div.wpforms-container-full .wpforms-form .wpforms-field-row{margin-bottom:0!important}.wpr-forms-container .wpforms-submit-container:after{content:" ";clear:both;display:table}.wpr-forms-container .caldera-grid .help-block{margin-bottom:0}.wpr-forms-container .caldera-grid .caldera-forms-gdpr-field-label a{text-decoration:underline}.wpr-forms-container .caldera-grid .intl-tel-input input{text-indent:40px}.wpr-forms-container .caldera-grid input.cf-credit-card{text-indent:33px}.wpr-forms-container .caldera-grid .cf-credit-card{background-position:5px center!important}.wpr-forms-container .cf2-dropzone .form-control{height:auto}.wpr-forms-container .caldera-grid .form-group input,.wpr-forms-container .caldera-grid .form-group textarea{-webkit-box-shadow:none;box-shadow:none}.wpr-forms-container .caldera-grid .has-error .form-control{-webkit-box-shadow:none;box-shadow:none}.wpr-forms-container .caldera-grid .alert-success{text-shadow:none}.elementor-widget-wpr-forms .nf-form-title h3,.elementor-widget-wpr-forms .wpforms-head-container .wpforms-title{font-size:28px;font-weight:800}.elementor-widget-wpr-forms .nf-form-fields-required,.elementor-widget-wpr-forms .wpforms-head-container .wpforms-description{font-size:14px}.elementor-widget-wpr-forms .caldera-forms-summary-field ul li,.elementor-widget-wpr-forms .caldera-grid .caldera-forms-gdpr-field-label,.elementor-widget-wpr-forms .caldera-grid .checkbox label,.elementor-widget-wpr-forms .caldera-grid .control-label,.elementor-widget-wpr-forms .caldera-grid .radio label,.elementor-widget-wpr-forms .caldera-grid .total-line,.elementor-widget-wpr-forms .nf-field-container label,.elementor-widget-wpr-forms .wpcf7-form,.elementor-widget-wpr-forms .wpforms-captcha-equation,.elementor-widget-wpr-forms .wpforms-captcha-question,.elementor-widget-wpr-forms .wpforms-field-label,.elementor-widget-wpr-forms .wpforms-field-label-inline,.elementor-widget-wpr-forms .wpforms-image-choices-label,.elementor-widget-wpr-forms .wpforms-payment-total,.elementor-widget-wpr-forms .wpr-forms-container .nf-response-msg,.elementor-widget-wpr-forms .wpr-forms-container .wpforms-confirmation-container-full{font-size:14px}.elementor-widget-wpr-forms .caldera-grid .form-control[type=color_picker],.elementor-widget-wpr-forms .caldera-grid .form-control[type=credit_card_cvc],.elementor-widget-wpr-forms .caldera-grid .form-control[type=email],.elementor-widget-wpr-forms .caldera-grid .form-control[type=number],.elementor-widget-wpr-forms .caldera-grid .form-control[type=phone],.elementor-widget-wpr-forms .caldera-grid .form-control[type=tel],.elementor-widget-wpr-forms .caldera-grid .form-control[type=text],.elementor-widget-wpr-forms .caldera-grid .form-control[type=url],.elementor-widget-wpr-forms .caldera-grid select.form-control,.elementor-widget-wpr-forms .caldera-grid textarea.form-control,.elementor-widget-wpr-forms .ninja-forms-field,.elementor-widget-wpr-forms .wpcf7-date,.elementor-widget-wpr-forms .wpcf7-number,.elementor-widget-wpr-forms .wpcf7-quiz,.elementor-widget-wpr-forms .wpcf7-select,.elementor-widget-wpr-forms .wpcf7-text,.elementor-widget-wpr-forms .wpcf7-textarea,.elementor-widget-wpr-forms .wpforms-form input[type=date],.elementor-widget-wpr-forms .wpforms-form input[type=datetime-local],.elementor-widget-wpr-forms .wpforms-form input[type=datetime],.elementor-widget-wpr-forms .wpforms-form input[type=email],.elementor-widget-wpr-forms .wpforms-form input[type=month],.elementor-widget-wpr-forms .wpforms-form input[type=number],.elementor-widget-wpr-forms .wpforms-form input[type=password],.elementor-widget-wpr-forms .wpforms-form input[type=range],.elementor-widget-wpr-forms .wpforms-form input[type=search],.elementor-widget-wpr-forms .wpforms-form input[type=tel],.elementor-widget-wpr-forms .wpforms-form input[type=text],.elementor-widget-wpr-forms .wpforms-form input[type=time],.elementor-widget-wpr-forms .wpforms-form input[type=url],.elementor-widget-wpr-forms .wpforms-form input[type=week],.elementor-widget-wpr-forms .wpforms-form select,.elementor-widget-wpr-forms .wpforms-form textarea{font-size:13px;letter-spacing:.2px}.elementor-widget-wpr-forms .caldera-grid .btn-default,.elementor-widget-wpr-forms .caldera-grid .cf2-dropzone button,.elementor-widget-wpr-forms .submit-wrap .ninja-forms-field,.elementor-widget-wpr-forms .wpcf7-submit,.elementor-widget-wpr-forms .wpforms-page-next,.elementor-widget-wpr-forms .wpforms-page-previous,.elementor-widget-wpr-forms .wpforms-submit{background-color:#605be5}.elementor-widget-wpr-forms .caldera-grid .btn-default:hover,.elementor-widget-wpr-forms .caldera-grid .btn-success,.elementor-widget-wpr-forms .caldera-grid .cf2-dropzone button:hover,.elementor-widget-wpr-forms .submit-wrap .ninja-forms-field:hover,.elementor-widget-wpr-forms .wpcf7-submit:hover,.elementor-widget-wpr-forms .wpforms-page-next:hover,.elementor-widget-wpr-forms .wpforms-page-previous:hover,.elementor-widget-wpr-forms .wpforms-submit:hover{background-color:#4a45d2}.elementor-widget-wpr-forms .wpr-forms-container .caldera_ajax_error_block,.elementor-widget-wpr-forms .wpr-forms-container .nf-error-msg,.elementor-widget-wpr-forms .wpr-forms-container .wpcf7-not-valid-tip,.elementor-widget-wpr-forms .wpr-forms-container .wpcf7-response-output,.elementor-widget-wpr-forms .wpr-forms-container label.wpforms-error{font-size:14px}.elementor-widget-wpr-forms .caldera-forms-summary-field ul li,.elementor-widget-wpr-forms .caldera-grid .caldera-forms-gdpr-field-label,.elementor-widget-wpr-forms .caldera-grid .checkbox label,.elementor-widget-wpr-forms .caldera-grid .control-label,.elementor-widget-wpr-forms .caldera-grid .radio label,.elementor-widget-wpr-forms .caldera-grid .total-line,.elementor-widget-wpr-forms .nf-field-container label,.elementor-widget-wpr-forms .wpcf7-form,.elementor-widget-wpr-forms .wpforms-captcha-equation,.elementor-widget-wpr-forms .wpforms-captcha-question,.elementor-widget-wpr-forms .wpforms-field-label,.elementor-widget-wpr-forms .wpforms-field-label-inline,.elementor-widget-wpr-forms .wpforms-image-choices-label,.elementor-widget-wpr-forms .wpforms-payment-total,.elementor-widget-wpr-forms .wpr-forms-container .nf-response-msg,.elementor-widget-wpr-forms .wpr-forms-container .wpforms-confirmation-container-full{font-weight:400}.elementor-widget-wpr-forms.caldera-grid .help-block,.elementor-widget-wpr-forms.nf-field-description,.elementor-widget-wpr-forms.wpforms-field-description,.elementor-widget-wpr-forms.wpforms-field-sublabel{font-size:14px}.wpr-ba-image-container{position:relative;overflow:hidden}.wpr-ba-image-container *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wpr-ba-image-1 img,.wpr-ba-image-2 img{max-width:100%;width:100%}.wpr-ba-image-2{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.wpr-ba-image-2 img{position:absolute;top:0}.wpr-ba-divider{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:0;left:50%;z-index:3;height:100%;cursor:pointer;-ms-touch-action:none;touch-action:none}.wpr-ba-divider-icons{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-ba-vertical .wpr-ba-divider-icons{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-ba-horizontal .wpr-ba-divider-icons i:first-child{text-align:right;padding-right:10%}.wpr-ba-horizontal .wpr-ba-divider-icons i:last-child{text-align:left;padding-left:10%}.wpr-ba-divider-icons .fa{text-align:center}.wpr-ba-vertical .wpr-ba-divider{top:50%;left:auto;width:100%;height:auto}.wpr-ba-vertical .wpr-ba-image-2 img{top:auto}.wpr-ba-horizontal .wpr-ba-divider-icons:after,.wpr-ba-horizontal .wpr-ba-divider-icons:before{content:'';display:block;position:absolute;height:100%}.wpr-ba-vertical .wpr-ba-divider-icons:after,.wpr-ba-vertical .wpr-ba-divider-icons:before{content:'';display:block;position:absolute;width:100%}.wpr-ba-label{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;padding:15px}.wpr-ba-labels-none .wpr-ba-label{display:none}.wpr-ba-labels-hover .wpr-ba-label{opacity:0;-webkit-transition:.1s ease-in;-o-transition:.1s ease-in;transition:.1s ease-in}.wpr-ba-labels-hover:hover .wpr-ba-label{opacity:1}.wpr-ba-horizontal .wpr-ba-label{top:0;height:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-ba-horizontal .wpr-ba-label-1{left:0}.wpr-ba-horizontal .wpr-ba-label-2{right:0}.wpr-ba-vertical .wpr-ba-label{left:0;width:100%}.wpr-ba-vertical .wpr-ba-label-1{top:0}.wpr-ba-vertical .wpr-ba-label-2{bottom:0}.elementor-widget-wpr-before-after .wpr-ba-label>div{background-color:#605be5;font-size:14px}body:not(.elementor-editor-active) .wpr-template-popup{display:none}.wpr-template-popup{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99999999}.wpr-template-popup-inner{display:-webkit-box;display:-ms-flexbox;display:flex;position:fixed;top:0;left:0;width:100%;height:100%}.wpr-popup-container{position:relative}.wpr-popup-container-inner{display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden;position:relative;background:#fff}.wpr-popup-container-inner>div{width:100%;-ms-flex-negative:0;flex-shrink:0}.wpr-popup-container>div{width:100%}.wpr-popup-image-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#fff}.wpr-popup-overlay{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;background:rgba(0,0,0,.7)}.wpr-popup-close-btn{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:0;right:0;z-index:99;text-align:center;cursor:pointer}.wpr-popup-notification .wpr-template-popup-inner,.wpr-popup-notification.wpr-template-popup{height:auto!important}.wpr-popup-notification .wpr-popup-overlay{display:none!important}.wpr-popup-container-inner.ps-container.ps-active-y>.ps-scrollbar-y-rail,.wpr-popup-container-inner.ps.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.wpr-popup-container-inner.ps-container>.ps-scrollbar-y-rail,.wpr-popup-container-inner.ps>.ps__rail-y{display:none;position:absolute;right:3px;width:3px}.wpr-popup-container-inner.ps-container>.ps-scrollbar-y-rail>.ps-scrollbar-y,.wpr-popup-container-inner.ps>.ps__rail-y>.ps__thumb-y{position:absolute;cursor:pointer;right:0;width:3px}.wpr-popup-container .ps-scrollbar-x-rail{display:none!important}.wpr-popup-notification .wpr-popup-container .slideInDown{-webkit-animation-timing-function:linear;animation-timing-function:linear}.wpr-popup-notification .wpr-popup-container{width:100%!important;-webkit-box-align:start!important;-ms-flex-align:start!important;align-items:flex-start!important}.wpr-popup-trigger-button{display:inline-block;font-size:14px;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;cursor:pointer}.wpr-popup-container .elementor-editor-section-settings{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);border-radius:0 0 5px 5px}.wpr-popup-container .elementor-editor-section-settings .elementor-editor-element-setting:first-child{border-radius:0 0 0 5px}.wpr-popup-container .elementor-editor-section-settings .elementor-editor-element-setting:first-child:before{top:0;border-width:0 12px 22px 0}.wpr-popup-container .elementor-editor-section-settings .elementor-editor-element-setting:last-child{border-radius:0 0 5px 0}.wpr-popup-container .elementor-editor-section-settings .elementor-editor-element-setting:last-child:after{top:0;border-width:0 0 22px 12px}.elementor-editor-active [data-elementor-type=wpr-popups] .elementor-section-wrap:not(:empty)+#elementor-add-new-section,.elementor-editor-active [data-elementor-type=wpr-popups]:not(.elementor-edit-mode){display:none}.elementor .elementor-widget-wpr-popup-trigger .wpr-popup-trigger-button{display:inline-block;font-size:14px;font-weight:500;cursor:pointer}.elementor-editor-active [data-elementor-type=wpr-popup] .elementor-section-wrap:not(:empty)+#elementor-add-new-section,.elementor-editor-active [data-elementor-type=wpr-popup]:not(.elementor-edit-mode){display:none}.wpr-template-edit-btn{position:absolute;top:0;right:40px;display:none;line-height:1;padding:8px 13px;cursor:pointer;background:#333;color:#fff;border:1px solid #000}.elementor-editor-active .wpr-template-edit-btn{display:inline-block;opacity:0;visibility:hidden}.elementor-editor-active .elementor-element-edit-mode:hover .wpr-template-edit-btn{opacity:1;visibility:visible}.wpr-mailchimp-fields{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-mailchimp-email input,.wpr-mailchimp-email label,.wpr-mailchimp-first-name input,.wpr-mailchimp-first-name label,.wpr-mailchimp-last-name input,.wpr-mailchimp-last-name label{display:block;width:100%}.wpr-mailchimp-layout-hr .wpr-mailchimp-fields{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.wpr-mailchimp-layout-vr .wpr-mailchimp-fields{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-mailchimp-layout-hr .wpr-mailchimp-email,.wpr-mailchimp-layout-hr .wpr-mailchimp-first-name,.wpr-mailchimp-layout-hr .wpr-mailchimp-last-name{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.wpr-mailchimp-subscribe-btn{width:100%;padding:0;outline:0!important;cursor:pointer}.wpr-mailchimp-error-message,.wpr-mailchimp-message,.wpr-mailchimp-success-message{display:none}.elementor-widget-wpr-mailchimp .wpr-mailchimp-header h3{font-size:28px;font-weight:800}.elementor-widget-wpr-mailchimp .wpr-mailchimp-header p{font-size:14px}.elementor-widget-wpr-mailchimp .wpr-mailchimp-fields label{font-size:13px}.elementor-widget-wpr-mailchimp .wpr-mailchimp-subscribe-btn{background-color:#605be5}.elementor-widget-wpr-mailchimp .wpr-mailchimp-subscribe-btn:hover{background-color:#4a45d2}.wpr-advanced-slider-wrap{position:relative}.wpr-advanced-slider{position:relative;height:500px;overflow:hidden}.wpr-slider-item{position:relative;height:500px;overflow:hidden}.wpr-slider-content{position:relative;max-width:750px;width:100%;padding:10px 50px 50px 50px;z-index:90}.wpr-slider-item-bg{position:absolute;top:0;left:0;width:100%;height:100%;background-repeat:no-repeat;background-position:center}.wpr-slider-description p,.wpr-slider-sub-title h3,.wpr-slider-title h2{display:inline-block}.wpr-slider-title h2{color:#fff;font-size:40px;font-weight:600;line-height:1.5em;padding:5px 10px 5px 10px;margin:0 0 2px 0}.wpr-slider-sub-title h3{font-size:16px;padding:5px 10px 5px 10px;margin:0 0 10px 0}.wpr-slider-description p{padding:5px 10px 5px 10px;margin:0 0 30px 0}.wpr-slider-primary-btn,.wpr-slider-secondary-btn{padding:12px 25px 12px 25px;margin:0 10px 0 10px;border-style:solid;border-width:1px;border-color:#fff;border-radius:2px}.wpr-slider-btns svg,.wpr-slider-scroll-btn svg{vertical-align:bottom}@keyframes ken-burns-in{0%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(1.3);transform:scale(1.3)}}@-webkit-keyframes ken-burns-in{0%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(1.3);transform:scale(1.3)}}@keyframes ken-burns-out{0%{-webkit-transform:scale(1.3);transform:scale(1.3)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes ken-burns-out{0%{-webkit-transform:scale(1.3);transform:scale(1.3)}100%{-webkit-transform:scale(1);transform:scale(1)}}.wpr-advanced-slider .slick-slide.slick-active .wpr-slider-item-bg{-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:10s;animation-duration:10s}.wpr-advanced-slider .slick-slide.slick-active .wpr-slider-item-bg.wpr-ken-burns-in{-webkit-animation-name:ken-burns-in;animation-name:ken-burns-in;-webkit-transform:scale(1.3);-ms-transform:scale(1.3);transform:scale(1.3)}.wpr-advanced-slider .slick-slide.slick-active .wpr-slider-item-bg.wpr-ken-burns-out{-webkit-animation-name:ken-burns-out;animation-name:ken-burns-out;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.wpr-ken-burns-in{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.wpr-ken-burns-out{-webkit-transform:scale(1.3);-ms-transform:scale(1.3);transform:scale(1.3)}.wpr-slider-item-url{display:block;width:100%;height:100%;position:absolute;left:0;top:0;z-index:90}.wpr-slider-nav-position-default .wpr-slider-arrow-container{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-slider-nav-position-default .wpr-slider-arrow{position:static}.wpr-slider-nav-position-default .wpr-slider-prev-arrow{-ms-transform:none;transform:none;-webkit-transform:none}.wpr-slider-nav-position-default .wpr-slider-next-arrow{-ms-transform:translateY(0) rotate(180deg);transform:translateY(0) rotate(180deg);-webkit-transform:translateY(0) rotate(180deg)}.wpr-slider-nav-align-bottom-center .wpr-slider-arrow-container,.wpr-slider-nav-align-top-center .wpr-slider-arrow-container{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-slider-arrow{position:absolute;z-index:120;top:50%;-webkit-box-sizing:content-box;box-sizing:content-box;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-slider-arrow i{display:block;line-height:inherit}.wpr-slider-prev-arrow{left:1%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-slider-next-arrow{right:1%;-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.wpr-slider-nav-fade .wpr-slider-arrow{opacity:0;visibility:hidden}.wpr-slider-nav-fade .wpr-advanced-slider-wrap:hover .wpr-slider-arrow{opacity:1;visibility:visible}.wpr-slider-dots{display:inline-table;position:absolute;z-index:110;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wpr-slider-dots .slick-dots{position:static!important}.wpr-slider-dots ul{list-style:none;margin:0;padding:0}.wpr-advanced-slider.slick-dotted.slick-slider{margin-bottom:0!important}.wpr-slider-dots-vertical .slick-dots li{display:block;width:auto!important;height:auto!important;margin:0!important}.wpr-slider-dots-horizontal .slick-dots li{width:auto!important;padding-top:10px;margin:0!important}.wpr-slider-dots-horizontal .slick-dots li:last-child span,.wpr-slider-dots-pro-vr .slick-dots li:last-child span{margin-right:0!important}.wpr-slider-dots-horizontal .wpr-slider-dots li,.wpr-slider-dots-pro-vr .wpr-slider-dots li{float:left}.wpr-slider-dot{display:block;cursor:pointer}.wpr-slider-dots li:last-child .wpr-slider-dot{margin:0!important}.wpr-slider-scroll-btn{position:absolute;bottom:45px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);display:inline-block;-webkit-transition-duration:.2s;-o-transition-duration:.2s;transition-duration:.2s;line-height:1;overflow:hidden}@-webkit-keyframes wpr-scroll-animation{0%{opacity:0;-webkit-transform:translate3d(0,-60%,0);transform:translate3d(0,-60%,0)}50%{opacity:1;-webkit-transform:translate3d(0,20%,0);transform:translate3d(0,20%,0)}100%{opacity:0;-webkit-transform:translate3d(0,20%,0);transform:translate3d(0,20%,0)}}@keyframes wpr-scroll-animation{0%{opacity:0;-webkit-transform:translate3d(0,-60%,0);transform:translate3d(0,-60%,0)}50%{opacity:1;-webkit-transform:translate3d(0,20%,0);transform:translate3d(0,20%,0)}100%{opacity:0;-webkit-transform:translate3d(0,20%,0);transform:translate3d(0,20%,0)}}.wpr-scroll-animation{-webkit-animation-name:wpr-scroll-animation;animation-name:wpr-scroll-animation;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.wpr-slider-video{position:absolute;width:100%;height:100%;top:0;left:0;z-index:90}.wpr-slider-video-btn{margin:0 auto}.wpr-slider-video-btn i{display:block}.wpr-slider-video-icon-size-none .wpr-slider-video-btn{display:none}.wpr-slider-video-icon-size-small .wpr-slider-video-btn{height:50px;width:50px;font-size:16px;padding:16px 0 0 4px;border-width:1px}.wpr-slider-video-icon-size-medium .wpr-slider-video-btn{height:80px;width:80px;font-size:26px;padding:25px 0 0 5px;border-width:2px}.wpr-slider-video-icon-size-large .wpr-slider-video-btn{height:100px;width:100px;font-size:30px;padding:33px 0 0 7px;border-width:2px}.wpr-slider-video-btn{text-align:center;border-style:solid;border-radius:50%;cursor:pointer}.wpr-slider-item-overlay{position:absolute;left:0;top:0;width:100%;height:100%;z-index:80}.wpr-pricing-table{position:relative}.wpr-pricing-table-heading{text-align:center}.wpr-pricing-table-headding-inner{display:inline-block}.wpr-pricing-table-heading-left .wpr-pricing-table-headding-inner>div,.wpr-pricing-table-heading-right .wpr-pricing-table-headding-inner>div{display:inline-block;vertical-align:top}.wpr-pricing-table-heading-left .wpr-pricing-table-icon{float:left}.wpr-pricing-table-heading-right .wpr-pricing-table-icon{float:right}.wpr-pricing-table-heading-left .wpr-pricing-table-title-wrap,.wpr-pricing-table-heading-right .wpr-pricing-table-title-wrap{text-align:left}.wpr-pricing-table-heading-center .wpr-pricing-table-icon img{margin:0 auto}.wpr-pricing-table-icon img{display:block;border-style:none}.elementor-widget-wpr-pricing-table .wpr-pricing-table-title-wrap .wpr-pricing-table-title{font-size:26px;font-weight:600}.elementor-widget-wpr-pricing-table .wpr-pricing-table-title-wrap .wpr-pricing-table-sub-title{font-size:14px}.wpr-pricing-table-price{text-align:center;font-size:65px;font-weight:500;line-height:.9}.wpr-pricing-table-price-inner{-ms-box-orient:horizontal;display:-webkit-box;display:-ms-flexbox;display:-moz-flex;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-pricing-table-currency,.wpr-pricing-table-old-price,.wpr-pricing-table-preiod,.wpr-pricing-table-sub-price{line-height:1}.wpr-pricing-table-preiod{font-size:17px;line-height:1.5;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end}.wpr-pricing-table-old-price{text-decoration:line-through!important}.wpr-pricing-table-feature{position:relative;font-size:15px}.wpr-pricing-table-feature-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0 auto}.wpr-pricing-table-feature-inner span{position:relative}.wpr-pricing-table-feature-inner span.wpr-pricing-table-ftext-line-yes{text-decoration:line-through}.wpr-pricing-table-feature:after{content:"";display:block;width:100%;margin:0 auto}.wpr-pricing-table section:last-of-type:after{display:none}.wpr-pricing-table-feature-icon,.wpr-pricing-table-feature-text{display:inline}.wpr-pricing-table-feature-icon{margin-right:8px}.wpr-pricing-table-feature-tooltip{position:absolute;top:0;left:50%;border-radius:4px;padding:6px 10px;visibility:hidden;opacity:0;font-size:15px;-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transition:all 230ms ease-in-out 0s;-o-transition:all 230ms ease-in-out 0s;transition:all 230ms ease-in-out 0s;text-align:center}.wpr-pricing-table-feature-tooltip:before{content:"";position:absolute;left:10px;bottom:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top-style:solid;border-top-width:6px}.wpr-pricing-table-feature:hover .wpr-pricing-table-feature-tooltip{visibility:visible;opacity:1;-ms-transform:translate(-50%,-80%);transform:translate(-50%,-80%);-webkit-transform:translate(-50%,-80%)}.wpr-pricing-table-feature-tooltip:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%)!important}.wpr-pricing-table-button{text-align:center;font-size:17px}.wpr-pricing-table-btn{position:relative;overflow:hidden;display:inline-block;vertical-align:middle;cursor:pointer}.wpr-pricing-table-btn span{position:relative;z-index:2;opacity:1!important}.wpr-pricing-table-btn:after,.wpr-pricing-table-btn:before{z-index:1!important}.wpr-pricing-table-badge{position:absolute;display:inline-block;text-align:center;z-index:2}.elementor-widget-wpr-pricing-table .wpr-pricing-table-badge .wpr-pricing-table-badge-inner{font-size:15px;font-weight:900}.wpr-pricing-table-badge-left{left:0;right:auto}.wpr-pricing-table-badge-right{left:auto;right:0}.wpr-pricing-table-badge-corner{top:0;width:200px;height:200px;overflow:hidden}.wpr-pricing-table-badge-corner .wpr-pricing-table-badge-inner{width:200%}.wpr-pricing-table-badge-corner.wpr-pricing-table-badge-right{-ms-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform:rotate(90deg)}.wpr-pricing-table-badge-cyrcle{top:0}.wpr-pricing-table-badge-cyrcle .wpr-pricing-table-badge-inner{border-radius:100%}.wpr-pricing-table-badge-flag{border-right:5px}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-left{margin-left:-10px}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-right{margin-right:-10px}.wpr-pricing-table-badge-flag:before{content:"";position:absolute;z-index:1;bottom:-5px;width:0;height:0;margin-left:-10px;border-left:10px solid transparent;border-right:10px solid transparent;border-top-style:solid;border-top-width:10px}.wpr-pricing-table-badge-flag .wpr-pricing-table-badge-inner{position:relative;z-index:2;border-top-left-radius:3px;border-top-right-radius:3px}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-left:before{left:5px;-ms-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform:rotate(90deg)}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-right:before{right:-5px;-ms-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-left .wpr-pricing-table-badge-inner{border-bottom-right-radius:3px}.wpr-pricing-table-badge-flag.wpr-pricing-table-badge-right .wpr-pricing-table-badge-inner{border-bottom-left-radius:3px}.wpr-pricing-table-text{font-size:13px;line-height:1.3}.wpr-pricing-table-divider{margin:0 auto}.wpr-pricing-table-animation-slide{-webkit-transition-property:margin;-o-transition-property:margin;transition-property:margin;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.wpr-pricing-table-animation-bounce{-webkit-animation-iteration-count:1;animation-iteration-count:1}.wpr-pricing-table-animation-slide:hover{margin-top:-5px}.wpr-pricing-table-animation-bounce:hover{-webkit-animation-name:bounce;animation-name:bounce}.elementor-widget-wpr-pricing-table .wpr-pricing-table-heading{background-color:#f9f9f9}.elementor-widget-wpr-pricing-table .wpr-pricing-table-price{background-color:#605be5}.elementor-widget-wpr-pricing-table .wpr-pricing-table-button{background-color:#f9f9f9}.elementor-widget-wpr-pricing-table .wpr-pricing-table-btn{background-color:#2b2b2b}.elementor-widget-wpr-pricing-table .wpr-pricing-table-btn:hover{background-color:#4a45d2}.elementor-widget-wpr-pricing-table .wpr-pricing-table-text{background-color:#f9f9f9}.wpr-logo{position:relative;display:inline-table;overflow:hidden}.wpr-logo-image img{display:block}.wpr-logo-description{margin:0}.wpr-logo-image{position:relative;display:block;width:100%;z-index:7}.wpr-logo-url{position:absolute;display:block;width:100%;height:100%;top:0;left:0;z-index:5}.wpr-logo-position-left .wpr-logo-image,.wpr-logo-position-left .wpr-logo-text{float:left}.wpr-logo-position-right .wpr-logo-image,.wpr-logo-position-right .wpr-logo-text{float:right}.wpr-logo-position-center .wpr-logo-image{margin:0 auto}.wpr-logo-position-center .wpr-logo-text{text-align:center}.wpr-logo-position-left .wpr-logo-text,.wpr-logo-position-right .wpr-logo-text{text-align:left}.elementor-widget-wpr-logo .wpr-logo-title{font-size:16px;line-height:1.5}.elementor-widget-wpr-logo .wpr-logo-description{font-size:13px}.wpr-testimonial-carousel .slick-slider{cursor:drag}.wpr-testimonial-carousel .slick-track{display:-webkit-box!important;display:flex!important;display:-ms-flexbox!important}.wpr-testimonial-carousel .slick-slide{height:inherit!important}.wpr-testimonial-carousel-wrap .slick-list{padding-right:1px!important}.wpr-testimonial-nav-position-default .wpr-testimonial-arrow-container{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-testimonial-nav-position-default .wpr-testimonial-arrow{position:static}.wpr-testimonial-nav-position-default .wpr-testimonial-prev-arrow{-ms-transform:none;transform:none;-webkit-transform:none}.wpr-testimonial-nav-position-default .wpr-testimonial-next-arrow{-ms-transform:translateY(0) rotate(180deg);transform:translateY(0) rotate(180deg);-webkit-transform:translateY(0) rotate(180deg)}.wpr-testimonial-nav-align-bottom-center .wpr-testimonial-arrow-container,.wpr-testimonial-nav-align-top-center .wpr-testimonial-arrow-container{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-testimonial-arrow{position:absolute;z-index:120;top:52%;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;cursor:pointer}.wpr-testimonial-arrow i{display:block;line-height:inherit}.wpr-testimonial-prev-arrow{left:2%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-testimonial-next-arrow{right:2%;-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.wpr-testimonial-nav-fade .wpr-testimonial-arrow{opacity:0}.wpr-testimonial-dots{display:inline-table;position:absolute;z-index:110;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wpr-testimonial-dots ul{list-style:none;margin:0}.wpr-testimonial-dots li{float:left;width:auto!important;margin:0!important}.wpr-testimonial-dot{display:block;cursor:pointer}.wpr-testimonial-dots li:last-child .wpr-testimonial-dot{margin:0!important}.wpr-testimonial-social-media{display:inline-block}.wpr-testimonial-social{display:block;float:left;width:45px;height:45px;line-height:45px;font-size:45px;-webkit-box-sizing:content-box;box-sizing:content-box;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;cursor:pointer}.wpr-testimonial-social i{display:block;width:100%;height:100%;line-height:inherit}.wpr-testimonial-social:last-child{margin-right:0!important}.wpr-testimonial-rating i{display:inline;position:relative;font-family:eicons;font-style:normal;line-height:1;overflow:hidden}.wpr-testimonial-rating i:before{content:'\e934';font-weight:900;display:block;position:absolute;top:0;left:0;font-size:inherit;font-family:inherit;overflow:hidden}.wpr-testimonial-rating-style_2 .wpr-testimonial-rating i:before{content:'\002605'}.wpr-testimonial-rating i:last-of-type{margin-right:0!important}.wpr-rating-icon-empty:before{display:none!important}.elementor-widget-wpr-testimonial-carousel .wpr-testimonial-content-wrap .wpr-testimonial-title{font-size:18px;font-weight:700}.wpr-testimonial-content{position:relative;font-size:15px}.wpr-testimonial-content p{position:relative;z-index:5;margin:0}.wpr-testimonial-content .wpr-testimonial-icon{position:absolute;width:100%;z-index:1}.wpr-testimonial-date{font-size:10px}.wpr-testimonial-content-inner{position:relative;background-color:#f9f9f9}.wpr-testimonial-triangle-yes .wpr-testimonial-content-inner:before{content:"";position:absolute;width:0;height:0;border-left:15px solid transparent;border-right:15px solid transparent;border-top-style:solid;border-top-width:15px}.wpr-testimonial-meta-position-bottom.wpr-testimonial-meta-align-center .wpr-testimonial-content-inner:before,.wpr-testimonial-meta-position-top.wpr-testimonial-meta-align-center .wpr-testimonial-content-inner:before{right:calc(50% - 15px)}.wpr-testimonial-meta-position-bottom.wpr-testimonial-meta-align-left .wpr-testimonial-content-inner:before,.wpr-testimonial-meta-position-top.wpr-testimonial-meta-align-left .wpr-testimonial-content-inner:before{margin-left:-15px}.wpr-testimonial-meta-position-bottom.wpr-testimonial-meta-align-right .wpr-testimonial-content-inner:before,.wpr-testimonial-meta-position-top.wpr-testimonial-meta-align-right .wpr-testimonial-content-inner:before{margin-right:-15px}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner:before,.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner:before{margin-top:-7.5px}.wpr-testimonial-meta-position-top .wpr-testimonial-content-inner:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.wpr-testimonial-meta-position-top .wpr-testimonial-content-inner{margin-top:15px}.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner:before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner{margin-right:15px}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner{margin-left:15px}.wpr-testimonial-meta-position-bottom .wpr-testimonial-content-inner:before{bottom:-15px}.wpr-testimonial-meta-position-bottom .wpr-testimonial-content-inner{margin-bottom:15px}.wpr-testimonial-meta-position-extra .wpr-testimonial-content-inner:before{display:none}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner:before{left:-22px}.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner:before{right:-22px}.wpr-testimonial-meta-position-top .wpr-testimonial-content-inner:before{top:-15px}.wpr-testimonial-meta-position-bottom .wpr-testimonial-content-inner:before{bottom:-15px}.wpr-testimonial-image{overflow:hidden}.elementor-widget-wpr-testimonial-carousel .wpr-testimonial-meta .wpr-testimonial-name{font-size:14px;font-weight:700}.wpr-testimonial-logo-image{display:block;overflow:hidden}.wpr-testimonial-item{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.wpr-testimonial-meta-position-extra .wpr-testimonial-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-testimonial-meta-position-top .wpr-testimonial-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-testimonial-meta-position-bottom .wpr-testimonial-item{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpr-testimonial-meta-position-right .wpr-testimonial-item{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-testimonial-meta-position-left .wpr-testimonial-item{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.wpr-testimonial-meta-position-left .wpr-testimonial-meta,.wpr-testimonial-meta-position-right .wpr-testimonial-meta{-ms-flex-negative:0;flex-shrink:0}@media screen and (max-width:480px){.wpr-testimonial-meta-position-left .wpr-testimonial-item,.wpr-testimonial-meta-position-right .wpr-testimonial-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner,.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner{margin-left:0!important}.wpr-testimonial-meta-position-left .wpr-testimonial-meta,.wpr-testimonial-meta-position-right .wpr-testimonial-meta{margin-left:0!important;margin-right:0!important;padding:0!important;margin-bottom:20px}.wpr-testimonial-meta-position-left .wpr-testimonial-content-inner:before,.wpr-testimonial-meta-position-right .wpr-testimonial-content-inner:before{display:none}}.wpr-testimonial-job{font-size:10px}.wpr-testimonial-image-position-left .wpr-testimonial-meta-inner>div,.wpr-testimonial-image-position-right .wpr-testimonial-meta-inner>div{display:inline-block;vertical-align:top}.wpr-testimonial-image-position-center.wpr-testimonial-meta-align-left .wpr-testimonial-meta img,.wpr-testimonial-image-position-left .wpr-testimonial-image,.wpr-testimonial-image-position-left .wpr-testimonial-logo-image img{float:left}.wpr-testimonial-image-position-center.wpr-testimonial-meta-align-right .wpr-testimonial-meta img,.wpr-testimonial-image-position-right .wpr-testimonial-image,.wpr-testimonial-image-position-right .wpr-testimonial-logo-image img{float:right}.wpr-testimonial-image-position-left .wpr-testimonial-meta-content-wrap,.wpr-testimonial-meta-align-left .wpr-testimonial-meta{text-align:left}.wpr-testimonial-meta-align-center .wpr-testimonial-meta{text-align:center}.wpr-testimonial-image-position-right .wpr-testimonial-meta-content-wrap,.wpr-testimonial-meta-align-right .wpr-testimonial-meta{text-align:right}.wpr-testimonial-meta-align-center .wpr-testimonial-meta img{margin:0 auto}.wpr-testimonial-meta-position-extra .wpr-testimonial-meta img{display:inline-block}.wpr-testimonial-meta-inner{display:inline-block}.wpr-testimonial-meta-position-bottom .wpr-testimonial-logo-image img,.wpr-testimonial-meta-position-bottom .wpr-testimonial-social-media,.wpr-testimonial-meta-position-top .wpr-testimonial-logo-image img,.wpr-testimonial-meta-position-top .wpr-testimonial-social-media{float:none!important;display:inline-block!important}@media screen and (min-width:480px){.wpr-testimonial-image-position-left .wpr-testimonial-image,.wpr-testimonial-image-position-right .wpr-testimonial-image{margin-bottom:0!important}}@media screen and (max-width:480px){.wpr-testimonial-meta-position-left .wpr-testimonial-image,.wpr-testimonial-meta-position-left .wpr-testimonial-meta-content-wrap,.wpr-testimonial-meta-position-right .wpr-testimonial-image,.wpr-testimonial-meta-position-right .wpr-testimonial-meta-content-wrap{display:block!important;float:none!important;text-align:center!important}.wpr-testimonial-meta-position-left.wpr-testimonial-image-position-left .wpr-testimonial-image,.wpr-testimonial-meta-position-left.wpr-testimonial-image-position-right .wpr-testimonial-image,.wpr-testimonial-meta-position-right.wpr-testimonial-image-position-left .wpr-testimonial-image,.wpr-testimonial-meta-position-right.wpr-testimonial-image-position-right .wpr-testimonial-image{margin-left:0!important;margin-right:0!important}.wpr-testimonial-meta-position-left .wpr-testimonial-image img,.wpr-testimonial-meta-position-left .wpr-testimonial-logo-image img,.wpr-testimonial-meta-position-right .wpr-testimonial-image img,.wpr-testimonial-meta-position-right .wpr-testimonial-logo-image img{display:inline-block!important;float:none!important}}.wpr-search-form-input-wrap{width:100%;overflow:hidden}.wpr-search-form .wpr-search-form-input{width:100%;height:100%;font-size:14px;background-color:transparent;border-style:solid}.wpr-search-form-style-inner .wpr-search-form-input-wrap,.wpr-search-form-style-outer .wpr-search-form{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-search-form-style-inner.wpr-search-form-position-left .wpr-search-form-input-wrap,.wpr-search-form-style-outer.wpr-search-form-position-left .wpr-search-form{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-search-form-submit{cursor:pointer;border-style:solid;-webkit-transition:all .2s;-o-transition:all .2s;transition:all .2s}.wpr-search-form-disable-submit-btn-yes .wpr-search-form-submit{pointer-events:none;cursor:default}.wpr-team-member{overflow:hidden}.wpr-member-content{overflow:hidden}.wpr-member-name{display:block;line-height:1}.elementor .elementor-widget-wpr-team-member .wpr-member-name{font-size:24px;font-weight:500}.wpr-member-job{font-size:13px}.wpr-member-description{font-size:15px;line-height:1.4}.wpr-member-media{position:relative;margin:0 auto;width:100%;overflow:hidden}.wpr-member-image{overflow:hidden}.wpr-member-overlay-content{position:relative}.wpr-member-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(255,255,255,.9)}.wpr-member-social-media{display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.wpr-member-social{display:block;width:45px;height:45px;line-height:45px;font-size:45px;-webkit-box-sizing:content-box;box-sizing:content-box;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;cursor:pointer}.wpr-member-social i{display:block;width:100%;height:100%;line-height:inherit}.wpr-member-social:last-child{margin-right:0!important}.wpr-team-member-social-media-left .wpr-member-social-media{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.wpr-team-member-social-media-right .wpr-member-social-media{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpr-team-member-social-media-center .wpr-member-social-media{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-member-btn{display:inline-block;position:relative;overflow:hidden;display:inline-block;vertical-align:middle;background-color:#222;cursor:pointer;font-size:14px}.wpr-member-btn span{position:relative;z-index:2;opacity:1!important}.wpr-member-btn:after,.wpr-member-btn:before{z-index:1!important}.wpr-member-divider{overflow:hidden}.wpr-member-divider:after{content:"";display:block;width:100%;margin-top:0;overflow:hidden}.wpr-team-member-divider-left .wpr-member-divider:after{float:left}.wpr-team-member-divider-right .wpr-member-divider:after{float:right}.wpr-team-member-divider-center .wpr-member-divider:after{margin-left:auto;margin-right:auto}.wpr-button-wrap{position:relative;display:inline-table;z-index:1;width:100%}.wpr-button{display:block;position:relative;width:100%;z-index:1;overflow:hidden}.elementor .elementor-widget-wpr-button .wpr-button-text{font-size:15px;font-weight:500}.wpr-button-icon-style-block .wpr-button-text,.wpr-button-icon-style-inline-block .wpr-button-text{width:100%}.wpr-button-icon-style-block .wpr-button-icon,.wpr-button-icon-style-inline-block .wpr-button-icon{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-button-content{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-button-icon,.wpr-button-text{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-button-icon-position-left .wpr-button-icon{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.wpr-button-icon-position-left .wpr-button-text{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.wpr-button-tooltip{position:absolute;border-radius:4px;visibility:hidden;opacity:0;font-size:13px;line-height:1.5;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;z-index:20}.wpr-button-tooltip:before{content:"";position:absolute;width:0;height:0;border-top-style:solid;border-left:6px solid transparent;border-right:6px solid transparent;border-top-width:6px}.wpr-button-tooltip p{margin:0}.wpr-button-wrap:hover .wpr-button-tooltip{visibility:visible;opacity:1}.wpr-button-tooltip-position-top .wpr-button-tooltip{top:0;left:50%;-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%);-webkit-transform:translate(-50%,-120%);margin-top:-5px}.wpr-button-tooltip-position-top .wpr-button-wrap:hover .wpr-button-tooltip{-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform:translate(-50%,-100%)}.wpr-button-tooltip-position-top .wpr-button-tooltip:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%);bottom:-5px}.wpr-button-tooltip-position-bottom .wpr-button-tooltip{bottom:0;left:50%;-ms-transform:translate(-50%,120%);transform:translate(-50%,120%);-webkit-transform:translate(-50%,120%);margin-bottom:-5px}.wpr-button-tooltip-position-bottom .wpr-button-wrap:hover .wpr-button-tooltip{-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);-webkit-transform:translate(-50%,100%)}.wpr-button-tooltip-position-bottom .wpr-button-tooltip:before{top:-5px;left:50%;-webkit-transform:translateX(-50%) rotate(180deg);-ms-transform:translateX(-50%) rotate(180deg);transform:translateX(-50%) rotate(180deg)}.wpr-button-tooltip-position-left .wpr-button-tooltip{top:50%;left:0;-ms-transform:translate(-120%,-50%);transform:translate(-120%,-50%);-webkit-transform:translate(-120%,-50%);margin-left:-5px}.wpr-button-tooltip-position-left .wpr-button-wrap:hover .wpr-button-tooltip{-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);-webkit-transform:translate(-100%,-50%)}.wpr-button-tooltip-position-left .wpr-button-tooltip:before{right:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(-90deg);-ms-transform:translateY(-50%) rotate(-90deg);transform:translateY(-50%) rotate(-90deg)}.wpr-button-tooltip-position-right .wpr-button-tooltip{top:50%;right:0;-ms-transform:translate(120%,-50%);transform:translate(120%,-50%);-webkit-transform:translate(120%,-50%);margin-right:-5px}.wpr-button-tooltip-position-right .wpr-button-wrap:hover .wpr-button-tooltip{-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);-webkit-transform:translate(100%,-50%)}.wpr-button-tooltip-position-right .wpr-button-tooltip:before{left:-8px;top:50%;-ms-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg);-webkit-transform:translateY(-50%) rotate(90deg)}.elementor-widget-wpr-button .wpr-button{background-color:#605be5}.elementor-widget-wpr-button .wpr-button-none:hover,.elementor-widget-wpr-button .wpr-button::after,.elementor-widget-wpr-button .wpr-button::before,.elementor-widget-wpr-button [class*=elementor-animation]:hover{background-color:#4a45d2}.elementor-widget-wpr-button .wpr-button-text,.elementor-widget-wpr-button .wpr-button::after{font-size:14px}.wpr-dual-button{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-button-a-wrap,.wpr-button-b-wrap{position:relative;width:100%}.wpr-button-a-wrap{z-index:5}.wpr-button-b-wrap{z-index:2}.wpr-button-a,.wpr-button-b{display:block;position:relative;width:100%;z-index:1;overflow:hidden}.wpr-button-content-a,.wpr-button-content-b{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-button-icon-a,.wpr-button-icon-b,.wpr-button-text-a,.wpr-button-text-b{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-button-icon-a-position-left .wpr-button-icon-a,.wpr-button-icon-b-position-left .wpr-button-icon-b{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.wpr-button-icon-a-position-left .wpr-button-text-a,.wpr-button-icon-b-position-left .wpr-button-text-b{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.wpr-button-middle-badge{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:50%;right:0;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);text-align:center;-webkit-box-sizing:content-box;box-sizing:content-box;z-index:10;border-width:3px;border-color:#00ce1b;-webkit-box-shadow:0 0 0 4px rgba(255,255,255,.3);box-shadow:0 0 0 4px rgba(255,255,255,.3)}.wpr-button-middle-badge i{line-height:inherit}.wpr-button-tooltip-a{position:absolute;border-radius:4px;visibility:hidden;opacity:0;font-size:13px;line-height:1.5;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;z-index:20}.wpr-button-tooltip-a:before{content:"";position:absolute;width:0;height:0;border-top-style:solid;border-left:6px solid transparent;border-right:6px solid transparent;border-top-width:6px}.wpr-button-tooltip-a p{margin:0}.wpr-button-a-wrap:hover .wpr-button-tooltip-a{visibility:visible;opacity:1}.wpr-button-tooltip-a-position-top .wpr-button-tooltip-a{top:0;left:50%;-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%);-webkit-transform:translate(-50%,-120%);margin-top:-5px}.wpr-button-tooltip-a-position-top .wpr-button-a-wrap:hover .wpr-button-tooltip-a{-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform:translate(-50%,-100%)}.wpr-button-tooltip-a-position-top .wpr-button-tooltip-a:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%);bottom:-5px}.wpr-button-tooltip-a-position-bottom .wpr-button-tooltip-a{bottom:0;left:50%;-ms-transform:translate(-50%,120%);transform:translate(-50%,120%);-webkit-transform:translate(-50%,120%);margin-bottom:-5px}.wpr-button-tooltip-a-position-bottom .wpr-button-a-wrap:hover .wpr-button-tooltip-a{-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);-webkit-transform:translate(-50%,100%)}.wpr-button-tooltip-a-position-bottom .wpr-button-tooltip-a:before{top:-5px;left:50%;-webkit-transform:translateX(-50%) rotate(180deg);-ms-transform:translateX(-50%) rotate(180deg);transform:translateX(-50%) rotate(180deg)}.wpr-button-tooltip-a-position-left .wpr-button-tooltip-a{top:50%;left:0;-ms-transform:translate(-120%,-50%);transform:translate(-120%,-50%);-webkit-transform:translate(-120%,-50%);margin-left:-5px}.wpr-button-tooltip-a-position-left .wpr-button-a-wrap:hover .wpr-button-tooltip-a{-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);-webkit-transform:translate(-100%,-50%)}.wpr-button-tooltip-a-position-left .wpr-button-tooltip-a:before{right:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(-90deg);-ms-transform:translateY(-50%) rotate(-90deg);transform:translateY(-50%) rotate(-90deg)}.wpr-button-tooltip-a-position-right .wpr-button-tooltip-a{top:50%;right:0;-ms-transform:translate(120%,-50%);transform:translate(120%,-50%);-webkit-transform:translate(120%,-50%);margin-right:-5px}.wpr-button-tooltip-a-position-right .wpr-button-a-wrap:hover .wpr-button-tooltip-a{-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);-webkit-transform:translate(100%,-50%)}.wpr-button-tooltip-a-position-right .wpr-button-tooltip-a:before{left:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(90deg);-ms-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}.wpr-button-tooltip-b{position:absolute;border-radius:4px;visibility:hidden;opacity:0;font-size:13px;line-height:1.5;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;z-index:20}.wpr-button-tooltip-b:before{content:"";position:absolute;width:0;height:0;border-top-style:solid;border-left:6px solid transparent;border-right:6px solid transparent;border-top-width:6px}.wpr-button-tooltip-b p{margin:0}.wpr-button-b-wrap:hover .wpr-button-tooltip-b{visibility:visible;opacity:1}.wpr-button-tooltip-b-position-top .wpr-button-tooltip-b{top:0;left:50%;-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%);-webkit-transform:translate(-50%,-120%);margin-top:-5px}.wpr-button-tooltip-b-position-top .wpr-button-b-wrap:hover .wpr-button-tooltip-b{-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform:translate(-50%,-100%)}.wpr-button-tooltip-b-position-top .wpr-button-tooltip-b:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%);bottom:-5px}.wpr-button-tooltip-b-position-bottom .wpr-button-tooltip-b{bottom:0;left:50%;-ms-transform:translate(-50%,120%);transform:translate(-50%,120%);-webkit-transform:translate(-50%,120%);margin-bottom:-5px}.wpr-button-tooltip-b-position-bottom .wpr-button-b-wrap:hover .wpr-button-tooltip-b{-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);-webkit-transform:translate(-50%,100%)}.wpr-button-tooltip-b-position-bottom .wpr-button-tooltip-b:before{top:-5px;left:50%;-webkit-transform:translateX(-50%) rotate(180deg);-ms-transform:translateX(-50%) rotate(180deg);transform:translateX(-50%) rotate(180deg)}.wpr-button-tooltip-b-position-left .wpr-button-tooltip-b{top:50%;left:0;-ms-transform:translate(-120%,-50%);transform:translate(-120%,-50%);-webkit-transform:translate(-120%,-50%);margin-left:-5px}.wpr-button-tooltip-b-position-left .wpr-button-b-wrap:hover .wpr-button-tooltip-b{-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);-webkit-transform:translate(-100%,-50%)}.wpr-button-tooltip-b-position-left .wpr-button-tooltip-b:before{right:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(-90deg);-ms-transform:translateY(-50%) rotate(-90deg);transform:translateY(-50%) rotate(-90deg)}.wpr-button-tooltip-b-position-right .wpr-button-tooltip-b{top:50%;right:0;-ms-transform:translate(120%,-50%);transform:translate(120%,-50%);-webkit-transform:translate(120%,-50%);margin-right:-5px}.wpr-button-tooltip-b-position-right .wpr-button-b-wrap:hover .wpr-button-tooltip-b{-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);-webkit-transform:translate(100%,-50%)}.wpr-button-tooltip-b-position-right .wpr-button-tooltip-b:before{left:-8px;top:50%;-webkit-transform:translateY(-50%) rotate(90deg);-ms-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}@media screen and (max-width:480px){.wpr-button-tooltip-a-position-left .wpr-button-tooltip-a,.wpr-button-tooltip-b-position-right .wpr-button-tooltip-b,.wpr-button-tooltip-position-left .wpr-button-tooltip,.wpr-button-tooltip-position-right .wpr-button-tooltip{top:0;left:50%!important;right:auto!important;-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%);-webkit-transform:translate(-50%,-120%);margin-top:-5px}.wpr-button-tooltip-a-position-left .wpr-button-a-wrap:hover .wpr-button-tooltip-a,.wpr-button-tooltip-b-position-right .wpr-button-b-wrap:hover .wpr-button-tooltip-b,.wpr-button-tooltip-position-left .wpr-button-wrap:hover .wpr-button-tooltip,.wpr-button-tooltip-position-right .wpr-button-wrap:hover .wpr-button-tooltip{-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);-webkit-transform:translate(-50%,-100%)}.wpr-button-tooltip-a-position-left .wpr-button-tooltip-a:before,.wpr-button-tooltip-b-position-right .wpr-button-tooltip-b:before,.wpr-button-tooltip-position-left .wpr-button-tooltip:before,.wpr-button-tooltip-position-right .wpr-button-tooltip:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%);bottom:-5px;top:auto}}.elementor-widget-wpr-dual-button .wpr-button-a,.elementor-widget-wpr-dual-button .wpr-button-b{background-color:#605be5}.elementor-widget-wpr-dual-button .wpr-dual-button .wpr-button-effect::after,.elementor-widget-wpr-dual-button .wpr-dual-button .wpr-button-effect::before,.elementor-widget-wpr-dual-button .wpr-dual-button .wpr-button-none:hover,.elementor-widget-wpr-dual-button .wpr-dual-button [class*=elementor-animation]:hover{background-color:#4a45d2}.elementor-widget-wpr-dual-button .wpr-button-a::after,.elementor-widget-wpr-dual-button .wpr-button-b::after,.elementor-widget-wpr-dual-button .wpr-button-text-a,.elementor-widget-wpr-dual-button .wpr-button-text-b{font-size:14px}.elementor-widget-wpr-dual-button .wpr-button-middle-badge{font-size:13px}.wpr-anim-text,.wpr-clipped-text,.wpr-highlighted-text{display:inline-block;vertical-align:middle}.wpr-advanced-text-preffix,.wpr-advanced-text-suffix{vertical-align:middle}.elementor-widget-wpr-advanced-text b{font-weight:none}.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-advanced-text-preffix,.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-advanced-text-suffix,.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-anim-text,.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-anim-text b,.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-highlighted-text{font-size:32px;font-weight:700}.wpr-advanced-text{display:block}.wpr-clipped-text{position:relative;-ms-transform:translate(0,0);transform:translate(0,0);-webkit-transform:translate(0,0);z-index:0}.wpr-clipped-text-content{-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.elementor-widget-wpr-advanced-text .wpr-advanced-text .wpr-clipped-text{font-size:50px;font-weight:700}.wpr-clipped-text-long-shadow{position:absolute;display:inline-block;top:0;left:0;width:100%;height:100%;z-index:-1}.wpr-highlighted-text{position:relative;text-align:left}.wpr-highlighted-text-inner{position:relative;z-index:1}.wpr-highlighted-text svg{position:absolute;top:50%;left:50%;width:100%;height:100%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);overflow:visible;z-index:auto}.wpr-highlighted-text svg path{-webkit-animation-name:wpr-anim-text;animation-name:wpr-anim-text;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;fill:none;stroke-width:4;stroke-dasharray:1500;-webkit-animation-iteration-count:1;-animation-iteration-count:1;opacity:0}.wpr-highlighted-text .wpr-highlight-curly{-webkit-transform:translate(-50%,25%);-ms-transform:translate(-50%,25%);transform:translate(-50%,25%)}.wpr-highlighted-text .wpr-highlight-x{-webkit-transform:translate(-50%,-35%);-ms-transform:translate(-50%,-35%);transform:translate(-50%,-35%)}.wpr-highlighted-text .wpr-highlight-strikethrough{-webkit-transform:translate(-50%,-47%);-ms-transform:translate(-50%,-47%);transform:translate(-50%,-47%)}.wpr-highlighted-text .wpr-highlight-underline{-webkit-transform:translate(-50%,27%);-ms-transform:translate(-50%,27%);transform:translate(-50%,27%)}.wpr-highlighted-text .wpr-highlight-double{-webkit-transform:translate(-50%,-40%);-ms-transform:translate(-50%,-40%);transform:translate(-50%,-40%)}.wpr-highlighted-text .wpr-highlight-double-underline{-webkit-transform:translate(-50%,30%);-ms-transform:translate(-50%,30%);transform:translate(-50%,30%)}.wpr-highlighted-text .wpr-highlight-diagonal{-webkit-transform:translate(-50%,-40%);-ms-transform:translate(-50%,-40%);transform:translate(-50%,-40%)}.wpr-animated-text-infinite-yes .wpr-highlighted-text svg path{-webkit-animation-name:wpr-anim-text-infinite;animation-name:wpr-anim-text-infinite}@-webkit-keyframes wpr-anim-text-infinite{0%{opacity:1;stroke-dasharray:0 1500}12%{stroke-dasharray:1500 1500}80%{opacity:1}97%{opacity:0;stroke-dasharray:1500 1500}100%{stroke-dasharray:0 1500}}@keyframes wpr-anim-text-infinite{0%{opacity:1;stroke-dasharray:0 1500}12%{stroke-dasharray:1500 1500}80%{opacity:1}97%{opacity:0;stroke-dasharray:1500 1500}100%{stroke-dasharray:0 1500}}@-webkit-keyframes wpr-anim-text{0%{opacity:1;stroke-dasharray:0 1500}12%{stroke-dasharray:1500 1500}100%{opacity:1}}@keyframes wpr-anim-text{0%{opacity:1;stroke-dasharray:0 1500}12%{stroke-dasharray:1500 1500}100%{opacity:1}}@-webkit-keyframes wpr-anim-text-infinite{0%{opacity:1;stroke-dasharray:0 1500}12%{stroke-dasharray:1500 1500}100%{opacity:1}}.wpr-anim-text-inner{float:left}.wpr-anim-text-cursor{display:inline-block;zoom:1;opacity:1;-webkit-animation-name:wpr-cursor-blink;animation-name:wpr-cursor-blink;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes wpr-cursor-blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}@keyframes wpr-cursor-blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.elementor-widget-wpr-advanced-text .wpr-clipped-text-content{background-color:#605be5}.wpr-prbar-counter-value-suffix{line-height:1}.wpr-prbar-hr-line{position:relative;width:100%;overflow:hidden}.wpr-prbar-hr-line-inner{position:relative;top:0;left:0;width:0;height:100%;-webkit-transition-property:width;-o-transition-property:width;transition-property:width;overflow:hidden}.wpr-prbar-hr-line .wpr-prbar-content{position:absolute;top:0;left:0;width:100%;height:100%}.wpr-prbar-hr-line .wpr-prbar-title-wrap{position:absolute;top:50%;left:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-prbar-layout-hr-line .wpr-prbar-subtitle{text-align:left}.wpr-prbar-hr-line .wpr-prbar-counter{position:absolute;top:50%;right:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-prbar-layout-hr-line .wpr-prbar-title-wrap{float:left}.wpr-prbar-layout-hr-line .wpr-prbar-counter{float:right}.wpr-prbar-vr-line{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;width:100%;margin:0 auto;overflow:hidden}.wpr-prbar-vr-line-inner{position:relative;width:100%;height:0;-webkit-transition-property:height;-o-transition-property:height;transition-property:height;overflow:hidden}.wpr-prbar-circle{position:relative;display:table;width:100%;height:auto;margin:0 auto}.wpr-prbar-circle-svg{width:100%;height:auto;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);border-radius:50%}.wpr-prbar-circle-prline{-webkit-transition-property:stroke-dasharray,stroke-dashoffset;-o-transition-property:stroke-dasharray,stroke-dashoffset;transition-property:stroke-dasharray,stroke-dashoffset;stroke-linecap:butt}.wpr-prbar-circle .wpr-prbar-content{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wpr-prbar-content{text-align:center;overflow:hidden}.wpr-prbar-counter{display:-webkit-box;display:-ms-flexbox;display:-moz-flex;display:flex;font-size:12px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-prbar-subtitle,.wpr-prbar-title{font-size:12px;text-align:center}.wpr-prbar-stripe-yes .wpr-prbar-hr-line-inner:after,.wpr-prbar-stripe-yes .wpr-prbar-vr-line-inner:after{content:'';position:absolute;top:0;left:-30px;width:calc(100% + 60px);height:100%;background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:30px 30px}.wpr-prbar-stripe-yes.wpr-prbar-stripe-anim-right .wpr-prbar-hr-line-inner:after,.wpr-prbar-stripe-yes.wpr-prbar-stripe-anim-right .wpr-prbar-vr-line-inner:after{-webkit-animation:stripe-anim-right 2s linear infinite;animation:stripe-anim-right 2s linear infinite}.wpr-prbar-stripe-yes.wpr-prbar-stripe-anim-left .wpr-prbar-hr-line-inner:after,.wpr-prbar-stripe-yes.wpr-prbar-stripe-anim-left .wpr-prbar-vr-line-inner:after{-webkit-animation:stripe-anim-left 2s linear infinite;animation:stripe-anim-left 2s linear infinite}@-webkit-keyframes stripe-anim-right{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(30px,0);transform:translate(30px,0)}}@keyframes stripe-anim-right{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(30px,0);transform:translate(30px,0)}}@-webkit-keyframes stripe-anim-left{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(-30px,0);transform:translate(-30px,0)}}@keyframes stripe-anim-left{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(-30px,0);transform:translate(-30px,0)}}.elementor-widget-wpr-progress-bar .wpr-prbar-hr-line-inner,.elementor-widget-wpr-progress-bar .wpr-prbar-vr-line-inner{background-color:#605be5}.wpr-price-list-item:last-child{margin-bottom:0}.wpr-price-list-content{width:100%;overflow:hidden}.wpr-price-list-item{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.wpr-price-list-link{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.wpr-price-list-position-right .wpr-price-list-item{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-price-list-position-center .wpr-price-list-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-price-list-position-center .wpr-price-list-heading{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-price-list-position-center .wpr-price-list-separator{display:none}.wpr-price-list-position-left .wpr-price-list-price-wrap,.wpr-price-list-position-right .wpr-price-list-price-wrap{margin-left:auto}.wpr-price-list-image img{display:block;margin:0 auto}.wpr-price-list-heading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.elementor-widget-wpr-price-list .wpr-price-list-heading .wpr-price-list-price,.elementor-widget-wpr-price-list .wpr-price-list-heading .wpr-price-list-title{font-size:17px;font-weight:700}.wpr-price-list-old-price{font-size:11px}.wpr-price-list-description{font-size:14px}.wpr-price-list-separator{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:0}.wpr-price-list-price-wrap{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.wpr-price-list-old-position-after .wpr-price-list-price-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-price-list-old-position-after .wpr-price-list-old-price{margin-right:10px}.wpr-price-list-old-position-before .wpr-price-list-old-price{margin-left:3px}.wpr-price-list-old-price{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;text-decoration:line-through}.wpr-image-hotspots{position:relative}.wpr-hotspot-item-container{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.wpr-hotspot-image img{width:100%}.wpr-hotspot-item{position:absolute}.wpr-hotspot-text{font-size:15px}.wpr-hotspot-content{position:relative;z-index:15;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;text-align:center}.wpr-hotspot-icon-position-left .wpr-hotspot-content{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-hotspot-item,.wpr-hotspot-item:before{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-play-state:running;animation-play-state:running}.wpr-hotspot-trigger-click .wpr-hotspot-item,.wpr-hotspot-trigger-hover .wpr-hotspot-item{cursor:pointer}.wpr-hotspot-tooltip{position:absolute;border-radius:4px;visibility:hidden;opacity:0;font-size:13px;line-height:1.5;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;z-index:20;-webkit-box-shadow:0 0 4px 0 rgba(0,0,0,.5);box-shadow:0 0 4px 0 rgba(0,0,0,.5);font-size:13px}.wpr-hotspot-tooltip:before{content:"";position:absolute;width:0;height:0}.wpr-hotspot-tooltip-position-pro-bt .wpr-hotspot-tooltip,.wpr-hotspot-tooltip-position-pro-lt .wpr-hotspot-tooltip,.wpr-hotspot-tooltip-position-pro-rt .wpr-hotspot-tooltip{top:-120%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wpr-hotspot-tooltip-position-bottom .wpr-hotspot-tooltip:before,.wpr-hotspot-tooltip-position-top .wpr-hotspot-tooltip:before{border-left-color:transparent;border-right-color:transparent;border-top-style:solid;border-left-style:solid;border-right-style:solid}.wpr-hotspot-tooltip-position-left .wpr-hotspot-tooltip:before,.wpr-hotspot-tooltip-position-right .wpr-hotspot-tooltip:before{border-bottom-color:transparent;border-top-color:transparent;border-right-style:solid;border-bottom-style:solid;border-top-style:solid}.wpr-hotspot-tooltip p{margin:0}.wpr-tooltip-active .wpr-hotspot-tooltip{visibility:visible;opacity:1}.wpr-hotspot-tooltip-position-top .wpr-hotspot-tooltip:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%)}.wpr-hotspot-tooltip-position-bottom .wpr-hotspot-tooltip:before{left:50%;-webkit-transform:translateX(-50%) rotate(180deg);-ms-transform:translateX(-50%) rotate(180deg);transform:translateX(-50%) rotate(180deg)}.wpr-hotspot-tooltip-position-left .wpr-hotspot-tooltip:before{top:50%;-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.wpr-hotspot-tooltip-position-right .wpr-hotspot-tooltip:before{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-hotspot-tooltip-position-bottom .wpr-hotspot-tooltip,.wpr-hotspot-tooltip-position-top .wpr-hotspot-tooltip{left:50%}.wpr-hotspot-tooltip-position-left .wpr-hotspot-tooltip,.wpr-hotspot-tooltip-position-right .wpr-hotspot-tooltip{top:50%}.wpr-hotspot-tooltip-position-top.wpr-tooltip-effect-shift-toward .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,-120%);-ms-transform:translate(-50%,-120%);transform:translate(-50%,-120%)}.wpr-hotspot-tooltip-position-top.wpr-tooltip-effect-shift-toward .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.wpr-hotspot-tooltip-position-bottom.wpr-tooltip-effect-shift-toward .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,120%);-ms-transform:translate(-50%,120%);transform:translate(-50%,120%)}.wpr-hotspot-tooltip-position-bottom.wpr-tooltip-effect-shift-toward .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%)}.wpr-hotspot-tooltip-position-left.wpr-tooltip-effect-shift-toward .wpr-hotspot-tooltip{-webkit-transform:translate(-120%,-50%);-ms-transform:translate(-120%,-50%);transform:translate(-120%,-50%)}.wpr-hotspot-tooltip-position-left.wpr-tooltip-effect-shift-toward .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.wpr-hotspot-tooltip-position-right.wpr-tooltip-effect-shift-toward .wpr-hotspot-tooltip{-webkit-transform:translate(120%,-50%);-ms-transform:translate(120%,-50%);transform:translate(120%,-50%)}.wpr-hotspot-tooltip-position-right.wpr-tooltip-effect-shift-toward .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%)}.wpr-hotspot-tooltip-position-top.wpr-tooltip-effect-fade .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.wpr-hotspot-tooltip-position-bottom.wpr-tooltip-effect-fade .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%)}.wpr-hotspot-tooltip-position-left.wpr-tooltip-effect-fade .wpr-hotspot-tooltip{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.wpr-hotspot-tooltip-position-right.wpr-tooltip-effect-fade .wpr-hotspot-tooltip{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%)}.wpr-hotspot-tooltip-position-top.wpr-tooltip-effect-scale .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,-100%) scale(.7);-ms-transform:translate(-50%,-100%) scale(.7);transform:translate(-50%,-100%) scale(.7)}.wpr-hotspot-tooltip-position-bottom.wpr-tooltip-effect-scale .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,100%) scale(.7);-ms-transform:translate(-50%,100%) scale(.7);transform:translate(-50%,100%) scale(.7)}.wpr-hotspot-tooltip-position-left.wpr-tooltip-effect-scale .wpr-hotspot-tooltip{-webkit-transform:translate(-100%,-50%) scale(.7);-ms-transform:translate(-100%,-50%) scale(.7);transform:translate(-100%,-50%) scale(.7)}.wpr-hotspot-tooltip-position-right.wpr-tooltip-effect-scale .wpr-hotspot-tooltip{-webkit-transform:translate(100%,-50%) scale(.7);-ms-transform:translate(100%,-50%) scale(.7);transform:translate(100%,-50%) scale(.7)}.wpr-hotspot-tooltip-position-top.wpr-tooltip-effect-scale .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,-100%) scale(1);-ms-transform:translate(-50%,-100%) scale(1);transform:translate(-50%,-100%) scale(1)}.wpr-hotspot-tooltip-position-bottom.wpr-tooltip-effect-scale .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-50%,100%) scale(1);-ms-transform:translate(-50%,100%) scale(1);transform:translate(-50%,100%) scale(1)}.wpr-hotspot-tooltip-position-left.wpr-tooltip-effect-scale .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(-100%,-50%) scale(1);-ms-transform:translate(-100%,-50%) scale(1);transform:translate(-100%,-50%) scale(1)}.wpr-hotspot-tooltip-position-right.wpr-tooltip-effect-scale .wpr-tooltip-active .wpr-hotspot-tooltip{-webkit-transform:translate(100%,-50%) scale(1);-ms-transform:translate(100%,-50%) scale(1);transform:translate(100%,-50%) scale(1)}@keyframes wpr-hotspot-anim-pulse{0%,100%,87%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}88%,92%,96%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}90%,94%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}}@-webkit-keyframes wpr-hotspot-anim-pulse{0%,100%,87%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}88%,92%,96%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}90%,94%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}}.wpr-hotspot-anim-pulse{-webkit-animation-name:wpr-hotspot-anim-pulse;animation-name:wpr-hotspot-anim-pulse;-webkit-animation-duration:5s;animation-duration:5s}@keyframes wpr-hotspot-anim-shake{0%,100%,87%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}88%,92%,96%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}90%,94%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}}@-webkit-keyframes wpr-hotspot-anim-shake{0%,100%,87%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}88%,92%,96%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}90%,94%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}}.wpr-hotspot-anim-shake{-webkit-animation-name:wpr-hotspot-anim-shake;animation-name:wpr-hotspot-anim-shake;-webkit-animation-duration:5s;animation-duration:5s}@keyframes wpr-hotspot-anim-swing{0%,100%,70%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}75%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}80%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}85%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}90%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}}@-webkit-keyframes wpr-hotspot-anim-swing{0%,100%,70%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}75%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}80%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}85%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}90%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}}.wpr-hotspot-anim-swing{-webkit-animation-name:wpr-hotspot-anim-swing;animation-name:wpr-hotspot-anim-swing;-webkit-animation-duration:5s;animation-duration:5s}@keyframes wpr-hotspot-anim-tada{0%,100%,84%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}85%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}88%,92%,96%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}90%,94%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}}@-webkit-keyframes wpr-hotspot-anim-tada{0%,100%,84%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}85%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}88%,92%,96%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}90%,94%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}}.wpr-hotspot-anim-tada{-webkit-animation-name:wpr-hotspot-anim-tada;animation-name:wpr-hotspot-anim-tada;-webkit-animation-duration:6s;animation-duration:6s}@keyframes wpr-hotspot-anim-glow{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(1.5);transform:scale(1.5);opacity:0}}@-webkit-keyframes wpr-hotspot-anim-glow{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(1.5);transform:scale(1.5);opacity:0}}.wpr-hotspot-anim-glow:before{content:'';display:block;position:absolute;left:0;top:0;height:100%;width:100%;z-index:-1;-webkit-animation-name:wpr-hotspot-anim-glow;animation-name:wpr-hotspot-anim-glow;-webkit-animation-duration:2s;animation-duration:2s}.wpr-divider-wrap{display:inline-block;width:100%;overflow:hidden}.wpr-divider{display:-ms-flexbox;display:-webkit-box;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-divider-text{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.elementor-widget-wpr-divider .wpr-divider .wpr-divider-text{font-size:21px}.wpr-divider-border-left,.wpr-divider-border-right{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.wpr-divider-border{display:block;width:100%;height:1px}.wpr-divider-align-left .wpr-divider-border-left,.wpr-divider-align-right .wpr-divider-border-right{display:none}.wpr-divider-image{display:block;overflow:hidden}.wpr-business-hours{overflow:hidden}.wpr-business-hours-item{position:relative;display:-ms-flexbox;display:-webkit-box;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:all .1s;-o-transition:all .1s;transition:all .1s}.wpr-business-day{-webkit-box-flex:1;-ms-flex:1 0 0px;flex:1 0 0;text-align:left}.elementor-widget-wpr-business-hours .wpr-business-hours .wpr-business-closed,.elementor-widget-wpr-business-hours .wpr-business-hours .wpr-business-day,.elementor-widget-wpr-business-hours .wpr-business-hours .wpr-business-time{font-size:16px;font-weight:500}.wpr-business-closed,.wpr-business-time{-webkit-box-flex:1;-ms-flex:1 0 0px;flex:1 0 0;text-align:right}.wpr-business-hours-item:after{content:"";display:block;position:absolute;bottom:0;left:0;width:100%}.wpr-business-hours-item:last-of-type:after{display:none}.elementor-widget-wpr-business-hours .wpr-business-closed,.elementor-widget-wpr-business-hours .wpr-business-day,.elementor-widget-wpr-business-hours .wpr-business-time{font-weight:500}.wpr-flip-box{position:relative;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease;-webkit-perspective:1000px;perspective:1000px}.wpr-flip-box-item{position:absolute;top:0;left:0;width:100%;height:100%}.wpr-flip-box-front{z-index:5}.wpr-flip-box[data-trigger=box]{cursor:pointer}.elementor-widget-wpr-flip-box .wpr-flip-box-back .wpr-flip-box-content .wpr-flip-box-title,.elementor-widget-wpr-flip-box .wpr-flip-box-front .wpr-flip-box-content .wpr-flip-box-title{font-size:23px;font-weight:600}.elementor-widget-wpr-flip-box .wpr-flip-box-back .wpr-flip-box-content .wpr-flip-box-description,.elementor-widget-wpr-flip-box .wpr-flip-box-front .wpr-flip-box-content .wpr-flip-box-description{font-size:15px}.wpr-flip-box-item{-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-property:all;-o-transition-property:all;transition-property:all}.wpr-flip-box-content{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;z-index:10}.wpr-flip-box-overlay{position:absolute;width:100%;height:100%;top:0;left:0;z-index:5}.wpr-flip-box-link{display:block;position:absolute;width:100%;height:100%;top:0;left:0;z-index:20}.wpr-flip-box-btn{display:inline-table;cursor:pointer}.wpr-flip-box-btn-icon{margin-left:5px}.wpr-flip-box-btn span{position:relative;z-index:2;opacity:1!important}.wpr-flip-box-btn:after,.wpr-flip-box-btn:before{z-index:1!important}.wpr-flip-box-image img{display:block;width:100%}.wpr-flip-box-title a,.wpr-flip-box-title a:hover{color:inherit}.wpr-flip-box-back-align-left .wpr-flip-box-back .wpr-flip-box-image img,.wpr-flip-box-front-align-left .wpr-flip-box-front .wpr-flip-box-image img{float:left}.wpr-flip-box-back-align-center .wpr-flip-box-back .wpr-flip-box-image img,.wpr-flip-box-front-align-center .wpr-flip-box-front .wpr-flip-box-image img{margin:0 auto}.wpr-flip-box-back-align-right .wpr-flip-box-back .wpr-flip-box-image img,.wpr-flip-box-front-align-right .wpr-flip-box-front .wpr-flip-box-image img{float:right}.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-left .wpr-flip-box-active .wpr-flip-box-front,.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-right .wpr-flip-box-back{-webkit-transform:rotateX(0) rotateY(-180deg);transform:rotateX(0) rotateY(-180deg)}.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-left .wpr-flip-box-back,.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-right .wpr-flip-box-active .wpr-flip-box-front{-webkit-transform:rotateX(0) rotateY(180deg);transform:rotateX(0) rotateY(180deg)}.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-down .wpr-flip-box-active .wpr-flip-box-front,.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-up .wpr-flip-box-back{-webkit-transform:rotateX(-180deg) rotateY(0);transform:rotateX(-180deg) rotateY(0)}.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-down .wpr-flip-box-back,.wpr-flip-box-animation-flip.wpr-flip-box-anim-direction-up .wpr-flip-box-active .wpr-flip-box-front{-webkit-transform:rotateX(180deg) rotateY(0);transform:rotateX(180deg) rotateY(0)}.wpr-flip-box-animation-flip .wpr-flip-box-active .wpr-flip-box-back{-webkit-transform:none;-ms-transform:none;transform:none}.wpr-flip-box-animation-3d-yes .wpr-flip-box-content{-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform:translateZ(70px) scale(.93);transform:translateZ(70px) scale(.93)}.wpr-flip-box-animation-push .wpr-flip-box,.wpr-flip-box-animation-slide .wpr-flip-box{overflow:hidden}.wpr-flip-box-animation-push .wpr-flip-box-back,.wpr-flip-box-animation-slide .wpr-flip-box-back{z-index:10}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-up .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-up .wpr-flip-box-back{top:100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-up .wpr-flip-box-active .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-up .wpr-flip-box-active .wpr-flip-box-back{top:0}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-down .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-down .wpr-flip-box-back{top:auto;bottom:100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-down .wpr-flip-box-active .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-down .wpr-flip-box-active .wpr-flip-box-back{top:auto;bottom:0}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-left .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-left .wpr-flip-box-back{left:100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-left .wpr-flip-box-active .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-left .wpr-flip-box-active .wpr-flip-box-back{left:0}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-right .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-right .wpr-flip-box-back{left:auto;right:100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-right .wpr-flip-box-active .wpr-flip-box-back,.wpr-flip-box-animation-slide.wpr-flip-box-anim-direction-right .wpr-flip-box-active .wpr-flip-box-back{left:auto;right:0}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-up .wpr-flip-box-active .wpr-flip-box-front{top:-100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-down .wpr-flip-box-active .wpr-flip-box-front{top:100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-left .wpr-flip-box-active .wpr-flip-box-front{left:-100%}.wpr-flip-box-animation-push.wpr-flip-box-anim-direction-right .wpr-flip-box-active .wpr-flip-box-front{left:100%}.wpr-flip-box-animation-fade .wpr-flip-box-active .wpr-flip-box-front{opacity:0}.wpr-flip-box-animation-zoom-in .wpr-flip-box-back{opacity:0;-webkit-transform:scale(.9);-ms-transform:scale(.9);transform:scale(.9);z-index:10}.wpr-flip-box-animation-zoom-in .wpr-flip-box-active .wpr-flip-box-back{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.wpr-flip-box-animation-zoom-out .wpr-flip-box-active .wpr-flip-box-front{opacity:0;-webkit-transform:scale(.9);-ms-transform:scale(.9);transform:scale(.9)}.elementor-widget-wpr-flip-box .wpr-flip-box-front{background-color:#605be5}.elementor-widget-wpr-flip-box .wpr-flip-box-back{background-color:#ff348b}.wpr-promo-box{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.wpr-promo-box-image{position:relative;overflow:hidden}.wpr-promo-box-style-cover .wpr-promo-box-image,.wpr-promo-box-style-pro-cs .wpr-promo-box-image{position:absolute;top:0;left:0;height:100%;width:100%}.wpr-promo-box-bg-image{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10;background-size:cover;background-position:50%}.wpr-promo-box-bg-overlay{position:absolute;top:0;left:0;height:100%;width:100%;z-index:15;-webkit-transition-property:all;-o-transition-property:all;transition-property:all}.wpr-promo-box-content{position:relative;z-index:20;width:100%;display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.elementor-widget-wpr-promo-box.wpr-promo-box-style-classic .wpr-promo-box-content{background-color:#212121}.elementor-widget-wpr-promo-box.wpr-promo-box-style-classic .wpr-promo-box:hover .wpr-promo-box-content{background-color:#ddb34f}.wpr-promo-box-image-position-right .wpr-promo-box{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-promo-box-image-position-center .wpr-promo-box{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width:640px){.wpr-promo-box-style-classic .wpr-promo-box{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-promo-box-style-classic .wpr-promo-box-image{min-width:auto!important}}.wpr-promo-box-link{display:block;position:absolute;width:100%;height:100%;top:0;left:0;z-index:40}.wpr-promo-box-btn{display:inline-block}.wpr-promo-box-btn-wrap,.wpr-promo-box-description,.wpr-promo-box-icon,.wpr-promo-box-title{width:100%}.wpr-promo-box-btn-icon{margin-left:5px}.wpr-promo-box-icon img{display:inline-block}.elementor .elementor-widget-wpr-promo-box .wpr-promo-box:hover .wpr-promo-box-bg-image{-webkit-filter:brightness( 100% ) contrast( 100% ) saturate( 100% ) hue-rotate( 0deg );filter:brightness( 100% ) contrast( 100% ) saturate( 100% ) hue-rotate( 0deg )}.wpr-promo-box-badge{position:absolute;display:inline-block;text-align:center;z-index:35}.wpr-promo-box-badge-left{left:0;right:auto}.wpr-promo-box-badge-right{left:auto;right:0}.wpr-promo-box-badge-corner{top:0;width:200px;height:200px;overflow:hidden}.wpr-promo-box-badge-corner .wpr-promo-box-badge-inner{width:200%}.wpr-promo-box-badge-corner.wpr-promo-box-badge-right{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.wpr-promo-box-badge-cyrcle{top:0}.wpr-promo-box-badge-cyrcle.wpr-promo-box-badge-left{-webkit-transform:translateX(-40%) translateY(-40%);-ms-transform:translateX(-40%) translateY(-40%);transform:translateX(-40%) translateY(-40%)}.wpr-promo-box-badge-cyrcle.wpr-promo-box-badge-right{-webkit-transform:translateX(40%) translateY(-40%);-ms-transform:translateX(40%) translateY(-40%);transform:translateX(40%) translateY(-40%)}.wpr-promo-box-badge-cyrcle .wpr-promo-box-badge-inner{border-radius:100%}.wpr-promo-box-badge-flag{border-right:5px}.wpr-promo-box-badge-flag.wpr-promo-box-badge-left{margin-left:-10px}.wpr-promo-box-badge-flag.wpr-promo-box-badge-right{margin-right:-10px}.wpr-promo-box-badge-flag:before{content:"";position:absolute;z-index:1;bottom:-5px;width:0;height:0;margin-left:-10px;border-left:10px solid transparent;border-right:10px solid transparent;border-top-style:solid;border-top-width:10px}.wpr-promo-box-badge-flag .wpr-promo-box-badge-inner{position:relative;z-index:2;border-top-left-radius:3px;border-top-right-radius:3px}.wpr-promo-box-badge-flag.wpr-promo-box-badge-left:before{left:5px;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.wpr-promo-box-badge-flag.wpr-promo-box-badge-right:before{right:-5px;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.wpr-promo-box-badge-flag.wpr-promo-box-badge-left .wpr-promo-box-badge-inner{border-bottom-right-radius:3px}.wpr-promo-box-badge-flag.wpr-promo-box-badge-right .wpr-promo-box-badge-inner{border-bottom-left-radius:3px}.elementor-widget-wpr-promo-box .wpr-promo-box-title{font-size:24px;font-weight:600}.elementor-widget-wpr-promo-box .wpr-promo-box-description{font-size:15px}.elementor-widget-wpr-promo-box .wpr-promo-box-badge,.elementor-widget-wpr-promo-box .wpr-promo-box-btn{font-size:14px}.elementor-widget-wpr-promo-box .wpr-promo-box-badge .wpr-promo-box-badge-inner{font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}.elementor-widget-wpr-promo-box .wpr-promo-box-badge-corner .wpr-promo-box-badge-inner{line-height:1.6}.wpr-content-ticker{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.wpr-content-ticker-inner{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;z-index:20;width:100%;overflow:hidden}.wpr-ticker-arrow-position-left .wpr-content-ticker-inner{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-ticker-gradient-type-both .wpr-ticker-gradient:before,.wpr-ticker-gradient-type-left .wpr-ticker-gradient:before{content:"";position:absolute;bottom:0;top:0;left:0;width:40px;z-index:20}.wpr-ticker-gradient-type-both .wpr-ticker-gradient:after,.wpr-ticker-gradient-type-right .wpr-ticker-gradient:after{content:"";position:absolute;bottom:0;top:0;right:0;width:40px;z-index:20}.wpr-ticker-arrow-position-left .wpr-ticker-slider-controls{margin-right:20px}.wpr-ticker-arrow-position-right .wpr-ticker-slider-controls{margin-left:20px}.wpr-ticker-slider{position:relative;width:100%;overflow:hidden}.wpr-ticker-heading-position-right .wpr-content-ticker{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-ticker-title{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-align-items:center;overflow:hidden;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-duration:.2s;-o-transition-duration:.2s;transition-duration:.2s}.wpr-ticker-title a,.wpr-ticker-title:hover a{color:inherit}.elementor-widget-wpr-content-ticker .wpr-ticker-item .wpr-ticker-title{font-size:14px}.wpr-ticker-title-inner{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:inline}.wpr-ticker-heading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;z-index:25;-webkit-transition-property:all;-o-transition-property:all;transition-property:all;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.wpr-ticker-heading-icon-position-left .wpr-ticker-heading{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.elementor-widget-wpr-content-ticker .wpr-content-ticker .wpr-ticker-heading{font-size:14px}.wpr-ticker-heading-triangle-middle .wpr-ticker-heading:before{content:"";position:absolute;width:0;height:0;background:0 0!important;border-bottom-color:transparent;border-top-color:transparent;border-right-style:solid;border-bottom-style:solid;border-top-style:solid;border-width:10px;top:50%;-webkit-transition-property:inherit;-o-transition-property:inherit;transition-property:inherit;-webkit-transition-timing-function:inherit;-o-transition-timing-function:inherit;transition-timing-function:inherit;-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.wpr-ticker-heading-triangle-bottom .wpr-ticker-heading:before,.wpr-ticker-heading-triangle-top .wpr-ticker-heading:before{content:"";position:absolute;top:0;bottom:0;width:100%;z-index:1;-webkit-transition-property:inherit;-o-transition-property:inherit;transition-property:inherit;-webkit-transition-timing-function:inherit;-o-transition-timing-function:inherit;transition-timing-function:inherit;-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.wpr-ticker-heading-icon,.wpr-ticker-heading-text{position:relative;z-index:20;-webkit-transition-property:inherit;-o-transition-property:inherit;transition-property:inherit;-webkit-transition-timing-function:inherit;-o-transition-timing-function:inherit;transition-timing-function:inherit;-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.wpr-ticker-heading-triangle-top .wpr-ticker-heading:before{-ms-transform:skew(20deg);transform:skew(20deg);-webkit-transform:skew(20deg)}.wpr-ticker-heading-triangle-bottom .wpr-ticker-heading:before{-ms-transform:skew(-20deg);transform:skew(-20deg);-webkit-transform:skew(-20deg)}.wpr-ticker-heading-position-left.wpr-ticker-heading-triangle-middle .wpr-ticker-heading:before{-webkit-transform:translateY(-50%) rotate(180deg);-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.wpr-ticker-heading-position-right.wpr-ticker-heading-triangle-middle .wpr-ticker-heading:before{-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-ticker-slider-controls{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-ticker-arrow-style-vertical .wpr-ticker-slider-controls{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-ticker-arrow-style-horizontal .wpr-ticker-slider-controls{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.wpr-ticker-arrow{-webkit-box-sizing:content-box;box-sizing:content-box;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;cursor:pointer}.wpr-ticker-arrow i{display:block;width:100%;height:100%;line-height:inherit}.wpr-ticker-next-arrow{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.wpr-content-ticker-inner .wpr-ticker-item{display:-moz-flex!important;display:-ms-flex!important;display:-o-flex!important;display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center!important;-ms-flex-align:center!important;align-items:center;position:relative;overflow:hidden}.wpr-ticker-marquee{overflow:hidden}.wpr-ticker-marquee .js-marquee{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-ticker-arrow-style-vertical .wpr-ticker-slider .wpr-ticker-item{margin:1px 0}.wpr-ticker-image{margin-right:10px}.wpr-ticker-link{display:block;position:absolute;width:100%;height:100%;top:0;left:0;z-index:20}.wpr-ticker-icon-circle{display:block;border-radius:50%;-webkit-border-radius:50%;z-index:5;-webkit-transition-property:inherit;-o-transition-property:inherit;transition-property:inherit;-webkit-transition-timing-function:inherit;-o-transition-timing-function:inherit;transition-timing-function:inherit;-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.wpr-ticker-icon-circle:after,.wpr-ticker-icon-circle:before{content:"";position:absolute;top:50%;left:50%;-webkit-animation-name:wpr-ticker-icon-blink;animation-name:wpr-ticker-icon-blink;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;border-radius:50%;border-width:1px;border-style:solid;-webkit-border-radius:50%;-moz-border-radius:50%;-webkit-transition-property:inherit;-o-transition-property:inherit;transition-property:inherit;-webkit-transition-timing-function:inherit;-o-transition-timing-function:inherit;transition-timing-function:inherit;-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.wpr-ticker-icon-circle:after{-webkit-animation-delay:1s;animation-delay:1s}@-webkit-keyframes wpr-ticker-icon-blink{0%{-webkit-transform:scale(1,1);transform:scale(1,1)}100%{-webkit-transform:scale(3,3);transform:scale(3,3);opacity:0}}@keyframes wpr-ticker-icon-blink{0%{-webkit-transform:scale(1,1);transform:scale(1,1)}100%{-webkit-transform:scale(3,3);transform:scale(3,3);opacity:0}}.wpr-tabs{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-tabs-position-above>.elementor-widget-container>.wpr-tabs{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-tabs-position-left>.elementor-widget-container>.wpr-tabs{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.wpr-tabs-position-right>.elementor-widget-container>.wpr-tabs{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-tabs-wrap{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.wpr-tabs-position-left>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap,.wpr-tabs-position-right>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wpr-tabs-hr-position-center>.elementor-widget-container>.wpr-tabs{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-tabs-hr-position-left>.elementor-widget-container>.wpr-tabs{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.wpr-tabs-hr-position-right>.elementor-widget-container>.wpr-tabs{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.wpr-tabs-hr-position-justify>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap{width:100%}.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab,.wpr-tabs-hr-position-justify>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0}.wpr-tabs-hr-position-justify>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:first-of-type{margin-left:0!important}.wpr-tabs-hr-position-justify>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:last-of-type{margin-right:0!important}.wpr-tab{position:relative;z-index:25;display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.wpr-tab,.wpr-tab-icon,.wpr-tab-image,.wpr-tab-title{-webkit-transition-property:all;-o-transition-property:all;transition-property:all}.wpr-tab-icon,.wpr-tab-icon i,.wpr-tab-image,.wpr-tab-title{-webkit-transition-duration:inherit;-o-transition-duration:inherit;transition-duration:inherit}.elementor-element.elementor-widget-wpr-tabs>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab .wpr-tab-title,.elementor-element.elementor-widget-wpr-tabs>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab.wpr-tab-active .wpr-tab-title,.elementor-element.elementor-widget-wpr-tabs>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:hover .wpr-tab-title{font-size:15px;font-weight:500}.wpr-tabs-content-wrap{position:relative;width:100%;-webkit-transition-property:height;-o-transition-property:height;transition-property:height;-webkit-transition-timing-function:cubic-bezier(.5,.9,.6,.95);-o-transition-timing-function:cubic-bezier(.5,.9,.6,.95);transition-timing-function:cubic-bezier(.5,.9,.6,.95);-webkit-transition-duration:.5s;-o-transition-duration:.5s;transition-duration:.5s;z-index:1;overflow:hidden}.wpr-tab-content{position:absolute;width:100%;top:0;left:0;z-index:1}.elementor-element.elementor-widget-wpr-tabs>.elementor-widget-container>.wpr-tabs>.wpr-tabs-content-wrap>.wpr-tab-content{font-size:14px}.wpr-tab-content-active{position:relative;z-index:100}.wpr-tab-content-inner{opacity:0}.wpr-tab-content-active .wpr-tab-content-inner.wpr-overlay-none{opacity:1}.wpr-tabs-icon-position-left>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab .wpr-tab-icon,.wpr-tabs-icon-position-left>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab .wpr-tab-image{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.wpr-tabs-icon-position-left>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab .wpr-tab-title{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.wpr-tabs-icon-position-center>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.wpr-tabs-triangle-yes>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{content:"";position:absolute;width:0;height:0;-webkit-transition-property:border-color;-o-transition-property:border-color;transition-property:border-color;-webkit-transition-timing-function:ease-in;-o-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0;visibility:hidden;z-index:110}.wpr-tabs-triangle-yes>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab-active.wpr-tab:before{opacity:1;visibility:visible}.wpr-tabs-position-above>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{border-left-color:transparent;border-right-color:transparent;border-top-color:#fff;border-top-style:solid;border-left-style:solid;border-right-style:solid}.wpr-tabs-position-left>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before,.wpr-tabs-position-right>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{border-bottom-color:transparent;border-top-color:transparent;border-right-style:solid;border-bottom-style:solid;border-top-style:solid}.wpr-tabs-position-above.wpr-tabs-triangle-type-outer.wpr-tabs-position-above>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform:translateX(-50%)}.wpr-tabs-position-above.wpr-tabs-triangle-type-inner.wpr-tabs-position-above>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{left:50%;-ms-transform:translateX(-50%) rotate(180deg);transform:translateX(-50%) rotate(180deg);-webkit-transform:translateX(-50%) rotate(180deg);bottom:-1px}.wpr-tabs-position-left.wpr-tabs-triangle-type-outer>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before,.wpr-tabs-position-right.wpr-tabs-triangle-type-inner>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{top:50%;-ms-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg);-webkit-transform:translateY(-50%) rotate(180deg)}.wpr-tabs-position-left.wpr-tabs-triangle-type-inner>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before,.wpr-tabs-position-right.wpr-tabs-triangle-type-outer>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translateY(-50%)}.wpr-tabs-position-left.wpr-tabs-triangle-type-inner>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{right:0}.wpr-tabs-position-right.wpr-tabs-triangle-type-inner>.elementor-widget-container>.wpr-tabs>.wpr-tabs-wrap>.wpr-tab:before{left:0}.wpr-ticker-effect-typing .wpr-ticker-title:after{display:inline-block;vertical-align:top;opacity:1;color:inherit;margin-left:2px}.wpr-ticker-effect-typing .slick-current .wpr-ticker-title:after{-webkit-animation-name:wpr-cursor-blink;animation-name:wpr-cursor-blink;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-duration:.5s;animation-duration:.5s}.wpr-ticker-effect-typing .slick-current .wpr-ticker-title-inner{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-animation:wpr-ticker-typing 1s steps(30,end);animation:wpr-ticker-typing 1s steps(30,end);overflow:hidden}@-webkit-keyframes wpr-ticker-typing{from{width:0}to{width:100%}}@keyframes wpr-ticker-typing{from{width:0}to{width:100%}}.wpr-switcher-container{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto}.wpr-switcher-wrap{position:relative;display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-switcher{position:relative;display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;z-index:20;cursor:pointer}.wpr-switcher-inner{display:-moz-flex;display:-ms-flex;display:-o-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-switcher-label-style-outer>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-first{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpr-switcher-label-style-outer>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-second{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.wpr-switcher-icon-position-left>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-inner>.wpr-switcher-icon,.wpr-switcher-icon-position-left>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-outer>.wpr-switcher-wrap>.wpr-switcher>.wpr-switcher-inner>.wpr-switcher-icon{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.wpr-switcher-icon-position-left>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-inner>.wpr-switcher-label,.wpr-switcher-icon-position-left>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container>.wpr-switcher-outer>.wpr-switcher-wrap>.wpr-switcher>.wpr-switcher-inner>.wpr-switcher-label{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.wpr-switcher-content-wrap{position:relative;width:100%;-webkit-transition-property:height;-o-transition-property:height;transition-property:height;-webkit-transition-timing-function:cubic-bezier(.5,.9,.6,.95);-o-transition-timing-function:cubic-bezier(.5,.9,.6,.95);transition-timing-function:cubic-bezier(.5,.9,.6,.95);-webkit-transition-duration:.5s;-o-transition-duration:.5s;transition-duration:.5s;z-index:1;overflow:hidden}.wpr-switcher-content{position:absolute;width:100%;top:0;left:0;z-index:1}.wpr-switcher-content-active{position:relative;z-index:100}.wpr-switcher-content-inner{opacity:0}.wpr-switcher-content-active .wpr-switcher-content-inner.wpr-overlay-none{opacity:1}.wpr-switcher-bg{position:absolute;height:100%;z-index:1;-o-transition:all ease-in-out .4s;transition:all ease-in-out .4s;-webkit-transition:all ease-in-out .4s}.wpr-switcher-style-dual.wpr-switcher-label-style-outer>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container[data-active-switcher*="1"] .wpr-switcher-bg{left:0}.wpr-switcher-style-dual.wpr-switcher-label-style-outer>.elementor-widget-container>.wpr-content-toggle>.wpr-switcher-container[data-active-switcher*="2"] .wpr-switcher-bg{left:100%;-ms-transform:translateX(-100%);transform:translateX(-100%);-webkit-transform:translateX(-100%)}.wpr-stt-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-stt-btn{border:none;cursor:pointer;font-size:16px;line-height:48px;text-align:center;padding:20px;max-width:5cm;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1;-webkit-box-shadow:0 0 10px 0 rgb(0,0,0,.25);box-shadow:0 0 10px 0 rgb(0,0,0,.25)}.wpr-stt-btn-icon-left .wpr-stt-btn{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-stt-btn-icon-right .wpr-stt-btn{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-stt-btn-icon-bottom .wpr-stt-btn{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.wpr-stt-btn-icon-top .wpr-stt-btn{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-stt-btn-align-fixed .wpr-stt-btn{visibility:hidden;position:fixed;z-index:9999}.wpr-stt-btn-align-fixed-right .wpr-stt-btn{left:auto}.wpr-stt-btn-align-fixed-left .wpr-stt-btn{right:auto}.wpr-pc-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-pc-btn{border:none;cursor:pointer;font-size:16px;line-height:48px;text-align:center;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1}.elementor a.wpr-pc-btn{-webkit-box-shadow:0 0 10px 0 rgb(0,0,0,.2);box-shadow:0 0 10px 0 rgb(0,0,0,.2)}.wpr-pc-content{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-pc-btn-icon-right .wpr-pc-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-pc-btn-icon-left .wpr-pc-content{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-pc-btn-icon-bottom .wpr-pc-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-pc-btn-icon-top .wpr-pc-content{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.wpr-pc-btn-align-fixed .wpr-pc-btn{position:fixed;z-index:9999}.wpr-pc-btn-align-fixed-right .wpr-pc-btn{left:auto}.wpr-pc-btn-align-fixed-left .wpr-pc-btn{right:auto}.wpr-particle-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.wpr-particle-wrapper canvas{position:relative;z-index:-1}.wpr-jarallax{position:relative;-webkit-transition:all .9s ease-in-out;-o-transition:all .9s ease-in-out;transition:all .9s ease-in-out}.wpr-parallax-multi-layer{position:absolute;top:0;left:0;height:100%;width:100%}.wpr-parallax-ml-children{position:relative;display:none}.wpr-parallax-ml-children img{max-width:100%;width:100%}.wpr-sticky-section-yes{width:100%}
|
assets/css/library-frontend.css
CHANGED
@@ -303,6 +303,7 @@
|
|
303 |
padding: 10px 15px;
|
304 |
font-size: 13px;
|
305 |
font-weight: normal;
|
|
|
306 |
background: #fff;
|
307 |
-webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
|
308 |
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
|
@@ -379,12 +380,12 @@
|
|
379 |
position: absolute;
|
380 |
top: 20px;
|
381 |
right: -30px;
|
382 |
-
z-index:
|
383 |
-webkit-transform: rotate(45deg);
|
384 |
-ms-transform: rotate(45deg);
|
385 |
transform: rotate(45deg);
|
386 |
-
padding:
|
387 |
-
font-size:
|
388 |
letter-spacing: 0.3px;
|
389 |
background: #6A4BFF;
|
390 |
color: #fff;
|
303 |
padding: 10px 15px;
|
304 |
font-size: 13px;
|
305 |
font-weight: normal;
|
306 |
+
font-family: "Roboto",Arial,Helvetica,Verdana,sans-serif;
|
307 |
background: #fff;
|
308 |
-webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
|
309 |
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
|
380 |
position: absolute;
|
381 |
top: 20px;
|
382 |
right: -30px;
|
383 |
+
z-index: 1;
|
384 |
-webkit-transform: rotate(45deg);
|
385 |
-ms-transform: rotate(45deg);
|
386 |
transform: rotate(45deg);
|
387 |
+
padding: 4px 40px;
|
388 |
+
font-size: 11px;
|
389 |
letter-spacing: 0.3px;
|
390 |
background: #6A4BFF;
|
391 |
color: #fff;
|
assets/css/library-frontend.min.css
CHANGED
@@ -1,693 +1 @@
|
|
1 |
-
/*--------------------------------------------------------------
|
2 |
-
== Library - Predefined Styles
|
3 |
-
--------------------------------------------------------------*/
|
4 |
-
#wpr-library-btn {
|
5 |
-
display: -webkit-inline-box;
|
6 |
-
display: -ms-inline-flexbox;
|
7 |
-
display: inline-flex;
|
8 |
-
width: 40px;
|
9 |
-
height: 40px;
|
10 |
-
vertical-align: top;
|
11 |
-
margin-left: 10px;
|
12 |
-
color: #fff;
|
13 |
-
font-family: Arial,Helvetica,sans-serif;
|
14 |
-
font-weight: bold;
|
15 |
-
letter-spacing: 0.3px;
|
16 |
-
cursor: pointer;
|
17 |
-
}
|
18 |
-
|
19 |
-
.wpr-library-icon {
|
20 |
-
display: -webkit-inline-box;
|
21 |
-
display: -ms-inline-flexbox;
|
22 |
-
display: inline-flex;
|
23 |
-
padding: 10px;
|
24 |
-
margin-right: 10px;
|
25 |
-
border-radius: 50%;
|
26 |
-
color: transparent;
|
27 |
-
font-family: Arial,Helvetica,sans-serif;
|
28 |
-
font-size: 14px;
|
29 |
-
font-weight: bold;
|
30 |
-
letter-spacing: 0.3px;
|
31 |
-
}
|
32 |
-
|
33 |
-
.wpr-tplib-popup-overlay {
|
34 |
-
position: fixed;
|
35 |
-
top: 0;
|
36 |
-
left: 0;
|
37 |
-
z-index: 999999;
|
38 |
-
width: 100%;
|
39 |
-
height: 100%;
|
40 |
-
background: rgba(0,0,0,0.5);
|
41 |
-
}
|
42 |
-
|
43 |
-
.wpr-tplib-popup {
|
44 |
-
overflow: hidden;
|
45 |
-
position: absolute;
|
46 |
-
top: 30%;
|
47 |
-
left: 50%;
|
48 |
-
-webkit-transform: translate(-50%,-30%);
|
49 |
-
-ms-transform: translate(-50%,-30%);
|
50 |
-
transform: translate(-50%,-30%);
|
51 |
-
background: #f1f3f5;
|
52 |
-
min-width: 100%;
|
53 |
-
height: 100%;
|
54 |
-
}
|
55 |
-
|
56 |
-
.wpr-tplib-header {
|
57 |
-
display: -webkit-box;
|
58 |
-
display: -ms-flexbox;
|
59 |
-
display: flex;
|
60 |
-
-webkit-box-align: center;
|
61 |
-
-ms-flex-align: center;
|
62 |
-
align-items: center;
|
63 |
-
background-color: #fff;
|
64 |
-
-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
|
65 |
-
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
|
66 |
-
position: relative;
|
67 |
-
z-index: 10;
|
68 |
-
}
|
69 |
-
|
70 |
-
.wpr-tplib-logo {
|
71 |
-
display: -webkit-box;
|
72 |
-
display: -ms-flexbox;
|
73 |
-
display: flex;
|
74 |
-
-webkit-box-align: center;
|
75 |
-
-ms-flex-align: center;
|
76 |
-
align-items: center;
|
77 |
-
-webkit-box-pack: start;
|
78 |
-
-ms-flex-pack: start;
|
79 |
-
justify-content: flex-start;
|
80 |
-
width: 200px;
|
81 |
-
padding-left: 30px;
|
82 |
-
color: #495157;
|
83 |
-
font-size: 15px;
|
84 |
-
font-weight: 700;
|
85 |
-
font-family: "Roboto",Arial,Helvetica,Verdana,sans-serif;
|
86 |
-
}
|
87 |
-
|
88 |
-
.wpr-tplib-header ul {
|
89 |
-
display: -webkit-inline-box;
|
90 |
-
display: -ms-inline-flexbox;
|
91 |
-
display: inline-flex;
|
92 |
-
-webkit-box-pack: center;
|
93 |
-
-ms-flex-pack: center;
|
94 |
-
justify-content: center;
|
95 |
-
width: 100%;
|
96 |
-
margin-left: -130px;
|
97 |
-
}
|
98 |
-
|
99 |
-
.wpr-tplib-header ul li {
|
100 |
-
width: 115px;
|
101 |
-
padding: 20px 0;
|
102 |
-
color: #6d7882;
|
103 |
-
font-family: "Roboto",Arial,Helvetica,Verdana,sans-serif;
|
104 |
-
font-size: 14px;
|
105 |
-
line-height: 1;
|
106 |
-
font-weight: 500;
|
107 |
-
text-align: center;
|
108 |
-
cursor: pointer;
|
109 |
-
|
110 |
-
}
|
111 |
-
|
112 |
-
.wpr-tplib-active-tab {
|
113 |
-
background-image: -o-linear-gradient(top,#f1f3f5,#fff);
|
114 |
-
background-image: -webkit-gradient(linear,left top, left bottom,from(#f1f3f5),to(#fff));
|
115 |
-
background-image: linear-gradient(180deg,#f1f3f5,#fff);
|
116 |
-
border-bottom: 3px solid #6A4BFF;
|
117 |
-
}
|
118 |
-
|
119 |
-
.wpr-tplib-close {
|
120 |
-
display: -webkit-box;
|
121 |
-
display: -ms-flexbox;
|
122 |
-
display: flex;
|
123 |
-
-webkit-box-align: center;
|
124 |
-
-ms-flex-align: center;
|
125 |
-
align-items: center;
|
126 |
-
-webkit-box-pack: end;
|
127 |
-
-ms-flex-pack: end;
|
128 |
-
justify-content: flex-end;
|
129 |
-
padding-right: 30px;
|
130 |
-
color: #a4afb7;
|
131 |
-
font-size: 18px;
|
132 |
-
cursor: pointer;
|
133 |
-
-webkit-transition: all .3s;
|
134 |
-
-o-transition: all .3s;
|
135 |
-
transition: all .3s;
|
136 |
-
}
|
137 |
-
|
138 |
-
.wpr-tplib-close:hover {
|
139 |
-
color: #3a3a3a;
|
140 |
-
}
|
141 |
-
|
142 |
-
.wpr-tplib-close i {
|
143 |
-
line-height: 20px;
|
144 |
-
padding-left: 20px;
|
145 |
-
}
|
146 |
-
|
147 |
-
.wpr-tplib-header .wpr-tplib-insert-template {
|
148 |
-
display: none;
|
149 |
-
width: 120px;
|
150 |
-
height: 27px;
|
151 |
-
line-height: 27px;
|
152 |
-
padding: 0 15px;
|
153 |
-
margin-right: 15px;
|
154 |
-
color: #fff;
|
155 |
-
background-color: #6A4BFF;
|
156 |
-
font-family: "Roboto",Arial,Helvetica,Verdana,sans-serif;
|
157 |
-
font-size: 13px;
|
158 |
-
border-radius: 2px;
|
159 |
-
text-transform: uppercase;
|
160 |
-
cursor: pointer;
|
161 |
-
text-align: center;
|
162 |
-
}
|
163 |
-
|
164 |
-
.wpr-tplib-back {
|
165 |
-
display: none;
|
166 |
-
width: 230px;
|
167 |
-
padding: 17px 15px;
|
168 |
-
border-right: 1px solid #e6e9ec;
|
169 |
-
color: #6d7882;
|
170 |
-
font-size: 15px;
|
171 |
-
font-weight: 700;
|
172 |
-
font-family: "Roboto",Arial,Helvetica,Verdana,sans-serif;
|
173 |
-
cursor: pointer;
|
174 |
-
-webkit-transition: all .3s;
|
175 |
-
-o-transition: all .3s;
|
176 |
-
transition: all .3s;
|
177 |
-
}
|
178 |
-
|
179 |
-
.wpr-tplib-back:hover {
|
180 |
-
color: #495157;
|
181 |
-
}
|
182 |
-
|
183 |
-
.wpr-tplib-back i {
|
184 |
-
margin-right: 5px;
|
185 |
-
}
|
186 |
-
|
187 |
-
.wpr-tplib-back span {
|
188 |
-
|
189 |
-
}
|
190 |
-
|
191 |
-
.wpr-tplib-content-wrap {
|
192 |
-
}
|
193 |
-
|
194 |
-
.wpr-tplib-sidebar {
|
195 |
-
padding: 30px 30px 20px 30px;
|
196 |
-
}
|
197 |
-
|
198 |
-
.wpr-tplib-sidebar .wpr-tplib-search {
|
199 |
-
display: none;
|
200 |
-
position: relative;
|
201 |
-
margin: 30px 0;
|
202 |
-
}
|
203 |
-
|
204 |
-
.wpr-tplib-sidebar .wpr-tplib-search i {
|
205 |
-
position: absolute;
|
206 |
-
top: 50%;
|
207 |
-
right: 10px;
|
208 |
-
font-size: 12px;
|
209 |
-
-webkit-transform: translateY(-50%);
|
210 |
-
-ms-transform: translateY(-50%);
|
211 |
-
transform: translateY(-50%);
|
212 |
-
}
|
213 |
-
|
214 |
-
.wpr-tplib-sidebar .wpr-tplib-search input {
|
215 |
-
width: 100%;
|
216 |
-
padding: 8px 10px;
|
217 |
-
border: 0;
|
218 |
-
border-bottom: 1px solid #efefef;
|
219 |
-
}
|
220 |
-
|
221 |
-
.wpr-tplib-sidebar .wpr-tplib-search input::-webkit-input-placeholder {
|
222 |
-
color: #9a9a9a;
|
223 |
-
}
|
224 |
-
|
225 |
-
.wpr-tplib-sidebar .wpr-tplib-search input::-moz-placeholder {
|
226 |
-
color: #9a9a9a;
|
227 |
-
}
|
228 |
-
|
229 |
-
.wpr-tplib-sidebar .wpr-tplib-search input:-ms-input-placeholder {
|
230 |
-
color: #9a9a9a;
|
231 |
-
}
|
232 |
-
|
233 |
-
.wpr-tplib-sidebar .wpr-tplib-search input::-ms-input-placeholder {
|
234 |
-
color: #9a9a9a;
|
235 |
-
}
|
236 |
-
|
237 |
-
.wpr-tplib-sidebar .wpr-tplib-search input::placeholder {
|
238 |
-
color: #9a9a9a;
|
239 |
-
}
|
240 |
-
|
241 |
-
.wpr-tplib-filters-wrap {
|
242 |
-
display: -webkit-box;
|
243 |
-
display: -ms-flexbox;
|
244 |
-
display: flex;
|
245 |
-
}
|
246 |
-
|
247 |
-
.wpr-tplib-sub-filters {
|
248 |
-
display: none;
|
249 |
-
margin-left: 20px;
|
250 |
-
}
|
251 |
-
|
252 |
-
.wpr-tplib-sub-filters ul {
|
253 |
-
display: -webkit-box;
|
254 |
-
display: -ms-flexbox;
|
255 |
-
display: flex;
|
256 |
-
}
|
257 |
-
|
258 |
-
.wpr-tplib-sub-filters ul li {
|
259 |
-
padding: 10px 25px;
|
260 |
-
margin-right: 7px;
|
261 |
-
line-height: 15px;
|
262 |
-
font-size: 13px;
|
263 |
-
font-weight: normal;
|
264 |
-
background: #fff;
|
265 |
-
-webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
|
266 |
-
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
|
267 |
-
cursor: pointer;
|
268 |
-
border-radius: 3px;
|
269 |
-
}
|
270 |
-
|
271 |
-
.wpr-tplib-sub-filters ul li:hover,
|
272 |
-
.wpr-tplib-sub-filters ul .wpr-tplib-activ-filter {
|
273 |
-
background: #6A4BFF;
|
274 |
-
color: #fff;
|
275 |
-
}
|
276 |
-
|
277 |
-
.wpr-tplib-filters {
|
278 |
-
-webkit-box-sizing: border-box;
|
279 |
-
box-sizing: border-box;
|
280 |
-
display: -webkit-box;
|
281 |
-
display: -ms-flexbox;
|
282 |
-
display: flex;
|
283 |
-
-webkit-box-orient: vertical;
|
284 |
-
-webkit-box-direction: normal;
|
285 |
-
-ms-flex-direction: column;
|
286 |
-
flex-direction: column;
|
287 |
-
-webkit-box-align: start;
|
288 |
-
-ms-flex-align: start;
|
289 |
-
align-items: flex-start;
|
290 |
-
position: relative;
|
291 |
-
width: 200px;
|
292 |
-
font-size: 14px;
|
293 |
-
font-weight: normal;
|
294 |
-
font-family: "Roboto",Arial,Helvetica,Verdana,sans-serif;
|
295 |
-
color: #6d7882;
|
296 |
-
}
|
297 |
-
|
298 |
-
.wpr-tplib-filters h3 {
|
299 |
-
display: -webkit-box;
|
300 |
-
display: -ms-flexbox;
|
301 |
-
display: flex;
|
302 |
-
width: 100%;
|
303 |
-
padding: 10px 15px;
|
304 |
-
font-size: 13px;
|
305 |
-
font-weight: normal;
|
306 |
-
background: #fff;
|
307 |
-
-webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
|
308 |
-
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
|
309 |
-
cursor: pointer;
|
310 |
-
border-radius: 3px;
|
311 |
-
}
|
312 |
-
|
313 |
-
.wpr-tplib-filters h3 span {
|
314 |
-
width: 100%;
|
315 |
-
}
|
316 |
-
|
317 |
-
.wpr-tplib-filters-list {
|
318 |
-
visibility: hidden;
|
319 |
-
opacity: 0;
|
320 |
-
position: absolute;
|
321 |
-
top: 38px;
|
322 |
-
z-index: 999;
|
323 |
-
width: 700px;
|
324 |
-
padding: 20px 30px;
|
325 |
-
background: #fff;
|
326 |
-
-webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
|
327 |
-
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
|
328 |
-
-webkit-transition: all 0.2s ease-in;
|
329 |
-
-o-transition: all 0.2s ease-in;
|
330 |
-
transition: all 0.2s ease-in;
|
331 |
-
border-radius: 3px;
|
332 |
-
}
|
333 |
-
|
334 |
-
.wpr-tplib-filters-list ul {
|
335 |
-
display: -webkit-box;
|
336 |
-
display: -ms-flexbox;
|
337 |
-
display: flex;
|
338 |
-
-ms-flex-wrap: wrap;
|
339 |
-
flex-wrap: wrap;
|
340 |
-
}
|
341 |
-
|
342 |
-
.wpr-tplib-filters-list ul li {
|
343 |
-
width: 25%;
|
344 |
-
padding: 12px;
|
345 |
-
color: #6d7882;
|
346 |
-
background: #fff;
|
347 |
-
font-size: 13px;
|
348 |
-
line-height: 1;
|
349 |
-
cursor: pointer;
|
350 |
-
}
|
351 |
-
|
352 |
-
.wpr-tplib-filters-list ul li:hover {
|
353 |
-
background: #f9f9f9;
|
354 |
-
color: #222;
|
355 |
-
}
|
356 |
-
|
357 |
-
.wpr-tplib-template-gird {
|
358 |
-
position: absolute;
|
359 |
-
width: 100%;
|
360 |
-
height: calc(100% - 132px);
|
361 |
-
overflow: auto;
|
362 |
-
padding: 0 30px 30px 30px;
|
363 |
-
margin-left: -10px;
|
364 |
-
}
|
365 |
-
|
366 |
-
.wpr-tplib-template-wrap {
|
367 |
-
float: left;
|
368 |
-
overflow: hidden;
|
369 |
-
width: 18.5%;
|
370 |
-
margin: 10px;
|
371 |
-
border-radius: 3px;
|
372 |
-
-webkit-box-shadow: 0 1px 20px 0 rgba(0,0,0,0.07);
|
373 |
-
box-shadow: 0 1px 20px 0 rgba(0,0,0,0.07);
|
374 |
-
}
|
375 |
-
|
376 |
-
.wpr-tplib-pro-wrap:before {
|
377 |
-
content: 'Premium';
|
378 |
-
display: block;
|
379 |
-
position: absolute;
|
380 |
-
top: 20px;
|
381 |
-
right: -30px;
|
382 |
-
z-index: 1;
|
383 |
-
-webkit-transform: rotate(45deg);
|
384 |
-
-ms-transform: rotate(45deg);
|
385 |
-
transform: rotate(45deg);
|
386 |
-
padding: 4px 40px;
|
387 |
-
font-size: 11px;
|
388 |
-
letter-spacing: 0.3px;
|
389 |
-
background: #6A4BFF;
|
390 |
-
color: #fff;
|
391 |
-
-webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.7);
|
392 |
-
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.7);
|
393 |
-
}
|
394 |
-
|
395 |
-
@media screen and ( max-width: 1364px ) {
|
396 |
-
.wpr-tplib-template-wrap {
|
397 |
-
width: 23%;
|
398 |
-
}
|
399 |
-
}
|
400 |
-
|
401 |
-
.wpr-tplib-template {
|
402 |
-
}
|
403 |
-
|
404 |
-
.wpr-tplib-template-wrap:hover .wpr-tplib-insert-template {
|
405 |
-
opacity: 1;
|
406 |
-
visibility: visible;
|
407 |
-
}
|
408 |
-
|
409 |
-
.wpr-tplib-template-media {
|
410 |
-
position: relative;
|
411 |
-
background-color: #e8e8e8;
|
412 |
-
}
|
413 |
-
|
414 |
-
.wpr-tplib-template-media img {
|
415 |
-
width: 100%;
|
416 |
-
max-width: 100%;
|
417 |
-
height: auto;
|
418 |
-
}
|
419 |
-
|
420 |
-
.wpr-tplib-template-media:hover .wpr-tplib-template-media-overlay {
|
421 |
-
opacity: 1;
|
422 |
-
}
|
423 |
-
|
424 |
-
.wpr-tplib-template-media-overlay {
|
425 |
-
opacity: 0;
|
426 |
-
position: absolute;
|
427 |
-
top: 0;
|
428 |
-
left: 0;
|
429 |
-
width: 100%;
|
430 |
-
height: 100%;
|
431 |
-
background-color: rgba(0, 0, 0, 0.5);
|
432 |
-
color: #fff;
|
433 |
-
cursor: pointer;
|
434 |
-
-webkit-transition: opacity 0.1s ease-in;
|
435 |
-
-o-transition: opacity 0.1s ease-in;
|
436 |
-
transition: opacity 0.1s ease-in;
|
437 |
-
}
|
438 |
-
|
439 |
-
.wpr-tplib-template-media-overlay i {
|
440 |
-
position: absolute;
|
441 |
-
top: 50%;
|
442 |
-
left: 50%;
|
443 |
-
-webkit-transform: translate(-50%, -50%);
|
444 |
-
-ms-transform: translate(-50%, -50%);
|
445 |
-
transform: translate(-50%, -50%);
|
446 |
-
font-size: 25px;
|
447 |
-
}
|
448 |
-
|
449 |
-
.wpr-tplib-preview-wrap {
|
450 |
-
display: none;
|
451 |
-
}
|
452 |
-
|
453 |
-
.wpr-tplib-image {
|
454 |
-
display: -webkit-box;
|
455 |
-
display: -ms-flexbox;
|
456 |
-
display: flex;
|
457 |
-
-webkit-box-pack: center;
|
458 |
-
-ms-flex-pack: center;
|
459 |
-
justify-content: center;
|
460 |
-
padding: 20px;
|
461 |
-
}
|
462 |
-
|
463 |
-
.wpr-tplib-iframe {
|
464 |
-
position: relative;
|
465 |
-
padding-top: 56.25%;
|
466 |
-
}
|
467 |
-
|
468 |
-
.wpr-tplib-iframe iframe {
|
469 |
-
position: absolute;
|
470 |
-
top: 0;
|
471 |
-
left: 0;
|
472 |
-
width: 100%;
|
473 |
-
height: 100%;
|
474 |
-
}
|
475 |
-
|
476 |
-
.wpr-tplib-template-footer {
|
477 |
-
display: -webkit-box;
|
478 |
-
display: -ms-flexbox;
|
479 |
-
display: flex;
|
480 |
-
-webkit-box-orient: vertical;
|
481 |
-
-webkit-box-direction: normal;
|
482 |
-
-ms-flex-flow: column wrap;
|
483 |
-
flex-flow: column wrap;
|
484 |
-
-ms-flex-line-pack: justify;
|
485 |
-
align-content: space-between;
|
486 |
-
-webkit-box-pack: center;
|
487 |
-
-ms-flex-pack: center;
|
488 |
-
justify-content: center;
|
489 |
-
height: 45px;
|
490 |
-
padding: 5px 15px;
|
491 |
-
background-color: #fff;
|
492 |
-
border-top: 1px solid #efefef;
|
493 |
-
}
|
494 |
-
|
495 |
-
.wpr-tplib-template-footer h3 {
|
496 |
-
overflow: hidden;
|
497 |
-
color: #6d7882;
|
498 |
-
font-family: "Roboto",Arial,Helvetica,Verdana,sans-serif;
|
499 |
-
font-size: 13px;
|
500 |
-
font-weight: normal;
|
501 |
-
white-space: nowrap;
|
502 |
-
-o-text-overflow: ellipsis;
|
503 |
-
text-overflow: ellipsis;
|
504 |
-
}
|
505 |
-
|
506 |
-
.wpr-tplib-template-footer .wpr-tplib-insert-template {
|
507 |
-
opacity: 0;
|
508 |
-
visibility: hidden;
|
509 |
-
padding: 6px 10px;
|
510 |
-
color: #fff;
|
511 |
-
background-color: #6A4BFF;
|
512 |
-
font-family: "Roboto",Arial,Helvetica,Verdana,sans-serif;
|
513 |
-
font-size: 13px;
|
514 |
-
line-height: 1;
|
515 |
-
letter-spacing: 0.3px;
|
516 |
-
border-radius: 3px;
|
517 |
-
cursor: pointer;
|
518 |
-
-webkit-transition: all 0.1s ease-in;
|
519 |
-
-o-transition: all 0.1s ease-in;
|
520 |
-
transition: all 0.1s ease-in;
|
521 |
-
}
|
522 |
-
|
523 |
-
|
524 |
-
#masonry-effect {
|
525 |
-
display: -webkit-box;
|
526 |
-
display: -ms-flexbox;
|
527 |
-
display: flex;
|
528 |
-
-webkit-box-orient: horizontal;
|
529 |
-
-webkit-box-direction: normal;
|
530 |
-
-ms-flex-direction: row;
|
531 |
-
flex-direction: row;
|
532 |
-
-ms-flex-wrap: wrap;
|
533 |
-
flex-wrap: wrap;
|
534 |
-
}
|
535 |
-
.item {
|
536 |
-
-webkit-box-sizing: border-box;
|
537 |
-
box-sizing: border-box;
|
538 |
-
-webkit-box-orient: vertical;
|
539 |
-
-webkit-box-direction: normal;
|
540 |
-
-ms-flex-direction: column;
|
541 |
-
flex-direction: column;
|
542 |
-
position: relative;
|
543 |
-
width: calc(33.3%);
|
544 |
-
}
|
545 |
-
|
546 |
-
|
547 |
-
/* Elementor Loader */
|
548 |
-
.wpr-tplib-loader {
|
549 |
-
overflow: auto;
|
550 |
-
position: absolute;
|
551 |
-
width: 100%;
|
552 |
-
height: 100%;
|
553 |
-
z-index: 9999999999;
|
554 |
-
background-color: #f1f3f5;
|
555 |
-
}
|
556 |
-
|
557 |
-
.elementor-loader-wrapper {
|
558 |
-
position: absolute;
|
559 |
-
width: 300px;
|
560 |
-
left: 50%;
|
561 |
-
top: 50%;
|
562 |
-
-webkit-transform: translateX(-50%) translateY(-50%);
|
563 |
-
-ms-transform: translateX(-50%) translateY(-50%);
|
564 |
-
transform: translateX(-50%) translateY(-50%);
|
565 |
-
display: -webkit-box;
|
566 |
-
display: -ms-flexbox;
|
567 |
-
display: flex;
|
568 |
-
-ms-flex-wrap: wrap;
|
569 |
-
flex-wrap: wrap;
|
570 |
-
-webkit-box-pack: center;
|
571 |
-
-ms-flex-pack: center;
|
572 |
-
justify-content: center;
|
573 |
-
}
|
574 |
-
|
575 |
-
.elementor-loader {
|
576 |
-
border-radius: 7px;
|
577 |
-
padding: 40px;
|
578 |
-
height: 150px;
|
579 |
-
width: 150px;
|
580 |
-
background-color: rgba(255, 255, 255, 0.9);
|
581 |
-
-webkit-box-sizing: border-box;
|
582 |
-
box-sizing: border-box;
|
583 |
-
-webkit-box-shadow: 2px 2px 20px 4px rgba(0, 0, 0, 0.02);
|
584 |
-
box-shadow: 2px 2px 20px 4px rgba(0, 0, 0, 0.02);
|
585 |
-
}
|
586 |
-
|
587 |
-
.elementor-loader-boxes {
|
588 |
-
height: 100%;
|
589 |
-
width: 100%;
|
590 |
-
position: relative;
|
591 |
-
}
|
592 |
-
|
593 |
-
.elementor-loader-box {
|
594 |
-
position: absolute;
|
595 |
-
background-color: #d5dadf;
|
596 |
-
-webkit-animation: load 1.8s linear infinite;
|
597 |
-
animation: load 1.8s linear infinite;
|
598 |
-
}
|
599 |
-
|
600 |
-
.elementor-loader-box:nth-of-type(1) {
|
601 |
-
width: 20%;
|
602 |
-
height: 100%;
|
603 |
-
left: 0;
|
604 |
-
top: 0;
|
605 |
-
}
|
606 |
-
|
607 |
-
.elementor-loader-box:not(:nth-of-type(1)) {
|
608 |
-
right: 0;
|
609 |
-
height: 20%;
|
610 |
-
width: 60%;
|
611 |
-
}
|
612 |
-
|
613 |
-
.elementor-loader-box:nth-of-type(2) {
|
614 |
-
top: 0;
|
615 |
-
-webkit-animation-delay: -0.45s;
|
616 |
-
animation-delay: -0.45s;
|
617 |
-
}
|
618 |
-
|
619 |
-
.elementor-loader-box:nth-of-type(3) {
|
620 |
-
top: 40%;
|
621 |
-
-webkit-animation-delay: -0.9s;
|
622 |
-
animation-delay: -0.9s;
|
623 |
-
}
|
624 |
-
|
625 |
-
.elementor-loader-box:nth-of-type(4) {
|
626 |
-
bottom: 0;
|
627 |
-
-webkit-animation-delay: -1.35s;
|
628 |
-
animation-delay: -1.35s;
|
629 |
-
}
|
630 |
-
|
631 |
-
@-webkit-keyframes load {
|
632 |
-
0% {
|
633 |
-
opacity: .3;
|
634 |
-
}
|
635 |
-
50% {
|
636 |
-
opacity: 1;
|
637 |
-
}
|
638 |
-
100% {
|
639 |
-
opacity: .3;
|
640 |
-
}
|
641 |
-
}
|
642 |
-
|
643 |
-
@keyframes load {
|
644 |
-
0% {
|
645 |
-
opacity: .3;
|
646 |
-
}
|
647 |
-
50% {
|
648 |
-
opacity: 1;
|
649 |
-
}
|
650 |
-
100% {
|
651 |
-
opacity: .3;
|
652 |
-
}
|
653 |
-
}
|
654 |
-
|
655 |
-
.elementor-loading-title {
|
656 |
-
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
|
657 |
-
color: #a4afb7;
|
658 |
-
text-align: center;
|
659 |
-
text-transform: uppercase;
|
660 |
-
margin-top: 30px;
|
661 |
-
letter-spacing: 7px;
|
662 |
-
text-indent: 7px;
|
663 |
-
font-size: 10px;
|
664 |
-
width: 100%;
|
665 |
-
}
|
666 |
-
|
667 |
-
|
668 |
-
/* Scroll Bar */
|
669 |
-
.wpr-tplib-popup ::-webkit-scrollbar {
|
670 |
-
width: 6px;
|
671 |
-
height: 0;
|
672 |
-
border-radius: 3px;
|
673 |
-
}
|
674 |
-
|
675 |
-
.wpr-tplib-popup ::-webkit-scrollbar-button {
|
676 |
-
width: 0px;
|
677 |
-
height: 10px;
|
678 |
-
}
|
679 |
-
|
680 |
-
.wpr-tplib-popup ::-webkit-scrollbar-thumb {
|
681 |
-
background-color: #d5dadf;
|
682 |
-
border: 0px none #d5dadf;
|
683 |
-
border-radius: 3px;
|
684 |
-
}
|
685 |
-
|
686 |
-
.wpr-tplib-popup ::-webkit-scrollbar-track {
|
687 |
-
border: 0px none #fff;
|
688 |
-
border-radius: 0;
|
689 |
-
}
|
690 |
-
|
691 |
-
.wpr-tplib-popup ::-webkit-scrollbar-corner {
|
692 |
-
background: transparent;
|
693 |
-
}
|
1 |
+
#wpr-library-btn{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:40px;height:40px;vertical-align:top;margin-left:10px;color:#fff;font-family:Arial,Helvetica,sans-serif;font-weight:700;letter-spacing:.3px;cursor:pointer}.wpr-library-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;padding:10px;margin-right:10px;border-radius:50%;color:transparent;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:700;letter-spacing:.3px}.wpr-tplib-popup-overlay{position:fixed;top:0;left:0;z-index:999999;width:100%;height:100%;background:rgba(0,0,0,.5)}.wpr-tplib-popup{overflow:hidden;position:absolute;top:30%;left:50%;-webkit-transform:translate(-50%,-30%);-ms-transform:translate(-50%,-30%);transform:translate(-50%,-30%);background:#f1f3f5;min-width:100%;height:100%}.wpr-tplib-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#fff;-webkit-box-shadow:0 0 8px rgba(0,0,0,.1);box-shadow:0 0 8px rgba(0,0,0,.1);position:relative;z-index:10}.wpr-tplib-logo{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;width:200px;padding-left:30px;color:#495157;font-size:15px;font-weight:700;font-family:Roboto,Arial,Helvetica,Verdana,sans-serif}.wpr-tplib-header ul{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;margin-left:-130px}.wpr-tplib-header ul li{width:115px;padding:20px 0;color:#6d7882;font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;font-size:14px;line-height:1;font-weight:500;text-align:center;cursor:pointer}.wpr-tplib-active-tab{background-image:-o-linear-gradient(top,#f1f3f5,#fff);background-image:-webkit-gradient(linear,left top,left bottom,from(#f1f3f5),to(#fff));background-image:linear-gradient(180deg,#f1f3f5,#fff);border-bottom:3px solid #6a4bff}.wpr-tplib-close{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding-right:30px;color:#a4afb7;font-size:18px;cursor:pointer;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.wpr-tplib-close:hover{color:#3a3a3a}.wpr-tplib-close i{line-height:20px;padding-left:20px}.wpr-tplib-header .wpr-tplib-insert-template{display:none;width:120px;height:27px;line-height:27px;padding:0 15px;margin-right:15px;color:#fff;background-color:#6a4bff;font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;font-size:13px;border-radius:2px;text-transform:uppercase;cursor:pointer;text-align:center}.wpr-tplib-back{display:none;width:230px;padding:17px 15px;border-right:1px solid #e6e9ec;color:#6d7882;font-size:15px;font-weight:700;font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;cursor:pointer;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.wpr-tplib-back:hover{color:#495157}.wpr-tplib-back i{margin-right:5px}.wpr-tplib-sidebar{padding:30px 30px 20px 30px}.wpr-tplib-sidebar .wpr-tplib-search{display:none;position:relative;margin:30px 0}.wpr-tplib-sidebar .wpr-tplib-search i{position:absolute;top:50%;right:10px;font-size:12px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.wpr-tplib-sidebar .wpr-tplib-search input{width:100%;padding:8px 10px;border:0;border-bottom:1px solid #efefef}.wpr-tplib-sidebar .wpr-tplib-search input::-webkit-input-placeholder{color:#9a9a9a}.wpr-tplib-sidebar .wpr-tplib-search input::-moz-placeholder{color:#9a9a9a}.wpr-tplib-sidebar .wpr-tplib-search input:-ms-input-placeholder{color:#9a9a9a}.wpr-tplib-sidebar .wpr-tplib-search input::-ms-input-placeholder{color:#9a9a9a}.wpr-tplib-sidebar .wpr-tplib-search input::placeholder{color:#9a9a9a}.wpr-tplib-filters-wrap{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-tplib-sub-filters{display:none;margin-left:20px}.wpr-tplib-sub-filters ul{display:-webkit-box;display:-ms-flexbox;display:flex}.wpr-tplib-sub-filters ul li{padding:10px 25px;margin-right:7px;line-height:15px;font-size:13px;font-weight:400;background:#fff;-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.05);box-shadow:0 2px 5px 0 rgba(0,0,0,.05);cursor:pointer;border-radius:3px}.wpr-tplib-sub-filters ul .wpr-tplib-activ-filter,.wpr-tplib-sub-filters ul li:hover{background:#6a4bff;color:#fff}.wpr-tplib-filters{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;position:relative;width:200px;font-size:14px;font-weight:400;font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;color:#6d7882}.wpr-tplib-filters h3{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:10px 15px;font-size:13px;font-weight:400;font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;background:#fff;-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.05);box-shadow:0 2px 5px 0 rgba(0,0,0,.05);cursor:pointer;border-radius:3px}.wpr-tplib-filters h3 span{width:100%}.wpr-tplib-filters-list{visibility:hidden;opacity:0;position:absolute;top:38px;z-index:999;width:700px;padding:20px 30px;background:#fff;-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.05);box-shadow:0 2px 5px 0 rgba(0,0,0,.05);-webkit-transition:all .2s ease-in;-o-transition:all .2s ease-in;transition:all .2s ease-in;border-radius:3px}.wpr-tplib-filters-list ul{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.wpr-tplib-filters-list ul li{width:25%;padding:12px;color:#6d7882;background:#fff;font-size:13px;line-height:1;cursor:pointer}.wpr-tplib-filters-list ul li:hover{background:#f9f9f9;color:#222}.wpr-tplib-template-gird{position:absolute;width:100%;height:calc(100% - 132px);overflow:auto;padding:0 30px 30px 30px;margin-left:-10px}.wpr-tplib-template-wrap{float:left;overflow:hidden;width:18.5%;margin:10px;border-radius:3px;-webkit-box-shadow:0 1px 20px 0 rgba(0,0,0,.07);box-shadow:0 1px 20px 0 rgba(0,0,0,.07)}.wpr-tplib-pro-wrap:before{content:'Premium';display:block;position:absolute;top:20px;right:-30px;z-index:1;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);padding:4px 40px;font-size:11px;letter-spacing:.3px;background:#6a4bff;color:#fff;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.7);box-shadow:0 0 5px 0 rgba(0,0,0,.7)}@media screen and (max-width:1364px){.wpr-tplib-template-wrap{width:23%}}.wpr-tplib-template-wrap:hover .wpr-tplib-insert-template{opacity:1;visibility:visible}.wpr-tplib-template-media{position:relative;background-color:#e8e8e8}.wpr-tplib-template-media img{width:100%;max-width:100%;height:auto}.wpr-tplib-template-media:hover .wpr-tplib-template-media-overlay{opacity:1}.wpr-tplib-template-media-overlay{opacity:0;position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);color:#fff;cursor:pointer;-webkit-transition:opacity .1s ease-in;-o-transition:opacity .1s ease-in;transition:opacity .1s ease-in}.wpr-tplib-template-media-overlay i{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);font-size:25px}.wpr-tplib-preview-wrap{display:none}.wpr-tplib-image{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:20px}.wpr-tplib-iframe{position:relative;padding-top:56.25%}.wpr-tplib-iframe iframe{position:absolute;top:0;left:0;width:100%;height:100%}.wpr-tplib-template-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column wrap;flex-flow:column wrap;-ms-flex-line-pack:justify;align-content:space-between;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:45px;padding:5px 15px;background-color:#fff;border-top:1px solid #efefef}.wpr-tplib-template-footer h3{overflow:hidden;color:#6d7882;font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;font-size:13px;font-weight:400;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.wpr-tplib-template-footer .wpr-tplib-insert-template{opacity:0;visibility:hidden;padding:6px 10px;color:#fff;background-color:#6a4bff;font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;font-size:13px;line-height:1;letter-spacing:.3px;border-radius:3px;cursor:pointer;-webkit-transition:all .1s ease-in;-o-transition:all .1s ease-in;transition:all .1s ease-in}#masonry-effect{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.item{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;width:calc(33.3%)}.wpr-tplib-loader{overflow:auto;position:absolute;width:100%;height:100%;z-index:9999999999;background-color:#f1f3f5}.elementor-loader-wrapper{position:absolute;width:300px;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.elementor-loader{border-radius:7px;padding:40px;height:150px;width:150px;background-color:rgba(255,255,255,.9);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:2px 2px 20px 4px rgba(0,0,0,.02);box-shadow:2px 2px 20px 4px rgba(0,0,0,.02)}.elementor-loader-boxes{height:100%;width:100%;position:relative}.elementor-loader-box{position:absolute;background-color:#d5dadf;-webkit-animation:load 1.8s linear infinite;animation:load 1.8s linear infinite}.elementor-loader-box:nth-of-type(1){width:20%;height:100%;left:0;top:0}.elementor-loader-box:not(:nth-of-type(1)){right:0;height:20%;width:60%}.elementor-loader-box:nth-of-type(2){top:0;-webkit-animation-delay:-.45s;animation-delay:-.45s}.elementor-loader-box:nth-of-type(3){top:40%;-webkit-animation-delay:-.9s;animation-delay:-.9s}.elementor-loader-box:nth-of-type(4){bottom:0;-webkit-animation-delay:-1.35s;animation-delay:-1.35s}@-webkit-keyframes load{0%{opacity:.3}50%{opacity:1}100%{opacity:.3}}@keyframes load{0%{opacity:.3}50%{opacity:1}100%{opacity:.3}}.elementor-loading-title{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;color:#a4afb7;text-align:center;text-transform:uppercase;margin-top:30px;letter-spacing:7px;text-indent:7px;font-size:10px;width:100%}.wpr-tplib-popup ::-webkit-scrollbar{width:6px;height:0;border-radius:3px}.wpr-tplib-popup ::-webkit-scrollbar-button{width:0;height:10px}.wpr-tplib-popup ::-webkit-scrollbar-thumb{background-color:#d5dadf;border:0 none #d5dadf;border-radius:3px}.wpr-tplib-popup ::-webkit-scrollbar-track{border:0 none #fff;border-radius:0}.wpr-tplib-popup ::-webkit-scrollbar-corner{background:0 0}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/img/icon-256x256.png
DELETED
Binary file
|
assets/img/pro-options/group_popup_settings.jpg
ADDED
Binary file
|
assets/js/admin/plugin-options.js
CHANGED
@@ -1,23 +1,11 @@
|
|
1 |
jQuery(document).ready(function( $ ) {
|
2 |
"use strict";
|
3 |
|
4 |
-
/*
|
5 |
-
** Elements Toggle -------------------------
|
6 |
-
*/
|
7 |
-
$('.wpr-elements-toggle').find('input').on( 'change', function() {
|
8 |
-
if ( $(this).is(':checked') ) {
|
9 |
-
$('.wpr-element').find('input').prop( 'checked', true );
|
10 |
-
} else {
|
11 |
-
$('.wpr-element').find('input').prop( 'checked', false );
|
12 |
-
}
|
13 |
-
});
|
14 |
-
|
15 |
-
|
16 |
// Condition Selects
|
17 |
var globalS = '.global-condition-select',
|
18 |
archiveS = '.archives-condition-select',
|
19 |
singleS = '.singles-condition-select',
|
20 |
-
inputIDs = '.condition-input-ids';
|
21 |
|
22 |
// Condition Popup
|
23 |
var conditionPupup = $( '.wpr-condition-popup-wrap' );
|
@@ -32,12 +20,10 @@ jQuery(document).ready(function( $ ) {
|
|
32 |
*/
|
33 |
function getActiveFilter() {
|
34 |
var type = currentTab.replace( /\W+/g, '-' ).toLowerCase();
|
35 |
-
|
36 |
if ( $('.template-filters').length > 0 ) {
|
37 |
type = $('.template-filters .active-filter').last().attr('data-class');
|
38 |
type = type.substring( 0, type.length - 1);
|
39 |
}
|
40 |
-
|
41 |
return type;
|
42 |
}
|
43 |
|
@@ -47,26 +33,25 @@ jQuery(document).ready(function( $ ) {
|
|
47 |
function renderUserTemplate( type, title, slug, id ) {
|
48 |
var html = '';
|
49 |
|
50 |
-
html += '<
|
51 |
-
html += '<
|
52 |
-
|
|
|
|
|
|
|
53 |
html += '</div>';
|
54 |
-
|
55 |
-
html += '<div class="wpr-title">'+ title +'</div>';
|
56 |
-
html += '<div class="wpr-action-buttons">';
|
57 |
-
html += '<span class="button wpr-activate" data-slug="'+ slug +'">Activate</span>';
|
58 |
-
html += '<a href="post.php?post='+ id +'&action=elementor" class="wpr-edit button">Edit</a>';
|
59 |
-
html += '<span class="wpr-reset button" data-slug="'+ slug +'">Delete</span>';
|
60 |
-
html += '</div>';
|
61 |
-
html += '</footer>';
|
62 |
-
html += '</div>';
|
63 |
|
64 |
// Render
|
65 |
-
$( '.
|
|
|
|
|
|
|
|
|
66 |
|
67 |
// Run Functions
|
68 |
-
|
69 |
-
|
70 |
}
|
71 |
|
72 |
/*
|
@@ -75,10 +60,9 @@ jQuery(document).ready(function( $ ) {
|
|
75 |
function craeteUserTemplate() {
|
76 |
// Get Template Library
|
77 |
var library = 'my-templates' === getActiveFilter() ? 'elementor_library' : 'wpr_templates';
|
78 |
-
|
79 |
// Get Template Title
|
80 |
-
var title = $('.user-template-title').val();
|
81 |
-
|
82 |
// Get Template Slug
|
83 |
var slug = 'user-'+ getActiveFilter() +'-'+ title.replace( /\W+/g, '-' ).toLowerCase();
|
84 |
|
@@ -98,7 +82,7 @@ jQuery(document).ready(function( $ ) {
|
|
98 |
// Create Template
|
99 |
$.post(ajaxurl, data, function(response) {
|
100 |
// Close Popup
|
101 |
-
$('.user-template-popup-wrap').fadeOut();
|
102 |
|
103 |
// Open Conditions
|
104 |
setTimeout(function() {
|
@@ -112,10 +96,14 @@ jQuery(document).ready(function( $ ) {
|
|
112 |
}
|
113 |
|
114 |
// Set Template Slug & ID
|
115 |
-
$( '.save-conditions' ).attr( 'data-slug', slug ).attr( 'data-id', id );
|
116 |
|
117 |
// Render Template
|
118 |
-
renderUserTemplate( getActiveFilter(), $('.user-template-title').val(), slug, id );
|
|
|
|
|
|
|
|
|
119 |
|
120 |
// Open Popup
|
121 |
openConditionsPopup( slug );
|
@@ -126,22 +114,35 @@ jQuery(document).ready(function( $ ) {
|
|
126 |
|
127 |
// Open Popup
|
128 |
$('.wpr-user-template').on( 'click', function() {
|
129 |
-
$('.user-template-title').val('');
|
130 |
-
$('.user-template-popup-wrap').fadeIn();
|
131 |
});
|
132 |
|
133 |
// Close Popup
|
134 |
-
$('.user-template-popup').find('.close-popup').on( 'click', function() {
|
135 |
-
$('.user-template-popup-wrap').fadeOut();
|
136 |
});
|
137 |
|
138 |
// Create - Click
|
139 |
-
$('.create-template').on( 'click', function() {
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
});
|
142 |
|
143 |
// Create - Enter Key
|
144 |
-
$('.user-template-title').keypress(function(e) {
|
145 |
if ( e.which == 13 ) {
|
146 |
e.preventDefault();
|
147 |
craeteUserTemplate();
|
@@ -156,8 +157,8 @@ jQuery(document).ready(function( $ ) {
|
|
156 |
$( '.wpr-import' ).on( 'click', function() {
|
157 |
// Buttons
|
158 |
var importButton = $(this),
|
159 |
-
editButton = importButton.parent().find('.wpr-edit'),
|
160 |
-
resetButton = importButton.parent().find('.wpr-
|
161 |
|
162 |
$('.wrap').children('h1').text('Importing Template, Please be patient...');
|
163 |
|
@@ -172,12 +173,12 @@ jQuery(document).ready(function( $ ) {
|
|
172 |
$('.wrap').children('h1').text('Howdy Nick! Template has been successfully imported :)');
|
173 |
|
174 |
// Change Buttons
|
175 |
-
importButton.removeClass('wpr-import').addClass('wpr-
|
176 |
editButton.removeClass('hidden');
|
177 |
resetButton.removeClass('hidden');
|
178 |
|
179 |
-
//
|
180 |
-
|
181 |
|
182 |
// Edit Template Link
|
183 |
response = response.split(';');
|
@@ -191,63 +192,71 @@ jQuery(document).ready(function( $ ) {
|
|
191 |
/*
|
192 |
** Reset Template -------------------------
|
193 |
*/
|
194 |
-
function
|
195 |
-
$( '.wpr-
|
|
|
196 |
// Buttons
|
197 |
-
var
|
198 |
-
|
199 |
-
|
|
|
|
|
200 |
|
201 |
// Get Template Library
|
202 |
var library = 'my-templates' === getActiveFilter() ? 'elementor_library' : 'wpr_templates';
|
203 |
|
204 |
// Get Template Slug
|
205 |
-
var slug =
|
206 |
|
207 |
// AJAX Data
|
208 |
var data = {
|
209 |
-
action: '
|
210 |
template_slug: slug,
|
211 |
template_library: library,
|
212 |
};
|
213 |
|
214 |
-
//
|
215 |
$.post(ajaxurl, data, function(response) {
|
216 |
-
|
217 |
-
|
218 |
-
editButton.addClass( 'hidden' );
|
219 |
-
resetButton.addClass( 'hidden' );
|
220 |
|
221 |
-
|
222 |
-
|
|
|
223 |
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
});
|
230 |
}
|
231 |
|
232 |
-
|
233 |
|
234 |
/*
|
235 |
** Condition Popup -------------------------
|
236 |
*/
|
237 |
// Open Popup
|
238 |
-
function
|
239 |
-
$( '.wpr-
|
240 |
var template = $(this).attr('data-slug');
|
241 |
|
242 |
// Set Template Slug
|
243 |
-
$( '.save-conditions' ).attr( 'data-slug', template );
|
244 |
|
245 |
// Open Popup
|
246 |
openConditionsPopup( template );
|
247 |
});
|
248 |
}
|
249 |
|
250 |
-
|
251 |
|
252 |
// Close Popup
|
253 |
conditionPupup.find('.close-popup').on( 'click', function() {
|
@@ -259,13 +268,11 @@ jQuery(document).ready(function( $ ) {
|
|
259 |
** Popup: Clone Conditions -------------------------
|
260 |
*/
|
261 |
function popupCloneConditions() {
|
262 |
-
// Reset
|
263 |
-
$('.delete-conditions, .add-conditions').css('display', 'inline-block');
|
264 |
-
|
265 |
// Clone
|
266 |
$('.wpr-conditions-wrap').append( '<div class="wpr-conditions">'+ $('.wpr-conditions-sample').html() +'</div>' );
|
267 |
|
268 |
// Add Tab Class
|
|
|
269 |
$('.wpr-conditions').removeClass( 'wpr-tab-'+ currentTab ).addClass( 'wpr-tab-'+ currentTab );
|
270 |
var clone = $('.wpr-conditions').last();
|
271 |
|
@@ -280,17 +287,16 @@ jQuery(document).ready(function( $ ) {
|
|
280 |
|
281 |
if ( 'blog-posts' === currentFilter || 'custom-posts' === currentFilter ) {
|
282 |
clone.find('.singles-condition-select').children(':nth-child(1),:nth-child(2),:nth-child(3)').remove();
|
283 |
-
clone.find('.condition-input-ids').val('all').show();
|
284 |
} else if ( 'woocommerce-products' === currentFilter ) {
|
285 |
clone.find('.singles-condition-select').children().filter(function() {
|
286 |
return 'product' !== $(this).val()
|
287 |
}).remove();
|
288 |
-
clone.find('.condition-input-ids').val('all').show();
|
289 |
} else if ( '404-pages' === currentFilter ) {
|
290 |
clone.find('.singles-condition-select').children().filter(function() {
|
291 |
return 'page_404' !== $(this).val()
|
292 |
}).remove();
|
293 |
-
$('.delete-conditions, .add-conditions').hide();
|
294 |
} else if ( 'blog-archives' === currentFilter || 'custom-archives' === currentFilter ) {
|
295 |
clone.find('.archives-condition-select').children().filter(function() {
|
296 |
return 'products' == $(this).val() || 'product_cat' == $(this).val() || 'product_tag' == $(this).val();
|
@@ -306,7 +312,7 @@ jQuery(document).ready(function( $ ) {
|
|
306 |
** Popup: Add Conditions -------------------------
|
307 |
*/
|
308 |
function popupAddConditions() {
|
309 |
-
$( '.add-conditions' ).on( 'click', function() {
|
310 |
// Clone
|
311 |
popupCloneConditions();
|
312 |
|
@@ -328,7 +334,6 @@ jQuery(document).ready(function( $ ) {
|
|
328 |
function popupSetConditions( template ) {
|
329 |
var conditions = $( '#wpr_'+ currentTab +'_conditions' ).val();
|
330 |
conditions = '' !== conditions ? JSON.parse(conditions) : {};
|
331 |
-
|
332 |
// Reset
|
333 |
$('.wpr-conditions').remove();
|
334 |
|
@@ -357,9 +362,6 @@ jQuery(document).ready(function( $ ) {
|
|
357 |
}
|
358 |
});
|
359 |
}
|
360 |
-
} else { // Set Default
|
361 |
-
popupCloneConditions();
|
362 |
-
$( '.wpr-conditions' ).find('select').hide();
|
363 |
}
|
364 |
}
|
365 |
|
@@ -393,13 +395,13 @@ jQuery(document).ready(function( $ ) {
|
|
393 |
// Open Popup
|
394 |
conditionPupup.fadeIn();
|
395 |
}
|
396 |
-
|
397 |
|
398 |
/*
|
399 |
-
** Popup: Delete Conditions
|
400 |
*/
|
401 |
function popupDeleteConditions() {
|
402 |
-
$( '.delete-conditions' ).on( 'click', function() {
|
403 |
var current = $(this).parent(),
|
404 |
conditions = $( '#wpr_'+ currentTab +'_conditions' ).val();
|
405 |
conditions = '' !== conditions ? JSON.parse(conditions) : {};
|
@@ -417,7 +419,7 @@ jQuery(document).ready(function( $ ) {
|
|
417 |
|
418 |
|
419 |
/*
|
420 |
-
** Popup: Condition Selection
|
421 |
*/
|
422 |
// General Condition Select
|
423 |
function popupMainConditionSelect() {
|
@@ -452,13 +454,13 @@ jQuery(document).ready(function( $ ) {
|
|
452 |
|
453 |
|
454 |
/*
|
455 |
-
** Remove Conditions
|
456 |
*/
|
457 |
function removeConditions( conditions, path ) {
|
458 |
var data = [];
|
459 |
|
460 |
// Get Templates
|
461 |
-
$('.wpr-
|
462 |
data.push($(this).attr('data-slug'))
|
463 |
});
|
464 |
|
@@ -529,7 +531,7 @@ jQuery(document).ready(function( $ ) {
|
|
529 |
|
530 |
// Remove Duplicates
|
531 |
conditions = removeConditions( conditions, path );
|
532 |
-
|
533 |
// Add New Values
|
534 |
conditions[template].push( path );
|
535 |
});
|
@@ -542,7 +544,9 @@ jQuery(document).ready(function( $ ) {
|
|
542 |
** Save Conditions -------------------------
|
543 |
*/
|
544 |
function saveConditions() {
|
545 |
-
$( '.save-conditions' ).on( 'click', function() {
|
|
|
|
|
546 |
// Current Template
|
547 |
var template = $(this).attr('data-slug'),
|
548 |
TemplateID = $(this).attr('data-id');
|
@@ -550,12 +554,19 @@ jQuery(document).ready(function( $ ) {
|
|
550 |
// Get Conditions
|
551 |
var conditions = getConditions( template, $( '#wpr_'+ currentTab +'_conditions' ).val() );
|
552 |
|
|
|
|
|
|
|
|
|
|
|
|
|
553 |
// Set Conditions
|
554 |
$('#wpr_'+ currentTab +'_conditions').val( JSON.stringify(conditions) );
|
555 |
|
556 |
// AJAX Data
|
557 |
var data = {
|
558 |
-
action: 'wpr_save_template_conditions'
|
|
|
559 |
};
|
560 |
data['wpr_'+ currentTab +'_conditions'] = JSON.stringify(conditions);
|
561 |
|
@@ -564,17 +575,51 @@ jQuery(document).ready(function( $ ) {
|
|
564 |
// Close Popup
|
565 |
conditionPupup.fadeOut();
|
566 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
567 |
// Redirect User to Editor
|
568 |
if ( conditionPupup.hasClass('editor-redirect') ) {
|
569 |
-
window.location.href = 'post.php?post='+
|
570 |
}
|
571 |
});
|
572 |
});
|
573 |
}
|
574 |
-
|
575 |
saveConditions();
|
576 |
|
577 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
578 |
/*
|
579 |
** Filters -------------------------
|
580 |
*/
|
@@ -633,20 +678,7 @@ jQuery(document).ready(function( $ ) {
|
|
633 |
});
|
634 |
|
635 |
|
636 |
-
//
|
637 |
-
// $('.nav-tab-wrapper').after( '<p>'+ $('.nav-tab-wrapper').next('input').val() +'</p>' );
|
638 |
-
|
639 |
-
//tmp
|
640 |
-
$('.resett').on( 'click', function(e) {
|
641 |
-
// AJAX Data
|
642 |
-
var data = {
|
643 |
-
action: 'wpr_save_template_conditions',
|
644 |
-
};
|
645 |
-
|
646 |
-
data['wpr_'+ currentTab +'_conditions'] = '';
|
647 |
-
|
648 |
-
// Update via AJAX
|
649 |
-
$.post(ajaxurl, data, function(response) {});
|
650 |
-
});
|
651 |
|
652 |
}); // end dom ready
|
1 |
jQuery(document).ready(function( $ ) {
|
2 |
"use strict";
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
// Condition Selects
|
5 |
var globalS = '.global-condition-select',
|
6 |
archiveS = '.archives-condition-select',
|
7 |
singleS = '.singles-condition-select',
|
8 |
+
inputIDs = '.wpr-condition-input-ids';
|
9 |
|
10 |
// Condition Popup
|
11 |
var conditionPupup = $( '.wpr-condition-popup-wrap' );
|
20 |
*/
|
21 |
function getActiveFilter() {
|
22 |
var type = currentTab.replace( /\W+/g, '-' ).toLowerCase();
|
|
|
23 |
if ( $('.template-filters').length > 0 ) {
|
24 |
type = $('.template-filters .active-filter').last().attr('data-class');
|
25 |
type = type.substring( 0, type.length - 1);
|
26 |
}
|
|
|
27 |
return type;
|
28 |
}
|
29 |
|
33 |
function renderUserTemplate( type, title, slug, id ) {
|
34 |
var html = '';
|
35 |
|
36 |
+
html += '<li>';
|
37 |
+
html += '<h3 class="wpr-title">'+ title +'</h3>';
|
38 |
+
html += '<div class="wpr-action-buttons">';
|
39 |
+
html += '<span class="wpr-template-conditions button-primary" data-slug="'+ slug +'">Manage Conditions</span>';
|
40 |
+
html += '<a href="post.php?post='+ id +'&action=elementor" class="wpr-edit-template button-primary">Edit Template</a>';
|
41 |
+
html += '<span class="wpr-delete-template button-primary" data-slug="'+ slug +'" data-warning="Are you sure you want to delete this template?"><span class="dashicons dashicons-no-alt"></span></span>';
|
42 |
html += '</div>';
|
43 |
+
html += '</li>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
// Render
|
46 |
+
$( '.wpr-my-templates-list.wpr-'+ getActiveFilter() +'-templates-list' ).prepend( html );
|
47 |
+
|
48 |
+
if ( $('.wpr-empty-templates-message').length ) {
|
49 |
+
$('.wpr-empty-templates-message').remove();
|
50 |
+
}
|
51 |
|
52 |
// Run Functions
|
53 |
+
changeTemplateConditions();
|
54 |
+
deleteTemplate();
|
55 |
}
|
56 |
|
57 |
/*
|
60 |
function craeteUserTemplate() {
|
61 |
// Get Template Library
|
62 |
var library = 'my-templates' === getActiveFilter() ? 'elementor_library' : 'wpr_templates';
|
|
|
63 |
// Get Template Title
|
64 |
+
var title = $('.wpr-user-template-title').val();
|
65 |
+
|
66 |
// Get Template Slug
|
67 |
var slug = 'user-'+ getActiveFilter() +'-'+ title.replace( /\W+/g, '-' ).toLowerCase();
|
68 |
|
82 |
// Create Template
|
83 |
$.post(ajaxurl, data, function(response) {
|
84 |
// Close Popup
|
85 |
+
$('.wpr-user-template-popup-wrap').fadeOut();
|
86 |
|
87 |
// Open Conditions
|
88 |
setTimeout(function() {
|
96 |
}
|
97 |
|
98 |
// Set Template Slug & ID
|
99 |
+
$( '.wpr-save-conditions' ).attr( 'data-slug', slug ).attr( 'data-id', id );
|
100 |
|
101 |
// Render Template
|
102 |
+
renderUserTemplate( getActiveFilter(), $('.wpr-user-template-title').val(), slug, id );
|
103 |
+
|
104 |
+
if ( $('.wpr-no-templates').length ) {
|
105 |
+
$('.wpr-no-templates').hide();
|
106 |
+
}
|
107 |
|
108 |
// Open Popup
|
109 |
openConditionsPopup( slug );
|
114 |
|
115 |
// Open Popup
|
116 |
$('.wpr-user-template').on( 'click', function() {
|
117 |
+
$('.wpr-user-template-title').val('');
|
118 |
+
$('.wpr-user-template-popup-wrap').fadeIn();
|
119 |
});
|
120 |
|
121 |
// Close Popup
|
122 |
+
$('.wpr-user-template-popup').find('.close-popup').on( 'click', function() {
|
123 |
+
$('.wpr-user-template-popup-wrap').fadeOut();
|
124 |
});
|
125 |
|
126 |
// Create - Click
|
127 |
+
$('.wpr-create-template').on( 'click', function() {
|
128 |
+
if ( '' === $('.wpr-user-template-title').val() ) {
|
129 |
+
$('.wpr-user-template-title').css('border-color', 'red');
|
130 |
+
if ( $('.wpr-fill-out-the-title').length < 1 ) {
|
131 |
+
$('.wpr-create-template').before('<p class="wpr-fill-out-the-title"><em>Please fill the Title field.</em></p>');
|
132 |
+
$('.wpr-fill-out-the-title').css('margin-top', '4px');
|
133 |
+
$('.wpr-fill-out-the-title em').css({'color': '#7f8b96', 'font-size': 'smaller'});
|
134 |
+
}
|
135 |
+
} else {
|
136 |
+
$('.wpr-user-template-title').removeAttr('style');
|
137 |
+
$('.wpr-create-template + p').remove();
|
138 |
+
|
139 |
+
// Create Template
|
140 |
+
craeteUserTemplate();
|
141 |
+
}
|
142 |
});
|
143 |
|
144 |
// Create - Enter Key
|
145 |
+
$('.wpr-user-template-title').keypress(function(e) {
|
146 |
if ( e.which == 13 ) {
|
147 |
e.preventDefault();
|
148 |
craeteUserTemplate();
|
157 |
$( '.wpr-import' ).on( 'click', function() {
|
158 |
// Buttons
|
159 |
var importButton = $(this),
|
160 |
+
editButton = importButton.parent().find('.wpr-edit-template'),
|
161 |
+
resetButton = importButton.parent().find('.wpr-delete-template');
|
162 |
|
163 |
$('.wrap').children('h1').text('Importing Template, Please be patient...');
|
164 |
|
173 |
$('.wrap').children('h1').text('Howdy Nick! Template has been successfully imported :)');
|
174 |
|
175 |
// Change Buttons
|
176 |
+
importButton.removeClass('wpr-import').addClass('wpr-template-conditions').text('Activate').unbind('click');
|
177 |
editButton.removeClass('hidden');
|
178 |
resetButton.removeClass('hidden');
|
179 |
|
180 |
+
// Open Conditions
|
181 |
+
changeTemplateConditions();
|
182 |
|
183 |
// Edit Template Link
|
184 |
response = response.split(';');
|
192 |
/*
|
193 |
** Reset Template -------------------------
|
194 |
*/
|
195 |
+
function deleteTemplate() {
|
196 |
+
$( '.wpr-delete-template' ).on( 'click', function() {
|
197 |
+
|
198 |
// Buttons
|
199 |
+
var deleteButton = $(this);
|
200 |
+
|
201 |
+
if ( ! confirm(deleteButton.data('warning')) ) {
|
202 |
+
return;
|
203 |
+
}
|
204 |
|
205 |
// Get Template Library
|
206 |
var library = 'my-templates' === getActiveFilter() ? 'elementor_library' : 'wpr_templates';
|
207 |
|
208 |
// Get Template Slug
|
209 |
+
var slug = deleteButton.attr('data-slug');
|
210 |
|
211 |
// AJAX Data
|
212 |
var data = {
|
213 |
+
action: 'wpr_delete_template',
|
214 |
template_slug: slug,
|
215 |
template_library: library,
|
216 |
};
|
217 |
|
218 |
+
// Remove Template via AJAX
|
219 |
$.post(ajaxurl, data, function(response) {
|
220 |
+
deleteButton.closest('li').remove();
|
221 |
+
});
|
|
|
|
|
222 |
|
223 |
+
// Delete associated Conditions
|
224 |
+
var conditions = JSON.parse($( '#wpr_'+ currentTab +'_conditions' ).val());
|
225 |
+
delete conditions[slug];
|
226 |
|
227 |
+
// Set Conditions
|
228 |
+
$('#wpr_'+ currentTab +'_conditions').val( JSON.stringify(conditions) );
|
229 |
+
|
230 |
+
// AJAX Data
|
231 |
+
var data = {
|
232 |
+
action: 'wpr_save_template_conditions'
|
233 |
+
};
|
234 |
+
data['wpr_'+ currentTab +'_conditions'] = JSON.stringify(conditions);
|
235 |
+
|
236 |
+
// Save Conditions
|
237 |
+
$.post(ajaxurl, data, function(response) {});
|
238 |
});
|
239 |
}
|
240 |
|
241 |
+
deleteTemplate();
|
242 |
|
243 |
/*
|
244 |
** Condition Popup -------------------------
|
245 |
*/
|
246 |
// Open Popup
|
247 |
+
function changeTemplateConditions() {
|
248 |
+
$( '.wpr-template-conditions' ).on( 'click', function() {
|
249 |
var template = $(this).attr('data-slug');
|
250 |
|
251 |
// Set Template Slug
|
252 |
+
$( '.wpr-save-conditions' ).attr( 'data-slug', template );
|
253 |
|
254 |
// Open Popup
|
255 |
openConditionsPopup( template );
|
256 |
});
|
257 |
}
|
258 |
|
259 |
+
changeTemplateConditions();
|
260 |
|
261 |
// Close Popup
|
262 |
conditionPupup.find('.close-popup').on( 'click', function() {
|
268 |
** Popup: Clone Conditions -------------------------
|
269 |
*/
|
270 |
function popupCloneConditions() {
|
|
|
|
|
|
|
271 |
// Clone
|
272 |
$('.wpr-conditions-wrap').append( '<div class="wpr-conditions">'+ $('.wpr-conditions-sample').html() +'</div>' );
|
273 |
|
274 |
// Add Tab Class
|
275 |
+
// why removing and adding again ?
|
276 |
$('.wpr-conditions').removeClass( 'wpr-tab-'+ currentTab ).addClass( 'wpr-tab-'+ currentTab );
|
277 |
var clone = $('.wpr-conditions').last();
|
278 |
|
287 |
|
288 |
if ( 'blog-posts' === currentFilter || 'custom-posts' === currentFilter ) {
|
289 |
clone.find('.singles-condition-select').children(':nth-child(1),:nth-child(2),:nth-child(3)').remove();
|
290 |
+
clone.find('.wpr-condition-input-ids').val('all').show();
|
291 |
} else if ( 'woocommerce-products' === currentFilter ) {
|
292 |
clone.find('.singles-condition-select').children().filter(function() {
|
293 |
return 'product' !== $(this).val()
|
294 |
}).remove();
|
295 |
+
clone.find('.wpr-condition-input-ids').val('all').show();
|
296 |
} else if ( '404-pages' === currentFilter ) {
|
297 |
clone.find('.singles-condition-select').children().filter(function() {
|
298 |
return 'page_404' !== $(this).val()
|
299 |
}).remove();
|
|
|
300 |
} else if ( 'blog-archives' === currentFilter || 'custom-archives' === currentFilter ) {
|
301 |
clone.find('.archives-condition-select').children().filter(function() {
|
302 |
return 'products' == $(this).val() || 'product_cat' == $(this).val() || 'product_tag' == $(this).val();
|
312 |
** Popup: Add Conditions -------------------------
|
313 |
*/
|
314 |
function popupAddConditions() {
|
315 |
+
$( '.wpr-add-conditions' ).on( 'click', function() {
|
316 |
// Clone
|
317 |
popupCloneConditions();
|
318 |
|
334 |
function popupSetConditions( template ) {
|
335 |
var conditions = $( '#wpr_'+ currentTab +'_conditions' ).val();
|
336 |
conditions = '' !== conditions ? JSON.parse(conditions) : {};
|
|
|
337 |
// Reset
|
338 |
$('.wpr-conditions').remove();
|
339 |
|
362 |
}
|
363 |
});
|
364 |
}
|
|
|
|
|
|
|
365 |
}
|
366 |
}
|
367 |
|
395 |
// Open Popup
|
396 |
conditionPupup.fadeIn();
|
397 |
}
|
398 |
+
|
399 |
|
400 |
/*
|
401 |
+
** Popup: Delete Conditions -------------------------------
|
402 |
*/
|
403 |
function popupDeleteConditions() {
|
404 |
+
$( '.wpr-delete-template-conditions' ).on( 'click', function() {
|
405 |
var current = $(this).parent(),
|
406 |
conditions = $( '#wpr_'+ currentTab +'_conditions' ).val();
|
407 |
conditions = '' !== conditions ? JSON.parse(conditions) : {};
|
419 |
|
420 |
|
421 |
/*
|
422 |
+
** Popup: Condition Selection -------
|
423 |
*/
|
424 |
// General Condition Select
|
425 |
function popupMainConditionSelect() {
|
454 |
|
455 |
|
456 |
/*
|
457 |
+
** Remove Conditions --------------------------
|
458 |
*/
|
459 |
function removeConditions( conditions, path ) {
|
460 |
var data = [];
|
461 |
|
462 |
// Get Templates
|
463 |
+
$('.wpr-template-conditions').each(function() {
|
464 |
data.push($(this).attr('data-slug'))
|
465 |
});
|
466 |
|
531 |
|
532 |
// Remove Duplicates
|
533 |
conditions = removeConditions( conditions, path );
|
534 |
+
|
535 |
// Add New Values
|
536 |
conditions[template].push( path );
|
537 |
});
|
544 |
** Save Conditions -------------------------
|
545 |
*/
|
546 |
function saveConditions() {
|
547 |
+
$( '.wpr-save-conditions' ).on( 'click', function() {
|
548 |
+
var proActive = (1 === $('.wpr-my-templates-list').data('pro')) ? true : false;
|
549 |
+
|
550 |
// Current Template
|
551 |
var template = $(this).attr('data-slug'),
|
552 |
TemplateID = $(this).attr('data-id');
|
554 |
// Get Conditions
|
555 |
var conditions = getConditions( template, $( '#wpr_'+ currentTab +'_conditions' ).val() );
|
556 |
|
557 |
+
// Don't save if not active
|
558 |
+
if ( !proActive && (('global' !== conditions[template][0] && 'undefined' !== typeof conditions[template][0]) || conditions[template].length > 1) ) {
|
559 |
+
alert('Please select "Entire Site" to continue! Mutiple and custom conditions are fully supported in the Pro version.');
|
560 |
+
return;
|
561 |
+
}
|
562 |
+
|
563 |
// Set Conditions
|
564 |
$('#wpr_'+ currentTab +'_conditions').val( JSON.stringify(conditions) );
|
565 |
|
566 |
// AJAX Data
|
567 |
var data = {
|
568 |
+
action: 'wpr_save_template_conditions',
|
569 |
+
template: template
|
570 |
};
|
571 |
data['wpr_'+ currentTab +'_conditions'] = JSON.stringify(conditions);
|
572 |
|
575 |
// Close Popup
|
576 |
conditionPupup.fadeOut();
|
577 |
|
578 |
+
// Set Active Class
|
579 |
+
for ( var key in conditions ) {
|
580 |
+
if ( conditions[key] && 0 !== conditions[key].length ) {
|
581 |
+
$('.wpr-delete-template[data-slug="'+ key +'"]').closest('li').addClass('wpr-active-conditions-template');
|
582 |
+
} else {
|
583 |
+
$('.wpr-delete-template[data-slug="'+ key +'"]').closest('li').removeClass('wpr-active-conditions-template');
|
584 |
+
}
|
585 |
+
}
|
586 |
+
|
587 |
// Redirect User to Editor
|
588 |
if ( conditionPupup.hasClass('editor-redirect') ) {
|
589 |
+
window.location.href = 'post.php?post='+ TemplateID +'&action=elementor';
|
590 |
}
|
591 |
});
|
592 |
});
|
593 |
}
|
594 |
+
|
595 |
saveConditions();
|
596 |
|
597 |
|
598 |
+
/*
|
599 |
+
** Highlight Templates with Active Conditions --------
|
600 |
+
*/
|
601 |
+
if ( $('body').hasClass('royal-addons_page_wpr-theme-builder') || $('body').hasClass('royal-addons_page_wpr-popups') ) {
|
602 |
+
var conditions = $( '#wpr_'+ currentTab +'_conditions' ).val(),
|
603 |
+
conditions = ('' === conditions || '[]' === conditions) ? {} : JSON.parse(conditions);
|
604 |
+
|
605 |
+
for ( var key in conditions ) {
|
606 |
+
$('.wpr-delete-template[data-slug="'+ key +'"]').closest('li').addClass('wpr-active-conditions-template');
|
607 |
+
}
|
608 |
+
}
|
609 |
+
|
610 |
+
|
611 |
+
/*
|
612 |
+
** Elements Toggle -------------------------
|
613 |
+
*/
|
614 |
+
$('.wpr-elements-toggle').find('input').on( 'change', function() {
|
615 |
+
if ( $(this).is(':checked') ) {
|
616 |
+
$('.wpr-element').find('input').prop( 'checked', true );
|
617 |
+
} else {
|
618 |
+
$('.wpr-element').find('input').prop( 'checked', false );
|
619 |
+
}
|
620 |
+
});
|
621 |
+
|
622 |
+
|
623 |
/*
|
624 |
** Filters -------------------------
|
625 |
*/
|
678 |
});
|
679 |
|
680 |
|
681 |
+
//TODO: Remove this - only for development
|
682 |
+
// $('.nav-tab-wrapper').after( '<p>'+ $('.nav-tab-wrapper').next('input').val() +'</p>' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
683 |
|
684 |
}); // end dom ready
|
assets/js/admin/plugin-options.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function(a){"use strict";a(".wpr-elements-toggle").find("input").on("change",function(){a(this).is(":checked")?a(".wpr-element").find("input").prop("checked",!0):a(".wpr-element").find("input").prop("checked",!1)});var s=".global-condition-select",o=".archives-condition-select",r=".singles-condition-select",l=".condition-input-ids",c=a(".wpr-condition-popup-wrap"),p=a(".nav-tab-active").attr("data-title");function d(){var t=p.replace(/\W+/g,"-").toLowerCase();return 0<a(".template-filters").length&&(t=(t=a(".template-filters .active-filter").last().attr("data-class")).substring(0,t.length-1)),t}function e(){var t="my-templates"===d()?"elementor_library":"wpr_templates",e=a(".user-template-title").val(),s="user-"+d()+"-"+e.replace(/\W+/g,"-").toLowerCase();"elementor_library"==t&&(s=d()+"-"+e.replace(/\W+/g,"-").toLowerCase());e={action:"wpr_create_template",user_template_library:t,user_template_title:e,user_template_slug:s,user_template_type:d()};a.post(ajaxurl,e,function(o){a(".user-template-popup-wrap").fadeOut(),setTimeout(function(){var t,e,i,n=o.substring(0,o.length-1);"my-templates"!==p.replace(/\W+/g,"-").toLowerCase()?(a(".save-conditions").attr("data-slug",s).attr("data-id",n),t=d(),e=a(".user-template-title").val(),i="",i+='<div class="wpr-'+t+' template-grid-item">',i+='<div class="wpr-screenshot">',i+='<img src="https://wp-royal.com/test/elementor/images/custom.png">',i+="</div>",i+="<footer>",i+='<div class="wpr-title">'+e+"</div>",i+='<div class="wpr-action-buttons">',i+='<span class="button wpr-activate" data-slug="'+(e=s)+'">Activate</span>',i+='<a href="post.php?post='+n+'&action=elementor" class="wpr-edit button">Edit</a>',i+='<span class="wpr-reset button" data-slug="'+e+'">Delete</span>',i+="</div>",i+="</footer>",i+="</div>",a(".template-grid-item.wpr-"+d()).first().before(i),h(),f(),w(s),c.addClass("editor-redirect")):window.location.href="post.php?post="+n+"&action=elementor"},500)})}function u(){a(".wpr-import").on("click",function(){var e=a(this),i=e.parent().find(".wpr-edit"),n=e.parent().find(".wpr-reset");a(".wrap").children("h1").text("Importing Template, Please be patient...");var t={action:"wpr_import_template",wpr_template:a(this).attr("data-slug")};a.post(ajaxurl,t,function(t){a(".wrap").children("h1").text("Howdy Nick! Template has been successfully imported :)"),e.removeClass("wpr-import").addClass("wpr-activate").text("Activate").unbind("click"),i.removeClass("hidden"),n.removeClass("hidden"),h(),t=t.split(";"),i.attr("href","post.php?post="+t[30].replace("i:","")+"&action=elementor")})})}function f(){a(".wpr-reset").on("click",function(){var e=a(this),i=e.parent().find(".wpr-activate"),n=e.parent().find(".wpr-edit"),t="my-templates"===d()?"elementor_library":"wpr_templates",o=e.attr("data-slug"),t={action:"wpr_reset_template",template_slug:o,template_library:t};a.post(ajaxurl,t,function(t){i.removeClass("wpr-activate").addClass("wpr-import").text("Import").unbind("click"),n.addClass("hidden"),e.addClass("hidden"),u(),0!==o.indexOf("user-")&&!e.closest("ul").hasClass("wpr-my-templates-list")||(e.closest(".template-grid-item").remove(),e.closest("li").remove())})})}function h(){a(".wpr-activate").on("click",function(){var t=a(this).attr("data-slug");a(".save-conditions").attr("data-slug",t),w(t)})}function i(){a(".delete-conditions, .add-conditions").css("display","inline-block"),a(".wpr-conditions-wrap").append('<div class="wpr-conditions">'+a(".wpr-conditions-sample").html()+"</div>"),a(".wpr-conditions").removeClass("wpr-tab-"+p).addClass("wpr-tab-"+p);var t=a(".wpr-conditions").last();t.find("select").not(":first-child").hide(),t.hide().fadeIn();var e=a(".template-filters .active-filter").attr("data-class");"blog-posts"===e||"custom-posts"===e?(t.find(".singles-condition-select").children(":nth-child(1),:nth-child(2),:nth-child(3)").remove(),t.find(".condition-input-ids").val("all").show()):"woocommerce-products"===e?(t.find(".singles-condition-select").children().filter(function(){return"product"!==a(this).val()}).remove(),t.find(".condition-input-ids").val("all").show()):"404-pages"===e?(t.find(".singles-condition-select").children().filter(function(){return"page_404"!==a(this).val()}).remove(),a(".delete-conditions, .add-conditions").hide()):"blog-archives"===e||"custom-archives"===e?t.find(".archives-condition-select").children().filter(function(){return"products"==a(this).val()||"product_cat"==a(this).val()||"product_tag"==a(this).val()}).remove():"woocommerce-archives"===e&&t.find(".archives-condition-select").children().filter(function(){return"products"!==a(this).val()&&"product_cat"!==a(this).val()&&"product_tag"!==a(this).val()}).remove()}function w(t){!function(n){var o=""!==(o=a("#wpr_"+p+"_conditions").val())?JSON.parse(o):{};if(a(".wpr-conditions").remove(),null!=o[n]&&0<o[n].length){for(var t=0;t<o[n].length;t++)i(),a(".wpr-conditions").find("select").hide();a(".wpr-conditions").length&&a(".wpr-conditions").each(function(t){for(var e=o[n][t].split("/"),i=0;i<e.length;i++)0===i?(a(this).find(s).val(e[i]).trigger("change"),a(this).find("."+e[i]+"s-condition-select").show()):1===i?a(this).find("."+e[i-1]+"s-condition-select").val(e[i]).trigger("change"):2===i&&a(this).find(l).val(e[i]).trigger("keyup").show()})}else i(),a(".wpr-conditions").find("select").hide()}(t),v(),m(),n();t=a(".wpr-conditions");("single"===p?t.find(r):"archive"===p?t.find(o):t.find(s)).show(),a(".wpr-conditions-wrap").addClass(a(".template-filters .active-filter").attr("data-class")),c.fadeIn()}function n(){a(".delete-conditions").on("click",function(){var t=a(this).parent(),e=""!==(e=a("#wpr_"+p+"_conditions").val())?JSON.parse(e):{};a("#wpr_"+p+"_conditions").val(JSON.stringify(g(e,_(t)))),t.fadeOut(500,function(){a(this).remove()})})}function v(){a(s).on("change",function(){var t=a(this).parent();t.find(o).hide(),t.find(r).hide(),t.find(l).hide(),t.find("."+a(this).val()+"s-condition-select").show()})}function m(){a(".archives-condition-select, .singles-condition-select").on("change",function(){var t=a(this).parent(),e=a("option:selected",this);e.hasClass("custom-ids")||e.hasClass("custom-type-ids")?t.find(l).val("all").trigger("keyup").show():t.find(l).hide()})}function g(t,e){var i,n=[];for(i in a(".wpr-activate").each(function(){n.push(a(this).attr("data-slug"))}),t)if(t.hasOwnProperty(i)){for(var o=0;o<t[i].length;o++)e==t[i][o]&&"popup"!==d()&&t[i].splice(o,1);-1===n.indexOf(i)&&delete t[i]}return t}function _(t){var e="none"!==t.find(s).css("display")?t.find(s).val():p,i=t.find(o).val(),n=t.find(r).val(),t=t.find(l);return"archive"===e?"none"!==t.css("display")?e+"/"+i+"/"+t.val():e+"/"+i:"single"===e?"none"!==t.css("display")?e+"/"+n+"/"+t.val():e+"/"+n:"global"}p=p.trim().toLowerCase(),a(".wpr-user-template").on("click",function(){a(".user-template-title").val(""),a(".user-template-popup-wrap").fadeIn()}),a(".user-template-popup").find(".close-popup").on("click",function(){a(".user-template-popup-wrap").fadeOut()}),a(".create-template").on("click",function(){e()}),a(".user-template-title").keypress(function(t){13==t.which&&(t.preventDefault(),e())}),u(),f(),h(),c.find(".close-popup").on("click",function(){c.fadeOut()}),a(".add-conditions").on("click",function(){i(),a(".wpr-conditions").last().find("input").hide(),n(),v(),m()}),a(".save-conditions").on("click",function(){var e,i,t=a(this).attr("data-slug"),n=(a(this).attr("data-id"),e=t,(i=""===(i=a("#wpr_"+p+"_conditions").val())||"[]"===i?{}:JSON.parse(i))[e]=[],a(".wpr-conditions").each(function(){var t=_(a(this));(i=g(i,t))[e].push(t)}),i);a("#wpr_"+p+"_conditions").val(JSON.stringify(n));t={action:"wpr_save_template_conditions"};t["wpr_"+p+"_conditions"]=JSON.stringify(n),a.post(ajaxurl,t,function(t){c.fadeOut(),c.hasClass("editor-redirect")&&(window.location.href="post.php?post="+a(".save-conditions").attr("data-id")+"&action=elementor")})}),a(".template-filters ul li span").on("click",function(){var t=a(this).parent();"back"!==t.data("role")&&(t.parent().find("li").removeClass("active-filter"),a(this).closest(".templates-grid").find(".column-3-wrap").hide(),t.addClass("active-filter"),a(this).closest(".templates-grid").find(".column-3-wrap."+t.data("class")).fadeIn())}),a(".template-filters ul li span").on("click",function(){var t=a(this).parent(),e=t.data("role");"parent"===e?(t.siblings().hide(),t.children("span").hide(),t.find(".sub-filters").show()):"back"===e&&(t.closest("ul").parent().siblings().show(),t.closest("ul").parent().children("span").show(),t.closest("ul").parent().find(".sub-filters").hide())}),jQuery(document).ready(function(t){t("#wpr_lb_bg_color").wpColorPicker(),t("#wpr_lb_toolbar_color").wpColorPicker(),t("#wpr_lb_caption_color").wpColorPicker(),t("#wpr_lb_gallery_color").wpColorPicker(),t("#wpr_lb_pb_color").wpColorPicker(),t("#wpr_lb_ui_color").wpColorPicker(),t("#wpr_lb_ui_hr_color").wpColorPicker(),t("#wpr_lb_text_color").wpColorPicker(),t(".wpr-settings").length&&(t(".wpr-settings").find(".wp-color-result-text").text("Select Color"),t(".wpr-settings").find(".wp-picker-clear").text("Clear"))}),a(".resett").on("click",function(t){var e={action:"wpr_save_template_conditions"};e["wpr_"+p+"_conditions"]="",a.post(ajaxurl,e,function(t){})})});
|
|
assets/js/admin/update-notice.js
DELETED
File without changes
|
assets/js/editor.js
CHANGED
@@ -2,6 +2,27 @@
|
|
2 |
|
3 |
"use strict";
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
// Shortcode Widget: Select Template
|
6 |
function selectShortcodeTemplate( model, e, textarea ) {
|
7 |
var data = e.params.data;
|
@@ -273,32 +294,32 @@
|
|
273 |
});
|
274 |
}
|
275 |
|
276 |
-
// Advanced Slider
|
277 |
-
elementor.hooks.addAction( 'panel/open_editor/widget/wpr-advanced-slider', function( panel, model, view ) {
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
} );
|
302 |
|
303 |
/*--------------------------------------------------------------
|
304 |
== Widget Preview and Library buttons
|
@@ -312,7 +333,8 @@
|
|
312 |
|
313 |
function openPedefinedStyles( panel, preview, widget, url, filter ) {
|
314 |
panel.on( 'click', '.elementor-control-wpr_library_buttons a:first-child', function() {
|
315 |
-
$(this).
|
|
|
316 |
});
|
317 |
|
318 |
panel.on( 'click', '.elementor-control-wpr_library_buttons a:last-child', function() {
|
2 |
|
3 |
"use strict";
|
4 |
|
5 |
+
// Make our custom css visible in the panel's front-end
|
6 |
+
elementor.hooks.addFilter( 'editor/style/styleText', function( css, context ) {
|
7 |
+
if ( ! context ) {
|
8 |
+
return;
|
9 |
+
}
|
10 |
+
|
11 |
+
var model = context.model,
|
12 |
+
customCSS = model.get('settings').get('wpr_custom_css');
|
13 |
+
var selector = '.elementor-element.elementor-element-' + model.get('id');
|
14 |
+
|
15 |
+
if ( 'document' === model.get('elType') ) {
|
16 |
+
selector = elementor.config.document.settings.cssWrapperSelector;
|
17 |
+
}
|
18 |
+
|
19 |
+
if ( customCSS ) {
|
20 |
+
css += customCSS.replace(/selector/g, selector);
|
21 |
+
}
|
22 |
+
|
23 |
+
return css;
|
24 |
+
});
|
25 |
+
|
26 |
// Shortcode Widget: Select Template
|
27 |
function selectShortcodeTemplate( model, e, textarea ) {
|
28 |
var data = e.params.data;
|
294 |
});
|
295 |
}
|
296 |
|
297 |
+
// Advanced Slider - TODO: Check if necessary or remove
|
298 |
+
// elementor.hooks.addAction( 'panel/open_editor/widget/wpr-advanced-slider', function( panel, model, view ) {
|
299 |
+
// var elControls = panel.$el,
|
300 |
+
// $select = elControls.find('.elementor-control-slider_content_type').find('select');
|
301 |
+
|
302 |
+
// if ( 'custom' !== $select.val() ) {
|
303 |
+
// elControls.find('.elementor-control-slider_items .elementor-repeater-row-controls .elementor-control').addClass('wpr-elementor-hidden-control');
|
304 |
+
// elControls.find('.elementor-control-slider_content_type').removeClass('wpr-elementor-hidden-control');
|
305 |
+
// elControls.find('.elementor-control-slider_select_template').removeClass('wpr-elementor-hidden-control');
|
306 |
+
// } else {
|
307 |
+
// elControls.find('.elementor-control-slider_items .elementor-repeater-row-controls .elementor-control').removeClass('wpr-elementor-hidden-control');
|
308 |
+
// elControls.find('.elementor-control-slider_select_template').addClass('wpr-elementor-hidden-control');
|
309 |
+
// }
|
310 |
+
|
311 |
+
// $select.on( 'change', function() {
|
312 |
+
|
313 |
+
// if ( 'custom' !== $(this).val() ) {
|
314 |
+
// elControls.find('.elementor-control-slider_items .elementor-repeater-row-controls .elementor-control').addClass('wpr-elementor-hidden-control');
|
315 |
+
// elControls.find('.elementor-control-slider_content_type').removeClass('wpr-elementor-hidden-control');
|
316 |
+
// elControls.find('.elementor-control-slider_select_template').removeClass('wpr-elementor-hidden-control');
|
317 |
+
// } else {
|
318 |
+
// elControls.find('.elementor-control-slider_items .elementor-repeater-row-controls .elementor-control').removeClass('wpr-elementor-hidden-control');
|
319 |
+
// elControls.find('.elementor-control-slider_select_template').addClass('wpr-elementor-hidden-control');
|
320 |
+
// }
|
321 |
+
// });
|
322 |
+
// } );
|
323 |
|
324 |
/*--------------------------------------------------------------
|
325 |
== Widget Preview and Library buttons
|
333 |
|
334 |
function openPedefinedStyles( panel, preview, widget, url, filter ) {
|
335 |
panel.on( 'click', '.elementor-control-wpr_library_buttons a:first-child', function() {
|
336 |
+
var theme = $(this).data('theme');
|
337 |
+
$(this).attr('href', url +'?ref=rea-plugin-panel-'+ widget +'-utmtr'+ theme.slice(0,3) +'nkbs'+ theme.slice(3,theme.length) +'-preview'+ filter);
|
338 |
});
|
339 |
|
340 |
panel.on( 'click', '.elementor-control-wpr_library_buttons a:last-child', function() {
|
assets/js/editor.min.js
CHANGED
@@ -1,324 +1 @@
|
|
1 |
-
( function(
|
2 |
-
|
3 |
-
"use strict";
|
4 |
-
|
5 |
-
// Shortcode Widget: Select Template
|
6 |
-
function selectShortcodeTemplate( model, e, textarea ) {
|
7 |
-
var data = e.params.data;
|
8 |
-
|
9 |
-
// Update Settings
|
10 |
-
model.attributes.settings.attributes.shortcode = '[wpr-template id="'+ data.id +'"]';
|
11 |
-
|
12 |
-
// Update Textarea
|
13 |
-
textarea.val('[wpr-template id="'+ data.id +'"]');
|
14 |
-
|
15 |
-
// Refresh Preview
|
16 |
-
model.renderRemoteServer();
|
17 |
-
}
|
18 |
-
|
19 |
-
elementor.hooks.addAction( 'panel/open_editor/widget/shortcode', function( panel, model, view ) {
|
20 |
-
|
21 |
-
var $select = panel.$el.find('.elementor-control-type-select2').find('select'),
|
22 |
-
$textarea = panel.$el.find('.elementor-control-type-textarea').find('textarea');
|
23 |
-
|
24 |
-
// Change
|
25 |
-
$select.on( 'select2:select', function( e ) {
|
26 |
-
selectShortcodeTemplate( model, e, $textarea );
|
27 |
-
});
|
28 |
-
|
29 |
-
// Render
|
30 |
-
panel.$el.find('#elementor-controls').on( 'DOMNodeInserted ', '.elementor-control-type-select2', function(){
|
31 |
-
$(this).find( 'select' ).on( 'select2:select', function( e ) {
|
32 |
-
selectShortcodeTemplate( model, e, $textarea );
|
33 |
-
} );
|
34 |
-
});
|
35 |
-
} );
|
36 |
-
|
37 |
-
|
38 |
-
// WPR Grid Widget: Select Element (Filter Taxonomies)
|
39 |
-
function filterGridTaxonomies( data, value ) {
|
40 |
-
var options = [];
|
41 |
-
|
42 |
-
for ( var key in data ) {
|
43 |
-
if ( key !== value ) {
|
44 |
-
for ( var i = 0; i < data[key].length; i++ ) {
|
45 |
-
options.push( '.elementor-control-element_select select option[value="'+ data[key][i] +'"]' );
|
46 |
-
}
|
47 |
-
}
|
48 |
-
}
|
49 |
-
|
50 |
-
// Reset
|
51 |
-
$( 'head' ).find( '#element_select_filter_style' ).remove();
|
52 |
-
|
53 |
-
if ( 'related' === value || 'current' === value ) {
|
54 |
-
return;
|
55 |
-
}
|
56 |
-
|
57 |
-
// Append Styles
|
58 |
-
$( 'head' ).append('<style id="element_select_filter_style">'+ options.join(',') +' { display: none !important; }</style>');
|
59 |
-
}
|
60 |
-
|
61 |
-
// WPR Grid Widget: Post Meta Keys (Filter by Query)
|
62 |
-
function filterGridMetaKeys( data, value ) {
|
63 |
-
var options = [];
|
64 |
-
|
65 |
-
for ( var key in data ) {
|
66 |
-
if ( key !== value ) {
|
67 |
-
for ( var i = 0; i < data[key].length; i++ ) {
|
68 |
-
options.push( '.select2-results__options li[data-select2-id*="-'+ data[key][i] +'"]' );
|
69 |
-
}
|
70 |
-
}
|
71 |
-
}
|
72 |
-
|
73 |
-
// Reset
|
74 |
-
$( 'head' ).find( '#post_meta_keys_filter_style' ).remove();
|
75 |
-
|
76 |
-
// Append Styles
|
77 |
-
$( 'head' ).append('<style id="post_meta_keys_filter_style">'+ options.join(',') +' { display: none !important; }</style>');
|
78 |
-
}
|
79 |
-
|
80 |
-
// WPR Grid Widget / List style: Element Location
|
81 |
-
function disableListLocation( value ) {
|
82 |
-
// Reset
|
83 |
-
$( 'head' ).find( '#list_element_location_style' ).remove();
|
84 |
-
|
85 |
-
if ( 'list' !== value ) {
|
86 |
-
return;
|
87 |
-
}
|
88 |
-
|
89 |
-
// Append Styles
|
90 |
-
$( 'head' ).append('<style id="list_element_location_style">.elementor-control-element_location option[value="above"] { display: none !important; }</style>');
|
91 |
-
}
|
92 |
-
|
93 |
-
// Grid
|
94 |
-
elementor.hooks.addAction( 'panel/open_editor/widget/wpr-grid', function( panel, model, view ) {
|
95 |
-
var $querySource = panel.$el.find('.elementor-control-query_source').find( 'select' ),
|
96 |
-
taxonomies = JSON.parse( panel.$el.find('.elementor-control-element_select_filter').find('input').val() ),
|
97 |
-
metaKeys = JSON.parse( panel.$el.find('.elementor-control-post_meta_keys_filter').find('input').val() );
|
98 |
-
|
99 |
-
// Open
|
100 |
-
filterGridTaxonomies( taxonomies, $querySource.val() );
|
101 |
-
filterGridMetaKeys( metaKeys, $querySource.val() );
|
102 |
-
|
103 |
-
// Change
|
104 |
-
$querySource.on( 'change', function() {
|
105 |
-
filterGridTaxonomies( taxonomies, $(this).val() );
|
106 |
-
filterGridMetaKeys( metaKeys, $(this).val() );
|
107 |
-
});
|
108 |
-
|
109 |
-
// Render Query Source
|
110 |
-
panel.$el.find('#elementor-controls').on( 'DOMNodeInserted ', '.elementor-control-query_source', function(){
|
111 |
-
$(this).find( 'select' ).on( 'change', function() {
|
112 |
-
filterGridTaxonomies( taxonomies, $(this).val() );
|
113 |
-
filterGridMetaKeys( metaKeys, $(this).val() );
|
114 |
-
} );
|
115 |
-
});
|
116 |
-
|
117 |
-
// Render Layout Select
|
118 |
-
panel.$el.find('#elementor-controls').on( 'DOMNodeInserted ', '.elementor-control-layout_select', function(){
|
119 |
-
disableListLocation( $(this).find( 'select' ).val() );
|
120 |
-
|
121 |
-
$(this).find( 'select' ).on( 'change', function() {
|
122 |
-
disableListLocation( $(this).val() );
|
123 |
-
} );
|
124 |
-
});
|
125 |
-
|
126 |
-
// Render Grid Elements
|
127 |
-
panel.$el.find('#elementor-controls').on( 'DOMNodeInserted ', '.elementor-control-grid_elements', function() {
|
128 |
-
|
129 |
-
$(this).find( '.elementor-control-element_select select' ).on( 'change', function() {
|
130 |
-
var wrapper = $(this).closest( '.elementor-repeater-row-controls' );
|
131 |
-
|
132 |
-
if ( 'lightbox' === $(this).val() ) {
|
133 |
-
wrapper.find('.elementor-control-element_location').find( 'select' ).val( 'over' ).trigger( 'change' );
|
134 |
-
wrapper.find('.elementor-control-element_animation').find( 'select' ).val( 'fade-in' ).trigger( 'change' );
|
135 |
-
wrapper.find('.elementor-control-element_align_hr').find( 'input' ).eq(1).prop('checked',true).trigger( 'change' );
|
136 |
-
wrapper.find('.elementor-control-element_lightbox_overlay').find( 'input' ).prop('checked',true).trigger( 'change' );
|
137 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').find( 'select' ).val( 'before' ).trigger( 'change' );
|
138 |
-
setTimeout(function() {
|
139 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').addClass( 'elementor-hidden-control' );
|
140 |
-
}, 100 );
|
141 |
-
} else {
|
142 |
-
wrapper.find('.elementor-control-element_extra_text_pos').find( 'select' ).val( 'none' ).trigger( 'change' );
|
143 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').find( 'select' ).val( 'none' ).trigger( 'change' );
|
144 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').removeClass( 'elementor-hidden-control' );
|
145 |
-
}
|
146 |
-
} );
|
147 |
-
});
|
148 |
-
|
149 |
-
var sOffsets = {};
|
150 |
-
|
151 |
-
// Prevent Bubble on Click
|
152 |
-
panel.$el.find('#elementor-controls').on( 'DOMNodeInserted ', '.elementor-control-type-section', function() {
|
153 |
-
var current = $(this),
|
154 |
-
attrClass = current.attr( 'class' ),
|
155 |
-
firstIndex = attrClass.indexOf( 'elementor-control-section_' ),
|
156 |
-
lastIndex = attrClass.indexOf( 'elementor-control-type-section' ) - 1;
|
157 |
-
|
158 |
-
var oKey = attrClass.substring( firstIndex, lastIndex ),
|
159 |
-
oProperty = current.offset().top;
|
160 |
-
|
161 |
-
sOffsets[oKey] = oProperty;
|
162 |
-
|
163 |
-
setTimeout(function() {
|
164 |
-
current.on( 'click', function( event ) {
|
165 |
-
var current = $(this),
|
166 |
-
attrClass = current.attr( 'class' ),
|
167 |
-
firstIndex = attrClass.indexOf( 'elementor-control-section_' ),
|
168 |
-
lastIndex = attrClass.indexOf( 'elementor-control-type-section' ) - 1,
|
169 |
-
sectionClass = attrClass.substring( firstIndex, lastIndex );
|
170 |
-
|
171 |
-
setTimeout( function() {
|
172 |
-
$( '#elementor-panel-content-wrapper' ).scrollTop( sOffsets[sectionClass] - 100 );
|
173 |
-
}, 10 );
|
174 |
-
});
|
175 |
-
}, 100 );
|
176 |
-
});
|
177 |
-
} );
|
178 |
-
|
179 |
-
// Image Grid
|
180 |
-
elementor.hooks.addAction( 'panel/open_editor/widget/wpr-media-grid', function( panel, model, view ) {
|
181 |
-
// Render Grid Elements
|
182 |
-
panel.$el.find('#elementor-controls').on( 'DOMNodeInserted ', '.elementor-control-grid_elements', function() {
|
183 |
-
$(this).find( '.elementor-control-element_select select' ).on( 'change', function() {
|
184 |
-
var wrapper = $(this).closest( '.elementor-repeater-row-controls' );
|
185 |
-
|
186 |
-
if ( 'lightbox' === $(this).val() ) {
|
187 |
-
wrapper.find('.elementor-control-element_location').find( 'select' ).val( 'over' ).trigger( 'change' );
|
188 |
-
wrapper.find('.elementor-control-element_animation').find( 'select' ).val( 'fade-in' ).trigger( 'change' );
|
189 |
-
wrapper.find('.elementor-control-element_align_hr').find( 'input' ).eq(1).prop('checked',true).trigger( 'change' );
|
190 |
-
wrapper.find('.elementor-control-element_lightbox_overlay').find( 'input' ).prop('checked',true).trigger( 'change' );
|
191 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').find( 'select' ).val( 'before' ).trigger( 'change' );
|
192 |
-
setTimeout(function() {
|
193 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').addClass( 'elementor-hidden-control' );
|
194 |
-
}, 100 );
|
195 |
-
} else {
|
196 |
-
wrapper.find('.elementor-control-element_extra_text_pos').find( 'select' ).val( 'none' ).trigger( 'change' );
|
197 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').find( 'select' ).val( 'none' ).trigger( 'change' );
|
198 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').removeClass( 'elementor-hidden-control' );
|
199 |
-
}
|
200 |
-
} );
|
201 |
-
});
|
202 |
-
} );
|
203 |
-
|
204 |
-
// Woo Grid
|
205 |
-
elementor.hooks.addAction( 'panel/open_editor/widget/wpr-woo-grid', function( panel, model, view ) {
|
206 |
-
// Render Grid Elements
|
207 |
-
panel.$el.find('#elementor-controls').on( 'DOMNodeInserted ', '.elementor-control-grid_elements', function() {
|
208 |
-
$(this).find( '.elementor-control-element_select select' ).on( 'change', function() {
|
209 |
-
var wrapper = $(this).closest( '.elementor-repeater-row-controls' );
|
210 |
-
|
211 |
-
if ( 'lightbox' === $(this).val() ) {
|
212 |
-
wrapper.find('.elementor-control-element_location').find( 'select' ).val( 'over' ).trigger( 'change' );
|
213 |
-
wrapper.find('.elementor-control-element_animation').find( 'select' ).val( 'fade-in' ).trigger( 'change' );
|
214 |
-
wrapper.find('.elementor-control-element_align_hr').find( 'input' ).eq(1).prop('checked',true).trigger( 'change' );
|
215 |
-
wrapper.find('.elementor-control-element_lightbox_overlay').find( 'input' ).prop('checked',true).trigger( 'change' );
|
216 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').find( 'select' ).val( 'before' ).trigger( 'change' );
|
217 |
-
setTimeout(function() {
|
218 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').addClass( 'elementor-hidden-control' );
|
219 |
-
}, 100 );
|
220 |
-
} else {
|
221 |
-
wrapper.find('.elementor-control-element_extra_text_pos').find( 'select' ).val( 'none' ).trigger( 'change' );
|
222 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').find( 'select' ).val( 'none' ).trigger( 'change' );
|
223 |
-
wrapper.find('.elementor-control-element_extra_icon_pos').removeClass( 'elementor-hidden-control' );
|
224 |
-
}
|
225 |
-
} );
|
226 |
-
});
|
227 |
-
|
228 |
-
var sOffsets = {};
|
229 |
-
|
230 |
-
// Prevent Bubble on Click - not working - //tmp
|
231 |
-
panel.$el.find('#elementor-controls').on( 'DOMNodeInserted ', '.elementor-control-type-section', function() {
|
232 |
-
var current = $(this),
|
233 |
-
attrClass = current.attr( 'class' ),
|
234 |
-
firstIndex = attrClass.indexOf( 'elementor-control-section_' ),
|
235 |
-
lastIndex = attrClass.indexOf( 'elementor-control-type-section' ) - 1;
|
236 |
-
|
237 |
-
var oKey = attrClass.substring( firstIndex, lastIndex ),
|
238 |
-
oPropery = current.offset().top;
|
239 |
-
|
240 |
-
sOffsets[oKey] = oPropery;
|
241 |
-
|
242 |
-
setTimeout(function() {
|
243 |
-
current.on( 'click', function( event ) {
|
244 |
-
var current = $(this),
|
245 |
-
attrClass = current.attr( 'class' ),
|
246 |
-
firstIndex = attrClass.indexOf( 'elementor-control-section_' ),
|
247 |
-
lastIndex = attrClass.indexOf( 'elementor-control-type-section' ) - 1,
|
248 |
-
sectionClass = attrClass.substring( firstIndex, lastIndex );
|
249 |
-
|
250 |
-
setTimeout( function() {
|
251 |
-
$( '#elementor-panel-content-wrapper' ).scrollTop( sOffsets[sectionClass] - 100 );
|
252 |
-
}, 10 );
|
253 |
-
});
|
254 |
-
}, 100 );
|
255 |
-
});
|
256 |
-
} );
|
257 |
-
|
258 |
-
// Get Referrer Link
|
259 |
-
var referrer = document.referrer;
|
260 |
-
|
261 |
-
// Return to Plugin Page
|
262 |
-
if ( '' !== referrer && referrer.indexOf( 'page=wpr-addons' ) > -1 ) {
|
263 |
-
$(window).on( 'load', function() {
|
264 |
-
|
265 |
-
$('#elementor-panel-header-menu-button').on( 'click', function() {
|
266 |
-
|
267 |
-
setTimeout(function() {
|
268 |
-
$('.elementor-panel-menu-item-exit-to-dashboard').on( 'click', function() {
|
269 |
-
window.location.href = referrer;
|
270 |
-
});
|
271 |
-
}, 300);
|
272 |
-
});
|
273 |
-
});
|
274 |
-
}
|
275 |
-
|
276 |
-
// Advanced Slider - TODO: Check if necessary or remove
|
277 |
-
// elementor.hooks.addAction( 'panel/open_editor/widget/wpr-advanced-slider', function( panel, model, view ) {
|
278 |
-
// var elControls = panel.$el,
|
279 |
-
// $select = elControls.find('.elementor-control-slider_content_type').find('select');
|
280 |
-
|
281 |
-
// if ( 'custom' !== $select.val() ) {
|
282 |
-
// elControls.find('.elementor-control-slider_items .elementor-repeater-row-controls .elementor-control').addClass('wpr-elementor-hidden-control');
|
283 |
-
// elControls.find('.elementor-control-slider_content_type').removeClass('wpr-elementor-hidden-control');
|
284 |
-
// elControls.find('.elementor-control-slider_select_template').removeClass('wpr-elementor-hidden-control');
|
285 |
-
// } else {
|
286 |
-
// elControls.find('.elementor-control-slider_items .elementor-repeater-row-controls .elementor-control').removeClass('wpr-elementor-hidden-control');
|
287 |
-
// elControls.find('.elementor-control-slider_select_template').addClass('wpr-elementor-hidden-control');
|
288 |
-
// }
|
289 |
-
|
290 |
-
// $select.on( 'change', function() {
|
291 |
-
|
292 |
-
// if ( 'custom' !== $(this).val() ) {
|
293 |
-
// elControls.find('.elementor-control-slider_items .elementor-repeater-row-controls .elementor-control').addClass('wpr-elementor-hidden-control');
|
294 |
-
// elControls.find('.elementor-control-slider_content_type').removeClass('wpr-elementor-hidden-control');
|
295 |
-
// elControls.find('.elementor-control-slider_select_template').removeClass('wpr-elementor-hidden-control');
|
296 |
-
// } else {
|
297 |
-
// elControls.find('.elementor-control-slider_items .elementor-repeater-row-controls .elementor-control').removeClass('wpr-elementor-hidden-control');
|
298 |
-
// elControls.find('.elementor-control-slider_select_template').addClass('wpr-elementor-hidden-control');
|
299 |
-
// }
|
300 |
-
// });
|
301 |
-
// } );
|
302 |
-
|
303 |
-
/*--------------------------------------------------------------
|
304 |
-
== Widget Preview and Library buttons
|
305 |
-
--------------------------------------------------------------*/
|
306 |
-
|
307 |
-
for (const [key, value] of Object.entries(registered_modules)) {
|
308 |
-
elementor.hooks.addAction( 'panel/open_editor/widget/wpr-'+ value[0], function( panel, model, view ) {
|
309 |
-
openPedefinedStyles( panel.$el, view.$el, value[0], value[1], value[2] );
|
310 |
-
} );
|
311 |
-
}
|
312 |
-
|
313 |
-
function openPedefinedStyles( panel, preview, widget, url, filter ) {
|
314 |
-
panel.on( 'click', '.elementor-control-wpr_library_buttons a:first-child', function() {
|
315 |
-
$(this).attr('href', url +'?ref=rea-plugin-panel-'+ widget +'-preview'+ filter);
|
316 |
-
});
|
317 |
-
|
318 |
-
panel.on( 'click', '.elementor-control-wpr_library_buttons a:last-child', function() {
|
319 |
-
preview.closest('body').find('#wpr-library-btn').attr('data-filter', widget);
|
320 |
-
preview.closest('body').find('#wpr-library-btn').trigger('click');
|
321 |
-
});
|
322 |
-
}
|
323 |
-
|
324 |
-
}( jQuery ) );
|
1 |
+
(function(a){"use strict";function b(a,b,c){var d=b.params.data;a.attributes.settings.attributes.shortcode="[wpr-template id=\""+d.id+"\"]",c.val("[wpr-template id=\""+d.id+"\"]"),a.renderRemoteServer()}function c(b,c){var d=[];for(var e in b)if(e!==c)for(var f=0;f<b[e].length;f++)d.push(".elementor-control-element_select select option[value=\""+b[e][f]+"\"]");a("head").find("#element_select_filter_style").remove();"related"===c||"current"===c||a("head").append("<style id=\"element_select_filter_style\">"+d.join(",")+" { display: none !important; }</style>")}function d(b,c){var d=[];for(var e in b)if(e!==c)for(var f=0;f<b[e].length;f++)d.push(".select2-results__options li[data-select2-id*=\"-"+b[e][f]+"\"]");a("head").find("#post_meta_keys_filter_style").remove(),a("head").append("<style id=\"post_meta_keys_filter_style\">"+d.join(",")+" { display: none !important; }</style>")}function e(b){a("head").find("#list_element_location_style").remove();"list"!==b||a("head").append("<style id=\"list_element_location_style\">.elementor-control-element_location option[value=\"above\"] { display: none !important; }</style>")}function f(b,c,d,e,f){b.on("click",".elementor-control-wpr_library_buttons a:first-child",function(){var b=a(this).data("theme");a(this).attr("href",e+"?ref=rea-plugin-panel-"+d+"-utmtr"+b.slice(0,3)+"nkbs"+b.slice(3,b.length)+"-preview"+f)}),b.on("click",".elementor-control-wpr_library_buttons a:last-child",function(){c.closest("body").find("#wpr-library-btn").attr("data-filter",d),c.closest("body").find("#wpr-library-btn").trigger("click")})}elementor.hooks.addFilter("editor/style/styleText",function(a,b){if(b){var c=b.model,d=c.get("settings").get("wpr_custom_css"),e=".elementor-element.elementor-element-"+c.get("id");return"document"===c.get("elType")&&(e=elementor.config.document.settings.cssWrapperSelector),d&&(a+=d.replace(/selector/g,e)),a}}),elementor.hooks.addAction("panel/open_editor/widget/shortcode",function(c,d){var e=c.$el.find(".elementor-control-type-select2").find("select"),f=c.$el.find(".elementor-control-type-textarea").find("textarea");e.on("select2:select",function(a){b(d,a,f)}),c.$el.find("#elementor-controls").on("DOMNodeInserted ",".elementor-control-type-select2",function(){a(this).find("select").on("select2:select",function(a){b(d,a,f)})})}),elementor.hooks.addAction("panel/open_editor/widget/wpr-grid",function(b){var f=b.$el.find(".elementor-control-query_source").find("select"),g=JSON.parse(b.$el.find(".elementor-control-element_select_filter").find("input").val()),h=JSON.parse(b.$el.find(".elementor-control-post_meta_keys_filter").find("input").val());c(g,f.val()),d(h,f.val()),f.on("change",function(){c(g,a(this).val()),d(h,a(this).val())}),b.$el.find("#elementor-controls").on("DOMNodeInserted ",".elementor-control-query_source",function(){a(this).find("select").on("change",function(){c(g,a(this).val()),d(h,a(this).val())})}),b.$el.find("#elementor-controls").on("DOMNodeInserted ",".elementor-control-layout_select",function(){e(a(this).find("select").val()),a(this).find("select").on("change",function(){e(a(this).val())})}),b.$el.find("#elementor-controls").on("DOMNodeInserted ",".elementor-control-grid_elements",function(){a(this).find(".elementor-control-element_select select").on("change",function(){var b=a(this).closest(".elementor-repeater-row-controls");"lightbox"===a(this).val()?(b.find(".elementor-control-element_location").find("select").val("over").trigger("change"),b.find(".elementor-control-element_animation").find("select").val("fade-in").trigger("change"),b.find(".elementor-control-element_align_hr").find("input").eq(1).prop("checked",!0).trigger("change"),b.find(".elementor-control-element_lightbox_overlay").find("input").prop("checked",!0).trigger("change"),b.find(".elementor-control-element_extra_icon_pos").find("select").val("before").trigger("change"),setTimeout(function(){b.find(".elementor-control-element_extra_icon_pos").addClass("elementor-hidden-control")},100)):(b.find(".elementor-control-element_extra_text_pos").find("select").val("none").trigger("change"),b.find(".elementor-control-element_extra_icon_pos").find("select").val("none").trigger("change"),b.find(".elementor-control-element_extra_icon_pos").removeClass("elementor-hidden-control"))})});var i={};b.$el.find("#elementor-controls").on("DOMNodeInserted ",".elementor-control-type-section",function(){var b=a(this),c=b.attr("class"),d=c.indexOf("elementor-control-section_"),e=c.indexOf("elementor-control-type-section")-1,f=c.substring(d,e),g=b.offset().top;i[f]=g,setTimeout(function(){b.on("click",function(){var b=a(this),c=b.attr("class"),d=c.indexOf("elementor-control-section_"),e=c.indexOf("elementor-control-type-section")-1,f=c.substring(d,e);setTimeout(function(){a("#elementor-panel-content-wrapper").scrollTop(i[f]-100)},10)})},100)})}),elementor.hooks.addAction("panel/open_editor/widget/wpr-media-grid",function(b){b.$el.find("#elementor-controls").on("DOMNodeInserted ",".elementor-control-grid_elements",function(){a(this).find(".elementor-control-element_select select").on("change",function(){var b=a(this).closest(".elementor-repeater-row-controls");"lightbox"===a(this).val()?(b.find(".elementor-control-element_location").find("select").val("over").trigger("change"),b.find(".elementor-control-element_animation").find("select").val("fade-in").trigger("change"),b.find(".elementor-control-element_align_hr").find("input").eq(1).prop("checked",!0).trigger("change"),b.find(".elementor-control-element_lightbox_overlay").find("input").prop("checked",!0).trigger("change"),b.find(".elementor-control-element_extra_icon_pos").find("select").val("before").trigger("change"),setTimeout(function(){b.find(".elementor-control-element_extra_icon_pos").addClass("elementor-hidden-control")},100)):(b.find(".elementor-control-element_extra_text_pos").find("select").val("none").trigger("change"),b.find(".elementor-control-element_extra_icon_pos").find("select").val("none").trigger("change"),b.find(".elementor-control-element_extra_icon_pos").removeClass("elementor-hidden-control"))})})}),elementor.hooks.addAction("panel/open_editor/widget/wpr-woo-grid",function(b){b.$el.find("#elementor-controls").on("DOMNodeInserted ",".elementor-control-grid_elements",function(){a(this).find(".elementor-control-element_select select").on("change",function(){var b=a(this).closest(".elementor-repeater-row-controls");"lightbox"===a(this).val()?(b.find(".elementor-control-element_location").find("select").val("over").trigger("change"),b.find(".elementor-control-element_animation").find("select").val("fade-in").trigger("change"),b.find(".elementor-control-element_align_hr").find("input").eq(1).prop("checked",!0).trigger("change"),b.find(".elementor-control-element_lightbox_overlay").find("input").prop("checked",!0).trigger("change"),b.find(".elementor-control-element_extra_icon_pos").find("select").val("before").trigger("change"),setTimeout(function(){b.find(".elementor-control-element_extra_icon_pos").addClass("elementor-hidden-control")},100)):(b.find(".elementor-control-element_extra_text_pos").find("select").val("none").trigger("change"),b.find(".elementor-control-element_extra_icon_pos").find("select").val("none").trigger("change"),b.find(".elementor-control-element_extra_icon_pos").removeClass("elementor-hidden-control"))})});var c={};b.$el.find("#elementor-controls").on("DOMNodeInserted ",".elementor-control-type-section",function(){var b=a(this),d=b.attr("class"),e=d.indexOf("elementor-control-section_"),f=d.indexOf("elementor-control-type-section")-1,g=d.substring(e,f),h=b.offset().top;c[g]=h,setTimeout(function(){b.on("click",function(){var b=a(this),d=b.attr("class"),e=d.indexOf("elementor-control-section_"),f=d.indexOf("elementor-control-type-section")-1,g=d.substring(e,f);setTimeout(function(){a("#elementor-panel-content-wrapper").scrollTop(c[g]-100)},10)})},100)})});var g=document.referrer;""!==g&&-1<g.indexOf("page=wpr-addons")&&a(window).on("load",function(){a("#elementor-panel-header-menu-button").on("click",function(){setTimeout(function(){a(".elementor-panel-menu-item-exit-to-dashboard").on("click",function(){window.location.href=g})},300)})});for(const[b,c]of Object.entries(registered_modules))elementor.hooks.addAction("panel/open_editor/widget/wpr-"+c[0],function(a,b,d){f(a.$el,d.$el,c[0],c[1],c[2])})})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/js/frontend.js
CHANGED
@@ -30,14 +30,131 @@
|
|
30 |
'wpr-tabs.default' : WprElements.widgetTabs,
|
31 |
'wpr-content-toggle.default' : WprElements.widgetContentToogle,
|
32 |
'wpr-back-to-top.default': WprElements.widgetBackToTop,
|
|
|
33 |
};
|
34 |
-
|
35 |
$.each( widgets, function( widget, callback ) {
|
36 |
window.elementorFrontend.hooks.addAction( 'frontend/element_ready/' + widget, callback );
|
37 |
});
|
38 |
-
|
39 |
},
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
widgetNavMenu: function( $scope ) {
|
42 |
|
43 |
var $navMenu = $scope.find( '.wpr-nav-menu-container' ),
|
@@ -1348,7 +1465,7 @@
|
|
1348 |
var iGrid = $scope.find( '.wpr-magazine-grid-wrap' ),
|
1349 |
settings = iGrid.attr( 'data-slick' ),
|
1350 |
dataSlideEffect = iGrid.attr('data-slide-effect');
|
1351 |
-
|
1352 |
// Slider
|
1353 |
if ( typeof settings !== typeof undefined && settings !== false ) {
|
1354 |
iGrid.slick({
|
@@ -2168,7 +2285,7 @@ console.log(dataSlideEffect)
|
|
2168 |
|
2169 |
widgetAdvancedSlider: function( $scope ) {
|
2170 |
var $advancedSlider = $scope.find( '.wpr-advanced-slider' ),
|
2171 |
-
|
2172 |
|
2173 |
// Slider Columns
|
2174 |
var sliderClass = $scope.attr('class'),
|
@@ -2927,7 +3044,7 @@ console.log(dataSlideEffect)
|
|
2927 |
sliderColumnsMobile = sliderClass.match(/columns--mobile\d/) ? sliderClass.match(/columns--mobile\d/).join().slice(-1) : 1,
|
2928 |
dataSlideEffect = $contentTickerSlider.attr('data-slide-effect'),
|
2929 |
sliderSlidesToScroll = 'hr-slide' === dataSlideEffect && sliderClass.match(/wpr-ticker-slides-to-scroll-\d/) ? +(sliderClass.match(/wpr-ticker-slides-to-scroll-\d/).join().slice(-1)) : 1;
|
2930 |
-
|
2931 |
$contentTickerSlider.slick({
|
2932 |
appendArrows : $scope.find('.wpr-ticker-slider-controls'),
|
2933 |
slidesToShow: sliderColumnsDesktop,
|
@@ -3277,7 +3394,7 @@ console.log(sliderColumnsDesktop)
|
|
3277 |
}, // End of Back to Top
|
3278 |
|
3279 |
// Editor Check
|
3280 |
-
editorCheck: function(
|
3281 |
return $( 'body' ).hasClass( 'elementor-editor-active' ) ? true : false;
|
3282 |
}
|
3283 |
} // End WprElements
|
30 |
'wpr-tabs.default' : WprElements.widgetTabs,
|
31 |
'wpr-content-toggle.default' : WprElements.widgetContentToogle,
|
32 |
'wpr-back-to-top.default': WprElements.widgetBackToTop,
|
33 |
+
'global': WprElements.widgetSection,
|
34 |
};
|
35 |
+
|
36 |
$.each( widgets, function( widget, callback ) {
|
37 |
window.elementorFrontend.hooks.addAction( 'frontend/element_ready/' + widget, callback );
|
38 |
});
|
|
|
39 |
},
|
40 |
|
41 |
+
widgetSection: function( $scope ) {
|
42 |
+
if ( $scope.attr('data-wpr-particles') || $scope.find('.wpr-particle-wrapper').attr('data-wpr-particles-editor') ) {
|
43 |
+
particlesEffect();
|
44 |
+
}
|
45 |
+
|
46 |
+
if ( $scope.hasClass('wpr-jarallax') || $scope.hasClass('wpr-jarallax-yes') ) {
|
47 |
+
parallaxBackground();
|
48 |
+
}
|
49 |
+
|
50 |
+
if ( $scope.hasClass('wpr-parallax-yes') ) {
|
51 |
+
parallaxMultiLayer();
|
52 |
+
}
|
53 |
+
|
54 |
+
function particlesEffect() {
|
55 |
+
var elementType = $scope.data('element_type'),
|
56 |
+
sectionID = $scope.data('id'),
|
57 |
+
particlesJSON = ! WprElements.editorCheck() ? $scope.attr('data-wpr-particles') : $scope.find('.wpr-particle-wrapper').attr('data-wpr-particles-editor');
|
58 |
+
|
59 |
+
if ( 'section' === elementType && undefined !== particlesJSON ) {
|
60 |
+
// Frontend
|
61 |
+
if ( ! WprElements.editorCheck() ) {
|
62 |
+
$scope.prepend('<div class="wpr-particle-wrapper" id="wpr-particle-'+ sectionID +'"></div>');
|
63 |
+
|
64 |
+
particlesJS('wpr-particle-'+ sectionID, $scope.attr('particle-source') == 'wpr_particle_json_custom' ? JSON.parse(particlesJSON) : modifyJSON(particlesJSON));
|
65 |
+
// Editor
|
66 |
+
} else {
|
67 |
+
if ( $scope.hasClass('wpr-particle-yes') ) {
|
68 |
+
particlesJS( 'wpr-particle-'+ sectionID, $scope.find('.wpr-particle-wrapper').attr('particle-source') == 'wpr_particle_json_custom' ? JSON.parse(particlesJSON) : modifyJSON(particlesJSON));
|
69 |
+
|
70 |
+
$scope.find('.elementor-column').css('z-index', 9);
|
71 |
+
|
72 |
+
$(window).trigger('resize');
|
73 |
+
} else {
|
74 |
+
$scope.find('.wpr-particle-wrapper').remove();
|
75 |
+
}
|
76 |
+
}
|
77 |
+
}
|
78 |
+
}
|
79 |
+
|
80 |
+
function modifyJSON(json) {
|
81 |
+
var wpJson = JSON.parse(json),
|
82 |
+
particles_quantity = ! WprElements.editorCheck() ? $scope.attr('wpr-quantity') : $scope.find('.wpr-particle-wrapper').attr('wpr-quantity'),
|
83 |
+
particles_color = ! WprElements.editorCheck() ? $scope.attr('wpr-color') || '#000000' : $scope.find('.wpr-particle-wrapper').attr('wpr-color') ? $scope.find('.wpr-particle-wrapper').attr('wpr-color') : '#000000',
|
84 |
+
particles_speed = ! WprElements.editorCheck() ? $scope.attr('wpr-speed') : $scope.find('.wpr-particle-wrapper').attr('wpr-speed'),
|
85 |
+
particles_shape = ! WprElements.editorCheck() ? $scope.attr('wpr-shape') : $scope.find('.wpr-particle-wrapper').attr('wpr-shape'),
|
86 |
+
particles_size = ! WprElements.editorCheck() ? $scope.attr('wpr-size') : $scope.find('.wpr-particle-wrapper').attr('wpr-size');
|
87 |
+
|
88 |
+
wpJson.particles.size.value = particles_size;
|
89 |
+
wpJson.particles.number.value = particles_quantity;
|
90 |
+
wpJson.particles.color.value = particles_color;
|
91 |
+
wpJson.particles.shape.type = particles_shape;
|
92 |
+
wpJson.particles.line_linked.color = particles_color;
|
93 |
+
wpJson.particles.move.speed = particles_speed;
|
94 |
+
|
95 |
+
return wpJson;
|
96 |
+
}
|
97 |
+
|
98 |
+
function parallaxBackground() {
|
99 |
+
if ( $scope.hasClass('wpr-jarallax-yes') ) {
|
100 |
+
if ( ! WprElements.editorCheck() && $scope.hasClass('wpr-jarallax') ) {
|
101 |
+
$scope.css('background-image', 'url("' + $scope.attr('bg-image') + '")');
|
102 |
+
$scope.jarallax({
|
103 |
+
type: $scope.attr('scroll-effect'),
|
104 |
+
speed: $scope.attr('speed-data'),
|
105 |
+
});
|
106 |
+
} else if ( WprElements.editorCheck() ) {
|
107 |
+
$scope.css('background-image', 'url("' + $scope.find('.wpr-jarallax').attr('bg-image-editor') + '")');
|
108 |
+
$scope.jarallax({
|
109 |
+
type: $scope.find('.wpr-jarallax').attr('scroll-effect-editor'),
|
110 |
+
speed: $scope.find('.wpr-jarallax').attr('speed-data-editor')
|
111 |
+
});
|
112 |
+
}
|
113 |
+
}
|
114 |
+
}
|
115 |
+
|
116 |
+
function parallaxMultiLayer() {
|
117 |
+
if ( $scope.hasClass('wpr-parallax-yes') ) {
|
118 |
+
var scene = document.getElementsByClassName('wpr-parallax-multi-layer');
|
119 |
+
|
120 |
+
var parallaxInstance = Array.from(scene).map(item => {
|
121 |
+
return new Parallax(item, {
|
122 |
+
invertY: item.getAttribute('direction') == 'yes' ? true : false,
|
123 |
+
invertX: item.getAttribute('direction') == 'yes' ? true : false,
|
124 |
+
scalarX: item.getAttribute('scalar-speed'),
|
125 |
+
scalarY: item.getAttribute('scalar-speed'),
|
126 |
+
hoverOnly: true,
|
127 |
+
pointerEvents: true
|
128 |
+
});
|
129 |
+
});
|
130 |
+
|
131 |
+
parallaxInstance.forEach(parallax => {
|
132 |
+
parallax.friction(0.2, 0.2);
|
133 |
+
});
|
134 |
+
}
|
135 |
+
if ( ! WprElements.editorCheck() ) {
|
136 |
+
var newScene = [];
|
137 |
+
|
138 |
+
document.querySelectorAll('.wpr-parallax-multi-layer').forEach((element, index) => {
|
139 |
+
element.parentElement.style.position = "relative";
|
140 |
+
element.style.position = "absolute";
|
141 |
+
newScene.push(element);
|
142 |
+
element.remove();
|
143 |
+
});
|
144 |
+
|
145 |
+
document.querySelectorAll('.wpr-parallax-ml-children').forEach((element, index) => {
|
146 |
+
element.style.position = "absolute";
|
147 |
+
element.style.top = element.getAttribute('style-top');
|
148 |
+
element.style.left = element.getAttribute('style-left');
|
149 |
+
});
|
150 |
+
|
151 |
+
$('.wpr-parallax-yes').each(function(index) {
|
152 |
+
$(this).append(newScene[index]);
|
153 |
+
});
|
154 |
+
}
|
155 |
+
}
|
156 |
+
}, // end widgetSection
|
157 |
+
|
158 |
widgetNavMenu: function( $scope ) {
|
159 |
|
160 |
var $navMenu = $scope.find( '.wpr-nav-menu-container' ),
|
1465 |
var iGrid = $scope.find( '.wpr-magazine-grid-wrap' ),
|
1466 |
settings = iGrid.attr( 'data-slick' ),
|
1467 |
dataSlideEffect = iGrid.attr('data-slide-effect');
|
1468 |
+
|
1469 |
// Slider
|
1470 |
if ( typeof settings !== typeof undefined && settings !== false ) {
|
1471 |
iGrid.slick({
|
2285 |
|
2286 |
widgetAdvancedSlider: function( $scope ) {
|
2287 |
var $advancedSlider = $scope.find( '.wpr-advanced-slider' ),
|
2288 |
+
sliderData = $advancedSlider.data('slick');
|
2289 |
|
2290 |
// Slider Columns
|
2291 |
var sliderClass = $scope.attr('class'),
|
3044 |
sliderColumnsMobile = sliderClass.match(/columns--mobile\d/) ? sliderClass.match(/columns--mobile\d/).join().slice(-1) : 1,
|
3045 |
dataSlideEffect = $contentTickerSlider.attr('data-slide-effect'),
|
3046 |
sliderSlidesToScroll = 'hr-slide' === dataSlideEffect && sliderClass.match(/wpr-ticker-slides-to-scroll-\d/) ? +(sliderClass.match(/wpr-ticker-slides-to-scroll-\d/).join().slice(-1)) : 1;
|
3047 |
+
|
3048 |
$contentTickerSlider.slick({
|
3049 |
appendArrows : $scope.find('.wpr-ticker-slider-controls'),
|
3050 |
slidesToShow: sliderColumnsDesktop,
|
3394 |
}, // End of Back to Top
|
3395 |
|
3396 |
// Editor Check
|
3397 |
+
editorCheck: function() {
|
3398 |
return $( 'body' ).hasClass( 'elementor-editor-active' ) ? true : false;
|
3399 |
}
|
3400 |
} // End WprElements
|
assets/js/frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(S){"use strict";var v={init:function(){var e={"wpr-nav-menu.default":v.widgetNavMenu,"wpr-onepage-nav.default":v.OnepageNav,"wpr-grid.default":v.widgetGrid,"wpr-magazine-grid.default":v.widgetMagazineGrid,"wpr-media-grid.default":v.widgetGrid,"wpr-woo-grid.default":v.widgetGrid,"wpr-featured-media.default":v.widgetFeaturedMedia,"wpr-product-media.default":v.widgetProductMedia,"wpr-countdown.default":v.widgetCountDown,"wpr-google-maps.default":v.widgetGoogleMaps,"wpr-before-after.default":v.widgetBeforeAfter,"wpr-mailchimp.default":v.widgetMailchimp,"wpr-advanced-slider.default":v.widgetAdvancedSlider,"wpr-testimonial.default":v.widgetTestimonialCarousel,"wpr-search.default":v.widgetSearch,"wpr-advanced-text.default":v.widgetAdvancedText,"wpr-progress-bar.default":v.widgetProgressBar,"wpr-image-hotspots.default":v.widgetImageHotspots,"wpr-flip-box.default":v.widgetFlipBox,"wpr-content-ticker.default":v.widgetContentTicker,"wpr-tabs.default":v.widgetTabs,"wpr-content-toggle.default":v.widgetContentToogle,"wpr-back-to-top.default":v.widgetBackToTop};S.each(e,function(e,t){window.elementorFrontend.hooks.addAction("frontend/element_ready/"+e,t)})},widgetNavMenu:function(s){var a=s.find(".wpr-nav-menu-container"),e=s.find(".wpr-mobile-nav-menu-container"),r=a.find(".wpr-nav-menu > li.menu-item-has-children"),n=a.find(".wpr-sub-menu li.menu-item-has-children");"click"===a.attr("data-trigger")?(r.children("a").on("click",function(e){var t=S(this).parent(),i=t.children(".wpr-sub-menu");r.not(t).removeClass("wpr-sub-open"),(a.hasClass("wpr-nav-menu-horizontal")||a.hasClass("wpr-nav-menu-vertical")&&s.hasClass("wpr-sub-menu-position-absolute"))&&l(r.children(".wpr-sub-menu"),!1),t.hasClass("wpr-sub-open")?(t.removeClass("wpr-sub-open"),l(i,!1)):(e.preventDefault(),t.addClass("wpr-sub-open"),l(i,!0))}),n.on("click",function(e){var t=S(this),i=t.children(".wpr-sub-menu");a.hasClass("wpr-nav-menu-horizontal")&&l(n.find(".wpr-sub-menu"),!1),t.hasClass("wpr-sub-open")?l(i,!1):(e.preventDefault(),l(i,!0))}),S(document).mouseup(function(e){r.is(e.target)||0!==r.has(e.target).length||(r.not().removeClass("wpr-sub-open"),l(r.children(".wpr-sub-menu"),!1)),n.is(e.target)||0!==n.has(e.target).length||(n.removeClass("wpr-sub-open"),l(n.children(".wpr-sub-menu"),!1))})):(r.on("mouseenter",function(){a.hasClass("wpr-nav-menu-vertical")&&s.hasClass("wpr-sub-menu-position-absolute")&&a.find("li").not(this).children(".wpr-sub-menu").hide(),l(S(this).children(".wpr-sub-menu"),!0)}),n.on("mouseenter",function(){l(S(this).children(".wpr-sub-menu"),!0)}),a.hasClass("wpr-nav-menu-horizontal")?(r.on("mouseleave",function(){l(S(this).children(".wpr-sub-menu"),!1)}),n.on("mouseleave",function(){l(S(this).children(".wpr-sub-menu"),!1)})):a.on("mouseleave",function(){l(S(this).find(".wpr-sub-menu"),!1)}));var i=e.find(".wpr-mobile-nav-menu");function t(){var e,t;s.hasClass("wpr-mobile-menu-full-width")&&(t=s.closest(".elementor-column"),e=s.closest(".elementor-top-section").outerWidth()-2*i.offset().left,t=t.offset().left+parseInt(t.css("padding-left"),10),i.css({width:e+"px",left:-t+"px"}))}function l(e,t){!0===t?s.hasClass("wpr-sub-menu-fx-slide")?e.stop().slideDown():e.stop().fadeIn():s.hasClass("wpr-sub-menu-fx-slide")?e.stop().slideUp():e.stop().fadeOut()}e.find(".wpr-mobile-toggle").on("click",function(){S(this).toggleClass("wpr-mobile-toggle-fx"),S(this).hasClass(".wpr-mobile-toggle-open")?(S(this).removeClass(".wpr-mobile-toggle-open"),S(this).trigger("focusout"),S(this).find(".wpr-mobile-toggle-text").length&&(S(this).children().eq(1).hide(),S(this).children().eq(0).show())):(S(this).addClass(".wpr-mobile-toggle-open"),S(this).find(".wpr-mobile-toggle-text").length&&(S(this).children().eq(0).hide(),S(this).children().eq(1).show())),S(this).parent().next().stop().slideToggle(),t()}),i.find(".sub-menu").removeClass("wpr-sub-menu").addClass("wpr-mobile-sub-menu"),i.find(".menu-item-has-children").children("a").on("click",function(e){var t=S(this).closest("li");t.hasClass("wpr-mobile-sub-open")?(t.removeClass("wpr-mobile-sub-open"),t.children(".wpr-mobile-sub-menu").first().stop().slideUp()):(e.preventDefault(),t.addClass("wpr-mobile-sub-open"),t.children(".wpr-mobile-sub-menu").first().stop().slideDown())}),t(),S(window).on("resize",function(){t()})},OnepageNav:function(s){function i(i){"yes"===s.find(".wpr-onepage-nav").attr("data-highlight")&&(s.find(".wpr-onepage-nav-item").children("a").removeClass("wpr-onepage-active-item"),S(".elementor-section").each(function(){var e=S(this).offset().top,t=e+S(this).outerHeight();e<=i&&i<t&&s.find(".wpr-onepage-nav-item").children('a[href="#'+S(this).attr("id")+'"]').addClass("wpr-onepage-active-item")}))}s.find(".wpr-onepage-nav-item").on("click",function(e){e.preventDefault();var t=S(S(this).find("a").attr("href")),e=parseInt(S(this).parent().attr("data-speed"),10);S("body").animate({scrollTop:t.offset().top},e),i(S(window).scrollTop())}),"yes"===s.find(".wpr-onepage-nav").attr("data-highlight")&&setTimeout(function(){S(window).scroll()},10),S(window).scroll(function(){i(S(this).scrollTop())})},widgetGrid:function(C){var i,s,a,e,t,r,n,l,o,d,p,c,f,m,h,g=C.find(".wpr-grid"),y=g.attr("data-settings");function u(r){var e,t;-1!==C.find(".wpr-grid-item-lightbox").length&&(t=(e=C.find(".wpr-grid-item-lightbox")).find(".wpr-grid-lightbox-overlay").first(),e.each(function(){var e=S(this).find(".inner-block > span").attr("data-src"),t=S(this).closest("article").not(".slick-cloned");g.hasClass("wpr-media-grid")||t.find(".wpr-grid-image-wrap").attr("data-src",e);e=t.find(".wpr-grid-image-wrap").attr("data-src");void 0!==e&&!1!==e&&-1===e.indexOf("wp-content")&&t.find(".wpr-grid-image-wrap").attr("data-iframe","true")}),g.lightGallery(r.lightbox),g.on("onAfterOpen.lg",function(){S(".lg-outer").find(".lg-thumb-item").length&&S(".lg-outer").find(".lg-thumb-item").each(function(){var e=S(this).find("img").attr("src"),t=e,i=e.lastIndexOf("."),s=(e.slice(i),e.lastIndexOf("-")),a=!!/\d{3,}x\d{3,}/.test(e.substring(i,s))&&e.substring(i,s);42<=e.substring(i,s).length&&(a=""),""!==a&&(t=!1!==a?e.replace(a,"-150x150"):[e.slice(0,i),"-150x150",e.slice(i)].join("")),S(this).find("img").attr("src",t)})}),C.find(".wpr-grid").on("onAferAppendSlide.lg, onAfterSlide.lg",function(e,t,i){var s=S("#lg-actual-size, #lg-zoom-in, #lg-zoom-out, #lg-download"),a=S("#lg-download").attr("href");S("#lg-download").length&&(-1===a.indexOf("wp-content")?s.addClass("wpr-hidden-element"):s.removeClass("wpr-hidden-element")),""===r.lightbox.autoplay&&S(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})}),t.length?(C.find(".wpr-grid-media-hover-bg").after(t.remove()),C.find(".wpr-grid-lightbox-overlay").on("click",function(){v.editorCheck()?alert("Lightbox is Disabled in the Editor!"):S(this).closest("article").find(".wpr-grid-image-wrap").trigger("click")})):e.find(".inner-block > span").on("click",function(){v.editorCheck()?alert("Lightbox is Disabled in the Editor!"):S(this).closest("article").find(".wpr-grid-image-wrap").trigger("click")}))}function w(){C.find(".wpr-post-like-button").length&&C.find(".wpr-post-like-button").on("click",function(){var i=S(this);return""!==i.attr("data-post-id")&&S.ajax({type:"POST",url:i.attr("data-ajax"),data:{action:"wpr_likes_init",post_id:i.attr("data-post-id"),nonce:i.attr("data-nonce")},beforeSend:function(){i.fadeTo(500,.5)},success:function(e){var t=i.attr("data-icon"),e=e.count;""===e.replace(/<\/?[^>]+(>|$)/g,"")?(e='<span class="wpr-post-like-count">'+i.attr("data-text")+"</span>",i.hasClass("wpr-likes-zero")||i.addClass("wpr-likes-zero")):i.removeClass("wpr-likes-zero"),i.hasClass("wpr-already-liked")?(i.prop("title","Like"),i.removeClass("wpr-already-liked"),i.html('<i class="'+t+'"></i>'+e)):(i.prop("title","Unlike"),i.addClass("wpr-already-liked"),i.html('<i class="'+t.replace("far","fas")+'"></i>'+e)),i.fadeTo(500,1)}}),!1})}function b(e){for(var t,i,s,a,r=C.find(".wpr-grid"),n=r.find(".wpr-grid-item"),l=n.filter(":visible"),o=e.layout,d=e.media_align,p=e.media_width,c=e.media_distance,f=3,m=1,h=2,g=e.columns_desktop,y=e.gutter_hr,u=e.gutter_vr,w=r.width()+y-.3,b=S("body").prop("clientWidth"),T=400,v=(v=C.attr("class")).split(" "),k=0;k<v.length-1;k++)-1!==v[k].search(/mobile\d/)&&(m=v[k].slice(-1)),-1!==v[k].search(/mobile_extra\d/)&&(t=v[k].slice(-1)),-1!==v[k].search(/tablet\d/)&&(h=v[k].slice(-1)),-1!==v[k].search(/tablet_extra\d/)&&(i=v[k].slice(-1)),-1!==v[k].search(/widescreen\d/)&&(a=v[k].slice(-1)),-1!==v[k].search(/laptop\d/)&&(s=v[k].slice(-1));8<(f=b<=440?m:b<=768?t||h:b<=881?h:b<=1025?i||h:b<=1201?s||g:b<=1920?g:b<=2300?g+1:b<=2650?a||g+2:b<=3e3?g+3:g+4)&&(f=8),"string"==typeof f&&-1!==f.indexOf("pro")&&(f=3),n.outerWidth(Math.floor(w/f-y)),n.css("margin-bottom",u+"px"),1===f&&n.last().css("margin-bottom","0");var x=-1;l.each(function(e){S(this).outerHeight();var t=parseInt(S(this).css("top"),10);x<t&&(x=t)}),"fitRows"===o&&l.each(function(){parseInt(S(this).css("top"))===x&&S(this).addClass("rf-last-row")}),"list"===o&&(l=n.find(".wpr-grid-image-wrap").outerHeight(),n.find(".wpr-grid-item-below-content").css("min-height",l+"px"),S("body").prop("clientWidth")<480?(n.find(".wpr-grid-media-wrap").css({float:"none",width:"100%"}),n.find(".wpr-grid-item-below-content").css({float:"none",width:"100%"}),n.find(".wpr-grid-image-wrap").css("padding","0"),n.find(".wpr-grid-item-below-content").css("min-height","0"),"zigzag"===d&&n.find('[class*="elementor-repeater-item"]').css("text-align","center")):"zigzag"!==d?(n.find(".wpr-grid-media-wrap").css({float:d,width:p+"%"}),l="left"===d?"margin-right":"margin-left",n.find(".wpr-grid-media-wrap").css(l,c+"px"),n.find(".wpr-grid-item-below-content").css({float:d,width:"calc((100% - "+p+"%) - "+c+"px)"})):(n.filter(":even").find(".wpr-grid-media-wrap").css({float:"left",width:p+"%"}),n.filter(":even").find(".wpr-grid-item-below-content").css({float:"left",width:"calc((100% - "+p+"%) - "+c+"px)"}),n.filter(":even").find(".wpr-grid-media-wrap").css("margin-right",c+"px"),n.filter(":odd").find(".wpr-grid-media-wrap").css({float:"right",width:p+"%"}),n.filter(":odd").find(".wpr-grid-item-below-content").css({float:"right",width:"calc((100% - "+p+"%) - "+c+"px)"}),n.filter(":odd").find(".wpr-grid-media-wrap").css("margin-left",c+"px"),r.hasClass("wpr-grid-list-ready")||n.each(function(e){var t=S(this).find('[class*="elementor-repeater-item"]');e%2==0?t.each(function(){S(this).hasClass("wpr-grid-item-align-center")||("none"===S(this).css("float")?S(this).css("text-align","left"):S(this).css("float","left"),S(this).find(".inner-block"))}):t.each(function(e){var t;S(this).hasClass("wpr-grid-item-align-center")||("none"===S(this).css("float")?S(this).css("text-align","right"):S(this).css("float","right"),"0px"!==(t=S(this).find(".inner-block")).css("margin-left")&&(t.css("margin-right",t.css("margin-left")),t.css("margin-left","0")),0===e&&"0px"!==t.css("margin-right")&&(t.css("margin-left",t.css("margin-right")),t.css("margin-right","0")))})}),setTimeout(function(){r.hasClass("wpr-grid-list-ready")||r.addClass("wpr-grid-list-ready")},500))),"list"===o&&(o="fitRows"),"default"!==e.filters_animation&&(T=0);r.isotope({layoutMode:o,masonry:{comlumnWidth:w/f,gutter:y},fitRows:{comlumnWidth:w/f,gutter:y},transitionDuration:T,percentPosition:!0})}function T(s){var e,t,i;"yes"===s.filters_count&&C.find(".wpr-grid-filters a, .wpr-grid-filters span").each(function(){"*"===S(this).attr("data-filter")?S(this).find("sup").text(C.find(".wpr-grid-filters").next().find("article").length):S(this).find("sup").text(S(S(this).attr("data-filter")).length)}),"yes"!==s.filters_linkable&&("yes"===s.deeplinking&&(e=window.location.hash.replace("#filter:","."),window.location.hash.match("#filter:all")&&(e="*"),i=(t=C.find('.wpr-grid-filters span[data-filter="'+e+'"]:not(.wpr-back-filter)')).parent(),"parent"===t.parent().attr("data-role")?i.parent("ul").find('ul[data-parent="'+e+'"]').length&&(i.parent("ul").children("li").css("display","none"),i.siblings('ul[data-parent="'+e+'"]').css("display","block")):"sub"===t.parent().attr("data-role")&&(i.closest(".wpr-grid-filters").children("li").css("display","none"),i.parent("ul").css("display","inline-block")),C.find(".wpr-grid-filters span").removeClass("wpr-active-filter"),t.addClass("wpr-active-filter"),C.find(".wpr-grid").isotope({filter:e}),s.lightbox.selector="*"!==e?e+" .wpr-grid-image-wrap":" .wpr-grid-image-wrap",u(s)),"yes"===s.filters_hide_empty&&C.find(".wpr-grid-filters span").each(function(){var e=S(this).attr("data-filter");"*"!==e&&(0===g.find(e).length?S(this).parent("li").addClass("wpr-hidden-element"):S(this).parent("li").removeClass("wpr-hidden-element"))}),C.find(".wpr-grid-filters span").on("click",function(){var e=S(this).data("filter"),t=S(this).parent("li"),i=t.attr("data-role");C.find(".wpr-grid-filters span").removeClass("wpr-active-filter"),S(this).addClass("wpr-active-filter"),"parent"===i?t.parent("ul").find('ul[data-parent="'+e+'"]').length&&(t.parent("ul").children("li").css("display","none"),t.siblings('ul[data-parent="'+e+'"]').css("display","block")):"back"===i&&(t.closest(".wpr-grid-filters").children("li").css("display","inline-block"),t.parent().css("display","none")),"yes"===s.deeplinking&&(t="#filter:"+e.replace(".",""),"*"===e&&(t="#filter:all"),window.location.href=window.location.pathname+window.location.search+t),"infinite-scroll"===s.pagination_type&&0===g.find(S(this).attr("data-filter")).length&&C.find(".wpr-grid").infiniteScroll("loadNextPage"),"default"!==s.filters_animation&&C.find(".wpr-grid-item-inner").css({opacity:"0",transition:"none"}),"fade-slide"===s.filters_animation?C.find(".wpr-grid-item-inner").css("top","20px"):"zoom"===s.filters_animation?C.find(".wpr-grid-item-inner").css("transform","scale(0.01)"):C.find(".wpr-grid-item-inner").css({top:"0",transform:"scale(1)"}),C.find(".wpr-grid").isotope({filter:e}),s.lightbox.selector="*"!==e?e+" .wpr-grid-image-wrap":" .wpr-grid-image-wrap",g.data("lightGallery").destroy(!0),g.lightGallery(s.lightbox)}))}void 0!==y&&!1!==y?(b(y=JSON.parse(g.attr("data-settings"))),setTimeout(function(){b(y)},100),v.editorCheck()&&(setTimeout(function(){b(y)},500),setTimeout(function(){b(y)},1e3)),S(window).on("load",function(){setTimeout(function(){b(y)},100)}),S(window).smartresize(function(){setTimeout(function(){b(y)},200)}),T(y),g.on("arrangeComplete",function(e,t){var i,s=0,a=0,r=y.animation_delay,n=y.animation_duration,l=y.filters_animation_duration;if(g.hasClass("grid-images-loaded"))r=0;else if(g.css("opacity","1"),"default"===y.animation&&"default"===y.filters_animation)return;for(i in t){r+=y.animation_delay,C.find(t[i].element).find(".wpr-grid-item-inner").css({opacity:"1",top:"0",transform:"scale(1)",transition:"all "+n+"s ease-in "+r+"s"}),a+=y.filters_animation_delay,g.hasClass("grid-images-loaded")&&C.find(t[i].element).find(".wpr-grid-item-inner").css({transition:"all "+l+"s ease-in "+a+"s"});var o=window.location.hash;0<=o.indexOf("#filter:")&&o.indexOf("#filter:*")<0&&(o=o.replace("#filter:",""),C.find(t[i].element).filter(function(){if(S(this).hasClass(o))return s+=y.filters_animation_delay,S(this)}).find(".wpr-grid-item-inner").css({"transition-delay":s+"s"}))}}),g.imagesLoaded().progress(function(e,t){"1"!==g.css("opacity")&&g.css("opacity","1"),setTimeout(function(){g.addClass("grid-images-loaded")},500)}),"load-more"!==y.pagination_type&&"infinite-scroll"!==y.pagination_type||!C.find(".wpr-grid-pagination").length||v.editorCheck()||(i=C.find(".wpr-grid-pagination"),s=".elementor-element-"+C.attr("data-id"),o=n=!1,"infinite-scroll"===y.pagination_type&&(o=300,n=s+" .wpr-load-more-btn"),g.infiniteScroll({path:s+" .wpr-grid-pagination a",hideNav:n,append:!1,history:!1,scrollThreshold:o,status:s+" .page-load-status",onInit:function(){this.on("load",function(){g.removeClass("grid-images-loaded")})}}),g.on("request.infiniteScroll",function(e,t){i.find(".wpr-load-more-btn").hide(),i.find(".wpr-pagination-loading").css("display","inline-block")}),a=0,g.on("load.infiniteScroll",function(e,t){a++;t=S(t).find(s).find(".wpr-grid-item");g.infiniteScroll("appendItems",t),g.isotope("appended",t),t.imagesLoaded().progress(function(e,t){b(y),setTimeout(function(){b(y),T(y)},10),setTimeout(function(){g.addClass("grid-images-loaded")},500)}),i.find(".wpr-pagination-loading").hide(),y.pagination_max_pages-1!==a?"load-more"===y.pagination_type&&i.find(".wpr-load-more-btn").fadeIn():(i.find(".wpr-pagination-finish").fadeIn(1e3),i.delay(2e3).fadeOut(1e3),setTimeout(function(){i.find(".wpr-pagination-loading").hide()},500)),setTimeout(function(){w()},300),u(y),g.data("lightGallery").destroy(!0),g.lightGallery(y.lightbox)}),i.find(".wpr-load-more-btn").on("click",function(){return g.infiniteScroll("loadNextPage"),!1}))):(g.animate({opacity:"1"},1e3),e=(p=C.attr("class")).match(/wpr-grid-slider-columns-\d/)?p.match(/wpr-grid-slider-columns-\d/).join().slice(-1):2,t=p.match(/columns--widescreen\d/)?p.match(/columns--widescreen\d/).join().slice(-1):e,r=p.match(/columns--laptop\d/)?p.match(/columns--laptop\d/).join().slice(-1):e,n=p.match(/columns--tablet_extra\d/)?p.match(/columns--tablet_extra\d/).join().slice(-1):l,l=p.match(/columns--tablet\d/)?p.match(/columns--tablet\d/).join().slice(-1):2,o=p.match(/columns--mobile_extra\d/)?p.match(/columns--mobile_extra\d/).join().slice(-1):l,d=p.match(/columns--mobile\d/)?p.match(/columns--mobile\d/).join().slice(-1):1,p=+p.match(/wpr-grid-slides-to-scroll-\d/).join().slice(-1),g.slick({appendDots:C.find(".wpr-grid-slider-dots"),customPaging:function(e,t){e.slideCount;return'<span class="wpr-grid-slider-dot"></span>'},slidesToShow:e,responsive:[{breakpoint:1e4,settings:{slidesToShow:t,slidesToScroll:t<p?1:p}},{breakpoint:2399,settings:{slidesToShow:e,slidesToScroll:e<p?1:p}},{breakpoint:1221,settings:{slidesToShow:r,slidesToScroll:r<p?1:p}},{breakpoint:1200,settings:{slidesToShow:n,slidesToScroll:n<p?1:p}},{breakpoint:1024,settings:{slidesToShow:l,slidesToScroll:l<p?1:p}},{breakpoint:880,settings:{slidesToShow:o,slidesToScroll:o<p?1:p}},{breakpoint:768,settings:{slidesToShow:d,slidesToScroll:d<p?1:p}}]}),C.find(".slick-dots").length&&C.hasClass("wpr-grid-slider-dots-horizontal")&&(f=C.find(".slick-dots li").outerWidth()*C.find(".slick-dots li").length-parseInt(C.find(".slick-dots li span").css("margin-right"),10),C.find(".slick-dots").length&&C.find(".slick-dots").css("width",f),S(window).on("resize",function(){setTimeout(function(){var e=C.find(".slick-dots li").outerWidth()*C.find(".slick-dots li").length-parseInt(C.find(".slick-dots li span").css("margin-right"),10);C.find(".slick-dots").css("width",e)},300)})),y=JSON.parse(g.attr("data-slick"))),"yes"!==g.find(".wpr-grid-media-wrap").attr("data-overlay-link")||v.editorCheck()||(g.find(".wpr-grid-media-wrap").css("cursor","pointer"),g.find(".wpr-grid-media-wrap").on("click",function(e){var t=e.target.className;-1===t.indexOf("inner-block")&&-1===t.indexOf("wpr-cv-inner")&&-1===t.indexOf("wpr-grid-media-hover")||(e.preventDefault(),e=(e=S(this).find(".wpr-grid-media-hover-bg").attr("data-url")).replace("#new_tab",""),"_blank"===g.find(".wpr-grid-item-title a").attr("target")?window.open(e,"_blank").focus():window.location.href=e)})),C.find(".wpr-sharing-trigger").length&&(d=C.find(".wpr-sharing-trigger"),p=C.find(".wpr-post-sharing-inner"),c=5,p.first().find("a").each(function(){c+=S(this).outerWidth()+parseInt(S(this).css("margin-right"),10)}),f=parseInt(p.find("a").css("margin-right"),10),"left"===d.attr("data-direction")?(p.css("width",c+"px"),p.css("left",-(f+c)+"px")):"right"===d.attr("data-direction")?(p.css("width",c+"px"),p.css("right",-(f+c)+"px")):"top"===d.attr("data-direction")?(p.find("a").css({"margin-right":"0","margin-top":f+"px"}),p.css({top:-f+"px",left:"50%","-webkit-transform":"translate(-50%, -100%)",transform:"translate(-50%, -100%)"})):"right"===d.attr("data-direction")?(p.css("width",c+"px"),p.css({left:f+"px"})):"bottom"===d.attr("data-direction")&&(p.find("a").css({"margin-right":"0","margin-bottom":f+"px"}),p.css({bottom:-f+"px",left:"50%","-webkit-transform":"translate(-50%, 100%)",transform:"translate(-50%, 100%)"})),"click"===d.attr("data-action")?d.on("click",function(){var e=S(this).next();"hidden"===e.css("visibility")?(e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)):(e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length))}):(d.on("mouseenter",function(){var e=S(this).next();e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)}),C.find(".wpr-grid-item-sharing").on("mouseleave",function(){var e=S(this).find(".wpr-post-sharing-inner");e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length)}))),g.find(".wpr-grid-item-add-to-cart").length&&(m=g.find(".wpr-grid-item-add-to-cart").find("i"),h=m.attr("class"),m.length&&(h=h.substring(h.indexOf("fa-"),h.length)),S("body").on("adding_to_cart",function(e,t,i){t.fadeTo("slow",.5)}),S("body").on("added_to_cart",function(e,t,i,s){s.fadeTo("slow",1),m.length&&(s.find("i").removeClass(h).addClass("fa-check"),setTimeout(function(){s.find("i").removeClass("fa-check").addClass(h)},3500))})),u(y),w()},widgetMagazineGrid:function(e){var t,i=e.find(".wpr-magazine-grid-wrap"),s=i.attr("data-slick"),a=i.attr("data-slide-effect");console.log(a),void 0!==s&&!1!==s&&i.slick({fade:"fade"===a}),"yes"!==i.find(".wpr-grid-media-wrap").attr("data-overlay-link")||v.editorCheck()||(i.find(".wpr-grid-media-wrap").css("cursor","pointer"),i.find(".wpr-grid-media-wrap").on("click",function(e){var t=e.target.className;-1===t.indexOf("inner-block")&&-1===t.indexOf("wpr-cv-inner")&&-1===t.indexOf("wpr-grid-media-hover")||(e.preventDefault(),window.location.href=S(this).find(".wpr-grid-media-hover-bg").attr("data-url"))})),e.find(".wpr-sharing-trigger").length&&(s=e.find(".wpr-sharing-trigger"),a=e.find(".wpr-post-sharing-inner"),t=5,a.first().find("a").each(function(){t+=S(this).outerWidth()+parseInt(S(this).css("margin-right"),10)}),i=parseInt(a.find("a").css("margin-right"),10),"left"===s.attr("data-direction")?(a.css("width",t+"px"),a.css("left",-(i+t)+"px")):"right"===s.attr("data-direction")?(a.css("width",t+"px"),a.css("right",-(i+t)+"px")):"top"===s.attr("data-direction")?(a.find("a").css({"margin-right":"0","margin-top":i+"px"}),a.css({top:-i+"px",left:"50%","-webkit-transform":"translate(-50%, -100%)",transform:"translate(-50%, -100%)"})):"right"===s.attr("data-direction")?(a.css("width",t+"px"),a.css({left:i+"px"})):"bottom"===s.attr("data-direction")&&(a.find("a").css({"margin-right":"0","margin-bottom":i+"px"}),a.css({bottom:-i+"px",left:"50%","-webkit-transform":"translate(-50%, 100%)",transform:"translate(-50%, 100%)"})),"click"===s.attr("data-action")?s.on("click",function(){var e=S(this).next();"hidden"===e.css("visibility")?(e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)):(e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length))}):(s.on("mouseenter",function(){var e=S(this).next();e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)}),e.find(".wpr-grid-item-sharing").on("mouseleave",function(){var e=S(this).find(".wpr-post-sharing-inner");e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length)}))),e.find(".wpr-post-like-button").length&&e.find(".wpr-post-like-button").on("click",function(){var i=S(this);return""!==i.attr("data-post-id")&&S.ajax({type:"POST",url:i.attr("data-ajax"),data:{action:"wpr_likes_init",post_id:i.attr("data-post-id"),nonce:i.attr("data-nonce")},beforeSend:function(){i.fadeTo(500,.5)},success:function(e){var t=i.attr("data-icon"),e=e.count;""===e.replace(/<\/?[^>]+(>|$)/g,"")?(e='<span class="wpr-post-like-count">'+i.attr("data-text")+"</span>",i.hasClass("wpr-likes-zero")||i.addClass("wpr-likes-zero")):i.removeClass("wpr-likes-zero"),i.hasClass("wpr-already-liked")?(i.prop("title","Like"),i.removeClass("wpr-already-liked"),i.html('<i class="'+t+'"></i>'+e)):(i.prop("title","Unlike"),i.addClass("wpr-already-liked"),i.html('<i class="'+t.replace("far","fas")+'"></i>'+e)),i.fadeTo(500,1)}}),!1})},widgetFeaturedMedia:function(e){var t=e.find(".wpr-gallery-slider"),i=t.attr("data-slick");t.animate({opacity:"1"},1e3),"[]"!==i&&t.slick({appendDots:e.find(".wpr-gallery-slider-dots"),customPaging:function(e,t){e.slideCount;return'<span class="wpr-gallery-slider-dot"></span>'}});var r=S(".wpr-featured-media-image").attr("data-lightbox");void 0===r||!1===r||v.editorCheck()||(e=e.find(".wpr-featured-media-wrap"),r=JSON.parse(r),e.lightGallery(r),e.on("onAferAppendSlide.lg, onAfterSlide.lg",function(e,t,i){var s=S("#lg-actual-size, #lg-zoom-in, #lg-zoom-out, #lg-download"),a=S("#lg-download").attr("href");S("#lg-download").length&&(-1===a.indexOf("wp-content")?s.addClass("wpr-hidden-element"):s.removeClass("wpr-hidden-element")),""===r.autoplay&&S(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})}))},widgetProductMedia:function(e){var t=e.find(".wpr-product-media-image"),i=e.find(".wpr-gallery-slider"),s=i.attr("data-slick");i.animate({opacity:"1"},1e3),"[]"!==s&&i.length&&(s=JSON.parse(s),i.slick(),"yes"===s.thumbnail_nav&&((a=e.find(".wpr-product-thumb-nav")).slick(),a.find("li").on("click",function(){var e=S(this).attr("data-slick-index");S(this).siblings().removeClass("slick-current"),S(this).addClass("slick-current"),i.slick("slickGoTo",parseInt(e,10))})));var a,r=S(".wpr-product-media-image").attr("data-lightbox");void 0===r||!1===r||v.editorCheck()||(a=e.find(".wpr-product-media-wrap"),r=JSON.parse(r),a.lightGallery(r),a.on("onAferAppendSlide.lg, onAfterSlide.lg",function(e,t,i){var s=S("#lg-actual-size, #lg-zoom-in, #lg-zoom-out, #lg-download"),a=S("#lg-download").attr("href");S("#lg-download").length&&(-1===a.indexOf("wp-content")?s.addClass("wpr-hidden-element"):s.removeClass("wpr-hidden-element")),""===r.autoplay&&S(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})})),e.hasClass("wpr-gallery-zoom-yes")&&t.on("mousemove",function(e){var t=(e.pageX-S(this).offset().left)/S(this).width()*100,e=(e.pageY-S(this).offset().top)/S(this).height()*100;S(this).children("img").css({"transform-origin":t+"% "+e+"%"})})},widgetCountDown:function(t){var e,i,s,a=t.children(".elementor-widget-container").children(".wpr-countdown-wrap"),r=null,n=a.data("interval"),l=a.data("show-again"),o=new Date(1e3*n);function d(){var e=o-new Date,s={days:Math.floor(e/864e5),hours:Math.floor(e/36e5%24),minutes:Math.floor(e/1e3/60%60),seconds:Math.floor(e/1e3%60)};(s.days<0||s.hours<0||s.minutes<0)&&(s={days:0,hours:0,minutes:0,seconds:0}),t.find(".wpr-countdown-number").each(function(){var e=s[S(this).attr("data-item")];1===e.toString().length&&(e="0"+e),S(this).text(e);var t,i=S(this).next();i.length&&(S(this).hasClass("wpr-countdown-seconds")||(t=i.data("text"),"01"==e?i.text(t.singular):i.text(t.plural)))}),e<0&&(clearInterval(r),e=a.data("actions"),v.editorCheck()||(e.hasOwnProperty("hide-timer")&&a.hide(),e.hasOwnProperty("hide-element")&&S(e["hide-element"]).hide(),e.hasOwnProperty("message")&&(t.children(".elementor-widget-container").children(".wpr-countdown-message").length||a.after('<div class="wpr-countdown-message">'+e.message+"</div>")),e.hasOwnProperty("redirect")&&(window.location.href=e.redirect),e.hasOwnProperty("load-template")&&a.parent().find(".elementor-inner").parent().show()))}"evergreen"===a.data("type")&&(e=new Date,i=t.attr("data-id"),s=JSON.parse(localStorage.getItem("WprCountDownSettings"))||{},(o=!s.hasOwnProperty(i)||0===Object.keys(s).length||n!==s[i].interval?e.setSeconds(e.getSeconds()+n):s[i].endTime)+l<e.setSeconds(e.getSeconds())&&(o=e.setSeconds(e.getSeconds()+n)),s[i]={interval:n,endTime:o},localStorage.setItem("WprCountDownSettings",JSON.stringify(s))),d(),v.editorCheck()||(r=setInterval(d,1e3))},widgetGoogleMaps:function(e){for(var t=e.find(".wpr-google-map"),i=t.data("settings"),e=t.data("controls"),s=t.data("locations"),a=[],r=new google.maps.LatLngBounds,n=new google.maps.Map(t[0],{mapTypeId:i.type,styles:function(e){var t;switch(e.style){case"simple":t=JSON.parse('[{"featureType":"road","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#fffffa"}]},{"featureType":"water","stylers":[{"lightness":50}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"transit","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry","stylers":[{"lightness":40}]}]');break;case"white-black":t=JSON.parse('[{"featureType":"road","elementType":"labels","stylers":[{"visibility":"on"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]},{"featureType":"administrative","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"weight":1}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"weight":0.8}]},{"featureType":"landscape","stylers":[{"color":"#ffffff"}]},{"featureType":"water","stylers":[{"visibility":"off"}]},{"featureType":"transit","stylers":[{"visibility":"off"}]},{"elementType":"labels","stylers":[{"visibility":"off"}]},{"elementType":"labels.text","stylers":[{"visibility":"on"}]},{"elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"elementType":"labels.text.fill","stylers":[{"color":"#000000"}]},{"elementType":"labels.icon","stylers":[{"visibility":"on"}]}]');break;case"light-silver":t=JSON.parse('[{"featureType":"water","elementType":"geometry","stylers":[{"color":"#e9e9e9"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffffff"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#ffffff"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":21}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#dedede"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#333333"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#f2f2f2"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#fefefe"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#fefefe"},{"lightness":17},{"weight":1.2}]}]');break;case"light-grayscale":t=JSON.parse('[{"featureType":"all","elementType":"geometry.fill","stylers":[{"weight":"2.00"}]},{"featureType":"all","elementType":"geometry.stroke","stylers":[{"color":"#9c9c9c"}]},{"featureType":"all","elementType":"labels.text","stylers":[{"visibility":"on"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"landscape","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"landscape.man_made","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"color":"#eeeeee"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#7b7b7b"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#46bcec"},{"visibility":"on"}]},{"featureType":"water","elementType":"geometry.fill","stylers":[{"color":"#c8d7d4"}]},{"featureType":"water","elementType":"labels.text.fill","stylers":[{"color":"#070707"}]},{"featureType":"water","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]}]');break;case"subtle-grayscale":t=JSON.parse('[{"featureType":"administrative","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"administrative.province","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"all","stylers":[{"saturation":-100},{"lightness":65},{"visibility":"on"}]},{"featureType":"poi","elementType":"all","stylers":[{"saturation":-100},{"lightness":"50"},{"visibility":"simplified"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"all","stylers":[{"lightness":"30"}]},{"featureType":"road.local","elementType":"all","stylers":[{"lightness":"40"}]},{"featureType":"transit","elementType":"all","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffff00"},{"lightness":-25},{"saturation":-97}]},{"featureType":"water","elementType":"labels","stylers":[{"lightness":-25},{"saturation":-100}]}]');break;case"mostly-white":t=JSON.parse('[{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#6195a0"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"landscape","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"color":"#e6f3d6"},{"visibility":"on"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45},{"visibility":"simplified"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#f4d2c5"},{"visibility":"simplified"}]},{"featureType":"road.highway","elementType":"labels.text","stylers":[{"color":"#4e4e4e"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#f4f4f4"}]},{"featureType":"road.arterial","elementType":"labels.text.fill","stylers":[{"color":"#787878"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#eaf6f8"},{"visibility":"on"}]},{"featureType":"water","elementType":"geometry.fill","stylers":[{"color":"#eaf6f8"}]}]');break;case"mostly-green":t=JSON.parse('[{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"color":"#f7f1df"}]},{"featureType":"landscape.natural","elementType":"geometry","stylers":[{"color":"#d0e3b4"}]},{"featureType":"landscape.natural.terrain","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.medical","elementType":"geometry","stylers":[{"color":"#fbd3da"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#bde6ab"}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffe15f"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#efd151"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.local","elementType":"geometry.fill","stylers":[{"color":"black"}]},{"featureType":"transit.station.airport","elementType":"geometry.fill","stylers":[{"color":"#cfb2db"}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#a2daf2"}]}]');break;case"neutral-blue":t=JSON.parse('[{"featureType":"water","elementType":"geometry","stylers":[{"color":"#193341"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#2c5a71"}]},{"featureType":"road","elementType":"geometry","stylers":[{"color":"#29768a"},{"lightness":-37}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#406d80"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#406d80"}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#3e606f"},{"weight":2},{"gamma":0.84}]},{"elementType":"labels.text.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"administrative","elementType":"geometry","stylers":[{"weight":0.6},{"color":"#1a3541"}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#2c5a71"}]}]');break;case"blue-water":t=JSON.parse('[{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#444444"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#46bcec"},{"visibility":"on"}]}]');break;case"blue-essense":t=JSON.parse('[{"featureType":"landscape.natural","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#e0efef"}]},{"featureType":"poi","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"hue":"#1900ff"},{"color":"#c0e8e8"}]},{"featureType":"road","elementType":"geometry","stylers":[{"lightness":100},{"visibility":"simplified"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"transit.line","elementType":"geometry","stylers":[{"visibility":"on"},{"lightness":700}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#7dcdcd"}]}]');break;case"golden-brown":t=JSON.parse('[{"featureType":"all","elementType":"all","stylers":[{"color":"#ff7000"},{"lightness":"69"},{"saturation":"100"},{"weight":"1.17"},{"gamma":"2.04"}]},{"featureType":"all","elementType":"geometry","stylers":[{"color":"#cb8536"}]},{"featureType":"all","elementType":"labels","stylers":[{"color":"#ffb471"},{"lightness":"66"},{"saturation":"100"}]},{"featureType":"all","elementType":"labels.text.fill","stylers":[{"gamma":0.01},{"lightness":20}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"saturation":-31},{"lightness":-33},{"weight":2},{"gamma":0.8}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"all","stylers":[{"lightness":"-8"},{"gamma":"0.98"},{"weight":"2.45"},{"saturation":"26"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"lightness":30},{"saturation":30}]},{"featureType":"poi","elementType":"geometry","stylers":[{"saturation":20}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"lightness":20},{"saturation":-20}]},{"featureType":"road","elementType":"geometry","stylers":[{"lightness":10},{"saturation":-30}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"saturation":25},{"lightness":25}]},{"featureType":"water","elementType":"all","stylers":[{"lightness":-20},{"color":"#ecc080"}]}]');break;case"midnight-commander":t=JSON.parse('[{"featureType":"all","elementType":"labels.text.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"color":"#000000"},{"lightness":13}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#144b53"},{"lightness":14},{"weight":1.4}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#08304b"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#0c4152"},{"lightness":5}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#0b434f"},{"lightness":25}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"road.arterial","elementType":"geometry.stroke","stylers":[{"color":"#0b3d51"},{"lightness":16}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"}]},{"featureType":"transit","elementType":"all","stylers":[{"color":"#146474"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#021019"}]}]');break;case"shades-of-grey":t=JSON.parse('[{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":17}]}]');break;case"yellow-black":t=JSON.parse('[{"featureType":"all","elementType":"labels","stylers":[{"visibility":"on"}]},{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]},{"featureType":"administrative.country","elementType":"labels.text.fill","stylers":[{"color":"#e5c163"}]},{"featureType":"administrative.locality","elementType":"labels.text.fill","stylers":[{"color":"#c4c4c4"}]},{"featureType":"administrative.neighborhood","elementType":"labels.text.fill","stylers":[{"color":"#e5c163"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21},{"visibility":"on"}]},{"featureType":"poi.business","elementType":"geometry","stylers":[{"visibility":"on"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#e5c163"},{"lightness":"0"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"labels.text.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.highway","elementType":"labels.text.stroke","stylers":[{"color":"#e5c163"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#575757"}]},{"featureType":"road.arterial","elementType":"labels.text.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.arterial","elementType":"labels.text.stroke","stylers":[{"color":"#2c2c2c"}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"road.local","elementType":"labels.text.fill","stylers":[{"color":"#999999"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":17}]}]');break;case"custom":t=JSON.parse(e.custom_style);break;default:t=""}return t}(i),zoom:i.zoom_depth,gestureHandling:i.zoom_on_scroll,mapTypeControl:e.type,fullscreenControl:e.fullscreen,zoomControl:e.zoom,streetViewControl:e.streetview}),l=0;l<s.length;l++){var o=s[l],d="",p=o.gm_marker_icon_size_width.size,c=o.gm_marker_icon_size_height.size;""!=o.gm_latitude&&""!=o.gm_longtitude&&("yes"===o.gm_custom_marker&&(d={url:o.gm_marker_icon.url,scaledSize:new google.maps.Size(p,c)}),d=new google.maps.Marker({map:n,position:new google.maps.LatLng(parseFloat(o.gm_latitude),parseFloat(o.gm_longtitude)),animation:google.maps.Animation[o.gm_marker_animation],icon:d}),"none"!==o.gm_show_info_window&&function(e,t){var i='<div class="wpr-gm-iwindow"><h3>'+t.gm_location_title+"</h3><p>"+t.gm_location_description+"</p></div>",s=new google.maps.InfoWindow({content:i,maxWidth:t.gm_info_window_width.size});"load"===t.gm_show_info_window?s.open(n,e):e.addListener("click",function(){s.open(n,e)})}(d,o),a.push(d),r.extend(d.position))}1<s.length?n.fitBounds(r):n.setCenter(r.getCenter()),"yes"===i.cluster_markers&&new MarkerClusterer(n,a,{imagePath:i.clusters_url})},widgetBeforeAfter:function(e){var a=e.find(".wpr-ba-image-container"),i=(a.find(".wpr-ba-image-1"),a.find(".wpr-ba-image-2")),r=a.find(".wpr-ba-divider"),e=a.attr("data-position");function s(){var e,t,i=a.find(".wpr-ba-label-1 div"),s=a.find(".wpr-ba-label-2 div");(i.length||s.length)&&(a.hasClass("wpr-ba-horizontal")?(e=i.position().left+i.outerWidth(),t=s.position().left+s.outerWidth(),e+15>=parseInt(r.css("left"),10)?i.stop().css("opacity",0):i.stop().css("opacity",1),a.outerWidth()-(t+15)<=parseInt(r.css("left"),10)?s.stop().css("opacity",0):s.stop().css("opacity",1)):(e=i.position().top+i.outerHeight(),t=s.position().top+s.outerHeight(),e+15>=parseInt(r.css("top"),10)?i.stop().css("opacity",0):i.stop().css("opacity",1),a.outerHeight()-(t+15)<=parseInt(r.css("top"),10)?s.stop().css("opacity",0):s.stop().css("opacity",1)))}a.hasClass("wpr-ba-horizontal")?(r.css("left",e+"%"),i.css("left",e+"%"),i.find("img").css("right",e+"%"),r.on("move",function(e){e=e.pageX-a.offset().left;r.css({left:"auto",right:"auto"}),i.css({left:"auto",right:"auto"}),0<e&&e<a.outerWidth()?(r.css("left",e),i.css("left",e),i.find("img").css("right",e)):e<=0?(r.css("left",0),i.css("left",0),i.find("img").css("right",0)):e>=a.outerWidth()&&(r.css("right",-r.outerWidth()/2),i.css("right",0),i.find("img").css("right","100%")),s()})):(r.css("top",e+"%"),i.css("top",e+"%"),i.find("img").css("bottom",e+"%"),r.on("move",function(e){e=e.pageY-a.offset().top;r.css({top:"auto",bottom:"auto"}),i.css({top:"auto",bottom:"auto"}),0<e&&e<a.outerHeight()?(r.css("top",e),i.css("top",e),i.find("img").css("bottom",e)):e<=0?(r.css("top",0),i.css("top",0),i.find("img").css("bottom",0)):e>=a.outerHeight()&&(r.css("bottom",-r.outerHeight()/2),i.css("bottom",0),i.find("img").css("bottom","100%")),s()})),"mouse"===a.attr("data-trigger")&&a.on("mousemove",function(e){var t;a.hasClass("wpr-ba-horizontal")?(t=e.pageX-S(this).offset().left,r.css("left",t),i.css("left",t),i.find("img").css("right",t)):(t=e.pageY-S(this).offset().top,r.css("top",t),i.css("top",t),i.find("img").css("bottom",t)),s()}),s()},widgetMailchimp:function(i){var s=i.find("form");s.on("submit",function(e){e.preventDefault();var t=S(this).find("button").text();S(this).find("button").text(S(this).find("button").data("loading")),S.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"mailchimp_subscribe",fields:S(this).serialize(),apiKey:s.data("api-key"),listId:s.data("list-id")},success:function(e){s.find("button").text(t),("subscribed"===e.status?i.find(".wpr-mailchimp-success-message"):i.find(".wpr-mailchimp-error-message")).show(),i.find(".wpr-mailchimp-message").fadeIn()}})})},widgetAdvancedSlider:function(t){var n=t.find(".wpr-advanced-slider"),e=(n.data("slick"),t.attr("class")),i=e.match(/wpr-adv-slider-columns-\d/)?e.match(/wpr-adv-slider-columns-\d/).join().slice(-1):2,s=e.match(/columns--widescreen\d/)?e.match(/columns--widescreen\d/).join().slice(-1):i,a=e.match(/columns--laptop\d/)?e.match(/columns--laptop\d/).join().slice(-1):i,r=e.match(/columns--tablet_extra\d/)?e.match(/columns--tablet_extra\d/).join().slice(-1):l,l=e.match(/columns--tablet\d/)?e.match(/columns--tablet\d/).join().slice(-1):2,o=e.match(/columns--mobile_extra\d/)?e.match(/columns--mobile_extra\d/).join().slice(-1):l,d=e.match(/columns--mobile\d/)?e.match(/columns--mobile\d/).join().slice(-1):1,p=+e.match(/wpr-adv-slides-to-scroll-\d/).join().slice(-1),e=n.attr("data-slide-effect");function c(){var e,t,i=n.find(".wpr-slider-item").outerWidth(),s=n.find(".wpr-slider-item").outerHeight(),a=0,r=0;16/9<i/s?a="-"+((e=(t=i)/(16/9))-s)/2+"px":r="-"+((t=(e=s)*(16/9))-i)/2+"px",n.find("iframe").css({width:t+"px",height:e+"px","max-width":"none",position:"absolute",left:r+"",top:a+"",display:"block","text-align":"inherit","line-height":"0px","border-width":"0px",margin:"0px",padding:"0px"})}function f(){n.find(".slick-active").each(function(){var e=S(this).attr("data-video-src"),t=S(this).attr("data-video-autoplay");1!==S(this).find(".wpr-slider-video").length&&"yes"===t&&((1==i?S(this).find(".wpr-cv-inner"):S(this).find(".wpr-cv-container")).prepend('<div class="wpr-slider-video"><iframe src="'+e+'" width="100%" height="100%" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>'),c())})}function m(){n.find(".slick-active").find(".wpr-slider-content").fadeIn(0),1==i&&n.find(".slick-active").find(".wpr-slider-animation").addClass("wpr-animation-enter")}n.slick({appendArrows:t.find(".wpr-slider-controls"),appendDots:t.find(".wpr-slider-dots"),customPaging:function(e,t){e.slideCount;return'<span class="wpr-slider-dot"></span>'},slidesToShow:i,responsive:[{breakpoint:1e4,settings:{slidesToShow:s,slidesToScroll:s<p?1:p,fade:1==s&&"fade"===e}},{breakpoint:2399,settings:{slidesToShow:i,slidesToScroll:i<p?1:p,fade:1==i&&"fade"===e}},{breakpoint:1221,settings:{slidesToShow:a,slidesToScroll:a<p?1:p,fade:1==a&&"fade"===e}},{breakpoint:1200,settings:{slidesToShow:r,slidesToScroll:r<p?1:p,fade:1==r&&"fade"===e}},{breakpoint:1024,settings:{slidesToShow:l,slidesToScroll:l<p?1:p,fade:1==l&&"fade"===e}},{breakpoint:880,settings:{slidesToShow:o,slidesToScroll:o<p?1:p,fade:1==o&&"fade"===e}},{breakpoint:768,settings:{slidesToShow:d,slidesToScroll:d<p?1:p,fade:1==d&&"fade"===e}}]}),S(window).on("load resize",function(){c()}),f(),m(),n.find(".wpr-slider-video-btn").on("click",function(){var e=S(this).closest(".slick-active"),t=e.attr("data-video-src");1!==e.find(".wpr-slider-video").length&&(e.find(".wpr-cv-container").prepend('<div class="wpr-slider-video"><iframe src="'+t+'" width="100%" height="100%" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>'),c(),e.find(".wpr-slider-content").fadeOut(300))}),n.on({beforeChange:function(){n.find(".wpr-slider-item").not(".slick-active").find(".wpr-slider-video").remove(),n.find(".wpr-animation-enter").find(".wpr-slider-content").fadeOut(300),1==i&&n.find(".wpr-slider-item").not(".slick-active").find(".wpr-slider-animation").removeClass("wpr-animation-enter")},afterChange:function(e,t,i){m(),f()}}),t.find(".slick-dots").length&&t.hasClass("wpr-slider-dots-horizontal")&&(e=t.find(".slick-dots li").outerWidth()*t.find(".slick-dots li").length-parseInt(t.find(".slick-dots li span").css("margin-right"),10),t.find(".slick-dots").length&&t.find(".slick-dots").css("width",e),S(window).on("resize",function(){setTimeout(function(){var e=t.find(".slick-dots li").outerWidth()*t.find(".slick-dots li").length-parseInt(t.find(".slick-dots li span").css("margin-right"),10);t.find(".slick-dots").css("width",e)},300)}))},widgetTestimonialCarousel:function(t){var e=t.find(".wpr-testimonial-carousel"),i=t.attr("class"),s=i.match(/wpr-testimonial-slider-columns-\d/)?i.match(/wpr-testimonial-slider-columns-\d/).join().slice(-1):2,a=i.match(/columns--widescreen\d/)?i.match(/columns--widescreen\d/).join().slice(-1):s,r=i.match(/columns--laptop\d/)?i.match(/columns--laptop\d/).join().slice(-1):s,n=i.match(/columns--tablet_extra\d/)?i.match(/columns--tablet_extra\d/).join().slice(-1):l,l=i.match(/columns--tablet\d/)?i.match(/columns--tablet\d/).join().slice(-1):2,o=i.match(/columns--mobile_extra\d/)?i.match(/columns--mobile_extra\d/).join().slice(-1):l,d=i.match(/columns--mobile\d/)?i.match(/columns--mobile\d/).join().slice(-1):1,p=+i.match(/wpr-adv-slides-to-scroll-\d/).join().slice(-1),i=e.attr("data-slide-effect");e.slick({appendArrows:t.find(".wpr-testimonial-controls"),appendDots:t.find(".wpr-testimonial-dots"),customPaging:function(e,t){e.slideCount;return'<span class="wpr-testimonial-dot"></span>'},slidesToShow:s,responsive:[{breakpoint:1e4,settings:{slidesToShow:a,slidesToScroll:a<p?1:p,fade:1==a&&"fade"===i}},{breakpoint:2399,settings:{slidesToShow:s,slidesToScroll:s<p?1:p,fade:1==s&&"fade"===i}},{breakpoint:1221,settings:{slidesToShow:r,slidesToScroll:r<p?1:p,fade:1==r&&"fade"===i}},{breakpoint:1200,settings:{slidesToShow:n,slidesToScroll:n<p?1:p,fade:1==n&&"fade"===i}},{breakpoint:1024,settings:{slidesToShow:l,slidesToScroll:l<p?1:p,fade:1==l&&"fade"===i}},{breakpoint:880,settings:{slidesToShow:o,slidesToScroll:o<p?1:p,fade:1==o&&"fade"===i}},{breakpoint:768,settings:{slidesToShow:d,slidesToScroll:d<p?1:p,fade:1==d&&"fade"===i}}]}),t.hasClass("wpr-testimonial-nav-fade")&&(t.on("mouseover",function(){t.closest("section").find(".wpr-testimonial-arrow").css({opacity:1})}),t.closest("section").on("mouseout",function(){t.find(".wpr-testimonial-arrow").css({opacity:0})})),t.find(".slick-dots").length&&(i=t.find(".slick-dots li").outerWidth()*t.find(".slick-dots li").length-parseInt(t.find(".slick-dots li span").css("margin-right"),10),t.find(".slick-dots").css("width",i)),S(window).on("resize",function(){setTimeout(function(){var e;t.find(".slick-dots").length&&(e=t.find(".slick-dots li").outerWidth()*t.find(".slick-dots li").length-parseInt(t.find(".slick-dots li span").css("margin-right"),10),t.find(".slick-dots").css("width",e))},300)})},widgetSearch:function(e){e.find(".wpr-search-form-input").on({focus:function(){e.addClass("wpr-search-form-input-focus")},blur:function(){e.removeClass("wpr-search-form-input-focus")}})},widgetAdvancedText:function(n){var e,t,i,a,r,l,o,d,p,c;function s(){var e,t,i,s=n.find(".wpr-clipped-text"),a=s.data("clipped-options"),r=elementorFrontend.getCurrentDeviceMode();a&&(e=a.longShadowSize,t=a.longShadowSizeTablet,i=a.longShadowSizeMobile,"desktop"===r&&(e=a.longShadowSize),"tablet"===r&&t&&(e=t),"mobile"===r&&i&&(e=i),s.find(".wpr-clipped-text-long-shadow").attr("style","text-shadow:"+function(e,t,i){for(var s="",a=0,r=t;a<r;a++)switch(i){case"top":s+="0 -"+a+"px 0 "+e+",";break;case"right":s+=a+"px 0 0 "+e+",";break;case"bottom":s+="0 "+a+"px 0 "+e+",";break;case"left":s+="-"+a+"px 0 0 "+e+",";break;case"top-left":s+="-"+a+"px -"+a+"px 0 "+e+",";break;case"top-right":s+=a+"px -"+a+"px 0 "+e+",";break;case"bottom-left":s+="-"+a+"px "+a+"px 0 "+e+",";break;case"bottom-right":default:s+=a+"px "+a+"px 0 "+e+","}return s=s.slice(0,-1)}(a.longShadowColor,e,a.longShadowDirection)))}function f(e){var t,i,s=g(e);"yes"!==a&&++l===r||(e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-typing")?((t=e.parent(".wpr-anim-text-inner")).addClass("wpr-anim-text-selected").removeClass("waiting"),setTimeout(function(){t.removeClass("wpr-anim-text-selected"),e.removeClass("wpr-anim-text-visible").addClass("wpr-anim-text-hidden").children("i").removeClass("wpr-anim-text-in").addClass("wpr-anim-text-out")},p),setTimeout(function(){m(s,o)},c)):e.parents(".wpr-anim-text").hasClass("wpr-anim-text-letters")?(i=e.children("i").length>=s.children("i").length,function e(t,i,s,a){t.removeClass("wpr-anim-text-in").addClass("wpr-anim-text-out");t.is(":last-child")?s&&setTimeout(function(){f(g(i))},d):setTimeout(function(){e(t.next(),i,s,a)},a);{var r;t.is(":last-child")&&(r=g(i),y(i,r))}}(e.find("i").eq(0),e,i,o),h(s.find("i").eq(0),s,i,o)):e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-clip")?e.parents(".wpr-anim-text-inner").animate({width:"2px"},o,function(){y(e,s),m(s)}):(y(e,s),setTimeout(function(){f(s)},d)))}function m(e,t){e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-typing")?(h(e.find("i").eq(0),e,!1,t),e.addClass("wpr-anim-text-visible").removeClass("wpr-anim-text-hidden")):e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-clip")&&e.parents(".wpr-anim-text-inner").animate({width:e.outerWidth()},o,function(){setTimeout(function(){f(e)},d)})}function h(e,t,i,s){e.addClass("wpr-anim-text-in").removeClass("wpr-anim-text-out"),e.is(":last-child")?(t.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-typing")&&setTimeout(function(){t.parents(".wpr-anim-text-inner").addClass("waiting")},200),i||setTimeout(function(){f(t)},d)):setTimeout(function(){h(e.next(),t,i,s)},s)}function g(e){return e.is(":last-child")?e.parent().children().eq(0):e.next()}function y(e,t){e.removeClass("wpr-anim-text-visible").addClass("wpr-anim-text-hidden"),t.removeClass("wpr-anim-text-hidden").addClass("wpr-anim-text-visible")}n.hasClass("wpr-advanced-text-style-animated")&&(e=n.find(".wpr-anim-text"),t=n.find(".wpr-anim-text-letters"),i=(o=e.attr("data-anim-duration")).split(","),a=e.attr("data-anim-loop"),r=e.find("b").length,l=0,e.find("b").first().addClass("wpr-anim-text-visible"),o=parseInt(i[0],10),d=parseInt(i[1],10),c=(p=500)+800,t.find("b").each(function(){var e,t=S(this),i=t.text().split(""),s=t.hasClass("wpr-anim-text-visible");for(e in i){var a=i[e].replace(/ /g," ");i[e]=s?'<i class="wpr-anim-text-in">'+a+"</i>":"<i>"+a+"</i>"}var r=i.join("");t.html(r).css("opacity",1)}),function(){var s=d;e.each(function(){var e,t=S(this),i=t.find(".wpr-anim-text-inner");t.hasClass("wpr-anim-text-type-clip")&&(e=i.outerWidth(),i.css("width",e)),setTimeout(function(){f(t.find(".wpr-anim-text-visible").eq(0))},s),t.hasClass("wpr-anim-text-type-rotate-1")&&i.find("b").each(function(){S(this).outerWidth()>i.outerWidth()&&i.css("width",S(this).outerWidth())})})}()),s(),S(window).on("resize",function(){s()})},widgetProgressBar:function(e){var t=e.find(".wpr-progress-bar"),i=e.find(".wpr-prbar-circle"),s=(i.find(".wpr-prbar-circle-svg").find(".wpr-prbar-circle-line"),e.find(".wpr-prbar-circle-prline")),a=t.find(".wpr-prbar-hr-line-inner"),r=t.find(".wpr-prbar-vr-line-inner"),n=t.data("options"),l=i.data("circle-options"),o=t.find(".wpr-prbar-counter-value"),e=n.counterValue,d=n.counterValuePersent,t=n.animDuration,p=n.animDelay,c=(elementorFrontend.getCurrentDeviceMode(),{toValue:e,duration:t});function f(e){if(e.length){var t=e.offset().top,i=t+e.outerHeight(),s=S(window).scrollTop(),e=s+S(window).height();return t>S(window).height()&&(t+=50),s<i&&t<e}}function m(){var e;f(r)&&r.css({height:d+"%"}),f(a)&&a.css({width:d+"%"}),f(i)&&(e=l.circleOffset,s.css({"stroke-dashoffset":e})),(f(r)||f(a)||f(i))&&setTimeout(function(){o.numerator(c)},p)}"yes"===n.counterSeparator&&(c.delimiter=","),m(),S(window).on("scroll",function(){m()})},widgetImageHotspots:function(e){var t=e.find(".wpr-image-hotspots"),e=t.data("options"),i=t.find(".wpr-hotspot-item"),e=e.tooltipTrigger;"click"===e?(i.on("click",function(){S(this).hasClass("wpr-tooltip-active")?S(this).removeClass("wpr-tooltip-active"):(i.removeClass("wpr-tooltip-active"),S(this).addClass("wpr-tooltip-active")),event.stopPropagation()}),S(window).on("click",function(){i.removeClass("wpr-tooltip-active")})):"hover"===e?i.hover(function(){S(this).toggleClass("wpr-tooltip-active")}):i.addClass("wpr-tooltip-active")},widgetFlipBox:function(e){var t=e.find(".wpr-flip-box"),e=t.data("trigger");"box"===e?(t.find(".wpr-flip-box-front").on("click",function(){S(this).closest(".wpr-flip-box").addClass("wpr-flip-box-active")}),S(window).on("click",function(){0===S(event.target).closest(".wpr-flip-box").length&&t.removeClass("wpr-flip-box-active")})):"btn"==e?(t.find(".wpr-flip-box-btn").on("click",function(){S(this).closest(".wpr-flip-box").addClass("wpr-flip-box-active")}),S(window).on("click",function(){0===S(event.target).closest(".wpr-flip-box").length&&t.removeClass("wpr-flip-box-active")})):"hover"==e&&t.hover(function(){S(this).toggleClass("wpr-flip-box-active")})},widgetContentTicker:function(e){var t=e.find(".wpr-ticker-slider"),i=e.find(".wpr-ticker-marquee"),s=i.data("options"),a=e.attr("class"),r=a.match(/wpr-ticker-slider-columns-\d/)?a.match(/wpr-ticker-slider-columns-\d/).join().slice(-1):2,n=a.match(/columns--widescreen\d/)?a.match(/columns--widescreen\d/).join().slice(-1):r,l=a.match(/columns--laptop\d/)?a.match(/columns--laptop\d/).join().slice(-1):r,o=a.match(/columns--tablet_extra\d/)?a.match(/columns--tablet_extra\d/).join().slice(-1):d,d=a.match(/columns--tablet\d/)?a.match(/columns--tablet\d/).join().slice(-1):2,p=a.match(/columns--mobile_extra\d/)?a.match(/columns--mobile_extra\d/).join().slice(-1):d,c=a.match(/columns--mobile\d/)?a.match(/columns--mobile\d/).join().slice(-1):1,f=t.attr("data-slide-effect"),a="hr-slide"===f&&a.match(/wpr-ticker-slides-to-scroll-\d/)?+a.match(/wpr-ticker-slides-to-scroll-\d/).join().slice(-1):1;console.log(r),t.slick({appendArrows:e.find(".wpr-ticker-slider-controls"),slidesToShow:r,responsive:[{breakpoint:1e4,settings:{slidesToShow:"typing"===f||"fade"===f?1:n,slidesToScroll:n<a?1:a,fade:"typing"===f||"fade"===f}},{breakpoint:2399,settings:{slidesToShow:"typing"===f||"fade"===f?1:r,slidesToScroll:r<a?1:a,fade:"typing"===f||"fade"===f}},{breakpoint:1221,settings:{slidesToShow:"typing"===f||"fade"===f?1:l,slidesToScroll:l<a?1:a,fade:"typing"===f||"fade"===f}},{breakpoint:1200,settings:{slidesToShow:"typing"===f||"fade"===f?1:o,slidesToScroll:o<a?1:a,fade:"typing"===f||"fade"===f}},{breakpoint:1024,settings:{slidesToShow:"typing"===f||"fade"===f?1:d,slidesToScroll:d<a?1:a,fade:"typing"===f||"fade"===f}},{breakpoint:880,settings:{slidesToShow:"typing"===f||"fade"===f?1:p,slidesToScroll:p<a?1:a,fade:"typing"===f||"fade"===f}},{breakpoint:768,settings:{slidesToShow:"typing"===f||"fade"===f?1:c,slidesToScroll:c<a?1:a,fade:"typing"===f||"fade"===f}}]}),i.marquee(s)},widgetTabs:function(e){var t,i,s=S(".wpr-tabs",e).first(),a=S(".wpr-tabs-wrap",s).first(),r=S(".wpr-tabs-content-wrap",s).first(),a=S("> .wpr-tab",a),n=S("> .wpr-tab-content",r),e=s.data("options"),s=e.activeTab-1;function l(e){var t=a.eq(e),i=n.eq(e),e="auto";r.css({height:r.outerHeight(!0)}),a.removeClass("wpr-tab-active"),t.addClass("wpr-tab-active"),n.removeClass("wpr-tab-content-active wpr-animation-enter"),e=i.outerHeight(!0),e+=parseInt(r.css("border-top-width"))+parseInt(r.css("border-bottom-width")),i.addClass("wpr-tab-content-active wpr-animation-enter"),r.css({height:e}),setTimeout(function(){r.css({height:"auto"})},500)}a.eq(s).addClass("wpr-tab-active"),n.eq(s).addClass("wpr-tab-content-active wpr-animation-enter"),e.autoplay&&(t=e.activeTab-1,i=setInterval(function(){t<a.length-1?t++:t=0,l(t)},e.autoplaySpeed)),"hover"===e.trigger?a.hover(function(){var e=S(this).data("tab")-1;clearInterval(i),l(e)}):a.on("click",function(){var e=S(this).data("tab")-1;clearInterval(i),l(e)})},widgetContentToogle:function(a){var e=S(".wpr-content-toggle",a).first(),r=S(".wpr-switcher-container",e).first(),t=S(".wpr-switcher-wrap",e).first(),n=S(".wpr-switcher-content-wrap",e).first(),i=S("> .wpr-switcher-bg",t),l=S("> .wpr-switcher",t),o=S("> .wpr-switcher-content",n),e=parseInt(r.data("active-switcher"))-1;function d(e){var t;a.hasClass("wpr-switcher-label-style-outer")||(e=e*(t=100/l.length),i.css({width:t+"%",left:e+"%"}))}function s(e){var t,i=l.eq(e),s=o.eq(e);d(e),a.hasClass("wpr-switcher-label-style-outer")||(l.removeClass("wpr-switcher-active"),i.addClass("wpr-switcher-active"),a.hasClass("wpr-switcher-style-dual")&&r.attr("data-active-switcher",e+1)),n.css({height:n.outerHeight(!0)}),o.removeClass("wpr-switcher-content-active wpr-animation-enter"),t=s.outerHeight(!0),t+=parseInt(n.css("border-top-width"))+parseInt(n.css("border-bottom-width")),s.addClass("wpr-switcher-content-active wpr-animation-enter"),n.css({height:t}),setTimeout(function(){n.css({height:"auto"})},500)}l.eq(e).addClass("wpr-switcher-active"),o.eq(e).addClass("wpr-switcher-content-active wpr-animation-enter"),d(e),a.hasClass("wpr-switcher-label-style-outer")?t.on("click",function(){var e=t.find(".wpr-switcher-active");1===parseInt(e.data("switcher"),10)?(t.children(".wpr-switcher").eq(0).removeClass("wpr-switcher-active"),t.children(".wpr-switcher").eq(1).addClass("wpr-switcher-active"),t.closest(".wpr-switcher-container").attr("data-active-switcher",2),s(1)):2===parseInt(e.data("switcher"),10)&&(t.children(".wpr-switcher").eq(1).removeClass("wpr-switcher-active"),t.children(".wpr-switcher").eq(0).addClass("wpr-switcher-active"),t.closest(".wpr-switcher-container").attr("data-active-switcher",1),s(0))}):l.on("click",function(){s(S(this).data("switcher")-1)})},widgetBackToTop:function(e){var s=e.find(".wpr-stt-btn"),t=s.attr("data-settings");function i(e,t,i){e>i.animationOffset?"fade"===i.animation?s.stop().css("visibility","visible").animate({opacity:"1"},i.animationDuration):"slide"===i.animation?s.stop().css("visibility","visible").animate({opacity:"1","margin-bottom":0},i.animationDuration):s.css("visibility","visible"):"fade"===i.animation?s.stop().animate({opacity:"0"},i.animationDuration):"slide"===i.animation?s.stop().animate({"margin-bottom":"-100px",opacity:"0"},i.animationDuration):s.css("visibility","hidden")}"fixed"===(t=JSON.parse(t)).fixed&&("none"!==t.animation&&(s.css({opacity:"0"}),"slide"===t.animation&&s.css({"margin-bottom":"-100px"})),i(S(window).scrollTop(),0,t),S(window).scroll(function(){i(S(this).scrollTop(),0,t)})),s.on("click",function(){return S("html, body").animate({scrollTop:0},t.scrolAnim),!1})},editorCheck:function(e){return!!S("body").hasClass("elementor-editor-active")}};S(window).on("elementor/frontend/init",v.init)}(jQuery,window.elementorFrontend),function(t){jQuery.fn[t]=function(e){return e?this.bind("resize",(i=e,function(){var e=this,t=arguments;r?clearTimeout(r):a&&i.apply(e,t),r=setTimeout(function(){a||i.apply(e,t),r=null},s||100)})):this.trigger(t);var i,s,a,r}}((jQuery,"smartresize"));
|
1 |
+
!function(S){"use strict";var v={init:function(){var e={"wpr-nav-menu.default":v.widgetNavMenu,"wpr-onepage-nav.default":v.OnepageNav,"wpr-grid.default":v.widgetGrid,"wpr-magazine-grid.default":v.widgetMagazineGrid,"wpr-media-grid.default":v.widgetGrid,"wpr-woo-grid.default":v.widgetGrid,"wpr-featured-media.default":v.widgetFeaturedMedia,"wpr-product-media.default":v.widgetProductMedia,"wpr-countdown.default":v.widgetCountDown,"wpr-google-maps.default":v.widgetGoogleMaps,"wpr-before-after.default":v.widgetBeforeAfter,"wpr-mailchimp.default":v.widgetMailchimp,"wpr-advanced-slider.default":v.widgetAdvancedSlider,"wpr-testimonial.default":v.widgetTestimonialCarousel,"wpr-search.default":v.widgetSearch,"wpr-advanced-text.default":v.widgetAdvancedText,"wpr-progress-bar.default":v.widgetProgressBar,"wpr-image-hotspots.default":v.widgetImageHotspots,"wpr-flip-box.default":v.widgetFlipBox,"wpr-content-ticker.default":v.widgetContentTicker,"wpr-tabs.default":v.widgetTabs,"wpr-content-toggle.default":v.widgetContentToogle,"wpr-back-to-top.default":v.widgetBackToTop,global:v.widgetSection};S.each(e,function(e,t){window.elementorFrontend.hooks.addAction("frontend/element_ready/"+e,t)})},widgetSection:function(l){var e,t,i,s,r;function a(e){var t=JSON.parse(e),i=(v.editorCheck()?l.find(".wpr-particle-wrapper"):l).attr("wpr-quantity"),s=v.editorCheck()?l.find(".wpr-particle-wrapper").attr("wpr-color")?l.find(".wpr-particle-wrapper").attr("wpr-color"):"#000000":l.attr("wpr-color")||"#000000",r=(v.editorCheck()?l.find(".wpr-particle-wrapper"):l).attr("wpr-speed"),a=(v.editorCheck()?l.find(".wpr-particle-wrapper"):l).attr("wpr-shape"),e=(v.editorCheck()?l.find(".wpr-particle-wrapper"):l).attr("wpr-size");return t.particles.size.value=e,t.particles.number.value=i,t.particles.color.value=s,t.particles.shape.type=a,t.particles.line_linked.color=s,t.particles.move.speed=r,t}(l.attr("data-wpr-particles")||l.find(".wpr-particle-wrapper").attr("data-wpr-particles-editor"))&&(e=l.data("element_type"),t=l.data("id"),i=v.editorCheck()?l.find(".wpr-particle-wrapper").attr("data-wpr-particles-editor"):l.attr("data-wpr-particles"),"section"===e&&void 0!==i&&(v.editorCheck()?l.hasClass("wpr-particle-yes")?(particlesJS("wpr-particle-"+t,"wpr_particle_json_custom"==l.find(".wpr-particle-wrapper").attr("particle-source")?JSON.parse(i):a(i)),l.find(".elementor-column").css("z-index",9),S(window).trigger("resize")):l.find(".wpr-particle-wrapper").remove():(l.prepend('<div class="wpr-particle-wrapper" id="wpr-particle-'+t+'"></div>'),particlesJS("wpr-particle-"+t,"wpr_particle_json_custom"==l.attr("particle-source")?JSON.parse(i):a(i))))),(l.hasClass("wpr-jarallax")||l.hasClass("wpr-jarallax-yes"))&&l.hasClass("wpr-jarallax-yes")&&(!v.editorCheck()&&l.hasClass("wpr-jarallax")?(l.css("background-image",'url("'+l.attr("bg-image")+'")'),l.jarallax({type:l.attr("scroll-effect"),speed:l.attr("speed-data")})):v.editorCheck()&&(l.css("background-image",'url("'+l.find(".wpr-jarallax").attr("bg-image-editor")+'")'),l.jarallax({type:l.find(".wpr-jarallax").attr("scroll-effect-editor"),speed:l.find(".wpr-jarallax").attr("speed-data-editor")}))),l.hasClass("wpr-parallax-yes")&&(l.hasClass("wpr-parallax-yes")&&(s=document.getElementsByClassName("wpr-parallax-multi-layer"),Array.from(s).map(e=>new Parallax(e,{invertY:"yes"==e.getAttribute("direction"),invertX:"yes"==e.getAttribute("direction"),scalarX:e.getAttribute("scalar-speed"),scalarY:e.getAttribute("scalar-speed"),hoverOnly:!0,pointerEvents:!0})).forEach(e=>{e.friction(.2,.2)})),v.editorCheck()||(r=[],document.querySelectorAll(".wpr-parallax-multi-layer").forEach((e,t)=>{e.parentElement.style.position="relative",e.style.position="absolute",r.push(e),e.remove()}),document.querySelectorAll(".wpr-parallax-ml-children").forEach((e,t)=>{e.style.position="absolute",e.style.top=e.getAttribute("style-top"),e.style.left=e.getAttribute("style-left")}),S(".wpr-parallax-yes").each(function(e){S(this).append(r[e])})))},widgetNavMenu:function(s){var r=s.find(".wpr-nav-menu-container"),e=s.find(".wpr-mobile-nav-menu-container"),a=r.find(".wpr-nav-menu > li.menu-item-has-children"),l=r.find(".wpr-sub-menu li.menu-item-has-children");"click"===r.attr("data-trigger")?(a.children("a").on("click",function(e){var t=S(this).parent(),i=t.children(".wpr-sub-menu");a.not(t).removeClass("wpr-sub-open"),(r.hasClass("wpr-nav-menu-horizontal")||r.hasClass("wpr-nav-menu-vertical")&&s.hasClass("wpr-sub-menu-position-absolute"))&&n(a.children(".wpr-sub-menu"),!1),t.hasClass("wpr-sub-open")?(t.removeClass("wpr-sub-open"),n(i,!1)):(e.preventDefault(),t.addClass("wpr-sub-open"),n(i,!0))}),l.on("click",function(e){var t=S(this),i=t.children(".wpr-sub-menu");r.hasClass("wpr-nav-menu-horizontal")&&n(l.find(".wpr-sub-menu"),!1),t.hasClass("wpr-sub-open")?n(i,!1):(e.preventDefault(),n(i,!0))}),S(document).mouseup(function(e){a.is(e.target)||0!==a.has(e.target).length||(a.not().removeClass("wpr-sub-open"),n(a.children(".wpr-sub-menu"),!1)),l.is(e.target)||0!==l.has(e.target).length||(l.removeClass("wpr-sub-open"),n(l.children(".wpr-sub-menu"),!1))})):(a.on("mouseenter",function(){r.hasClass("wpr-nav-menu-vertical")&&s.hasClass("wpr-sub-menu-position-absolute")&&r.find("li").not(this).children(".wpr-sub-menu").hide(),n(S(this).children(".wpr-sub-menu"),!0)}),l.on("mouseenter",function(){n(S(this).children(".wpr-sub-menu"),!0)}),r.hasClass("wpr-nav-menu-horizontal")?(a.on("mouseleave",function(){n(S(this).children(".wpr-sub-menu"),!1)}),l.on("mouseleave",function(){n(S(this).children(".wpr-sub-menu"),!1)})):r.on("mouseleave",function(){n(S(this).find(".wpr-sub-menu"),!1)}));var i=e.find(".wpr-mobile-nav-menu");function t(){var e,t;s.hasClass("wpr-mobile-menu-full-width")&&(t=s.closest(".elementor-column"),e=s.closest(".elementor-top-section").outerWidth()-2*i.offset().left,t=t.offset().left+parseInt(t.css("padding-left"),10),i.css({width:e+"px",left:-t+"px"}))}function n(e,t){!0===t?s.hasClass("wpr-sub-menu-fx-slide")?e.stop().slideDown():e.stop().fadeIn():s.hasClass("wpr-sub-menu-fx-slide")?e.stop().slideUp():e.stop().fadeOut()}e.find(".wpr-mobile-toggle").on("click",function(){S(this).toggleClass("wpr-mobile-toggle-fx"),S(this).hasClass(".wpr-mobile-toggle-open")?(S(this).removeClass(".wpr-mobile-toggle-open"),S(this).trigger("focusout"),S(this).find(".wpr-mobile-toggle-text").length&&(S(this).children().eq(1).hide(),S(this).children().eq(0).show())):(S(this).addClass(".wpr-mobile-toggle-open"),S(this).find(".wpr-mobile-toggle-text").length&&(S(this).children().eq(0).hide(),S(this).children().eq(1).show())),S(this).parent().next().stop().slideToggle(),t()}),i.find(".sub-menu").removeClass("wpr-sub-menu").addClass("wpr-mobile-sub-menu"),i.find(".menu-item-has-children").children("a").on("click",function(e){var t=S(this).closest("li");t.hasClass("wpr-mobile-sub-open")?(t.removeClass("wpr-mobile-sub-open"),t.children(".wpr-mobile-sub-menu").first().stop().slideUp()):(e.preventDefault(),t.addClass("wpr-mobile-sub-open"),t.children(".wpr-mobile-sub-menu").first().stop().slideDown())}),t(),S(window).on("resize",function(){t()})},OnepageNav:function(s){function i(i){"yes"===s.find(".wpr-onepage-nav").attr("data-highlight")&&(s.find(".wpr-onepage-nav-item").children("a").removeClass("wpr-onepage-active-item"),S(".elementor-section").each(function(){var e=S(this).offset().top,t=e+S(this).outerHeight();e<=i&&i<t&&s.find(".wpr-onepage-nav-item").children('a[href="#'+S(this).attr("id")+'"]').addClass("wpr-onepage-active-item")}))}s.find(".wpr-onepage-nav-item").on("click",function(e){e.preventDefault();var t=S(S(this).find("a").attr("href")),e=parseInt(S(this).parent().attr("data-speed"),10);S("body").animate({scrollTop:t.offset().top},e),i(S(window).scrollTop())}),"yes"===s.find(".wpr-onepage-nav").attr("data-highlight")&&setTimeout(function(){S(window).scroll()},10),S(window).scroll(function(){i(S(this).scrollTop())})},widgetGrid:function(C){var i,s,r,e,t,a,l,n,o,d,p,c,f,m,h,g=C.find(".wpr-grid"),u=g.attr("data-settings");function y(a){var e,t;-1!==C.find(".wpr-grid-item-lightbox").length&&(t=(e=C.find(".wpr-grid-item-lightbox")).find(".wpr-grid-lightbox-overlay").first(),e.each(function(){var e=S(this).find(".inner-block > span").attr("data-src"),t=S(this).closest("article").not(".slick-cloned");g.hasClass("wpr-media-grid")||t.find(".wpr-grid-image-wrap").attr("data-src",e);e=t.find(".wpr-grid-image-wrap").attr("data-src");void 0!==e&&!1!==e&&-1===e.indexOf("wp-content")&&t.find(".wpr-grid-image-wrap").attr("data-iframe","true")}),g.lightGallery(a.lightbox),g.on("onAfterOpen.lg",function(){S(".lg-outer").find(".lg-thumb-item").length&&S(".lg-outer").find(".lg-thumb-item").each(function(){var e=S(this).find("img").attr("src"),t=e,i=e.lastIndexOf("."),s=(e.slice(i),e.lastIndexOf("-")),r=!!/\d{3,}x\d{3,}/.test(e.substring(i,s))&&e.substring(i,s);42<=e.substring(i,s).length&&(r=""),""!==r&&(t=!1!==r?e.replace(r,"-150x150"):[e.slice(0,i),"-150x150",e.slice(i)].join("")),S(this).find("img").attr("src",t)})}),C.find(".wpr-grid").on("onAferAppendSlide.lg, onAfterSlide.lg",function(e,t,i){var s=S("#lg-actual-size, #lg-zoom-in, #lg-zoom-out, #lg-download"),r=S("#lg-download").attr("href");S("#lg-download").length&&(-1===r.indexOf("wp-content")?s.addClass("wpr-hidden-element"):s.removeClass("wpr-hidden-element")),""===a.lightbox.autoplay&&S(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})}),t.length?(C.find(".wpr-grid-media-hover-bg").after(t.remove()),C.find(".wpr-grid-lightbox-overlay").on("click",function(){v.editorCheck()?alert("Lightbox is Disabled in the Editor!"):S(this).closest("article").find(".wpr-grid-image-wrap").trigger("click")})):e.find(".inner-block > span").on("click",function(){v.editorCheck()?alert("Lightbox is Disabled in the Editor!"):S(this).closest("article").find(".wpr-grid-image-wrap").trigger("click")}))}function w(){C.find(".wpr-post-like-button").length&&C.find(".wpr-post-like-button").on("click",function(){var i=S(this);return""!==i.attr("data-post-id")&&S.ajax({type:"POST",url:i.attr("data-ajax"),data:{action:"wpr_likes_init",post_id:i.attr("data-post-id"),nonce:i.attr("data-nonce")},beforeSend:function(){i.fadeTo(500,.5)},success:function(e){var t=i.attr("data-icon"),e=e.count;""===e.replace(/<\/?[^>]+(>|$)/g,"")?(e='<span class="wpr-post-like-count">'+i.attr("data-text")+"</span>",i.hasClass("wpr-likes-zero")||i.addClass("wpr-likes-zero")):i.removeClass("wpr-likes-zero"),i.hasClass("wpr-already-liked")?(i.prop("title","Like"),i.removeClass("wpr-already-liked"),i.html('<i class="'+t+'"></i>'+e)):(i.prop("title","Unlike"),i.addClass("wpr-already-liked"),i.html('<i class="'+t.replace("far","fas")+'"></i>'+e)),i.fadeTo(500,1)}}),!1})}function b(e){for(var t,i,s,r,a=C.find(".wpr-grid"),l=a.find(".wpr-grid-item"),n=l.filter(":visible"),o=e.layout,d=e.media_align,p=e.media_width,c=e.media_distance,f=3,m=1,h=2,g=e.columns_desktop,u=e.gutter_hr,y=e.gutter_vr,w=a.width()+u-.3,b=S("body").prop("clientWidth"),T=400,v=(v=C.attr("class")).split(" "),k=0;k<v.length-1;k++)-1!==v[k].search(/mobile\d/)&&(m=v[k].slice(-1)),-1!==v[k].search(/mobile_extra\d/)&&(t=v[k].slice(-1)),-1!==v[k].search(/tablet\d/)&&(h=v[k].slice(-1)),-1!==v[k].search(/tablet_extra\d/)&&(i=v[k].slice(-1)),-1!==v[k].search(/widescreen\d/)&&(r=v[k].slice(-1)),-1!==v[k].search(/laptop\d/)&&(s=v[k].slice(-1));8<(f=b<=440?m:b<=768?t||h:b<=881?h:b<=1025?i||h:b<=1201?s||g:b<=1920?g:b<=2300?g+1:b<=2650?r||g+2:b<=3e3?g+3:g+4)&&(f=8),"string"==typeof f&&-1!==f.indexOf("pro")&&(f=3),l.outerWidth(Math.floor(w/f-u)),l.css("margin-bottom",y+"px"),1===f&&l.last().css("margin-bottom","0");var x=-1;n.each(function(e){S(this).outerHeight();var t=parseInt(S(this).css("top"),10);x<t&&(x=t)}),"fitRows"===o&&n.each(function(){parseInt(S(this).css("top"))===x&&S(this).addClass("rf-last-row")}),"list"===o&&(n=l.find(".wpr-grid-image-wrap").outerHeight(),l.find(".wpr-grid-item-below-content").css("min-height",n+"px"),S("body").prop("clientWidth")<480?(l.find(".wpr-grid-media-wrap").css({float:"none",width:"100%"}),l.find(".wpr-grid-item-below-content").css({float:"none",width:"100%"}),l.find(".wpr-grid-image-wrap").css("padding","0"),l.find(".wpr-grid-item-below-content").css("min-height","0"),"zigzag"===d&&l.find('[class*="elementor-repeater-item"]').css("text-align","center")):"zigzag"!==d?(l.find(".wpr-grid-media-wrap").css({float:d,width:p+"%"}),n="left"===d?"margin-right":"margin-left",l.find(".wpr-grid-media-wrap").css(n,c+"px"),l.find(".wpr-grid-item-below-content").css({float:d,width:"calc((100% - "+p+"%) - "+c+"px)"})):(l.filter(":even").find(".wpr-grid-media-wrap").css({float:"left",width:p+"%"}),l.filter(":even").find(".wpr-grid-item-below-content").css({float:"left",width:"calc((100% - "+p+"%) - "+c+"px)"}),l.filter(":even").find(".wpr-grid-media-wrap").css("margin-right",c+"px"),l.filter(":odd").find(".wpr-grid-media-wrap").css({float:"right",width:p+"%"}),l.filter(":odd").find(".wpr-grid-item-below-content").css({float:"right",width:"calc((100% - "+p+"%) - "+c+"px)"}),l.filter(":odd").find(".wpr-grid-media-wrap").css("margin-left",c+"px"),a.hasClass("wpr-grid-list-ready")||l.each(function(e){var t=S(this).find('[class*="elementor-repeater-item"]');e%2==0?t.each(function(){S(this).hasClass("wpr-grid-item-align-center")||("none"===S(this).css("float")?S(this).css("text-align","left"):S(this).css("float","left"),S(this).find(".inner-block"))}):t.each(function(e){var t;S(this).hasClass("wpr-grid-item-align-center")||("none"===S(this).css("float")?S(this).css("text-align","right"):S(this).css("float","right"),"0px"!==(t=S(this).find(".inner-block")).css("margin-left")&&(t.css("margin-right",t.css("margin-left")),t.css("margin-left","0")),0===e&&"0px"!==t.css("margin-right")&&(t.css("margin-left",t.css("margin-right")),t.css("margin-right","0")))})}),setTimeout(function(){a.hasClass("wpr-grid-list-ready")||a.addClass("wpr-grid-list-ready")},500))),"list"===o&&(o="fitRows"),"default"!==e.filters_animation&&(T=0);a.isotope({layoutMode:o,masonry:{comlumnWidth:w/f,gutter:u},fitRows:{comlumnWidth:w/f,gutter:u},transitionDuration:T,percentPosition:!0})}function T(s){var e,t,i;"yes"===s.filters_count&&C.find(".wpr-grid-filters a, .wpr-grid-filters span").each(function(){"*"===S(this).attr("data-filter")?S(this).find("sup").text(C.find(".wpr-grid-filters").next().find("article").length):S(this).find("sup").text(S(S(this).attr("data-filter")).length)}),"yes"!==s.filters_linkable&&("yes"===s.deeplinking&&(e=window.location.hash.replace("#filter:","."),window.location.hash.match("#filter:all")&&(e="*"),i=(t=C.find('.wpr-grid-filters span[data-filter="'+e+'"]:not(.wpr-back-filter)')).parent(),"parent"===t.parent().attr("data-role")?i.parent("ul").find('ul[data-parent="'+e+'"]').length&&(i.parent("ul").children("li").css("display","none"),i.siblings('ul[data-parent="'+e+'"]').css("display","block")):"sub"===t.parent().attr("data-role")&&(i.closest(".wpr-grid-filters").children("li").css("display","none"),i.parent("ul").css("display","inline-block")),C.find(".wpr-grid-filters span").removeClass("wpr-active-filter"),t.addClass("wpr-active-filter"),C.find(".wpr-grid").isotope({filter:e}),s.lightbox.selector="*"!==e?e+" .wpr-grid-image-wrap":" .wpr-grid-image-wrap",y(s)),"yes"===s.filters_hide_empty&&C.find(".wpr-grid-filters span").each(function(){var e=S(this).attr("data-filter");"*"!==e&&(0===g.find(e).length?S(this).parent("li").addClass("wpr-hidden-element"):S(this).parent("li").removeClass("wpr-hidden-element"))}),C.find(".wpr-grid-filters span").on("click",function(){var e=S(this).data("filter"),t=S(this).parent("li"),i=t.attr("data-role");C.find(".wpr-grid-filters span").removeClass("wpr-active-filter"),S(this).addClass("wpr-active-filter"),"parent"===i?t.parent("ul").find('ul[data-parent="'+e+'"]').length&&(t.parent("ul").children("li").css("display","none"),t.siblings('ul[data-parent="'+e+'"]').css("display","block")):"back"===i&&(t.closest(".wpr-grid-filters").children("li").css("display","inline-block"),t.parent().css("display","none")),"yes"===s.deeplinking&&(t="#filter:"+e.replace(".",""),"*"===e&&(t="#filter:all"),window.location.href=window.location.pathname+window.location.search+t),"infinite-scroll"===s.pagination_type&&0===g.find(S(this).attr("data-filter")).length&&C.find(".wpr-grid").infiniteScroll("loadNextPage"),"default"!==s.filters_animation&&C.find(".wpr-grid-item-inner").css({opacity:"0",transition:"none"}),"fade-slide"===s.filters_animation?C.find(".wpr-grid-item-inner").css("top","20px"):"zoom"===s.filters_animation?C.find(".wpr-grid-item-inner").css("transform","scale(0.01)"):C.find(".wpr-grid-item-inner").css({top:"0",transform:"scale(1)"}),C.find(".wpr-grid").isotope({filter:e}),s.lightbox.selector="*"!==e?e+" .wpr-grid-image-wrap":" .wpr-grid-image-wrap",g.data("lightGallery").destroy(!0),g.lightGallery(s.lightbox)}))}void 0!==u&&!1!==u?(b(u=JSON.parse(g.attr("data-settings"))),setTimeout(function(){b(u)},100),v.editorCheck()&&(setTimeout(function(){b(u)},500),setTimeout(function(){b(u)},1e3)),S(window).on("load",function(){setTimeout(function(){b(u)},100)}),S(window).smartresize(function(){setTimeout(function(){b(u)},200)}),T(u),g.on("arrangeComplete",function(e,t){var i,s=0,r=0,a=u.animation_delay,l=u.animation_duration,n=u.filters_animation_duration;if(g.hasClass("grid-images-loaded"))a=0;else if(g.css("opacity","1"),"default"===u.animation&&"default"===u.filters_animation)return;for(i in t){a+=u.animation_delay,C.find(t[i].element).find(".wpr-grid-item-inner").css({opacity:"1",top:"0",transform:"scale(1)",transition:"all "+l+"s ease-in "+a+"s"}),r+=u.filters_animation_delay,g.hasClass("grid-images-loaded")&&C.find(t[i].element).find(".wpr-grid-item-inner").css({transition:"all "+n+"s ease-in "+r+"s"});var o=window.location.hash;0<=o.indexOf("#filter:")&&o.indexOf("#filter:*")<0&&(o=o.replace("#filter:",""),C.find(t[i].element).filter(function(){if(S(this).hasClass(o))return s+=u.filters_animation_delay,S(this)}).find(".wpr-grid-item-inner").css({"transition-delay":s+"s"}))}}),g.imagesLoaded().progress(function(e,t){"1"!==g.css("opacity")&&g.css("opacity","1"),setTimeout(function(){g.addClass("grid-images-loaded")},500)}),"load-more"!==u.pagination_type&&"infinite-scroll"!==u.pagination_type||!C.find(".wpr-grid-pagination").length||v.editorCheck()||(i=C.find(".wpr-grid-pagination"),s=".elementor-element-"+C.attr("data-id"),o=l=!1,"infinite-scroll"===u.pagination_type&&(o=300,l=s+" .wpr-load-more-btn"),g.infiniteScroll({path:s+" .wpr-grid-pagination a",hideNav:l,append:!1,history:!1,scrollThreshold:o,status:s+" .page-load-status",onInit:function(){this.on("load",function(){g.removeClass("grid-images-loaded")})}}),g.on("request.infiniteScroll",function(e,t){i.find(".wpr-load-more-btn").hide(),i.find(".wpr-pagination-loading").css("display","inline-block")}),r=0,g.on("load.infiniteScroll",function(e,t){r++;t=S(t).find(s).find(".wpr-grid-item");g.infiniteScroll("appendItems",t),g.isotope("appended",t),t.imagesLoaded().progress(function(e,t){b(u),setTimeout(function(){b(u),T(u)},10),setTimeout(function(){g.addClass("grid-images-loaded")},500)}),i.find(".wpr-pagination-loading").hide(),u.pagination_max_pages-1!==r?"load-more"===u.pagination_type&&i.find(".wpr-load-more-btn").fadeIn():(i.find(".wpr-pagination-finish").fadeIn(1e3),i.delay(2e3).fadeOut(1e3),setTimeout(function(){i.find(".wpr-pagination-loading").hide()},500)),setTimeout(function(){w()},300),y(u),g.data("lightGallery").destroy(!0),g.lightGallery(u.lightbox)}),i.find(".wpr-load-more-btn").on("click",function(){return g.infiniteScroll("loadNextPage"),!1}))):(g.animate({opacity:"1"},1e3),e=(p=C.attr("class")).match(/wpr-grid-slider-columns-\d/)?p.match(/wpr-grid-slider-columns-\d/).join().slice(-1):2,t=p.match(/columns--widescreen\d/)?p.match(/columns--widescreen\d/).join().slice(-1):e,a=p.match(/columns--laptop\d/)?p.match(/columns--laptop\d/).join().slice(-1):e,l=p.match(/columns--tablet_extra\d/)?p.match(/columns--tablet_extra\d/).join().slice(-1):n,n=p.match(/columns--tablet\d/)?p.match(/columns--tablet\d/).join().slice(-1):2,o=p.match(/columns--mobile_extra\d/)?p.match(/columns--mobile_extra\d/).join().slice(-1):n,d=p.match(/columns--mobile\d/)?p.match(/columns--mobile\d/).join().slice(-1):1,p=+p.match(/wpr-grid-slides-to-scroll-\d/).join().slice(-1),g.slick({appendDots:C.find(".wpr-grid-slider-dots"),customPaging:function(e,t){e.slideCount;return'<span class="wpr-grid-slider-dot"></span>'},slidesToShow:e,responsive:[{breakpoint:1e4,settings:{slidesToShow:t,slidesToScroll:t<p?1:p}},{breakpoint:2399,settings:{slidesToShow:e,slidesToScroll:e<p?1:p}},{breakpoint:1221,settings:{slidesToShow:a,slidesToScroll:a<p?1:p}},{breakpoint:1200,settings:{slidesToShow:l,slidesToScroll:l<p?1:p}},{breakpoint:1024,settings:{slidesToShow:n,slidesToScroll:n<p?1:p}},{breakpoint:880,settings:{slidesToShow:o,slidesToScroll:o<p?1:p}},{breakpoint:768,settings:{slidesToShow:d,slidesToScroll:d<p?1:p}}]}),C.find(".slick-dots").length&&C.hasClass("wpr-grid-slider-dots-horizontal")&&(f=C.find(".slick-dots li").outerWidth()*C.find(".slick-dots li").length-parseInt(C.find(".slick-dots li span").css("margin-right"),10),C.find(".slick-dots").length&&C.find(".slick-dots").css("width",f),S(window).on("resize",function(){setTimeout(function(){var e=C.find(".slick-dots li").outerWidth()*C.find(".slick-dots li").length-parseInt(C.find(".slick-dots li span").css("margin-right"),10);C.find(".slick-dots").css("width",e)},300)})),u=JSON.parse(g.attr("data-slick"))),"yes"!==g.find(".wpr-grid-media-wrap").attr("data-overlay-link")||v.editorCheck()||(g.find(".wpr-grid-media-wrap").css("cursor","pointer"),g.find(".wpr-grid-media-wrap").on("click",function(e){var t=e.target.className;-1===t.indexOf("inner-block")&&-1===t.indexOf("wpr-cv-inner")&&-1===t.indexOf("wpr-grid-media-hover")||(e.preventDefault(),e=(e=S(this).find(".wpr-grid-media-hover-bg").attr("data-url")).replace("#new_tab",""),"_blank"===g.find(".wpr-grid-item-title a").attr("target")?window.open(e,"_blank").focus():window.location.href=e)})),C.find(".wpr-sharing-trigger").length&&(d=C.find(".wpr-sharing-trigger"),p=C.find(".wpr-post-sharing-inner"),c=5,p.first().find("a").each(function(){c+=S(this).outerWidth()+parseInt(S(this).css("margin-right"),10)}),f=parseInt(p.find("a").css("margin-right"),10),"left"===d.attr("data-direction")?(p.css("width",c+"px"),p.css("left",-(f+c)+"px")):"right"===d.attr("data-direction")?(p.css("width",c+"px"),p.css("right",-(f+c)+"px")):"top"===d.attr("data-direction")?(p.find("a").css({"margin-right":"0","margin-top":f+"px"}),p.css({top:-f+"px",left:"50%","-webkit-transform":"translate(-50%, -100%)",transform:"translate(-50%, -100%)"})):"right"===d.attr("data-direction")?(p.css("width",c+"px"),p.css({left:f+"px"})):"bottom"===d.attr("data-direction")&&(p.find("a").css({"margin-right":"0","margin-bottom":f+"px"}),p.css({bottom:-f+"px",left:"50%","-webkit-transform":"translate(-50%, 100%)",transform:"translate(-50%, 100%)"})),"click"===d.attr("data-action")?d.on("click",function(){var e=S(this).next();"hidden"===e.css("visibility")?(e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)):(e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length))}):(d.on("mouseenter",function(){var e=S(this).next();e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)}),C.find(".wpr-grid-item-sharing").on("mouseleave",function(){var e=S(this).find(".wpr-post-sharing-inner");e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length)}))),g.find(".wpr-grid-item-add-to-cart").length&&(m=g.find(".wpr-grid-item-add-to-cart").find("i"),h=m.attr("class"),m.length&&(h=h.substring(h.indexOf("fa-"),h.length)),S("body").on("adding_to_cart",function(e,t,i){t.fadeTo("slow",.5)}),S("body").on("added_to_cart",function(e,t,i,s){s.fadeTo("slow",1),m.length&&(s.find("i").removeClass(h).addClass("fa-check"),setTimeout(function(){s.find("i").removeClass("fa-check").addClass(h)},3500))})),y(u),w()},widgetMagazineGrid:function(e){var t,i=e.find(".wpr-magazine-grid-wrap"),s=i.attr("data-slick"),r=i.attr("data-slide-effect");void 0!==s&&!1!==s&&i.slick({fade:"fade"===r}),"yes"!==i.find(".wpr-grid-media-wrap").attr("data-overlay-link")||v.editorCheck()||(i.find(".wpr-grid-media-wrap").css("cursor","pointer"),i.find(".wpr-grid-media-wrap").on("click",function(e){var t=e.target.className;-1===t.indexOf("inner-block")&&-1===t.indexOf("wpr-cv-inner")&&-1===t.indexOf("wpr-grid-media-hover")||(e.preventDefault(),window.location.href=S(this).find(".wpr-grid-media-hover-bg").attr("data-url"))})),e.find(".wpr-sharing-trigger").length&&(s=e.find(".wpr-sharing-trigger"),r=e.find(".wpr-post-sharing-inner"),t=5,r.first().find("a").each(function(){t+=S(this).outerWidth()+parseInt(S(this).css("margin-right"),10)}),i=parseInt(r.find("a").css("margin-right"),10),"left"===s.attr("data-direction")?(r.css("width",t+"px"),r.css("left",-(i+t)+"px")):"right"===s.attr("data-direction")?(r.css("width",t+"px"),r.css("right",-(i+t)+"px")):"top"===s.attr("data-direction")?(r.find("a").css({"margin-right":"0","margin-top":i+"px"}),r.css({top:-i+"px",left:"50%","-webkit-transform":"translate(-50%, -100%)",transform:"translate(-50%, -100%)"})):"right"===s.attr("data-direction")?(r.css("width",t+"px"),r.css({left:i+"px"})):"bottom"===s.attr("data-direction")&&(r.find("a").css({"margin-right":"0","margin-bottom":i+"px"}),r.css({bottom:-i+"px",left:"50%","-webkit-transform":"translate(-50%, 100%)",transform:"translate(-50%, 100%)"})),"click"===s.attr("data-action")?s.on("click",function(){var e=S(this).next();"hidden"===e.css("visibility")?(e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)):(e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length))}):(s.on("mouseenter",function(){var e=S(this).next();e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)}),e.find(".wpr-grid-item-sharing").on("mouseleave",function(){var e=S(this).find(".wpr-post-sharing-inner");e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length)}))),e.find(".wpr-post-like-button").length&&e.find(".wpr-post-like-button").on("click",function(){var i=S(this);return""!==i.attr("data-post-id")&&S.ajax({type:"POST",url:i.attr("data-ajax"),data:{action:"wpr_likes_init",post_id:i.attr("data-post-id"),nonce:i.attr("data-nonce")},beforeSend:function(){i.fadeTo(500,.5)},success:function(e){var t=i.attr("data-icon"),e=e.count;""===e.replace(/<\/?[^>]+(>|$)/g,"")?(e='<span class="wpr-post-like-count">'+i.attr("data-text")+"</span>",i.hasClass("wpr-likes-zero")||i.addClass("wpr-likes-zero")):i.removeClass("wpr-likes-zero"),i.hasClass("wpr-already-liked")?(i.prop("title","Like"),i.removeClass("wpr-already-liked"),i.html('<i class="'+t+'"></i>'+e)):(i.prop("title","Unlike"),i.addClass("wpr-already-liked"),i.html('<i class="'+t.replace("far","fas")+'"></i>'+e)),i.fadeTo(500,1)}}),!1})},widgetFeaturedMedia:function(e){var t=e.find(".wpr-gallery-slider"),i=t.attr("data-slick");t.animate({opacity:"1"},1e3),"[]"!==i&&t.slick({appendDots:e.find(".wpr-gallery-slider-dots"),customPaging:function(e,t){e.slideCount;return'<span class="wpr-gallery-slider-dot"></span>'}});var a=S(".wpr-featured-media-image").attr("data-lightbox");void 0===a||!1===a||v.editorCheck()||(e=e.find(".wpr-featured-media-wrap"),a=JSON.parse(a),e.lightGallery(a),e.on("onAferAppendSlide.lg, onAfterSlide.lg",function(e,t,i){var s=S("#lg-actual-size, #lg-zoom-in, #lg-zoom-out, #lg-download"),r=S("#lg-download").attr("href");S("#lg-download").length&&(-1===r.indexOf("wp-content")?s.addClass("wpr-hidden-element"):s.removeClass("wpr-hidden-element")),""===a.autoplay&&S(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})}))},widgetProductMedia:function(e){var t=e.find(".wpr-product-media-image"),i=e.find(".wpr-gallery-slider"),s=i.attr("data-slick");i.animate({opacity:"1"},1e3),"[]"!==s&&i.length&&(s=JSON.parse(s),i.slick(),"yes"===s.thumbnail_nav&&((r=e.find(".wpr-product-thumb-nav")).slick(),r.find("li").on("click",function(){var e=S(this).attr("data-slick-index");S(this).siblings().removeClass("slick-current"),S(this).addClass("slick-current"),i.slick("slickGoTo",parseInt(e,10))})));var r,a=S(".wpr-product-media-image").attr("data-lightbox");void 0===a||!1===a||v.editorCheck()||(r=e.find(".wpr-product-media-wrap"),a=JSON.parse(a),r.lightGallery(a),r.on("onAferAppendSlide.lg, onAfterSlide.lg",function(e,t,i){var s=S("#lg-actual-size, #lg-zoom-in, #lg-zoom-out, #lg-download"),r=S("#lg-download").attr("href");S("#lg-download").length&&(-1===r.indexOf("wp-content")?s.addClass("wpr-hidden-element"):s.removeClass("wpr-hidden-element")),""===a.autoplay&&S(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})})),e.hasClass("wpr-gallery-zoom-yes")&&t.on("mousemove",function(e){var t=(e.pageX-S(this).offset().left)/S(this).width()*100,e=(e.pageY-S(this).offset().top)/S(this).height()*100;S(this).children("img").css({"transform-origin":t+"% "+e+"%"})})},widgetCountDown:function(t){var e,i,s,r=t.children(".elementor-widget-container").children(".wpr-countdown-wrap"),a=null,l=r.data("interval"),n=r.data("show-again"),o=new Date(1e3*l);function d(){var e=o-new Date,s={days:Math.floor(e/864e5),hours:Math.floor(e/36e5%24),minutes:Math.floor(e/1e3/60%60),seconds:Math.floor(e/1e3%60)};(s.days<0||s.hours<0||s.minutes<0)&&(s={days:0,hours:0,minutes:0,seconds:0}),t.find(".wpr-countdown-number").each(function(){var e=s[S(this).attr("data-item")];1===e.toString().length&&(e="0"+e),S(this).text(e);var t,i=S(this).next();i.length&&(S(this).hasClass("wpr-countdown-seconds")||(t=i.data("text"),"01"==e?i.text(t.singular):i.text(t.plural)))}),e<0&&(clearInterval(a),e=r.data("actions"),v.editorCheck()||(e.hasOwnProperty("hide-timer")&&r.hide(),e.hasOwnProperty("hide-element")&&S(e["hide-element"]).hide(),e.hasOwnProperty("message")&&(t.children(".elementor-widget-container").children(".wpr-countdown-message").length||r.after('<div class="wpr-countdown-message">'+e.message+"</div>")),e.hasOwnProperty("redirect")&&(window.location.href=e.redirect),e.hasOwnProperty("load-template")&&r.parent().find(".elementor-inner").parent().show()))}"evergreen"===r.data("type")&&(e=new Date,i=t.attr("data-id"),s=JSON.parse(localStorage.getItem("WprCountDownSettings"))||{},(o=!s.hasOwnProperty(i)||0===Object.keys(s).length||l!==s[i].interval?e.setSeconds(e.getSeconds()+l):s[i].endTime)+n<e.setSeconds(e.getSeconds())&&(o=e.setSeconds(e.getSeconds()+l)),s[i]={interval:l,endTime:o},localStorage.setItem("WprCountDownSettings",JSON.stringify(s))),d(),v.editorCheck()||(a=setInterval(d,1e3))},widgetGoogleMaps:function(e){for(var t=e.find(".wpr-google-map"),i=t.data("settings"),e=t.data("controls"),s=t.data("locations"),r=[],a=new google.maps.LatLngBounds,l=new google.maps.Map(t[0],{mapTypeId:i.type,styles:function(e){var t;switch(e.style){case"simple":t=JSON.parse('[{"featureType":"road","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#fffffa"}]},{"featureType":"water","stylers":[{"lightness":50}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"transit","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry","stylers":[{"lightness":40}]}]');break;case"white-black":t=JSON.parse('[{"featureType":"road","elementType":"labels","stylers":[{"visibility":"on"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]},{"featureType":"administrative","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"weight":1}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"weight":0.8}]},{"featureType":"landscape","stylers":[{"color":"#ffffff"}]},{"featureType":"water","stylers":[{"visibility":"off"}]},{"featureType":"transit","stylers":[{"visibility":"off"}]},{"elementType":"labels","stylers":[{"visibility":"off"}]},{"elementType":"labels.text","stylers":[{"visibility":"on"}]},{"elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"elementType":"labels.text.fill","stylers":[{"color":"#000000"}]},{"elementType":"labels.icon","stylers":[{"visibility":"on"}]}]');break;case"light-silver":t=JSON.parse('[{"featureType":"water","elementType":"geometry","stylers":[{"color":"#e9e9e9"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffffff"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#ffffff"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":21}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#dedede"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#333333"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#f2f2f2"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#fefefe"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#fefefe"},{"lightness":17},{"weight":1.2}]}]');break;case"light-grayscale":t=JSON.parse('[{"featureType":"all","elementType":"geometry.fill","stylers":[{"weight":"2.00"}]},{"featureType":"all","elementType":"geometry.stroke","stylers":[{"color":"#9c9c9c"}]},{"featureType":"all","elementType":"labels.text","stylers":[{"visibility":"on"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"landscape","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"landscape.man_made","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"color":"#eeeeee"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#7b7b7b"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#46bcec"},{"visibility":"on"}]},{"featureType":"water","elementType":"geometry.fill","stylers":[{"color":"#c8d7d4"}]},{"featureType":"water","elementType":"labels.text.fill","stylers":[{"color":"#070707"}]},{"featureType":"water","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]}]');break;case"subtle-grayscale":t=JSON.parse('[{"featureType":"administrative","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"administrative.province","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"all","stylers":[{"saturation":-100},{"lightness":65},{"visibility":"on"}]},{"featureType":"poi","elementType":"all","stylers":[{"saturation":-100},{"lightness":"50"},{"visibility":"simplified"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"all","stylers":[{"lightness":"30"}]},{"featureType":"road.local","elementType":"all","stylers":[{"lightness":"40"}]},{"featureType":"transit","elementType":"all","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffff00"},{"lightness":-25},{"saturation":-97}]},{"featureType":"water","elementType":"labels","stylers":[{"lightness":-25},{"saturation":-100}]}]');break;case"mostly-white":t=JSON.parse('[{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#6195a0"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"landscape","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"color":"#e6f3d6"},{"visibility":"on"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45},{"visibility":"simplified"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#f4d2c5"},{"visibility":"simplified"}]},{"featureType":"road.highway","elementType":"labels.text","stylers":[{"color":"#4e4e4e"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#f4f4f4"}]},{"featureType":"road.arterial","elementType":"labels.text.fill","stylers":[{"color":"#787878"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#eaf6f8"},{"visibility":"on"}]},{"featureType":"water","elementType":"geometry.fill","stylers":[{"color":"#eaf6f8"}]}]');break;case"mostly-green":t=JSON.parse('[{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"color":"#f7f1df"}]},{"featureType":"landscape.natural","elementType":"geometry","stylers":[{"color":"#d0e3b4"}]},{"featureType":"landscape.natural.terrain","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.medical","elementType":"geometry","stylers":[{"color":"#fbd3da"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#bde6ab"}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffe15f"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#efd151"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.local","elementType":"geometry.fill","stylers":[{"color":"black"}]},{"featureType":"transit.station.airport","elementType":"geometry.fill","stylers":[{"color":"#cfb2db"}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#a2daf2"}]}]');break;case"neutral-blue":t=JSON.parse('[{"featureType":"water","elementType":"geometry","stylers":[{"color":"#193341"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#2c5a71"}]},{"featureType":"road","elementType":"geometry","stylers":[{"color":"#29768a"},{"lightness":-37}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#406d80"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#406d80"}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#3e606f"},{"weight":2},{"gamma":0.84}]},{"elementType":"labels.text.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"administrative","elementType":"geometry","stylers":[{"weight":0.6},{"color":"#1a3541"}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#2c5a71"}]}]');break;case"blue-water":t=JSON.parse('[{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#444444"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#46bcec"},{"visibility":"on"}]}]');break;case"blue-essense":t=JSON.parse('[{"featureType":"landscape.natural","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#e0efef"}]},{"featureType":"poi","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"hue":"#1900ff"},{"color":"#c0e8e8"}]},{"featureType":"road","elementType":"geometry","stylers":[{"lightness":100},{"visibility":"simplified"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"transit.line","elementType":"geometry","stylers":[{"visibility":"on"},{"lightness":700}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#7dcdcd"}]}]');break;case"golden-brown":t=JSON.parse('[{"featureType":"all","elementType":"all","stylers":[{"color":"#ff7000"},{"lightness":"69"},{"saturation":"100"},{"weight":"1.17"},{"gamma":"2.04"}]},{"featureType":"all","elementType":"geometry","stylers":[{"color":"#cb8536"}]},{"featureType":"all","elementType":"labels","stylers":[{"color":"#ffb471"},{"lightness":"66"},{"saturation":"100"}]},{"featureType":"all","elementType":"labels.text.fill","stylers":[{"gamma":0.01},{"lightness":20}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"saturation":-31},{"lightness":-33},{"weight":2},{"gamma":0.8}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"all","stylers":[{"lightness":"-8"},{"gamma":"0.98"},{"weight":"2.45"},{"saturation":"26"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"lightness":30},{"saturation":30}]},{"featureType":"poi","elementType":"geometry","stylers":[{"saturation":20}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"lightness":20},{"saturation":-20}]},{"featureType":"road","elementType":"geometry","stylers":[{"lightness":10},{"saturation":-30}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"saturation":25},{"lightness":25}]},{"featureType":"water","elementType":"all","stylers":[{"lightness":-20},{"color":"#ecc080"}]}]');break;case"midnight-commander":t=JSON.parse('[{"featureType":"all","elementType":"labels.text.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"color":"#000000"},{"lightness":13}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#144b53"},{"lightness":14},{"weight":1.4}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#08304b"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#0c4152"},{"lightness":5}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#0b434f"},{"lightness":25}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"road.arterial","elementType":"geometry.stroke","stylers":[{"color":"#0b3d51"},{"lightness":16}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"}]},{"featureType":"transit","elementType":"all","stylers":[{"color":"#146474"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#021019"}]}]');break;case"shades-of-grey":t=JSON.parse('[{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":17}]}]');break;case"yellow-black":t=JSON.parse('[{"featureType":"all","elementType":"labels","stylers":[{"visibility":"on"}]},{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]},{"featureType":"administrative.country","elementType":"labels.text.fill","stylers":[{"color":"#e5c163"}]},{"featureType":"administrative.locality","elementType":"labels.text.fill","stylers":[{"color":"#c4c4c4"}]},{"featureType":"administrative.neighborhood","elementType":"labels.text.fill","stylers":[{"color":"#e5c163"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21},{"visibility":"on"}]},{"featureType":"poi.business","elementType":"geometry","stylers":[{"visibility":"on"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#e5c163"},{"lightness":"0"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"labels.text.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.highway","elementType":"labels.text.stroke","stylers":[{"color":"#e5c163"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#575757"}]},{"featureType":"road.arterial","elementType":"labels.text.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.arterial","elementType":"labels.text.stroke","stylers":[{"color":"#2c2c2c"}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"road.local","elementType":"labels.text.fill","stylers":[{"color":"#999999"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":17}]}]');break;case"custom":t=JSON.parse(e.custom_style);break;default:t=""}return t}(i),zoom:i.zoom_depth,gestureHandling:i.zoom_on_scroll,mapTypeControl:e.type,fullscreenControl:e.fullscreen,zoomControl:e.zoom,streetViewControl:e.streetview}),n=0;n<s.length;n++){var o=s[n],d="",p=o.gm_marker_icon_size_width.size,c=o.gm_marker_icon_size_height.size;""!=o.gm_latitude&&""!=o.gm_longtitude&&("yes"===o.gm_custom_marker&&(d={url:o.gm_marker_icon.url,scaledSize:new google.maps.Size(p,c)}),d=new google.maps.Marker({map:l,position:new google.maps.LatLng(parseFloat(o.gm_latitude),parseFloat(o.gm_longtitude)),animation:google.maps.Animation[o.gm_marker_animation],icon:d}),"none"!==o.gm_show_info_window&&function(e,t){var i='<div class="wpr-gm-iwindow"><h3>'+t.gm_location_title+"</h3><p>"+t.gm_location_description+"</p></div>",s=new google.maps.InfoWindow({content:i,maxWidth:t.gm_info_window_width.size});"load"===t.gm_show_info_window?s.open(l,e):e.addListener("click",function(){s.open(l,e)})}(d,o),r.push(d),a.extend(d.position))}1<s.length?l.fitBounds(a):l.setCenter(a.getCenter()),"yes"===i.cluster_markers&&new MarkerClusterer(l,r,{imagePath:i.clusters_url})},widgetBeforeAfter:function(e){var r=e.find(".wpr-ba-image-container"),i=(r.find(".wpr-ba-image-1"),r.find(".wpr-ba-image-2")),a=r.find(".wpr-ba-divider"),e=r.attr("data-position");function s(){var e,t,i=r.find(".wpr-ba-label-1 div"),s=r.find(".wpr-ba-label-2 div");(i.length||s.length)&&(r.hasClass("wpr-ba-horizontal")?(e=i.position().left+i.outerWidth(),t=s.position().left+s.outerWidth(),e+15>=parseInt(a.css("left"),10)?i.stop().css("opacity",0):i.stop().css("opacity",1),r.outerWidth()-(t+15)<=parseInt(a.css("left"),10)?s.stop().css("opacity",0):s.stop().css("opacity",1)):(e=i.position().top+i.outerHeight(),t=s.position().top+s.outerHeight(),e+15>=parseInt(a.css("top"),10)?i.stop().css("opacity",0):i.stop().css("opacity",1),r.outerHeight()-(t+15)<=parseInt(a.css("top"),10)?s.stop().css("opacity",0):s.stop().css("opacity",1)))}r.hasClass("wpr-ba-horizontal")?(a.css("left",e+"%"),i.css("left",e+"%"),i.find("img").css("right",e+"%"),a.on("move",function(e){e=e.pageX-r.offset().left;a.css({left:"auto",right:"auto"}),i.css({left:"auto",right:"auto"}),0<e&&e<r.outerWidth()?(a.css("left",e),i.css("left",e),i.find("img").css("right",e)):e<=0?(a.css("left",0),i.css("left",0),i.find("img").css("right",0)):e>=r.outerWidth()&&(a.css("right",-a.outerWidth()/2),i.css("right",0),i.find("img").css("right","100%")),s()})):(a.css("top",e+"%"),i.css("top",e+"%"),i.find("img").css("bottom",e+"%"),a.on("move",function(e){e=e.pageY-r.offset().top;a.css({top:"auto",bottom:"auto"}),i.css({top:"auto",bottom:"auto"}),0<e&&e<r.outerHeight()?(a.css("top",e),i.css("top",e),i.find("img").css("bottom",e)):e<=0?(a.css("top",0),i.css("top",0),i.find("img").css("bottom",0)):e>=r.outerHeight()&&(a.css("bottom",-a.outerHeight()/2),i.css("bottom",0),i.find("img").css("bottom","100%")),s()})),"mouse"===r.attr("data-trigger")&&r.on("mousemove",function(e){var t;r.hasClass("wpr-ba-horizontal")?(t=e.pageX-S(this).offset().left,a.css("left",t),i.css("left",t),i.find("img").css("right",t)):(t=e.pageY-S(this).offset().top,a.css("top",t),i.css("top",t),i.find("img").css("bottom",t)),s()}),s()},widgetMailchimp:function(i){var s=i.find("form");s.on("submit",function(e){e.preventDefault();var t=S(this).find("button").text();S(this).find("button").text(S(this).find("button").data("loading")),S.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"mailchimp_subscribe",fields:S(this).serialize(),apiKey:s.data("api-key"),listId:s.data("list-id")},success:function(e){s.find("button").text(t),("subscribed"===e.status?i.find(".wpr-mailchimp-success-message"):i.find(".wpr-mailchimp-error-message")).show(),i.find(".wpr-mailchimp-message").fadeIn()}})})},widgetAdvancedSlider:function(t){var l=t.find(".wpr-advanced-slider"),e=(l.data("slick"),t.attr("class")),i=e.match(/wpr-adv-slider-columns-\d/)?e.match(/wpr-adv-slider-columns-\d/).join().slice(-1):2,s=e.match(/columns--widescreen\d/)?e.match(/columns--widescreen\d/).join().slice(-1):i,r=e.match(/columns--laptop\d/)?e.match(/columns--laptop\d/).join().slice(-1):i,a=e.match(/columns--tablet_extra\d/)?e.match(/columns--tablet_extra\d/).join().slice(-1):n,n=e.match(/columns--tablet\d/)?e.match(/columns--tablet\d/).join().slice(-1):2,o=e.match(/columns--mobile_extra\d/)?e.match(/columns--mobile_extra\d/).join().slice(-1):n,d=e.match(/columns--mobile\d/)?e.match(/columns--mobile\d/).join().slice(-1):1,p=+e.match(/wpr-adv-slides-to-scroll-\d/).join().slice(-1),e=l.attr("data-slide-effect");function c(){var e,t,i=l.find(".wpr-slider-item").outerWidth(),s=l.find(".wpr-slider-item").outerHeight(),r=0,a=0;16/9<i/s?r="-"+((e=(t=i)/(16/9))-s)/2+"px":a="-"+((t=(e=s)*(16/9))-i)/2+"px",l.find("iframe").css({width:t+"px",height:e+"px","max-width":"none",position:"absolute",left:a+"",top:r+"",display:"block","text-align":"inherit","line-height":"0px","border-width":"0px",margin:"0px",padding:"0px"})}function f(){l.find(".slick-active").each(function(){var e=S(this).attr("data-video-src"),t=S(this).attr("data-video-autoplay");1!==S(this).find(".wpr-slider-video").length&&"yes"===t&&((1==i?S(this).find(".wpr-cv-inner"):S(this).find(".wpr-cv-container")).prepend('<div class="wpr-slider-video"><iframe src="'+e+'" width="100%" height="100%" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>'),c())})}function m(){l.find(".slick-active").find(".wpr-slider-content").fadeIn(0),1==i&&l.find(".slick-active").find(".wpr-slider-animation").addClass("wpr-animation-enter")}l.slick({appendArrows:t.find(".wpr-slider-controls"),appendDots:t.find(".wpr-slider-dots"),customPaging:function(e,t){e.slideCount;return'<span class="wpr-slider-dot"></span>'},slidesToShow:i,responsive:[{breakpoint:1e4,settings:{slidesToShow:s,slidesToScroll:s<p?1:p,fade:1==s&&"fade"===e}},{breakpoint:2399,settings:{slidesToShow:i,slidesToScroll:i<p?1:p,fade:1==i&&"fade"===e}},{breakpoint:1221,settings:{slidesToShow:r,slidesToScroll:r<p?1:p,fade:1==r&&"fade"===e}},{breakpoint:1200,settings:{slidesToShow:a,slidesToScroll:a<p?1:p,fade:1==a&&"fade"===e}},{breakpoint:1024,settings:{slidesToShow:n,slidesToScroll:n<p?1:p,fade:1==n&&"fade"===e}},{breakpoint:880,settings:{slidesToShow:o,slidesToScroll:o<p?1:p,fade:1==o&&"fade"===e}},{breakpoint:768,settings:{slidesToShow:d,slidesToScroll:d<p?1:p,fade:1==d&&"fade"===e}}]}),S(window).on("load resize",function(){c()}),f(),m(),l.find(".wpr-slider-video-btn").on("click",function(){var e=S(this).closest(".slick-active"),t=e.attr("data-video-src");1!==e.find(".wpr-slider-video").length&&(e.find(".wpr-cv-container").prepend('<div class="wpr-slider-video"><iframe src="'+t+'" width="100%" height="100%" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>'),c(),e.find(".wpr-slider-content").fadeOut(300))}),l.on({beforeChange:function(){l.find(".wpr-slider-item").not(".slick-active").find(".wpr-slider-video").remove(),l.find(".wpr-animation-enter").find(".wpr-slider-content").fadeOut(300),1==i&&l.find(".wpr-slider-item").not(".slick-active").find(".wpr-slider-animation").removeClass("wpr-animation-enter")},afterChange:function(e,t,i){m(),f()}}),t.find(".slick-dots").length&&t.hasClass("wpr-slider-dots-horizontal")&&(e=t.find(".slick-dots li").outerWidth()*t.find(".slick-dots li").length-parseInt(t.find(".slick-dots li span").css("margin-right"),10),t.find(".slick-dots").length&&t.find(".slick-dots").css("width",e),S(window).on("resize",function(){setTimeout(function(){var e=t.find(".slick-dots li").outerWidth()*t.find(".slick-dots li").length-parseInt(t.find(".slick-dots li span").css("margin-right"),10);t.find(".slick-dots").css("width",e)},300)}))},widgetTestimonialCarousel:function(t){var e=t.find(".wpr-testimonial-carousel"),i=t.attr("class"),s=i.match(/wpr-testimonial-slider-columns-\d/)?i.match(/wpr-testimonial-slider-columns-\d/).join().slice(-1):2,r=i.match(/columns--widescreen\d/)?i.match(/columns--widescreen\d/).join().slice(-1):s,a=i.match(/columns--laptop\d/)?i.match(/columns--laptop\d/).join().slice(-1):s,l=i.match(/columns--tablet_extra\d/)?i.match(/columns--tablet_extra\d/).join().slice(-1):n,n=i.match(/columns--tablet\d/)?i.match(/columns--tablet\d/).join().slice(-1):2,o=i.match(/columns--mobile_extra\d/)?i.match(/columns--mobile_extra\d/).join().slice(-1):n,d=i.match(/columns--mobile\d/)?i.match(/columns--mobile\d/).join().slice(-1):1,p=+i.match(/wpr-adv-slides-to-scroll-\d/).join().slice(-1),i=e.attr("data-slide-effect");e.slick({appendArrows:t.find(".wpr-testimonial-controls"),appendDots:t.find(".wpr-testimonial-dots"),customPaging:function(e,t){e.slideCount;return'<span class="wpr-testimonial-dot"></span>'},slidesToShow:s,responsive:[{breakpoint:1e4,settings:{slidesToShow:r,slidesToScroll:r<p?1:p,fade:1==r&&"fade"===i}},{breakpoint:2399,settings:{slidesToShow:s,slidesToScroll:s<p?1:p,fade:1==s&&"fade"===i}},{breakpoint:1221,settings:{slidesToShow:a,slidesToScroll:a<p?1:p,fade:1==a&&"fade"===i}},{breakpoint:1200,settings:{slidesToShow:l,slidesToScroll:l<p?1:p,fade:1==l&&"fade"===i}},{breakpoint:1024,settings:{slidesToShow:n,slidesToScroll:n<p?1:p,fade:1==n&&"fade"===i}},{breakpoint:880,settings:{slidesToShow:o,slidesToScroll:o<p?1:p,fade:1==o&&"fade"===i}},{breakpoint:768,settings:{slidesToShow:d,slidesToScroll:d<p?1:p,fade:1==d&&"fade"===i}}]}),t.hasClass("wpr-testimonial-nav-fade")&&(t.on("mouseover",function(){t.closest("section").find(".wpr-testimonial-arrow").css({opacity:1})}),t.closest("section").on("mouseout",function(){t.find(".wpr-testimonial-arrow").css({opacity:0})})),t.find(".slick-dots").length&&(i=t.find(".slick-dots li").outerWidth()*t.find(".slick-dots li").length-parseInt(t.find(".slick-dots li span").css("margin-right"),10),t.find(".slick-dots").css("width",i)),S(window).on("resize",function(){setTimeout(function(){var e;t.find(".slick-dots").length&&(e=t.find(".slick-dots li").outerWidth()*t.find(".slick-dots li").length-parseInt(t.find(".slick-dots li span").css("margin-right"),10),t.find(".slick-dots").css("width",e))},300)})},widgetSearch:function(e){e.find(".wpr-search-form-input").on({focus:function(){e.addClass("wpr-search-form-input-focus")},blur:function(){e.removeClass("wpr-search-form-input-focus")}})},widgetAdvancedText:function(l){var e,t,i,r,a,n,o,d,p,c;function s(){var e,t,i,s=l.find(".wpr-clipped-text"),r=s.data("clipped-options"),a=elementorFrontend.getCurrentDeviceMode();r&&(e=r.longShadowSize,t=r.longShadowSizeTablet,i=r.longShadowSizeMobile,"desktop"===a&&(e=r.longShadowSize),"tablet"===a&&t&&(e=t),"mobile"===a&&i&&(e=i),s.find(".wpr-clipped-text-long-shadow").attr("style","text-shadow:"+function(e,t,i){for(var s="",r=0,a=t;r<a;r++)switch(i){case"top":s+="0 -"+r+"px 0 "+e+",";break;case"right":s+=r+"px 0 0 "+e+",";break;case"bottom":s+="0 "+r+"px 0 "+e+",";break;case"left":s+="-"+r+"px 0 0 "+e+",";break;case"top-left":s+="-"+r+"px -"+r+"px 0 "+e+",";break;case"top-right":s+=r+"px -"+r+"px 0 "+e+",";break;case"bottom-left":s+="-"+r+"px "+r+"px 0 "+e+",";break;case"bottom-right":default:s+=r+"px "+r+"px 0 "+e+","}return s=s.slice(0,-1)}(r.longShadowColor,e,r.longShadowDirection)))}function f(e){var t,i,s=g(e);"yes"!==r&&++n===a||(e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-typing")?((t=e.parent(".wpr-anim-text-inner")).addClass("wpr-anim-text-selected").removeClass("waiting"),setTimeout(function(){t.removeClass("wpr-anim-text-selected"),e.removeClass("wpr-anim-text-visible").addClass("wpr-anim-text-hidden").children("i").removeClass("wpr-anim-text-in").addClass("wpr-anim-text-out")},p),setTimeout(function(){m(s,o)},c)):e.parents(".wpr-anim-text").hasClass("wpr-anim-text-letters")?(i=e.children("i").length>=s.children("i").length,function e(t,i,s,r){t.removeClass("wpr-anim-text-in").addClass("wpr-anim-text-out");t.is(":last-child")?s&&setTimeout(function(){f(g(i))},d):setTimeout(function(){e(t.next(),i,s,r)},r);{var a;t.is(":last-child")&&(a=g(i),u(i,a))}}(e.find("i").eq(0),e,i,o),h(s.find("i").eq(0),s,i,o)):e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-clip")?e.parents(".wpr-anim-text-inner").animate({width:"2px"},o,function(){u(e,s),m(s)}):(u(e,s),setTimeout(function(){f(s)},d)))}function m(e,t){e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-typing")?(h(e.find("i").eq(0),e,!1,t),e.addClass("wpr-anim-text-visible").removeClass("wpr-anim-text-hidden")):e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-clip")&&e.parents(".wpr-anim-text-inner").animate({width:e.outerWidth()},o,function(){setTimeout(function(){f(e)},d)})}function h(e,t,i,s){e.addClass("wpr-anim-text-in").removeClass("wpr-anim-text-out"),e.is(":last-child")?(t.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-typing")&&setTimeout(function(){t.parents(".wpr-anim-text-inner").addClass("waiting")},200),i||setTimeout(function(){f(t)},d)):setTimeout(function(){h(e.next(),t,i,s)},s)}function g(e){return e.is(":last-child")?e.parent().children().eq(0):e.next()}function u(e,t){e.removeClass("wpr-anim-text-visible").addClass("wpr-anim-text-hidden"),t.removeClass("wpr-anim-text-hidden").addClass("wpr-anim-text-visible")}l.hasClass("wpr-advanced-text-style-animated")&&(e=l.find(".wpr-anim-text"),t=l.find(".wpr-anim-text-letters"),i=(o=e.attr("data-anim-duration")).split(","),r=e.attr("data-anim-loop"),a=e.find("b").length,n=0,e.find("b").first().addClass("wpr-anim-text-visible"),o=parseInt(i[0],10),d=parseInt(i[1],10),c=(p=500)+800,t.find("b").each(function(){var e,t=S(this),i=t.text().split(""),s=t.hasClass("wpr-anim-text-visible");for(e in i){var r=i[e].replace(/ /g," ");i[e]=s?'<i class="wpr-anim-text-in">'+r+"</i>":"<i>"+r+"</i>"}var a=i.join("");t.html(a).css("opacity",1)}),function(){var s=d;e.each(function(){var e,t=S(this),i=t.find(".wpr-anim-text-inner");t.hasClass("wpr-anim-text-type-clip")&&(e=i.outerWidth(),i.css("width",e)),setTimeout(function(){f(t.find(".wpr-anim-text-visible").eq(0))},s),t.hasClass("wpr-anim-text-type-rotate-1")&&i.find("b").each(function(){S(this).outerWidth()>i.outerWidth()&&i.css("width",S(this).outerWidth())})})}()),s(),S(window).on("resize",function(){s()})},widgetProgressBar:function(e){var t=e.find(".wpr-progress-bar"),i=e.find(".wpr-prbar-circle"),s=(i.find(".wpr-prbar-circle-svg").find(".wpr-prbar-circle-line"),e.find(".wpr-prbar-circle-prline")),r=t.find(".wpr-prbar-hr-line-inner"),a=t.find(".wpr-prbar-vr-line-inner"),l=t.data("options"),n=i.data("circle-options"),o=t.find(".wpr-prbar-counter-value"),e=l.counterValue,d=l.counterValuePersent,t=l.animDuration,p=l.animDelay,c=(elementorFrontend.getCurrentDeviceMode(),{toValue:e,duration:t});function f(e){if(e.length){var t=e.offset().top,i=t+e.outerHeight(),s=S(window).scrollTop(),e=s+S(window).height();return t>S(window).height()&&(t+=50),s<i&&t<e}}function m(){var e;f(a)&&a.css({height:d+"%"}),f(r)&&r.css({width:d+"%"}),f(i)&&(e=n.circleOffset,s.css({"stroke-dashoffset":e})),(f(a)||f(r)||f(i))&&setTimeout(function(){o.numerator(c)},p)}"yes"===l.counterSeparator&&(c.delimiter=","),m(),S(window).on("scroll",function(){m()})},widgetImageHotspots:function(e){var t=e.find(".wpr-image-hotspots"),e=t.data("options"),i=t.find(".wpr-hotspot-item"),e=e.tooltipTrigger;"click"===e?(i.on("click",function(){S(this).hasClass("wpr-tooltip-active")?S(this).removeClass("wpr-tooltip-active"):(i.removeClass("wpr-tooltip-active"),S(this).addClass("wpr-tooltip-active")),event.stopPropagation()}),S(window).on("click",function(){i.removeClass("wpr-tooltip-active")})):"hover"===e?i.hover(function(){S(this).toggleClass("wpr-tooltip-active")}):i.addClass("wpr-tooltip-active")},widgetFlipBox:function(e){var t=e.find(".wpr-flip-box"),e=t.data("trigger");"box"===e?(t.find(".wpr-flip-box-front").on("click",function(){S(this).closest(".wpr-flip-box").addClass("wpr-flip-box-active")}),S(window).on("click",function(){0===S(event.target).closest(".wpr-flip-box").length&&t.removeClass("wpr-flip-box-active")})):"btn"==e?(t.find(".wpr-flip-box-btn").on("click",function(){S(this).closest(".wpr-flip-box").addClass("wpr-flip-box-active")}),S(window).on("click",function(){0===S(event.target).closest(".wpr-flip-box").length&&t.removeClass("wpr-flip-box-active")})):"hover"==e&&t.hover(function(){S(this).toggleClass("wpr-flip-box-active")})},widgetContentTicker:function(e){var t=e.find(".wpr-ticker-slider"),i=e.find(".wpr-ticker-marquee"),s=i.data("options"),r=e.attr("class"),a=r.match(/wpr-ticker-slider-columns-\d/)?r.match(/wpr-ticker-slider-columns-\d/).join().slice(-1):2,l=r.match(/columns--widescreen\d/)?r.match(/columns--widescreen\d/).join().slice(-1):a,n=r.match(/columns--laptop\d/)?r.match(/columns--laptop\d/).join().slice(-1):a,o=r.match(/columns--tablet_extra\d/)?r.match(/columns--tablet_extra\d/).join().slice(-1):d,d=r.match(/columns--tablet\d/)?r.match(/columns--tablet\d/).join().slice(-1):2,p=r.match(/columns--mobile_extra\d/)?r.match(/columns--mobile_extra\d/).join().slice(-1):d,c=r.match(/columns--mobile\d/)?r.match(/columns--mobile\d/).join().slice(-1):1,f=t.attr("data-slide-effect"),r="hr-slide"===f&&r.match(/wpr-ticker-slides-to-scroll-\d/)?+r.match(/wpr-ticker-slides-to-scroll-\d/).join().slice(-1):1;t.slick({appendArrows:e.find(".wpr-ticker-slider-controls"),slidesToShow:a,responsive:[{breakpoint:1e4,settings:{slidesToShow:"typing"===f||"fade"===f?1:l,slidesToScroll:l<r?1:r,fade:"typing"===f||"fade"===f}},{breakpoint:2399,settings:{slidesToShow:"typing"===f||"fade"===f?1:a,slidesToScroll:a<r?1:r,fade:"typing"===f||"fade"===f}},{breakpoint:1221,settings:{slidesToShow:"typing"===f||"fade"===f?1:n,slidesToScroll:n<r?1:r,fade:"typing"===f||"fade"===f}},{breakpoint:1200,settings:{slidesToShow:"typing"===f||"fade"===f?1:o,slidesToScroll:o<r?1:r,fade:"typing"===f||"fade"===f}},{breakpoint:1024,settings:{slidesToShow:"typing"===f||"fade"===f?1:d,slidesToScroll:d<r?1:r,fade:"typing"===f||"fade"===f}},{breakpoint:880,settings:{slidesToShow:"typing"===f||"fade"===f?1:p,slidesToScroll:p<r?1:r,fade:"typing"===f||"fade"===f}},{breakpoint:768,settings:{slidesToShow:"typing"===f||"fade"===f?1:c,slidesToScroll:c<r?1:r,fade:"typing"===f||"fade"===f}}]}),i.marquee(s)},widgetTabs:function(e){var t,i,s=S(".wpr-tabs",e).first(),r=S(".wpr-tabs-wrap",s).first(),a=S(".wpr-tabs-content-wrap",s).first(),r=S("> .wpr-tab",r),l=S("> .wpr-tab-content",a),e=s.data("options"),s=e.activeTab-1;function n(e){var t=r.eq(e),i=l.eq(e),e="auto";a.css({height:a.outerHeight(!0)}),r.removeClass("wpr-tab-active"),t.addClass("wpr-tab-active"),l.removeClass("wpr-tab-content-active wpr-animation-enter"),e=i.outerHeight(!0),e+=parseInt(a.css("border-top-width"))+parseInt(a.css("border-bottom-width")),i.addClass("wpr-tab-content-active wpr-animation-enter"),a.css({height:e}),setTimeout(function(){a.css({height:"auto"})},500)}r.eq(s).addClass("wpr-tab-active"),l.eq(s).addClass("wpr-tab-content-active wpr-animation-enter"),e.autoplay&&(t=e.activeTab-1,i=setInterval(function(){t<r.length-1?t++:t=0,n(t)},e.autoplaySpeed)),"hover"===e.trigger?r.hover(function(){var e=S(this).data("tab")-1;clearInterval(i),n(e)}):r.on("click",function(){var e=S(this).data("tab")-1;clearInterval(i),n(e)})},widgetContentToogle:function(r){var e=S(".wpr-content-toggle",r).first(),a=S(".wpr-switcher-container",e).first(),t=S(".wpr-switcher-wrap",e).first(),l=S(".wpr-switcher-content-wrap",e).first(),i=S("> .wpr-switcher-bg",t),n=S("> .wpr-switcher",t),o=S("> .wpr-switcher-content",l),e=parseInt(a.data("active-switcher"))-1;function d(e){var t;r.hasClass("wpr-switcher-label-style-outer")||(e=e*(t=100/n.length),i.css({width:t+"%",left:e+"%"}))}function s(e){var t,i=n.eq(e),s=o.eq(e);d(e),r.hasClass("wpr-switcher-label-style-outer")||(n.removeClass("wpr-switcher-active"),i.addClass("wpr-switcher-active"),r.hasClass("wpr-switcher-style-dual")&&a.attr("data-active-switcher",e+1)),l.css({height:l.outerHeight(!0)}),o.removeClass("wpr-switcher-content-active wpr-animation-enter"),t=s.outerHeight(!0),t+=parseInt(l.css("border-top-width"))+parseInt(l.css("border-bottom-width")),s.addClass("wpr-switcher-content-active wpr-animation-enter"),l.css({height:t}),setTimeout(function(){l.css({height:"auto"})},500)}n.eq(e).addClass("wpr-switcher-active"),o.eq(e).addClass("wpr-switcher-content-active wpr-animation-enter"),d(e),r.hasClass("wpr-switcher-label-style-outer")?t.on("click",function(){var e=t.find(".wpr-switcher-active");1===parseInt(e.data("switcher"),10)?(t.children(".wpr-switcher").eq(0).removeClass("wpr-switcher-active"),t.children(".wpr-switcher").eq(1).addClass("wpr-switcher-active"),t.closest(".wpr-switcher-container").attr("data-active-switcher",2),s(1)):2===parseInt(e.data("switcher"),10)&&(t.children(".wpr-switcher").eq(1).removeClass("wpr-switcher-active"),t.children(".wpr-switcher").eq(0).addClass("wpr-switcher-active"),t.closest(".wpr-switcher-container").attr("data-active-switcher",1),s(0))}):n.on("click",function(){s(S(this).data("switcher")-1)})},widgetBackToTop:function(e){var s=e.find(".wpr-stt-btn"),t=s.attr("data-settings");function i(e,t,i){e>i.animationOffset?"fade"===i.animation?s.stop().css("visibility","visible").animate({opacity:"1"},i.animationDuration):"slide"===i.animation?s.stop().css("visibility","visible").animate({opacity:"1","margin-bottom":0},i.animationDuration):s.css("visibility","visible"):"fade"===i.animation?s.stop().animate({opacity:"0"},i.animationDuration):"slide"===i.animation?s.stop().animate({"margin-bottom":"-100px",opacity:"0"},i.animationDuration):s.css("visibility","hidden")}"fixed"===(t=JSON.parse(t)).fixed&&("none"!==t.animation&&(s.css({opacity:"0"}),"slide"===t.animation&&s.css({"margin-bottom":"-100px"})),i(S(window).scrollTop(),0,t),S(window).scroll(function(){i(S(this).scrollTop(),0,t)})),s.on("click",function(){return S("html, body").animate({scrollTop:0},t.scrolAnim),!1})},editorCheck:function(){return!!S("body").hasClass("elementor-editor-active")}};S(window).on("elementor/frontend/init",v.init)}(jQuery,window.elementorFrontend),function(t){jQuery.fn[t]=function(e){return e?this.bind("resize",(i=e,function(){var e=this,t=arguments;a?clearTimeout(a):r&&i.apply(e,t),a=setTimeout(function(){r||i.apply(e,t),a=null},s||100)})):this.trigger(t);var i,s,r,a}}((jQuery,"smartresize"));
|
assets/js/lib/jarallax/jarallax.js
ADDED
@@ -0,0 +1,1033 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Name : Just Another Parallax [Jarallax]
|
3 |
+
* Version : 1.12.7
|
4 |
+
* Author : nK <https://nkdev.info>
|
5 |
+
* GitHub : https://github.com/nk-o/jarallax
|
6 |
+
*/
|
7 |
+
/******/ (function(modules) { // webpackBootstrap
|
8 |
+
/******/ // The module cache
|
9 |
+
/******/ var installedModules = {};
|
10 |
+
/******/
|
11 |
+
/******/ // The require function
|
12 |
+
/******/ function __webpack_require__(moduleId) {
|
13 |
+
/******/
|
14 |
+
/******/ // Check if module is in cache
|
15 |
+
/******/ if(installedModules[moduleId]) {
|
16 |
+
/******/ return installedModules[moduleId].exports;
|
17 |
+
/******/ }
|
18 |
+
/******/ // Create a new module (and put it into the cache)
|
19 |
+
/******/ var module = installedModules[moduleId] = {
|
20 |
+
/******/ i: moduleId,
|
21 |
+
/******/ l: false,
|
22 |
+
/******/ exports: {}
|
23 |
+
/******/ };
|
24 |
+
/******/
|
25 |
+
/******/ // Execute the module function
|
26 |
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
27 |
+
/******/
|
28 |
+
/******/ // Flag the module as loaded
|
29 |
+
/******/ module.l = true;
|
30 |
+
/******/
|
31 |
+
/******/ // Return the exports of the module
|
32 |
+
/******/ return module.exports;
|
33 |
+
/******/ }
|
34 |
+
/******/
|
35 |
+
/******/
|
36 |
+
/******/ // expose the modules object (__webpack_modules__)
|
37 |
+
/******/ __webpack_require__.m = modules;
|
38 |
+
/******/
|
39 |
+
/******/ // expose the module cache
|
40 |
+
/******/ __webpack_require__.c = installedModules;
|
41 |
+
/******/
|
42 |
+
/******/ // define getter function for harmony exports
|
43 |
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
44 |
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
45 |
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
46 |
+
/******/ }
|
47 |
+
/******/ };
|
48 |
+
/******/
|
49 |
+
/******/ // define __esModule on exports
|
50 |
+
/******/ __webpack_require__.r = function(exports) {
|
51 |
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
52 |
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
53 |
+
/******/ }
|
54 |
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
55 |
+
/******/ };
|
56 |
+
/******/
|
57 |
+
/******/ // create a fake namespace object
|
58 |
+
/******/ // mode & 1: value is a module id, require it
|
59 |
+
/******/ // mode & 2: merge all properties of value into the ns
|
60 |
+
/******/ // mode & 4: return value when already ns object
|
61 |
+
/******/ // mode & 8|1: behave like require
|
62 |
+
/******/ __webpack_require__.t = function(value, mode) {
|
63 |
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
64 |
+
/******/ if(mode & 8) return value;
|
65 |
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
66 |
+
/******/ var ns = Object.create(null);
|
67 |
+
/******/ __webpack_require__.r(ns);
|
68 |
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
69 |
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
70 |
+
/******/ return ns;
|
71 |
+
/******/ };
|
72 |
+
/******/
|
73 |
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
74 |
+
/******/ __webpack_require__.n = function(module) {
|
75 |
+
/******/ var getter = module && module.__esModule ?
|
76 |
+
/******/ function getDefault() { return module['default']; } :
|
77 |
+
/******/ function getModuleExports() { return module; };
|
78 |
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
79 |
+
/******/ return getter;
|
80 |
+
/******/ };
|
81 |
+
/******/
|
82 |
+
/******/ // Object.prototype.hasOwnProperty.call
|
83 |
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
84 |
+
/******/
|
85 |
+
/******/ // __webpack_public_path__
|
86 |
+
/******/ __webpack_require__.p = "";
|
87 |
+
/******/
|
88 |
+
/******/
|
89 |
+
/******/ // Load entry module and return exports
|
90 |
+
/******/ return __webpack_require__(__webpack_require__.s = 10);
|
91 |
+
/******/ })
|
92 |
+
/************************************************************************/
|
93 |
+
/******/ ([
|
94 |
+
/* 0 */,
|
95 |
+
/* 1 */,
|
96 |
+
/* 2 */
|
97 |
+
/***/ (function(module, exports) {
|
98 |
+
|
99 |
+
module.exports = function (callback) {
|
100 |
+
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
101 |
+
// Already ready or interactive, execute callback
|
102 |
+
callback.call();
|
103 |
+
} else if (document.attachEvent) {
|
104 |
+
// Old browsers
|
105 |
+
document.attachEvent('onreadystatechange', function () {
|
106 |
+
if (document.readyState === 'interactive') callback.call();
|
107 |
+
});
|
108 |
+
} else if (document.addEventListener) {
|
109 |
+
// Modern browsers
|
110 |
+
document.addEventListener('DOMContentLoaded', callback);
|
111 |
+
}
|
112 |
+
};
|
113 |
+
|
114 |
+
/***/ }),
|
115 |
+
/* 3 */
|
116 |
+
/***/ (function(module, exports, __webpack_require__) {
|
117 |
+
|
118 |
+
/* WEBPACK VAR INJECTION */(function(global) {var win;
|
119 |
+
|
120 |
+
if (typeof window !== "undefined") {
|
121 |
+
win = window;
|
122 |
+
} else if (typeof global !== "undefined") {
|
123 |
+
win = global;
|
124 |
+
} else if (typeof self !== "undefined") {
|
125 |
+
win = self;
|
126 |
+
} else {
|
127 |
+
win = {};
|
128 |
+
}
|
129 |
+
|
130 |
+
module.exports = win;
|
131 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4)))
|
132 |
+
|
133 |
+
/***/ }),
|
134 |
+
/* 4 */
|
135 |
+
/***/ (function(module, exports) {
|
136 |
+
|
137 |
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
138 |
+
|
139 |
+
var g; // This works in non-strict mode
|
140 |
+
|
141 |
+
g = function () {
|
142 |
+
return this;
|
143 |
+
}();
|
144 |
+
|
145 |
+
try {
|
146 |
+
// This works if eval is allowed (see CSP)
|
147 |
+
g = g || new Function("return this")();
|
148 |
+
} catch (e) {
|
149 |
+
// This works if the window reference is available
|
150 |
+
if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") g = window;
|
151 |
+
} // g can still be undefined, but nothing to do about it...
|
152 |
+
// We return undefined, instead of nothing here, so it's
|
153 |
+
// easier to handle this case. if(!global) { ...}
|
154 |
+
|
155 |
+
|
156 |
+
module.exports = g;
|
157 |
+
|
158 |
+
/***/ }),
|
159 |
+
/* 5 */,
|
160 |
+
/* 6 */,
|
161 |
+
/* 7 */,
|
162 |
+
/* 8 */,
|
163 |
+
/* 9 */,
|
164 |
+
/* 10 */
|
165 |
+
/***/ (function(module, exports, __webpack_require__) {
|
166 |
+
|
167 |
+
module.exports = __webpack_require__(11);
|
168 |
+
|
169 |
+
|
170 |
+
/***/ }),
|
171 |
+
/* 11 */
|
172 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
173 |
+
|
174 |
+
"use strict";
|
175 |
+
__webpack_require__.r(__webpack_exports__);
|
176 |
+
/* harmony import */ var lite_ready__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
177 |
+
/* harmony import */ var lite_ready__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lite_ready__WEBPACK_IMPORTED_MODULE_0__);
|
178 |
+
/* harmony import */ var global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
179 |
+
/* harmony import */ var global__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_1__);
|
180 |
+
/* harmony import */ var _jarallax_esm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12);
|
181 |
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
182 |
+
|
183 |
+
|
184 |
+
|
185 |
+
// no conflict
|
186 |
+
|
187 |
+
var oldPlugin = global__WEBPACK_IMPORTED_MODULE_1__["window"].jarallax;
|
188 |
+
global__WEBPACK_IMPORTED_MODULE_1__["window"].jarallax = _jarallax_esm__WEBPACK_IMPORTED_MODULE_2__["default"];
|
189 |
+
|
190 |
+
global__WEBPACK_IMPORTED_MODULE_1__["window"].jarallax.noConflict = function () {
|
191 |
+
global__WEBPACK_IMPORTED_MODULE_1__["window"].jarallax = oldPlugin;
|
192 |
+
return this;
|
193 |
+
}; // jQuery support
|
194 |
+
|
195 |
+
|
196 |
+
if ('undefined' !== typeof global__WEBPACK_IMPORTED_MODULE_1__["jQuery"]) {
|
197 |
+
var jQueryPlugin = function jQueryPlugin() {
|
198 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
199 |
+
args[_key] = arguments[_key];
|
200 |
+
}
|
201 |
+
|
202 |
+
Array.prototype.unshift.call(args, this);
|
203 |
+
var res = _jarallax_esm__WEBPACK_IMPORTED_MODULE_2__["default"].apply(global__WEBPACK_IMPORTED_MODULE_1__["window"], args);
|
204 |
+
return 'object' !== _typeof(res) ? res : this;
|
205 |
+
};
|
206 |
+
|
207 |
+
jQueryPlugin.constructor = _jarallax_esm__WEBPACK_IMPORTED_MODULE_2__["default"].constructor; // no conflict
|
208 |
+
|
209 |
+
var oldJqPlugin = global__WEBPACK_IMPORTED_MODULE_1__["jQuery"].fn.jarallax;
|
210 |
+
global__WEBPACK_IMPORTED_MODULE_1__["jQuery"].fn.jarallax = jQueryPlugin;
|
211 |
+
|
212 |
+
global__WEBPACK_IMPORTED_MODULE_1__["jQuery"].fn.jarallax.noConflict = function () {
|
213 |
+
global__WEBPACK_IMPORTED_MODULE_1__["jQuery"].fn.jarallax = oldJqPlugin;
|
214 |
+
return this;
|
215 |
+
};
|
216 |
+
} // data-jarallax initialization
|
217 |
+
|
218 |
+
|
219 |
+
lite_ready__WEBPACK_IMPORTED_MODULE_0___default()(function () {
|
220 |
+
Object(_jarallax_esm__WEBPACK_IMPORTED_MODULE_2__["default"])(document.querySelectorAll('[data-jarallax]'));
|
221 |
+
});
|
222 |
+
|
223 |
+
/***/ }),
|
224 |
+
/* 12 */
|
225 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
226 |
+
|
227 |
+
"use strict";
|
228 |
+
__webpack_require__.r(__webpack_exports__);
|
229 |
+
/* harmony import */ var lite_ready__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
230 |
+
/* harmony import */ var lite_ready__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lite_ready__WEBPACK_IMPORTED_MODULE_0__);
|
231 |
+
/* harmony import */ var global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
232 |
+
/* harmony import */ var global__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_1__);
|
233 |
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
234 |
+
|
235 |
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
236 |
+
|
237 |
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
238 |
+
|
239 |
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
240 |
+
|
241 |
+
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
242 |
+
|
243 |
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
244 |
+
|
245 |
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
246 |
+
|
247 |
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
248 |
+
|
249 |
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
250 |
+
|
251 |
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
252 |
+
|
253 |
+
|
254 |
+
|
255 |
+
var navigator = global__WEBPACK_IMPORTED_MODULE_1__["window"].navigator;
|
256 |
+
var isIE = -1 < navigator.userAgent.indexOf('MSIE ') || -1 < navigator.userAgent.indexOf('Trident/') || -1 < navigator.userAgent.indexOf('Edge/');
|
257 |
+
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
258 |
+
|
259 |
+
var supportTransform = function () {
|
260 |
+
var prefixes = 'transform WebkitTransform MozTransform'.split(' ');
|
261 |
+
var div = document.createElement('div');
|
262 |
+
|
263 |
+
for (var i = 0; i < prefixes.length; i += 1) {
|
264 |
+
if (div && div.style[prefixes[i]] !== undefined) {
|
265 |
+
return prefixes[i];
|
266 |
+
}
|
267 |
+
}
|
268 |
+
|
269 |
+
return false;
|
270 |
+
}();
|
271 |
+
|
272 |
+
var $deviceHelper;
|
273 |
+
/**
|
274 |
+
* The most popular mobile browsers changes height after page scroll and this generates image jumping.
|
275 |
+
* We can fix it using this workaround with vh units.
|
276 |
+
*/
|
277 |
+
|
278 |
+
function getDeviceHeight() {
|
279 |
+
if (!$deviceHelper && document.body) {
|
280 |
+
$deviceHelper = document.createElement('div');
|
281 |
+
$deviceHelper.style.cssText = 'position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;';
|
282 |
+
document.body.appendChild($deviceHelper);
|
283 |
+
}
|
284 |
+
|
285 |
+
return ($deviceHelper ? $deviceHelper.clientHeight : 0) || global__WEBPACK_IMPORTED_MODULE_1__["window"].innerHeight || document.documentElement.clientHeight;
|
286 |
+
} // Window height data
|
287 |
+
|
288 |
+
|
289 |
+
var wndH;
|
290 |
+
|
291 |
+
function updateWndVars() {
|
292 |
+
if (isMobile) {
|
293 |
+
wndH = getDeviceHeight();
|
294 |
+
} else {
|
295 |
+
wndH = global__WEBPACK_IMPORTED_MODULE_1__["window"].innerHeight || document.documentElement.clientHeight;
|
296 |
+
}
|
297 |
+
}
|
298 |
+
|
299 |
+
updateWndVars();
|
300 |
+
global__WEBPACK_IMPORTED_MODULE_1__["window"].addEventListener('resize', updateWndVars);
|
301 |
+
global__WEBPACK_IMPORTED_MODULE_1__["window"].addEventListener('orientationchange', updateWndVars);
|
302 |
+
global__WEBPACK_IMPORTED_MODULE_1__["window"].addEventListener('load', updateWndVars);
|
303 |
+
lite_ready__WEBPACK_IMPORTED_MODULE_0___default()(function () {
|
304 |
+
updateWndVars({
|
305 |
+
type: 'dom-loaded'
|
306 |
+
});
|
307 |
+
}); // list with all jarallax instances
|
308 |
+
// need to render all in one scroll/resize event
|
309 |
+
|
310 |
+
var jarallaxList = []; // get all parents of the element.
|
311 |
+
|
312 |
+
function getParents(elem) {
|
313 |
+
var parents = [];
|
314 |
+
|
315 |
+
while (null !== elem.parentElement) {
|
316 |
+
elem = elem.parentElement;
|
317 |
+
|
318 |
+
if (1 === elem.nodeType) {
|
319 |
+
parents.push(elem);
|
320 |
+
}
|
321 |
+
}
|
322 |
+
|
323 |
+
return parents;
|
324 |
+
}
|
325 |
+
|
326 |
+
function updateParallax() {
|
327 |
+
if (!jarallaxList.length) {
|
328 |
+
return;
|
329 |
+
}
|
330 |
+
|
331 |
+
jarallaxList.forEach(function (data, k) {
|
332 |
+
var instance = data.instance,
|
333 |
+
oldData = data.oldData;
|
334 |
+
var clientRect = instance.$item.getBoundingClientRect();
|
335 |
+
var newData = {
|
336 |
+
width: clientRect.width,
|
337 |
+
height: clientRect.height,
|
338 |
+
top: clientRect.top,
|
339 |
+
bottom: clientRect.bottom,
|
340 |
+
wndW: global__WEBPACK_IMPORTED_MODULE_1__["window"].innerWidth,
|
341 |
+
wndH: wndH
|
342 |
+
};
|
343 |
+
var isResized = !oldData || oldData.wndW !== newData.wndW || oldData.wndH !== newData.wndH || oldData.width !== newData.width || oldData.height !== newData.height;
|
344 |
+
var isScrolled = isResized || !oldData || oldData.top !== newData.top || oldData.bottom !== newData.bottom;
|
345 |
+
jarallaxList[k].oldData = newData;
|
346 |
+
|
347 |
+
if (isResized) {
|
348 |
+
instance.onResize();
|
349 |
+
}
|
350 |
+
|
351 |
+
if (isScrolled) {
|
352 |
+
instance.onScroll();
|
353 |
+
}
|
354 |
+
});
|
355 |
+
global__WEBPACK_IMPORTED_MODULE_1__["window"].requestAnimationFrame(updateParallax);
|
356 |
+
}
|
357 |
+
|
358 |
+
var instanceID = 0; // Jarallax class
|
359 |
+
|
360 |
+
var Jarallax = /*#__PURE__*/function () {
|
361 |
+
function Jarallax(item, userOptions) {
|
362 |
+
_classCallCheck(this, Jarallax);
|
363 |
+
|
364 |
+
var self = this;
|
365 |
+
self.instanceID = instanceID;
|
366 |
+
instanceID += 1;
|
367 |
+
self.$item = item;
|
368 |
+
self.defaults = {
|
369 |
+
type: 'scroll',
|
370 |
+
// type of parallax: scroll, scale, opacity, scale-opacity, scroll-opacity
|
371 |
+
speed: 0.5,
|
372 |
+
// supported value from -1 to 2
|
373 |
+
imgSrc: null,
|
374 |
+
imgElement: '.jarallax-img',
|
375 |
+
imgSize: 'cover',
|
376 |
+
imgPosition: '50% 50%',
|
377 |
+
imgRepeat: 'no-repeat',
|
378 |
+
// supported only for background, not for <img> tag
|
379 |
+
keepImg: false,
|
380 |
+
// keep <img> tag in it's default place
|
381 |
+
elementInViewport: null,
|
382 |
+
zIndex: -100,
|
383 |
+
disableParallax: false,
|
384 |
+
disableVideo: false,
|
385 |
+
// video
|
386 |
+
videoSrc: null,
|
387 |
+
videoStartTime: 0,
|
388 |
+
videoEndTime: 0,
|
389 |
+
videoVolume: 0,
|
390 |
+
videoLoop: true,
|
391 |
+
videoPlayOnlyVisible: true,
|
392 |
+
videoLazyLoading: true,
|
393 |
+
// events
|
394 |
+
onScroll: null,
|
395 |
+
// function(calculations) {}
|
396 |
+
onInit: null,
|
397 |
+
// function() {}
|
398 |
+
onDestroy: null,
|
399 |
+
// function() {}
|
400 |
+
onCoverImage: null // function() {}
|
401 |
+
|
402 |
+
}; // prepare data-options
|
403 |
+
|
404 |
+
var dataOptions = self.$item.dataset || {};
|
405 |
+
var pureDataOptions = {};
|
406 |
+
Object.keys(dataOptions).forEach(function (key) {
|
407 |
+
var loweCaseOption = key.substr(0, 1).toLowerCase() + key.substr(1);
|
408 |
+
|
409 |
+
if (loweCaseOption && 'undefined' !== typeof self.defaults[loweCaseOption]) {
|
410 |
+
pureDataOptions[loweCaseOption] = dataOptions[key];
|
411 |
+
}
|
412 |
+
});
|
413 |
+
self.options = self.extend({}, self.defaults, pureDataOptions, userOptions);
|
414 |
+
self.pureOptions = self.extend({}, self.options); // prepare 'true' and 'false' strings to boolean
|
415 |
+
|
416 |
+
Object.keys(self.options).forEach(function (key) {
|
417 |
+
if ('true' === self.options[key]) {
|
418 |
+
self.options[key] = true;
|
419 |
+
} else if ('false' === self.options[key]) {
|
420 |
+
self.options[key] = false;
|
421 |
+
}
|
422 |
+
}); // fix speed option [-1.0, 2.0]
|
423 |
+
|
424 |
+
self.options.speed = Math.min(2, Math.max(-1, parseFloat(self.options.speed))); // prepare disableParallax callback
|
425 |
+
|
426 |
+
if ('string' === typeof self.options.disableParallax) {
|
427 |
+
self.options.disableParallax = new RegExp(self.options.disableParallax);
|
428 |
+
}
|
429 |
+
|
430 |
+
if (self.options.disableParallax instanceof RegExp) {
|
431 |
+
var disableParallaxRegexp = self.options.disableParallax;
|
432 |
+
|
433 |
+
self.options.disableParallax = function () {
|
434 |
+
return disableParallaxRegexp.test(navigator.userAgent);
|
435 |
+
};
|
436 |
+
}
|
437 |
+
|
438 |
+
if ('function' !== typeof self.options.disableParallax) {
|
439 |
+
self.options.disableParallax = function () {
|
440 |
+
return false;
|
441 |
+
};
|
442 |
+
} // prepare disableVideo callback
|
443 |
+
|
444 |
+
|
445 |
+
if ('string' === typeof self.options.disableVideo) {
|
446 |
+
self.options.disableVideo = new RegExp(self.options.disableVideo);
|
447 |
+
}
|
448 |
+
|
449 |
+
if (self.options.disableVideo instanceof RegExp) {
|
450 |
+
var disableVideoRegexp = self.options.disableVideo;
|
451 |
+
|
452 |
+
self.options.disableVideo = function () {
|
453 |
+
return disableVideoRegexp.test(navigator.userAgent);
|
454 |
+
};
|
455 |
+
}
|
456 |
+
|
457 |
+
if ('function' !== typeof self.options.disableVideo) {
|
458 |
+
self.options.disableVideo = function () {
|
459 |
+
return false;
|
460 |
+
};
|
461 |
+
} // custom element to check if parallax in viewport
|
462 |
+
|
463 |
+
|
464 |
+
var elementInVP = self.options.elementInViewport; // get first item from array
|
465 |
+
|
466 |
+
if (elementInVP && 'object' === _typeof(elementInVP) && 'undefined' !== typeof elementInVP.length) {
|
467 |
+
var _elementInVP = elementInVP;
|
468 |
+
|
469 |
+
var _elementInVP2 = _slicedToArray(_elementInVP, 1);
|
470 |
+
|
471 |
+
elementInVP = _elementInVP2[0];
|
472 |
+
} // check if dom element
|
473 |
+
|
474 |
+
|
475 |
+
if (!(elementInVP instanceof Element)) {
|
476 |
+
elementInVP = null;
|
477 |
+
}
|
478 |
+
|
479 |
+
self.options.elementInViewport = elementInVP;
|
480 |
+
self.image = {
|
481 |
+
src: self.options.imgSrc || null,
|
482 |
+
$container: null,
|
483 |
+
useImgTag: false,
|
484 |
+
// position fixed is needed for the most of browsers because absolute position have glitches
|
485 |
+
// on MacOS with smooth scroll there is a huge lags with absolute position - https://github.com/nk-o/jarallax/issues/75
|
486 |
+
// on mobile devices better scrolled with absolute position
|
487 |
+
position: /iPad|iPhone|iPod|Android/.test(navigator.userAgent) ? 'absolute' : 'fixed'
|
488 |
+
};
|
489 |
+
|
490 |
+
if (self.initImg() && self.canInitParallax()) {
|
491 |
+
self.init();
|
492 |
+
}
|
493 |
+
} // add styles to element
|
494 |
+
// eslint-disable-next-line class-methods-use-this
|
495 |
+
|
496 |
+
|
497 |
+
_createClass(Jarallax, [{
|
498 |
+
key: "css",
|
499 |
+
value: function css(el, styles) {
|
500 |
+
if ('string' === typeof styles) {
|
501 |
+
return global__WEBPACK_IMPORTED_MODULE_1__["window"].getComputedStyle(el).getPropertyValue(styles);
|
502 |
+
} // add transform property with vendor prefix
|
503 |
+
|
504 |
+
|
505 |
+
if (styles.transform && supportTransform) {
|
506 |
+
styles[supportTransform] = styles.transform;
|
507 |
+
}
|
508 |
+
|
509 |
+
Object.keys(styles).forEach(function (key) {
|
510 |
+
el.style[key] = styles[key];
|
511 |
+
});
|
512 |
+
return el;
|
513 |
+
} // Extend like jQuery.extend
|
514 |
+
// eslint-disable-next-line class-methods-use-this
|
515 |
+
|
516 |
+
}, {
|
517 |
+
key: "extend",
|
518 |
+
value: function extend(out) {
|
519 |
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
520 |
+
args[_key - 1] = arguments[_key];
|
521 |
+
}
|
522 |
+
|
523 |
+
out = out || {};
|
524 |
+
Object.keys(args).forEach(function (i) {
|
525 |
+
if (!args[i]) {
|
526 |
+
return;
|
527 |
+
}
|
528 |
+
|
529 |
+
Object.keys(args[i]).forEach(function (key) {
|
530 |
+
out[key] = args[i][key];
|
531 |
+
});
|
532 |
+
});
|
533 |
+
return out;
|
534 |
+
} // get window size and scroll position. Useful for extensions
|
535 |
+
// eslint-disable-next-line class-methods-use-this
|
536 |
+
|
537 |
+
}, {
|
538 |
+
key: "getWindowData",
|
539 |
+
value: function getWindowData() {
|
540 |
+
return {
|
541 |
+
width: global__WEBPACK_IMPORTED_MODULE_1__["window"].innerWidth || document.documentElement.clientWidth,
|
542 |
+
height: wndH,
|
543 |
+
y: document.documentElement.scrollTop
|
544 |
+
};
|
545 |
+
} // Jarallax functions
|
546 |
+
|
547 |
+
}, {
|
548 |
+
key: "initImg",
|
549 |
+
value: function initImg() {
|
550 |
+
var self = this; // find image element
|
551 |
+
|
552 |
+
var $imgElement = self.options.imgElement;
|
553 |
+
|
554 |
+
if ($imgElement && 'string' === typeof $imgElement) {
|
555 |
+
$imgElement = self.$item.querySelector($imgElement);
|
556 |
+
} // check if dom element
|
557 |
+
|
558 |
+
|
559 |
+
if (!($imgElement instanceof Element)) {
|
560 |
+
if (self.options.imgSrc) {
|
561 |
+
$imgElement = new Image();
|
562 |
+
$imgElement.src = self.options.imgSrc;
|
563 |
+
} else {
|
564 |
+
$imgElement = null;
|
565 |
+
}
|
566 |
+
}
|
567 |
+
|
568 |
+
if ($imgElement) {
|
569 |
+
if (self.options.keepImg) {
|
570 |
+
self.image.$item = $imgElement.cloneNode(true);
|
571 |
+
} else {
|
572 |
+
self.image.$item = $imgElement;
|
573 |
+
self.image.$itemParent = $imgElement.parentNode;
|
574 |
+
}
|
575 |
+
|
576 |
+
self.image.useImgTag = true;
|
577 |
+
} // true if there is img tag
|
578 |
+
|
579 |
+
|
580 |
+
if (self.image.$item) {
|
581 |
+
return true;
|
582 |
+
} // get image src
|
583 |
+
|
584 |
+
|
585 |
+
if (null === self.image.src) {
|
586 |
+
self.image.src = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
|
587 |
+
self.image.bgImage = self.css(self.$item, 'background-image');
|
588 |
+
}
|
589 |
+
|
590 |
+
return !(!self.image.bgImage || 'none' === self.image.bgImage);
|
591 |
+
}
|
592 |
+
}, {
|
593 |
+
key: "canInitParallax",
|
594 |
+
value: function canInitParallax() {
|
595 |
+
return supportTransform && !this.options.disableParallax();
|
596 |
+
}
|
597 |
+
}, {
|
598 |
+
key: "init",
|
599 |
+
value: function init() {
|
600 |
+
var self = this;
|
601 |
+
var containerStyles = {
|
602 |
+
position: 'absolute',
|
603 |
+
top: 0,
|
604 |
+
left: 0,
|
605 |
+
width: '100%',
|
606 |
+
height: '100%',
|
607 |
+
overflow: 'hidden'
|
608 |
+
};
|
609 |
+
var imageStyles = {
|
610 |
+
pointerEvents: 'none',
|
611 |
+
transformStyle: 'preserve-3d',
|
612 |
+
backfaceVisibility: 'hidden',
|
613 |
+
willChange: 'transform,opacity'
|
614 |
+
};
|
615 |
+
|
616 |
+
if (!self.options.keepImg) {
|
617 |
+
// save default user styles
|
618 |
+
var curStyle = self.$item.getAttribute('style');
|
619 |
+
|
620 |
+
if (curStyle) {
|
621 |
+
self.$item.setAttribute('data-jarallax-original-styles', curStyle);
|
622 |
+
}
|
623 |
+
|
624 |
+
if (self.image.useImgTag) {
|
625 |
+
var curImgStyle = self.image.$item.getAttribute('style');
|
626 |
+
|
627 |
+
if (curImgStyle) {
|
628 |
+
self.image.$item.setAttribute('data-jarallax-original-styles', curImgStyle);
|
629 |
+
}
|
630 |
+
}
|
631 |
+
} // set relative position and z-index to the parent
|
632 |
+
|
633 |
+
|
634 |
+
if ('static' === self.css(self.$item, 'position')) {
|
635 |
+
self.css(self.$item, {
|
636 |
+
position: 'relative'
|
637 |
+
});
|
638 |
+
}
|
639 |
+
|
640 |
+
if ('auto' === self.css(self.$item, 'z-index')) {
|
641 |
+
self.css(self.$item, {
|
642 |
+
zIndex: 0
|
643 |
+
});
|
644 |
+
} // container for parallax image
|
645 |
+
|
646 |
+
|
647 |
+
self.image.$container = document.createElement('div');
|
648 |
+
self.css(self.image.$container, containerStyles);
|
649 |
+
self.css(self.image.$container, {
|
650 |
+
'z-index': self.options.zIndex
|
651 |
+
}); // fix for IE https://github.com/nk-o/jarallax/issues/110
|
652 |
+
|
653 |
+
if (isIE) {
|
654 |
+
self.css(self.image.$container, {
|
655 |
+
opacity: 0.9999
|
656 |
+
});
|
657 |
+
}
|
658 |
+
|
659 |
+
self.image.$container.setAttribute('id', "jarallax-container-".concat(self.instanceID));
|
660 |
+
self.$item.appendChild(self.image.$container); // use img tag
|
661 |
+
|
662 |
+
if (self.image.useImgTag) {
|
663 |
+
imageStyles = self.extend({
|
664 |
+
'object-fit': self.options.imgSize,
|
665 |
+
'object-position': self.options.imgPosition,
|
666 |
+
// support for plugin https://github.com/bfred-it/object-fit-images
|
667 |
+
'font-family': "object-fit: ".concat(self.options.imgSize, "; object-position: ").concat(self.options.imgPosition, ";"),
|
668 |
+
'max-width': 'none'
|
669 |
+
}, containerStyles, imageStyles); // use div with background image
|
670 |
+
} else {
|
671 |
+
self.image.$item = document.createElement('div');
|
672 |
+
|
673 |
+
if (self.image.src) {
|
674 |
+
imageStyles = self.extend({
|
675 |
+
'background-position': self.options.imgPosition,
|
676 |
+
'background-size': self.options.imgSize,
|
677 |
+
'background-repeat': self.options.imgRepeat,
|
678 |
+
'background-image': self.image.bgImage || "url(\"".concat(self.image.src, "\")")
|
679 |
+
}, containerStyles, imageStyles);
|
680 |
+
}
|
681 |
+
}
|
682 |
+
|
683 |
+
if ('opacity' === self.options.type || 'scale' === self.options.type || 'scale-opacity' === self.options.type || 1 === self.options.speed) {
|
684 |
+
self.image.position = 'absolute';
|
685 |
+
} // 1. Check if one of parents have transform style (without this check, scroll transform will be inverted if used parallax with position fixed)
|
686 |
+
// discussion - https://github.com/nk-o/jarallax/issues/9
|
687 |
+
// 2. Check if parents have overflow scroll
|
688 |
+
|
689 |
+
|
690 |
+
if ('fixed' === self.image.position) {
|
691 |
+
var $parents = getParents(self.$item).filter(function (el) {
|
692 |
+
var styles = global__WEBPACK_IMPORTED_MODULE_1__["window"].getComputedStyle(el);
|
693 |
+
var parentTransform = styles['-webkit-transform'] || styles['-moz-transform'] || styles.transform;
|
694 |
+
var overflowRegex = /(auto|scroll)/;
|
695 |
+
return parentTransform && 'none' !== parentTransform || overflowRegex.test(styles.overflow + styles['overflow-y'] + styles['overflow-x']);
|
696 |
+
});
|
697 |
+
self.image.position = $parents.length ? 'absolute' : 'fixed';
|
698 |
+
} // add position to parallax block
|
699 |
+
|
700 |
+
|
701 |
+
imageStyles.position = self.image.position; // insert parallax image
|
702 |
+
|
703 |
+
self.css(self.image.$item, imageStyles);
|
704 |
+
self.image.$container.appendChild(self.image.$item); // set initial position and size
|
705 |
+
|
706 |
+
self.onResize();
|
707 |
+
self.onScroll(true); // call onInit event
|
708 |
+
|
709 |
+
if (self.options.onInit) {
|
710 |
+
self.options.onInit.call(self);
|
711 |
+
} // remove default user background
|
712 |
+
|
713 |
+
|
714 |
+
if ('none' !== self.css(self.$item, 'background-image')) {
|
715 |
+
self.css(self.$item, {
|
716 |
+
'background-image': 'none'
|
717 |
+
});
|
718 |
+
}
|
719 |
+
|
720 |
+
self.addToParallaxList();
|
721 |
+
} // add to parallax instances list
|
722 |
+
|
723 |
+
}, {
|
724 |
+
key: "addToParallaxList",
|
725 |
+
value: function addToParallaxList() {
|
726 |
+
jarallaxList.push({
|
727 |
+
instance: this
|
728 |
+
});
|
729 |
+
|
730 |
+
if (1 === jarallaxList.length) {
|
731 |
+
global__WEBPACK_IMPORTED_MODULE_1__["window"].requestAnimationFrame(updateParallax);
|
732 |
+
}
|
733 |
+
} // remove from parallax instances list
|
734 |
+
|
735 |
+
}, {
|
736 |
+
key: "removeFromParallaxList",
|
737 |
+
value: function removeFromParallaxList() {
|
738 |
+
var self = this;
|
739 |
+
jarallaxList.forEach(function (data, key) {
|
740 |
+
if (data.instance.instanceID === self.instanceID) {
|
741 |
+
jarallaxList.splice(key, 1);
|
742 |
+
}
|
743 |
+
});
|
744 |
+
}
|
745 |
+
}, {
|
746 |
+
key: "destroy",
|
747 |
+
value: function destroy() {
|
748 |
+
var self = this;
|
749 |
+
self.removeFromParallaxList(); // return styles on container as before jarallax init
|
750 |
+
|
751 |
+
var originalStylesTag = self.$item.getAttribute('data-jarallax-original-styles');
|
752 |
+
self.$item.removeAttribute('data-jarallax-original-styles'); // null occurs if there is no style tag before jarallax init
|
753 |
+
|
754 |
+
if (!originalStylesTag) {
|
755 |
+
self.$item.removeAttribute('style');
|
756 |
+
} else {
|
757 |
+
self.$item.setAttribute('style', originalStylesTag);
|
758 |
+
}
|
759 |
+
|
760 |
+
if (self.image.useImgTag) {
|
761 |
+
// return styles on img tag as before jarallax init
|
762 |
+
var originalStylesImgTag = self.image.$item.getAttribute('data-jarallax-original-styles');
|
763 |
+
self.image.$item.removeAttribute('data-jarallax-original-styles'); // null occurs if there is no style tag before jarallax init
|
764 |
+
|
765 |
+
if (!originalStylesImgTag) {
|
766 |
+
self.image.$item.removeAttribute('style');
|
767 |
+
} else {
|
768 |
+
self.image.$item.setAttribute('style', originalStylesTag);
|
769 |
+
} // move img tag to its default position
|
770 |
+
|
771 |
+
|
772 |
+
if (self.image.$itemParent) {
|
773 |
+
self.image.$itemParent.appendChild(self.image.$item);
|
774 |
+
}
|
775 |
+
} // remove additional dom elements
|
776 |
+
|
777 |
+
|
778 |
+
if (self.$clipStyles) {
|
779 |
+
self.$clipStyles.parentNode.removeChild(self.$clipStyles);
|
780 |
+
}
|
781 |
+
|
782 |
+
if (self.image.$container) {
|
783 |
+
self.image.$container.parentNode.removeChild(self.image.$container);
|
784 |
+
} // call onDestroy event
|
785 |
+
|
786 |
+
|
787 |
+
if (self.options.onDestroy) {
|
788 |
+
self.options.onDestroy.call(self);
|
789 |
+
} // delete jarallax from item
|
790 |
+
|
791 |
+
|
792 |
+
delete self.$item.jarallax;
|
793 |
+
} // it will remove some image overlapping
|
794 |
+
// overlapping occur due to an image position fixed inside absolute position element
|
795 |
+
|
796 |
+
}, {
|
797 |
+
key: "clipContainer",
|
798 |
+
value: function clipContainer() {
|
799 |
+
// needed only when background in fixed position
|
800 |
+
if ('fixed' !== this.image.position) {
|
801 |
+
return;
|
802 |
+
}
|
803 |
+
|
804 |
+
var self = this;
|
805 |
+
var rect = self.image.$container.getBoundingClientRect();
|
806 |
+
var width = rect.width,
|
807 |
+
height = rect.height;
|
808 |
+
|
809 |
+
if (!self.$clipStyles) {
|
810 |
+
self.$clipStyles = document.createElement('style');
|
811 |
+
self.$clipStyles.setAttribute('type', 'text/css');
|
812 |
+
self.$clipStyles.setAttribute('id', "jarallax-clip-".concat(self.instanceID));
|
813 |
+
var head = document.head || document.getElementsByTagName('head')[0];
|
814 |
+
head.appendChild(self.$clipStyles);
|
815 |
+
} // clip is used for old browsers.
|
816 |
+
// clip-path for modern browsers (also fixes Safari v14 bug https://github.com/nk-o/jarallax/issues/181 ).
|
817 |
+
|
818 |
+
|
819 |
+
var styles = "#jarallax-container-".concat(self.instanceID, " {\n clip: rect(0 ").concat(width, "px ").concat(height, "px 0);\n clip: rect(0, ").concat(width, "px, ").concat(height, "px, 0);\n -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n }"); // add clip styles inline (this method need for support IE8 and less browsers)
|
820 |
+
|
821 |
+
if (self.$clipStyles.styleSheet) {
|
822 |
+
self.$clipStyles.styleSheet.cssText = styles;
|
823 |
+
} else {
|
824 |
+
self.$clipStyles.innerHTML = styles;
|
825 |
+
}
|
826 |
+
}
|
827 |
+
}, {
|
828 |
+
key: "coverImage",
|
829 |
+
value: function coverImage() {
|
830 |
+
var self = this;
|
831 |
+
var rect = self.image.$container.getBoundingClientRect();
|
832 |
+
var contH = rect.height;
|
833 |
+
var speed = self.options.speed;
|
834 |
+
var isScroll = 'scroll' === self.options.type || 'scroll-opacity' === self.options.type;
|
835 |
+
var scrollDist = 0;
|
836 |
+
var resultH = contH;
|
837 |
+
var resultMT = 0; // scroll parallax
|
838 |
+
|
839 |
+
if (isScroll) {
|
840 |
+
// scroll distance and height for image
|
841 |
+
if (0 > speed) {
|
842 |
+
scrollDist = speed * Math.max(contH, wndH);
|
843 |
+
|
844 |
+
if (wndH < contH) {
|
845 |
+
scrollDist -= speed * (contH - wndH);
|
846 |
+
}
|
847 |
+
} else {
|
848 |
+
scrollDist = speed * (contH + wndH);
|
849 |
+
} // size for scroll parallax
|
850 |
+
|
851 |
+
|
852 |
+
if (1 < speed) {
|
853 |
+
resultH = Math.abs(scrollDist - wndH);
|
854 |
+
} else if (0 > speed) {
|
855 |
+
resultH = scrollDist / speed + Math.abs(scrollDist);
|
856 |
+
} else {
|
857 |
+
resultH += (wndH - contH) * (1 - speed);
|
858 |
+
}
|
859 |
+
|
860 |
+
scrollDist /= 2;
|
861 |
+
} // store scroll distance
|
862 |
+
|
863 |
+
|
864 |
+
self.parallaxScrollDistance = scrollDist; // vertical center
|
865 |
+
|
866 |
+
if (isScroll) {
|
867 |
+
resultMT = (wndH - resultH) / 2;
|
868 |
+
} else {
|
869 |
+
resultMT = (contH - resultH) / 2;
|
870 |
+
} // apply result to item
|
871 |
+
|
872 |
+
|
873 |
+
self.css(self.image.$item, {
|
874 |
+
height: "".concat(resultH, "px"),
|
875 |
+
marginTop: "".concat(resultMT, "px"),
|
876 |
+
left: 'fixed' === self.image.position ? "".concat(rect.left, "px") : '0',
|
877 |
+
width: "".concat(rect.width, "px")
|
878 |
+
}); // call onCoverImage event
|
879 |
+
|
880 |
+
if (self.options.onCoverImage) {
|
881 |
+
self.options.onCoverImage.call(self);
|
882 |
+
} // return some useful data. Used in the video cover function
|
883 |
+
|
884 |
+
|
885 |
+
return {
|
886 |
+
image: {
|
887 |
+
height: resultH,
|
888 |
+
marginTop: resultMT
|
889 |
+
},
|
890 |
+
container: rect
|
891 |
+
};
|
892 |
+
}
|
893 |
+
}, {
|
894 |
+
key: "isVisible",
|
895 |
+
value: function isVisible() {
|
896 |
+
return this.isElementInViewport || false;
|
897 |
+
}
|
898 |
+
}, {
|
899 |
+
key: "onScroll",
|
900 |
+
value: function onScroll(force) {
|
901 |
+
var self = this;
|
902 |
+
var rect = self.$item.getBoundingClientRect();
|
903 |
+
var contT = rect.top;
|
904 |
+
var contH = rect.height;
|
905 |
+
var styles = {}; // check if in viewport
|
906 |
+
|
907 |
+
var viewportRect = rect;
|
908 |
+
|
909 |
+
if (self.options.elementInViewport) {
|
910 |
+
viewportRect = self.options.elementInViewport.getBoundingClientRect();
|
911 |
+
}
|
912 |
+
|
913 |
+
self.isElementInViewport = 0 <= viewportRect.bottom && 0 <= viewportRect.right && viewportRect.top <= wndH && viewportRect.left <= global__WEBPACK_IMPORTED_MODULE_1__["window"].innerWidth; // stop calculations if item is not in viewport
|
914 |
+
|
915 |
+
if (force ? false : !self.isElementInViewport) {
|
916 |
+
return;
|
917 |
+
} // calculate parallax helping variables
|
918 |
+
|
919 |
+
|
920 |
+
var beforeTop = Math.max(0, contT);
|
921 |
+
var beforeTopEnd = Math.max(0, contH + contT);
|
922 |
+
var afterTop = Math.max(0, -contT);
|
923 |
+
var beforeBottom = Math.max(0, contT + contH - wndH);
|
924 |
+
var beforeBottomEnd = Math.max(0, contH - (contT + contH - wndH));
|
925 |
+
var afterBottom = Math.max(0, -contT + wndH - contH);
|
926 |
+
var fromViewportCenter = 1 - 2 * ((wndH - contT) / (wndH + contH)); // calculate on how percent of section is visible
|
927 |
+
|
928 |
+
var visiblePercent = 1;
|
929 |
+
|
930 |
+
if (contH < wndH) {
|
931 |
+
visiblePercent = 1 - (afterTop || beforeBottom) / contH;
|
932 |
+
} else if (beforeTopEnd <= wndH) {
|
933 |
+
visiblePercent = beforeTopEnd / wndH;
|
934 |
+
} else if (beforeBottomEnd <= wndH) {
|
935 |
+
visiblePercent = beforeBottomEnd / wndH;
|
936 |
+
} // opacity
|
937 |
+
|
938 |
+
|
939 |
+
if ('opacity' === self.options.type || 'scale-opacity' === self.options.type || 'scroll-opacity' === self.options.type) {
|
940 |
+
styles.transform = 'translate3d(0,0,0)';
|
941 |
+
styles.opacity = visiblePercent;
|
942 |
+
} // scale
|
943 |
+
|
944 |
+
|
945 |
+
if ('scale' === self.options.type || 'scale-opacity' === self.options.type) {
|
946 |
+
var scale = 1;
|
947 |
+
|
948 |
+
if (0 > self.options.speed) {
|
949 |
+
scale -= self.options.speed * visiblePercent;
|
950 |
+
} else {
|
951 |
+
scale += self.options.speed * (1 - visiblePercent);
|
952 |
+
}
|
953 |
+
|
954 |
+
styles.transform = "scale(".concat(scale, ") translate3d(0,0,0)");
|
955 |
+
} // scroll
|
956 |
+
|
957 |
+
|
958 |
+
if ('scroll' === self.options.type || 'scroll-opacity' === self.options.type) {
|
959 |
+
var positionY = self.parallaxScrollDistance * fromViewportCenter; // fix if parallax block in absolute position
|
960 |
+
|
961 |
+
if ('absolute' === self.image.position) {
|
962 |
+
positionY -= contT;
|
963 |
+
}
|
964 |
+
|
965 |
+
styles.transform = "translate3d(0,".concat(positionY, "px,0)");
|
966 |
+
}
|
967 |
+
|
968 |
+
self.css(self.image.$item, styles); // call onScroll event
|
969 |
+
|
970 |
+
if (self.options.onScroll) {
|
971 |
+
self.options.onScroll.call(self, {
|
972 |
+
section: rect,
|
973 |
+
beforeTop: beforeTop,
|
974 |
+
beforeTopEnd: beforeTopEnd,
|
975 |
+
afterTop: afterTop,
|
976 |
+
beforeBottom: beforeBottom,
|
977 |
+
beforeBottomEnd: beforeBottomEnd,
|
978 |
+
afterBottom: afterBottom,
|
979 |
+
visiblePercent: visiblePercent,
|
980 |
+
fromViewportCenter: fromViewportCenter
|
981 |
+
});
|
982 |
+
}
|
983 |
+
}
|
984 |
+
}, {
|
985 |
+
key: "onResize",
|
986 |
+
value: function onResize() {
|
987 |
+
this.coverImage();
|
988 |
+
this.clipContainer();
|
989 |
+
}
|
990 |
+
}]);
|
991 |
+
|
992 |
+
return Jarallax;
|
993 |
+
}(); // global definition
|
994 |
+
|
995 |
+
|
996 |
+
var plugin = function plugin(items, options) {
|
997 |
+
// check for dom element
|
998 |
+
// thanks: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object
|
999 |
+
if ('object' === (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) ? items instanceof HTMLElement : items && 'object' === _typeof(items) && null !== items && 1 === items.nodeType && 'string' === typeof items.nodeName) {
|
1000 |
+
items = [items];
|
1001 |
+
}
|
1002 |
+
|
1003 |
+
var len = items.length;
|
1004 |
+
var k = 0;
|
1005 |
+
var ret;
|
1006 |
+
|
1007 |
+
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
1008 |
+
args[_key2 - 2] = arguments[_key2];
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
for (k; k < len; k += 1) {
|
1012 |
+
if ('object' === _typeof(options) || 'undefined' === typeof options) {
|
1013 |
+
if (!items[k].jarallax) {
|
1014 |
+
items[k].jarallax = new Jarallax(items[k], options);
|
1015 |
+
}
|
1016 |
+
} else if (items[k].jarallax) {
|
1017 |
+
// eslint-disable-next-line prefer-spread
|
1018 |
+
ret = items[k].jarallax[options].apply(items[k].jarallax, args);
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
if ('undefined' !== typeof ret) {
|
1022 |
+
return ret;
|
1023 |
+
}
|
1024 |
+
}
|
1025 |
+
|
1026 |
+
return items;
|
1027 |
+
};
|
1028 |
+
|
1029 |
+
plugin.constructor = Jarallax;
|
1030 |
+
/* harmony default export */ __webpack_exports__["default"] = (plugin);
|
1031 |
+
|
1032 |
+
/***/ })
|
1033 |
+
/******/ ]);
|
assets/js/lib/jarallax/jarallax.min.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Name : Just Another Parallax [Jarallax]
|
3 |
+
* Version : 1.12.7
|
4 |
+
* Author : nK <https://nkdev.info>
|
5 |
+
* GitHub : https://github.com/nk-o/jarallax
|
6 |
+
*/!function(n){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=10)}([,,function(e,t){e.exports=function(e){"complete"===document.readyState||"interactive"===document.readyState?e.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&e.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",e)}},function(t,e,n){!function(e){e="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};t.exports=e}.call(this,n(4))},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},,,,,,function(e,t,n){e.exports=n(11)},function(e,t,n){"use strict";n.r(t);var t=n(2),t=n.n(t),i=n(3),a=n(12);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,l=i.window.jarallax;i.window.jarallax=a.default,i.window.jarallax.noConflict=function(){return i.window.jarallax=l,this},void 0!==i.jQuery&&((n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.prototype.unshift.call(t,this);var o=a.default.apply(i.window,t);return"object"!==r(o)?o:this}).constructor=a.default.constructor,o=i.jQuery.fn.jarallax,i.jQuery.fn.jarallax=n,i.jQuery.fn.jarallax.noConflict=function(){return i.jQuery.fn.jarallax=o,this}),t()(function(){Object(a.default)(document.querySelectorAll("[data-jarallax]"))})},function(e,t,n){"use strict";n.r(t);var o=n(2),o=n.n(o),f=n(3);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var o,i,a=[],r=!0,l=!1;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==n.return||n.return()}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var r,g,u=f.window.navigator,p=-1<u.userAgent.indexOf("MSIE ")||-1<u.userAgent.indexOf("Trident/")||-1<u.userAgent.indexOf("Edge/"),l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(u.userAgent),d=function(){for(var e="transform WebkitTransform MozTransform".split(" "),t=document.createElement("div"),n=0;n<e.length;n+=1)if(t&&void 0!==t.style[e[n]])return e[n];return!1}();function m(){g=l?(!r&&document.body&&((r=document.createElement("div")).style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(r)),(r?r.clientHeight:0)||f.window.innerHeight||document.documentElement.clientHeight):f.window.innerHeight||document.documentElement.clientHeight}m(),f.window.addEventListener("resize",m),f.window.addEventListener("orientationchange",m),f.window.addEventListener("load",m),o()(function(){m()});var y=[];function b(){y.length&&(y.forEach(function(e,t){var n=e.instance,o=e.oldData,i=n.$item.getBoundingClientRect(),e={width:i.width,height:i.height,top:i.top,bottom:i.bottom,wndW:f.window.innerWidth,wndH:g},i=!o||o.wndW!==e.wndW||o.wndH!==e.wndH||o.width!==e.width||o.height!==e.height,o=i||!o||o.top!==e.top||o.bottom!==e.bottom;y[t].oldData=e,i&&n.onResize(),o&&n.onScroll()}),f.window.requestAnimationFrame(b))}var h=0,v=function(){function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var n=this;n.instanceID=h,h+=1,n.$item=e,n.defaults={type:"scroll",speed:.5,imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,disableVideo:!1,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};var o,i,a=n.$item.dataset||{},r={};Object.keys(a).forEach(function(e){var t=e.substr(0,1).toLowerCase()+e.substr(1);t&&void 0!==n.defaults[t]&&(r[t]=a[e])}),n.options=n.extend({},n.defaults,r,t),n.pureOptions=n.extend({},n.options),Object.keys(n.options).forEach(function(e){"true"===n.options[e]?n.options[e]=!0:"false"===n.options[e]&&(n.options[e]=!1)}),n.options.speed=Math.min(2,Math.max(-1,parseFloat(n.options.speed))),"string"==typeof n.options.disableParallax&&(n.options.disableParallax=new RegExp(n.options.disableParallax)),n.options.disableParallax instanceof RegExp&&(o=n.options.disableParallax,n.options.disableParallax=function(){return o.test(u.userAgent)}),"function"!=typeof n.options.disableParallax&&(n.options.disableParallax=function(){return!1}),"string"==typeof n.options.disableVideo&&(n.options.disableVideo=new RegExp(n.options.disableVideo)),n.options.disableVideo instanceof RegExp&&(i=n.options.disableVideo,n.options.disableVideo=function(){return i.test(u.userAgent)}),"function"!=typeof n.options.disableVideo&&(n.options.disableVideo=function(){return!1});t=n.options.elementInViewport;(t=t&&"object"===c(t)&&void 0!==t.length?s(t,1)[0]:t)instanceof Element||(t=null),n.options.elementInViewport=t,n.image={src:n.options.imgSrc||null,$container:null,useImgTag:!1,position:/iPad|iPhone|iPod|Android/.test(u.userAgent)?"absolute":"fixed"},n.initImg()&&n.canInitParallax()&&n.init()}var e,t,n;return e=l,(t=[{key:"css",value:function(t,n){return"string"==typeof n?f.window.getComputedStyle(t).getPropertyValue(n):(n.transform&&d&&(n[d]=n.transform),Object.keys(n).forEach(function(e){t.style[e]=n[e]}),t)}},{key:"extend",value:function(n){for(var e=arguments.length,o=new Array(1<e?e-1:0),t=1;t<e;t++)o[t-1]=arguments[t];return n=n||{},Object.keys(o).forEach(function(t){o[t]&&Object.keys(o[t]).forEach(function(e){n[e]=o[t][e]})}),n}},{key:"getWindowData",value:function(){return{width:f.window.innerWidth||document.documentElement.clientWidth,height:g,y:document.documentElement.scrollTop}}},{key:"initImg",value:function(){var e=this,t=e.options.imgElement;return(t=t&&"string"==typeof t?e.$item.querySelector(t):t)instanceof Element||(e.options.imgSrc?(t=new Image).src=e.options.imgSrc:t=null),t&&(e.options.keepImg?e.image.$item=t.cloneNode(!0):(e.image.$item=t,e.image.$itemParent=t.parentNode),e.image.useImgTag=!0),!!e.image.$item||(null===e.image.src&&(e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e.image.bgImage=e.css(e.$item,"background-image")),!(!e.image.bgImage||"none"===e.image.bgImage))}},{key:"canInitParallax",value:function(){return d&&!this.options.disableParallax()}},{key:"init",value:function(){var e,t=this,n={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"},o={pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",willChange:"transform,opacity"};t.options.keepImg||((e=t.$item.getAttribute("style"))&&t.$item.setAttribute("data-jarallax-original-styles",e),!t.image.useImgTag||(e=t.image.$item.getAttribute("style"))&&t.image.$item.setAttribute("data-jarallax-original-styles",e)),"static"===t.css(t.$item,"position")&&t.css(t.$item,{position:"relative"}),"auto"===t.css(t.$item,"z-index")&&t.css(t.$item,{zIndex:0}),t.image.$container=document.createElement("div"),t.css(t.image.$container,n),t.css(t.image.$container,{"z-index":t.options.zIndex}),p&&t.css(t.image.$container,{opacity:.9999}),t.image.$container.setAttribute("id","jarallax-container-".concat(t.instanceID)),t.$item.appendChild(t.image.$container),t.image.useImgTag?o=t.extend({"object-fit":t.options.imgSize,"object-position":t.options.imgPosition,"font-family":"object-fit: ".concat(t.options.imgSize,"; object-position: ").concat(t.options.imgPosition,";"),"max-width":"none"},n,o):(t.image.$item=document.createElement("div"),t.image.src&&(o=t.extend({"background-position":t.options.imgPosition,"background-size":t.options.imgSize,"background-repeat":t.options.imgRepeat,"background-image":t.image.bgImage||'url("'.concat(t.image.src,'")')},n,o))),"opacity"!==t.options.type&&"scale"!==t.options.type&&"scale-opacity"!==t.options.type&&1!==t.options.speed||(t.image.position="absolute"),"fixed"===t.image.position&&(n=function(e){for(var t=[];null!==e.parentElement;)1===(e=e.parentElement).nodeType&&t.push(e);return t}(t.$item).filter(function(e){var t=f.window.getComputedStyle(e),e=t["-webkit-transform"]||t["-moz-transform"]||t.transform;return e&&"none"!==e||/(auto|scroll)/.test(t.overflow+t["overflow-y"]+t["overflow-x"])}),t.image.position=n.length?"absolute":"fixed"),o.position=t.image.position,t.css(t.image.$item,o),t.image.$container.appendChild(t.image.$item),t.onResize(),t.onScroll(!0),t.options.onInit&&t.options.onInit.call(t),"none"!==t.css(t.$item,"background-image")&&t.css(t.$item,{"background-image":"none"}),t.addToParallaxList()}},{key:"addToParallaxList",value:function(){y.push({instance:this}),1===y.length&&f.window.requestAnimationFrame(b)}},{key:"removeFromParallaxList",value:function(){var n=this;y.forEach(function(e,t){e.instance.instanceID===n.instanceID&&y.splice(t,1)})}},{key:"destroy",value:function(){var e=this;e.removeFromParallaxList();var t,n=e.$item.getAttribute("data-jarallax-original-styles");e.$item.removeAttribute("data-jarallax-original-styles"),n?e.$item.setAttribute("style",n):e.$item.removeAttribute("style"),e.image.useImgTag&&(t=e.image.$item.getAttribute("data-jarallax-original-styles"),e.image.$item.removeAttribute("data-jarallax-original-styles"),t?e.image.$item.setAttribute("style",n):e.image.$item.removeAttribute("style"),e.image.$itemParent&&e.image.$itemParent.appendChild(e.image.$item)),e.$clipStyles&&e.$clipStyles.parentNode.removeChild(e.$clipStyles),e.image.$container&&e.image.$container.parentNode.removeChild(e.image.$container),e.options.onDestroy&&e.options.onDestroy.call(e),delete e.$item.jarallax}},{key:"clipContainer",value:function(){var e,t,n;"fixed"===this.image.position&&(t=(n=(e=this).image.$container.getBoundingClientRect()).width,n=n.height,e.$clipStyles||(e.$clipStyles=document.createElement("style"),e.$clipStyles.setAttribute("type","text/css"),e.$clipStyles.setAttribute("id","jarallax-clip-".concat(e.instanceID)),(document.head||document.getElementsByTagName("head")[0]).appendChild(e.$clipStyles)),n="#jarallax-container-".concat(e.instanceID," {\n clip: rect(0 ").concat(t,"px ").concat(n,"px 0);\n clip: rect(0, ").concat(t,"px, ").concat(n,"px, 0);\n -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n }"),e.$clipStyles.styleSheet?e.$clipStyles.styleSheet.cssText=n:e.$clipStyles.innerHTML=n)}},{key:"coverImage",value:function(){var e=this,t=e.image.$container.getBoundingClientRect(),n=t.height,o=e.options.speed,i="scroll"===e.options.type||"scroll-opacity"===e.options.type,a=0,r=n,l=0;return i&&(o<0?(a=o*Math.max(n,g),g<n&&(a-=o*(n-g))):a=o*(n+g),1<o?r=Math.abs(a-g):o<0?r=a/o+Math.abs(a):r+=(g-n)*(1-o),a/=2),e.parallaxScrollDistance=a,l=i?(g-r)/2:(n-r)/2,e.css(e.image.$item,{height:"".concat(r,"px"),marginTop:"".concat(l,"px"),left:"fixed"===e.image.position?"".concat(t.left,"px"):"0",width:"".concat(t.width,"px")}),e.options.onCoverImage&&e.options.onCoverImage.call(e),{image:{height:r,marginTop:l},container:t}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(e){var t,n,o,i,a,r,l,s=this,c=s.$item.getBoundingClientRect(),u=c.top,p=c.height,d={},m=c;s.options.elementInViewport&&(m=s.options.elementInViewport.getBoundingClientRect()),s.isElementInViewport=0<=m.bottom&&0<=m.right&&m.top<=g&&m.left<=f.window.innerWidth,(e||s.isElementInViewport)&&(t=Math.max(0,u),n=Math.max(0,p+u),o=Math.max(0,-u),i=Math.max(0,u+p-g),a=Math.max(0,p-(u+p-g)),r=Math.max(0,-u+g-p),m=1-(g-u)/(g+p)*2,e=1,p<g?e=1-(o||i)/p:n<=g?e=n/g:a<=g&&(e=a/g),"opacity"!==s.options.type&&"scale-opacity"!==s.options.type&&"scroll-opacity"!==s.options.type||(d.transform="translate3d(0,0,0)",d.opacity=e),"scale"!==s.options.type&&"scale-opacity"!==s.options.type||(l=1,s.options.speed<0?l-=s.options.speed*e:l+=s.options.speed*(1-e),d.transform="scale(".concat(l,") translate3d(0,0,0)")),"scroll"!==s.options.type&&"scroll-opacity"!==s.options.type||(l=s.parallaxScrollDistance*m,"absolute"===s.image.position&&(l-=u),d.transform="translate3d(0,".concat(l,"px,0)")),s.css(s.image.$item,d),s.options.onScroll&&s.options.onScroll.call(s,{section:c,beforeTop:t,beforeTopEnd:n,afterTop:o,beforeBottom:i,beforeBottomEnd:a,afterBottom:r,visiblePercent:e,fromViewportCenter:m}))}},{key:"onResize",value:function(){this.coverImage(),this.clipContainer()}}])&&a(e.prototype,t),n&&a(e,n),l}(),o=function(e,t){for(var n,o=(e=("object"===("undefined"==typeof HTMLElement?"undefined":c(HTMLElement))?e instanceof HTMLElement:e&&"object"===c(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)?[e]:e).length,i=0,a=arguments.length,r=new Array(2<a?a-2:0),l=2;l<a;l++)r[l-2]=arguments[l];for(;i<o;i+=1)if("object"===c(t)||void 0===t?e[i].jarallax||(e[i].jarallax=new v(e[i],t)):e[i].jarallax&&(n=e[i].jarallax[t].apply(e[i].jarallax,r)),void 0!==n)return n;return e};o.constructor=v,t.default=o}]);
|
assets/js/lib/parallax/parallax.js
ADDED
@@ -0,0 +1,593 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Parallax.js
|
3 |
+
* @author Matthew Wagerfield - @wagerfield, René Roth - mail@reneroth.org
|
4 |
+
* @description Creates a parallax effect between an array of layers,
|
5 |
+
* driving the motion from the gyroscope output of a smartdevice.
|
6 |
+
* If no gyroscope is available, the cursor position is used.
|
7 |
+
*/
|
8 |
+
|
9 |
+
const rqAnFr = require('raf')
|
10 |
+
const objectAssign = require('object-assign')
|
11 |
+
|
12 |
+
const helpers = {
|
13 |
+
propertyCache: {},
|
14 |
+
vendors: [null, ['-webkit-','webkit'], ['-moz-','Moz'], ['-o-','O'], ['-ms-','ms']],
|
15 |
+
|
16 |
+
clamp(value, min, max) {
|
17 |
+
return min < max
|
18 |
+
? (value < min ? min : value > max ? max : value)
|
19 |
+
: (value < max ? max : value > min ? min : value)
|
20 |
+
},
|
21 |
+
|
22 |
+
data(element, name) {
|
23 |
+
return helpers.deserialize(element.getAttribute('data-'+name))
|
24 |
+
},
|
25 |
+
|
26 |
+
deserialize(value) {
|
27 |
+
if (value === 'true') {
|
28 |
+
return true
|
29 |
+
} else if (value === 'false') {
|
30 |
+
return false
|
31 |
+
} else if (value === 'null') {
|
32 |
+
return null
|
33 |
+
} else if (!isNaN(parseFloat(value)) && isFinite(value)) {
|
34 |
+
return parseFloat(value)
|
35 |
+
} else {
|
36 |
+
return value
|
37 |
+
}
|
38 |
+
},
|
39 |
+
|
40 |
+
camelCase(value) {
|
41 |
+
return value.replace(/-+(.)?/g, (match, character) => {
|
42 |
+
return character ? character.toUpperCase() : ''
|
43 |
+
})
|
44 |
+
},
|
45 |
+
|
46 |
+
accelerate(element) {
|
47 |
+
helpers.css(element, 'transform', 'translate3d(0,0,0) rotate(0.0001deg)')
|
48 |
+
helpers.css(element, 'transform-style', 'preserve-3d')
|
49 |
+
helpers.css(element, 'backface-visibility', 'hidden')
|
50 |
+
},
|
51 |
+
|
52 |
+
transformSupport(value) {
|
53 |
+
let element = document.createElement('div'),
|
54 |
+
propertySupport = false,
|
55 |
+
propertyValue = null,
|
56 |
+
featureSupport = false,
|
57 |
+
cssProperty = null,
|
58 |
+
jsProperty = null
|
59 |
+
for (let i = 0, l = helpers.vendors.length; i < l; i++) {
|
60 |
+
if (helpers.vendors[i] !== null) {
|
61 |
+
cssProperty = helpers.vendors[i][0] + 'transform'
|
62 |
+
jsProperty = helpers.vendors[i][1] + 'Transform'
|
63 |
+
} else {
|
64 |
+
cssProperty = 'transform'
|
65 |
+
jsProperty = 'transform'
|
66 |
+
}
|
67 |
+
if (element.style[jsProperty] !== undefined) {
|
68 |
+
propertySupport = true
|
69 |
+
break
|
70 |
+
}
|
71 |
+
}
|
72 |
+
switch(value) {
|
73 |
+
case '2D':
|
74 |
+
featureSupport = propertySupport
|
75 |
+
break
|
76 |
+
case '3D':
|
77 |
+
if (propertySupport) {
|
78 |
+
let body = document.body || document.createElement('body'),
|
79 |
+
documentElement = document.documentElement,
|
80 |
+
documentOverflow = documentElement.style.overflow,
|
81 |
+
isCreatedBody = false
|
82 |
+
|
83 |
+
if (!document.body) {
|
84 |
+
isCreatedBody = true
|
85 |
+
documentElement.style.overflow = 'hidden'
|
86 |
+
documentElement.appendChild(body)
|
87 |
+
body.style.overflow = 'hidden'
|
88 |
+
body.style.background = ''
|
89 |
+
}
|
90 |
+
|
91 |
+
body.appendChild(element)
|
92 |
+
element.style[jsProperty] = 'translate3d(1px,1px,1px)'
|
93 |
+
propertyValue = window.getComputedStyle(element).getPropertyValue(cssProperty)
|
94 |
+
featureSupport = propertyValue !== undefined && propertyValue.length > 0 && propertyValue !== 'none'
|
95 |
+
documentElement.style.overflow = documentOverflow
|
96 |
+
body.removeChild(element)
|
97 |
+
|
98 |
+
if ( isCreatedBody ) {
|
99 |
+
body.removeAttribute('style')
|
100 |
+
body.parentNode.removeChild(body)
|
101 |
+
}
|
102 |
+
}
|
103 |
+
break
|
104 |
+
}
|
105 |
+
return featureSupport
|
106 |
+
},
|
107 |
+
|
108 |
+
css(element, property, value) {
|
109 |
+
let jsProperty = helpers.propertyCache[property]
|
110 |
+
if (!jsProperty) {
|
111 |
+
for (let i = 0, l = helpers.vendors.length; i < l; i++) {
|
112 |
+
if (helpers.vendors[i] !== null) {
|
113 |
+
jsProperty = helpers.camelCase(helpers.vendors[i][1] + '-' + property)
|
114 |
+
} else {
|
115 |
+
jsProperty = property
|
116 |
+
}
|
117 |
+
if (element.style[jsProperty] !== undefined) {
|
118 |
+
helpers.propertyCache[property] = jsProperty
|
119 |
+
break
|
120 |
+
}
|
121 |
+
}
|
122 |
+
}
|
123 |
+
element.style[jsProperty] = value
|
124 |
+
}
|
125 |
+
|
126 |
+
}
|
127 |
+
|
128 |
+
const MAGIC_NUMBER = 30,
|
129 |
+
DEFAULTS = {
|
130 |
+
relativeInput: false,
|
131 |
+
clipRelativeInput: false,
|
132 |
+
inputElement: null,
|
133 |
+
hoverOnly: false,
|
134 |
+
calibrationThreshold: 100,
|
135 |
+
calibrationDelay: 500,
|
136 |
+
supportDelay: 500,
|
137 |
+
calibrateX: false,
|
138 |
+
calibrateY: true,
|
139 |
+
invertX: true,
|
140 |
+
invertY: true,
|
141 |
+
limitX: false,
|
142 |
+
limitY: false,
|
143 |
+
scalarX: 10.0,
|
144 |
+
scalarY: 10.0,
|
145 |
+
frictionX: 0.1,
|
146 |
+
frictionY: 0.1,
|
147 |
+
originX: 0.5,
|
148 |
+
originY: 0.5,
|
149 |
+
pointerEvents: false,
|
150 |
+
precision: 1,
|
151 |
+
onReady: null,
|
152 |
+
selector: null
|
153 |
+
}
|
154 |
+
|
155 |
+
class Parallax {
|
156 |
+
constructor(element, options) {
|
157 |
+
|
158 |
+
this.element = element
|
159 |
+
|
160 |
+
const data = {
|
161 |
+
calibrateX: helpers.data(this.element, 'calibrate-x'),
|
162 |
+
calibrateY: helpers.data(this.element, 'calibrate-y'),
|
163 |
+
invertX: helpers.data(this.element, 'invert-x'),
|
164 |
+
invertY: helpers.data(this.element, 'invert-y'),
|
165 |
+
limitX: helpers.data(this.element, 'limit-x'),
|
166 |
+
limitY: helpers.data(this.element, 'limit-y'),
|
167 |
+
scalarX: helpers.data(this.element, 'scalar-x'),
|
168 |
+
scalarY: helpers.data(this.element, 'scalar-y'),
|
169 |
+
frictionX: helpers.data(this.element, 'friction-x'),
|
170 |
+
frictionY: helpers.data(this.element, 'friction-y'),
|
171 |
+
originX: helpers.data(this.element, 'origin-x'),
|
172 |
+
originY: helpers.data(this.element, 'origin-y'),
|
173 |
+
pointerEvents: helpers.data(this.element, 'pointer-events'),
|
174 |
+
precision: helpers.data(this.element, 'precision'),
|
175 |
+
relativeInput: helpers.data(this.element, 'relative-input'),
|
176 |
+
clipRelativeInput: helpers.data(this.element, 'clip-relative-input'),
|
177 |
+
hoverOnly: helpers.data(this.element, 'hover-only'),
|
178 |
+
inputElement: document.querySelector(helpers.data(this.element, 'input-element')),
|
179 |
+
selector: helpers.data(this.element, 'selector')
|
180 |
+
}
|
181 |
+
|
182 |
+
for (let key in data) {
|
183 |
+
if (data[key] === null) {
|
184 |
+
delete data[key]
|
185 |
+
}
|
186 |
+
}
|
187 |
+
|
188 |
+
objectAssign(this, DEFAULTS, data, options)
|
189 |
+
|
190 |
+
if(!this.inputElement) {
|
191 |
+
this.inputElement = this.element
|
192 |
+
}
|
193 |
+
|
194 |
+
this.calibrationTimer = null
|
195 |
+
this.calibrationFlag = true
|
196 |
+
this.enabled = false
|
197 |
+
this.depthsX = []
|
198 |
+
this.depthsY = []
|
199 |
+
this.raf = null
|
200 |
+
|
201 |
+
this.bounds = null
|
202 |
+
this.elementPositionX = 0
|
203 |
+
this.elementPositionY = 0
|
204 |
+
this.elementWidth = 0
|
205 |
+
this.elementHeight = 0
|
206 |
+
|
207 |
+
this.elementCenterX = 0
|
208 |
+
this.elementCenterY = 0
|
209 |
+
|
210 |
+
this.elementRangeX = 0
|
211 |
+
this.elementRangeY = 0
|
212 |
+
|
213 |
+
this.calibrationX = 0
|
214 |
+
this.calibrationY = 0
|
215 |
+
|
216 |
+
this.inputX = 0
|
217 |
+
this.inputY = 0
|
218 |
+
|
219 |
+
this.motionX = 0
|
220 |
+
this.motionY = 0
|
221 |
+
|
222 |
+
this.velocityX = 0
|
223 |
+
this.velocityY = 0
|
224 |
+
|
225 |
+
this.onMouseMove = this.onMouseMove.bind(this)
|
226 |
+
this.onDeviceOrientation = this.onDeviceOrientation.bind(this)
|
227 |
+
this.onDeviceMotion = this.onDeviceMotion.bind(this)
|
228 |
+
this.onOrientationTimer = this.onOrientationTimer.bind(this)
|
229 |
+
this.onMotionTimer = this.onMotionTimer.bind(this)
|
230 |
+
this.onCalibrationTimer = this.onCalibrationTimer.bind(this)
|
231 |
+
this.onAnimationFrame = this.onAnimationFrame.bind(this)
|
232 |
+
this.onWindowResize = this.onWindowResize.bind(this)
|
233 |
+
|
234 |
+
this.windowWidth = null
|
235 |
+
this.windowHeight = null
|
236 |
+
this.windowCenterX = null
|
237 |
+
this.windowCenterY = null
|
238 |
+
this.windowRadiusX = null
|
239 |
+
this.windowRadiusY = null
|
240 |
+
this.portrait = false
|
241 |
+
this.desktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i)
|
242 |
+
this.motionSupport = !!window.DeviceMotionEvent && !this.desktop
|
243 |
+
this.orientationSupport = !!window.DeviceOrientationEvent && !this.desktop
|
244 |
+
this.orientationStatus = 0
|
245 |
+
this.motionStatus = 0
|
246 |
+
|
247 |
+
this.initialise()
|
248 |
+
}
|
249 |
+
|
250 |
+
initialise() {
|
251 |
+
if (this.transform2DSupport === undefined) {
|
252 |
+
this.transform2DSupport = helpers.transformSupport('2D')
|
253 |
+
this.transform3DSupport = helpers.transformSupport('3D')
|
254 |
+
}
|
255 |
+
|
256 |
+
// Configure Context Styles
|
257 |
+
if (this.transform3DSupport) {
|
258 |
+
helpers.accelerate(this.element)
|
259 |
+
}
|
260 |
+
|
261 |
+
let style = window.getComputedStyle(this.element)
|
262 |
+
if (style.getPropertyValue('position') === 'static') {
|
263 |
+
this.element.style.position = 'relative'
|
264 |
+
}
|
265 |
+
|
266 |
+
// Pointer events
|
267 |
+
if(!this.pointerEvents) {
|
268 |
+
this.element.style.pointerEvents = 'none'
|
269 |
+
}
|
270 |
+
|
271 |
+
// Setup
|
272 |
+
this.updateLayers()
|
273 |
+
this.updateDimensions()
|
274 |
+
this.enable()
|
275 |
+
this.queueCalibration(this.calibrationDelay)
|
276 |
+
}
|
277 |
+
|
278 |
+
doReadyCallback() {
|
279 |
+
if(this.onReady) {
|
280 |
+
this.onReady()
|
281 |
+
}
|
282 |
+
}
|
283 |
+
|
284 |
+
updateLayers() {
|
285 |
+
if(this.selector) {
|
286 |
+
this.layers = this.element.querySelectorAll(this.selector)
|
287 |
+
} else {
|
288 |
+
this.layers = this.element.children
|
289 |
+
}
|
290 |
+
|
291 |
+
if(!this.layers.length) {
|
292 |
+
console.warn('ParallaxJS: Your scene does not have any layers.')
|
293 |
+
}
|
294 |
+
|
295 |
+
this.depthsX = []
|
296 |
+
this.depthsY = []
|
297 |
+
|
298 |
+
for (let index = 0; index < this.layers.length; index++) {
|
299 |
+
let layer = this.layers[index]
|
300 |
+
|
301 |
+
if (this.transform3DSupport) {
|
302 |
+
helpers.accelerate(layer)
|
303 |
+
}
|
304 |
+
|
305 |
+
layer.style.position = index ? 'absolute' : 'relative'
|
306 |
+
layer.style.display = 'block'
|
307 |
+
layer.style.left = 0
|
308 |
+
layer.style.top = 0
|
309 |
+
|
310 |
+
let depth = helpers.data(layer, 'depth') || 0
|
311 |
+
this.depthsX.push(helpers.data(layer, 'depth-x') || depth)
|
312 |
+
this.depthsY.push(helpers.data(layer, 'depth-y') || depth)
|
313 |
+
}
|
314 |
+
}
|
315 |
+
|
316 |
+
updateDimensions() {
|
317 |
+
this.windowWidth = window.innerWidth
|
318 |
+
this.windowHeight = window.innerHeight
|
319 |
+
this.windowCenterX = this.windowWidth * this.originX
|
320 |
+
this.windowCenterY = this.windowHeight * this.originY
|
321 |
+
this.windowRadiusX = Math.max(this.windowCenterX, this.windowWidth - this.windowCenterX)
|
322 |
+
this.windowRadiusY = Math.max(this.windowCenterY, this.windowHeight - this.windowCenterY)
|
323 |
+
}
|
324 |
+
|
325 |
+
updateBounds() {
|
326 |
+
this.bounds = this.inputElement.getBoundingClientRect()
|
327 |
+
this.elementPositionX = this.bounds.left
|
328 |
+
this.elementPositionY = this.bounds.top
|
329 |
+
this.elementWidth = this.bounds.width
|
330 |
+
this.elementHeight = this.bounds.height
|
331 |
+
this.elementCenterX = this.elementWidth * this.originX
|
332 |
+
this.elementCenterY = this.elementHeight * this.originY
|
333 |
+
this.elementRangeX = Math.max(this.elementCenterX, this.elementWidth - this.elementCenterX)
|
334 |
+
this.elementRangeY = Math.max(this.elementCenterY, this.elementHeight - this.elementCenterY)
|
335 |
+
}
|
336 |
+
|
337 |
+
queueCalibration(delay) {
|
338 |
+
clearTimeout(this.calibrationTimer)
|
339 |
+
this.calibrationTimer = setTimeout(this.onCalibrationTimer, delay)
|
340 |
+
}
|
341 |
+
|
342 |
+
enable() {
|
343 |
+
if (this.enabled) {
|
344 |
+
return
|
345 |
+
}
|
346 |
+
this.enabled = true
|
347 |
+
|
348 |
+
if (this.orientationSupport) {
|
349 |
+
this.portrait = false
|
350 |
+
window.addEventListener('deviceorientation', this.onDeviceOrientation)
|
351 |
+
this.detectionTimer = setTimeout(this.onOrientationTimer, this.supportDelay)
|
352 |
+
} else if (this.motionSupport) {
|
353 |
+
this.portrait = false
|
354 |
+
window.addEventListener('devicemotion', this.onDeviceMotion)
|
355 |
+
this.detectionTimer = setTimeout(this.onMotionTimer, this.supportDelay)
|
356 |
+
} else {
|
357 |
+
this.calibrationX = 0
|
358 |
+
this.calibrationY = 0
|
359 |
+
this.portrait = false
|
360 |
+
window.addEventListener('mousemove', this.onMouseMove)
|
361 |
+
this.doReadyCallback()
|
362 |
+
}
|
363 |
+
|
364 |
+
window.addEventListener('resize', this.onWindowResize)
|
365 |
+
this.raf = rqAnFr(this.onAnimationFrame)
|
366 |
+
}
|
367 |
+
|
368 |
+
disable() {
|
369 |
+
if (!this.enabled) {
|
370 |
+
return
|
371 |
+
}
|
372 |
+
this.enabled = false
|
373 |
+
|
374 |
+
if (this.orientationSupport) {
|
375 |
+
window.removeEventListener('deviceorientation', this.onDeviceOrientation)
|
376 |
+
} else if (this.motionSupport) {
|
377 |
+
window.removeEventListener('devicemotion', this.onDeviceMotion)
|
378 |
+
} else {
|
379 |
+
window.removeEventListener('mousemove', this.onMouseMove)
|
380 |
+
}
|
381 |
+
|
382 |
+
window.removeEventListener('resize', this.onWindowResize)
|
383 |
+
rqAnFr.cancel(this.raf)
|
384 |
+
}
|
385 |
+
|
386 |
+
calibrate(x, y) {
|
387 |
+
this.calibrateX = x === undefined ? this.calibrateX : x
|
388 |
+
this.calibrateY = y === undefined ? this.calibrateY : y
|
389 |
+
}
|
390 |
+
|
391 |
+
invert(x, y) {
|
392 |
+
this.invertX = x === undefined ? this.invertX : x
|
393 |
+
this.invertY = y === undefined ? this.invertY : y
|
394 |
+
}
|
395 |
+
|
396 |
+
friction(x, y) {
|
397 |
+
this.frictionX = x === undefined ? this.frictionX : x
|
398 |
+
this.frictionY = y === undefined ? this.frictionY : y
|
399 |
+
}
|
400 |
+
|
401 |
+
scalar(x, y) {
|
402 |
+
this.scalarX = x === undefined ? this.scalarX : x
|
403 |
+
this.scalarY = y === undefined ? this.scalarY : y
|
404 |
+
}
|
405 |
+
|
406 |
+
limit(x, y) {
|
407 |
+
this.limitX = x === undefined ? this.limitX : x
|
408 |
+
this.limitY = y === undefined ? this.limitY : y
|
409 |
+
}
|
410 |
+
|
411 |
+
origin(x, y) {
|
412 |
+
this.originX = x === undefined ? this.originX : x
|
413 |
+
this.originY = y === undefined ? this.originY : y
|
414 |
+
}
|
415 |
+
|
416 |
+
setInputElement(element) {
|
417 |
+
this.inputElement = element
|
418 |
+
this.updateDimensions()
|
419 |
+
}
|
420 |
+
|
421 |
+
setPosition(element, x, y) {
|
422 |
+
x = x.toFixed(this.precision) + 'px'
|
423 |
+
y = y.toFixed(this.precision) + 'px'
|
424 |
+
if (this.transform3DSupport) {
|
425 |
+
helpers.css(element, 'transform', 'translate3d(' + x + ',' + y + ',0)')
|
426 |
+
} else if (this.transform2DSupport) {
|
427 |
+
helpers.css(element, 'transform', 'translate(' + x + ',' + y + ')')
|
428 |
+
} else {
|
429 |
+
element.style.left = x
|
430 |
+
element.style.top = y
|
431 |
+
}
|
432 |
+
}
|
433 |
+
|
434 |
+
onOrientationTimer() {
|
435 |
+
if (this.orientationSupport && this.orientationStatus === 0) {
|
436 |
+
this.disable()
|
437 |
+
this.orientationSupport = false
|
438 |
+
this.enable()
|
439 |
+
} else {
|
440 |
+
this.doReadyCallback()
|
441 |
+
}
|
442 |
+
}
|
443 |
+
|
444 |
+
onMotionTimer() {
|
445 |
+
if (this.motionSupport && this.motionStatus === 0) {
|
446 |
+
this.disable()
|
447 |
+
this.motionSupport = false
|
448 |
+
this.enable()
|
449 |
+
} else {
|
450 |
+
this.doReadyCallback()
|
451 |
+
}
|
452 |
+
}
|
453 |
+
|
454 |
+
onCalibrationTimer() {
|
455 |
+
this.calibrationFlag = true
|
456 |
+
}
|
457 |
+
|
458 |
+
onWindowResize() {
|
459 |
+
this.updateDimensions()
|
460 |
+
}
|
461 |
+
|
462 |
+
onAnimationFrame() {
|
463 |
+
this.updateBounds()
|
464 |
+
let calibratedInputX = this.inputX - this.calibrationX,
|
465 |
+
calibratedInputY = this.inputY - this.calibrationY
|
466 |
+
if ((Math.abs(calibratedInputX) > this.calibrationThreshold) || (Math.abs(calibratedInputY) > this.calibrationThreshold)) {
|
467 |
+
this.queueCalibration(0)
|
468 |
+
}
|
469 |
+
if (this.portrait) {
|
470 |
+
this.motionX = this.calibrateX ? calibratedInputY : this.inputY
|
471 |
+
this.motionY = this.calibrateY ? calibratedInputX : this.inputX
|
472 |
+
} else {
|
473 |
+
this.motionX = this.calibrateX ? calibratedInputX : this.inputX
|
474 |
+
this.motionY = this.calibrateY ? calibratedInputY : this.inputY
|
475 |
+
}
|
476 |
+
this.motionX *= this.elementWidth * (this.scalarX / 100)
|
477 |
+
this.motionY *= this.elementHeight * (this.scalarY / 100)
|
478 |
+
if (!isNaN(parseFloat(this.limitX))) {
|
479 |
+
this.motionX = helpers.clamp(this.motionX, -this.limitX, this.limitX)
|
480 |
+
}
|
481 |
+
if (!isNaN(parseFloat(this.limitY))) {
|
482 |
+
this.motionY = helpers.clamp(this.motionY, -this.limitY, this.limitY)
|
483 |
+
}
|
484 |
+
this.velocityX += (this.motionX - this.velocityX) * this.frictionX
|
485 |
+
this.velocityY += (this.motionY - this.velocityY) * this.frictionY
|
486 |
+
for (let index = 0; index < this.layers.length; index++) {
|
487 |
+
let layer = this.layers[index],
|
488 |
+
depthX = this.depthsX[index],
|
489 |
+
depthY = this.depthsY[index],
|
490 |
+
xOffset = this.velocityX * (depthX * (this.invertX ? -1 : 1)),
|
491 |
+
yOffset = this.velocityY * (depthY * (this.invertY ? -1 : 1))
|
492 |
+
this.setPosition(layer, xOffset, yOffset)
|
493 |
+
}
|
494 |
+
this.raf = rqAnFr(this.onAnimationFrame)
|
495 |
+
}
|
496 |
+
|
497 |
+
rotate(beta, gamma){
|
498 |
+
// Extract Rotation
|
499 |
+
let x = (beta || 0) / MAGIC_NUMBER, // -90 :: 90
|
500 |
+
y = (gamma || 0) / MAGIC_NUMBER // -180 :: 180
|
501 |
+
|
502 |
+
// Detect Orientation Change
|
503 |
+
let portrait = this.windowHeight > this.windowWidth
|
504 |
+
if (this.portrait !== portrait) {
|
505 |
+
this.portrait = portrait
|
506 |
+
this.calibrationFlag = true
|
507 |
+
}
|
508 |
+
|
509 |
+
if (this.calibrationFlag) {
|
510 |
+
this.calibrationFlag = false
|
511 |
+
this.calibrationX = x
|
512 |
+
this.calibrationY = y
|
513 |
+
}
|
514 |
+
|
515 |
+
this.inputX = x
|
516 |
+
this.inputY = y
|
517 |
+
}
|
518 |
+
|
519 |
+
onDeviceOrientation(event) {
|
520 |
+
let beta = event.beta
|
521 |
+
let gamma = event.gamma
|
522 |
+
if (beta !== null && gamma !== null) {
|
523 |
+
this.orientationStatus = 1
|
524 |
+
this.rotate(beta, gamma)
|
525 |
+
}
|
526 |
+
}
|
527 |
+
|
528 |
+
onDeviceMotion(event) {
|
529 |
+
let beta = event.rotationRate.beta
|
530 |
+
let gamma = event.rotationRate.gamma
|
531 |
+
if (beta !== null && gamma !== null) {
|
532 |
+
this.motionStatus = 1
|
533 |
+
this.rotate(beta, gamma)
|
534 |
+
}
|
535 |
+
}
|
536 |
+
|
537 |
+
onMouseMove(event) {
|
538 |
+
let clientX = event.clientX,
|
539 |
+
clientY = event.clientY
|
540 |
+
|
541 |
+
// reset input to center if hoverOnly is set and we're not hovering the element
|
542 |
+
if(this.hoverOnly &&
|
543 |
+
((clientX < this.elementPositionX || clientX > this.elementPositionX + this.elementWidth) ||
|
544 |
+
(clientY < this.elementPositionY || clientY > this.elementPositionY + this.elementHeight))) {
|
545 |
+
this.inputX = 0
|
546 |
+
this.inputY = 0
|
547 |
+
return
|
548 |
+
}
|
549 |
+
|
550 |
+
if (this.relativeInput) {
|
551 |
+
// Clip mouse coordinates inside element bounds.
|
552 |
+
if (this.clipRelativeInput) {
|
553 |
+
clientX = Math.max(clientX, this.elementPositionX)
|
554 |
+
clientX = Math.min(clientX, this.elementPositionX + this.elementWidth)
|
555 |
+
clientY = Math.max(clientY, this.elementPositionY)
|
556 |
+
clientY = Math.min(clientY, this.elementPositionY + this.elementHeight)
|
557 |
+
}
|
558 |
+
// Calculate input relative to the element.
|
559 |
+
if(this.elementRangeX && this.elementRangeY) {
|
560 |
+
this.inputX = (clientX - this.elementPositionX - this.elementCenterX) / this.elementRangeX
|
561 |
+
this.inputY = (clientY - this.elementPositionY - this.elementCenterY) / this.elementRangeY
|
562 |
+
}
|
563 |
+
} else {
|
564 |
+
// Calculate input relative to the window.
|
565 |
+
if(this.windowRadiusX && this.windowRadiusY) {
|
566 |
+
this.inputX = (clientX - this.windowCenterX) / this.windowRadiusX
|
567 |
+
this.inputY = (clientY - this.windowCenterY) / this.windowRadiusY
|
568 |
+
}
|
569 |
+
}
|
570 |
+
}
|
571 |
+
|
572 |
+
destroy() {
|
573 |
+
this.disable()
|
574 |
+
|
575 |
+
clearTimeout(this.calibrationTimer)
|
576 |
+
clearTimeout(this.detectionTimer)
|
577 |
+
|
578 |
+
this.element.removeAttribute('style')
|
579 |
+
for (let index = 0; index < this.layers.length; index++) {
|
580 |
+
this.layers[index].removeAttribute('style')
|
581 |
+
}
|
582 |
+
|
583 |
+
delete this.element
|
584 |
+
delete this.layers
|
585 |
+
}
|
586 |
+
|
587 |
+
version() {
|
588 |
+
return '3.1.0'
|
589 |
+
}
|
590 |
+
|
591 |
+
}
|
592 |
+
|
593 |
+
module.exports = Parallax
|
assets/js/lib/parallax/parallax.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Parallax=t()}}(function(){return function t(e,i,n){function o(r,a){if(!i[r]){if(!e[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(s)return s(r,!0);var h=new Error("Cannot find module '"+r+"'");throw h.code="MODULE_NOT_FOUND",h}var u=i[r]={exports:{}};e[r][0].call(u.exports,function(t){var i=e[r][1][t];return o(i||t)},u,u.exports,t,e,i,n)}return i[r].exports}for(var s="function"==typeof require&&require,r=0;r<n.length;r++)o(n[r]);return o}({1:[function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,a,l=n(t),h=1;h<arguments.length;h++){i=Object(arguments[h]);for(var u in i)s.call(i,u)&&(l[u]=i[u]);if(o){a=o(i);for(var c=0;c<a.length;c++)r.call(i,a[c])&&(l[a[c]]=i[a[c]])}}return l}},{}],2:[function(t,e,i){(function(t){(function(){var i,n,o,s,r,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(i()-r)/1e6},n=t.hrtime,s=(i=function(){var t;return 1e9*(t=n())[0]+t[1]})(),a=1e9*t.uptime(),r=s-a):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,t("_process"))},{_process:3}],3:[function(t,e,i){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function r(t){if(d===clearTimeout)return clearTimeout(t);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function a(){v&&p&&(v=!1,p.length?f=p.concat(f):y=-1,f.length&&l())}function l(){if(!v){var t=s(a);v=!0;for(var e=f.length;e;){for(p=f,f=[];++y<e;)p&&p[y].run();y=-1,e=f.length}p=null,v=!1,r(t)}}function h(t,e){this.fun=t,this.array=e}function u(){}var c,d,m=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{d="function"==typeof clearTimeout?clearTimeout:o}catch(t){d=o}}();var p,f=[],v=!1,y=-1;m.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];f.push(new h(t,e)),1!==f.length||v||s(l)},h.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=u,m.addListener=u,m.once=u,m.off=u,m.removeListener=u,m.removeAllListeners=u,m.emit=u,m.prependListener=u,m.prependOnceListener=u,m.listeners=function(t){return[]},m.binding=function(t){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(t){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},{}],4:[function(t,e,i){(function(i){for(var n=t("performance-now"),o="undefined"==typeof window?i:window,s=["moz","webkit"],r="AnimationFrame",a=o["request"+r],l=o["cancel"+r]||o["cancelRequest"+r],h=0;!a&&h<s.length;h++)a=o[s[h]+"Request"+r],l=o[s[h]+"Cancel"+r]||o[s[h]+"CancelRequest"+r];if(!a||!l){var u=0,c=0,d=[];a=function(t){if(0===d.length){var e=n(),i=Math.max(0,1e3/60-(e-u));u=i+e,setTimeout(function(){var t=d.slice(0);d.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout(function(){throw t},0)}},Math.round(i))}return d.push({handle:++c,callback:t,cancelled:!1}),c},l=function(t){for(var e=0;e<d.length;e++)d[e].handle===t&&(d[e].cancelled=!0)}}e.exports=function(t){return a.call(o,t)},e.exports.cancel=function(){l.apply(o,arguments)},e.exports.polyfill=function(){o.requestAnimationFrame=a,o.cancelAnimationFrame=l}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":2}],5:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=t("raf"),r=t("object-assign"),a={propertyCache:{},vendors:[null,["-webkit-","webkit"],["-moz-","Moz"],["-o-","O"],["-ms-","ms"]],clamp:function(t,e,i){return e<i?t<e?e:t>i?i:t:t<i?i:t>e?e:t},data:function(t,e){return a.deserialize(t.getAttribute("data-"+e))},deserialize:function(t){return"true"===t||"false"!==t&&("null"===t?null:!isNaN(parseFloat(t))&&isFinite(t)?parseFloat(t):t)},camelCase:function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},accelerate:function(t){a.css(t,"transform","translate3d(0,0,0) rotate(0.0001deg)"),a.css(t,"transform-style","preserve-3d"),a.css(t,"backface-visibility","hidden")},transformSupport:function(t){for(var e=document.createElement("div"),i=!1,n=null,o=!1,s=null,r=null,l=0,h=a.vendors.length;l<h;l++)if(null!==a.vendors[l]?(s=a.vendors[l][0]+"transform",r=a.vendors[l][1]+"Transform"):(s="transform",r="transform"),void 0!==e.style[r]){i=!0;break}switch(t){case"2D":o=i;break;case"3D":if(i){var u=document.body||document.createElement("body"),c=document.documentElement,d=c.style.overflow,m=!1;document.body||(m=!0,c.style.overflow="hidden",c.appendChild(u),u.style.overflow="hidden",u.style.background=""),u.appendChild(e),e.style[r]="translate3d(1px,1px,1px)",o=void 0!==(n=window.getComputedStyle(e).getPropertyValue(s))&&n.length>0&&"none"!==n,c.style.overflow=d,u.removeChild(e),m&&(u.removeAttribute("style"),u.parentNode.removeChild(u))}}return o},css:function(t,e,i){var n=a.propertyCache[e];if(!n)for(var o=0,s=a.vendors.length;o<s;o++)if(n=null!==a.vendors[o]?a.camelCase(a.vendors[o][1]+"-"+e):e,void 0!==t.style[n]){a.propertyCache[e]=n;break}t.style[n]=i}},l={relativeInput:!1,clipRelativeInput:!1,inputElement:null,hoverOnly:!1,calibrationThreshold:100,calibrationDelay:500,supportDelay:500,calibrateX:!1,calibrateY:!0,invertX:!0,invertY:!0,limitX:!1,limitY:!1,scalarX:10,scalarY:10,frictionX:.1,frictionY:.1,originX:.5,originY:.5,pointerEvents:!1,precision:1,onReady:null,selector:null},h=function(){function t(e,i){n(this,t),this.element=e;var o={calibrateX:a.data(this.element,"calibrate-x"),calibrateY:a.data(this.element,"calibrate-y"),invertX:a.data(this.element,"invert-x"),invertY:a.data(this.element,"invert-y"),limitX:a.data(this.element,"limit-x"),limitY:a.data(this.element,"limit-y"),scalarX:a.data(this.element,"scalar-x"),scalarY:a.data(this.element,"scalar-y"),frictionX:a.data(this.element,"friction-x"),frictionY:a.data(this.element,"friction-y"),originX:a.data(this.element,"origin-x"),originY:a.data(this.element,"origin-y"),pointerEvents:a.data(this.element,"pointer-events"),precision:a.data(this.element,"precision"),relativeInput:a.data(this.element,"relative-input"),clipRelativeInput:a.data(this.element,"clip-relative-input"),hoverOnly:a.data(this.element,"hover-only"),inputElement:document.querySelector(a.data(this.element,"input-element")),selector:a.data(this.element,"selector")};for(var s in o)null===o[s]&&delete o[s];r(this,l,o,i),this.inputElement||(this.inputElement=this.element),this.calibrationTimer=null,this.calibrationFlag=!0,this.enabled=!1,this.depthsX=[],this.depthsY=[],this.raf=null,this.bounds=null,this.elementPositionX=0,this.elementPositionY=0,this.elementWidth=0,this.elementHeight=0,this.elementCenterX=0,this.elementCenterY=0,this.elementRangeX=0,this.elementRangeY=0,this.calibrationX=0,this.calibrationY=0,this.inputX=0,this.inputY=0,this.motionX=0,this.motionY=0,this.velocityX=0,this.velocityY=0,this.onMouseMove=this.onMouseMove.bind(this),this.onDeviceOrientation=this.onDeviceOrientation.bind(this),this.onDeviceMotion=this.onDeviceMotion.bind(this),this.onOrientationTimer=this.onOrientationTimer.bind(this),this.onMotionTimer=this.onMotionTimer.bind(this),this.onCalibrationTimer=this.onCalibrationTimer.bind(this),this.onAnimationFrame=this.onAnimationFrame.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.windowWidth=null,this.windowHeight=null,this.windowCenterX=null,this.windowCenterY=null,this.windowRadiusX=null,this.windowRadiusY=null,this.portrait=!1,this.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),this.motionSupport=!!window.DeviceMotionEvent&&!this.desktop,this.orientationSupport=!!window.DeviceOrientationEvent&&!this.desktop,this.orientationStatus=0,this.motionStatus=0,this.initialise()}return o(t,[{key:"initialise",value:function(){void 0===this.transform2DSupport&&(this.transform2DSupport=a.transformSupport("2D"),this.transform3DSupport=a.transformSupport("3D")),this.transform3DSupport&&a.accelerate(this.element),"static"===window.getComputedStyle(this.element).getPropertyValue("position")&&(this.element.style.position="relative"),this.pointerEvents||(this.element.style.pointerEvents="none"),this.updateLayers(),this.updateDimensions(),this.enable(),this.queueCalibration(this.calibrationDelay)}},{key:"doReadyCallback",value:function(){this.onReady&&this.onReady()}},{key:"updateLayers",value:function(){this.selector?this.layers=this.element.querySelectorAll(this.selector):this.layers=this.element.children,this.layers.length||console.warn("ParallaxJS: Your scene does not have any layers."),this.depthsX=[],this.depthsY=[];for(var t=0;t<this.layers.length;t++){var e=this.layers[t];this.transform3DSupport&&a.accelerate(e),e.style.position=t?"absolute":"relative",e.style.display="block",e.style.left=0,e.style.top=0;var i=a.data(e,"depth")||0;this.depthsX.push(a.data(e,"depth-x")||i),this.depthsY.push(a.data(e,"depth-y")||i)}}},{key:"updateDimensions",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.windowCenterX=this.windowWidth*this.originX,this.windowCenterY=this.windowHeight*this.originY,this.windowRadiusX=Math.max(this.windowCenterX,this.windowWidth-this.windowCenterX),this.windowRadiusY=Math.max(this.windowCenterY,this.windowHeight-this.windowCenterY)}},{key:"updateBounds",value:function(){this.bounds=this.inputElement.getBoundingClientRect(),this.elementPositionX=this.bounds.left,this.elementPositionY=this.bounds.top,this.elementWidth=this.bounds.width,this.elementHeight=this.bounds.height,this.elementCenterX=this.elementWidth*this.originX,this.elementCenterY=this.elementHeight*this.originY,this.elementRangeX=Math.max(this.elementCenterX,this.elementWidth-this.elementCenterX),this.elementRangeY=Math.max(this.elementCenterY,this.elementHeight-this.elementCenterY)}},{key:"queueCalibration",value:function(t){clearTimeout(this.calibrationTimer),this.calibrationTimer=setTimeout(this.onCalibrationTimer,t)}},{key:"enable",value:function(){this.enabled||(this.enabled=!0,this.orientationSupport?(this.portrait=!1,window.addEventListener("deviceorientation",this.onDeviceOrientation),this.detectionTimer=setTimeout(this.onOrientationTimer,this.supportDelay)):this.motionSupport?(this.portrait=!1,window.addEventListener("devicemotion",this.onDeviceMotion),this.detectionTimer=setTimeout(this.onMotionTimer,this.supportDelay)):(this.calibrationX=0,this.calibrationY=0,this.portrait=!1,window.addEventListener("mousemove",this.onMouseMove),this.doReadyCallback()),window.addEventListener("resize",this.onWindowResize),this.raf=s(this.onAnimationFrame))}},{key:"disable",value:function(){this.enabled&&(this.enabled=!1,this.orientationSupport?window.removeEventListener("deviceorientation",this.onDeviceOrientation):this.motionSupport?window.removeEventListener("devicemotion",this.onDeviceMotion):window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("resize",this.onWindowResize),s.cancel(this.raf))}},{key:"calibrate",value:function(t,e){this.calibrateX=void 0===t?this.calibrateX:t,this.calibrateY=void 0===e?this.calibrateY:e}},{key:"invert",value:function(t,e){this.invertX=void 0===t?this.invertX:t,this.invertY=void 0===e?this.invertY:e}},{key:"friction",value:function(t,e){this.frictionX=void 0===t?this.frictionX:t,this.frictionY=void 0===e?this.frictionY:e}},{key:"scalar",value:function(t,e){this.scalarX=void 0===t?this.scalarX:t,this.scalarY=void 0===e?this.scalarY:e}},{key:"limit",value:function(t,e){this.limitX=void 0===t?this.limitX:t,this.limitY=void 0===e?this.limitY:e}},{key:"origin",value:function(t,e){this.originX=void 0===t?this.originX:t,this.originY=void 0===e?this.originY:e}},{key:"setInputElement",value:function(t){this.inputElement=t,this.updateDimensions()}},{key:"setPosition",value:function(t,e,i){e=e.toFixed(this.precision)+"px",i=i.toFixed(this.precision)+"px",this.transform3DSupport?a.css(t,"transform","translate3d("+e+","+i+",0)"):this.transform2DSupport?a.css(t,"transform","translate("+e+","+i+")"):(t.style.left=e,t.style.top=i)}},{key:"onOrientationTimer",value:function(){this.orientationSupport&&0===this.orientationStatus?(this.disable(),this.orientationSupport=!1,this.enable()):this.doReadyCallback()}},{key:"onMotionTimer",value:function(){this.motionSupport&&0===this.motionStatus?(this.disable(),this.motionSupport=!1,this.enable()):this.doReadyCallback()}},{key:"onCalibrationTimer",value:function(){this.calibrationFlag=!0}},{key:"onWindowResize",value:function(){this.updateDimensions()}},{key:"onAnimationFrame",value:function(){this.updateBounds();var t=this.inputX-this.calibrationX,e=this.inputY-this.calibrationY;(Math.abs(t)>this.calibrationThreshold||Math.abs(e)>this.calibrationThreshold)&&this.queueCalibration(0),this.portrait?(this.motionX=this.calibrateX?e:this.inputY,this.motionY=this.calibrateY?t:this.inputX):(this.motionX=this.calibrateX?t:this.inputX,this.motionY=this.calibrateY?e:this.inputY),this.motionX*=this.elementWidth*(this.scalarX/100),this.motionY*=this.elementHeight*(this.scalarY/100),isNaN(parseFloat(this.limitX))||(this.motionX=a.clamp(this.motionX,-this.limitX,this.limitX)),isNaN(parseFloat(this.limitY))||(this.motionY=a.clamp(this.motionY,-this.limitY,this.limitY)),this.velocityX+=(this.motionX-this.velocityX)*this.frictionX,this.velocityY+=(this.motionY-this.velocityY)*this.frictionY;for(var i=0;i<this.layers.length;i++){var n=this.layers[i],o=this.depthsX[i],r=this.depthsY[i],l=this.velocityX*(o*(this.invertX?-1:1)),h=this.velocityY*(r*(this.invertY?-1:1));this.setPosition(n,l,h)}this.raf=s(this.onAnimationFrame)}},{key:"rotate",value:function(t,e){var i=(t||0)/30,n=(e||0)/30,o=this.windowHeight>this.windowWidth;this.portrait!==o&&(this.portrait=o,this.calibrationFlag=!0),this.calibrationFlag&&(this.calibrationFlag=!1,this.calibrationX=i,this.calibrationY=n),this.inputX=i,this.inputY=n}},{key:"onDeviceOrientation",value:function(t){var e=t.beta,i=t.gamma;null!==e&&null!==i&&(this.orientationStatus=1,this.rotate(e,i))}},{key:"onDeviceMotion",value:function(t){var e=t.rotationRate.beta,i=t.rotationRate.gamma;null!==e&&null!==i&&(this.motionStatus=1,this.rotate(e,i))}},{key:"onMouseMove",value:function(t){var e=t.clientX,i=t.clientY;if(this.hoverOnly&&(e<this.elementPositionX||e>this.elementPositionX+this.elementWidth||i<this.elementPositionY||i>this.elementPositionY+this.elementHeight))return this.inputX=0,void(this.inputY=0);this.relativeInput?(this.clipRelativeInput&&(e=Math.max(e,this.elementPositionX),e=Math.min(e,this.elementPositionX+this.elementWidth),i=Math.max(i,this.elementPositionY),i=Math.min(i,this.elementPositionY+this.elementHeight)),this.elementRangeX&&this.elementRangeY&&(this.inputX=(e-this.elementPositionX-this.elementCenterX)/this.elementRangeX,this.inputY=(i-this.elementPositionY-this.elementCenterY)/this.elementRangeY)):this.windowRadiusX&&this.windowRadiusY&&(this.inputX=(e-this.windowCenterX)/this.windowRadiusX,this.inputY=(i-this.windowCenterY)/this.windowRadiusY)}},{key:"destroy",value:function(){this.disable(),clearTimeout(this.calibrationTimer),clearTimeout(this.detectionTimer),this.element.removeAttribute("style");for(var t=0;t<this.layers.length;t++)this.layers[t].removeAttribute("style");delete this.element,delete this.layers}},{key:"version",value:function(){return"3.1.0"}}]),t}();e.exports=h},{"object-assign":1,raf:4}]},{},[5])(5)});
|
assets/js/lib/particles/particles.js
ADDED
@@ -0,0 +1,1541 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* -----------------------------------------------
|
2 |
+
/* Author : Vincent Garreau - vincentgarreau.com
|
3 |
+
/* MIT license: http://opensource.org/licenses/MIT
|
4 |
+
/* Demo / Generator : vincentgarreau.com/particles.js
|
5 |
+
/* GitHub : github.com/VincentGarreau/particles.js
|
6 |
+
/* How to use? : Check the GitHub README
|
7 |
+
/* v2.0.0
|
8 |
+
/* ----------------------------------------------- */
|
9 |
+
|
10 |
+
var pJS = function(tag_id, params){
|
11 |
+
|
12 |
+
var canvas_el = document.querySelector('#'+tag_id+' > .particles-js-canvas-el');
|
13 |
+
|
14 |
+
/* particles.js variables with default values */
|
15 |
+
this.pJS = {
|
16 |
+
canvas: {
|
17 |
+
el: canvas_el,
|
18 |
+
w: canvas_el.offsetWidth,
|
19 |
+
h: canvas_el.offsetHeight
|
20 |
+
},
|
21 |
+
particles: {
|
22 |
+
number: {
|
23 |
+
value: 400,
|
24 |
+
density: {
|
25 |
+
enable: true,
|
26 |
+
value_area: 800
|
27 |
+
}
|
28 |
+
},
|
29 |
+
color: {
|
30 |
+
value: '#fff'
|
31 |
+
},
|
32 |
+
shape: {
|
33 |
+
type: 'circle',
|
34 |
+
stroke: {
|
35 |
+
width: 0,
|
36 |
+
color: '#ff0000'
|
37 |
+
},
|
38 |
+
polygon: {
|
39 |
+
nb_sides: 5
|
40 |
+
},
|
41 |
+
image: {
|
42 |
+
src: '',
|
43 |
+
width: 100,
|
44 |
+
height: 100
|
45 |
+
}
|
46 |
+
},
|
47 |
+
opacity: {
|
48 |
+
value: 1,
|
49 |
+
random: false,
|
50 |
+
anim: {
|
51 |
+
enable: false,
|
52 |
+
speed: 2,
|
53 |
+
opacity_min: 0,
|
54 |
+
sync: false
|
55 |
+
}
|
56 |
+
},
|
57 |
+
size: {
|
58 |
+
value: 20,
|
59 |
+
random: false,
|
60 |
+
anim: {
|
61 |
+
enable: false,
|
62 |
+
speed: 20,
|
63 |
+
size_min: 0,
|
64 |
+
sync: false
|
65 |
+
}
|
66 |
+
},
|
67 |
+
line_linked: {
|
68 |
+
enable: true,
|
69 |
+
distance: 100,
|
70 |
+
color: '#fff',
|
71 |
+
opacity: 1,
|
72 |
+
width: 1
|
73 |
+
},
|
74 |
+
move: {
|
75 |
+
enable: true,
|
76 |
+
speed: 2,
|
77 |
+
direction: 'none',
|
78 |
+
random: false,
|
79 |
+
straight: false,
|
80 |
+
out_mode: 'out',
|
81 |
+
bounce: false,
|
82 |
+
attract: {
|
83 |
+
enable: false,
|
84 |
+
rotateX: 3000,
|
85 |
+
rotateY: 3000
|
86 |
+
}
|
87 |
+
},
|
88 |
+
array: []
|
89 |
+
},
|
90 |
+
interactivity: {
|
91 |
+
detect_on: 'canvas',
|
92 |
+
events: {
|
93 |
+
onhover: {
|
94 |
+
enable: true,
|
95 |
+
mode: 'grab'
|
96 |
+
},
|
97 |
+
onclick: {
|
98 |
+
enable: true,
|
99 |
+
mode: 'push'
|
100 |
+
},
|
101 |
+
resize: true
|
102 |
+
},
|
103 |
+
modes: {
|
104 |
+
grab:{
|
105 |
+
distance: 100,
|
106 |
+
line_linked:{
|
107 |
+
opacity: 1
|
108 |
+
}
|
109 |
+
},
|
110 |
+
bubble:{
|
111 |
+
distance: 200,
|
112 |
+
size: 80,
|
113 |
+
duration: 0.4
|
114 |
+
},
|
115 |
+
repulse:{
|
116 |
+
distance: 200,
|
117 |
+
duration: 0.4
|
118 |
+
},
|
119 |
+
push:{
|
120 |
+
particles_nb: 4
|
121 |
+
},
|
122 |
+
remove:{
|
123 |
+
particles_nb: 2
|
124 |
+
}
|
125 |
+
},
|
126 |
+
mouse:{}
|
127 |
+
},
|
128 |
+
retina_detect: false,
|
129 |
+
fn: {
|
130 |
+
interact: {},
|
131 |
+
modes: {},
|
132 |
+
vendors:{}
|
133 |
+
},
|
134 |
+
tmp: {}
|
135 |
+
};
|
136 |
+
|
137 |
+
var pJS = this.pJS;
|
138 |
+
|
139 |
+
/* params settings */
|
140 |
+
if(params){
|
141 |
+
Object.deepExtend(pJS, params);
|
142 |
+
}
|
143 |
+
|
144 |
+
pJS.tmp.obj = {
|
145 |
+
size_value: pJS.particles.size.value,
|
146 |
+
size_anim_speed: pJS.particles.size.anim.speed,
|
147 |
+
move_speed: pJS.particles.move.speed,
|
148 |
+
line_linked_distance: pJS.particles.line_linked.distance,
|
149 |
+
line_linked_width: pJS.particles.line_linked.width,
|
150 |
+
mode_grab_distance: pJS.interactivity.modes.grab.distance,
|
151 |
+
mode_bubble_distance: pJS.interactivity.modes.bubble.distance,
|
152 |
+
mode_bubble_size: pJS.interactivity.modes.bubble.size,
|
153 |
+
mode_repulse_distance: pJS.interactivity.modes.repulse.distance
|
154 |
+
};
|
155 |
+
|
156 |
+
|
157 |
+
pJS.fn.retinaInit = function(){
|
158 |
+
|
159 |
+
if(pJS.retina_detect && window.devicePixelRatio > 1){
|
160 |
+
pJS.canvas.pxratio = window.devicePixelRatio;
|
161 |
+
pJS.tmp.retina = true;
|
162 |
+
}
|
163 |
+
else{
|
164 |
+
pJS.canvas.pxratio = 1;
|
165 |
+
pJS.tmp.retina = false;
|
166 |
+
}
|
167 |
+
|
168 |
+
pJS.canvas.w = pJS.canvas.el.offsetWidth * pJS.canvas.pxratio;
|
169 |
+
pJS.canvas.h = pJS.canvas.el.offsetHeight * pJS.canvas.pxratio;
|
170 |
+
|
171 |
+
pJS.particles.size.value = pJS.tmp.obj.size_value * pJS.canvas.pxratio;
|
172 |
+
pJS.particles.size.anim.speed = pJS.tmp.obj.size_anim_speed * pJS.canvas.pxratio;
|
173 |
+
pJS.particles.move.speed = pJS.tmp.obj.move_speed * pJS.canvas.pxratio;
|
174 |
+
pJS.particles.line_linked.distance = pJS.tmp.obj.line_linked_distance * pJS.canvas.pxratio;
|
175 |
+
pJS.interactivity.modes.grab.distance = pJS.tmp.obj.mode_grab_distance * pJS.canvas.pxratio;
|
176 |
+
pJS.interactivity.modes.bubble.distance = pJS.tmp.obj.mode_bubble_distance * pJS.canvas.pxratio;
|
177 |
+
pJS.particles.line_linked.width = pJS.tmp.obj.line_linked_width * pJS.canvas.pxratio;
|
178 |
+
pJS.interactivity.modes.bubble.size = pJS.tmp.obj.mode_bubble_size * pJS.canvas.pxratio;
|
179 |
+
pJS.interactivity.modes.repulse.distance = pJS.tmp.obj.mode_repulse_distance * pJS.canvas.pxratio;
|
180 |
+
|
181 |
+
};
|
182 |
+
|
183 |
+
|
184 |
+
|
185 |
+
/* ---------- pJS functions - canvas ------------ */
|
186 |
+
|
187 |
+
pJS.fn.canvasInit = function(){
|
188 |
+
pJS.canvas.ctx = pJS.canvas.el.getContext('2d');
|
189 |
+
};
|
190 |
+
|
191 |
+
pJS.fn.canvasSize = function(){
|
192 |
+
|
193 |
+
pJS.canvas.el.width = pJS.canvas.w;
|
194 |
+
pJS.canvas.el.height = pJS.canvas.h;
|
195 |
+
|
196 |
+
if(pJS && pJS.interactivity.events.resize){
|
197 |
+
|
198 |
+
window.addEventListener('resize', function(){
|
199 |
+
|
200 |
+
pJS.canvas.w = pJS.canvas.el.offsetWidth;
|
201 |
+
pJS.canvas.h = pJS.canvas.el.offsetHeight;
|
202 |
+
|
203 |
+
/* resize canvas */
|
204 |
+
if(pJS.tmp.retina){
|
205 |
+
pJS.canvas.w *= pJS.canvas.pxratio;
|
206 |
+
pJS.canvas.h *= pJS.canvas.pxratio;
|
207 |
+
}
|
208 |
+
|
209 |
+
pJS.canvas.el.width = pJS.canvas.w;
|
210 |
+
pJS.canvas.el.height = pJS.canvas.h;
|
211 |
+
|
212 |
+
/* repaint canvas on anim disabled */
|
213 |
+
if(!pJS.particles.move.enable){
|
214 |
+
pJS.fn.particlesEmpty();
|
215 |
+
pJS.fn.particlesCreate();
|
216 |
+
pJS.fn.particlesDraw();
|
217 |
+
pJS.fn.vendors.densityAutoParticles();
|
218 |
+
}
|
219 |
+
|
220 |
+
/* density particles enabled */
|
221 |
+
pJS.fn.vendors.densityAutoParticles();
|
222 |
+
|
223 |
+
});
|
224 |
+
|
225 |
+
}
|
226 |
+
|
227 |
+
};
|
228 |
+
|
229 |
+
|
230 |
+
pJS.fn.canvasPaint = function(){
|
231 |
+
pJS.canvas.ctx.fillRect(0, 0, pJS.canvas.w, pJS.canvas.h);
|
232 |
+
};
|
233 |
+
|
234 |
+
pJS.fn.canvasClear = function(){
|
235 |
+
pJS.canvas.ctx.clearRect(0, 0, pJS.canvas.w, pJS.canvas.h);
|
236 |
+
};
|
237 |
+
|
238 |
+
|
239 |
+
/* --------- pJS functions - particles ----------- */
|
240 |
+
|
241 |
+
pJS.fn.particle = function(color, opacity, position){
|
242 |
+
|
243 |
+
/* size */
|
244 |
+
this.radius = (pJS.particles.size.random ? Math.random() : 1) * pJS.particles.size.value;
|
245 |
+
if(pJS.particles.size.anim.enable){
|
246 |
+
this.size_status = false;
|
247 |
+
this.vs = pJS.particles.size.anim.speed / 100;
|
248 |
+
if(!pJS.particles.size.anim.sync){
|
249 |
+
this.vs = this.vs * Math.random();
|
250 |
+
}
|
251 |
+
}
|
252 |
+
|
253 |
+
/* position */
|
254 |
+
this.x = position ? position.x : Math.random() * pJS.canvas.w;
|
255 |
+
this.y = position ? position.y : Math.random() * pJS.canvas.h;
|
256 |
+
|
257 |
+
/* check position - into the canvas */
|
258 |
+
if(this.x > pJS.canvas.w - this.radius*2) this.x = this.x - this.radius;
|
259 |
+
else if(this.x < this.radius*2) this.x = this.x + this.radius;
|
260 |
+
if(this.y > pJS.canvas.h - this.radius*2) this.y = this.y - this.radius;
|
261 |
+
else if(this.y < this.radius*2) this.y = this.y + this.radius;
|
262 |
+
|
263 |
+
/* check position - avoid overlap */
|
264 |
+
if(pJS.particles.move.bounce){
|
265 |
+
pJS.fn.vendors.checkOverlap(this, position);
|
266 |
+
}
|
267 |
+
|
268 |
+
/* color */
|
269 |
+
this.color = {};
|
270 |
+
if(typeof(color.value) == 'object'){
|
271 |
+
|
272 |
+
if(color.value instanceof Array){
|
273 |
+
var color_selected = color.value[Math.floor(Math.random() * pJS.particles.color.value.length)];
|
274 |
+
this.color.rgb = hexToRgb(color_selected);
|
275 |
+
}else{
|
276 |
+
if(color.value.r != undefined && color.value.g != undefined && color.value.b != undefined){
|
277 |
+
this.color.rgb = {
|
278 |
+
r: color.value.r,
|
279 |
+
g: color.value.g,
|
280 |
+
b: color.value.b
|
281 |
+
}
|
282 |
+
}
|
283 |
+
if(color.value.h != undefined && color.value.s != undefined && color.value.l != undefined){
|
284 |
+
this.color.hsl = {
|
285 |
+
h: color.value.h,
|
286 |
+
s: color.value.s,
|
287 |
+
l: color.value.l
|
288 |
+
}
|
289 |
+
}
|
290 |
+
}
|
291 |
+
|
292 |
+
}
|
293 |
+
else if(color.value == 'random'){
|
294 |
+
this.color.rgb = {
|
295 |
+
r: (Math.floor(Math.random() * (255 - 0 + 1)) + 0),
|
296 |
+
g: (Math.floor(Math.random() * (255 - 0 + 1)) + 0),
|
297 |
+
b: (Math.floor(Math.random() * (255 - 0 + 1)) + 0)
|
298 |
+
}
|
299 |
+
}
|
300 |
+
else if(typeof(color.value) == 'string'){
|
301 |
+
this.color = color;
|
302 |
+
this.color.rgb = hexToRgb(this.color.value);
|
303 |
+
}
|
304 |
+
|
305 |
+
/* opacity */
|
306 |
+
this.opacity = (pJS.particles.opacity.random ? Math.random() : 1) * pJS.particles.opacity.value;
|
307 |
+
if(pJS.particles.opacity.anim.enable){
|
308 |
+
this.opacity_status = false;
|
309 |
+
this.vo = pJS.particles.opacity.anim.speed / 100;
|
310 |
+
if(!pJS.particles.opacity.anim.sync){
|
311 |
+
this.vo = this.vo * Math.random();
|
312 |
+
}
|
313 |
+
}
|
314 |
+
|
315 |
+
/* animation - velocity for speed */
|
316 |
+
var velbase = {}
|
317 |
+
switch(pJS.particles.move.direction){
|
318 |
+
case 'top':
|
319 |
+
velbase = { x:0, y:-1 };
|
320 |
+
break;
|
321 |
+
case 'top-right':
|
322 |
+
velbase = { x:0.5, y:-0.5 };
|
323 |
+
break;
|
324 |
+
case 'right':
|
325 |
+
velbase = { x:1, y:-0 };
|
326 |
+
break;
|
327 |
+
case 'bottom-right':
|
328 |
+
velbase = { x:0.5, y:0.5 };
|
329 |
+
break;
|
330 |
+
case 'bottom':
|
331 |
+
velbase = { x:0, y:1 };
|
332 |
+
break;
|
333 |
+
case 'bottom-left':
|
334 |
+
velbase = { x:-0.5, y:1 };
|
335 |
+
break;
|
336 |
+
case 'left':
|
337 |
+
velbase = { x:-1, y:0 };
|
338 |
+
break;
|
339 |
+
case 'top-left':
|
340 |
+
velbase = { x:-0.5, y:-0.5 };
|
341 |
+
break;
|
342 |
+
default:
|
343 |
+
velbase = { x:0, y:0 };
|
344 |
+
break;
|
345 |
+
}
|
346 |
+
|
347 |
+
if(pJS.particles.move.straight){
|
348 |
+
this.vx = velbase.x;
|
349 |
+
this.vy = velbase.y;
|
350 |
+
if(pJS.particles.move.random){
|
351 |
+
this.vx = this.vx * (Math.random());
|
352 |
+
this.vy = this.vy * (Math.random());
|
353 |
+
}
|
354 |
+
}else{
|
355 |
+
this.vx = velbase.x + Math.random()-0.5;
|
356 |
+
this.vy = velbase.y + Math.random()-0.5;
|
357 |
+
}
|
358 |
+
|
359 |
+
// var theta = 2.0 * Math.PI * Math.random();
|
360 |
+
// this.vx = Math.cos(theta);
|
361 |
+
// this.vy = Math.sin(theta);
|
362 |
+
|
363 |
+
this.vx_i = this.vx;
|
364 |
+
this.vy_i = this.vy;
|
365 |
+
|
366 |
+
|
367 |
+
|
368 |
+
/* if shape is image */
|
369 |
+
|
370 |
+
var shape_type = pJS.particles.shape.type;
|
371 |
+
if(typeof(shape_type) == 'object'){
|
372 |
+
if(shape_type instanceof Array){
|
373 |
+
var shape_selected = shape_type[Math.floor(Math.random() * shape_type.length)];
|
374 |
+
this.shape = shape_selected;
|
375 |
+
}
|
376 |
+
}else{
|
377 |
+
this.shape = shape_type;
|
378 |
+
}
|
379 |
+
|
380 |
+
if(this.shape == 'image'){
|
381 |
+
var sh = pJS.particles.shape;
|
382 |
+
this.img = {
|
383 |
+
src: sh.image.src,
|
384 |
+
ratio: sh.image.width / sh.image.height
|
385 |
+
}
|
386 |
+
if(!this.img.ratio) this.img.ratio = 1;
|
387 |
+
if(pJS.tmp.img_type == 'svg' && pJS.tmp.source_svg != undefined){
|
388 |
+
pJS.fn.vendors.createSvgImg(this);
|
389 |
+
if(pJS.tmp.pushing){
|
390 |
+
this.img.loaded = false;
|
391 |
+
}
|
392 |
+
}
|
393 |
+
}
|
394 |
+
|
395 |
+
|
396 |
+
|
397 |
+
};
|
398 |
+
|
399 |
+
|
400 |
+
pJS.fn.particle.prototype.draw = function() {
|
401 |
+
|
402 |
+
var p = this;
|
403 |
+
|
404 |
+
if(p.radius_bubble != undefined){
|
405 |
+
var radius = p.radius_bubble;
|
406 |
+
}else{
|
407 |
+
var radius = p.radius;
|
408 |
+
}
|
409 |
+
|
410 |
+
if(p.opacity_bubble != undefined){
|
411 |
+
var opacity = p.opacity_bubble;
|
412 |
+
}else{
|
413 |
+
var opacity = p.opacity;
|
414 |
+
}
|
415 |
+
|
416 |
+
if(p.color.rgb){
|
417 |
+
var color_value = 'rgba('+p.color.rgb.r+','+p.color.rgb.g+','+p.color.rgb.b+','+opacity+')';
|
418 |
+
}else{
|
419 |
+
var color_value = 'hsla('+p.color.hsl.h+','+p.color.hsl.s+'%,'+p.color.hsl.l+'%,'+opacity+')';
|
420 |
+
}
|
421 |
+
|
422 |
+
pJS.canvas.ctx.fillStyle = color_value;
|
423 |
+
pJS.canvas.ctx.beginPath();
|
424 |
+
|
425 |
+
switch(p.shape){
|
426 |
+
|
427 |
+
case 'circle':
|
428 |
+
pJS.canvas.ctx.arc(p.x, p.y, radius, 0, Math.PI * 2, false);
|
429 |
+
break;
|
430 |
+
|
431 |
+
case 'edge':
|
432 |
+
pJS.canvas.ctx.rect(p.x-radius, p.y-radius, radius*2, radius*2);
|
433 |
+
break;
|
434 |
+
|
435 |
+
case 'triangle':
|
436 |
+
pJS.fn.vendors.drawShape(pJS.canvas.ctx, p.x-radius, p.y+radius / 1.66, radius*2, 3, 2);
|
437 |
+
break;
|
438 |
+
|
439 |
+
case 'polygon':
|
440 |
+
pJS.fn.vendors.drawShape(
|
441 |
+
pJS.canvas.ctx,
|
442 |
+
p.x - radius / (pJS.particles.shape.polygon.nb_sides/3.5), // startX
|
443 |
+
p.y - radius / (2.66/3.5), // startY
|
444 |
+
radius*2.66 / (pJS.particles.shape.polygon.nb_sides/3), // sideLength
|
445 |
+
pJS.particles.shape.polygon.nb_sides, // sideCountNumerator
|
446 |
+
1 // sideCountDenominator
|
447 |
+
);
|
448 |
+
break;
|
449 |
+
|
450 |
+
case 'star':
|
451 |
+
pJS.fn.vendors.drawShape(
|
452 |
+
pJS.canvas.ctx,
|
453 |
+
p.x - radius*2 / (pJS.particles.shape.polygon.nb_sides/4), // startX
|
454 |
+
p.y - radius / (2*2.66/3.5), // startY
|
455 |
+
radius*2*2.66 / (pJS.particles.shape.polygon.nb_sides/3), // sideLength
|
456 |
+
pJS.particles.shape.polygon.nb_sides, // sideCountNumerator
|
457 |
+
2 // sideCountDenominator
|
458 |
+
);
|
459 |
+
break;
|
460 |
+
|
461 |
+
case 'image':
|
462 |
+
|
463 |
+
function draw(){
|
464 |
+
pJS.canvas.ctx.drawImage(
|
465 |
+
img_obj,
|
466 |
+
p.x-radius,
|
467 |
+
p.y-radius,
|
468 |
+
radius*2,
|
469 |
+
radius*2 / p.img.ratio
|
470 |
+
);
|
471 |
+
}
|
472 |
+
|
473 |
+
if(pJS.tmp.img_type == 'svg'){
|
474 |
+
var img_obj = p.img.obj;
|
475 |
+
}else{
|
476 |
+
var img_obj = pJS.tmp.img_obj;
|
477 |
+
}
|
478 |
+
|
479 |
+
if(img_obj){
|
480 |
+
draw();
|
481 |
+
}
|
482 |
+
|
483 |
+
break;
|
484 |
+
|
485 |
+
}
|
486 |
+
|
487 |
+
pJS.canvas.ctx.closePath();
|
488 |
+
|
489 |
+
if(pJS.particles.shape.stroke.width > 0){
|
490 |
+
pJS.canvas.ctx.strokeStyle = pJS.particles.shape.stroke.color;
|
491 |
+
pJS.canvas.ctx.lineWidth = pJS.particles.shape.stroke.width;
|
492 |
+
pJS.canvas.ctx.stroke();
|
493 |
+
}
|
494 |
+
|
495 |
+
pJS.canvas.ctx.fill();
|
496 |
+
|
497 |
+
};
|
498 |
+
|
499 |
+
|
500 |
+
pJS.fn.particlesCreate = function(){
|
501 |
+
for(var i = 0; i < pJS.particles.number.value; i++) {
|
502 |
+
pJS.particles.array.push(new pJS.fn.particle(pJS.particles.color, pJS.particles.opacity.value));
|
503 |
+
}
|
504 |
+
};
|
505 |
+
|
506 |
+
pJS.fn.particlesUpdate = function(){
|
507 |
+
|
508 |
+
for(var i = 0; i < pJS.particles.array.length; i++){
|
509 |
+
|
510 |
+
/* the particle */
|
511 |
+
var p = pJS.particles.array[i];
|
512 |
+
|
513 |
+
// var d = ( dx = pJS.interactivity.mouse.click_pos_x - p.x ) * dx + ( dy = pJS.interactivity.mouse.click_pos_y - p.y ) * dy;
|
514 |
+
// var f = -BANG_SIZE / d;
|
515 |
+
// if ( d < BANG_SIZE ) {
|
516 |
+
// var t = Math.atan2( dy, dx );
|
517 |
+
// p.vx = f * Math.cos(t);
|
518 |
+
// p.vy = f * Math.sin(t);
|
519 |
+
// }
|
520 |
+
|
521 |
+
/* move the particle */
|
522 |
+
if(pJS.particles.move.enable){
|
523 |
+
var ms = pJS.particles.move.speed/2;
|
524 |
+
p.x += p.vx * ms;
|
525 |
+
p.y += p.vy * ms;
|
526 |
+
}
|
527 |
+
|
528 |
+
/* change opacity status */
|
529 |
+
if(pJS.particles.opacity.anim.enable) {
|
530 |
+
if(p.opacity_status == true) {
|
531 |
+
if(p.opacity >= pJS.particles.opacity.value) p.opacity_status = false;
|
532 |
+
p.opacity += p.vo;
|
533 |
+
}else {
|
534 |
+
if(p.opacity <= pJS.particles.opacity.anim.opacity_min) p.opacity_status = true;
|
535 |
+
p.opacity -= p.vo;
|
536 |
+
}
|
537 |
+
if(p.opacity < 0) p.opacity = 0;
|
538 |
+
}
|
539 |
+
|
540 |
+
/* change size */
|
541 |
+
if(pJS.particles.size.anim.enable){
|
542 |
+
if(p.size_status == true){
|
543 |
+
if(p.radius >= pJS.particles.size.value) p.size_status = false;
|
544 |
+
p.radius += p.vs;
|
545 |
+
}else{
|
546 |
+
if(p.radius <= pJS.particles.size.anim.size_min) p.size_status = true;
|
547 |
+
p.radius -= p.vs;
|
548 |
+
}
|
549 |
+
if(p.radius < 0) p.radius = 0;
|
550 |
+
}
|
551 |
+
|
552 |
+
/* change particle position if it is out of canvas */
|
553 |
+
if(pJS.particles.move.out_mode == 'bounce'){
|
554 |
+
var new_pos = {
|
555 |
+
x_left: p.radius,
|
556 |
+
x_right: pJS.canvas.w,
|
557 |
+
y_top: p.radius,
|
558 |
+
y_bottom: pJS.canvas.h
|
559 |
+
}
|
560 |
+
}else{
|
561 |
+
var new_pos = {
|
562 |
+
x_left: -p.radius,
|
563 |
+
x_right: pJS.canvas.w + p.radius,
|
564 |
+
y_top: -p.radius,
|
565 |
+
y_bottom: pJS.canvas.h + p.radius
|
566 |
+
}
|
567 |
+
}
|
568 |
+
|
569 |
+
if(p.x - p.radius > pJS.canvas.w){
|
570 |
+
p.x = new_pos.x_left;
|
571 |
+
p.y = Math.random() * pJS.canvas.h;
|
572 |
+
}
|
573 |
+
else if(p.x + p.radius < 0){
|
574 |
+
p.x = new_pos.x_right;
|
575 |
+
p.y = Math.random() * pJS.canvas.h;
|
576 |
+
}
|
577 |
+
if(p.y - p.radius > pJS.canvas.h){
|
578 |
+
p.y = new_pos.y_top;
|
579 |
+
p.x = Math.random() * pJS.canvas.w;
|
580 |
+
}
|
581 |
+
else if(p.y + p.radius < 0){
|
582 |
+
p.y = new_pos.y_bottom;
|
583 |
+
p.x = Math.random() * pJS.canvas.w;
|
584 |
+
}
|
585 |
+
|
586 |
+
/* out of canvas modes */
|
587 |
+
switch(pJS.particles.move.out_mode){
|
588 |
+
case 'bounce':
|
589 |
+
if (p.x + p.radius > pJS.canvas.w) p.vx = -p.vx;
|
590 |
+
else if (p.x - p.radius < 0) p.vx = -p.vx;
|
591 |
+
if (p.y + p.radius > pJS.canvas.h) p.vy = -p.vy;
|
592 |
+
else if (p.y - p.radius < 0) p.vy = -p.vy;
|
593 |
+
break;
|
594 |
+
}
|
595 |
+
|
596 |
+
/* events */
|
597 |
+
if(isInArray('grab', pJS.interactivity.events.onhover.mode)){
|
598 |
+
pJS.fn.modes.grabParticle(p);
|
599 |
+
}
|
600 |
+
|
601 |
+
if(isInArray('bubble', pJS.interactivity.events.onhover.mode) || isInArray('bubble', pJS.interactivity.events.onclick.mode)){
|
602 |
+
pJS.fn.modes.bubbleParticle(p);
|
603 |
+
}
|
604 |
+
|
605 |
+
if(isInArray('repulse', pJS.interactivity.events.onhover.mode) || isInArray('repulse', pJS.interactivity.events.onclick.mode)){
|
606 |
+
pJS.fn.modes.repulseParticle(p);
|
607 |
+
}
|
608 |
+
|
609 |
+
/* interaction auto between particles */
|
610 |
+
if(pJS.particles.line_linked.enable || pJS.particles.move.attract.enable){
|
611 |
+
for(var j = i + 1; j < pJS.particles.array.length; j++){
|
612 |
+
var p2 = pJS.particles.array[j];
|
613 |
+
|
614 |
+
/* link particles */
|
615 |
+
if(pJS.particles.line_linked.enable){
|
616 |
+
pJS.fn.interact.linkParticles(p,p2);
|
617 |
+
}
|
618 |
+
|
619 |
+
/* attract particles */
|
620 |
+
if(pJS.particles.move.attract.enable){
|
621 |
+
pJS.fn.interact.attractParticles(p,p2);
|
622 |
+
}
|
623 |
+
|
624 |
+
/* bounce particles */
|
625 |
+
if(pJS.particles.move.bounce){
|
626 |
+
pJS.fn.interact.bounceParticles(p,p2);
|
627 |
+
}
|
628 |
+
|
629 |
+
}
|
630 |
+
}
|
631 |
+
|
632 |
+
|
633 |
+
}
|
634 |
+
|
635 |
+
};
|
636 |
+
|
637 |
+
pJS.fn.particlesDraw = function(){
|
638 |
+
|
639 |
+
/* clear canvas */
|
640 |
+
pJS.canvas.ctx.clearRect(0, 0, pJS.canvas.w, pJS.canvas.h);
|
641 |
+
|
642 |
+
/* update each particles param */
|
643 |
+
pJS.fn.particlesUpdate();
|
644 |
+
|
645 |
+
/* draw each particle */
|
646 |
+
for(var i = 0; i < pJS.particles.array.length; i++){
|
647 |
+
var p = pJS.particles.array[i];
|
648 |
+
p.draw();
|
649 |
+
}
|
650 |
+
|
651 |
+
};
|
652 |
+
|
653 |
+
pJS.fn.particlesEmpty = function(){
|
654 |
+
pJS.particles.array = [];
|
655 |
+
};
|
656 |
+
|
657 |
+
pJS.fn.particlesRefresh = function(){
|
658 |
+
|
659 |
+
/* init all */
|
660 |
+
cancelRequestAnimFrame(pJS.fn.checkAnimFrame);
|
661 |
+
cancelRequestAnimFrame(pJS.fn.drawAnimFrame);
|
662 |
+
pJS.tmp.source_svg = undefined;
|
663 |
+
pJS.tmp.img_obj = undefined;
|
664 |
+
pJS.tmp.count_svg = 0;
|
665 |
+
pJS.fn.particlesEmpty();
|
666 |
+
pJS.fn.canvasClear();
|
667 |
+
|
668 |
+
/* restart */
|
669 |
+
pJS.fn.vendors.start();
|
670 |
+
|
671 |
+
};
|
672 |
+
|
673 |
+
|
674 |
+
/* ---------- pJS functions - particles interaction ------------ */
|
675 |
+
|
676 |
+
pJS.fn.interact.linkParticles = function(p1, p2){
|
677 |
+
|
678 |
+
var dx = p1.x - p2.x,
|
679 |
+
dy = p1.y - p2.y,
|
680 |
+
dist = Math.sqrt(dx*dx + dy*dy);
|
681 |
+
|
682 |
+
/* draw a line between p1 and p2 if the distance between them is under the config distance */
|
683 |
+
if(dist <= pJS.particles.line_linked.distance){
|
684 |
+
|
685 |
+
var opacity_line = pJS.particles.line_linked.opacity - (dist / (1/pJS.particles.line_linked.opacity)) / pJS.particles.line_linked.distance;
|
686 |
+
|
687 |
+
if(opacity_line > 0){
|
688 |
+
|
689 |
+
/* style */
|
690 |
+
var color_line = pJS.particles.line_linked.color_rgb_line;
|
691 |
+
pJS.canvas.ctx.strokeStyle = 'rgba('+color_line.r+','+color_line.g+','+color_line.b+','+opacity_line+')';
|
692 |
+
pJS.canvas.ctx.lineWidth = pJS.particles.line_linked.width;
|
693 |
+
//pJS.canvas.ctx.lineCap = 'round'; /* performance issue */
|
694 |
+
|
695 |
+
/* path */
|
696 |
+
pJS.canvas.ctx.beginPath();
|
697 |
+
pJS.canvas.ctx.moveTo(p1.x, p1.y);
|
698 |
+
pJS.canvas.ctx.lineTo(p2.x, p2.y);
|
699 |
+
pJS.canvas.ctx.stroke();
|
700 |
+
pJS.canvas.ctx.closePath();
|
701 |
+
|
702 |
+
}
|
703 |
+
|
704 |
+
}
|
705 |
+
|
706 |
+
};
|
707 |
+
|
708 |
+
|
709 |
+
pJS.fn.interact.attractParticles = function(p1, p2){
|
710 |
+
|
711 |
+
/* condensed particles */
|
712 |
+
var dx = p1.x - p2.x,
|
713 |
+
dy = p1.y - p2.y,
|
714 |
+
dist = Math.sqrt(dx*dx + dy*dy);
|
715 |
+
|
716 |
+
if(dist <= pJS.particles.line_linked.distance){
|
717 |
+
|
718 |
+
var ax = dx/(pJS.particles.move.attract.rotateX*1000),
|
719 |
+
ay = dy/(pJS.particles.move.attract.rotateY*1000);
|
720 |
+
|
721 |
+
p1.vx -= ax;
|
722 |
+
p1.vy -= ay;
|
723 |
+
|
724 |
+
p2.vx += ax;
|
725 |
+
p2.vy += ay;
|
726 |
+
|
727 |
+
}
|
728 |
+
|
729 |
+
|
730 |
+
}
|
731 |
+
|
732 |
+
|
733 |
+
pJS.fn.interact.bounceParticles = function(p1, p2){
|
734 |
+
|
735 |
+
var dx = p1.x - p2.x,
|
736 |
+
dy = p1.y - p2.y,
|
737 |
+
dist = Math.sqrt(dx*dx + dy*dy),
|
738 |
+
dist_p = p1.radius+p2.radius;
|
739 |
+
|
740 |
+
if(dist <= dist_p){
|
741 |
+
p1.vx = -p1.vx;
|
742 |
+
p1.vy = -p1.vy;
|
743 |
+
|
744 |
+
p2.vx = -p2.vx;
|
745 |
+
p2.vy = -p2.vy;
|
746 |
+
}
|
747 |
+
|
748 |
+
}
|
749 |
+
|
750 |
+
|
751 |
+
/* ---------- pJS functions - modes events ------------ */
|
752 |
+
|
753 |
+
pJS.fn.modes.pushParticles = function(nb, pos){
|
754 |
+
|
755 |
+
pJS.tmp.pushing = true;
|
756 |
+
|
757 |
+
for(var i = 0; i < nb; i++){
|
758 |
+
pJS.particles.array.push(
|
759 |
+
new pJS.fn.particle(
|
760 |
+
pJS.particles.color,
|
761 |
+
pJS.particles.opacity.value,
|
762 |
+
{
|
763 |
+
'x': pos ? pos.pos_x : Math.random() * pJS.canvas.w,
|
764 |
+
'y': pos ? pos.pos_y : Math.random() * pJS.canvas.h
|
765 |
+
}
|
766 |
+
)
|
767 |
+
)
|
768 |
+
if(i == nb-1){
|
769 |
+
if(!pJS.particles.move.enable){
|
770 |
+
pJS.fn.particlesDraw();
|
771 |
+
}
|
772 |
+
pJS.tmp.pushing = false;
|
773 |
+
}
|
774 |
+
}
|
775 |
+
|
776 |
+
};
|
777 |
+
|
778 |
+
|
779 |
+
pJS.fn.modes.removeParticles = function(nb){
|
780 |
+
|
781 |
+
pJS.particles.array.splice(0, nb);
|
782 |
+
if(!pJS.particles.move.enable){
|
783 |
+
pJS.fn.particlesDraw();
|
784 |
+
}
|
785 |
+
|
786 |
+
};
|
787 |
+
|
788 |
+
|
789 |
+
pJS.fn.modes.bubbleParticle = function(p){
|
790 |
+
|
791 |
+
/* on hover event */
|
792 |
+
if(pJS.interactivity.events.onhover.enable && isInArray('bubble', pJS.interactivity.events.onhover.mode)){
|
793 |
+
|
794 |
+
var dx_mouse = p.x - pJS.interactivity.mouse.pos_x,
|
795 |
+
dy_mouse = p.y - pJS.interactivity.mouse.pos_y,
|
796 |
+
dist_mouse = Math.sqrt(dx_mouse*dx_mouse + dy_mouse*dy_mouse),
|
797 |
+
ratio = 1 - dist_mouse / pJS.interactivity.modes.bubble.distance;
|
798 |
+
|
799 |
+
function init(){
|
800 |
+
p.opacity_bubble = p.opacity;
|
801 |
+
p.radius_bubble = p.radius;
|
802 |
+
}
|
803 |
+
|
804 |
+
/* mousemove - check ratio */
|
805 |
+
if(dist_mouse <= pJS.interactivity.modes.bubble.distance){
|
806 |
+
|
807 |
+
if(ratio >= 0 && pJS.interactivity.status == 'mousemove'){
|
808 |
+
|
809 |
+
/* size */
|
810 |
+
if(pJS.interactivity.modes.bubble.size != pJS.particles.size.value){
|
811 |
+
|
812 |
+
if(pJS.interactivity.modes.bubble.size > pJS.particles.size.value){
|
813 |
+
var size = p.radius + (pJS.interactivity.modes.bubble.size*ratio);
|
814 |
+
if(size >= 0){
|
815 |
+
p.radius_bubble = size;
|
816 |
+
}
|
817 |
+
}else{
|
818 |
+
var dif = p.radius - pJS.interactivity.modes.bubble.size,
|
819 |
+
size = p.radius - (dif*ratio);
|
820 |
+
if(size > 0){
|
821 |
+
p.radius_bubble = size;
|
822 |
+
}else{
|
823 |
+
p.radius_bubble = 0;
|
824 |
+
}
|
825 |
+
}
|
826 |
+
|
827 |
+
}
|
828 |
+
|
829 |
+
/* opacity */
|
830 |
+
if(pJS.interactivity.modes.bubble.opacity != pJS.particles.opacity.value){
|
831 |
+
|
832 |
+
if(pJS.interactivity.modes.bubble.opacity > pJS.particles.opacity.value){
|
833 |
+
var opacity = pJS.interactivity.modes.bubble.opacity*ratio;
|
834 |
+
if(opacity > p.opacity && opacity <= pJS.interactivity.modes.bubble.opacity){
|
835 |
+
p.opacity_bubble = opacity;
|
836 |
+
}
|
837 |
+
}else{
|
838 |
+
var opacity = p.opacity - (pJS.particles.opacity.value-pJS.interactivity.modes.bubble.opacity)*ratio;
|
839 |
+
if(opacity < p.opacity && opacity >= pJS.interactivity.modes.bubble.opacity){
|
840 |
+
p.opacity_bubble = opacity;
|
841 |
+
}
|
842 |
+
}
|
843 |
+
|
844 |
+
}
|
845 |
+
|
846 |
+
}
|
847 |
+
|
848 |
+
}else{
|
849 |
+
init();
|
850 |
+
}
|
851 |
+
|
852 |
+
|
853 |
+
/* mouseleave */
|
854 |
+
if(pJS.interactivity.status == 'mouseleave'){
|
855 |
+
init();
|
856 |
+
}
|
857 |
+
|
858 |
+
}
|
859 |
+
|
860 |
+
/* on click event */
|
861 |
+
else if(pJS.interactivity.events.onclick.enable && isInArray('bubble', pJS.interactivity.events.onclick.mode)){
|
862 |
+
|
863 |
+
|
864 |
+
if(pJS.tmp.bubble_clicking){
|
865 |
+
var dx_mouse = p.x - pJS.interactivity.mouse.click_pos_x,
|
866 |
+
dy_mouse = p.y - pJS.interactivity.mouse.click_pos_y,
|
867 |
+
dist_mouse = Math.sqrt(dx_mouse*dx_mouse + dy_mouse*dy_mouse),
|
868 |
+
time_spent = (new Date().getTime() - pJS.interactivity.mouse.click_time)/1000;
|
869 |
+
|
870 |
+
if(time_spent > pJS.interactivity.modes.bubble.duration){
|
871 |
+
pJS.tmp.bubble_duration_end = true;
|
872 |
+
}
|
873 |
+
|
874 |
+
if(time_spent > pJS.interactivity.modes.bubble.duration*2){
|
875 |
+
pJS.tmp.bubble_clicking = false;
|
876 |
+
pJS.tmp.bubble_duration_end = false;
|
877 |
+
}
|
878 |
+
}
|
879 |
+
|
880 |
+
|
881 |
+
function process(bubble_param, particles_param, p_obj_bubble, p_obj, id){
|
882 |
+
|
883 |
+
if(bubble_param != particles_param){
|
884 |
+
|
885 |
+
if(!pJS.tmp.bubble_duration_end){
|
886 |
+
if(dist_mouse <= pJS.interactivity.modes.bubble.distance){
|
887 |
+
if(p_obj_bubble != undefined) var obj = p_obj_bubble;
|
888 |
+
else var obj = p_obj;
|
889 |
+
if(obj != bubble_param){
|
890 |
+
var value = p_obj - (time_spent * (p_obj - bubble_param) / pJS.interactivity.modes.bubble.duration);
|
891 |
+
if(id == 'size') p.radius_bubble = value;
|
892 |
+
if(id == 'opacity') p.opacity_bubble = value;
|
893 |
+
}
|
894 |
+
}else{
|
895 |
+
if(id == 'size') p.radius_bubble = undefined;
|
896 |
+
if(id == 'opacity') p.opacity_bubble = undefined;
|
897 |
+
}
|
898 |
+
}else{
|
899 |
+
if(p_obj_bubble != undefined){
|
900 |
+
var value_tmp = p_obj - (time_spent * (p_obj - bubble_param) / pJS.interactivity.modes.bubble.duration),
|
901 |
+
dif = bubble_param - value_tmp;
|
902 |
+
value = bubble_param + dif;
|
903 |
+
if(id == 'size') p.radius_bubble = value;
|
904 |
+
if(id == 'opacity') p.opacity_bubble = value;
|
905 |
+
}
|
906 |
+
}
|
907 |
+
|
908 |
+
}
|
909 |
+
|
910 |
+
}
|
911 |
+
|
912 |
+
if(pJS.tmp.bubble_clicking){
|
913 |
+
/* size */
|
914 |
+
process(pJS.interactivity.modes.bubble.size, pJS.particles.size.value, p.radius_bubble, p.radius, 'size');
|
915 |
+
/* opacity */
|
916 |
+
process(pJS.interactivity.modes.bubble.opacity, pJS.particles.opacity.value, p.opacity_bubble, p.opacity, 'opacity');
|
917 |
+
}
|
918 |
+
|
919 |
+
}
|
920 |
+
|
921 |
+
};
|
922 |
+
|
923 |
+
|
924 |
+
pJS.fn.modes.repulseParticle = function(p){
|
925 |
+
|
926 |
+
if(pJS.interactivity.events.onhover.enable && isInArray('repulse', pJS.interactivity.events.onhover.mode) && pJS.interactivity.status == 'mousemove') {
|
927 |
+
|
928 |
+
var dx_mouse = p.x - pJS.interactivity.mouse.pos_x,
|
929 |
+
dy_mouse = p.y - pJS.interactivity.mouse.pos_y,
|
930 |
+
dist_mouse = Math.sqrt(dx_mouse*dx_mouse + dy_mouse*dy_mouse);
|
931 |
+
|
932 |
+
var normVec = {x: dx_mouse/dist_mouse, y: dy_mouse/dist_mouse},
|
933 |
+
repulseRadius = pJS.interactivity.modes.repulse.distance,
|
934 |
+
velocity = 100,
|
935 |
+
repulseFactor = clamp((1/repulseRadius)*(-1*Math.pow(dist_mouse/repulseRadius,2)+1)*repulseRadius*velocity, 0, 50);
|
936 |
+
|
937 |
+
var pos = {
|
938 |
+
x: p.x + normVec.x * repulseFactor,
|
939 |
+
y: p.y + normVec.y * repulseFactor
|
940 |
+
}
|
941 |
+
|
942 |
+
if(pJS.particles.move.out_mode == 'bounce'){
|
943 |
+
if(pos.x - p.radius > 0 && pos.x + p.radius < pJS.canvas.w) p.x = pos.x;
|
944 |
+
if(pos.y - p.radius > 0 && pos.y + p.radius < pJS.canvas.h) p.y = pos.y;
|
945 |
+
}else{
|
946 |
+
p.x = pos.x;
|
947 |
+
p.y = pos.y;
|
948 |
+
}
|
949 |
+
|
950 |
+
}
|
951 |
+
|
952 |
+
|
953 |
+
else if(pJS.interactivity.events.onclick.enable && isInArray('repulse', pJS.interactivity.events.onclick.mode)) {
|
954 |
+
|
955 |
+
if(!pJS.tmp.repulse_finish){
|
956 |
+
pJS.tmp.repulse_count++;
|
957 |
+
if(pJS.tmp.repulse_count == pJS.particles.array.length){
|
958 |
+
pJS.tmp.repulse_finish = true;
|
959 |
+
}
|
960 |
+
}
|
961 |
+
|
962 |
+
if(pJS.tmp.repulse_clicking){
|
963 |
+
|
964 |
+
var repulseRadius = Math.pow(pJS.interactivity.modes.repulse.distance/6, 3);
|
965 |
+
|
966 |
+
var dx = pJS.interactivity.mouse.click_pos_x - p.x,
|
967 |
+
dy = pJS.interactivity.mouse.click_pos_y - p.y,
|
968 |
+
d = dx*dx + dy*dy;
|
969 |
+
|
970 |
+
var force = -repulseRadius / d * 1;
|
971 |
+
|
972 |
+
function process(){
|
973 |
+
|
974 |
+
var f = Math.atan2(dy,dx);
|
975 |
+
p.vx = force * Math.cos(f);
|
976 |
+
p.vy = force * Math.sin(f);
|
977 |
+
|
978 |
+
if(pJS.particles.move.out_mode == 'bounce'){
|
979 |
+
var pos = {
|
980 |
+
x: p.x + p.vx,
|
981 |
+
y: p.y + p.vy
|
982 |
+
}
|
983 |
+
if (pos.x + p.radius > pJS.canvas.w) p.vx = -p.vx;
|
984 |
+
else if (pos.x - p.radius < 0) p.vx = -p.vx;
|
985 |
+
if (pos.y + p.radius > pJS.canvas.h) p.vy = -p.vy;
|
986 |
+
else if (pos.y - p.radius < 0) p.vy = -p.vy;
|
987 |
+
}
|
988 |
+
|
989 |
+
}
|
990 |
+
|
991 |
+
// default
|
992 |
+
if(d <= repulseRadius){
|
993 |
+
process();
|
994 |
+
}
|
995 |
+
|
996 |
+
// bang - slow motion mode
|
997 |
+
// if(!pJS.tmp.repulse_finish){
|
998 |
+
// if(d <= repulseRadius){
|
999 |
+
// process();
|
1000 |
+
// }
|
1001 |
+
// }else{
|
1002 |
+
// process();
|
1003 |
+
// }
|
1004 |
+
|
1005 |
+
|
1006 |
+
}else{
|
1007 |
+
|
1008 |
+
if(pJS.tmp.repulse_clicking == false){
|
1009 |
+
|
1010 |
+
p.vx = p.vx_i;
|
1011 |
+
p.vy = p.vy_i;
|
1012 |
+
|
1013 |
+
}
|
1014 |
+
|
1015 |
+
}
|
1016 |
+
|
1017 |
+
}
|
1018 |
+
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
|
1022 |
+
pJS.fn.modes.grabParticle = function(p){
|
1023 |
+
|
1024 |
+
if(pJS.interactivity.events.onhover.enable && pJS.interactivity.status == 'mousemove'){
|
1025 |
+
|
1026 |
+
var dx_mouse = p.x - pJS.interactivity.mouse.pos_x,
|
1027 |
+
dy_mouse = p.y - pJS.interactivity.mouse.pos_y,
|
1028 |
+
dist_mouse = Math.sqrt(dx_mouse*dx_mouse + dy_mouse*dy_mouse);
|
1029 |
+
|
1030 |
+
/* draw a line between the cursor and the particle if the distance between them is under the config distance */
|
1031 |
+
if(dist_mouse <= pJS.interactivity.modes.grab.distance){
|
1032 |
+
|
1033 |
+
var opacity_line = pJS.interactivity.modes.grab.line_linked.opacity - (dist_mouse / (1/pJS.interactivity.modes.grab.line_linked.opacity)) / pJS.interactivity.modes.grab.distance;
|
1034 |
+
|
1035 |
+
if(opacity_line > 0){
|
1036 |
+
|
1037 |
+
/* style */
|
1038 |
+
var color_line = pJS.particles.line_linked.color_rgb_line;
|
1039 |
+
pJS.canvas.ctx.strokeStyle = 'rgba('+color_line.r+','+color_line.g+','+color_line.b+','+opacity_line+')';
|
1040 |
+
pJS.canvas.ctx.lineWidth = pJS.particles.line_linked.width;
|
1041 |
+
//pJS.canvas.ctx.lineCap = 'round'; /* performance issue */
|
1042 |
+
|
1043 |
+
/* path */
|
1044 |
+
pJS.canvas.ctx.beginPath();
|
1045 |
+
pJS.canvas.ctx.moveTo(p.x, p.y);
|
1046 |
+
pJS.canvas.ctx.lineTo(pJS.interactivity.mouse.pos_x, pJS.interactivity.mouse.pos_y);
|
1047 |
+
pJS.canvas.ctx.stroke();
|
1048 |
+
pJS.canvas.ctx.closePath();
|
1049 |
+
|
1050 |
+
}
|
1051 |
+
|
1052 |
+
}
|
1053 |
+
|
1054 |
+
}
|
1055 |
+
|
1056 |
+
};
|
1057 |
+
|
1058 |
+
|
1059 |
+
|
1060 |
+
/* ---------- pJS functions - vendors ------------ */
|
1061 |
+
|
1062 |
+
pJS.fn.vendors.eventsListeners = function(){
|
1063 |
+
|
1064 |
+
/* events target element */
|
1065 |
+
if(pJS.interactivity.detect_on == 'window'){
|
1066 |
+
pJS.interactivity.el = window;
|
1067 |
+
}else{
|
1068 |
+
pJS.interactivity.el = pJS.canvas.el;
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
|
1072 |
+
/* detect mouse pos - on hover / click event */
|
1073 |
+
if(pJS.interactivity.events.onhover.enable || pJS.interactivity.events.onclick.enable){
|
1074 |
+
|
1075 |
+
/* el on mousemove */
|
1076 |
+
pJS.interactivity.el.addEventListener('mousemove', function(e){
|
1077 |
+
|
1078 |
+
if(pJS.interactivity.el == window){
|
1079 |
+
var pos_x = e.clientX,
|
1080 |
+
pos_y = e.clientY;
|
1081 |
+
}
|
1082 |
+
else{
|
1083 |
+
var pos_x = e.offsetX || e.clientX,
|
1084 |
+
pos_y = e.offsetY || e.clientY;
|
1085 |
+
}
|
1086 |
+
|
1087 |
+
pJS.interactivity.mouse.pos_x = pos_x;
|
1088 |
+
pJS.interactivity.mouse.pos_y = pos_y;
|
1089 |
+
|
1090 |
+
if(pJS.tmp.retina){
|
1091 |
+
pJS.interactivity.mouse.pos_x *= pJS.canvas.pxratio;
|
1092 |
+
pJS.interactivity.mouse.pos_y *= pJS.canvas.pxratio;
|
1093 |
+
}
|
1094 |
+
|
1095 |
+
pJS.interactivity.status = 'mousemove';
|
1096 |
+
|
1097 |
+
});
|
1098 |
+
|
1099 |
+
/* el on onmouseleave */
|
1100 |
+
pJS.interactivity.el.addEventListener('mouseleave', function(e){
|
1101 |
+
|
1102 |
+
pJS.interactivity.mouse.pos_x = null;
|
1103 |
+
pJS.interactivity.mouse.pos_y = null;
|
1104 |
+
pJS.interactivity.status = 'mouseleave';
|
1105 |
+
|
1106 |
+
});
|
1107 |
+
|
1108 |
+
}
|
1109 |
+
|
1110 |
+
/* on click event */
|
1111 |
+
if(pJS.interactivity.events.onclick.enable){
|
1112 |
+
|
1113 |
+
pJS.interactivity.el.addEventListener('click', function(){
|
1114 |
+
|
1115 |
+
pJS.interactivity.mouse.click_pos_x = pJS.interactivity.mouse.pos_x;
|
1116 |
+
pJS.interactivity.mouse.click_pos_y = pJS.interactivity.mouse.pos_y;
|
1117 |
+
pJS.interactivity.mouse.click_time = new Date().getTime();
|
1118 |
+
|
1119 |
+
if(pJS.interactivity.events.onclick.enable){
|
1120 |
+
|
1121 |
+
switch(pJS.interactivity.events.onclick.mode){
|
1122 |
+
|
1123 |
+
case 'push':
|
1124 |
+
if(pJS.particles.move.enable){
|
1125 |
+
pJS.fn.modes.pushParticles(pJS.interactivity.modes.push.particles_nb, pJS.interactivity.mouse);
|
1126 |
+
}else{
|
1127 |
+
if(pJS.interactivity.modes.push.particles_nb == 1){
|
1128 |
+
pJS.fn.modes.pushParticles(pJS.interactivity.modes.push.particles_nb, pJS.interactivity.mouse);
|
1129 |
+
}
|
1130 |
+
else if(pJS.interactivity.modes.push.particles_nb > 1){
|
1131 |
+
pJS.fn.modes.pushParticles(pJS.interactivity.modes.push.particles_nb);
|
1132 |
+
}
|
1133 |
+
}
|
1134 |
+
break;
|
1135 |
+
|
1136 |
+
case 'remove':
|
1137 |
+
pJS.fn.modes.removeParticles(pJS.interactivity.modes.remove.particles_nb);
|
1138 |
+
break;
|
1139 |
+
|
1140 |
+
case 'bubble':
|
1141 |
+
pJS.tmp.bubble_clicking = true;
|
1142 |
+
break;
|
1143 |
+
|
1144 |
+
case 'repulse':
|
1145 |
+
pJS.tmp.repulse_clicking = true;
|
1146 |
+
pJS.tmp.repulse_count = 0;
|
1147 |
+
pJS.tmp.repulse_finish = false;
|
1148 |
+
setTimeout(function(){
|
1149 |
+
pJS.tmp.repulse_clicking = false;
|
1150 |
+
}, pJS.interactivity.modes.repulse.duration*1000)
|
1151 |
+
break;
|
1152 |
+
|
1153 |
+
}
|
1154 |
+
|
1155 |
+
}
|
1156 |
+
|
1157 |
+
});
|
1158 |
+
|
1159 |
+
}
|
1160 |
+
|
1161 |
+
|
1162 |
+
};
|
1163 |
+
|
1164 |
+
pJS.fn.vendors.densityAutoParticles = function(){
|
1165 |
+
|
1166 |
+
if(pJS.particles.number.density.enable){
|
1167 |
+
|
1168 |
+
/* calc area */
|
1169 |
+
var area = pJS.canvas.el.width * pJS.canvas.el.height / 1000;
|
1170 |
+
if(pJS.tmp.retina){
|
1171 |
+
area = area/(pJS.canvas.pxratio*2);
|
1172 |
+
}
|
1173 |
+
|
1174 |
+
/* calc number of particles based on density area */
|
1175 |
+
var nb_particles = area * pJS.particles.number.value / pJS.particles.number.density.value_area;
|
1176 |
+
|
1177 |
+
/* add or remove X particles */
|
1178 |
+
var missing_particles = pJS.particles.array.length - nb_particles;
|
1179 |
+
if(missing_particles < 0) pJS.fn.modes.pushParticles(Math.abs(missing_particles));
|
1180 |
+
else pJS.fn.modes.removeParticles(missing_particles);
|
1181 |
+
|
1182 |
+
}
|
1183 |
+
|
1184 |
+
};
|
1185 |
+
|
1186 |
+
|
1187 |
+
pJS.fn.vendors.checkOverlap = function(p1, position){
|
1188 |
+
for(var i = 0; i < pJS.particles.array.length; i++){
|
1189 |
+
var p2 = pJS.particles.array[i];
|
1190 |
+
|
1191 |
+
var dx = p1.x - p2.x,
|
1192 |
+
dy = p1.y - p2.y,
|
1193 |
+
dist = Math.sqrt(dx*dx + dy*dy);
|
1194 |
+
|
1195 |
+
if(dist <= p1.radius + p2.radius){
|
1196 |
+
p1.x = position ? position.x : Math.random() * pJS.canvas.w;
|
1197 |
+
p1.y = position ? position.y : Math.random() * pJS.canvas.h;
|
1198 |
+
pJS.fn.vendors.checkOverlap(p1);
|
1199 |
+
}
|
1200 |
+
}
|
1201 |
+
};
|
1202 |
+
|
1203 |
+
|
1204 |
+
pJS.fn.vendors.createSvgImg = function(p){
|
1205 |
+
|
1206 |
+
/* set color to svg element */
|
1207 |
+
var svgXml = pJS.tmp.source_svg,
|
1208 |
+
rgbHex = /#([0-9A-F]{3,6})/gi,
|
1209 |
+
coloredSvgXml = svgXml.replace(rgbHex, function (m, r, g, b) {
|
1210 |
+
if(p.color.rgb){
|
1211 |
+
var color_value = 'rgba('+p.color.rgb.r+','+p.color.rgb.g+','+p.color.rgb.b+','+p.opacity+')';
|
1212 |
+
}else{
|
1213 |
+
var color_value = 'hsla('+p.color.hsl.h+','+p.color.hsl.s+'%,'+p.color.hsl.l+'%,'+p.opacity+')';
|
1214 |
+
}
|
1215 |
+
return color_value;
|
1216 |
+
});
|
1217 |
+
|
1218 |
+
/* prepare to create img with colored svg */
|
1219 |
+
var svg = new Blob([coloredSvgXml], {type: 'image/svg+xml;charset=utf-8'}),
|
1220 |
+
DOMURL = window.URL || window.webkitURL || window,
|
1221 |
+
url = DOMURL.createObjectURL(svg);
|
1222 |
+
|
1223 |
+
/* create particle img obj */
|
1224 |
+
var img = new Image();
|
1225 |
+
img.addEventListener('load', function(){
|
1226 |
+
p.img.obj = img;
|
1227 |
+
p.img.loaded = true;
|
1228 |
+
DOMURL.revokeObjectURL(url);
|
1229 |
+
pJS.tmp.count_svg++;
|
1230 |
+
});
|
1231 |
+
img.src = url;
|
1232 |
+
|
1233 |
+
};
|
1234 |
+
|
1235 |
+
|
1236 |
+
pJS.fn.vendors.destroypJS = function(){
|
1237 |
+
cancelAnimationFrame(pJS.fn.drawAnimFrame);
|
1238 |
+
canvas_el.remove();
|
1239 |
+
pJSDom = null;
|
1240 |
+
};
|
1241 |
+
|
1242 |
+
|
1243 |
+
pJS.fn.vendors.drawShape = function(c, startX, startY, sideLength, sideCountNumerator, sideCountDenominator){
|
1244 |
+
|
1245 |
+
// By Programming Thomas - https://programmingthomas.wordpress.com/2013/04/03/n-sided-shapes/
|
1246 |
+
var sideCount = sideCountNumerator * sideCountDenominator;
|
1247 |
+
var decimalSides = sideCountNumerator / sideCountDenominator;
|
1248 |
+
var interiorAngleDegrees = (180 * (decimalSides - 2)) / decimalSides;
|
1249 |
+
var interiorAngle = Math.PI - Math.PI * interiorAngleDegrees / 180; // convert to radians
|
1250 |
+
c.save();
|
1251 |
+
c.beginPath();
|
1252 |
+
c.translate(startX, startY);
|
1253 |
+
c.moveTo(0,0);
|
1254 |
+
for (var i = 0; i < sideCount; i++) {
|
1255 |
+
c.lineTo(sideLength,0);
|
1256 |
+
c.translate(sideLength,0);
|
1257 |
+
c.rotate(interiorAngle);
|
1258 |
+
}
|
1259 |
+
//c.stroke();
|
1260 |
+
c.fill();
|
1261 |
+
c.restore();
|
1262 |
+
|
1263 |
+
};
|
1264 |
+
|
1265 |
+
pJS.fn.vendors.exportImg = function(){
|
1266 |
+
window.open(pJS.canvas.el.toDataURL('image/png'), '_blank');
|
1267 |
+
};
|
1268 |
+
|
1269 |
+
|
1270 |
+
pJS.fn.vendors.loadImg = function(type){
|
1271 |
+
|
1272 |
+
pJS.tmp.img_error = undefined;
|
1273 |
+
|
1274 |
+
if(pJS.particles.shape.image.src != ''){
|
1275 |
+
|
1276 |
+
if(type == 'svg'){
|
1277 |
+
|
1278 |
+
var xhr = new XMLHttpRequest();
|
1279 |
+
xhr.open('GET', pJS.particles.shape.image.src);
|
1280 |
+
xhr.onreadystatechange = function (data) {
|
1281 |
+
if(xhr.readyState == 4){
|
1282 |
+
if(xhr.status == 200){
|
1283 |
+
pJS.tmp.source_svg = data.currentTarget.response;
|
1284 |
+
pJS.fn.vendors.checkBeforeDraw();
|
1285 |
+
}else{
|
1286 |
+
console.log('Error pJS - Image not found');
|
1287 |
+
pJS.tmp.img_error = true;
|
1288 |
+
}
|
1289 |
+
}
|
1290 |
+
}
|
1291 |
+
xhr.send();
|
1292 |
+
|
1293 |
+
}else{
|
1294 |
+
|
1295 |
+
var img = new Image();
|
1296 |
+
img.addEventListener('load', function(){
|
1297 |
+
pJS.tmp.img_obj = img;
|
1298 |
+
pJS.fn.vendors.checkBeforeDraw();
|
1299 |
+
});
|
1300 |
+
img.src = pJS.particles.shape.image.src;
|
1301 |
+
|
1302 |
+
}
|
1303 |
+
|
1304 |
+
}else{
|
1305 |
+
console.log('Error pJS - No image.src');
|
1306 |
+
pJS.tmp.img_error = true;
|
1307 |
+
}
|
1308 |
+
|
1309 |
+
};
|
1310 |
+
|
1311 |
+
|
1312 |
+
pJS.fn.vendors.draw = function(){
|
1313 |
+
|
1314 |
+
if(pJS.particles.shape.type == 'image'){
|
1315 |
+
|
1316 |
+
if(pJS.tmp.img_type == 'svg'){
|
1317 |
+
|
1318 |
+
if(pJS.tmp.count_svg >= pJS.particles.number.value){
|
1319 |
+
pJS.fn.particlesDraw();
|
1320 |
+
if(!pJS.particles.move.enable) cancelRequestAnimFrame(pJS.fn.drawAnimFrame);
|
1321 |
+
else pJS.fn.drawAnimFrame = requestAnimFrame(pJS.fn.vendors.draw);
|
1322 |
+
}else{
|
1323 |
+
//console.log('still loading...');
|
1324 |
+
if(!pJS.tmp.img_error) pJS.fn.drawAnimFrame = requestAnimFrame(pJS.fn.vendors.draw);
|
1325 |
+
}
|
1326 |
+
|
1327 |
+
}else{
|
1328 |
+
|
1329 |
+
if(pJS.tmp.img_obj != undefined){
|
1330 |
+
pJS.fn.particlesDraw();
|
1331 |
+
if(!pJS.particles.move.enable) cancelRequestAnimFrame(pJS.fn.drawAnimFrame);
|
1332 |
+
else pJS.fn.drawAnimFrame = requestAnimFrame(pJS.fn.vendors.draw);
|
1333 |
+
}else{
|
1334 |
+
if(!pJS.tmp.img_error) pJS.fn.drawAnimFrame = requestAnimFrame(pJS.fn.vendors.draw);
|
1335 |
+
}
|
1336 |
+
|
1337 |
+
}
|
1338 |
+
|
1339 |
+
}else{
|
1340 |
+
pJS.fn.particlesDraw();
|
1341 |
+
if(!pJS.particles.move.enable) cancelRequestAnimFrame(pJS.fn.drawAnimFrame);
|
1342 |
+
else pJS.fn.drawAnimFrame = requestAnimFrame(pJS.fn.vendors.draw);
|
1343 |
+
}
|
1344 |
+
|
1345 |
+
};
|
1346 |
+
|
1347 |
+
|
1348 |
+
pJS.fn.vendors.checkBeforeDraw = function(){
|
1349 |
+
|
1350 |
+
// if shape is image
|
1351 |
+
if(pJS.particles.shape.type == 'image'){
|
1352 |
+
|
1353 |
+
if(pJS.tmp.img_type == 'svg' && pJS.tmp.source_svg == undefined){
|
1354 |
+
pJS.tmp.checkAnimFrame = requestAnimFrame(check);
|
1355 |
+
}else{
|
1356 |
+
//console.log('images loaded! cancel check');
|
1357 |
+
cancelRequestAnimFrame(pJS.tmp.checkAnimFrame);
|
1358 |
+
if(!pJS.tmp.img_error){
|
1359 |
+
pJS.fn.vendors.init();
|
1360 |
+
pJS.fn.vendors.draw();
|
1361 |
+
}
|
1362 |
+
|
1363 |
+
}
|
1364 |
+
|
1365 |
+
}else{
|
1366 |
+
pJS.fn.vendors.init();
|
1367 |
+
pJS.fn.vendors.draw();
|
1368 |
+
}
|
1369 |
+
|
1370 |
+
};
|
1371 |
+
|
1372 |
+
|
1373 |
+
pJS.fn.vendors.init = function(){
|
1374 |
+
|
1375 |
+
/* init canvas + particles */
|
1376 |
+
pJS.fn.retinaInit();
|
1377 |
+
pJS.fn.canvasInit();
|
1378 |
+
pJS.fn.canvasSize();
|
1379 |
+
pJS.fn.canvasPaint();
|
1380 |
+
pJS.fn.particlesCreate();
|
1381 |
+
pJS.fn.vendors.densityAutoParticles();
|
1382 |
+
|
1383 |
+
/* particles.line_linked - convert hex colors to rgb */
|
1384 |
+
pJS.particles.line_linked.color_rgb_line = hexToRgb(pJS.particles.line_linked.color);
|
1385 |
+
|
1386 |
+
};
|
1387 |
+
|
1388 |
+
|
1389 |
+
pJS.fn.vendors.start = function(){
|
1390 |
+
|
1391 |
+
if(isInArray('image', pJS.particles.shape.type)){
|
1392 |
+
pJS.tmp.img_type = pJS.particles.shape.image.src.substr(pJS.particles.shape.image.src.length - 3);
|
1393 |
+
pJS.fn.vendors.loadImg(pJS.tmp.img_type);
|
1394 |
+
}else{
|
1395 |
+
pJS.fn.vendors.checkBeforeDraw();
|
1396 |
+
}
|
1397 |
+
|
1398 |
+
};
|
1399 |
+
|
1400 |
+
|
1401 |
+
|
1402 |
+
|
1403 |
+
/* ---------- pJS - start ------------ */
|
1404 |
+
|
1405 |
+
|
1406 |
+
pJS.fn.vendors.eventsListeners();
|
1407 |
+
|
1408 |
+
pJS.fn.vendors.start();
|
1409 |
+
|
1410 |
+
|
1411 |
+
|
1412 |
+
};
|
1413 |
+
|
1414 |
+
/* ---------- global functions - vendors ------------ */
|
1415 |
+
|
1416 |
+
Object.deepExtend = function(destination, source) {
|
1417 |
+
for (var property in source) {
|
1418 |
+
if (source[property] && source[property].constructor &&
|
1419 |
+
source[property].constructor === Object) {
|
1420 |
+
destination[property] = destination[property] || {};
|
1421 |
+
arguments.callee(destination[property], source[property]);
|
1422 |
+
} else {
|
1423 |
+
destination[property] = source[property];
|
1424 |
+
}
|
1425 |
+
}
|
1426 |
+
return destination;
|
1427 |
+
};
|
1428 |
+
|
1429 |
+
window.requestAnimFrame = (function(){
|
1430 |
+
return window.requestAnimationFrame ||
|
1431 |
+
window.webkitRequestAnimationFrame ||
|
1432 |
+
window.mozRequestAnimationFrame ||
|
1433 |
+
window.oRequestAnimationFrame ||
|
1434 |
+
window.msRequestAnimationFrame ||
|
1435 |
+
function(callback){
|
1436 |
+
window.setTimeout(callback, 1000 / 60);
|
1437 |
+
};
|
1438 |
+
})();
|
1439 |
+
|
1440 |
+
window.cancelRequestAnimFrame = ( function() {
|
1441 |
+
return window.cancelAnimationFrame ||
|
1442 |
+
window.webkitCancelRequestAnimationFrame ||
|
1443 |
+
window.mozCancelRequestAnimationFrame ||
|
1444 |
+
window.oCancelRequestAnimationFrame ||
|
1445 |
+
window.msCancelRequestAnimationFrame ||
|
1446 |
+
clearTimeout
|
1447 |
+
} )();
|
1448 |
+
|
1449 |
+
function hexToRgb(hex){
|
1450 |
+
// By Tim Down - http://stackoverflow.com/a/5624139/3493650
|
1451 |
+
// Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF")
|
1452 |
+
var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
|
1453 |
+
hex = hex.replace(shorthandRegex, function(m, r, g, b) {
|
1454 |
+
return r + r + g + g + b + b;
|
1455 |
+
});
|
1456 |
+
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
1457 |
+
return result ? {
|
1458 |
+
r: parseInt(result[1], 16),
|
1459 |
+
g: parseInt(result[2], 16),
|
1460 |
+
b: parseInt(result[3], 16)
|
1461 |
+
} : null;
|
1462 |
+
};
|
1463 |
+
|
1464 |
+
function clamp(number, min, max) {
|
1465 |
+
return Math.min(Math.max(number, min), max);
|
1466 |
+
};
|
1467 |
+
|
1468 |
+
function isInArray(value, array) {
|
1469 |
+
return array.indexOf(value) > -1;
|
1470 |
+
}
|
1471 |
+
|
1472 |
+
|
1473 |
+
/* ---------- particles.js functions - start ------------ */
|
1474 |
+
|
1475 |
+
window.pJSDom = [];
|
1476 |
+
|
1477 |
+
window.particlesJS = function(tag_id, params){
|
1478 |
+
|
1479 |
+
//console.log(params);
|
1480 |
+
|
1481 |
+
/* no string id? so it's object params, and set the id with default id */
|
1482 |
+
if(typeof(tag_id) != 'string'){
|
1483 |
+
params = tag_id;
|
1484 |
+
tag_id = 'particles-js';
|
1485 |
+
}
|
1486 |
+
|
1487 |
+
/* no id? set the id to default id */
|
1488 |
+
if(!tag_id){
|
1489 |
+
tag_id = 'particles-js';
|
1490 |
+
}
|
1491 |
+
|
1492 |
+
/* pJS elements */
|
1493 |
+
var pJS_tag = document.getElementById(tag_id),
|
1494 |
+
pJS_canvas_class = 'particles-js-canvas-el',
|
1495 |
+
exist_canvas = pJS_tag.getElementsByClassName(pJS_canvas_class);
|
1496 |
+
|
1497 |
+
/* remove canvas if exists into the pJS target tag */
|
1498 |
+
if(exist_canvas.length){
|
1499 |
+
while(exist_canvas.length > 0){
|
1500 |
+
pJS_tag.removeChild(exist_canvas[0]);
|
1501 |
+
}
|
1502 |
+
}
|
1503 |
+
|
1504 |
+
/* create canvas element */
|
1505 |
+
var canvas_el = document.createElement('canvas');
|
1506 |
+
canvas_el.className = pJS_canvas_class;
|
1507 |
+
|
1508 |
+
/* set size canvas */
|
1509 |
+
canvas_el.style.width = "100%";
|
1510 |
+
canvas_el.style.height = "100%";
|
1511 |
+
|
1512 |
+
/* append canvas */
|
1513 |
+
var canvas = document.getElementById(tag_id).appendChild(canvas_el);
|
1514 |
+
|
1515 |
+
/* launch particle.js */
|
1516 |
+
if(canvas != null){
|
1517 |
+
pJSDom.push(new pJS(tag_id, params));
|
1518 |
+
}
|
1519 |
+
|
1520 |
+
};
|
1521 |
+
|
1522 |
+
window.particlesJS.load = function(tag_id, path_config_json, callback){
|
1523 |
+
|
1524 |
+
/* load json config */
|
1525 |
+
var xhr = new XMLHttpRequest();
|
1526 |
+
xhr.open('GET', path_config_json);
|
1527 |
+
xhr.onreadystatechange = function (data) {
|
1528 |
+
if(xhr.readyState == 4){
|
1529 |
+
if(xhr.status == 200){
|
1530 |
+
var params = JSON.parse(data.currentTarget.response);
|
1531 |
+
window.particlesJS(tag_id, params);
|
1532 |
+
if(callback) callback();
|
1533 |
+
}else{
|
1534 |
+
console.log('Error pJS - XMLHttpRequest status: '+xhr.status);
|
1535 |
+
console.log('Error pJS - File config not found');
|
1536 |
+
}
|
1537 |
+
}
|
1538 |
+
};
|
1539 |
+
xhr.send();
|
1540 |
+
|
1541 |
+
};
|
assets/js/lib/particles/particles.min.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* -----------------------------------------------
|
2 |
+
/* Author : Vincent Garreau - vincentgarreau.com
|
3 |
+
/* MIT license: http://opensource.org/licenses/MIT
|
4 |
+
/* Demo / Generator : vincentgarreau.com/particles.js
|
5 |
+
/* GitHub : github.com/VincentGarreau/particles.js
|
6 |
+
/* How to use? : Check the GitHub README
|
7 |
+
/* v2.0.0
|
8 |
+
/* ----------------------------------------------- */
|
9 |
+
function hexToRgb(e){var a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(a,function(e,a,t,i){return a+a+t+t+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function clamp(e,a,t){return Math.min(Math.max(e,a),t)}function isInArray(e,a){return a.indexOf(e)>-1}var pJS=function(e,a){var t=document.querySelector("#"+e+" > .particles-js-canvas-el");this.pJS={canvas:{el:t,w:t.offsetWidth,h:t.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var i=this.pJS;a&&Object.deepExtend(i,a),i.tmp.obj={size_value:i.particles.size.value,size_anim_speed:i.particles.size.anim.speed,move_speed:i.particles.move.speed,line_linked_distance:i.particles.line_linked.distance,line_linked_width:i.particles.line_linked.width,mode_grab_distance:i.interactivity.modes.grab.distance,mode_bubble_distance:i.interactivity.modes.bubble.distance,mode_bubble_size:i.interactivity.modes.bubble.size,mode_repulse_distance:i.interactivity.modes.repulse.distance},i.fn.retinaInit=function(){i.retina_detect&&window.devicePixelRatio>1?(i.canvas.pxratio=window.devicePixelRatio,i.tmp.retina=!0):(i.canvas.pxratio=1,i.tmp.retina=!1),i.canvas.w=i.canvas.el.offsetWidth*i.canvas.pxratio,i.canvas.h=i.canvas.el.offsetHeight*i.canvas.pxratio,i.particles.size.value=i.tmp.obj.size_value*i.canvas.pxratio,i.particles.size.anim.speed=i.tmp.obj.size_anim_speed*i.canvas.pxratio,i.particles.move.speed=i.tmp.obj.move_speed*i.canvas.pxratio,i.particles.line_linked.distance=i.tmp.obj.line_linked_distance*i.canvas.pxratio,i.interactivity.modes.grab.distance=i.tmp.obj.mode_grab_distance*i.canvas.pxratio,i.interactivity.modes.bubble.distance=i.tmp.obj.mode_bubble_distance*i.canvas.pxratio,i.particles.line_linked.width=i.tmp.obj.line_linked_width*i.canvas.pxratio,i.interactivity.modes.bubble.size=i.tmp.obj.mode_bubble_size*i.canvas.pxratio,i.interactivity.modes.repulse.distance=i.tmp.obj.mode_repulse_distance*i.canvas.pxratio},i.fn.canvasInit=function(){i.canvas.ctx=i.canvas.el.getContext("2d")},i.fn.canvasSize=function(){i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i&&i.interactivity.events.resize&&window.addEventListener("resize",function(){i.canvas.w=i.canvas.el.offsetWidth,i.canvas.h=i.canvas.el.offsetHeight,i.tmp.retina&&(i.canvas.w*=i.canvas.pxratio,i.canvas.h*=i.canvas.pxratio),i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i.particles.move.enable||(i.fn.particlesEmpty(),i.fn.particlesCreate(),i.fn.particlesDraw(),i.fn.vendors.densityAutoParticles()),i.fn.vendors.densityAutoParticles()})},i.fn.canvasPaint=function(){i.canvas.ctx.fillRect(0,0,i.canvas.w,i.canvas.h)},i.fn.canvasClear=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h)},i.fn.particle=function(e,a,t){if(this.radius=(i.particles.size.random?Math.random():1)*i.particles.size.value,i.particles.size.anim.enable&&(this.size_status=!1,this.vs=i.particles.size.anim.speed/100,i.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=t?t.x:Math.random()*i.canvas.w,this.y=t?t.y:Math.random()*i.canvas.h,this.x>i.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>i.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),i.particles.move.bounce&&i.fn.vendors.checkOverlap(this,t),this.color={},"object"==typeof e.value)if(e.value instanceof Array){var s=e.value[Math.floor(Math.random()*i.particles.color.value.length)];this.color.rgb=hexToRgb(s)}else void 0!=e.value.r&&void 0!=e.value.g&&void 0!=e.value.b&&(this.color.rgb={r:e.value.r,g:e.value.g,b:e.value.b}),void 0!=e.value.h&&void 0!=e.value.s&&void 0!=e.value.l&&(this.color.hsl={h:e.value.h,s:e.value.s,l:e.value.l});else"random"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof e.value&&(this.color=e,this.color.rgb=hexToRgb(this.color.value));this.opacity=(i.particles.opacity.random?Math.random():1)*i.particles.opacity.value,i.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=i.particles.opacity.anim.speed/100,i.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var n={};switch(i.particles.move.direction){case"top":n={x:0,y:-1};break;case"top-right":n={x:.5,y:-.5};break;case"right":n={x:1,y:-0};break;case"bottom-right":n={x:.5,y:.5};break;case"bottom":n={x:0,y:1};break;case"bottom-left":n={x:-.5,y:1};break;case"left":n={x:-1,y:0};break;case"top-left":n={x:-.5,y:-.5};break;default:n={x:0,y:0}}i.particles.move.straight?(this.vx=n.x,this.vy=n.y,i.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=n.x+Math.random()-.5,this.vy=n.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var r=i.particles.shape.type;if("object"==typeof r){if(r instanceof Array){var c=r[Math.floor(Math.random()*r.length)];this.shape=c}}else this.shape=r;if("image"==this.shape){var o=i.particles.shape;this.img={src:o.image.src,ratio:o.image.width/o.image.height},this.img.ratio||(this.img.ratio=1),"svg"==i.tmp.img_type&&void 0!=i.tmp.source_svg&&(i.fn.vendors.createSvgImg(this),i.tmp.pushing&&(this.img.loaded=!1))}},i.fn.particle.prototype.draw=function(){function e(){i.canvas.ctx.drawImage(r,a.x-t,a.y-t,2*t,2*t/a.img.ratio)}var a=this;if(void 0!=a.radius_bubble)var t=a.radius_bubble;else var t=a.radius;if(void 0!=a.opacity_bubble)var s=a.opacity_bubble;else var s=a.opacity;if(a.color.rgb)var n="rgba("+a.color.rgb.r+","+a.color.rgb.g+","+a.color.rgb.b+","+s+")";else var n="hsla("+a.color.hsl.h+","+a.color.hsl.s+"%,"+a.color.hsl.l+"%,"+s+")";switch(i.canvas.ctx.fillStyle=n,i.canvas.ctx.beginPath(),a.shape){case"circle":i.canvas.ctx.arc(a.x,a.y,t,0,2*Math.PI,!1);break;case"edge":i.canvas.ctx.rect(a.x-t,a.y-t,2*t,2*t);break;case"triangle":i.fn.vendors.drawShape(i.canvas.ctx,a.x-t,a.y+t/1.66,2*t,3,2);break;case"polygon":i.fn.vendors.drawShape(i.canvas.ctx,a.x-t/(i.particles.shape.polygon.nb_sides/3.5),a.y-t/.76,2.66*t/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,1);break;case"star":i.fn.vendors.drawShape(i.canvas.ctx,a.x-2*t/(i.particles.shape.polygon.nb_sides/4),a.y-t/1.52,2*t*2.66/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,2);break;case"image":if("svg"==i.tmp.img_type)var r=a.img.obj;else var r=i.tmp.img_obj;r&&e()}i.canvas.ctx.closePath(),i.particles.shape.stroke.width>0&&(i.canvas.ctx.strokeStyle=i.particles.shape.stroke.color,i.canvas.ctx.lineWidth=i.particles.shape.stroke.width,i.canvas.ctx.stroke()),i.canvas.ctx.fill()},i.fn.particlesCreate=function(){for(var e=0;e<i.particles.number.value;e++)i.particles.array.push(new i.fn.particle(i.particles.color,i.particles.opacity.value))},i.fn.particlesUpdate=function(){for(var e=0;e<i.particles.array.length;e++){var a=i.particles.array[e];if(i.particles.move.enable){var t=i.particles.move.speed/2;a.x+=a.vx*t,a.y+=a.vy*t}if(i.particles.opacity.anim.enable&&(1==a.opacity_status?(a.opacity>=i.particles.opacity.value&&(a.opacity_status=!1),a.opacity+=a.vo):(a.opacity<=i.particles.opacity.anim.opacity_min&&(a.opacity_status=!0),a.opacity-=a.vo),a.opacity<0&&(a.opacity=0)),i.particles.size.anim.enable&&(1==a.size_status?(a.radius>=i.particles.size.value&&(a.size_status=!1),a.radius+=a.vs):(a.radius<=i.particles.size.anim.size_min&&(a.size_status=!0),a.radius-=a.vs),a.radius<0&&(a.radius=0)),"bounce"==i.particles.move.out_mode)var s={x_left:a.radius,x_right:i.canvas.w,y_top:a.radius,y_bottom:i.canvas.h};else var s={x_left:-a.radius,x_right:i.canvas.w+a.radius,y_top:-a.radius,y_bottom:i.canvas.h+a.radius};switch(a.x-a.radius>i.canvas.w?(a.x=s.x_left,a.y=Math.random()*i.canvas.h):a.x+a.radius<0&&(a.x=s.x_right,a.y=Math.random()*i.canvas.h),a.y-a.radius>i.canvas.h?(a.y=s.y_top,a.x=Math.random()*i.canvas.w):a.y+a.radius<0&&(a.y=s.y_bottom,a.x=Math.random()*i.canvas.w),i.particles.move.out_mode){case"bounce":a.x+a.radius>i.canvas.w?a.vx=-a.vx:a.x-a.radius<0&&(a.vx=-a.vx),a.y+a.radius>i.canvas.h?a.vy=-a.vy:a.y-a.radius<0&&(a.vy=-a.vy)}if(isInArray("grab",i.interactivity.events.onhover.mode)&&i.fn.modes.grabParticle(a),(isInArray("bubble",i.interactivity.events.onhover.mode)||isInArray("bubble",i.interactivity.events.onclick.mode))&&i.fn.modes.bubbleParticle(a),(isInArray("repulse",i.interactivity.events.onhover.mode)||isInArray("repulse",i.interactivity.events.onclick.mode))&&i.fn.modes.repulseParticle(a),i.particles.line_linked.enable||i.particles.move.attract.enable)for(var n=e+1;n<i.particles.array.length;n++){var r=i.particles.array[n];i.particles.line_linked.enable&&i.fn.interact.linkParticles(a,r),i.particles.move.attract.enable&&i.fn.interact.attractParticles(a,r),i.particles.move.bounce&&i.fn.interact.bounceParticles(a,r)}}},i.fn.particlesDraw=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h),i.fn.particlesUpdate();for(var e=0;e<i.particles.array.length;e++){var a=i.particles.array[e];a.draw()}},i.fn.particlesEmpty=function(){i.particles.array=[]},i.fn.particlesRefresh=function(){cancelRequestAnimFrame(i.fn.checkAnimFrame),cancelRequestAnimFrame(i.fn.drawAnimFrame),i.tmp.source_svg=void 0,i.tmp.img_obj=void 0,i.tmp.count_svg=0,i.fn.particlesEmpty(),i.fn.canvasClear(),i.fn.vendors.start()},i.fn.interact.linkParticles=function(e,a){var t=e.x-a.x,s=e.y-a.y,n=Math.sqrt(t*t+s*s);if(n<=i.particles.line_linked.distance){var r=i.particles.line_linked.opacity-n/(1/i.particles.line_linked.opacity)/i.particles.line_linked.distance;if(r>0){var c=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle="rgba("+c.r+","+c.g+","+c.b+","+r+")",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(a.x,a.y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}},i.fn.interact.attractParticles=function(e,a){var t=e.x-a.x,s=e.y-a.y,n=Math.sqrt(t*t+s*s);if(n<=i.particles.line_linked.distance){var r=t/(1e3*i.particles.move.attract.rotateX),c=s/(1e3*i.particles.move.attract.rotateY);e.vx-=r,e.vy-=c,a.vx+=r,a.vy+=c}},i.fn.interact.bounceParticles=function(e,a){var t=e.x-a.x,i=e.y-a.y,s=Math.sqrt(t*t+i*i),n=e.radius+a.radius;n>=s&&(e.vx=-e.vx,e.vy=-e.vy,a.vx=-a.vx,a.vy=-a.vy)},i.fn.modes.pushParticles=function(e,a){i.tmp.pushing=!0;for(var t=0;e>t;t++)i.particles.array.push(new i.fn.particle(i.particles.color,i.particles.opacity.value,{x:a?a.pos_x:Math.random()*i.canvas.w,y:a?a.pos_y:Math.random()*i.canvas.h})),t==e-1&&(i.particles.move.enable||i.fn.particlesDraw(),i.tmp.pushing=!1)},i.fn.modes.removeParticles=function(e){i.particles.array.splice(0,e),i.particles.move.enable||i.fn.particlesDraw()},i.fn.modes.bubbleParticle=function(e){function a(){e.opacity_bubble=e.opacity,e.radius_bubble=e.radius}function t(a,t,s,n,c){if(a!=t)if(i.tmp.bubble_duration_end){if(void 0!=s){var o=n-p*(n-a)/i.interactivity.modes.bubble.duration,l=a-o;d=a+l,"size"==c&&(e.radius_bubble=d),"opacity"==c&&(e.opacity_bubble=d)}}else if(r<=i.interactivity.modes.bubble.distance){if(void 0!=s)var v=s;else var v=n;if(v!=a){var d=n-p*(n-a)/i.interactivity.modes.bubble.duration;"size"==c&&(e.radius_bubble=d),"opacity"==c&&(e.opacity_bubble=d)}}else"size"==c&&(e.radius_bubble=void 0),"opacity"==c&&(e.opacity_bubble=void 0)}if(i.interactivity.events.onhover.enable&&isInArray("bubble",i.interactivity.events.onhover.mode)){var s=e.x-i.interactivity.mouse.pos_x,n=e.y-i.interactivity.mouse.pos_y,r=Math.sqrt(s*s+n*n),c=1-r/i.interactivity.modes.bubble.distance;if(r<=i.interactivity.modes.bubble.distance){if(c>=0&&"mousemove"==i.interactivity.status){if(i.interactivity.modes.bubble.size!=i.particles.size.value)if(i.interactivity.modes.bubble.size>i.particles.size.value){var o=e.radius+i.interactivity.modes.bubble.size*c;o>=0&&(e.radius_bubble=o)}else{var l=e.radius-i.interactivity.modes.bubble.size,o=e.radius-l*c;o>0?e.radius_bubble=o:e.radius_bubble=0}if(i.interactivity.modes.bubble.opacity!=i.particles.opacity.value)if(i.interactivity.modes.bubble.opacity>i.particles.opacity.value){var v=i.interactivity.modes.bubble.opacity*c;v>e.opacity&&v<=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=v)}else{var v=e.opacity-(i.particles.opacity.value-i.interactivity.modes.bubble.opacity)*c;v<e.opacity&&v>=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=v)}}}else a();"mouseleave"==i.interactivity.status&&a()}else if(i.interactivity.events.onclick.enable&&isInArray("bubble",i.interactivity.events.onclick.mode)){if(i.tmp.bubble_clicking){var s=e.x-i.interactivity.mouse.click_pos_x,n=e.y-i.interactivity.mouse.click_pos_y,r=Math.sqrt(s*s+n*n),p=((new Date).getTime()-i.interactivity.mouse.click_time)/1e3;p>i.interactivity.modes.bubble.duration&&(i.tmp.bubble_duration_end=!0),p>2*i.interactivity.modes.bubble.duration&&(i.tmp.bubble_clicking=!1,i.tmp.bubble_duration_end=!1)}i.tmp.bubble_clicking&&(t(i.interactivity.modes.bubble.size,i.particles.size.value,e.radius_bubble,e.radius,"size"),t(i.interactivity.modes.bubble.opacity,i.particles.opacity.value,e.opacity_bubble,e.opacity,"opacity"))}},i.fn.modes.repulseParticle=function(e){function a(){var a=Math.atan2(d,p);if(e.vx=u*Math.cos(a),e.vy=u*Math.sin(a),"bounce"==i.particles.move.out_mode){var t={x:e.x+e.vx,y:e.y+e.vy};t.x+e.radius>i.canvas.w?e.vx=-e.vx:t.x-e.radius<0&&(e.vx=-e.vx),t.y+e.radius>i.canvas.h?e.vy=-e.vy:t.y-e.radius<0&&(e.vy=-e.vy)}}if(i.interactivity.events.onhover.enable&&isInArray("repulse",i.interactivity.events.onhover.mode)&&"mousemove"==i.interactivity.status){var t=e.x-i.interactivity.mouse.pos_x,s=e.y-i.interactivity.mouse.pos_y,n=Math.sqrt(t*t+s*s),r={x:t/n,y:s/n},c=i.interactivity.modes.repulse.distance,o=100,l=clamp(1/c*(-1*Math.pow(n/c,2)+1)*c*o,0,50),v={x:e.x+r.x*l,y:e.y+r.y*l};"bounce"==i.particles.move.out_mode?(v.x-e.radius>0&&v.x+e.radius<i.canvas.w&&(e.x=v.x),v.y-e.radius>0&&v.y+e.radius<i.canvas.h&&(e.y=v.y)):(e.x=v.x,e.y=v.y)}else if(i.interactivity.events.onclick.enable&&isInArray("repulse",i.interactivity.events.onclick.mode))if(i.tmp.repulse_finish||(i.tmp.repulse_count++,i.tmp.repulse_count==i.particles.array.length&&(i.tmp.repulse_finish=!0)),i.tmp.repulse_clicking){var c=Math.pow(i.interactivity.modes.repulse.distance/6,3),p=i.interactivity.mouse.click_pos_x-e.x,d=i.interactivity.mouse.click_pos_y-e.y,m=p*p+d*d,u=-c/m*1;c>=m&&a()}else 0==i.tmp.repulse_clicking&&(e.vx=e.vx_i,e.vy=e.vy_i)},i.fn.modes.grabParticle=function(e){if(i.interactivity.events.onhover.enable&&"mousemove"==i.interactivity.status){var a=e.x-i.interactivity.mouse.pos_x,t=e.y-i.interactivity.mouse.pos_y,s=Math.sqrt(a*a+t*t);if(s<=i.interactivity.modes.grab.distance){var n=i.interactivity.modes.grab.line_linked.opacity-s/(1/i.interactivity.modes.grab.line_linked.opacity)/i.interactivity.modes.grab.distance;if(n>0){var r=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle="rgba("+r.r+","+r.g+","+r.b+","+n+")",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(i.interactivity.mouse.pos_x,i.interactivity.mouse.pos_y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}}},i.fn.vendors.eventsListeners=function(){"window"==i.interactivity.detect_on?i.interactivity.el=window:i.interactivity.el=i.canvas.el,(i.interactivity.events.onhover.enable||i.interactivity.events.onclick.enable)&&(i.interactivity.el.addEventListener("mousemove",function(e){if(i.interactivity.el==window)var a=e.clientX,t=e.clientY;else var a=e.offsetX||e.clientX,t=e.offsetY||e.clientY;i.interactivity.mouse.pos_x=a,i.interactivity.mouse.pos_y=t,i.tmp.retina&&(i.interactivity.mouse.pos_x*=i.canvas.pxratio,i.interactivity.mouse.pos_y*=i.canvas.pxratio),i.interactivity.status="mousemove"}),i.interactivity.el.addEventListener("mouseleave",function(e){i.interactivity.mouse.pos_x=null,i.interactivity.mouse.pos_y=null,i.interactivity.status="mouseleave"})),i.interactivity.events.onclick.enable&&i.interactivity.el.addEventListener("click",function(){if(i.interactivity.mouse.click_pos_x=i.interactivity.mouse.pos_x,i.interactivity.mouse.click_pos_y=i.interactivity.mouse.pos_y,i.interactivity.mouse.click_time=(new Date).getTime(),i.interactivity.events.onclick.enable)switch(i.interactivity.events.onclick.mode){case"push":i.particles.move.enable?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):1==i.interactivity.modes.push.particles_nb?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):i.interactivity.modes.push.particles_nb>1&&i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb);break;case"remove":i.fn.modes.removeParticles(i.interactivity.modes.remove.particles_nb);break;case"bubble":i.tmp.bubble_clicking=!0;break;case"repulse":i.tmp.repulse_clicking=!0,i.tmp.repulse_count=0,i.tmp.repulse_finish=!1,setTimeout(function(){i.tmp.repulse_clicking=!1},1e3*i.interactivity.modes.repulse.duration)}})},i.fn.vendors.densityAutoParticles=function(){if(i.particles.number.density.enable){var e=i.canvas.el.width*i.canvas.el.height/1e3;i.tmp.retina&&(e/=2*i.canvas.pxratio);var a=e*i.particles.number.value/i.particles.number.density.value_area,t=i.particles.array.length-a;0>t?i.fn.modes.pushParticles(Math.abs(t)):i.fn.modes.removeParticles(t)}},i.fn.vendors.checkOverlap=function(e,a){for(var t=0;t<i.particles.array.length;t++){var s=i.particles.array[t],n=e.x-s.x,r=e.y-s.y,c=Math.sqrt(n*n+r*r);c<=e.radius+s.radius&&(e.x=a?a.x:Math.random()*i.canvas.w,e.y=a?a.y:Math.random()*i.canvas.h,i.fn.vendors.checkOverlap(e))}},i.fn.vendors.createSvgImg=function(e){var a=i.tmp.source_svg,t=/#([0-9A-F]{3,6})/gi,s=a.replace(t,function(a,t,i,s){if(e.color.rgb)var n="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+e.opacity+")";else var n="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+e.opacity+")";return n}),n=new Blob([s],{type:"image/svg+xml;charset=utf-8"}),r=window.URL||window.webkitURL||window,c=r.createObjectURL(n),o=new Image;o.addEventListener("load",function(){e.img.obj=o,e.img.loaded=!0,r.revokeObjectURL(c),i.tmp.count_svg++}),o.src=c},i.fn.vendors.destroypJS=function(){cancelAnimationFrame(i.fn.drawAnimFrame),t.remove(),pJSDom=null},i.fn.vendors.drawShape=function(e,a,t,i,s,n){var r=s*n,c=s/n,o=180*(c-2)/c,l=Math.PI-Math.PI*o/180;e.save(),e.beginPath(),e.translate(a,t),e.moveTo(0,0);for(var v=0;r>v;v++)e.lineTo(i,0),e.translate(i,0),e.rotate(l);e.fill(),e.restore()},i.fn.vendors.exportImg=function(){window.open(i.canvas.el.toDataURL("image/png"),"_blank")},i.fn.vendors.loadImg=function(e){if(i.tmp.img_error=void 0,""!=i.particles.shape.image.src)if("svg"==e){var a=new XMLHttpRequest;a.open("GET",i.particles.shape.image.src),a.onreadystatechange=function(e){4==a.readyState&&(200==a.status?(i.tmp.source_svg=e.currentTarget.response,i.fn.vendors.checkBeforeDraw()):(console.log("Error pJS - Image not found"),i.tmp.img_error=!0))},a.send()}else{var t=new Image;t.addEventListener("load",function(){i.tmp.img_obj=t,i.fn.vendors.checkBeforeDraw()}),t.src=i.particles.shape.image.src}else console.log("Error pJS - No image.src"),i.tmp.img_error=!0},i.fn.vendors.draw=function(){"image"==i.particles.shape.type?"svg"==i.tmp.img_type?i.tmp.count_svg>=i.particles.number.value?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):void 0!=i.tmp.img_obj?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame))},i.fn.vendors.checkBeforeDraw=function(){"image"==i.particles.shape.type?"svg"==i.tmp.img_type&&void 0==i.tmp.source_svg?i.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(i.tmp.checkAnimFrame),i.tmp.img_error||(i.fn.vendors.init(),i.fn.vendors.draw())):(i.fn.vendors.init(),i.fn.vendors.draw())},i.fn.vendors.init=function(){i.fn.retinaInit(),i.fn.canvasInit(),i.fn.canvasSize(),i.fn.canvasPaint(),i.fn.particlesCreate(),i.fn.vendors.densityAutoParticles(),i.particles.line_linked.color_rgb_line=hexToRgb(i.particles.line_linked.color)},i.fn.vendors.start=function(){isInArray("image",i.particles.shape.type)?(i.tmp.img_type=i.particles.shape.image.src.substr(i.particles.shape.image.src.length-3),i.fn.vendors.loadImg(i.tmp.img_type)):i.fn.vendors.checkBeforeDraw()},i.fn.vendors.eventsListeners(),i.fn.vendors.start()};Object.deepExtend=function(e,a){for(var t in a)a[t]&&a[t].constructor&&a[t].constructor===Object?(e[t]=e[t]||{},arguments.callee(e[t],a[t])):e[t]=a[t];return e},window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),window.pJSDom=[],window.particlesJS=function(e,a){"string"!=typeof e&&(a=e,e="particles-js"),e||(e="particles-js");var t=document.getElementById(e),i="particles-js-canvas-el",s=t.getElementsByClassName(i);if(s.length)for(;s.length>0;)t.removeChild(s[0]);var n=document.createElement("canvas");n.className=i,n.style.width="100%",n.style.height="100%";var r=document.getElementById(e).appendChild(n);null!=r&&pJSDom.push(new pJS(e,a))},window.particlesJS.load=function(e,a,t){var i=new XMLHttpRequest;i.open("GET",a),i.onreadystatechange=function(a){if(4==i.readyState)if(200==i.status){var s=JSON.parse(a.currentTarget.response);window.particlesJS(e,s),t&&t()}else console.log("Error pJS - XMLHttpRequest status: "+i.status),console.log("Error pJS - File config not found")},i.send()};
|
assets/js/lib/perfect-scrollbar/perfect-scrollbar.js
ADDED
@@ -0,0 +1,1324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* perfect-scrollbar v1.4.0
|
3 |
+
* (c) 2018 Hyunje Jun
|
4 |
+
* @license MIT
|
5 |
+
*/
|
6 |
+
(function (global, factory) {
|
7 |
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
8 |
+
typeof define === 'function' && define.amd ? define(factory) :
|
9 |
+
(global.PerfectScrollbar = factory());
|
10 |
+
}(this, (function () { 'use strict';
|
11 |
+
|
12 |
+
function get(element) {
|
13 |
+
return getComputedStyle(element);
|
14 |
+
}
|
15 |
+
|
16 |
+
function set(element, obj) {
|
17 |
+
for (var key in obj) {
|
18 |
+
var val = obj[key];
|
19 |
+
if (typeof val === 'number') {
|
20 |
+
val = val + "px";
|
21 |
+
}
|
22 |
+
element.style[key] = val;
|
23 |
+
}
|
24 |
+
return element;
|
25 |
+
}
|
26 |
+
|
27 |
+
function div(className) {
|
28 |
+
var div = document.createElement('div');
|
29 |
+
div.className = className;
|
30 |
+
return div;
|
31 |
+
}
|
32 |
+
|
33 |
+
var elMatches =
|
34 |
+
typeof Element !== 'undefined' &&
|
35 |
+
(Element.prototype.matches ||
|
36 |
+
Element.prototype.webkitMatchesSelector ||
|
37 |
+
Element.prototype.mozMatchesSelector ||
|
38 |
+
Element.prototype.msMatchesSelector);
|
39 |
+
|
40 |
+
function matches(element, query) {
|
41 |
+
if (!elMatches) {
|
42 |
+
throw new Error('No element matching method supported');
|
43 |
+
}
|
44 |
+
|
45 |
+
return elMatches.call(element, query);
|
46 |
+
}
|
47 |
+
|
48 |
+
function remove(element) {
|
49 |
+
if (element.remove) {
|
50 |
+
element.remove();
|
51 |
+
} else {
|
52 |
+
if (element.parentNode) {
|
53 |
+
element.parentNode.removeChild(element);
|
54 |
+
}
|
55 |
+
}
|
56 |
+
}
|
57 |
+
|
58 |
+
function queryChildren(element, selector) {
|
59 |
+
return Array.prototype.filter.call(element.children, function (child) { return matches(child, selector); }
|
60 |
+
);
|
61 |
+
}
|
62 |
+
|
63 |
+
var cls = {
|
64 |
+
main: 'ps',
|
65 |
+
element: {
|
66 |
+
thumb: function (x) { return ("ps__thumb-" + x); },
|
67 |
+
rail: function (x) { return ("ps__rail-" + x); },
|
68 |
+
consuming: 'ps__child--consume',
|
69 |
+
},
|
70 |
+
state: {
|
71 |
+
focus: 'ps--focus',
|
72 |
+
clicking: 'ps--clicking',
|
73 |
+
active: function (x) { return ("ps--active-" + x); },
|
74 |
+
scrolling: function (x) { return ("ps--scrolling-" + x); },
|
75 |
+
},
|
76 |
+
};
|
77 |
+
|
78 |
+
/*
|
79 |
+
* Helper methods
|
80 |
+
*/
|
81 |
+
var scrollingClassTimeout = { x: null, y: null };
|
82 |
+
|
83 |
+
function addScrollingClass(i, x) {
|
84 |
+
var classList = i.element.classList;
|
85 |
+
var className = cls.state.scrolling(x);
|
86 |
+
|
87 |
+
if (classList.contains(className)) {
|
88 |
+
clearTimeout(scrollingClassTimeout[x]);
|
89 |
+
} else {
|
90 |
+
classList.add(className);
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
function removeScrollingClass(i, x) {
|
95 |
+
scrollingClassTimeout[x] = setTimeout(
|
96 |
+
function () { return i.isAlive && i.element.classList.remove(cls.state.scrolling(x)); },
|
97 |
+
i.settings.scrollingThreshold
|
98 |
+
);
|
99 |
+
}
|
100 |
+
|
101 |
+
function setScrollingClassInstantly(i, x) {
|
102 |
+
addScrollingClass(i, x);
|
103 |
+
removeScrollingClass(i, x);
|
104 |
+
}
|
105 |
+
|
106 |
+
var EventElement = function EventElement(element) {
|
107 |
+
this.element = element;
|
108 |
+
this.handlers = {};
|
109 |
+
};
|
110 |
+
|
111 |
+
var prototypeAccessors = { isEmpty: { configurable: true } };
|
112 |
+
|
113 |
+
EventElement.prototype.bind = function bind (eventName, handler) {
|
114 |
+
if (typeof this.handlers[eventName] === 'undefined') {
|
115 |
+
this.handlers[eventName] = [];
|
116 |
+
}
|
117 |
+
this.handlers[eventName].push(handler);
|
118 |
+
this.element.addEventListener(eventName, handler, false);
|
119 |
+
};
|
120 |
+
|
121 |
+
EventElement.prototype.unbind = function unbind (eventName, target) {
|
122 |
+
var this$1 = this;
|
123 |
+
|
124 |
+
this.handlers[eventName] = this.handlers[eventName].filter(function (handler) {
|
125 |
+
if (target && handler !== target) {
|
126 |
+
return true;
|
127 |
+
}
|
128 |
+
this$1.element.removeEventListener(eventName, handler, false);
|
129 |
+
return false;
|
130 |
+
});
|
131 |
+
};
|
132 |
+
|
133 |
+
EventElement.prototype.unbindAll = function unbindAll () {
|
134 |
+
var this$1 = this;
|
135 |
+
|
136 |
+
for (var name in this$1.handlers) {
|
137 |
+
this$1.unbind(name);
|
138 |
+
}
|
139 |
+
};
|
140 |
+
|
141 |
+
prototypeAccessors.isEmpty.get = function () {
|
142 |
+
var this$1 = this;
|
143 |
+
|
144 |
+
return Object.keys(this.handlers).every(
|
145 |
+
function (key) { return this$1.handlers[key].length === 0; }
|
146 |
+
);
|
147 |
+
};
|
148 |
+
|
149 |
+
Object.defineProperties( EventElement.prototype, prototypeAccessors );
|
150 |
+
|
151 |
+
var EventManager = function EventManager() {
|
152 |
+
this.eventElements = [];
|
153 |
+
};
|
154 |
+
|
155 |
+
EventManager.prototype.eventElement = function eventElement (element) {
|
156 |
+
var ee = this.eventElements.filter(function (ee) { return ee.element === element; })[0];
|
157 |
+
if (!ee) {
|
158 |
+
ee = new EventElement(element);
|
159 |
+
this.eventElements.push(ee);
|
160 |
+
}
|
161 |
+
return ee;
|
162 |
+
};
|
163 |
+
|
164 |
+
EventManager.prototype.bind = function bind (element, eventName, handler) {
|
165 |
+
this.eventElement(element).bind(eventName, handler);
|
166 |
+
};
|
167 |
+
|
168 |
+
EventManager.prototype.unbind = function unbind (element, eventName, handler) {
|
169 |
+
var ee = this.eventElement(element);
|
170 |
+
ee.unbind(eventName, handler);
|
171 |
+
|
172 |
+
if (ee.isEmpty) {
|
173 |
+
// remove
|
174 |
+
this.eventElements.splice(this.eventElements.indexOf(ee), 1);
|
175 |
+
}
|
176 |
+
};
|
177 |
+
|
178 |
+
EventManager.prototype.unbindAll = function unbindAll () {
|
179 |
+
this.eventElements.forEach(function (e) { return e.unbindAll(); });
|
180 |
+
this.eventElements = [];
|
181 |
+
};
|
182 |
+
|
183 |
+
EventManager.prototype.once = function once (element, eventName, handler) {
|
184 |
+
var ee = this.eventElement(element);
|
185 |
+
var onceHandler = function (evt) {
|
186 |
+
ee.unbind(eventName, onceHandler);
|
187 |
+
handler(evt);
|
188 |
+
};
|
189 |
+
ee.bind(eventName, onceHandler);
|
190 |
+
};
|
191 |
+
|
192 |
+
function createEvent(name) {
|
193 |
+
if (typeof window.CustomEvent === 'function') {
|
194 |
+
return new CustomEvent(name);
|
195 |
+
} else {
|
196 |
+
var evt = document.createEvent('CustomEvent');
|
197 |
+
evt.initCustomEvent(name, false, false, undefined);
|
198 |
+
return evt;
|
199 |
+
}
|
200 |
+
}
|
201 |
+
|
202 |
+
var processScrollDiff = function(
|
203 |
+
i,
|
204 |
+
axis,
|
205 |
+
diff,
|
206 |
+
useScrollingClass,
|
207 |
+
forceFireReachEvent
|
208 |
+
) {
|
209 |
+
if ( useScrollingClass === void 0 ) useScrollingClass = true;
|
210 |
+
if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;
|
211 |
+
|
212 |
+
var fields;
|
213 |
+
if (axis === 'top') {
|
214 |
+
fields = [
|
215 |
+
'contentHeight',
|
216 |
+
'containerHeight',
|
217 |
+
'scrollTop',
|
218 |
+
'y',
|
219 |
+
'up',
|
220 |
+
'down' ];
|
221 |
+
} else if (axis === 'left') {
|
222 |
+
fields = [
|
223 |
+
'contentWidth',
|
224 |
+
'containerWidth',
|
225 |
+
'scrollLeft',
|
226 |
+
'x',
|
227 |
+
'left',
|
228 |
+
'right' ];
|
229 |
+
} else {
|
230 |
+
throw new Error('A proper axis should be provided');
|
231 |
+
}
|
232 |
+
|
233 |
+
processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);
|
234 |
+
};
|
235 |
+
|
236 |
+
function processScrollDiff$1(
|
237 |
+
i,
|
238 |
+
diff,
|
239 |
+
ref,
|
240 |
+
useScrollingClass,
|
241 |
+
forceFireReachEvent
|
242 |
+
) {
|
243 |
+
var contentHeight = ref[0];
|
244 |
+
var containerHeight = ref[1];
|
245 |
+
var scrollTop = ref[2];
|
246 |
+
var y = ref[3];
|
247 |
+
var up = ref[4];
|
248 |
+
var down = ref[5];
|
249 |
+
if ( useScrollingClass === void 0 ) useScrollingClass = true;
|
250 |
+
if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;
|
251 |
+
|
252 |
+
var element = i.element;
|
253 |
+
|
254 |
+
// reset reach
|
255 |
+
i.reach[y] = null;
|
256 |
+
|
257 |
+
// 1 for subpixel rounding
|
258 |
+
if (element[scrollTop] < 1) {
|
259 |
+
i.reach[y] = 'start';
|
260 |
+
}
|
261 |
+
|
262 |
+
// 1 for subpixel rounding
|
263 |
+
if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {
|
264 |
+
i.reach[y] = 'end';
|
265 |
+
}
|
266 |
+
|
267 |
+
if (diff) {
|
268 |
+
element.dispatchEvent(createEvent(("ps-scroll-" + y)));
|
269 |
+
|
270 |
+
if (diff < 0) {
|
271 |
+
element.dispatchEvent(createEvent(("ps-scroll-" + up)));
|
272 |
+
} else if (diff > 0) {
|
273 |
+
element.dispatchEvent(createEvent(("ps-scroll-" + down)));
|
274 |
+
}
|
275 |
+
|
276 |
+
if (useScrollingClass) {
|
277 |
+
setScrollingClassInstantly(i, y);
|
278 |
+
}
|
279 |
+
}
|
280 |
+
|
281 |
+
if (i.reach[y] && (diff || forceFireReachEvent)) {
|
282 |
+
element.dispatchEvent(createEvent(("ps-" + y + "-reach-" + (i.reach[y]))));
|
283 |
+
}
|
284 |
+
}
|
285 |
+
|
286 |
+
function toInt(x) {
|
287 |
+
return parseInt(x, 10) || 0;
|
288 |
+
}
|
289 |
+
|
290 |
+
function isEditable(el) {
|
291 |
+
return (
|
292 |
+
matches(el, 'input,[contenteditable]') ||
|
293 |
+
matches(el, 'select,[contenteditable]') ||
|
294 |
+
matches(el, 'textarea,[contenteditable]') ||
|
295 |
+
matches(el, 'button,[contenteditable]')
|
296 |
+
);
|
297 |
+
}
|
298 |
+
|
299 |
+
function outerWidth(element) {
|
300 |
+
var styles = get(element);
|
301 |
+
return (
|
302 |
+
toInt(styles.width) +
|
303 |
+
toInt(styles.paddingLeft) +
|
304 |
+
toInt(styles.paddingRight) +
|
305 |
+
toInt(styles.borderLeftWidth) +
|
306 |
+
toInt(styles.borderRightWidth)
|
307 |
+
);
|
308 |
+
}
|
309 |
+
|
310 |
+
var env = {
|
311 |
+
isWebKit:
|
312 |
+
typeof document !== 'undefined' &&
|
313 |
+
'WebkitAppearance' in document.documentElement.style,
|
314 |
+
supportsTouch:
|
315 |
+
typeof window !== 'undefined' &&
|
316 |
+
('ontouchstart' in window ||
|
317 |
+
(window.DocumentTouch && document instanceof window.DocumentTouch)),
|
318 |
+
supportsIePointer:
|
319 |
+
typeof navigator !== 'undefined' && navigator.msMaxTouchPoints,
|
320 |
+
isChrome:
|
321 |
+
typeof navigator !== 'undefined' &&
|
322 |
+
/Chrome/i.test(navigator && navigator.userAgent),
|
323 |
+
};
|
324 |
+
|
325 |
+
var updateGeometry = function(i) {
|
326 |
+
var element = i.element;
|
327 |
+
var roundedScrollTop = Math.floor(element.scrollTop);
|
328 |
+
|
329 |
+
i.containerWidth = element.clientWidth;
|
330 |
+
i.containerHeight = element.clientHeight;
|
331 |
+
i.contentWidth = element.scrollWidth;
|
332 |
+
i.contentHeight = element.scrollHeight;
|
333 |
+
|
334 |
+
if (!element.contains(i.scrollbarXRail)) {
|
335 |
+
// clean up and append
|
336 |
+
queryChildren(element, cls.element.rail('x')).forEach(function (el) { return remove(el); }
|
337 |
+
);
|
338 |
+
element.appendChild(i.scrollbarXRail);
|
339 |
+
}
|
340 |
+
if (!element.contains(i.scrollbarYRail)) {
|
341 |
+
// clean up and append
|
342 |
+
queryChildren(element, cls.element.rail('y')).forEach(function (el) { return remove(el); }
|
343 |
+
);
|
344 |
+
element.appendChild(i.scrollbarYRail);
|
345 |
+
}
|
346 |
+
|
347 |
+
if (
|
348 |
+
!i.settings.suppressScrollX &&
|
349 |
+
i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth
|
350 |
+
) {
|
351 |
+
i.scrollbarXActive = true;
|
352 |
+
i.railXWidth = i.containerWidth - i.railXMarginWidth;
|
353 |
+
i.railXRatio = i.containerWidth / i.railXWidth;
|
354 |
+
i.scrollbarXWidth = getThumbSize(
|
355 |
+
i,
|
356 |
+
toInt(i.railXWidth * i.containerWidth / i.contentWidth)
|
357 |
+
);
|
358 |
+
i.scrollbarXLeft = toInt(
|
359 |
+
(i.negativeScrollAdjustment + element.scrollLeft) *
|
360 |
+
(i.railXWidth - i.scrollbarXWidth) /
|
361 |
+
(i.contentWidth - i.containerWidth)
|
362 |
+
);
|
363 |
+
} else {
|
364 |
+
i.scrollbarXActive = false;
|
365 |
+
}
|
366 |
+
|
367 |
+
if (
|
368 |
+
!i.settings.suppressScrollY &&
|
369 |
+
i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight
|
370 |
+
) {
|
371 |
+
i.scrollbarYActive = true;
|
372 |
+
i.railYHeight = i.containerHeight - i.railYMarginHeight;
|
373 |
+
i.railYRatio = i.containerHeight / i.railYHeight;
|
374 |
+
i.scrollbarYHeight = getThumbSize(
|
375 |
+
i,
|
376 |
+
toInt(i.railYHeight * i.containerHeight / i.contentHeight)
|
377 |
+
);
|
378 |
+
i.scrollbarYTop = toInt(
|
379 |
+
roundedScrollTop *
|
380 |
+
(i.railYHeight - i.scrollbarYHeight) /
|
381 |
+
(i.contentHeight - i.containerHeight)
|
382 |
+
);
|
383 |
+
} else {
|
384 |
+
i.scrollbarYActive = false;
|
385 |
+
}
|
386 |
+
|
387 |
+
if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {
|
388 |
+
i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;
|
389 |
+
}
|
390 |
+
if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {
|
391 |
+
i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;
|
392 |
+
}
|
393 |
+
|
394 |
+
updateCss(element, i);
|
395 |
+
|
396 |
+
if (i.scrollbarXActive) {
|
397 |
+
element.classList.add(cls.state.active('x'));
|
398 |
+
} else {
|
399 |
+
element.classList.remove(cls.state.active('x'));
|
400 |
+
i.scrollbarXWidth = 0;
|
401 |
+
i.scrollbarXLeft = 0;
|
402 |
+
element.scrollLeft = 0;
|
403 |
+
}
|
404 |
+
if (i.scrollbarYActive) {
|
405 |
+
element.classList.add(cls.state.active('y'));
|
406 |
+
} else {
|
407 |
+
element.classList.remove(cls.state.active('y'));
|
408 |
+
i.scrollbarYHeight = 0;
|
409 |
+
i.scrollbarYTop = 0;
|
410 |
+
element.scrollTop = 0;
|
411 |
+
}
|
412 |
+
};
|
413 |
+
|
414 |
+
function getThumbSize(i, thumbSize) {
|
415 |
+
if (i.settings.minScrollbarLength) {
|
416 |
+
thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);
|
417 |
+
}
|
418 |
+
if (i.settings.maxScrollbarLength) {
|
419 |
+
thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);
|
420 |
+
}
|
421 |
+
return thumbSize;
|
422 |
+
}
|
423 |
+
|
424 |
+
function updateCss(element, i) {
|
425 |
+
var xRailOffset = { width: i.railXWidth };
|
426 |
+
var roundedScrollTop = Math.floor(element.scrollTop);
|
427 |
+
|
428 |
+
if (i.isRtl) {
|
429 |
+
xRailOffset.left =
|
430 |
+
i.negativeScrollAdjustment +
|
431 |
+
element.scrollLeft +
|
432 |
+
i.containerWidth -
|
433 |
+
i.contentWidth;
|
434 |
+
} else {
|
435 |
+
xRailOffset.left = element.scrollLeft;
|
436 |
+
}
|
437 |
+
if (i.isScrollbarXUsingBottom) {
|
438 |
+
xRailOffset.bottom = i.scrollbarXBottom - roundedScrollTop;
|
439 |
+
} else {
|
440 |
+
xRailOffset.top = i.scrollbarXTop + roundedScrollTop;
|
441 |
+
}
|
442 |
+
set(i.scrollbarXRail, xRailOffset);
|
443 |
+
|
444 |
+
var yRailOffset = { top: roundedScrollTop, height: i.railYHeight };
|
445 |
+
if (i.isScrollbarYUsingRight) {
|
446 |
+
if (i.isRtl) {
|
447 |
+
yRailOffset.right =
|
448 |
+
i.contentWidth -
|
449 |
+
(i.negativeScrollAdjustment + element.scrollLeft) -
|
450 |
+
i.scrollbarYRight -
|
451 |
+
i.scrollbarYOuterWidth;
|
452 |
+
} else {
|
453 |
+
yRailOffset.right = i.scrollbarYRight - element.scrollLeft;
|
454 |
+
}
|
455 |
+
} else {
|
456 |
+
if (i.isRtl) {
|
457 |
+
yRailOffset.left =
|
458 |
+
i.negativeScrollAdjustment +
|
459 |
+
element.scrollLeft +
|
460 |
+
i.containerWidth * 2 -
|
461 |
+
i.contentWidth -
|
462 |
+
i.scrollbarYLeft -
|
463 |
+
i.scrollbarYOuterWidth;
|
464 |
+
} else {
|
465 |
+
yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;
|
466 |
+
}
|
467 |
+
}
|
468 |
+
set(i.scrollbarYRail, yRailOffset);
|
469 |
+
|
470 |
+
set(i.scrollbarX, {
|
471 |
+
left: i.scrollbarXLeft,
|
472 |
+
width: i.scrollbarXWidth - i.railBorderXWidth,
|
473 |
+
});
|
474 |
+
set(i.scrollbarY, {
|
475 |
+
top: i.scrollbarYTop,
|
476 |
+
height: i.scrollbarYHeight - i.railBorderYWidth,
|
477 |
+
});
|
478 |
+
}
|
479 |
+
|
480 |
+
var clickRail = function(i) {
|
481 |
+
i.event.bind(i.scrollbarY, 'mousedown', function (e) { return e.stopPropagation(); });
|
482 |
+
i.event.bind(i.scrollbarYRail, 'mousedown', function (e) {
|
483 |
+
var positionTop =
|
484 |
+
e.pageY -
|
485 |
+
window.pageYOffset -
|
486 |
+
i.scrollbarYRail.getBoundingClientRect().top;
|
487 |
+
var direction = positionTop > i.scrollbarYTop ? 1 : -1;
|
488 |
+
|
489 |
+
i.element.scrollTop += direction * i.containerHeight;
|
490 |
+
updateGeometry(i);
|
491 |
+
|
492 |
+
e.stopPropagation();
|
493 |
+
});
|
494 |
+
|
495 |
+
i.event.bind(i.scrollbarX, 'mousedown', function (e) { return e.stopPropagation(); });
|
496 |
+
i.event.bind(i.scrollbarXRail, 'mousedown', function (e) {
|
497 |
+
var positionLeft =
|
498 |
+
e.pageX -
|
499 |
+
window.pageXOffset -
|
500 |
+
i.scrollbarXRail.getBoundingClientRect().left;
|
501 |
+
var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;
|
502 |
+
|
503 |
+
i.element.scrollLeft += direction * i.containerWidth;
|
504 |
+
updateGeometry(i);
|
505 |
+
|
506 |
+
e.stopPropagation();
|
507 |
+
});
|
508 |
+
};
|
509 |
+
|
510 |
+
var dragThumb = function(i) {
|
511 |
+
bindMouseScrollHandler(i, [
|
512 |
+
'containerWidth',
|
513 |
+
'contentWidth',
|
514 |
+
'pageX',
|
515 |
+
'railXWidth',
|
516 |
+
'scrollbarX',
|
517 |
+
'scrollbarXWidth',
|
518 |
+
'scrollLeft',
|
519 |
+
'x',
|
520 |
+
'scrollbarXRail' ]);
|
521 |
+
bindMouseScrollHandler(i, [
|
522 |
+
'containerHeight',
|
523 |
+
'contentHeight',
|
524 |
+
'pageY',
|
525 |
+
'railYHeight',
|
526 |
+
'scrollbarY',
|
527 |
+
'scrollbarYHeight',
|
528 |
+
'scrollTop',
|
529 |
+
'y',
|
530 |
+
'scrollbarYRail' ]);
|
531 |
+
};
|
532 |
+
|
533 |
+
function bindMouseScrollHandler(
|
534 |
+
i,
|
535 |
+
ref
|
536 |
+
) {
|
537 |
+
var containerHeight = ref[0];
|
538 |
+
var contentHeight = ref[1];
|
539 |
+
var pageY = ref[2];
|
540 |
+
var railYHeight = ref[3];
|
541 |
+
var scrollbarY = ref[4];
|
542 |
+
var scrollbarYHeight = ref[5];
|
543 |
+
var scrollTop = ref[6];
|
544 |
+
var y = ref[7];
|
545 |
+
var scrollbarYRail = ref[8];
|
546 |
+
|
547 |
+
var element = i.element;
|
548 |
+
|
549 |
+
var startingScrollTop = null;
|
550 |
+
var startingMousePageY = null;
|
551 |
+
var scrollBy = null;
|
552 |
+
|
553 |
+
function mouseMoveHandler(e) {
|
554 |
+
element[scrollTop] =
|
555 |
+
startingScrollTop + scrollBy * (e[pageY] - startingMousePageY);
|
556 |
+
addScrollingClass(i, y);
|
557 |
+
updateGeometry(i);
|
558 |
+
|
559 |
+
e.stopPropagation();
|
560 |
+
e.preventDefault();
|
561 |
+
}
|
562 |
+
|
563 |
+
function mouseUpHandler() {
|
564 |
+
removeScrollingClass(i, y);
|
565 |
+
i[scrollbarYRail].classList.remove(cls.state.clicking);
|
566 |
+
i.event.unbind(i.ownerDocument, 'mousemove', mouseMoveHandler);
|
567 |
+
}
|
568 |
+
|
569 |
+
i.event.bind(i[scrollbarY], 'mousedown', function (e) {
|
570 |
+
startingScrollTop = element[scrollTop];
|
571 |
+
startingMousePageY = e[pageY];
|
572 |
+
scrollBy =
|
573 |
+
(i[contentHeight] - i[containerHeight]) /
|
574 |
+
(i[railYHeight] - i[scrollbarYHeight]);
|
575 |
+
|
576 |
+
i.event.bind(i.ownerDocument, 'mousemove', mouseMoveHandler);
|
577 |
+
i.event.once(i.ownerDocument, 'mouseup', mouseUpHandler);
|
578 |
+
|
579 |
+
i[scrollbarYRail].classList.add(cls.state.clicking);
|
580 |
+
|
581 |
+
e.stopPropagation();
|
582 |
+
e.preventDefault();
|
583 |
+
});
|
584 |
+
}
|
585 |
+
|
586 |
+
var keyboard = function(i) {
|
587 |
+
var element = i.element;
|
588 |
+
|
589 |
+
var elementHovered = function () { return matches(element, ':hover'); };
|
590 |
+
var scrollbarFocused = function () { return matches(i.scrollbarX, ':focus') || matches(i.scrollbarY, ':focus'); };
|
591 |
+
|
592 |
+
function shouldPreventDefault(deltaX, deltaY) {
|
593 |
+
var scrollTop = Math.floor(element.scrollTop);
|
594 |
+
if (deltaX === 0) {
|
595 |
+
if (!i.scrollbarYActive) {
|
596 |
+
return false;
|
597 |
+
}
|
598 |
+
if (
|
599 |
+
(scrollTop === 0 && deltaY > 0) ||
|
600 |
+
(scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0)
|
601 |
+
) {
|
602 |
+
return !i.settings.wheelPropagation;
|
603 |
+
}
|
604 |
+
}
|
605 |
+
|
606 |
+
var scrollLeft = element.scrollLeft;
|
607 |
+
if (deltaY === 0) {
|
608 |
+
if (!i.scrollbarXActive) {
|
609 |
+
return false;
|
610 |
+
}
|
611 |
+
if (
|
612 |
+
(scrollLeft === 0 && deltaX < 0) ||
|
613 |
+
(scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0)
|
614 |
+
) {
|
615 |
+
return !i.settings.wheelPropagation;
|
616 |
+
}
|
617 |
+
}
|
618 |
+
return true;
|
619 |
+
}
|
620 |
+
|
621 |
+
i.event.bind(i.ownerDocument, 'keydown', function (e) {
|
622 |
+
if (
|
623 |
+
(e.isDefaultPrevented && e.isDefaultPrevented()) ||
|
624 |
+
e.defaultPrevented
|
625 |
+
) {
|
626 |
+
return;
|
627 |
+
}
|
628 |
+
|
629 |
+
if (!elementHovered() && !scrollbarFocused()) {
|
630 |
+
return;
|
631 |
+
}
|
632 |
+
|
633 |
+
var activeElement = document.activeElement
|
634 |
+
? document.activeElement
|
635 |
+
: i.ownerDocument.activeElement;
|
636 |
+
if (activeElement) {
|
637 |
+
if (activeElement.tagName === 'IFRAME') {
|
638 |
+
activeElement = activeElement.contentDocument.activeElement;
|
639 |
+
} else {
|
640 |
+
// go deeper if element is a webcomponent
|
641 |
+
while (activeElement.shadowRoot) {
|
642 |
+
activeElement = activeElement.shadowRoot.activeElement;
|
643 |
+
}
|
644 |
+
}
|
645 |
+
if (isEditable(activeElement)) {
|
646 |
+
return;
|
647 |
+
}
|
648 |
+
}
|
649 |
+
|
650 |
+
var deltaX = 0;
|
651 |
+
var deltaY = 0;
|
652 |
+
|
653 |
+
switch (e.which) {
|
654 |
+
case 37: // left
|
655 |
+
if (e.metaKey) {
|
656 |
+
deltaX = -i.contentWidth;
|
657 |
+
} else if (e.altKey) {
|
658 |
+
deltaX = -i.containerWidth;
|
659 |
+
} else {
|
660 |
+
deltaX = -30;
|
661 |
+
}
|
662 |
+
break;
|
663 |
+
case 38: // up
|
664 |
+
if (e.metaKey) {
|
665 |
+
deltaY = i.contentHeight;
|
666 |
+
} else if (e.altKey) {
|
667 |
+
deltaY = i.containerHeight;
|
668 |
+
} else {
|
669 |
+
deltaY = 30;
|
670 |
+
}
|
671 |
+
break;
|
672 |
+
case 39: // right
|
673 |
+
if (e.metaKey) {
|
674 |
+
deltaX = i.contentWidth;
|
675 |
+
} else if (e.altKey) {
|
676 |
+
deltaX = i.containerWidth;
|
677 |
+
} else {
|
678 |
+
deltaX = 30;
|
679 |
+
}
|
680 |
+
break;
|
681 |
+
case 40: // down
|
682 |
+
if (e.metaKey) {
|
683 |
+
deltaY = -i.contentHeight;
|
684 |
+
} else if (e.altKey) {
|
685 |
+
deltaY = -i.containerHeight;
|
686 |
+
} else {
|
687 |
+
deltaY = -30;
|
688 |
+
}
|
689 |
+
break;
|
690 |
+
case 32: // space bar
|
691 |
+
if (e.shiftKey) {
|
692 |
+
deltaY = i.containerHeight;
|
693 |
+
} else {
|
694 |
+
deltaY = -i.containerHeight;
|
695 |
+
}
|
696 |
+
break;
|
697 |
+
case 33: // page up
|
698 |
+
deltaY = i.containerHeight;
|
699 |
+
break;
|
700 |
+
case 34: // page down
|
701 |
+
deltaY = -i.containerHeight;
|
702 |
+
break;
|
703 |
+
case 36: // home
|
704 |
+
deltaY = i.contentHeight;
|
705 |
+
break;
|
706 |
+
case 35: // end
|
707 |
+
deltaY = -i.contentHeight;
|
708 |
+
break;
|
709 |
+
default:
|
710 |
+
return;
|
711 |
+
}
|
712 |
+
|
713 |
+
if (i.settings.suppressScrollX && deltaX !== 0) {
|
714 |
+
return;
|
715 |
+
}
|
716 |
+
if (i.settings.suppressScrollY && deltaY !== 0) {
|
717 |
+
return;
|
718 |
+
}
|
719 |
+
|
720 |
+
element.scrollTop -= deltaY;
|
721 |
+
element.scrollLeft += deltaX;
|
722 |
+
updateGeometry(i);
|
723 |
+
|
724 |
+
if (shouldPreventDefault(deltaX, deltaY)) {
|
725 |
+
e.preventDefault();
|
726 |
+
}
|
727 |
+
});
|
728 |
+
};
|
729 |
+
|
730 |
+
var wheel = function(i) {
|
731 |
+
var element = i.element;
|
732 |
+
|
733 |
+
function shouldPreventDefault(deltaX, deltaY) {
|
734 |
+
var roundedScrollTop = Math.floor(element.scrollTop);
|
735 |
+
var isTop = element.scrollTop === 0;
|
736 |
+
var isBottom =
|
737 |
+
roundedScrollTop + element.offsetHeight === element.scrollHeight;
|
738 |
+
var isLeft = element.scrollLeft === 0;
|
739 |
+
var isRight =
|
740 |
+
element.scrollLeft + element.offsetWidth === element.scrollWidth;
|
741 |
+
|
742 |
+
var hitsBound;
|
743 |
+
|
744 |
+
// pick axis with primary direction
|
745 |
+
if (Math.abs(deltaY) > Math.abs(deltaX)) {
|
746 |
+
hitsBound = isTop || isBottom;
|
747 |
+
} else {
|
748 |
+
hitsBound = isLeft || isRight;
|
749 |
+
}
|
750 |
+
|
751 |
+
return hitsBound ? !i.settings.wheelPropagation : true;
|
752 |
+
}
|
753 |
+
|
754 |
+
function getDeltaFromEvent(e) {
|
755 |
+
var deltaX = e.deltaX;
|
756 |
+
var deltaY = -1 * e.deltaY;
|
757 |
+
|
758 |
+
if (typeof deltaX === 'undefined' || typeof deltaY === 'undefined') {
|
759 |
+
// OS X Safari
|
760 |
+
deltaX = -1 * e.wheelDeltaX / 6;
|
761 |
+
deltaY = e.wheelDeltaY / 6;
|
762 |
+
}
|
763 |
+
|
764 |
+
if (e.deltaMode && e.deltaMode === 1) {
|
765 |
+
// Firefox in deltaMode 1: Line scrolling
|
766 |
+
deltaX *= 10;
|
767 |
+
deltaY *= 10;
|
768 |
+
}
|
769 |
+
|
770 |
+
if (deltaX !== deltaX && deltaY !== deltaY /* NaN checks */) {
|
771 |
+
// IE in some mouse drivers
|
772 |
+
deltaX = 0;
|
773 |
+
deltaY = e.wheelDelta;
|
774 |
+
}
|
775 |
+
|
776 |
+
if (e.shiftKey) {
|
777 |
+
// reverse axis with shift key
|
778 |
+
return [-deltaY, -deltaX];
|
779 |
+
}
|
780 |
+
return [deltaX, deltaY];
|
781 |
+
}
|
782 |
+
|
783 |
+
function shouldBeConsumedByChild(target, deltaX, deltaY) {
|
784 |
+
// FIXME: this is a workaround for <select> issue in FF and IE #571
|
785 |
+
if (!env.isWebKit && element.querySelector('select:focus')) {
|
786 |
+
return true;
|
787 |
+
}
|
788 |
+
|
789 |
+
if (!element.contains(target)) {
|
790 |
+
return false;
|
791 |
+
}
|
792 |
+
|
793 |
+
var cursor = target;
|
794 |
+
|
795 |
+
while (cursor && cursor !== element) {
|
796 |
+
if (cursor.classList.contains(cls.element.consuming)) {
|
797 |
+
return true;
|
798 |
+
}
|
799 |
+
|
800 |
+
var style = get(cursor);
|
801 |
+
var overflow = [style.overflow, style.overflowX, style.overflowY].join(
|
802 |
+
''
|
803 |
+
);
|
804 |
+
|
805 |
+
// if scrollable
|
806 |
+
if (overflow.match(/(scroll|auto)/)) {
|
807 |
+
var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
|
808 |
+
if (maxScrollTop > 0) {
|
809 |
+
if (
|
810 |
+
!(cursor.scrollTop === 0 && deltaY > 0) &&
|
811 |
+
!(cursor.scrollTop === maxScrollTop && deltaY < 0)
|
812 |
+
) {
|
813 |
+
return true;
|
814 |
+
}
|
815 |
+
}
|
816 |
+
var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;
|
817 |
+
if (maxScrollLeft > 0) {
|
818 |
+
if (
|
819 |
+
!(cursor.scrollLeft === 0 && deltaX < 0) &&
|
820 |
+
!(cursor.scrollLeft === maxScrollLeft && deltaX > 0)
|
821 |
+
) {
|
822 |
+
return true;
|
823 |
+
}
|
824 |
+
}
|
825 |
+
}
|
826 |
+
|
827 |
+
cursor = cursor.parentNode;
|
828 |
+
}
|
829 |
+
|
830 |
+
return false;
|
831 |
+
}
|
832 |
+
|
833 |
+
function mousewheelHandler(e) {
|
834 |
+
var ref = getDeltaFromEvent(e);
|
835 |
+
var deltaX = ref[0];
|
836 |
+
var deltaY = ref[1];
|
837 |
+
|
838 |
+
if (shouldBeConsumedByChild(e.target, deltaX, deltaY)) {
|
839 |
+
return;
|
840 |
+
}
|
841 |
+
|
842 |
+
var shouldPrevent = false;
|
843 |
+
if (!i.settings.useBothWheelAxes) {
|
844 |
+
// deltaX will only be used for horizontal scrolling and deltaY will
|
845 |
+
// only be used for vertical scrolling - this is the default
|
846 |
+
element.scrollTop -= deltaY * i.settings.wheelSpeed;
|
847 |
+
element.scrollLeft += deltaX * i.settings.wheelSpeed;
|
848 |
+
} else if (i.scrollbarYActive && !i.scrollbarXActive) {
|
849 |
+
// only vertical scrollbar is active and useBothWheelAxes option is
|
850 |
+
// active, so let's scroll vertical bar using both mouse wheel axes
|
851 |
+
if (deltaY) {
|
852 |
+
element.scrollTop -= deltaY * i.settings.wheelSpeed;
|
853 |
+
} else {
|
854 |
+
element.scrollTop += deltaX * i.settings.wheelSpeed;
|
855 |
+
}
|
856 |
+
shouldPrevent = true;
|
857 |
+
} else if (i.scrollbarXActive && !i.scrollbarYActive) {
|
858 |
+
// useBothWheelAxes and only horizontal bar is active, so use both
|
859 |
+
// wheel axes for horizontal bar
|
860 |
+
if (deltaX) {
|
861 |
+
element.scrollLeft += deltaX * i.settings.wheelSpeed;
|
862 |
+
} else {
|
863 |
+
element.scrollLeft -= deltaY * i.settings.wheelSpeed;
|
864 |
+
}
|
865 |
+
shouldPrevent = true;
|
866 |
+
}
|
867 |
+
|
868 |
+
updateGeometry(i);
|
869 |
+
|
870 |
+
shouldPrevent = shouldPrevent || shouldPreventDefault(deltaX, deltaY);
|
871 |
+
if (shouldPrevent && !e.ctrlKey) {
|
872 |
+
e.stopPropagation();
|
873 |
+
e.preventDefault();
|
874 |
+
}
|
875 |
+
}
|
876 |
+
|
877 |
+
if (typeof window.onwheel !== 'undefined') {
|
878 |
+
i.event.bind(element, 'wheel', mousewheelHandler);
|
879 |
+
} else if (typeof window.onmousewheel !== 'undefined') {
|
880 |
+
i.event.bind(element, 'mousewheel', mousewheelHandler);
|
881 |
+
}
|
882 |
+
};
|
883 |
+
|
884 |
+
var touch = function(i) {
|
885 |
+
if (!env.supportsTouch && !env.supportsIePointer) {
|
886 |
+
return;
|
887 |
+
}
|
888 |
+
|
889 |
+
var element = i.element;
|
890 |
+
|
891 |
+
function shouldPrevent(deltaX, deltaY) {
|
892 |
+
var scrollTop = Math.floor(element.scrollTop);
|
893 |
+
var scrollLeft = element.scrollLeft;
|
894 |
+
var magnitudeX = Math.abs(deltaX);
|
895 |
+
var magnitudeY = Math.abs(deltaY);
|
896 |
+
|
897 |
+
if (magnitudeY > magnitudeX) {
|
898 |
+
// user is perhaps trying to swipe up/down the page
|
899 |
+
|
900 |
+
if (
|
901 |
+
(deltaY < 0 && scrollTop === i.contentHeight - i.containerHeight) ||
|
902 |
+
(deltaY > 0 && scrollTop === 0)
|
903 |
+
) {
|
904 |
+
// set prevent for mobile Chrome refresh
|
905 |
+
return window.scrollY === 0 && deltaY > 0 && env.isChrome;
|
906 |
+
}
|
907 |
+
} else if (magnitudeX > magnitudeY) {
|
908 |
+
// user is perhaps trying to swipe left/right across the page
|
909 |
+
|
910 |
+
if (
|
911 |
+
(deltaX < 0 && scrollLeft === i.contentWidth - i.containerWidth) ||
|
912 |
+
(deltaX > 0 && scrollLeft === 0)
|
913 |
+
) {
|
914 |
+
return true;
|
915 |
+
}
|
916 |
+
}
|
917 |
+
|
918 |
+
return true;
|
919 |
+
}
|
920 |
+
|
921 |
+
function applyTouchMove(differenceX, differenceY) {
|
922 |
+
element.scrollTop -= differenceY;
|
923 |
+
element.scrollLeft -= differenceX;
|
924 |
+
|
925 |
+
updateGeometry(i);
|
926 |
+
}
|
927 |
+
|
928 |
+
var startOffset = {};
|
929 |
+
var startTime = 0;
|
930 |
+
var speed = {};
|
931 |
+
var easingLoop = null;
|
932 |
+
|
933 |
+
function getTouch(e) {
|
934 |
+
if (e.targetTouches) {
|
935 |
+
return e.targetTouches[0];
|
936 |
+
} else {
|
937 |
+
// Maybe IE pointer
|
938 |
+
return e;
|
939 |
+
}
|
940 |
+
}
|
941 |
+
|
942 |
+
function shouldHandle(e) {
|
943 |
+
if (e.pointerType && e.pointerType === 'pen' && e.buttons === 0) {
|
944 |
+
return false;
|
945 |
+
}
|
946 |
+
if (e.targetTouches && e.targetTouches.length === 1) {
|
947 |
+
return true;
|
948 |
+
}
|
949 |
+
if (
|
950 |
+
e.pointerType &&
|
951 |
+
e.pointerType !== 'mouse' &&
|
952 |
+
e.pointerType !== e.MSPOINTER_TYPE_MOUSE
|
953 |
+
) {
|
954 |
+
return true;
|
955 |
+
}
|
956 |
+
return false;
|
957 |
+
}
|
958 |
+
|
959 |
+
function touchStart(e) {
|
960 |
+
if (!shouldHandle(e)) {
|
961 |
+
return;
|
962 |
+
}
|
963 |
+
|
964 |
+
var touch = getTouch(e);
|
965 |
+
|
966 |
+
startOffset.pageX = touch.pageX;
|
967 |
+
startOffset.pageY = touch.pageY;
|
968 |
+
|
969 |
+
startTime = new Date().getTime();
|
970 |
+
|
971 |
+
if (easingLoop !== null) {
|
972 |
+
clearInterval(easingLoop);
|
973 |
+
}
|
974 |
+
}
|
975 |
+
|
976 |
+
function shouldBeConsumedByChild(target, deltaX, deltaY) {
|
977 |
+
if (!element.contains(target)) {
|
978 |
+
return false;
|
979 |
+
}
|
980 |
+
|
981 |
+
var cursor = target;
|
982 |
+
|
983 |
+
while (cursor && cursor !== element) {
|
984 |
+
if (cursor.classList.contains(cls.element.consuming)) {
|
985 |
+
return true;
|
986 |
+
}
|
987 |
+
|
988 |
+
var style = get(cursor);
|
989 |
+
var overflow = [style.overflow, style.overflowX, style.overflowY].join(
|
990 |
+
''
|
991 |
+
);
|
992 |
+
|
993 |
+
// if scrollable
|
994 |
+
if (overflow.match(/(scroll|auto)/)) {
|
995 |
+
var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
|
996 |
+
if (maxScrollTop > 0) {
|
997 |
+
if (
|
998 |
+
!(cursor.scrollTop === 0 && deltaY > 0) &&
|
999 |
+
!(cursor.scrollTop === maxScrollTop && deltaY < 0)
|
1000 |
+
) {
|
1001 |
+
return true;
|
1002 |
+
}
|
1003 |
+
}
|
1004 |
+
var maxScrollLeft = cursor.scrollLeft - cursor.clientWidth;
|
1005 |
+
if (maxScrollLeft > 0) {
|
1006 |
+
if (
|
1007 |
+
!(cursor.scrollLeft === 0 && deltaX < 0) &&
|
1008 |
+
!(cursor.scrollLeft === maxScrollLeft && deltaX > 0)
|
1009 |
+
) {
|
1010 |
+
return true;
|
1011 |
+
}
|
1012 |
+
}
|
1013 |
+
}
|
1014 |
+
|
1015 |
+
cursor = cursor.parentNode;
|
1016 |
+
}
|
1017 |
+
|
1018 |
+
return false;
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
function touchMove(e) {
|
1022 |
+
if (shouldHandle(e)) {
|
1023 |
+
var touch = getTouch(e);
|
1024 |
+
|
1025 |
+
var currentOffset = { pageX: touch.pageX, pageY: touch.pageY };
|
1026 |
+
|
1027 |
+
var differenceX = currentOffset.pageX - startOffset.pageX;
|
1028 |
+
var differenceY = currentOffset.pageY - startOffset.pageY;
|
1029 |
+
|
1030 |
+
if (shouldBeConsumedByChild(e.target, differenceX, differenceY)) {
|
1031 |
+
return;
|
1032 |
+
}
|
1033 |
+
|
1034 |
+
applyTouchMove(differenceX, differenceY);
|
1035 |
+
startOffset = currentOffset;
|
1036 |
+
|
1037 |
+
var currentTime = new Date().getTime();
|
1038 |
+
|
1039 |
+
var timeGap = currentTime - startTime;
|
1040 |
+
if (timeGap > 0) {
|
1041 |
+
speed.x = differenceX / timeGap;
|
1042 |
+
speed.y = differenceY / timeGap;
|
1043 |
+
startTime = currentTime;
|
1044 |
+
}
|
1045 |
+
|
1046 |
+
if (shouldPrevent(differenceX, differenceY)) {
|
1047 |
+
e.preventDefault();
|
1048 |
+
}
|
1049 |
+
}
|
1050 |
+
}
|
1051 |
+
function touchEnd() {
|
1052 |
+
if (i.settings.swipeEasing) {
|
1053 |
+
clearInterval(easingLoop);
|
1054 |
+
easingLoop = setInterval(function() {
|
1055 |
+
if (i.isInitialized) {
|
1056 |
+
clearInterval(easingLoop);
|
1057 |
+
return;
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
if (!speed.x && !speed.y) {
|
1061 |
+
clearInterval(easingLoop);
|
1062 |
+
return;
|
1063 |
+
}
|
1064 |
+
|
1065 |
+
if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {
|
1066 |
+
clearInterval(easingLoop);
|
1067 |
+
return;
|
1068 |
+
}
|
1069 |
+
|
1070 |
+
applyTouchMove(speed.x * 30, speed.y * 30);
|
1071 |
+
|
1072 |
+
speed.x *= 0.8;
|
1073 |
+
speed.y *= 0.8;
|
1074 |
+
}, 10);
|
1075 |
+
}
|
1076 |
+
}
|
1077 |
+
|
1078 |
+
if (env.supportsTouch) {
|
1079 |
+
i.event.bind(element, 'touchstart', touchStart);
|
1080 |
+
i.event.bind(element, 'touchmove', touchMove);
|
1081 |
+
i.event.bind(element, 'touchend', touchEnd);
|
1082 |
+
} else if (env.supportsIePointer) {
|
1083 |
+
if (window.PointerEvent) {
|
1084 |
+
i.event.bind(element, 'pointerdown', touchStart);
|
1085 |
+
i.event.bind(element, 'pointermove', touchMove);
|
1086 |
+
i.event.bind(element, 'pointerup', touchEnd);
|
1087 |
+
} else if (window.MSPointerEvent) {
|
1088 |
+
i.event.bind(element, 'MSPointerDown', touchStart);
|
1089 |
+
i.event.bind(element, 'MSPointerMove', touchMove);
|
1090 |
+
i.event.bind(element, 'MSPointerUp', touchEnd);
|
1091 |
+
}
|
1092 |
+
}
|
1093 |
+
};
|
1094 |
+
|
1095 |
+
var defaultSettings = function () { return ({
|
1096 |
+
handlers: ['click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch'],
|
1097 |
+
maxScrollbarLength: null,
|
1098 |
+
minScrollbarLength: null,
|
1099 |
+
scrollingThreshold: 1000,
|
1100 |
+
scrollXMarginOffset: 0,
|
1101 |
+
scrollYMarginOffset: 0,
|
1102 |
+
suppressScrollX: false,
|
1103 |
+
suppressScrollY: false,
|
1104 |
+
swipeEasing: true,
|
1105 |
+
useBothWheelAxes: false,
|
1106 |
+
wheelPropagation: true,
|
1107 |
+
wheelSpeed: 1,
|
1108 |
+
}); };
|
1109 |
+
|
1110 |
+
var handlers = {
|
1111 |
+
'click-rail': clickRail,
|
1112 |
+
'drag-thumb': dragThumb,
|
1113 |
+
keyboard: keyboard,
|
1114 |
+
wheel: wheel,
|
1115 |
+
touch: touch,
|
1116 |
+
};
|
1117 |
+
|
1118 |
+
var PerfectScrollbar = function PerfectScrollbar(element, userSettings) {
|
1119 |
+
var this$1 = this;
|
1120 |
+
if ( userSettings === void 0 ) userSettings = {};
|
1121 |
+
|
1122 |
+
if (typeof element === 'string') {
|
1123 |
+
element = document.querySelector(element);
|
1124 |
+
}
|
1125 |
+
|
1126 |
+
if (!element || !element.nodeName) {
|
1127 |
+
throw new Error('no element is specified to initialize PerfectScrollbar');
|
1128 |
+
}
|
1129 |
+
|
1130 |
+
this.element = element;
|
1131 |
+
|
1132 |
+
element.classList.add(cls.main);
|
1133 |
+
|
1134 |
+
this.settings = defaultSettings();
|
1135 |
+
for (var key in userSettings) {
|
1136 |
+
this$1.settings[key] = userSettings[key];
|
1137 |
+
}
|
1138 |
+
|
1139 |
+
this.containerWidth = null;
|
1140 |
+
this.containerHeight = null;
|
1141 |
+
this.contentWidth = null;
|
1142 |
+
this.contentHeight = null;
|
1143 |
+
|
1144 |
+
var focus = function () { return element.classList.add(cls.state.focus); };
|
1145 |
+
var blur = function () { return element.classList.remove(cls.state.focus); };
|
1146 |
+
|
1147 |
+
this.isRtl = get(element).direction === 'rtl';
|
1148 |
+
this.isNegativeScroll = (function () {
|
1149 |
+
var originalScrollLeft = element.scrollLeft;
|
1150 |
+
var result = null;
|
1151 |
+
element.scrollLeft = -1;
|
1152 |
+
result = element.scrollLeft < 0;
|
1153 |
+
element.scrollLeft = originalScrollLeft;
|
1154 |
+
return result;
|
1155 |
+
})();
|
1156 |
+
this.negativeScrollAdjustment = this.isNegativeScroll
|
1157 |
+
? element.scrollWidth - element.clientWidth
|
1158 |
+
: 0;
|
1159 |
+
this.event = new EventManager();
|
1160 |
+
this.ownerDocument = element.ownerDocument || document;
|
1161 |
+
|
1162 |
+
this.scrollbarXRail = div(cls.element.rail('x'));
|
1163 |
+
element.appendChild(this.scrollbarXRail);
|
1164 |
+
this.scrollbarX = div(cls.element.thumb('x'));
|
1165 |
+
this.scrollbarXRail.appendChild(this.scrollbarX);
|
1166 |
+
this.scrollbarX.setAttribute('tabindex', 0);
|
1167 |
+
this.event.bind(this.scrollbarX, 'focus', focus);
|
1168 |
+
this.event.bind(this.scrollbarX, 'blur', blur);
|
1169 |
+
this.scrollbarXActive = null;
|
1170 |
+
this.scrollbarXWidth = null;
|
1171 |
+
this.scrollbarXLeft = null;
|
1172 |
+
var railXStyle = get(this.scrollbarXRail);
|
1173 |
+
this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);
|
1174 |
+
if (isNaN(this.scrollbarXBottom)) {
|
1175 |
+
this.isScrollbarXUsingBottom = false;
|
1176 |
+
this.scrollbarXTop = toInt(railXStyle.top);
|
1177 |
+
} else {
|
1178 |
+
this.isScrollbarXUsingBottom = true;
|
1179 |
+
}
|
1180 |
+
this.railBorderXWidth =
|
1181 |
+
toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth);
|
1182 |
+
// Set rail to display:block to calculate margins
|
1183 |
+
set(this.scrollbarXRail, { display: 'block' });
|
1184 |
+
this.railXMarginWidth =
|
1185 |
+
toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);
|
1186 |
+
set(this.scrollbarXRail, { display: '' });
|
1187 |
+
this.railXWidth = null;
|
1188 |
+
this.railXRatio = null;
|
1189 |
+
|
1190 |
+
this.scrollbarYRail = div(cls.element.rail('y'));
|
1191 |
+
element.appendChild(this.scrollbarYRail);
|
1192 |
+
this.scrollbarY = div(cls.element.thumb('y'));
|
1193 |
+
this.scrollbarYRail.appendChild(this.scrollbarY);
|
1194 |
+
this.scrollbarY.setAttribute('tabindex', 0);
|
1195 |
+
this.event.bind(this.scrollbarY, 'focus', focus);
|
1196 |
+
this.event.bind(this.scrollbarY, 'blur', blur);
|
1197 |
+
this.scrollbarYActive = null;
|
1198 |
+
this.scrollbarYHeight = null;
|
1199 |
+
this.scrollbarYTop = null;
|
1200 |
+
var railYStyle = get(this.scrollbarYRail);
|
1201 |
+
this.scrollbarYRight = parseInt(railYStyle.right, 10);
|
1202 |
+
if (isNaN(this.scrollbarYRight)) {
|
1203 |
+
this.isScrollbarYUsingRight = false;
|
1204 |
+
this.scrollbarYLeft = toInt(railYStyle.left);
|
1205 |
+
} else {
|
1206 |
+
this.isScrollbarYUsingRight = true;
|
1207 |
+
}
|
1208 |
+
this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;
|
1209 |
+
this.railBorderYWidth =
|
1210 |
+
toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);
|
1211 |
+
set(this.scrollbarYRail, { display: 'block' });
|
1212 |
+
this.railYMarginHeight =
|
1213 |
+
toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);
|
1214 |
+
set(this.scrollbarYRail, { display: '' });
|
1215 |
+
this.railYHeight = null;
|
1216 |
+
this.railYRatio = null;
|
1217 |
+
|
1218 |
+
this.reach = {
|
1219 |
+
x:
|
1220 |
+
element.scrollLeft <= 0
|
1221 |
+
? 'start'
|
1222 |
+
: element.scrollLeft >= this.contentWidth - this.containerWidth
|
1223 |
+
? 'end'
|
1224 |
+
: null,
|
1225 |
+
y:
|
1226 |
+
element.scrollTop <= 0
|
1227 |
+
? 'start'
|
1228 |
+
: element.scrollTop >= this.contentHeight - this.containerHeight
|
1229 |
+
? 'end'
|
1230 |
+
: null,
|
1231 |
+
};
|
1232 |
+
|
1233 |
+
this.isAlive = true;
|
1234 |
+
|
1235 |
+
this.settings.handlers.forEach(function (handlerName) { return handlers[handlerName](this$1); });
|
1236 |
+
|
1237 |
+
this.lastScrollTop = Math.floor(element.scrollTop); // for onScroll only
|
1238 |
+
this.lastScrollLeft = element.scrollLeft; // for onScroll only
|
1239 |
+
this.event.bind(this.element, 'scroll', function (e) { return this$1.onScroll(e); });
|
1240 |
+
updateGeometry(this);
|
1241 |
+
};
|
1242 |
+
|
1243 |
+
PerfectScrollbar.prototype.update = function update () {
|
1244 |
+
if (!this.isAlive) {
|
1245 |
+
return;
|
1246 |
+
}
|
1247 |
+
|
1248 |
+
// Recalcuate negative scrollLeft adjustment
|
1249 |
+
this.negativeScrollAdjustment = this.isNegativeScroll
|
1250 |
+
? this.element.scrollWidth - this.element.clientWidth
|
1251 |
+
: 0;
|
1252 |
+
|
1253 |
+
// Recalculate rail margins
|
1254 |
+
set(this.scrollbarXRail, { display: 'block' });
|
1255 |
+
set(this.scrollbarYRail, { display: 'block' });
|
1256 |
+
this.railXMarginWidth =
|
1257 |
+
toInt(get(this.scrollbarXRail).marginLeft) +
|
1258 |
+
toInt(get(this.scrollbarXRail).marginRight);
|
1259 |
+
this.railYMarginHeight =
|
1260 |
+
toInt(get(this.scrollbarYRail).marginTop) +
|
1261 |
+
toInt(get(this.scrollbarYRail).marginBottom);
|
1262 |
+
|
1263 |
+
// Hide scrollbars not to affect scrollWidth and scrollHeight
|
1264 |
+
set(this.scrollbarXRail, { display: 'none' });
|
1265 |
+
set(this.scrollbarYRail, { display: 'none' });
|
1266 |
+
|
1267 |
+
updateGeometry(this);
|
1268 |
+
|
1269 |
+
processScrollDiff(this, 'top', 0, false, true);
|
1270 |
+
processScrollDiff(this, 'left', 0, false, true);
|
1271 |
+
|
1272 |
+
set(this.scrollbarXRail, { display: '' });
|
1273 |
+
set(this.scrollbarYRail, { display: '' });
|
1274 |
+
};
|
1275 |
+
|
1276 |
+
PerfectScrollbar.prototype.onScroll = function onScroll (e) {
|
1277 |
+
if (!this.isAlive) {
|
1278 |
+
return;
|
1279 |
+
}
|
1280 |
+
|
1281 |
+
updateGeometry(this);
|
1282 |
+
processScrollDiff(this, 'top', this.element.scrollTop - this.lastScrollTop);
|
1283 |
+
processScrollDiff(
|
1284 |
+
this,
|
1285 |
+
'left',
|
1286 |
+
this.element.scrollLeft - this.lastScrollLeft
|
1287 |
+
);
|
1288 |
+
|
1289 |
+
this.lastScrollTop = Math.floor(this.element.scrollTop);
|
1290 |
+
this.lastScrollLeft = this.element.scrollLeft;
|
1291 |
+
};
|
1292 |
+
|
1293 |
+
PerfectScrollbar.prototype.destroy = function destroy () {
|
1294 |
+
if (!this.isAlive) {
|
1295 |
+
return;
|
1296 |
+
}
|
1297 |
+
|
1298 |
+
this.event.unbindAll();
|
1299 |
+
remove(this.scrollbarX);
|
1300 |
+
remove(this.scrollbarY);
|
1301 |
+
remove(this.scrollbarXRail);
|
1302 |
+
remove(this.scrollbarYRail);
|
1303 |
+
this.removePsClasses();
|
1304 |
+
|
1305 |
+
// unset elements
|
1306 |
+
this.element = null;
|
1307 |
+
this.scrollbarX = null;
|
1308 |
+
this.scrollbarY = null;
|
1309 |
+
this.scrollbarXRail = null;
|
1310 |
+
this.scrollbarYRail = null;
|
1311 |
+
|
1312 |
+
this.isAlive = false;
|
1313 |
+
};
|
1314 |
+
|
1315 |
+
PerfectScrollbar.prototype.removePsClasses = function removePsClasses () {
|
1316 |
+
this.element.className = this.element.className
|
1317 |
+
.split(' ')
|
1318 |
+
.filter(function (name) { return !name.match(/^ps([-_].+|)$/); })
|
1319 |
+
.join(' ');
|
1320 |
+
};
|
1321 |
+
|
1322 |
+
return PerfectScrollbar;
|
1323 |
+
|
1324 |
+
})));
|
assets/js/lib/perfect-scrollbar/perfect-scrollbar.min.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* perfect-scrollbar v1.4.0
|
3 |
+
* (c) 2018 Hyunje Jun
|
4 |
+
* @license MIT
|
5 |
+
*/
|
6 |
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.PerfectScrollbar=e()}(this,function(){"use strict";function f(t){return getComputedStyle(t)}function a(t,e){for(var i in e){var l=e[i];"number"==typeof l&&(l+="px"),t.style[i]=l}return t}function c(t){var e=document.createElement("div");return e.className=t,e}var i="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function s(t,e){if(!i)throw new Error("No element matching method supported");return i.call(t,e)}function o(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function h(t,e){return Array.prototype.filter.call(t.children,function(t){return s(t,e)})}var m={main:"ps",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},l={x:null,y:null};function v(t,e){var i=t.element.classList,t=m.state.scrolling(e);i.contains(t)?clearTimeout(l[e]):i.add(t)}function Y(t,e){l[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(m.state.scrolling(e))},t.settings.scrollingThreshold)}function r(t){this.element=t,this.handlers={}}var t={isEmpty:{configurable:!0}};r.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},r.prototype.unbind=function(e,i){var l=this;this.handlers[e]=this.handlers[e].filter(function(t){return!(!i||t===i)||(l.element.removeEventListener(e,t,!1),!1)})},r.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},t.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(r.prototype,t);function d(){this.eventElements=[]}function u(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}d.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new r(e),this.eventElements.push(t)),t},d.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},d.prototype.unbind=function(t,e,i){t=this.eventElement(t);t.unbind(e,i),t.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(t),1)},d.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},d.prototype.once=function(t,e,i){var l=this.eventElement(t),r=function(t){l.unbind(e,r),i(t)};l.bind(e,r)};function e(t,e,i,l,r){var n,o,s,a,c,h;if(void 0===l&&(l=!0),void 0===r&&(r=!1),"top"===e)h=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");h=["contentWidth","containerWidth","scrollLeft","x","left","right"]}n=t,o=i,a=l,c=r,e=(s=h)[0],t=s[1],i=s[2],l=s[3],r=s[4],h=s[5],void 0===a&&(a=!0),void 0===c&&(c=!1),s=n.element,n.reach[l]=null,s[i]<1&&(n.reach[l]="start"),s[i]>n[e]-n[t]-1&&(n.reach[l]="end"),o&&(s.dispatchEvent(u("ps-scroll-"+l)),o<0?s.dispatchEvent(u("ps-scroll-"+r)):0<o&&s.dispatchEvent(u("ps-scroll-"+h)),a&&function(t,e){v(t,e),Y(t,e)}(n,l)),n.reach[l]&&(o||c)&&s.dispatchEvent(u("ps-"+l+"-reach-"+n.reach[l]))}function p(t){return parseInt(t,10)||0}function X(t){var e,i,l,r=t.element,n=Math.floor(r.scrollTop);t.containerWidth=r.clientWidth,t.containerHeight=r.clientHeight,t.contentWidth=r.scrollWidth,t.contentHeight=r.scrollHeight,r.contains(t.scrollbarXRail)||(h(r,m.element.rail("x")).forEach(o),r.appendChild(t.scrollbarXRail)),r.contains(t.scrollbarYRail)||(h(r,m.element.rail("y")).forEach(o),r.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=g(t,p(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=p((t.negativeScrollAdjustment+r.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=g(t,p(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=p(n*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),e=r,l={width:(i=t).railXWidth},n=Math.floor(e.scrollTop),i.isRtl?l.left=i.negativeScrollAdjustment+e.scrollLeft+i.containerWidth-i.contentWidth:l.left=e.scrollLeft,i.isScrollbarXUsingBottom?l.bottom=i.scrollbarXBottom-n:l.top=i.scrollbarXTop+n,a(i.scrollbarXRail,l),n={top:n,height:i.railYHeight},i.isScrollbarYUsingRight?i.isRtl?n.right=i.contentWidth-(i.negativeScrollAdjustment+e.scrollLeft)-i.scrollbarYRight-i.scrollbarYOuterWidth:n.right=i.scrollbarYRight-e.scrollLeft:i.isRtl?n.left=i.negativeScrollAdjustment+e.scrollLeft+2*i.containerWidth-i.contentWidth-i.scrollbarYLeft-i.scrollbarYOuterWidth:n.left=i.scrollbarYLeft+e.scrollLeft,a(i.scrollbarYRail,n),a(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth}),a(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth}),t.scrollbarXActive?r.classList.add(m.state.active("x")):(r.classList.remove(m.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,r.scrollLeft=0),t.scrollbarYActive?r.classList.add(m.state.active("y")):(r.classList.remove(m.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,r.scrollTop=0)}var b={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function g(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function n(e,t){var i=t[0],l=t[1],r=t[2],n=t[3],o=t[4],s=t[5],a=t[6],c=t[7],h=t[8],d=e.element,u=null,f=null,p=null;function b(t){d[a]=u+p*(t[r]-f),v(e,c),X(e),t.stopPropagation(),t.preventDefault()}function g(){Y(e,c),e[h].classList.remove(m.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",b)}e.event.bind(e[o],"mousedown",function(t){u=d[a],f=t[r],p=(e[l]-e[i])/(e[n]-e[s]),e.event.bind(e.ownerDocument,"mousemove",b),e.event.once(e.ownerDocument,"mouseup",g),e[h].classList.add(m.state.clicking),t.stopPropagation(),t.preventDefault()})}var w={"click-rail":function(i){i.event.bind(i.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),i.event.bind(i.scrollbarYRail,"mousedown",function(t){var e=t.pageY-window.pageYOffset-i.scrollbarYRail.getBoundingClientRect().top>i.scrollbarYTop?1:-1;i.element.scrollTop+=e*i.containerHeight,X(i),t.stopPropagation()}),i.event.bind(i.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),i.event.bind(i.scrollbarXRail,"mousedown",function(t){var e=t.pageX-window.pageXOffset-i.scrollbarXRail.getBoundingClientRect().left>i.scrollbarXLeft?1:-1;i.element.scrollLeft+=e*i.containerWidth,X(i),t.stopPropagation()})},"drag-thumb":function(t){n(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),n(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(n){var o=n.element;n.event.bind(n.ownerDocument,"keydown",function(t){if(!(t.isDefaultPrevented&&t.isDefaultPrevented()||t.defaultPrevented)&&(s(o,":hover")||s(n.scrollbarX,":focus")||s(n.scrollbarY,":focus"))){var e,i=document.activeElement||n.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(s(e=i,"input,[contenteditable]")||s(e,"select,[contenteditable]")||s(e,"textarea,[contenteditable]")||s(e,"button,[contenteditable]"))return}var l=0,r=0;switch(t.which){case 37:l=t.metaKey?-n.contentWidth:t.altKey?-n.containerWidth:-30;break;case 38:r=t.metaKey?n.contentHeight:t.altKey?n.containerHeight:30;break;case 39:l=t.metaKey?n.contentWidth:t.altKey?n.containerWidth:30;break;case 40:r=t.metaKey?-n.contentHeight:t.altKey?-n.containerHeight:-30;break;case 32:r=t.shiftKey?n.containerHeight:-n.containerHeight;break;case 33:r=n.containerHeight;break;case 34:r=-n.containerHeight;break;case 36:r=n.contentHeight;break;case 35:r=-n.contentHeight;break;default:return}n.settings.suppressScrollX&&0!==l||n.settings.suppressScrollY&&0!==r||(o.scrollTop-=r,o.scrollLeft+=l,X(n),function(t,e){var i=Math.floor(o.scrollTop);if(0===t){if(!n.scrollbarYActive)return;if(0===i&&0<e||i>=n.contentHeight-n.containerHeight&&e<0)return!n.settings.wheelPropagation}if(i=o.scrollLeft,0===e){if(!n.scrollbarXActive)return;if(0===i&&t<0||i>=n.contentWidth-n.containerWidth&&0<t)return!n.settings.wheelPropagation}return 1}(l,r)&&t.preventDefault())}})},wheel:function(a){var c=a.element;function t(t){var e,i,l,r,n=(l=(i=t).deltaX,r=-1*i.deltaY,void 0!==l&&void 0!==r||(l=-1*i.wheelDeltaX/6,r=i.wheelDeltaY/6),i.deltaMode&&1===i.deltaMode&&(l*=10,r*=10),l!=l&&r!=r&&(l=0,r=i.wheelDelta),i.shiftKey?[-r,-l]:[l,r]),o=n[0],s=n[1];!function(t,e,i){if(!b.isWebKit&&c.querySelector("select:focus"))return 1;if(c.contains(t))for(var l=t;l&&l!==c;){if(l.classList.contains(m.element.consuming))return 1;var r=f(l);if([r.overflow,r.overflowX,r.overflowY].join("").match(/(scroll|auto)/)){r=l.scrollHeight-l.clientHeight;if(0<r&&!(0===l.scrollTop&&0<i||l.scrollTop===r&&i<0))return 1;r=l.scrollWidth-l.clientWidth;if(0<r&&!(0===l.scrollLeft&&e<0||l.scrollLeft===r&&0<e))return 1}l=l.parentNode}}(t.target,o,s)&&(e=!1,a.settings.useBothWheelAxes?a.scrollbarYActive&&!a.scrollbarXActive?(s?c.scrollTop-=s*a.settings.wheelSpeed:c.scrollTop+=o*a.settings.wheelSpeed,e=!0):a.scrollbarXActive&&!a.scrollbarYActive&&(o?c.scrollLeft+=o*a.settings.wheelSpeed:c.scrollLeft-=s*a.settings.wheelSpeed,e=!0):(c.scrollTop-=s*a.settings.wheelSpeed,c.scrollLeft+=o*a.settings.wheelSpeed),X(a),(e=e||(i=o,l=s,r=Math.floor(c.scrollTop),n=0===c.scrollTop,o=r+c.offsetHeight===c.scrollHeight,s=0===c.scrollLeft,r=c.scrollLeft+c.offsetWidth===c.scrollWidth,!(r=Math.abs(l)>Math.abs(i)?n||o:s||r)||!a.settings.wheelPropagation))&&!t.ctrlKey&&(t.stopPropagation(),t.preventDefault()))}void 0!==window.onwheel?a.event.bind(c,"wheel",t):void 0!==window.onmousewheel&&a.event.bind(c,"mousewheel",t)},touch:function(o){var s,n,a,c,e;function h(t,e){s.scrollTop-=e,s.scrollLeft-=t,X(o)}function d(t){return t.targetTouches?t.targetTouches[0]:t}function u(t){return(!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&&(t.targetTouches&&1===t.targetTouches.length||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function t(t){u(t)&&(t=d(t),n.pageX=t.pageX,n.pageY=t.pageY,a=(new Date).getTime(),null!==e&&clearInterval(e))}function i(t){var e,i,l,r;u(t)&&(e=(r={pageX:(l=d(t)).pageX,pageY:l.pageY}).pageX-n.pageX,i=r.pageY-n.pageY,function(t,e,i){if(s.contains(t))for(var l=t;l&&l!==s;){if(l.classList.contains(m.element.consuming))return 1;var r=f(l);if([r.overflow,r.overflowX,r.overflowY].join("").match(/(scroll|auto)/)){r=l.scrollHeight-l.clientHeight;if(0<r&&!(0===l.scrollTop&&0<i||l.scrollTop===r&&i<0))return 1;r=l.scrollLeft-l.clientWidth;if(0<r&&!(0===l.scrollLeft&&e<0||l.scrollLeft===r&&0<e))return 1}l=l.parentNode}}(t.target,e,i)||(h(e,i),n=r,0<(r=(l=(new Date).getTime())-a)&&(c.x=e/r,c.y=i/r,a=l),function(t,e){var i=Math.floor(s.scrollTop),l=s.scrollLeft,r=Math.abs(t),n=Math.abs(e);if(r<n){if(e<0&&i===o.contentHeight-o.containerHeight||0<e&&0===i)return 0===window.scrollY&&0<e&&b.isChrome}else if(n<r&&(t<0&&l===o.contentWidth-o.containerWidth||0<t&&0===l))return 1;return 1}(e,i)&&t.preventDefault()))}function l(){o.settings.swipeEasing&&(clearInterval(e),e=setInterval(function(){o.isInitialized||!c.x&&!c.y||Math.abs(c.x)<.01&&Math.abs(c.y)<.01?clearInterval(e):(h(30*c.x,30*c.y),c.x*=.8,c.y*=.8)},10))}(b.supportsTouch||b.supportsIePointer)&&(s=o.element,n={},a=0,c={},e=null,b.supportsTouch?(o.event.bind(s,"touchstart",t),o.event.bind(s,"touchmove",i),o.event.bind(s,"touchend",l)):b.supportsIePointer&&(window.PointerEvent?(o.event.bind(s,"pointerdown",t),o.event.bind(s,"pointermove",i),o.event.bind(s,"pointerup",l)):window.MSPointerEvent&&(o.event.bind(s,"MSPointerDown",t),o.event.bind(s,"MSPointerMove",i),o.event.bind(s,"MSPointerUp",l))))}},t=function(t,e){var i,l=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(i in(this.element=t).classList.add(m.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)l.settings[i]=e[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,n=function(){return t.classList.add(m.state.focus)},o=function(){return t.classList.remove(m.state.focus)};this.isRtl="rtl"===f(t).direction,this.isNegativeScroll=(r=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=r,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new d,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=c(m.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=c(m.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",n),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=f(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=p(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=p(s.borderLeftWidth)+p(s.borderRightWidth),a(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=p(s.marginLeft)+p(s.marginRight),a(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=c(m.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=c(m.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",n),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;n=f(this.scrollbarYRail);this.scrollbarYRight=parseInt(n.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=p(n.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?p((o=f(o=this.scrollbarY)).width)+p(o.paddingLeft)+p(o.paddingRight)+p(o.borderLeftWidth)+p(o.borderRightWidth):null,this.railBorderYWidth=p(n.borderTopWidth)+p(n.borderBottomWidth),a(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=p(n.marginTop)+p(n.marginBottom),a(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return w[t](l)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return l.onScroll(t)}),X(this)};return t.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,a(this.scrollbarXRail,{display:"block"}),a(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=p(f(this.scrollbarXRail).marginLeft)+p(f(this.scrollbarXRail).marginRight),this.railYMarginHeight=p(f(this.scrollbarYRail).marginTop)+p(f(this.scrollbarYRail).marginBottom),a(this.scrollbarXRail,{display:"none"}),a(this.scrollbarYRail,{display:"none"}),X(this),e(this,"top",0,!1,!0),e(this,"left",0,!1,!0),a(this.scrollbarXRail,{display:""}),a(this.scrollbarYRail,{display:""}))},t.prototype.onScroll=function(t){this.isAlive&&(X(this),e(this,"top",this.element.scrollTop-this.lastScrollTop),e(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},t.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),o(this.scrollbarX),o(this.scrollbarY),o(this.scrollbarXRail),o(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},t.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")},t});
|
assets/js/lib/perfectscrollbar/perfect-scrollbar.js
DELETED
@@ -1,340 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* perfect-scrollbar - v0.4.9
|
3 |
-
*
|
4 |
-
* http://noraesae.github.com/perfect-scrollbar/
|
5 |
-
* Copyright (c) 2014 Hyeonje Jun;
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
|
9 |
-
(function(e) {
|
10 |
-
"use strict";
|
11 |
-
"function" == typeof define && define.amd ? define(["jquery"], e) : "object" == typeof exports ? e(require("jquery")) : e(jQuery)
|
12 |
-
})(function(e) {
|
13 |
-
"use strict";
|
14 |
-
var t = {
|
15 |
-
wheelSpeed: 10,
|
16 |
-
wheelPropagation: !1,
|
17 |
-
minScrollbarLength: null,
|
18 |
-
useBothWheelAxes: !1,
|
19 |
-
useKeyboard: !0,
|
20 |
-
suppressScrollX: !1,
|
21 |
-
suppressScrollY: !1,
|
22 |
-
scrollXMarginOffset: 0,
|
23 |
-
scrollYMarginOffset: 0,
|
24 |
-
includePadding: !1
|
25 |
-
},
|
26 |
-
n = function() {
|
27 |
-
var e = 0;
|
28 |
-
return function() {
|
29 |
-
var t = e;
|
30 |
-
return e += 1, ".perfect-scrollbar-" + t
|
31 |
-
}
|
32 |
-
}();
|
33 |
-
e.fn.perfectScrollbar = function(o, r) {
|
34 |
-
return this.each(function() {
|
35 |
-
var l = e.extend(!0, {}, t),
|
36 |
-
a = e(this);
|
37 |
-
if ("object" == typeof o ? e.extend(!0, l, o) : r = o, "update" === r) return a.data("perfect-scrollbar-update") && a.data("perfect-scrollbar-update")(), a;
|
38 |
-
if ("destroy" === r) return a.data("perfect-scrollbar-destroy") && a.data("perfect-scrollbar-destroy")(), a;
|
39 |
-
if (a.data("perfect-scrollbar")) return a.data("perfect-scrollbar");
|
40 |
-
a.addClass("ps-container");
|
41 |
-
var s, i, c, u, d, p, f, h, v, g, b = e("<div class='ps-scrollbar-x-rail'></div>").appendTo(a),
|
42 |
-
m = e("<div class='ps-scrollbar-y-rail'></div>").appendTo(a),
|
43 |
-
w = e("<div class='ps-scrollbar-x'></div>").appendTo(b),
|
44 |
-
T = e("<div class='ps-scrollbar-y'></div>").appendTo(m),
|
45 |
-
y = parseInt(b.css("bottom"), 10),
|
46 |
-
L = parseInt(m.css("right"), 10),
|
47 |
-
S = n(),
|
48 |
-
x = function(e, t) {
|
49 |
-
var n = e + t,
|
50 |
-
o = u - v;
|
51 |
-
g = 0 > n ? 0 : n > o ? o : n;
|
52 |
-
var r = parseInt(g * (p - u) / (u - v), 10);
|
53 |
-
a.scrollTop(r), b.css({
|
54 |
-
bottom: y - r
|
55 |
-
})
|
56 |
-
},
|
57 |
-
M = function(e, t) {
|
58 |
-
var n = e + t,
|
59 |
-
o = c - f;
|
60 |
-
h = 0 > n ? 0 : n > o ? o : n;
|
61 |
-
var r = parseInt(h * (d - c) / (c - f), 10);
|
62 |
-
a.scrollLeft(r), m.css({
|
63 |
-
right: L - r
|
64 |
-
})
|
65 |
-
},
|
66 |
-
P = function(e) {
|
67 |
-
return l.minScrollbarLength && (e = Math.max(e, l.minScrollbarLength)), e
|
68 |
-
},
|
69 |
-
X = function() {
|
70 |
-
b.css({
|
71 |
-
left: a.scrollLeft(),
|
72 |
-
bottom: y - a.scrollTop(),
|
73 |
-
width: c,
|
74 |
-
display: s ? "inherit" : "none"
|
75 |
-
}), m.css({
|
76 |
-
top: a.scrollTop(),
|
77 |
-
right: L - a.scrollLeft(),
|
78 |
-
height: u,
|
79 |
-
display: i ? "inherit" : "none"
|
80 |
-
}), w.css({
|
81 |
-
left: h,
|
82 |
-
width: f
|
83 |
-
}), T.css({
|
84 |
-
top: g,
|
85 |
-
height: v
|
86 |
-
})
|
87 |
-
},
|
88 |
-
D = function() {
|
89 |
-
c = l.includePadding ? a.innerWidth() : a.width(), u = l.includePadding ? a.innerHeight() : a.height(), d = a.prop("scrollWidth"), p = a.prop("scrollHeight"), !l.suppressScrollX && d > c + l.scrollXMarginOffset ? (s = !0, f = P(parseInt(c * c / d, 10)), h = parseInt(a.scrollLeft() * (c - f) / (d - c), 10)) : (s = !1, f = 0, h = 0, a.scrollLeft(0)), !l.suppressScrollY && p > u + l.scrollYMarginOffset ? (i = !0, v = P(parseInt(u * u / p, 10)), g = parseInt(a.scrollTop() * (u - v) / (p - u), 10)) : (i = !1, v = 0, g = 0, a.scrollTop(0)), g >= u - v && (g = u - v), h >= c - f && (h = c - f), X()
|
90 |
-
},
|
91 |
-
I = function() {
|
92 |
-
var t, n;
|
93 |
-
w.bind("mousedown" + S, function(e) {
|
94 |
-
n = e.pageX, t = w.position().left, b.addClass("in-scrolling"), e.stopPropagation(), e.preventDefault()
|
95 |
-
}), e(document).bind("mousemove" + S, function(e) {
|
96 |
-
b.hasClass("in-scrolling") && (M(t, e.pageX - n), e.stopPropagation(), e.preventDefault())
|
97 |
-
}), e(document).bind("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|