Version Description
Download this release
Release Info
Developer | pross |
Plugin | WordPress Page Builder – Beaver Builder |
Version | 2.2.2.5 |
Comparing to | |
See all releases |
Code changes from version 2.2.1.5 to 2.2.2.5
- changelog.txt +72 -0
- classes/class-fl-builder-admin-settings.php +37 -8
- classes/class-fl-builder-admin.php +6 -3
- classes/class-fl-builder-art.php +2 -0
- classes/class-fl-builder-css.php +15 -5
- classes/class-fl-builder-debug.php +25 -0
- classes/class-fl-builder-icons.php +0 -4
- classes/class-fl-builder-loader.php +2 -1
- classes/class-fl-builder-model.php +30 -4
- classes/class-fl-builder-revisions.php +7 -5
- classes/class-fl-builder-service-aweber.php +3 -0
- classes/class-fl-builder-service-campayn.php +3 -0
- classes/class-fl-builder-service-constant-contact.php +5 -0
- classes/class-fl-builder-service-convertkit.php +2 -0
- classes/class-fl-builder-service-drip.php +5 -0
- classes/class-fl-builder-service-enormail.php +2 -0
- classes/class-fl-builder-service-getresponse.php +1 -0
- classes/class-fl-builder-service-godaddy-email-marketing.php +1 -0
- classes/class-fl-builder-service-icontact-pro.php +8 -3
- classes/class-fl-builder-service-icontact.php +7 -3
- classes/class-fl-builder-service-infusionsoft.php +2 -0
- classes/class-fl-builder-service-mailchimp.php +1 -0
- classes/class-fl-builder-service-mailerlite.php +2 -0
- classes/class-fl-builder-service-mailpoet.php +1 -0
- classes/class-fl-builder-service-mailrelay.php +3 -0
- classes/class-fl-builder-service-mautic.php +2 -1
- classes/class-fl-builder-service-ontraport.php +2 -0
- classes/class-fl-builder-service-sendinblue.php +3 -0
- classes/class-fl-builder-service-sendy.php +2 -0
- classes/class-fl-builder-ui-settings-forms.php +17 -11
- classes/class-fl-builder-usage.php +1 -0
- classes/class-fl-builder-wp-blocks.php +5 -0
- classes/class-fl-builder-wpcli-command.php +361 -5
- classes/class-fl-builder.php +35 -19
- css/fl-builder-admin-settings.css +76 -0
- css/fl-builder.css +50 -2
- css/fl-builder.min.css +1 -1
- css/fl-lightbox.css +1 -3
- fl-builder.php +1 -1
- fonts/fontawesome/css/all.min.css +1 -1
- fonts/fontawesome/css/v4-shims.min.css +5 -0
- fonts/fontawesome/webfonts/fa-brands-400.eot +0 -0
- fonts/fontawesome/webfonts/fa-brands-400.svg +3 -3
- fonts/fontawesome/webfonts/fa-brands-400.ttf +0 -0
- fonts/fontawesome/webfonts/fa-brands-400.woff +0 -0
- fonts/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
- fonts/fontawesome/webfonts/fa-regular-400.eot +0 -0
- fonts/fontawesome/webfonts/fa-regular-400.svg +2 -2
- fonts/fontawesome/webfonts/fa-regular-400.ttf +0 -0
- fonts/fontawesome/webfonts/fa-regular-400.woff +0 -0
- fonts/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
- fonts/fontawesome/webfonts/fa-solid-900.eot +0 -0
- fonts/fontawesome/webfonts/fa-solid-900.svg +2 -2
- fonts/fontawesome/webfonts/fa-solid-900.ttf +0 -0
- fonts/fontawesome/webfonts/fa-solid-900.woff +0 -0
- fonts/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
- includes/admin-posts.php +6 -2
- includes/admin-settings-welcome.php +20 -2
- includes/column-settings.php +1 -0
- includes/compatibility.php +5 -43
- includes/export.php +3 -3
- includes/loop-settings-matching.php +4 -1
- includes/module-settings.php +1 -0
- includes/row-settings.php +1 -0
- includes/shape-layer.php +1 -1
- includes/strings.php +1 -1
- includes/ui-js-config.php +10 -0
- includes/ui-js-templates.php +30 -4
- includes/ui-loop-settings.php +2 -0
- includes/updater-config.php +1 -1
- includes/updater/classes/class-fl-updater.php +3 -1
- js/fl-builder-admin-settings.js +45 -0
- js/fl-builder-ajax-layout.js +2 -1
- js/fl-builder-layout.js +1 -1
- js/fl-builder-libs.js +93 -0
- js/fl-builder-preview.js +12 -3
- js/fl-builder-responsive-preview.js +1 -1
- js/fl-builder-revisions.js +11 -3
- js/fl-builder-services.js +6 -6
- js/fl-builder-ui-settings-forms.js +2 -2
- js/fl-builder.js +98 -35
- js/fl-builder.min.js +8 -9
changelog.txt
CHANGED
@@ -1,3 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<h4>2.2.1.5 - 03/20/2019</h4>
|
2 |
<p><strong>Hot Fix</strong></p>
|
3 |
<ul>
|
1 |
+
<h4>2.2.2.5 - 04/16/2019</h4>
|
2 |
+
<p><strong>Hot Fix</strong></p>
|
3 |
+
<ul>
|
4 |
+
<li>Fixed some Google fonts not rendering correctly if they have numbers in the font name.</li>
|
5 |
+
<li>Updated the crash error message popup text.</li>
|
6 |
+
<li>Update checks now use SSL urls.</li>
|
7 |
+
<li>Fixed preview issue. Type unit was using the number value intead of the unit value.</li>
|
8 |
+
<li>Fixed WPCLI issue when using PHP5.</li>
|
9 |
+
<li>Fixed issue with Maps module and ACF map field connection.</li>
|
10 |
+
<li>Fixed undefined index warning on some Woocommerce pages.</li>
|
11 |
+
<li>Reverted text editor module styles overriding individual styles set in TinyMCE added in 2.2.2.1</li>
|
12 |
+
</ul>
|
13 |
+
|
14 |
+
<h4>2.2.2.4 - 04/08/2019</h4>
|
15 |
+
<p><strong>Hot Fix</strong></p>
|
16 |
+
<ul>
|
17 |
+
<li>Fixed settings.js not being executed in 3rd party plugins.</li>
|
18 |
+
</ul>
|
19 |
+
|
20 |
+
<h4>2.2.2.3 - 04/06/2019</h4>
|
21 |
+
<p><strong>Hot Fix</strong></p>
|
22 |
+
<ul>
|
23 |
+
<li>Fixed Javascript error in Post Grid.</li>
|
24 |
+
<li>Fixed incorrect schema markup in Post Grid.</li>
|
25 |
+
</ul>
|
26 |
+
|
27 |
+
<h4>2.2.2.2 - 04/04/2019</h4>
|
28 |
+
<p><strong>Hot Fix</strong></p>
|
29 |
+
<ul>
|
30 |
+
<li>Added missing debounce dependency for Post Grid Module if scroll is used for pagination.</li>
|
31 |
+
<li>Fixed an issue where deleting a Global Saved Module affects the other globals in a layout.</li>
|
32 |
+
</ul>
|
33 |
+
|
34 |
+
<h4>2.2.2.1 - 04/03/2019</h4>
|
35 |
+
<p><strong>Enhancements</strong></p>
|
36 |
+
<ul>
|
37 |
+
<li>Updated Font Awesome to 5.8.1</li>
|
38 |
+
<li>Added popup with link to support when a fatal error is detected in AJAX.</li>
|
39 |
+
<li>Removed references to Font Awesome 4, if its still needed by a module or the theme a shim will load to map icons to FA5.</li>
|
40 |
+
<li>Added option to set placeholder text in Subscribe Module.</li>
|
41 |
+
<li>Added order by random option to Content Slider Module.</li>
|
42 |
+
<li>Added santization to global settings on save.</li>
|
43 |
+
<li>New filter <code>fl_post_grid_disable_schema</code> to disable all schema in Post Grid Module.</li>
|
44 |
+
<li>When restoring a layout revision the JS and CSS are now included in the revision.</li>
|
45 |
+
<li>Added general post counts to debug info page.</li>
|
46 |
+
<li>Title bar now shows what you are editing, row/module/page etc.</li>
|
47 |
+
<li>Added setting for responsive menu label in Menu Module.</li>
|
48 |
+
<li>Added support for youtu.be links in jQuery.magnificpopup.</li>
|
49 |
+
<li>Added shape name as a CSS class to shape layer for easier styling.</li>
|
50 |
+
<li>Added <code>nav</code> markup and schema to Menu Module.</li>
|
51 |
+
<li>Added more WPCLI support, you can now control Themer layouts.</li>
|
52 |
+
<li>Added indicators to main UI menu if there are revisions and css/js for the current layout.</li>
|
53 |
+
</ul>
|
54 |
+
<p><strong>Bug Fixes</strong></p>
|
55 |
+
<ul>
|
56 |
+
<li>Fixed rare save error caused by broken zlib server PHP settings.</li>
|
57 |
+
<li>Fixed internal templates showing in the link dropdown when using tinymce.</li>
|
58 |
+
<li>Fixed several browser jQuery deprecation warnings.</li>
|
59 |
+
<li>Fixed UI glitch with colorpicker in Firefox, X to reset was misaligned.</li>
|
60 |
+
<li>Fixed incorrect order of media queries rendered with FLBuilderCSS.</li>
|
61 |
+
<li>Fixed a bug where unable to add new module when editing a saved column.</li>
|
62 |
+
<li>Fixed laggy module settings caused by updated jQuery.validate library.</li>
|
63 |
+
<li>Fixed Youtube background no longer auto-playing in Safari when audio is On.</li>
|
64 |
+
<li>Fixed text editor module styles overriding individual styles set in TinyMCE.</li>
|
65 |
+
<li>Fixed functions being stripped from tiny_mce_before_init because of JSON.Stringify().</li>
|
66 |
+
<li>Fixed jQuery migrate warning in _initTimezoneField().</li>
|
67 |
+
<li>Make sure submenu icon won’t display on mobile if sets to None in Menu Module.</li>
|
68 |
+
<li>Removed all frameborder=0 as it is not needed in modern browsers.</li>
|
69 |
+
<li>Removed focus CSS from tinymce textarea.</li>
|
70 |
+
<li>Removed Caldera Forms Widget fix added in 2.2.1.5, Caldera Forms 1.8.4 fixed the issue.</li>
|
71 |
+
</ul>
|
72 |
+
|
73 |
<h4>2.2.1.5 - 03/20/2019</h4>
|
74 |
<p><strong>Hot Fix</strong></p>
|
75 |
<ul>
|
classes/class-fl-builder-admin-settings.php
CHANGED
@@ -23,7 +23,40 @@ final class FLBuilderAdminSettings {
|
|
23 |
* @return void
|
24 |
*/
|
25 |
static public function init() {
|
26 |
-
add_action( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
/**
|
@@ -125,7 +158,7 @@ final class FLBuilderAdminSettings {
|
|
125 |
if ( ! empty( $icon ) ) {
|
126 |
echo '<img role="presentation" src="' . $icon . '" />';
|
127 |
}
|
128 |
-
|
129 |
echo '<span>' . sprintf( _x( '%s Settings', '%s stands for custom branded "Page Builder" name.', 'fl-builder' ), FLBuilderModel::get_branding() ) . '</span>';
|
130 |
}
|
131 |
|
@@ -432,12 +465,6 @@ final class FLBuilderAdminSettings {
|
|
432 |
$enabled_icons = array_map( 'sanitize_text_field', $_POST['fl-enabled-icons'] );
|
433 |
}
|
434 |
|
435 |
-
// we cant have fa4 and fa5 active at same time.
|
436 |
-
if ( in_array( 'font-awesome', $enabled_icons ) && (bool) array_intersect( array( 'font-awesome-5-brands', 'font-awesome-5-regular', 'font-awesome-5-solid' ), $enabled_icons ) ) {
|
437 |
-
self::add_error( __( 'Use either Font Awesome 4 or Font Awesome 5. They are not compatible. Modules already in use will continue to use Font Awesome 4 regardless of your choice here.', 'fl-builder' ) );
|
438 |
-
return;
|
439 |
-
}
|
440 |
-
|
441 |
// Update the enabled sets.
|
442 |
self::update_enabled_icons( $enabled_icons );
|
443 |
|
@@ -482,6 +509,7 @@ final class FLBuilderAdminSettings {
|
|
482 |
|
483 |
// unzip returned a WP_Error
|
484 |
if ( is_wp_error( $unzipped ) ) {
|
|
|
485 |
self::add_error( sprintf( __( 'Unzip Error: %s', 'fl-builder' ), $unzipped->get_error_message() ) );
|
486 |
return;
|
487 |
}
|
@@ -721,6 +749,7 @@ final class FLBuilderAdminSettings {
|
|
721 |
|
722 |
$wporg = '<a target="_blank" href="https://wordpress.org/plugins/beaver-builder-lite-version/">wordpress.org</a>';
|
723 |
|
|
|
724 |
return sprintf( __( 'Add your %1$s on %2$s to spread the love.', 'fl-builder' ), $stars, $wporg );
|
725 |
}
|
726 |
}
|
23 |
* @return void
|
24 |
*/
|
25 |
static public function init() {
|
26 |
+
add_action( 'init', __CLASS__ . '::init_hooks', 11 );
|
27 |
+
add_action( 'wp_ajax_fl_welcome_submit', array( 'FLBuilderAdminSettings', 'welcome_submit' ) );
|
28 |
+
}
|
29 |
+
|
30 |
+
/**
|
31 |
+
* AJAX callback for welcome email subscription form.
|
32 |
+
* @since 2.2.2
|
33 |
+
*/
|
34 |
+
static public function welcome_submit() {
|
35 |
+
|
36 |
+
if ( ! empty( $_POST ) && wp_verify_nonce( $_POST['_wpnonce'], 'welcome_submit' ) ) {
|
37 |
+
|
38 |
+
$url = 'http://services.wpbeaverbuilder.com/drip/subscribe.php';
|
39 |
+
|
40 |
+
$url = add_query_arg( array(
|
41 |
+
'name' => $_POST['name'],
|
42 |
+
'email' => $_POST['email'],
|
43 |
+
), $url );
|
44 |
+
|
45 |
+
$response = wp_remote_get( $url );
|
46 |
+
$body = $response['body'];
|
47 |
+
if ( '1' === $body ) {
|
48 |
+
$args = array(
|
49 |
+
'message' => __( 'Thank you!', 'fl-builder' ),
|
50 |
+
);
|
51 |
+
update_user_meta( get_current_user_id(), '_fl_welcome_subscribed', '1' );
|
52 |
+
wp_send_json_success( $args );
|
53 |
+
}
|
54 |
+
} else {
|
55 |
+
$args = array(
|
56 |
+
'message' => __( 'Error submitting.', 'fl-builder' ),
|
57 |
+
);
|
58 |
+
wp_send_json_error( $args );
|
59 |
+
}
|
60 |
}
|
61 |
|
62 |
/**
|
158 |
if ( ! empty( $icon ) ) {
|
159 |
echo '<img role="presentation" src="' . $icon . '" />';
|
160 |
}
|
161 |
+
/* translators: %s: builder branded name */
|
162 |
echo '<span>' . sprintf( _x( '%s Settings', '%s stands for custom branded "Page Builder" name.', 'fl-builder' ), FLBuilderModel::get_branding() ) . '</span>';
|
163 |
}
|
164 |
|
465 |
$enabled_icons = array_map( 'sanitize_text_field', $_POST['fl-enabled-icons'] );
|
466 |
}
|
467 |
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
// Update the enabled sets.
|
469 |
self::update_enabled_icons( $enabled_icons );
|
470 |
|
509 |
|
510 |
// unzip returned a WP_Error
|
511 |
if ( is_wp_error( $unzipped ) ) {
|
512 |
+
/* translators: %s: unzip error message */
|
513 |
self::add_error( sprintf( __( 'Unzip Error: %s', 'fl-builder' ), $unzipped->get_error_message() ) );
|
514 |
return;
|
515 |
}
|
749 |
|
750 |
$wporg = '<a target="_blank" href="https://wordpress.org/plugins/beaver-builder-lite-version/">wordpress.org</a>';
|
751 |
|
752 |
+
/* translators: 1: stars link: 2: link to wporg page */
|
753 |
return sprintf( __( 'Add your %1$s on %2$s to spread the love.', 'fl-builder' ), $stars, $wporg );
|
754 |
}
|
755 |
}
|
classes/class-fl-builder-admin.php
CHANGED
@@ -59,6 +59,7 @@ final class FLBuilderAdmin {
|
|
59 |
'utm_source' => 'plugins-admin-page',
|
60 |
'utm_campaign' => 'no-multisite-support',
|
61 |
) );
|
|
|
62 |
self::show_activate_error( sprintf( __( 'This version of the <strong>Page Builder</strong> plugin is not compatible with WordPress Multisite. <a%s>Please upgrade</a> to the Multisite version of this plugin.', 'fl-builder' ), ' href="' . $url . '" target="_blank"' ) );
|
63 |
}
|
64 |
|
@@ -123,7 +124,7 @@ final class FLBuilderAdmin {
|
|
123 |
$folder = rtrim( FLBuilderModel::plugin_basename(), '/fl-builder.php' );
|
124 |
|
125 |
if ( 'bb-plugin' != $folder ) {
|
126 |
-
|
127 |
$error = sprintf( __( 'Install Error! We detected that Beaver Builder appears to be installed in a folder called <kbd>%s</kbd>.<br />For automatic updates to work the plugin must be installed in the folder <kbd>bb-plugin</kbd>.', 'fl-builder' ), $folder );
|
128 |
FLBuilderAdminSettings::add_error( $error );
|
129 |
}
|
@@ -180,10 +181,12 @@ final class FLBuilderAdmin {
|
|
180 |
*/
|
181 |
static public function activate_notice() {
|
182 |
if ( FL_BUILDER_LITE !== true ) {
|
183 |
-
$hash
|
|
|
184 |
$message = __( 'Page Builder activated! <a%s>Click here</a> to enable remote updates.', 'fl-builder' );
|
185 |
} else {
|
186 |
-
$hash
|
|
|
187 |
$message = __( 'Page Builder activated! <a%s>Click here</a> to get started.', 'fl-builder' );
|
188 |
}
|
189 |
|
59 |
'utm_source' => 'plugins-admin-page',
|
60 |
'utm_campaign' => 'no-multisite-support',
|
61 |
) );
|
62 |
+
/* translators: %s: upgrade url */
|
63 |
self::show_activate_error( sprintf( __( 'This version of the <strong>Page Builder</strong> plugin is not compatible with WordPress Multisite. <a%s>Please upgrade</a> to the Multisite version of this plugin.', 'fl-builder' ), ' href="' . $url . '" target="_blank"' ) );
|
64 |
}
|
65 |
|
124 |
$folder = rtrim( FLBuilderModel::plugin_basename(), '/fl-builder.php' );
|
125 |
|
126 |
if ( 'bb-plugin' != $folder ) {
|
127 |
+
/* translators: %s: folder path */
|
128 |
$error = sprintf( __( 'Install Error! We detected that Beaver Builder appears to be installed in a folder called <kbd>%s</kbd>.<br />For automatic updates to work the plugin must be installed in the folder <kbd>bb-plugin</kbd>.', 'fl-builder' ), $folder );
|
129 |
FLBuilderAdminSettings::add_error( $error );
|
130 |
}
|
181 |
*/
|
182 |
static public function activate_notice() {
|
183 |
if ( FL_BUILDER_LITE !== true ) {
|
184 |
+
$hash = '#license';
|
185 |
+
/* translators: %s: link to licence page */
|
186 |
$message = __( 'Page Builder activated! <a%s>Click here</a> to enable remote updates.', 'fl-builder' );
|
187 |
} else {
|
188 |
+
$hash = '#welcome';
|
189 |
+
/* translators: %s: link to welcome page */
|
190 |
$message = __( 'Page Builder activated! <a%s>Click here</a> to get started.', 'fl-builder' );
|
191 |
}
|
192 |
|
classes/class-fl-builder-art.php
CHANGED
@@ -337,6 +337,7 @@ class FLBuilderArt {
|
|
337 |
|
338 |
// Preset & Shape Section
|
339 |
$sections[ $prefix . 'shape' ] = array(
|
|
|
340 |
'title' => sprintf( __( '%s Shape', 'fl-builder' ), $position_label ),
|
341 |
'fields' => array(
|
342 |
$prefix . 'shape' => array(
|
@@ -463,6 +464,7 @@ class FLBuilderArt {
|
|
463 |
|
464 |
// Shape Styles
|
465 |
$sections[ $prefix . 'style' ] = array(
|
|
|
466 |
'title' => sprintf( __( '%s Shape Style', 'fl-builder' ), $position_label ),
|
467 |
'fields' => array(
|
468 |
$prefix . 'fill_style' => array(
|
337 |
|
338 |
// Preset & Shape Section
|
339 |
$sections[ $prefix . 'shape' ] = array(
|
340 |
+
/* translators: %s: position label */
|
341 |
'title' => sprintf( __( '%s Shape', 'fl-builder' ), $position_label ),
|
342 |
'fields' => array(
|
343 |
$prefix . 'shape' => array(
|
464 |
|
465 |
// Shape Styles
|
466 |
$sections[ $prefix . 'style' ] = array(
|
467 |
+
/* translators: %s: position label */
|
468 |
'title' => sprintf( __( '%s Shape Style', 'fl-builder' ), $position_label ),
|
469 |
'fields' => array(
|
470 |
$prefix . 'fill_style' => array(
|
classes/class-fl-builder-css.php
CHANGED
@@ -285,10 +285,13 @@ final class FLBuilderCSS {
|
|
285 |
static public function typography_field_props( $setting = array() ) {
|
286 |
$props = array();
|
287 |
$settings = FLBuilderModel::get_global_settings();
|
288 |
-
|
289 |
if ( isset( $setting['font_family'] ) && 'Default' !== $setting['font_family'] ) {
|
290 |
-
$fallback
|
291 |
-
|
|
|
|
|
|
|
292 |
}
|
293 |
if ( isset( $setting['font_weight'] ) && 'i' == substr( $setting['font_weight'], -1 ) ) {
|
294 |
$props['font-weight'] = substr( $setting['font_weight'], 0, -1 );
|
@@ -340,8 +343,15 @@ final class FLBuilderCSS {
|
|
340 |
* @return void
|
341 |
*/
|
342 |
static public function render() {
|
343 |
-
$rendered
|
344 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
|
346 |
foreach ( self::$rules as $args ) {
|
347 |
$defaults = array(
|
285 |
static public function typography_field_props( $setting = array() ) {
|
286 |
$props = array();
|
287 |
$settings = FLBuilderModel::get_global_settings();
|
288 |
+
$pattern = '%s, %s';
|
289 |
if ( isset( $setting['font_family'] ) && 'Default' !== $setting['font_family'] ) {
|
290 |
+
$fallback = FLBuilderFonts::get_font_fallback( $setting['font_family'] );
|
291 |
+
if ( preg_match( '#[0-9]#', $setting['font_family'] ) ) {
|
292 |
+
$pattern = '"%s", %s';
|
293 |
+
}
|
294 |
+
$props['font-family'] = sprintf( $pattern, $setting['font_family'], $fallback );
|
295 |
}
|
296 |
if ( isset( $setting['font_weight'] ) && 'i' == substr( $setting['font_weight'], -1 ) ) {
|
297 |
$props['font-weight'] = substr( $setting['font_weight'], 0, -1 );
|
343 |
* @return void
|
344 |
*/
|
345 |
static public function render() {
|
346 |
+
$rendered = array();
|
347 |
+
$breakpoints = array( 'default', 'medium', 'responsive' );
|
348 |
+
$css = '';
|
349 |
+
|
350 |
+
// Setup system breakpoints here to ensure proper order.
|
351 |
+
foreach ( $breakpoints as $breakpoint ) {
|
352 |
+
$media = self::media_value( $breakpoint );
|
353 |
+
$rendered[ $media ] = array();
|
354 |
+
}
|
355 |
|
356 |
foreach ( self::$rules as $args ) {
|
357 |
$defaults = array(
|
classes/class-fl-builder-debug.php
CHANGED
@@ -158,6 +158,31 @@ final class FL_Debug {
|
|
158 |
);
|
159 |
self::register( 'wp_max_mem', $args );
|
160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
$args = array(
|
162 |
'name' => 'Themes',
|
163 |
'data' => self::divider(),
|
158 |
);
|
159 |
self::register( 'wp_max_mem', $args );
|
160 |
|
161 |
+
$args = array(
|
162 |
+
'name' => 'Post Counts',
|
163 |
+
'data' => self::divider(),
|
164 |
+
);
|
165 |
+
self::register( 'post_counts', $args );
|
166 |
+
|
167 |
+
$templates = wp_count_posts( 'fl-builder-template' );
|
168 |
+
|
169 |
+
$post_types = get_post_types( null, 'object' );
|
170 |
+
|
171 |
+
foreach ( $post_types as $type => $type_object ) {
|
172 |
+
|
173 |
+
if ( in_array( $type, array( 'wp_block', 'user_request', 'oembed_cache', 'customize_changeset', 'custom_css', 'nav_menu_item' ) ) ) {
|
174 |
+
continue;
|
175 |
+
}
|
176 |
+
|
177 |
+
$count = wp_count_posts( $type );
|
178 |
+
|
179 |
+
$args = array(
|
180 |
+
'name' => ( 'fl-builder-template' == $type ) ? 'Builder Templates' : 'WordPress ' . $type_object->label,
|
181 |
+
'data' => ( $count->inherit > 0 ) ? $count->inherit : $count->publish,
|
182 |
+
);
|
183 |
+
self::register( 'wp_type_count_' . $type, $args );
|
184 |
+
}
|
185 |
+
|
186 |
$args = array(
|
187 |
'name' => 'Themes',
|
188 |
'data' => self::divider(),
|
classes/class-fl-builder-icons.php
CHANGED
@@ -130,10 +130,6 @@ final class FLBuilderIcons {
|
|
130 |
static private function register_core_sets() {
|
131 |
$enabled_icons = FLBuilderModel::get_enabled_icons();
|
132 |
$core_sets = apply_filters( 'fl_builder_core_icon_sets', array(
|
133 |
-
'font-awesome' => array(
|
134 |
-
'name' => 'Font Awesome 4',
|
135 |
-
'prefix' => 'fa',
|
136 |
-
),
|
137 |
'font-awesome-5-solid' => array(
|
138 |
'name' => 'Font Awesome 5 Solid',
|
139 |
'prefix' => 'fas',
|
130 |
static private function register_core_sets() {
|
131 |
$enabled_icons = FLBuilderModel::get_enabled_icons();
|
132 |
$core_sets = apply_filters( 'fl_builder_core_icon_sets', array(
|
|
|
|
|
|
|
|
|
133 |
'font-awesome-5-solid' => array(
|
134 |
'name' => 'Font Awesome 5 Solid',
|
135 |
'prefix' => 'fas',
|
classes/class-fl-builder-loader.php
CHANGED
@@ -46,7 +46,7 @@ if ( ! class_exists( 'FLBuilderLoader' ) ) {
|
|
46 |
* @return void
|
47 |
*/
|
48 |
static private function define_constants() {
|
49 |
-
define( 'FL_BUILDER_VERSION', '2.2.
|
50 |
define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
|
51 |
define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
|
52 |
define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
|
@@ -166,6 +166,7 @@ if ( ! class_exists( 'FLBuilderLoader' ) ) {
|
|
166 |
* @return void
|
167 |
*/
|
168 |
static public function double_install_admin_notice() {
|
|
|
169 |
$message = __( 'You currently have two versions of Beaver Builder active on this site. Please <a href="%s">deactivate one</a> before continuing.', 'fl-builder' );
|
170 |
|
171 |
self::render_admin_notice( sprintf( $message, admin_url( 'plugins.php' ) ), 'error' );
|
46 |
* @return void
|
47 |
*/
|
48 |
static private function define_constants() {
|
49 |
+
define( 'FL_BUILDER_VERSION', '2.2.2.5' );
|
50 |
define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
|
51 |
define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
|
52 |
define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
|
166 |
* @return void
|
167 |
*/
|
168 |
static public function double_install_admin_notice() {
|
169 |
+
/* translators: %s: plugins page link */
|
170 |
$message = __( 'You currently have two versions of Beaver Builder active on this site. Please <a href="%s">deactivate one</a> before continuing.', 'fl-builder' );
|
171 |
|
172 |
self::render_admin_notice( sprintf( $message, admin_url( 'plugins.php' ) ), 'error' );
|
classes/class-fl-builder-model.php
CHANGED
@@ -2752,6 +2752,7 @@ final class FLBuilderModel {
|
|
2752 |
|
2753 |
// Log an error if a module with this slug already exists.
|
2754 |
if ( isset( self::$modules[ $instance->slug ] ) ) {
|
|
|
2755 |
error_log( sprintf( _x( 'A module with the filename %s.php already exists! Please namespace your module filenames to ensure compatibility with Beaver Builder.', '%s stands for the module filename', 'fl-builder' ), $instance->slug ) );
|
2756 |
return;
|
2757 |
}
|
@@ -2787,6 +2788,7 @@ final class FLBuilderModel {
|
|
2787 |
*/
|
2788 |
static public function register_module_alias( $alias, $config ) {
|
2789 |
if ( isset( self::$module_aliases[ $alias ] ) ) {
|
|
|
2790 |
_doing_it_wrong( __CLASS__ . '::register_module_alias', sprintf( _x( 'The module alias %s already exists! Please namespace your module aliases to ensure compatibility with Beaver Builder.', '%s stands for the module alias key', 'fl-builder' ), $alias ), '1.10' );
|
2791 |
return;
|
2792 |
}
|
@@ -4045,6 +4047,9 @@ final class FLBuilderModel {
|
|
4045 |
*/
|
4046 |
static public function save_global_settings( $settings = array() ) {
|
4047 |
$old_settings = self::get_global_settings();
|
|
|
|
|
|
|
4048 |
$new_settings = (object) array_merge( (array) $old_settings, (array) $settings );
|
4049 |
|
4050 |
self::delete_asset_cache_for_all_posts();
|
@@ -4055,6 +4060,24 @@ final class FLBuilderModel {
|
|
4055 |
return self::get_global_settings();
|
4056 |
}
|
4057 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4058 |
/**
|
4059 |
* Duplicate the current post.
|
4060 |
*
|
@@ -4080,6 +4103,7 @@ final class FLBuilderModel {
|
|
4080 |
'post_parent' => $post->post_parent,
|
4081 |
'post_password' => $post->post_password,
|
4082 |
'post_status' => 'draft',
|
|
|
4083 |
'post_title' => sprintf( _x( 'Copy of %s', '%s stands for post/page title.', 'fl-builder' ), $post->post_title ),
|
4084 |
'post_type' => $post->post_type,
|
4085 |
'to_ping' => $post->to_ping,
|
@@ -5563,9 +5587,11 @@ final class FLBuilderModel {
|
|
5563 |
|
5564 |
// Remove template info from the layout data.
|
5565 |
foreach ( $layout_data as $node_id => $node ) {
|
5566 |
-
|
5567 |
-
|
5568 |
-
|
|
|
|
|
5569 |
}
|
5570 |
|
5571 |
// Update the layout data.
|
@@ -6344,7 +6370,7 @@ final class FLBuilderModel {
|
|
6344 |
'enabled' => true,
|
6345 |
'tour' => true,
|
6346 |
'video' => true,
|
6347 |
-
'video_embed' => '<iframe src="https://player.vimeo.com/video/240550556?autoplay=1" width="420" height="315"
|
6348 |
'knowledge_base' => true,
|
6349 |
'knowledge_base_url' => self::get_store_url( 'knowledge-base', array(
|
6350 |
'utm_medium' => ( true === FL_BUILDER_LITE ? 'bb-lite' : 'bb-pro' ),
|
2752 |
|
2753 |
// Log an error if a module with this slug already exists.
|
2754 |
if ( isset( self::$modules[ $instance->slug ] ) ) {
|
2755 |
+
/* translators: %s: module filename */
|
2756 |
error_log( sprintf( _x( 'A module with the filename %s.php already exists! Please namespace your module filenames to ensure compatibility with Beaver Builder.', '%s stands for the module filename', 'fl-builder' ), $instance->slug ) );
|
2757 |
return;
|
2758 |
}
|
2788 |
*/
|
2789 |
static public function register_module_alias( $alias, $config ) {
|
2790 |
if ( isset( self::$module_aliases[ $alias ] ) ) {
|
2791 |
+
/* translators: %s: module alias key */
|
2792 |
_doing_it_wrong( __CLASS__ . '::register_module_alias', sprintf( _x( 'The module alias %s already exists! Please namespace your module aliases to ensure compatibility with Beaver Builder.', '%s stands for the module alias key', 'fl-builder' ), $alias ), '1.10' );
|
2793 |
return;
|
2794 |
}
|
4047 |
*/
|
4048 |
static public function save_global_settings( $settings = array() ) {
|
4049 |
$old_settings = self::get_global_settings();
|
4050 |
+
|
4051 |
+
$settings = self::sanitize_global( $settings );
|
4052 |
+
|
4053 |
$new_settings = (object) array_merge( (array) $old_settings, (array) $settings );
|
4054 |
|
4055 |
self::delete_asset_cache_for_all_posts();
|
4060 |
return self::get_global_settings();
|
4061 |
}
|
4062 |
|
4063 |
+
/**
|
4064 |
+
* Sanitize global options on save.
|
4065 |
+
* @since 2.2.2
|
4066 |
+
*/
|
4067 |
+
static public function sanitize_global( $settings ) {
|
4068 |
+
|
4069 |
+
$fields = self::get_settings_form_fields( 'global', 'general' );
|
4070 |
+
|
4071 |
+
foreach ( $settings as $name => $value ) {
|
4072 |
+
if ( ! isset( $fields[ $name ] ) ) {
|
4073 |
+
continue;
|
4074 |
+
} elseif ( isset( $fields[ $name ]['sanitize'] ) ) {
|
4075 |
+
$settings[ $name ] = call_user_func_array( $fields[ $name ]['sanitize'], array( $value ) );
|
4076 |
+
}
|
4077 |
+
}
|
4078 |
+
return $settings;
|
4079 |
+
}
|
4080 |
+
|
4081 |
/**
|
4082 |
* Duplicate the current post.
|
4083 |
*
|
4103 |
'post_parent' => $post->post_parent,
|
4104 |
'post_password' => $post->post_password,
|
4105 |
'post_status' => 'draft',
|
4106 |
+
/* translators: %s: post/page title */
|
4107 |
'post_title' => sprintf( _x( 'Copy of %s', '%s stands for post/page title.', 'fl-builder' ), $post->post_title ),
|
4108 |
'post_type' => $post->post_type,
|
4109 |
'to_ping' => $post->to_ping,
|
5587 |
|
5588 |
// Remove template info from the layout data.
|
5589 |
foreach ( $layout_data as $node_id => $node ) {
|
5590 |
+
if ( isset( $node->template_id ) && $node->template_id == $template_id ) {
|
5591 |
+
unset( $layout_data[ $node_id ]->template_id );
|
5592 |
+
unset( $layout_data[ $node_id ]->template_node_id );
|
5593 |
+
unset( $layout_data[ $node_id ]->template_root_node );
|
5594 |
+
}
|
5595 |
}
|
5596 |
|
5597 |
// Update the layout data.
|
6370 |
'enabled' => true,
|
6371 |
'tour' => true,
|
6372 |
'video' => true,
|
6373 |
+
'video_embed' => '<iframe src="https://player.vimeo.com/video/240550556?autoplay=1" width="420" height="315" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>',
|
6374 |
'knowledge_base' => true,
|
6375 |
'knowledge_base_url' => self::get_store_url( 'knowledge-base', array(
|
6376 |
'utm_medium' => ( true === FL_BUILDER_LITE ? 'bb-lite' : 'bb-pro' ),
|
classes/class-fl-builder-revisions.php
CHANGED
@@ -26,8 +26,8 @@ final class FLBuilderRevisions {
|
|
26 |
* @return array
|
27 |
*/
|
28 |
static public function ui_js_config( $config ) {
|
29 |
-
$config['revisions']
|
30 |
-
|
31 |
return $config;
|
32 |
}
|
33 |
|
@@ -138,10 +138,12 @@ final class FLBuilderRevisions {
|
|
138 |
$data = FLBuilderModel::get_layout_data( 'published', $revision_id );
|
139 |
|
140 |
FLBuilderModel::update_layout_data( $data );
|
141 |
-
|
|
|
142 |
return array(
|
143 |
-
'layout'
|
144 |
-
'config'
|
|
|
145 |
);
|
146 |
}
|
147 |
}
|
26 |
* @return array
|
27 |
*/
|
28 |
static public function ui_js_config( $config ) {
|
29 |
+
$config['revisions'] = self::get_config( $config['postId'] );
|
30 |
+
$config['revisions_count'] = isset( $config['revisions']['posts'] ) && is_array( $config['revisions']['posts'] ) ? count( $config['revisions']['posts'] ) : 0;
|
31 |
return $config;
|
32 |
}
|
33 |
|
138 |
$data = FLBuilderModel::get_layout_data( 'published', $revision_id );
|
139 |
|
140 |
FLBuilderModel::update_layout_data( $data );
|
141 |
+
$settings = get_post_meta( $revision_id, '_fl_builder_data_settings', true );
|
142 |
+
update_post_meta( FLBuilderModel::get_post_id(), '_fl_builder_draft_settings', $settings );
|
143 |
return array(
|
144 |
+
'layout' => FLBuilderAJAXLayout::render(),
|
145 |
+
'config' => FLBuilderUISettingsForms::get_node_js_config(),
|
146 |
+
'settings' => $settings,
|
147 |
);
|
148 |
}
|
149 |
}
|
classes/class-fl-builder-service-aweber.php
CHANGED
@@ -116,6 +116,7 @@ final class FLBuilderServiceAWeber extends FLBuilderService {
|
|
116 |
'class' => 'fl-builder-service-connect-input',
|
117 |
'type' => 'text',
|
118 |
'label' => __( 'Authorization Code', 'fl-builder' ),
|
|
|
119 |
'description' => sprintf( __( 'Please register this website with AWeber to get your Authorization Code. <a%s>Register Now</a>', 'fl-builder' ), ' href="https://auth.aweber.com/1.0/oauth/authorize_app/baa1f131" target="_blank"' ),
|
120 |
'preview' => array(
|
121 |
'type' => 'none',
|
@@ -283,6 +284,7 @@ final class FLBuilderServiceAWeber extends FLBuilderService {
|
|
283 |
}
|
284 |
} catch ( AWeberAPIException $e ) {
|
285 |
$response['error'] = sprintf(
|
|
|
286 |
__( 'There was an error subscribing to AWeber. %s', 'fl-builder' ),
|
287 |
$e->getMessage()
|
288 |
);
|
@@ -301,6 +303,7 @@ final class FLBuilderServiceAWeber extends FLBuilderService {
|
|
301 |
}
|
302 |
} catch ( AWeberAPIException $e ) {
|
303 |
$response['error'] = sprintf(
|
|
|
304 |
__( 'There was an error subscribing to AWeber. %s', 'fl-builder' ),
|
305 |
$e->getMessage()
|
306 |
);
|
116 |
'class' => 'fl-builder-service-connect-input',
|
117 |
'type' => 'text',
|
118 |
'label' => __( 'Authorization Code', 'fl-builder' ),
|
119 |
+
/* translators: %s: register url */
|
120 |
'description' => sprintf( __( 'Please register this website with AWeber to get your Authorization Code. <a%s>Register Now</a>', 'fl-builder' ), ' href="https://auth.aweber.com/1.0/oauth/authorize_app/baa1f131" target="_blank"' ),
|
121 |
'preview' => array(
|
122 |
'type' => 'none',
|
284 |
}
|
285 |
} catch ( AWeberAPIException $e ) {
|
286 |
$response['error'] = sprintf(
|
287 |
+
/* translators: %s: error */
|
288 |
__( 'There was an error subscribing to AWeber. %s', 'fl-builder' ),
|
289 |
$e->getMessage()
|
290 |
);
|
303 |
}
|
304 |
} catch ( AWeberAPIException $e ) {
|
305 |
$response['error'] = sprintf(
|
306 |
+
/* translators: %s: error */
|
307 |
__( 'There was an error subscribing to AWeber. %s', 'fl-builder' ),
|
308 |
$e->getMessage()
|
309 |
);
|
classes/class-fl-builder-service-campayn.php
CHANGED
@@ -108,6 +108,7 @@ final class FLBuilderServiceCampayn extends FLBuilderService {
|
|
108 |
'api_key' => $fields['api_key'],
|
109 |
);
|
110 |
} else {
|
|
|
111 |
$response['error'] = sprintf( __( 'Error: Could not connect to Campayn. %s', 'fl-builder' ), $result['error'] );
|
112 |
}
|
113 |
}
|
@@ -170,6 +171,7 @@ final class FLBuilderServiceCampayn extends FLBuilderService {
|
|
170 |
);
|
171 |
|
172 |
if ( isset( $results['error'] ) ) {
|
|
|
173 |
$response['error'] = sprintf( __( 'Error: Please check your API key. %s', 'fl-builder' ), $results['error'] );
|
174 |
} else {
|
175 |
$response['html'] = $this->render_list_field( $results, $settings );
|
@@ -278,6 +280,7 @@ final class FLBuilderServiceCampayn extends FLBuilderService {
|
|
278 |
) );
|
279 |
|
280 |
if ( isset( $result['error'] ) ) {
|
|
|
281 |
$response['error'] = sprintf( __( 'There was an error subscribing to Campayn. %s', 'fl-builder' ), $result['error'] );
|
282 |
}
|
283 |
}
|
108 |
'api_key' => $fields['api_key'],
|
109 |
);
|
110 |
} else {
|
111 |
+
/* translators: %s: error */
|
112 |
$response['error'] = sprintf( __( 'Error: Could not connect to Campayn. %s', 'fl-builder' ), $result['error'] );
|
113 |
}
|
114 |
}
|
171 |
);
|
172 |
|
173 |
if ( isset( $results['error'] ) ) {
|
174 |
+
/* translators: %s: error */
|
175 |
$response['error'] = sprintf( __( 'Error: Please check your API key. %s', 'fl-builder' ), $results['error'] );
|
176 |
} else {
|
177 |
$response['html'] = $this->render_list_field( $results, $settings );
|
280 |
) );
|
281 |
|
282 |
if ( isset( $result['error'] ) ) {
|
283 |
+
/* translators: %s: error */
|
284 |
$response['error'] = sprintf( __( 'There was an error subscribing to Campayn. %s', 'fl-builder' ), $result['error'] );
|
285 |
}
|
286 |
}
|
classes/class-fl-builder-service-constant-contact.php
CHANGED
@@ -53,6 +53,7 @@ final class FLBuilderServiceConstantContact extends FLBuilderService {
|
|
53 |
$request = json_decode( wp_remote_retrieve_body( wp_remote_get( $url ) ) );
|
54 |
|
55 |
if ( ! is_array( $request ) || ( isset( $request[0] ) && isset( $request[0]->error_message ) ) ) {
|
|
|
56 |
$response['error'] = sprintf( __( 'Error: Could not connect to Constant Contact. %s', 'fl-builder' ), $request[0]->error_message );
|
57 |
} else {
|
58 |
$response['data'] = array(
|
@@ -91,6 +92,7 @@ final class FLBuilderServiceConstantContact extends FLBuilderService {
|
|
91 |
'type' => 'text',
|
92 |
'label' => __( 'Access Token', 'fl-builder' ),
|
93 |
'help' => __( 'Your Constant Contact access token.', 'fl-builder' ),
|
|
|
94 |
'description' => sprintf( __( 'You must register a <a%1$s>Developer Account</a> with Constant Contact to obtain an API key and access token. Please see <a%2$s>Getting an API key</a> for complete instructions.', 'fl-builder' ), ' href="https://constantcontact.mashery.com/member/register" target="_blank"', ' href="https://developer.constantcontact.com/home/api-keys.html" target="_blank"' ),
|
95 |
'preview' => array(
|
96 |
'type' => 'none',
|
@@ -123,6 +125,7 @@ final class FLBuilderServiceConstantContact extends FLBuilderService {
|
|
123 |
);
|
124 |
|
125 |
if ( ! is_array( $request ) || ( isset( $request[0] ) && isset( $request[0]->error_message ) ) ) {
|
|
|
126 |
$response['error'] = sprintf( __( 'Error: Could not connect to Constant Contact. %s', 'fl-builder' ), $request[0]->error_message );
|
127 |
} else {
|
128 |
$response['html'] = $this->render_list_field( $request, $settings );
|
@@ -233,6 +236,7 @@ final class FLBuilderServiceConstantContact extends FLBuilderService {
|
|
233 |
$res = json_decode( wp_remote_retrieve_body( $update ) );
|
234 |
|
235 |
if ( isset( $res->error_key ) ) {
|
|
|
236 |
$response['error'] = sprintf( __( 'There was an error subscribing to Constant Contact. %s', 'fl-builder' ), $res->error_key );
|
237 |
}
|
238 |
} else {
|
@@ -265,6 +269,7 @@ final class FLBuilderServiceConstantContact extends FLBuilderService {
|
|
265 |
$create = wp_remote_post( $url, $args );
|
266 |
|
267 |
if ( isset( $create->error_key ) ) {
|
|
|
268 |
$response['error'] = sprintf( __( 'There was an error subscribing to Constant Contact. %s', 'fl-builder' ), $create->error_key );
|
269 |
}
|
270 |
}
|
53 |
$request = json_decode( wp_remote_retrieve_body( wp_remote_get( $url ) ) );
|
54 |
|
55 |
if ( ! is_array( $request ) || ( isset( $request[0] ) && isset( $request[0]->error_message ) ) ) {
|
56 |
+
/* translators: %s: error */
|
57 |
$response['error'] = sprintf( __( 'Error: Could not connect to Constant Contact. %s', 'fl-builder' ), $request[0]->error_message );
|
58 |
} else {
|
59 |
$response['data'] = array(
|
92 |
'type' => 'text',
|
93 |
'label' => __( 'Access Token', 'fl-builder' ),
|
94 |
'help' => __( 'Your Constant Contact access token.', 'fl-builder' ),
|
95 |
+
/* translators: 1: account link: 2: api key link */
|
96 |
'description' => sprintf( __( 'You must register a <a%1$s>Developer Account</a> with Constant Contact to obtain an API key and access token. Please see <a%2$s>Getting an API key</a> for complete instructions.', 'fl-builder' ), ' href="https://constantcontact.mashery.com/member/register" target="_blank"', ' href="https://developer.constantcontact.com/home/api-keys.html" target="_blank"' ),
|
97 |
'preview' => array(
|
98 |
'type' => 'none',
|
125 |
);
|
126 |
|
127 |
if ( ! is_array( $request ) || ( isset( $request[0] ) && isset( $request[0]->error_message ) ) ) {
|
128 |
+
/* translators: %s: error */
|
129 |
$response['error'] = sprintf( __( 'Error: Could not connect to Constant Contact. %s', 'fl-builder' ), $request[0]->error_message );
|
130 |
} else {
|
131 |
$response['html'] = $this->render_list_field( $request, $settings );
|
236 |
$res = json_decode( wp_remote_retrieve_body( $update ) );
|
237 |
|
238 |
if ( isset( $res->error_key ) ) {
|
239 |
+
/* translators: %s: error */
|
240 |
$response['error'] = sprintf( __( 'There was an error subscribing to Constant Contact. %s', 'fl-builder' ), $res->error_key );
|
241 |
}
|
242 |
} else {
|
269 |
$create = wp_remote_post( $url, $args );
|
270 |
|
271 |
if ( isset( $create->error_key ) ) {
|
272 |
+
/* translators: %s: error */
|
273 |
$response['error'] = sprintf( __( 'There was an error subscribing to Constant Contact. %s', 'fl-builder' ), $create->error_key );
|
274 |
}
|
275 |
}
|
classes/class-fl-builder-service-convertkit.php
CHANGED
@@ -72,6 +72,7 @@ final class FLBuilderServiceConvertKit extends FLBuilderService {
|
|
72 |
'api_key' => $fields['api_key'],
|
73 |
);
|
74 |
} else {
|
|
|
75 |
$response['error'] = sprintf( __( 'Error: Please check your API key. %s', 'fl-builder' ), $api::$response['error_message'] );
|
76 |
}
|
77 |
}
|
@@ -202,6 +203,7 @@ final class FLBuilderServiceConvertKit extends FLBuilderService {
|
|
202 |
if ( isset( $result->error ) ) {
|
203 |
$message = isset( $result->message ) ? $result->message : '';
|
204 |
$response['error'] = sprintf(
|
|
|
205 |
__( 'There was an error subscribing to ConvertKit. Error: %s', 'fl-builder' ),
|
206 |
$message
|
207 |
);
|
72 |
'api_key' => $fields['api_key'],
|
73 |
);
|
74 |
} else {
|
75 |
+
/* translators: %s: error */
|
76 |
$response['error'] = sprintf( __( 'Error: Please check your API key. %s', 'fl-builder' ), $api::$response['error_message'] );
|
77 |
}
|
78 |
}
|
203 |
if ( isset( $result->error ) ) {
|
204 |
$message = isset( $result->message ) ? $result->message : '';
|
205 |
$response['error'] = sprintf(
|
206 |
+
/* translators: %s: error */
|
207 |
__( 'There was an error subscribing to ConvertKit. Error: %s', 'fl-builder' ),
|
208 |
$message
|
209 |
);
|
classes/class-fl-builder-service-drip.php
CHANGED
@@ -84,12 +84,14 @@ final class FLBuilderServiceDrip extends FLBuilderService {
|
|
84 |
}
|
85 |
} catch ( Exception $e ) {
|
86 |
$response['error'] = sprintf(
|
|
|
87 |
__( 'Error: Please check your Account ID. %s', 'fl-builder' ),
|
88 |
$e->getMessage()
|
89 |
);
|
90 |
}
|
91 |
} catch ( Exception $e ) {
|
92 |
$response['error'] = sprintf(
|
|
|
93 |
__( 'Error: Please check your API token. %s', 'fl-builder' ),
|
94 |
$e->getMessage()
|
95 |
);
|
@@ -113,6 +115,7 @@ final class FLBuilderServiceDrip extends FLBuilderService {
|
|
113 |
'class' => 'fl-builder-service-connect-input',
|
114 |
'type' => 'text',
|
115 |
'label' => __( 'API Token', 'fl-builder' ),
|
|
|
116 |
'description' => sprintf( __( 'Your API Token can be found in your Drip account under Settings > My User Settings. Or, you can click this <a%s>direct link</a>.', 'fl-builder' ), ' href="https://www.getdrip.com/user/edit" target="_blank"' ),
|
117 |
'preview' => array(
|
118 |
'type' => 'none',
|
@@ -255,6 +258,7 @@ final class FLBuilderServiceDrip extends FLBuilderService {
|
|
255 |
}
|
256 |
} catch ( Exception $e ) {
|
257 |
$response['error'] = sprintf(
|
|
|
258 |
__( 'There was an error searching contact from Drip. %s', 'fl-builder' ),
|
259 |
$e->getMessage()
|
260 |
);
|
@@ -287,6 +291,7 @@ final class FLBuilderServiceDrip extends FLBuilderService {
|
|
287 |
}
|
288 |
} catch ( Exception $e ) {
|
289 |
$response['error'] = sprintf(
|
|
|
290 |
__( 'There was an error subscribing to Drip. %s', 'fl-builder' ),
|
291 |
$e->getMessage()
|
292 |
);
|
84 |
}
|
85 |
} catch ( Exception $e ) {
|
86 |
$response['error'] = sprintf(
|
87 |
+
/* translators: %s: error */
|
88 |
__( 'Error: Please check your Account ID. %s', 'fl-builder' ),
|
89 |
$e->getMessage()
|
90 |
);
|
91 |
}
|
92 |
} catch ( Exception $e ) {
|
93 |
$response['error'] = sprintf(
|
94 |
+
/* translators: %s: error */
|
95 |
__( 'Error: Please check your API token. %s', 'fl-builder' ),
|
96 |
$e->getMessage()
|
97 |
);
|
115 |
'class' => 'fl-builder-service-connect-input',
|
116 |
'type' => 'text',
|
117 |
'label' => __( 'API Token', 'fl-builder' ),
|
118 |
+
/* translators: %s: api url */
|
119 |
'description' => sprintf( __( 'Your API Token can be found in your Drip account under Settings > My User Settings. Or, you can click this <a%s>direct link</a>.', 'fl-builder' ), ' href="https://www.getdrip.com/user/edit" target="_blank"' ),
|
120 |
'preview' => array(
|
121 |
'type' => 'none',
|
258 |
}
|
259 |
} catch ( Exception $e ) {
|
260 |
$response['error'] = sprintf(
|
261 |
+
/* translators: %s: error */
|
262 |
__( 'There was an error searching contact from Drip. %s', 'fl-builder' ),
|
263 |
$e->getMessage()
|
264 |
);
|
291 |
}
|
292 |
} catch ( Exception $e ) {
|
293 |
$response['error'] = sprintf(
|
294 |
+
/* translators: %s: error */
|
295 |
__( 'There was an error subscribing to Drip. %s', 'fl-builder' ),
|
296 |
$e->getMessage()
|
297 |
);
|
classes/class-fl-builder-service-enormail.php
CHANGED
@@ -77,6 +77,7 @@ final class FLBuilderServiceEnormail extends FLBuilderService {
|
|
77 |
'api_key' => $fields['api_key'],
|
78 |
);
|
79 |
} else {
|
|
|
80 |
$response['error'] = sprintf(__( 'Error: Could not connect to Enormail. %s', 'fl-builder' ),
|
81 |
'(' . $api_response->error->http_code . ': ' . $api_response->error->message . ')'
|
82 |
);
|
@@ -215,6 +216,7 @@ final class FLBuilderServiceEnormail extends FLBuilderService {
|
|
215 |
$get_results = json_decode( $result );
|
216 |
|
217 |
if ( isset( $get_results->status ) && 'error' === $get_results->status ) {
|
|
|
218 |
$response['error'] = sprintf(__( 'There was an error subscribing to Enormail. %s', 'fl-builder' ),
|
219 |
'(' . $get_results->code . ': ' . $get_results->message . ')'
|
220 |
);
|
77 |
'api_key' => $fields['api_key'],
|
78 |
);
|
79 |
} else {
|
80 |
+
/* translators: %s: error */
|
81 |
$response['error'] = sprintf(__( 'Error: Could not connect to Enormail. %s', 'fl-builder' ),
|
82 |
'(' . $api_response->error->http_code . ': ' . $api_response->error->message . ')'
|
83 |
);
|
216 |
$get_results = json_decode( $result );
|
217 |
|
218 |
if ( isset( $get_results->status ) && 'error' === $get_results->status ) {
|
219 |
+
/* translators: %s: error */
|
220 |
$response['error'] = sprintf(__( 'There was an error subscribing to Enormail. %s', 'fl-builder' ),
|
221 |
'(' . $get_results->code . ': ' . $get_results->message . ')'
|
222 |
);
|
classes/class-fl-builder-service-getresponse.php
CHANGED
@@ -243,6 +243,7 @@ final class FLBuilderServiceGetResponse extends FLBuilderService {
|
|
243 |
}
|
244 |
} catch ( Exception $e ) {
|
245 |
$response['error'] = sprintf(
|
|
|
246 |
__( 'There was an error subscribing to GetResponse. %s', 'fl-builder' ),
|
247 |
$e->getMessage()
|
248 |
);
|
243 |
}
|
244 |
} catch ( Exception $e ) {
|
245 |
$response['error'] = sprintf(
|
246 |
+
/* translators: %s: error */
|
247 |
__( 'There was an error subscribing to GetResponse. %s', 'fl-builder' ),
|
248 |
$e->getMessage()
|
249 |
);
|
classes/class-fl-builder-service-godaddy-email-marketing.php
CHANGED
@@ -110,6 +110,7 @@ final class FLBuilderServiceGoDaddyEmailMarketing extends FLBuilderService {
|
|
110 |
'type' => 'text',
|
111 |
'label' => __( 'API Key', 'fl-builder' ),
|
112 |
'help' => __( 'Your API key from your GoDaddy Email Marketing account.', 'fl-builder' ),
|
|
|
113 |
'description' => sprintf( __( '<a%1$s>Sign in</a> to get your username and API key. <a%2$s>Signup</a> if you don\'t have a GoDaddy Email Marketing account.', 'fl-builder' ), ' href="https://gem.godaddy.com/mwp/accounts" target="_blank"', ' href="https://sso.godaddy.com/account/create?path=/wordpress_plugin&app=gem&realm=idp&ssoreturnpath=/%3Fpath%3D%2Fwordpress_plugin%26app%3Dgem%26realm%3Didp" target="_blank"' ),
|
114 |
'preview' => array(
|
115 |
'type' => 'none',
|
110 |
'type' => 'text',
|
111 |
'label' => __( 'API Key', 'fl-builder' ),
|
112 |
'help' => __( 'Your API key from your GoDaddy Email Marketing account.', 'fl-builder' ),
|
113 |
+
/* translators: 1: Godaddy account page: 2: Godaddy signup page */
|
114 |
'description' => sprintf( __( '<a%1$s>Sign in</a> to get your username and API key. <a%2$s>Signup</a> if you don\'t have a GoDaddy Email Marketing account.', 'fl-builder' ), ' href="https://gem.godaddy.com/mwp/accounts" target="_blank"', ' href="https://sso.godaddy.com/account/create?path=/wordpress_plugin&app=gem&realm=idp&ssoreturnpath=/%3Fpath%3D%2Fwordpress_plugin%26app%3Dgem%26realm%3Didp" target="_blank"' ),
|
115 |
'preview' => array(
|
116 |
'type' => 'none',
|
classes/class-fl-builder-service-icontact-pro.php
CHANGED
@@ -103,7 +103,8 @@ final class FLBuilderServiceIContactPro extends FLBuilderService {
|
|
103 |
'profile_id' => $fields['profile_id'],
|
104 |
);
|
105 |
} catch ( Exception $e ) {
|
106 |
-
$errors
|
|
|
107 |
$response['error'] = sprintf( __( 'Error: Could not connect to iContact Pro. %s', 'fl-builder' ), $errors[0] );
|
108 |
}
|
109 |
}
|
@@ -148,6 +149,7 @@ final class FLBuilderServiceIContactPro extends FLBuilderService {
|
|
148 |
'type' => 'text',
|
149 |
'label' => __( 'App Password', 'fl-builder' ),
|
150 |
'help' => __( 'Your iContact Pro app password.', 'fl-builder' ),
|
|
|
151 |
'description' => sprintf( __( 'You must <a%1$s>create an app</a> in iContact Pro to obtain an app ID and password. Please see <a%2$s>the iContact docs</a> for complete instructions.', 'fl-builder' ), ' href="https://app.icontactpro.com/MKT/Settings/Api?returnUrl=/MKT/Settings" target="_blank"', ' href="http://www.icontact.com/developerportal/api-documentation/vocus-register-your-app/" target="_blank"' ),
|
152 |
'preview' => array(
|
153 |
'type' => 'none',
|
@@ -171,6 +173,7 @@ final class FLBuilderServiceIContactPro extends FLBuilderService {
|
|
171 |
'type' => 'text',
|
172 |
'label' => __( 'Profile ID', 'fl-builder' ),
|
173 |
'help' => __( 'Your iContact Pro Profile ID.', 'fl-builder' ),
|
|
|
174 |
'description' => sprintf( __( 'Your Company and Profile ID can also be found in the <a%1$s>iContact Pro API settings</a> under Account Information.', 'fl-builder' ), ' href="https://app.icontactpro.com/MKT/Settings/Api?returnUrl=/MKT/Settings" target="_blank"' ),
|
175 |
'preview' => array(
|
176 |
'type' => 'none',
|
@@ -209,7 +212,8 @@ final class FLBuilderServiceIContactPro extends FLBuilderService {
|
|
209 |
$lists = $api->getLists();
|
210 |
$response['html'] = $this->render_list_field( $lists, $settings );
|
211 |
} catch ( Exception $e ) {
|
212 |
-
$errors
|
|
|
213 |
$response['error'] = sprintf( __( 'Error: Could not connect to iContact Pro. %s', 'fl-builder' ), $errors[0] );
|
214 |
}
|
215 |
|
@@ -304,7 +308,8 @@ final class FLBuilderServiceIContactPro extends FLBuilderService {
|
|
304 |
|
305 |
$api->subscribeContactToList( $result->contactId, $settings->list_id ); // @codingStandardsIgnoreLine
|
306 |
} catch ( Exception $e ) {
|
307 |
-
$errors
|
|
|
308 |
$response['error'] = sprintf( __( 'There was an error subscribing to iContact Pro. %s', 'fl-builder' ), $errors[0] );
|
309 |
}
|
310 |
}
|
103 |
'profile_id' => $fields['profile_id'],
|
104 |
);
|
105 |
} catch ( Exception $e ) {
|
106 |
+
$errors = $api->getErrors();
|
107 |
+
/* translators: %s: error */
|
108 |
$response['error'] = sprintf( __( 'Error: Could not connect to iContact Pro. %s', 'fl-builder' ), $errors[0] );
|
109 |
}
|
110 |
}
|
149 |
'type' => 'text',
|
150 |
'label' => __( 'App Password', 'fl-builder' ),
|
151 |
'help' => __( 'Your iContact Pro app password.', 'fl-builder' ),
|
152 |
+
/* translators: 1: create app url: 2: register url */
|
153 |
'description' => sprintf( __( 'You must <a%1$s>create an app</a> in iContact Pro to obtain an app ID and password. Please see <a%2$s>the iContact docs</a> for complete instructions.', 'fl-builder' ), ' href="https://app.icontactpro.com/MKT/Settings/Api?returnUrl=/MKT/Settings" target="_blank"', ' href="http://www.icontact.com/developerportal/api-documentation/vocus-register-your-app/" target="_blank"' ),
|
154 |
'preview' => array(
|
155 |
'type' => 'none',
|
173 |
'type' => 'text',
|
174 |
'label' => __( 'Profile ID', 'fl-builder' ),
|
175 |
'help' => __( 'Your iContact Pro Profile ID.', 'fl-builder' ),
|
176 |
+
/* translators: 1: api link */
|
177 |
'description' => sprintf( __( 'Your Company and Profile ID can also be found in the <a%1$s>iContact Pro API settings</a> under Account Information.', 'fl-builder' ), ' href="https://app.icontactpro.com/MKT/Settings/Api?returnUrl=/MKT/Settings" target="_blank"' ),
|
178 |
'preview' => array(
|
179 |
'type' => 'none',
|
212 |
$lists = $api->getLists();
|
213 |
$response['html'] = $this->render_list_field( $lists, $settings );
|
214 |
} catch ( Exception $e ) {
|
215 |
+
$errors = $api->getErrors();
|
216 |
+
/* translators: %s: error */
|
217 |
$response['error'] = sprintf( __( 'Error: Could not connect to iContact Pro. %s', 'fl-builder' ), $errors[0] );
|
218 |
}
|
219 |
|
308 |
|
309 |
$api->subscribeContactToList( $result->contactId, $settings->list_id ); // @codingStandardsIgnoreLine
|
310 |
} catch ( Exception $e ) {
|
311 |
+
$errors = $api->getErrors();
|
312 |
+
/* translators: %s: error */
|
313 |
$response['error'] = sprintf( __( 'There was an error subscribing to iContact Pro. %s', 'fl-builder' ), $errors[0] );
|
314 |
}
|
315 |
}
|
classes/class-fl-builder-service-icontact.php
CHANGED
@@ -91,7 +91,8 @@ final class FLBuilderServiceIContact extends FLBuilderService {
|
|
91 |
'app_password' => $fields['app_password'],
|
92 |
);
|
93 |
} catch ( Exception $e ) {
|
94 |
-
$errors
|
|
|
95 |
$response['error'] = sprintf( __( 'Error: Could not connect to iContact. %s', 'fl-builder' ), $errors[0] );
|
96 |
}
|
97 |
}
|
@@ -136,6 +137,7 @@ final class FLBuilderServiceIContact extends FLBuilderService {
|
|
136 |
'type' => 'text',
|
137 |
'label' => __( 'App Password', 'fl-builder' ),
|
138 |
'help' => __( 'Your iContact app password.', 'fl-builder' ),
|
|
|
139 |
'description' => sprintf( __( 'You must <a%1$s>create an app</a> in iContact to obtain an app ID and password. Please see <a%2$s>the iContact docs</a> for complete instructions.', 'fl-builder' ), ' href="https://app.icontact.com/icp/core/registerapp/" target="_blank"', ' href="http://www.icontact.com/developerportal/api-documentation/vocus-register-your-app/" target="_blank"' ),
|
140 |
'preview' => array(
|
141 |
'type' => 'none',
|
@@ -172,7 +174,8 @@ final class FLBuilderServiceIContact extends FLBuilderService {
|
|
172 |
$lists = $api->getLists();
|
173 |
$response['html'] = $this->render_list_field( $lists, $settings );
|
174 |
} catch ( Exception $e ) {
|
175 |
-
$errors
|
|
|
176 |
$response['error'] = sprintf( __( 'Error: Could not connect to iContact. %s', 'fl-builder' ), $errors[0] );
|
177 |
}
|
178 |
|
@@ -267,7 +270,8 @@ final class FLBuilderServiceIContact extends FLBuilderService {
|
|
267 |
// @codingStandardsIgnoreLine
|
268 |
$api->subscribeContactToList( $result->contactId, $settings->list_id );
|
269 |
} catch ( Exception $e ) {
|
270 |
-
$errors
|
|
|
271 |
$response['error'] = sprintf( __( 'There was an error subscribing to iContact. %s', 'fl-builder' ), $errors[0] );
|
272 |
}
|
273 |
}
|
91 |
'app_password' => $fields['app_password'],
|
92 |
);
|
93 |
} catch ( Exception $e ) {
|
94 |
+
$errors = $api->getErrors();
|
95 |
+
/* translators: %s: error */
|
96 |
$response['error'] = sprintf( __( 'Error: Could not connect to iContact. %s', 'fl-builder' ), $errors[0] );
|
97 |
}
|
98 |
}
|
137 |
'type' => 'text',
|
138 |
'label' => __( 'App Password', 'fl-builder' ),
|
139 |
'help' => __( 'Your iContact app password.', 'fl-builder' ),
|
140 |
+
/* translators: 1: create app url: 2: docs url */
|
141 |
'description' => sprintf( __( 'You must <a%1$s>create an app</a> in iContact to obtain an app ID and password. Please see <a%2$s>the iContact docs</a> for complete instructions.', 'fl-builder' ), ' href="https://app.icontact.com/icp/core/registerapp/" target="_blank"', ' href="http://www.icontact.com/developerportal/api-documentation/vocus-register-your-app/" target="_blank"' ),
|
142 |
'preview' => array(
|
143 |
'type' => 'none',
|
174 |
$lists = $api->getLists();
|
175 |
$response['html'] = $this->render_list_field( $lists, $settings );
|
176 |
} catch ( Exception $e ) {
|
177 |
+
$errors = $api->getErrors();
|
178 |
+
/* translators: %s: error */
|
179 |
$response['error'] = sprintf( __( 'Error: Could not connect to iContact. %s', 'fl-builder' ), $errors[0] );
|
180 |
}
|
181 |
|
270 |
// @codingStandardsIgnoreLine
|
271 |
$api->subscribeContactToList( $result->contactId, $settings->list_id );
|
272 |
} catch ( Exception $e ) {
|
273 |
+
$errors = $api->getErrors();
|
274 |
+
/* translators: %s: error */
|
275 |
$response['error'] = sprintf( __( 'There was an error subscribing to iContact. %s', 'fl-builder' ), $errors[0] );
|
276 |
}
|
277 |
}
|
classes/class-fl-builder-service-infusionsoft.php
CHANGED
@@ -44,6 +44,7 @@ final class FLBuilderServiceInfusionsoft extends FLBuilderService {
|
|
44 |
} catch ( iSDKException $e ) {
|
45 |
$this->api_instance = new stdClass();
|
46 |
$this->api_instance->error = sprintf(
|
|
|
47 |
__( 'There was an error connecting to Infusionsoft. %s', 'fl-builder' ),
|
48 |
$e->getMessage()
|
49 |
);
|
@@ -281,6 +282,7 @@ final class FLBuilderServiceInfusionsoft extends FLBuilderService {
|
|
281 |
}
|
282 |
} catch ( iSDKException $e ) {
|
283 |
$response['error'] = sprintf(
|
|
|
284 |
__( 'There was an error subscribing to Infusionsoft. %s', 'fl-builder' ),
|
285 |
$e->getMessage()
|
286 |
);
|
44 |
} catch ( iSDKException $e ) {
|
45 |
$this->api_instance = new stdClass();
|
46 |
$this->api_instance->error = sprintf(
|
47 |
+
/* translators: %s: error */
|
48 |
__( 'There was an error connecting to Infusionsoft. %s', 'fl-builder' ),
|
49 |
$e->getMessage()
|
50 |
);
|
282 |
}
|
283 |
} catch ( iSDKException $e ) {
|
284 |
$response['error'] = sprintf(
|
285 |
+
/* translators: %s: error */
|
286 |
__( 'There was an error subscribing to Infusionsoft. %s', 'fl-builder' ),
|
287 |
$e->getMessage()
|
288 |
);
|
classes/class-fl-builder-service-mailchimp.php
CHANGED
@@ -338,6 +338,7 @@ final class FLBuilderServiceMailChimp extends FLBuilderService {
|
|
338 |
|
339 |
if ( $api->getLastError() ) {
|
340 |
$response['error'] = sprintf(
|
|
|
341 |
__( 'There was an error subscribing to MailChimp. %s', 'fl-builder' ),
|
342 |
$api->getLastError()
|
343 |
);
|
338 |
|
339 |
if ( $api->getLastError() ) {
|
340 |
$response['error'] = sprintf(
|
341 |
+
/* translators: %s: error */
|
342 |
__( 'There was an error subscribing to MailChimp. %s', 'fl-builder' ),
|
343 |
$api->getLastError()
|
344 |
);
|
classes/class-fl-builder-service-mailerlite.php
CHANGED
@@ -84,6 +84,7 @@ final class FLBuilderServiceMailerLite extends FLBuilderService {
|
|
84 |
'api_key' => $fields['api_key'],
|
85 |
);
|
86 |
} else {
|
|
|
87 |
$response['error'] = sprintf( __( 'Error: Could not connect to MailerLite. %s', 'fl-builder' ), $get_api_response['http_code'] );
|
88 |
}
|
89 |
}
|
@@ -235,6 +236,7 @@ final class FLBuilderServiceMailerLite extends FLBuilderService {
|
|
235 |
$result = $api->getResponseInfo();
|
236 |
|
237 |
if ( 200 !== $result['http_code'] ) {
|
|
|
238 |
$response['error'] = sprintf( __( 'There was an error subscribing to MailerLite. Code: %s', 'fl-builder' ), $result['http_code'] );
|
239 |
}
|
240 |
}
|
84 |
'api_key' => $fields['api_key'],
|
85 |
);
|
86 |
} else {
|
87 |
+
/* translators: %s: error */
|
88 |
$response['error'] = sprintf( __( 'Error: Could not connect to MailerLite. %s', 'fl-builder' ), $get_api_response['http_code'] );
|
89 |
}
|
90 |
}
|
236 |
$result = $api->getResponseInfo();
|
237 |
|
238 |
if ( 200 !== $result['http_code'] ) {
|
239 |
+
/* translators: %s: error */
|
240 |
$response['error'] = sprintf( __( 'There was an error subscribing to MailerLite. Code: %s', 'fl-builder' ), $result['http_code'] );
|
241 |
}
|
242 |
}
|
classes/class-fl-builder-service-mailpoet.php
CHANGED
@@ -191,6 +191,7 @@ final class FLBuilderServiceMailPoet extends FLBuilderService {
|
|
191 |
$errors = $subscribed->getErrors();
|
192 |
|
193 |
if ( false !== $errors ) {
|
|
|
194 |
$response['error'] = sprintf( __( 'There was an error subscribing to MailPoet. %s', 'fl-builder' ), $errors[0] );
|
195 |
}
|
196 |
}
|
191 |
$errors = $subscribed->getErrors();
|
192 |
|
193 |
if ( false !== $errors ) {
|
194 |
+
/* translators: %s: error */
|
195 |
$response['error'] = sprintf( __( 'There was an error subscribing to MailPoet. %s', 'fl-builder' ), $errors[0] );
|
196 |
}
|
197 |
}
|
classes/class-fl-builder-service-mailrelay.php
CHANGED
@@ -92,6 +92,7 @@ final class FLBuilderServiceMailrelay extends FLBuilderService {
|
|
92 |
'api_key' => $fields['api_key'],
|
93 |
);
|
94 |
} else {
|
|
|
95 |
$response['error'] = sprintf( __( 'Error: Could not connect to Mailrelay. %s', 'fl-builder' ), $result['error'] );
|
96 |
}
|
97 |
}
|
@@ -157,6 +158,7 @@ final class FLBuilderServiceMailrelay extends FLBuilderService {
|
|
157 |
);
|
158 |
|
159 |
if ( isset( $result['error'] ) ) {
|
|
|
160 |
$response['error'] = sprintf( __( 'Error: Please check your API key. %s', 'fl-builder' ), $result['error'] );
|
161 |
} else {
|
162 |
$response['html'] = $this->render_list_field( $result['data'], $settings );
|
@@ -230,6 +232,7 @@ final class FLBuilderServiceMailrelay extends FLBuilderService {
|
|
230 |
) );
|
231 |
|
232 |
if ( isset( $result['error'] ) ) {
|
|
|
233 |
$response['error'] = sprintf( __( 'There was an error subscribing to Mailrelay. %s', 'fl-builder' ), $result['error'] );
|
234 |
}
|
235 |
}
|
92 |
'api_key' => $fields['api_key'],
|
93 |
);
|
94 |
} else {
|
95 |
+
/* translators: %s: error */
|
96 |
$response['error'] = sprintf( __( 'Error: Could not connect to Mailrelay. %s', 'fl-builder' ), $result['error'] );
|
97 |
}
|
98 |
}
|
158 |
);
|
159 |
|
160 |
if ( isset( $result['error'] ) ) {
|
161 |
+
/* translators: %s: error */
|
162 |
$response['error'] = sprintf( __( 'Error: Please check your API key. %s', 'fl-builder' ), $result['error'] );
|
163 |
} else {
|
164 |
$response['html'] = $this->render_list_field( $result['data'], $settings );
|
232 |
) );
|
233 |
|
234 |
if ( isset( $result['error'] ) ) {
|
235 |
+
/* translators: %s: error */
|
236 |
$response['error'] = sprintf( __( 'There was an error subscribing to Mailrelay. %s', 'fl-builder' ), $result['error'] );
|
237 |
}
|
238 |
}
|
classes/class-fl-builder-service-mautic.php
CHANGED
@@ -104,7 +104,7 @@ final class FLBuilderServiceMautic extends FLBuilderService {
|
|
104 |
if ( isset( $get_response['errors'] ) && count( $get_response['errors'] ) > 0 ) {
|
105 |
$error_message = '[' . $get_response['errors'][0]['code'] . '] ' . $get_response['errors'][0]['message'];
|
106 |
}
|
107 |
-
|
108 |
$response['error'] = sprintf( __( 'Error: Could not connect to Mautic. %s', 'fl-builder' ), $error_message );
|
109 |
}
|
110 |
}
|
@@ -277,6 +277,7 @@ final class FLBuilderServiceMautic extends FLBuilderService {
|
|
277 |
|
278 |
if ( isset( $get_api_response['errors'] ) && count( $get_api_response['errors'] ) > 0 ) {
|
279 |
$response['error'] = sprintf(
|
|
|
280 |
__( 'There was an error subscribing to Mautic. %s', 'fl-builder' ),
|
281 |
'[' . $get_api_response['errors'][0]['code'] . '] ' . $get_api_response['errors'][0]['message']
|
282 |
);
|
104 |
if ( isset( $get_response['errors'] ) && count( $get_response['errors'] ) > 0 ) {
|
105 |
$error_message = '[' . $get_response['errors'][0]['code'] . '] ' . $get_response['errors'][0]['message'];
|
106 |
}
|
107 |
+
/* translators: %s: error */
|
108 |
$response['error'] = sprintf( __( 'Error: Could not connect to Mautic. %s', 'fl-builder' ), $error_message );
|
109 |
}
|
110 |
}
|
277 |
|
278 |
if ( isset( $get_api_response['errors'] ) && count( $get_api_response['errors'] ) > 0 ) {
|
279 |
$response['error'] = sprintf(
|
280 |
+
/* translators: %s: error */
|
281 |
__( 'There was an error subscribing to Mautic. %s', 'fl-builder' ),
|
282 |
'[' . $get_api_response['errors'][0]['code'] . '] ' . $get_api_response['errors'][0]['message']
|
283 |
);
|
classes/class-fl-builder-service-ontraport.php
CHANGED
@@ -86,6 +86,7 @@ final class FLBuilderServiceOntraport extends FLBuilderService {
|
|
86 |
);
|
87 |
} else {
|
88 |
$response['error'] = sprintf(
|
|
|
89 |
__( 'Error: Please check your API token. Code: %s', 'fl-builder' ),
|
90 |
$status_code
|
91 |
);
|
@@ -247,6 +248,7 @@ final class FLBuilderServiceOntraport extends FLBuilderService {
|
|
247 |
|
248 |
if ( 200 !== $api->getLastStatusCode() ) {
|
249 |
$response['error'] = sprintf(
|
|
|
250 |
__( 'There was an error subscribing to Ontraport. Code: %s', 'fl-builder' ),
|
251 |
$api->getLastStatusCode()
|
252 |
);
|
86 |
);
|
87 |
} else {
|
88 |
$response['error'] = sprintf(
|
89 |
+
/* translators: %s: error code */
|
90 |
__( 'Error: Please check your API token. Code: %s', 'fl-builder' ),
|
91 |
$status_code
|
92 |
);
|
248 |
|
249 |
if ( 200 !== $api->getLastStatusCode() ) {
|
250 |
$response['error'] = sprintf(
|
251 |
+
/* translators: %s: error code */
|
252 |
__( 'There was an error subscribing to Ontraport. Code: %s', 'fl-builder' ),
|
253 |
$api->getLastStatusCode()
|
254 |
);
|
classes/class-fl-builder-service-sendinblue.php
CHANGED
@@ -71,6 +71,7 @@ final class FLBuilderServiceSendinBlue extends FLBuilderService {
|
|
71 |
if ( ! is_array( $result ) ) {
|
72 |
$response['error'] = __( 'There was an error connecting to SendinBlue. Please try again.', 'fl-builder' );
|
73 |
} elseif ( isset( $result['code'] ) && 'failure' == $result['code'] ) {
|
|
|
74 |
$response['error'] = sprintf( __( 'Error: Could not connect to SendinBlue. %s', 'fl-builder' ), $result['message'] );
|
75 |
} else {
|
76 |
$response['data'] = array(
|
@@ -129,6 +130,7 @@ final class FLBuilderServiceSendinBlue extends FLBuilderService {
|
|
129 |
if ( ! is_array( $result ) ) {
|
130 |
$response['error'] = __( 'There was an error connecting to SendinBlue. Please try again.', 'fl-builder' );
|
131 |
} elseif ( isset( $result['code'] ) && 'failure' == $result['code'] ) {
|
|
|
132 |
$response['error'] = sprintf( __( 'Error: Could not connect to SendinBlue. %s', 'fl-builder' ), $result['message'] );
|
133 |
} else {
|
134 |
$response['html'] = $this->render_list_field( $result['data']['lists'], $settings );
|
@@ -222,6 +224,7 @@ final class FLBuilderServiceSendinBlue extends FLBuilderService {
|
|
222 |
if ( ! is_array( $result ) ) {
|
223 |
$response['error'] = __( 'There was an error subscribing to SendinBlue. Please try again.', 'fl-builder' );
|
224 |
} elseif ( isset( $result['code'] ) && 'failure' == $result['code'] ) {
|
|
|
225 |
$response['error'] = sprintf( __( 'Error: Could not subscribe to SendinBlue. %s', 'fl-builder' ), $result['message'] );
|
226 |
}
|
227 |
}
|
71 |
if ( ! is_array( $result ) ) {
|
72 |
$response['error'] = __( 'There was an error connecting to SendinBlue. Please try again.', 'fl-builder' );
|
73 |
} elseif ( isset( $result['code'] ) && 'failure' == $result['code'] ) {
|
74 |
+
/* translators: %s: error */
|
75 |
$response['error'] = sprintf( __( 'Error: Could not connect to SendinBlue. %s', 'fl-builder' ), $result['message'] );
|
76 |
} else {
|
77 |
$response['data'] = array(
|
130 |
if ( ! is_array( $result ) ) {
|
131 |
$response['error'] = __( 'There was an error connecting to SendinBlue. Please try again.', 'fl-builder' );
|
132 |
} elseif ( isset( $result['code'] ) && 'failure' == $result['code'] ) {
|
133 |
+
/* translators: %s: error */
|
134 |
$response['error'] = sprintf( __( 'Error: Could not connect to SendinBlue. %s', 'fl-builder' ), $result['message'] );
|
135 |
} else {
|
136 |
$response['html'] = $this->render_list_field( $result['data']['lists'], $settings );
|
224 |
if ( ! is_array( $result ) ) {
|
225 |
$response['error'] = __( 'There was an error subscribing to SendinBlue. Please try again.', 'fl-builder' );
|
226 |
} elseif ( isset( $result['code'] ) && 'failure' == $result['code'] ) {
|
227 |
+
/* translators: %s: error */
|
228 |
$response['error'] = sprintf( __( 'Error: Could not subscribe to SendinBlue. %s', 'fl-builder' ), $result['message'] );
|
229 |
}
|
230 |
}
|
classes/class-fl-builder-service-sendy.php
CHANGED
@@ -90,6 +90,7 @@ final class FLBuilderServiceSendy extends FLBuilderService {
|
|
90 |
'list_id' => $fields['list_id'],
|
91 |
);
|
92 |
} else {
|
|
|
93 |
$response['error'] = sprintf( __( 'Error: Could not connect to Sendy. %s', 'fl-builder' ), $get_api_response['message'] );
|
94 |
}
|
95 |
}
|
@@ -197,6 +198,7 @@ final class FLBuilderServiceSendy extends FLBuilderService {
|
|
197 |
) );
|
198 |
|
199 |
if ( false === $get_api_response['status'] ) {
|
|
|
200 |
$response['error'] = sprintf( __( 'There was an error subscribing to Sendy. %s', 'fl-builder' ), $get_api_response['message'] );
|
201 |
}
|
202 |
}
|
90 |
'list_id' => $fields['list_id'],
|
91 |
);
|
92 |
} else {
|
93 |
+
/* translators: %s: error */
|
94 |
$response['error'] = sprintf( __( 'Error: Could not connect to Sendy. %s', 'fl-builder' ), $get_api_response['message'] );
|
95 |
}
|
96 |
}
|
198 |
) );
|
199 |
|
200 |
if ( false === $get_api_response['status'] ) {
|
201 |
+
/* translators: %s: error */
|
202 |
$response['error'] = sprintf( __( 'There was an error subscribing to Sendy. %s', 'fl-builder' ), $get_api_response['message'] );
|
203 |
}
|
204 |
}
|
classes/class-fl-builder-ui-settings-forms.php
CHANGED
@@ -25,6 +25,7 @@ class FLBuilderUISettingsForms {
|
|
25 |
add_action( 'wp_enqueue_scripts', __CLASS__ . '::enqueue_settings_config', 11 );
|
26 |
add_action( 'wp_footer', __CLASS__ . '::init_js_config', 1 );
|
27 |
add_action( 'wp_footer', __CLASS__ . '::render_js_templates', 11 );
|
|
|
28 |
}
|
29 |
|
30 |
/**
|
@@ -66,8 +67,7 @@ class FLBuilderUISettingsForms {
|
|
66 |
wp_raise_memory_limit( 'bb-plugin' );
|
67 |
}
|
68 |
|
69 |
-
$type
|
70 |
-
$handler = 'FLBuilderUISettingsForms::compress_settings_config';
|
71 |
|
72 |
if ( 'modules' === $type ) {
|
73 |
$settings = FLBuilderUISettingsForms::get_modules_js_config();
|
@@ -75,13 +75,9 @@ class FLBuilderUISettingsForms {
|
|
75 |
$settings = FLBuilderUISettingsForms::get_js_config();
|
76 |
}
|
77 |
|
78 |
-
if ( @ini_get( 'zlib.output_compression' ) ) { // @codingStandardsIgnoreLine
|
79 |
-
@ini_set( 'zlib.output_compression', 'Off' ); // @codingStandardsIgnoreLine
|
80 |
-
$handler = null;
|
81 |
-
}
|
82 |
header( 'Content-Type: application/javascript' );
|
83 |
|
84 |
-
ob_start(
|
85 |
include FL_BUILDER_DIR . 'includes/ui-settings-config.php';
|
86 |
ob_end_flush();
|
87 |
|
@@ -93,7 +89,7 @@ class FLBuilderUISettingsForms {
|
|
93 |
* Attempts to use the output buffer gzip handler to compress
|
94 |
* the settings config. We have to do it this way to prevent
|
95 |
* errors we were running into on some hosts.
|
96 |
-
*
|
97 |
* @since 2.1.0.2
|
98 |
* @param string $buffer $mode
|
99 |
* @return string
|
@@ -314,8 +310,9 @@ class FLBuilderUISettingsForms {
|
|
314 |
'title' => $module->name,
|
315 |
'tabs' => $module->form,
|
316 |
'assets' => array(
|
317 |
-
'css'
|
318 |
-
'js'
|
|
|
319 |
),
|
320 |
);
|
321 |
}
|
@@ -918,7 +915,7 @@ class FLBuilderUISettingsForms {
|
|
918 |
} else {
|
919 |
echo '<td> </td><td>';
|
920 |
}
|
921 |
-
|
922 |
echo '<a href="javascript:void(0);" onclick="return false;" class="fl-builder-field-add fl-builder-button" data-field="' . $arr_name . '">' . sprintf( _x( 'Add %s', 'Field name to add.', 'fl-builder' ), $field['label'] ) . '</a>';
|
923 |
echo '</td>';
|
924 |
echo '</tr>';
|
@@ -948,6 +945,15 @@ class FLBuilderUISettingsForms {
|
|
948 |
'html' => $html,
|
949 |
);
|
950 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
951 |
}
|
952 |
|
953 |
FLBuilderUISettingsForms::init();
|
25 |
add_action( 'wp_enqueue_scripts', __CLASS__ . '::enqueue_settings_config', 11 );
|
26 |
add_action( 'wp_footer', __CLASS__ . '::init_js_config', 1 );
|
27 |
add_action( 'wp_footer', __CLASS__ . '::render_js_templates', 11 );
|
28 |
+
add_filter( 'fl_builder_ui_js_config', __CLASS__ . '::layout_css_js' );
|
29 |
}
|
30 |
|
31 |
/**
|
67 |
wp_raise_memory_limit( 'bb-plugin' );
|
68 |
}
|
69 |
|
70 |
+
$type = sanitize_key( $_GET['fl_builder_load_settings_config'] );
|
|
|
71 |
|
72 |
if ( 'modules' === $type ) {
|
73 |
$settings = FLBuilderUISettingsForms::get_modules_js_config();
|
75 |
$settings = FLBuilderUISettingsForms::get_js_config();
|
76 |
}
|
77 |
|
|
|
|
|
|
|
|
|
78 |
header( 'Content-Type: application/javascript' );
|
79 |
|
80 |
+
ob_start();
|
81 |
include FL_BUILDER_DIR . 'includes/ui-settings-config.php';
|
82 |
ob_end_flush();
|
83 |
|
89 |
* Attempts to use the output buffer gzip handler to compress
|
90 |
* the settings config. We have to do it this way to prevent
|
91 |
* errors we were running into on some hosts.
|
92 |
+
* @deprecated 2.2.2
|
93 |
* @since 2.1.0.2
|
94 |
* @param string $buffer $mode
|
95 |
* @return string
|
310 |
'title' => $module->name,
|
311 |
'tabs' => $module->form,
|
312 |
'assets' => array(
|
313 |
+
'css' => $css,
|
314 |
+
'js' => $js,
|
315 |
+
'jsurl' => $js_file_uri,
|
316 |
),
|
317 |
);
|
318 |
}
|
915 |
} else {
|
916 |
echo '<td> </td><td>';
|
917 |
}
|
918 |
+
/* translators: %s: field name to add */
|
919 |
echo '<a href="javascript:void(0);" onclick="return false;" class="fl-builder-field-add fl-builder-button" data-field="' . $arr_name . '">' . sprintf( _x( 'Add %s', 'Field name to add.', 'fl-builder' ), $field['label'] ) . '</a>';
|
920 |
echo '</td>';
|
921 |
echo '</tr>';
|
945 |
'html' => $html,
|
946 |
);
|
947 |
}
|
948 |
+
|
949 |
+
static public function layout_css_js( $config ) {
|
950 |
+
|
951 |
+
$post_id = $config['postId'];
|
952 |
+
$settings = get_post_meta( $post_id, '_fl_builder_data_settings', true );
|
953 |
+
|
954 |
+
$config['layout_css_js'] = ( ( isset( $settings->css ) && '' !== $settings->css ) || ( isset( $settings->js ) && '' !== $settings->js ) ) ? true : false;
|
955 |
+
return $config;
|
956 |
+
}
|
957 |
}
|
958 |
|
959 |
FLBuilderUISettingsForms::init();
|
classes/class-fl-builder-usage.php
CHANGED
@@ -99,6 +99,7 @@ final class FLBuilderUsage {
|
|
99 |
);
|
100 |
|
101 |
$message = sprintf(
|
|
|
102 |
__( 'Would you like to help us improve %s by sending anonymous usage data?', 'fl-builder' ),
|
103 |
FLBuilderModel::get_branding()
|
104 |
);
|
99 |
);
|
100 |
|
101 |
$message = sprintf(
|
102 |
+
/* translators: %s: branded builder name */
|
103 |
__( 'Would you like to help us improve %s by sending anonymous usage data?', 'fl-builder' ),
|
104 |
FLBuilderModel::get_branding()
|
105 |
);
|
classes/class-fl-builder-wp-blocks.php
CHANGED
@@ -79,12 +79,17 @@ final class FLBuilderWPBlocks {
|
|
79 |
'id' => $post->ID,
|
80 |
),
|
81 |
'strings' => array(
|
|
|
82 |
'active' => sprintf( _x( '%1$s is currently active for this %2$s.', '%1$s branded builder name. %2$s post type name.', 'fl-builder' ), $branding, strtolower( $post_type_name ) ),
|
|
|
83 |
'convert' => sprintf( _x( 'Convert to %s', '%s branded builder name.', 'fl-builder' ), $branding ),
|
|
|
84 |
'description' => sprintf( _x( '%s lets you drag and drop your layout on the frontend.', '%s branded builder name.', 'fl-builder' ), $branding ),
|
85 |
'editor' => __( 'Use Standard Editor', 'fl-builder' ),
|
|
|
86 |
'launch' => sprintf( _x( 'Launch %s', '%s branded builder name.', 'fl-builder' ), $branding ),
|
87 |
'title' => $branding,
|
|
|
88 |
'view' => sprintf( _x( 'View %s', '%s post type name.', 'fl-builder' ), $post_type_name ),
|
89 |
'warning' => __( 'Switching to the native WordPress editor will disable your Beaver Builder layout until it is enabled again. Any edits made in the WordPress editor will not be converted to your Page Builded layout. Do you want to continue?', 'fl-builder' ),
|
90 |
),
|
79 |
'id' => $post->ID,
|
80 |
),
|
81 |
'strings' => array(
|
82 |
+
/* translators: 1: branded builder name: 2: post type name */
|
83 |
'active' => sprintf( _x( '%1$s is currently active for this %2$s.', '%1$s branded builder name. %2$s post type name.', 'fl-builder' ), $branding, strtolower( $post_type_name ) ),
|
84 |
+
/* translators: %s: post type name */
|
85 |
'convert' => sprintf( _x( 'Convert to %s', '%s branded builder name.', 'fl-builder' ), $branding ),
|
86 |
+
/* translators: %s: branded builder name */
|
87 |
'description' => sprintf( _x( '%s lets you drag and drop your layout on the frontend.', '%s branded builder name.', 'fl-builder' ), $branding ),
|
88 |
'editor' => __( 'Use Standard Editor', 'fl-builder' ),
|
89 |
+
/* translators: %s: branded builder name */
|
90 |
'launch' => sprintf( _x( 'Launch %s', '%s branded builder name.', 'fl-builder' ), $branding ),
|
91 |
'title' => $branding,
|
92 |
+
/* translators: %s: post type name */
|
93 |
'view' => sprintf( _x( 'View %s', '%s post type name.', 'fl-builder' ), $post_type_name ),
|
94 |
'warning' => __( 'Switching to the native WordPress editor will disable your Beaver Builder layout until it is enabled again. Any edits made in the WordPress editor will not be converted to your Page Builded layout. Do you want to continue?', 'fl-builder' ),
|
95 |
),
|
classes/class-fl-builder-wpcli-command.php
CHANGED
@@ -62,9 +62,11 @@ class FLbuilder_WPCLI_Command extends WP_CLI_Command {
|
|
62 |
$blog_id = $blog['blog_id'];
|
63 |
switch_to_blog( $blog_id );
|
64 |
FLBuilderModel::delete_asset_cache_for_all_posts();
|
|
|
65 |
WP_CLI::success( sprintf( _x( 'Cleared the page builder cache for blog %s', 'current blog name', 'fl-builder' ), get_option( 'home' ) ) );
|
66 |
if ( $all ) {
|
67 |
FLCustomizer::refresh_css();
|
|
|
68 |
WP_CLI::success( sprintf( _x( 'Rebuilt the theme cache for blog %s', 'current blog name', 'fl-builder' ), get_option( 'home' ) ) );
|
69 |
}
|
70 |
restore_current_blog();
|
@@ -112,23 +114,23 @@ class FLbuilder_WPCLI_Command extends WP_CLI_Command {
|
|
112 |
|
113 |
if ( isset( $assoc_args['deactivate'] ) ) {
|
114 |
FLUpdater::save_subscription_license( '' );
|
115 |
-
WP_CLI::success( '
|
116 |
return false;
|
117 |
}
|
118 |
|
119 |
if ( defined( 'FL_LICENSE_KEY' ) ) {
|
120 |
$license = FL_LICENSE_KEY;
|
121 |
-
WP_CLI::log( 'Found license using FL_LICENSE_KEY global.' );
|
122 |
}
|
123 |
if ( isset( $assoc_args['license'] ) && '' != $assoc_args['license'] ) {
|
124 |
$license = $assoc_args['license'];
|
125 |
}
|
126 |
|
127 |
if ( ! $license ) {
|
128 |
-
WP_CLI::error( 'No license info found.' );
|
129 |
}
|
130 |
-
|
131 |
-
WP_CLI::log( sprintf( 'Using license [ %s ] to register %s', $license, network_home_url() ) );
|
132 |
|
133 |
$response = FLUpdater::save_subscription_license( $license );
|
134 |
|
@@ -140,4 +142,358 @@ class FLbuilder_WPCLI_Command extends WP_CLI_Command {
|
|
140 |
}
|
141 |
}
|
142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
WP_CLI::add_command( 'beaver', 'FLbuilder_WPCLI_Command' );
|
|
62 |
$blog_id = $blog['blog_id'];
|
63 |
switch_to_blog( $blog_id );
|
64 |
FLBuilderModel::delete_asset_cache_for_all_posts();
|
65 |
+
/* translators: %s: current blog name */
|
66 |
WP_CLI::success( sprintf( _x( 'Cleared the page builder cache for blog %s', 'current blog name', 'fl-builder' ), get_option( 'home' ) ) );
|
67 |
if ( $all ) {
|
68 |
FLCustomizer::refresh_css();
|
69 |
+
/* translators: %s: current blog name */
|
70 |
WP_CLI::success( sprintf( _x( 'Rebuilt the theme cache for blog %s', 'current blog name', 'fl-builder' ), get_option( 'home' ) ) );
|
71 |
}
|
72 |
restore_current_blog();
|
114 |
|
115 |
if ( isset( $assoc_args['deactivate'] ) ) {
|
116 |
FLUpdater::save_subscription_license( '' );
|
117 |
+
WP_CLI::success( __( 'Deactivated', 'fl-builder' ) );
|
118 |
return false;
|
119 |
}
|
120 |
|
121 |
if ( defined( 'FL_LICENSE_KEY' ) ) {
|
122 |
$license = FL_LICENSE_KEY;
|
123 |
+
WP_CLI::log( __( 'Found license using FL_LICENSE_KEY global.', 'fl-builder' ) );
|
124 |
}
|
125 |
if ( isset( $assoc_args['license'] ) && '' != $assoc_args['license'] ) {
|
126 |
$license = $assoc_args['license'];
|
127 |
}
|
128 |
|
129 |
if ( ! $license ) {
|
130 |
+
WP_CLI::error( __( 'No license info found.', 'fl-builder' ) );
|
131 |
}
|
132 |
+
/* translators: %1$s: license : %2$s: domain */
|
133 |
+
WP_CLI::log( sprintf( __( 'Using license [ %1$s ] to register %2$s', 'fl-builder' ), $license, network_home_url() ) );
|
134 |
|
135 |
$response = FLUpdater::save_subscription_license( $license );
|
136 |
|
142 |
}
|
143 |
}
|
144 |
|
145 |
+
/**
|
146 |
+
* WP Cli commands for Beaver Themer.
|
147 |
+
*/
|
148 |
+
class FLThemer_List_WPCLI_Command extends WP_CLI_Command {
|
149 |
+
|
150 |
+
var $fields = array(
|
151 |
+
'id',
|
152 |
+
'name',
|
153 |
+
'status',
|
154 |
+
'type',
|
155 |
+
'hook',
|
156 |
+
'locations',
|
157 |
+
);
|
158 |
+
|
159 |
+
/**
|
160 |
+
* Set status for Themer layout.
|
161 |
+
*
|
162 |
+
* ## OPTIONS
|
163 |
+
*
|
164 |
+
* [--id]
|
165 |
+
* Post ID of Themer layout
|
166 |
+
*
|
167 |
+
* [--status]
|
168 |
+
* Status to use, publish or draft
|
169 |
+
*
|
170 |
+
* ## EXAMPLES
|
171 |
+
*
|
172 |
+
* 1. wp beaver themer set-status --id=123 --status=publish
|
173 |
+
* - Set status for id 123 to publish
|
174 |
+
* 2. wp beaver themer set-status --id=456 --status=draft
|
175 |
+
* - Set status for id 456 to draft
|
176 |
+
* @subcommand set-status
|
177 |
+
*/
|
178 |
+
public function set_status( $args, $assoc_args ) {
|
179 |
+
|
180 |
+
$this->is_themer();
|
181 |
+
|
182 |
+
if ( ! isset( $assoc_args['status'] ) ) {
|
183 |
+
WP_CLI::error( 'No status use --status=' );
|
184 |
+
exit;
|
185 |
+
}
|
186 |
+
|
187 |
+
if ( ! isset( $assoc_args['id'] ) ) {
|
188 |
+
WP_CLI::error( 'No id use --id=' );
|
189 |
+
exit;
|
190 |
+
}
|
191 |
+
$status = $assoc_args['status'];
|
192 |
+
$id = $assoc_args['id'];
|
193 |
+
|
194 |
+
if ( ! in_array( $status, array( 'publish', 'draft' ) ) ) {
|
195 |
+
WP_CLI::error( __( 'Status must be either draft or publish', 'fl-builder' ) );
|
196 |
+
exit;
|
197 |
+
}
|
198 |
+
$args = array(
|
199 |
+
'ID' => $id,
|
200 |
+
'post_status' => $status,
|
201 |
+
);
|
202 |
+
|
203 |
+
if ( 'fl-theme-layout' == get_post_type( $id ) ) {
|
204 |
+
wp_update_post( $args );
|
205 |
+
WP_CLI::success( __( 'Layout status updated', 'fl-builder' ) );
|
206 |
+
} else {
|
207 |
+
WPCLI::error( __( 'Post was not valid Themer layout.', 'fl-builder' ) );
|
208 |
+
}
|
209 |
+
}
|
210 |
+
|
211 |
+
/**
|
212 |
+
* Set type for Themer layout.
|
213 |
+
*
|
214 |
+
* ## OPTIONS
|
215 |
+
*
|
216 |
+
* [--id]
|
217 |
+
* Post ID of Themer layout
|
218 |
+
*
|
219 |
+
* [--type]
|
220 |
+
* Type to use, header, footer, archive, 404 or part
|
221 |
+
*
|
222 |
+
* [--hook] ( If using part )
|
223 |
+
* Part hook to use
|
224 |
+
*
|
225 |
+
* ## EXAMPLES
|
226 |
+
*
|
227 |
+
* 1. wp beaver themer set-type --id=123 --type=archive
|
228 |
+
* - Set typw for id 123 to archive
|
229 |
+
* 2. wp beaver themer set-type --id=456 --type=part --hook=fl_before_content
|
230 |
+
* - Set type for id 456 to part and set hook to fl_before_content
|
231 |
+
* @subcommand set-type
|
232 |
+
*/
|
233 |
+
public function set_type( $args, $assoc_args ) {
|
234 |
+
|
235 |
+
$this->is_themer();
|
236 |
+
|
237 |
+
if ( ! isset( $assoc_args['type'] ) ) {
|
238 |
+
WP_CLI::error( 'No type use --type=' );
|
239 |
+
exit;
|
240 |
+
}
|
241 |
+
|
242 |
+
if ( ! isset( $assoc_args['id'] ) ) {
|
243 |
+
WP_CLI::error( 'No id use --id=' );
|
244 |
+
exit;
|
245 |
+
}
|
246 |
+
$type = $assoc_args['type'];
|
247 |
+
$id = $assoc_args['id'];
|
248 |
+
$hook = false;
|
249 |
+
|
250 |
+
if ( 'part' == $type ) {
|
251 |
+
if ( ! isset( $assoc_args['hook'] ) ) {
|
252 |
+
WP_CLI::error( 'No hook use --hook=' );
|
253 |
+
exit;
|
254 |
+
}
|
255 |
+
$hook = $assoc_args['hook'];
|
256 |
+
}
|
257 |
+
|
258 |
+
if ( ! in_array( $type, array( 'archive', 'single', 'part', 'header', 'footer', '404' ) ) ) {
|
259 |
+
WP_CLI::error( __( 'Incorrect type.', 'fl-builder' ) );
|
260 |
+
exit;
|
261 |
+
}
|
262 |
+
|
263 |
+
if ( 'fl-theme-layout' == get_post_type( $id ) ) {
|
264 |
+
update_post_meta( $id, '_fl_theme_layout_type', $type );
|
265 |
+
update_post_meta( $id, '_fl_theme_layout_hook', '' );
|
266 |
+
WP_CLI::success( __( 'Layout type updated', 'fl-builder' ) );
|
267 |
+
if ( false !== $hook && 'part' == $type ) {
|
268 |
+
update_post_meta( $id, '_fl_theme_layout_hook', $hook );
|
269 |
+
WP_CLI::success( __( 'Hook updated', 'fl-builder' ) );
|
270 |
+
}
|
271 |
+
} else {
|
272 |
+
WPCLI::error( __( 'Not valid Themer layout.', 'fl-builder' ) );
|
273 |
+
}
|
274 |
+
}
|
275 |
+
|
276 |
+
/**
|
277 |
+
* List all Themer layouts.
|
278 |
+
*
|
279 |
+
* ## EXAMPLE
|
280 |
+
*
|
281 |
+
* 1. wp beaver themer list
|
282 |
+
* - Returns list of all themer layouts.
|
283 |
+
*
|
284 |
+
* @subcommand list
|
285 |
+
*/
|
286 |
+
public function themer_list( $args, $assoc_args ) {
|
287 |
+
|
288 |
+
$this->is_themer();
|
289 |
+
|
290 |
+
$results = array();
|
291 |
+
$args = array(
|
292 |
+
'post_type' => 'fl-theme-layout',
|
293 |
+
'post_status' => array( 'publish', 'draft' ),
|
294 |
+
'meta_key' => '_fl_builder_enabled',
|
295 |
+
'meta_value' => '1',
|
296 |
+
'posts_per_page' => -1,
|
297 |
+
);
|
298 |
+
$query = new WP_Query( $args );
|
299 |
+
$posts = $query->posts;
|
300 |
+
foreach ( $posts as $post ) {
|
301 |
+
$type = get_post_meta( $post->ID, '_fl_theme_layout_type', true );
|
302 |
+
$locations = get_post_meta( $post->ID, '_fl_theme_builder_locations', true );
|
303 |
+
$hook = get_post_meta( $post->ID, '_fl_theme_layout_hook', true );
|
304 |
+
$results[] = array(
|
305 |
+
'id' => $post->ID,
|
306 |
+
'status' => $post->post_status,
|
307 |
+
'name' => $post->post_title,
|
308 |
+
'type' => $type,
|
309 |
+
'hook' => $hook,
|
310 |
+
'locations' => $this->format_locations( $locations ),
|
311 |
+
);
|
312 |
+
}
|
313 |
+
|
314 |
+
$formatter = new WP_CLI\Formatter( $assoc_args, $this->fields );
|
315 |
+
$formatter->display_items( $results );
|
316 |
+
}
|
317 |
+
|
318 |
+
/**
|
319 |
+
* List all possible Themer Part Hooks.
|
320 |
+
*
|
321 |
+
* ## EXAMPLE
|
322 |
+
*
|
323 |
+
* 1. wp beaver themer list-hooks
|
324 |
+
* - Returns list of all possible themer part hooks.
|
325 |
+
* @subcommand list-hooks
|
326 |
+
*/
|
327 |
+
public function list_hooks( $args, $assoc_args ) {
|
328 |
+
|
329 |
+
$this->is_themer();
|
330 |
+
|
331 |
+
$hooks = FLThemeBuilderLayoutData::get_part_hooks();
|
332 |
+
$results = array();
|
333 |
+
|
334 |
+
$fields = array(
|
335 |
+
'name',
|
336 |
+
'hook',
|
337 |
+
);
|
338 |
+
|
339 |
+
foreach ( $hooks as $hook ) {
|
340 |
+
|
341 |
+
if ( is_array( $hook ) ) {
|
342 |
+
foreach ( $hook['hooks'] as $k => $location ) {
|
343 |
+
$results[] = array(
|
344 |
+
'name' => $location,
|
345 |
+
'hook' => $k,
|
346 |
+
);
|
347 |
+
}
|
348 |
+
}
|
349 |
+
}
|
350 |
+
|
351 |
+
$formatter = new WP_CLI\Formatter( $assoc_args, $fields );
|
352 |
+
$formatter->display_items( $results );
|
353 |
+
}
|
354 |
+
|
355 |
+
/**
|
356 |
+
* Add location to themer layout.
|
357 |
+
*
|
358 |
+
* ## OPTIONS
|
359 |
+
*
|
360 |
+
* [--id]
|
361 |
+
* Post ID of Themer layout
|
362 |
+
*
|
363 |
+
* [--location]
|
364 |
+
* Status to use, publish or draft
|
365 |
+
*
|
366 |
+
* [--postion] (Optional)
|
367 |
+
* Position in location array to insert new location
|
368 |
+
*
|
369 |
+
* ## EXAMPLES
|
370 |
+
*
|
371 |
+
* 1. wp beaver themer add-location --id=123 --location=general:single
|
372 |
+
* - Add location general:site to Themer layout 123
|
373 |
+
* 2. wp beaver themer add-location --id=123 --location=general:single --position=0
|
374 |
+
* - Add location general:site to Themer layout 123 in first element of array
|
375 |
+
* @subcommand add-location
|
376 |
+
*/
|
377 |
+
public function add_location( $args, $assoc_args ) {
|
378 |
+
|
379 |
+
$this->is_themer();
|
380 |
+
|
381 |
+
if ( ! isset( $assoc_args['location'] ) ) {
|
382 |
+
WP_CLI::error( 'No location use --location=' );
|
383 |
+
exit;
|
384 |
+
}
|
385 |
+
if ( ! isset( $assoc_args['id'] ) ) {
|
386 |
+
WP_CLI::error( 'No id use --id=' );
|
387 |
+
exit;
|
388 |
+
}
|
389 |
+
$location = $assoc_args['location'];
|
390 |
+
$id = $assoc_args['id'];
|
391 |
+
$position = isset( $assoc_args['position'] ) ? $assoc_args['position'] : false;
|
392 |
+
|
393 |
+
$locations = (array) get_post_meta( $id, '_fl_theme_builder_locations', true );
|
394 |
+
|
395 |
+
if ( false !== $position ) {
|
396 |
+
array_splice( $locations, $position, 0, $location );
|
397 |
+
} else {
|
398 |
+
$locations[] = $location;
|
399 |
+
}
|
400 |
+
|
401 |
+
update_post_meta( $id, '_fl_theme_builder_locations', array_unique( $locations ) );
|
402 |
+
|
403 |
+
$post = get_post( $id );
|
404 |
+
$results = array();
|
405 |
+
$type = get_post_meta( $post->ID, '_fl_theme_layout_type', true );
|
406 |
+
$locations = get_post_meta( $post->ID, '_fl_theme_builder_locations', true );
|
407 |
+
$hook = get_post_meta( $post->ID, '_fl_theme_layout_hook', true );
|
408 |
+
$results[] = array(
|
409 |
+
'id' => $post->ID,
|
410 |
+
'status' => $post->post_status,
|
411 |
+
'name' => $post->post_title,
|
412 |
+
'type' => $type,
|
413 |
+
'hook' => $hook,
|
414 |
+
'locations' => $this->format_locations( $locations ),
|
415 |
+
);
|
416 |
+
|
417 |
+
$formatter = new WP_CLI\Formatter( $assoc_args, $this->fields );
|
418 |
+
$formatter->display_items( $results );
|
419 |
+
}
|
420 |
+
|
421 |
+
/**
|
422 |
+
* Delete location from themer layout.
|
423 |
+
*
|
424 |
+
* ## OPTIONS
|
425 |
+
*
|
426 |
+
* [--id]
|
427 |
+
* Post ID of Themer layout
|
428 |
+
*
|
429 |
+
* [--location]
|
430 |
+
* Status to use, publish or draft
|
431 |
+
*
|
432 |
+
*
|
433 |
+
* ## EXAMPLES
|
434 |
+
*
|
435 |
+
* 1. wp beaver themer del-location --id=123 --location=general:single
|
436 |
+
* - Remove location general:site from Themer layout 123
|
437 |
+
* @subcommand del-location
|
438 |
+
*/
|
439 |
+
public function del_location( $args, $assoc_args ) {
|
440 |
+
|
441 |
+
$this->is_themer();
|
442 |
+
|
443 |
+
if ( ! isset( $assoc_args['location'] ) ) {
|
444 |
+
WP_CLI::error( 'No location use --location=' );
|
445 |
+
exit;
|
446 |
+
}
|
447 |
+
if ( ! isset( $assoc_args['id'] ) ) {
|
448 |
+
WP_CLI::error( 'No id use --id=' );
|
449 |
+
exit;
|
450 |
+
}
|
451 |
+
$location = $assoc_args['location'];
|
452 |
+
$id = $assoc_args['id'];
|
453 |
+
|
454 |
+
$locations = (array) get_post_meta( $id, '_fl_theme_builder_locations', true );
|
455 |
+
|
456 |
+
$find = array_search( $location, $locations );
|
457 |
+
|
458 |
+
if ( false !== $find ) {
|
459 |
+
unset( $locations[ $find ] );
|
460 |
+
} else {
|
461 |
+
WP_CLI::error( 'Location not found' );
|
462 |
+
}
|
463 |
+
|
464 |
+
update_post_meta( $id, '_fl_theme_builder_locations', array_unique( $locations ) );
|
465 |
+
|
466 |
+
$post = get_post( $id );
|
467 |
+
$results = array();
|
468 |
+
$type = get_post_meta( $post->ID, '_fl_theme_layout_type', true );
|
469 |
+
$locations = get_post_meta( $post->ID, '_fl_theme_builder_locations', true );
|
470 |
+
$hook = get_post_meta( $post->ID, '_fl_theme_layout_hook', true );
|
471 |
+
$results[] = array(
|
472 |
+
'id' => $post->ID,
|
473 |
+
'status' => $post->post_status,
|
474 |
+
'name' => $post->post_title,
|
475 |
+
'type' => $type,
|
476 |
+
'hook' => $hook,
|
477 |
+
'locations' => $this->format_locations( $locations ),
|
478 |
+
);
|
479 |
+
|
480 |
+
$formatter = new WP_CLI\Formatter( $assoc_args, $this->fields );
|
481 |
+
$formatter->display_items( $results );
|
482 |
+
}
|
483 |
+
|
484 |
+
protected function is_themer() {
|
485 |
+
if ( ! class_exists( 'FLThemeBuilder' ) ) {
|
486 |
+
WP_CLI::error( __( 'Unable to find Themer, is it installed and activated?', 'fl-builder' ) );
|
487 |
+
exit;
|
488 |
+
}
|
489 |
+
}
|
490 |
+
|
491 |
+
protected function format_locations( $data ) {
|
492 |
+
return implode( ', ', $data );
|
493 |
+
}
|
494 |
+
}
|
495 |
+
/**
|
496 |
+
* Add WPCLI commands
|
497 |
+
*/
|
498 |
WP_CLI::add_command( 'beaver', 'FLbuilder_WPCLI_Command' );
|
499 |
+
WP_CLI::add_command( 'beaver themer', 'FLThemer_List_WPCLI_Command' );
|
classes/class-fl-builder.php
CHANGED
@@ -67,8 +67,8 @@ final class FLBuilder {
|
|
67 |
* Font awesome urls.
|
68 |
* @since 2.1
|
69 |
*/
|
70 |
-
static public $fa4_url = '
|
71 |
-
static public $fa5_pro_url = 'https://pro.fontawesome.com/releases/v5.8.
|
72 |
|
73 |
/**
|
74 |
* Initializes hooks.
|
@@ -100,6 +100,7 @@ final class FLBuilder {
|
|
100 |
add_filter( 'tiny_mce_before_init', __CLASS__ . '::editor_font_sizes' );
|
101 |
add_filter( 'the_content', __CLASS__ . '::render_content' );
|
102 |
add_filter( 'wp_handle_upload_prefilter', __CLASS__ . '::wp_handle_upload_prefilter_filter' );
|
|
|
103 |
}
|
104 |
|
105 |
/**
|
@@ -389,21 +390,23 @@ final class FLBuilder {
|
|
389 |
wp_register_style( 'yui3', $css_url . 'yui3.css', array(), $ver );
|
390 |
|
391 |
// Register icon CDN CSS
|
392 |
-
wp_register_style( 'font-awesome', self::$fa4_url, array(), $ver );
|
393 |
wp_register_style( 'font-awesome-5', self::get_fa5_url(), array(), $ver );
|
|
|
|
|
394 |
wp_register_style( 'foundation-icons', 'https://cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css', array(), $ver );
|
395 |
|
396 |
// Register additional JS
|
397 |
wp_register_script( 'fl-slideshow', $js_url . 'fl-slideshow' . $min . '.js', array( 'yui3' ), $ver, true );
|
398 |
wp_register_script( 'fl-gallery-grid', $js_url . 'fl-gallery-grid.js', array( 'jquery' ), $ver, true );
|
399 |
-
wp_register_script( 'jquery-bxslider', $js_url . 'jquery.bxslider.js', array( 'jquery-easing', 'jquery-fitvids' ), $ver, true );
|
400 |
wp_register_script( 'jquery-easing', $js_url . 'jquery.easing.min.js', array( 'jquery' ), '1.4', true );
|
401 |
wp_register_script( 'jquery-fitvids', $js_url . 'jquery.fitvids.min.js', array( 'jquery' ), '1.2', true );
|
402 |
wp_register_script( 'jquery-infinitescroll', $js_url . 'jquery.infinitescroll.min.js', array( 'jquery' ), $ver, true );
|
403 |
-
wp_register_script( 'jquery-magnificpopup', $js_url . 'jquery.magnificpopup.min.js', array( 'jquery' ), $ver, true );
|
404 |
-
wp_register_script( 'jquery-mosaicflow', $js_url . 'jquery.mosaicflow.min.js', array( 'jquery' ), $ver, true );
|
405 |
wp_register_script( 'jquery-waypoints', $js_url . 'jquery.waypoints.min.js', array( 'jquery' ), $ver, true );
|
406 |
wp_register_script( 'jquery-wookmark', $js_url . 'jquery.wookmark.min.js', array( 'jquery' ), $ver, true );
|
|
|
407 |
wp_register_script( 'yui3', $js_url . 'yui3.min.js', array(), $ver, true );
|
408 |
wp_register_script( 'youtube-player', 'https://www.youtube.com/iframe_api', array(), $ver, true );
|
409 |
wp_register_script( 'vimeo-player', 'https://player.vimeo.com/api/player.js', array(), $ver, true );
|
@@ -658,13 +661,6 @@ final class FLBuilder {
|
|
658 |
|
659 |
/* Frontend builder styles */
|
660 |
wp_enqueue_style( 'dashicons' );
|
661 |
-
|
662 |
-
/**
|
663 |
-
* FA4 css and FA5 css do not mix well and actually break some of the icvons in the selector.
|
664 |
-
*/
|
665 |
-
if ( in_array( 'font-awesome', FLBuilderModel::get_enabled_icons() ) ) {
|
666 |
-
wp_enqueue_style( 'font-awesome' );
|
667 |
-
}
|
668 |
wp_enqueue_style( 'font-awesome-5' );
|
669 |
wp_enqueue_style( 'foundation-icons' );
|
670 |
wp_enqueue_style( 'jquery-nanoscroller', $css_url . 'jquery.nanoscroller.css', array(), $ver );
|
@@ -738,7 +734,8 @@ final class FLBuilder {
|
|
738 |
wp_enqueue_script( 'fl-lightbox', $js_url . 'fl-lightbox.js', array(), $ver );
|
739 |
wp_enqueue_script( 'fl-icon-selector', $js_url . 'fl-icon-selector.js', array(), $ver );
|
740 |
wp_enqueue_script( 'fl-stylesheet', $js_url . 'fl-stylesheet.js', array(), $ver );
|
741 |
-
wp_enqueue_script( 'fl-builder', $js_url . 'fl-builder.js', array(), $ver );
|
|
|
742 |
wp_enqueue_script( 'fl-builder-ajax-layout', $js_url . 'fl-builder-ajax-layout.js', array(), $ver );
|
743 |
wp_enqueue_script( 'fl-builder-preview', $js_url . 'fl-builder-preview.js', array(), $ver );
|
744 |
wp_enqueue_script( 'fl-builder-simulate-media-query', $js_url . 'fl-builder-simulate-media-query.js', array(), $ver );
|
@@ -1323,10 +1320,16 @@ final class FLBuilder {
|
|
1323 |
if ( '' == $icon_url ) {
|
1324 |
$wrapper_classes[] = 'fl-builder-bar-title-no-icon';
|
1325 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1326 |
|
1327 |
-
|
1328 |
-
$pretitle
|
1329 |
-
$pretitle
|
1330 |
|
1331 |
// Render the bar title.
|
1332 |
include FL_BUILDER_DIR . 'includes/ui-bar-title-area.php';
|
@@ -1476,7 +1479,7 @@ final class FLBuilder {
|
|
1476 |
self::enqueue_layout_styles_scripts_by_id( $query_post->ID );
|
1477 |
|
1478 |
// Print the styles if we are outside of the head tag.
|
1479 |
-
if ( did_action( 'wp_enqueue_scripts' ) && 'wp_enqueue_scripts'
|
1480 |
wp_print_styles();
|
1481 |
}
|
1482 |
|
@@ -2109,7 +2112,7 @@ final class FLBuilder {
|
|
2109 |
'data-node' => $group->node,
|
2110 |
);
|
2111 |
|
2112 |
-
if ( 'column' == $parent->type ) {
|
2113 |
$attrs['class'][] = 'fl-col-group-nested';
|
2114 |
}
|
2115 |
|
@@ -3390,6 +3393,7 @@ final class FLBuilder {
|
|
3390 |
$regex = apply_filters( 'fl_module_upload_regex', $regex, $type, $ext, $file );
|
3391 |
|
3392 |
if ( ! preg_match( $regex[ $type ], $ext ) ) {
|
|
|
3393 |
$file['error'] = sprintf( __( 'The uploaded file is not a valid %s extension.', 'fl-builder' ), $type );
|
3394 |
}
|
3395 |
|
@@ -3443,6 +3447,18 @@ final class FLBuilder {
|
|
3443 |
return apply_filters( 'fl_get_fa5_url', $url );
|
3444 |
}
|
3445 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3446 |
/**
|
3447 |
* @since 1.0
|
3448 |
* @deprecated 1.7.4
|
67 |
* Font awesome urls.
|
68 |
* @since 2.1
|
69 |
*/
|
70 |
+
static public $fa4_url = '';
|
71 |
+
static public $fa5_pro_url = 'https://pro.fontawesome.com/releases/v5.8.1/css/all.css';
|
72 |
|
73 |
/**
|
74 |
* Initializes hooks.
|
100 |
add_filter( 'tiny_mce_before_init', __CLASS__ . '::editor_font_sizes' );
|
101 |
add_filter( 'the_content', __CLASS__ . '::render_content' );
|
102 |
add_filter( 'wp_handle_upload_prefilter', __CLASS__ . '::wp_handle_upload_prefilter_filter' );
|
103 |
+
add_filter( 'wp_link_query_args', __CLASS__ . '::wp_link_query_args_filter' );
|
104 |
}
|
105 |
|
106 |
/**
|
390 |
wp_register_style( 'yui3', $css_url . 'yui3.css', array(), $ver );
|
391 |
|
392 |
// Register icon CDN CSS
|
|
|
393 |
wp_register_style( 'font-awesome-5', self::get_fa5_url(), array(), $ver );
|
394 |
+
wp_register_style( 'font-awesome', plugins_url( '/fonts/fontawesome/css/v4-shims.min.css', FL_BUILDER_FILE ), array( 'font-awesome-5' ), $ver );
|
395 |
+
|
396 |
wp_register_style( 'foundation-icons', 'https://cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css', array(), $ver );
|
397 |
|
398 |
// Register additional JS
|
399 |
wp_register_script( 'fl-slideshow', $js_url . 'fl-slideshow' . $min . '.js', array( 'yui3' ), $ver, true );
|
400 |
wp_register_script( 'fl-gallery-grid', $js_url . 'fl-gallery-grid.js', array( 'jquery' ), $ver, true );
|
401 |
+
wp_register_script( 'jquery-bxslider', $js_url . 'jquery.bxslider' . $min . '.js', array( 'jquery-easing', 'jquery-fitvids' ), $ver, true );
|
402 |
wp_register_script( 'jquery-easing', $js_url . 'jquery.easing.min.js', array( 'jquery' ), '1.4', true );
|
403 |
wp_register_script( 'jquery-fitvids', $js_url . 'jquery.fitvids.min.js', array( 'jquery' ), '1.2', true );
|
404 |
wp_register_script( 'jquery-infinitescroll', $js_url . 'jquery.infinitescroll.min.js', array( 'jquery' ), $ver, true );
|
405 |
+
wp_register_script( 'jquery-magnificpopup', $js_url . 'jquery.magnificpopup' . $min . '.js', array( 'jquery' ), $ver, true );
|
406 |
+
wp_register_script( 'jquery-mosaicflow', $js_url . 'jquery.mosaicflow' . $min . '.js', array( 'jquery' ), $ver, true );
|
407 |
wp_register_script( 'jquery-waypoints', $js_url . 'jquery.waypoints.min.js', array( 'jquery' ), $ver, true );
|
408 |
wp_register_script( 'jquery-wookmark', $js_url . 'jquery.wookmark.min.js', array( 'jquery' ), $ver, true );
|
409 |
+
wp_register_script( 'jquery-throttle', $js_url . 'jquery.ba-throttle-debounce.min.js', array( 'jquery' ), $ver, true );
|
410 |
wp_register_script( 'yui3', $js_url . 'yui3.min.js', array(), $ver, true );
|
411 |
wp_register_script( 'youtube-player', 'https://www.youtube.com/iframe_api', array(), $ver, true );
|
412 |
wp_register_script( 'vimeo-player', 'https://player.vimeo.com/api/player.js', array(), $ver, true );
|
661 |
|
662 |
/* Frontend builder styles */
|
663 |
wp_enqueue_style( 'dashicons' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
664 |
wp_enqueue_style( 'font-awesome-5' );
|
665 |
wp_enqueue_style( 'foundation-icons' );
|
666 |
wp_enqueue_style( 'jquery-nanoscroller', $css_url . 'jquery.nanoscroller.css', array(), $ver );
|
734 |
wp_enqueue_script( 'fl-lightbox', $js_url . 'fl-lightbox.js', array(), $ver );
|
735 |
wp_enqueue_script( 'fl-icon-selector', $js_url . 'fl-icon-selector.js', array(), $ver );
|
736 |
wp_enqueue_script( 'fl-stylesheet', $js_url . 'fl-stylesheet.js', array(), $ver );
|
737 |
+
wp_enqueue_script( 'fl-builder', $js_url . 'fl-builder.js', array( 'jquery' ), $ver );
|
738 |
+
wp_enqueue_script( 'fl-builder-libs', $js_url . 'fl-builder-libs.js', array( 'fl-builder' ), $ver );
|
739 |
wp_enqueue_script( 'fl-builder-ajax-layout', $js_url . 'fl-builder-ajax-layout.js', array(), $ver );
|
740 |
wp_enqueue_script( 'fl-builder-preview', $js_url . 'fl-builder-preview.js', array(), $ver );
|
741 |
wp_enqueue_script( 'fl-builder-simulate-media-query', $js_url . 'fl-builder-simulate-media-query.js', array(), $ver );
|
1320 |
if ( '' == $icon_url ) {
|
1321 |
$wrapper_classes[] = 'fl-builder-bar-title-no-icon';
|
1322 |
}
|
1323 |
+
$type = FLBuilderModel::get_user_template_type( $post->ID );
|
1324 |
+
if ( $type && 'layout' !== $type ) {
|
1325 |
+
$edited_object_label = ucfirst( $type );
|
1326 |
+
} else {
|
1327 |
+
$edited_object_label = get_post_type_object( $post->post_type )->labels->singular_name;
|
1328 |
+
}
|
1329 |
|
1330 |
+
/* translators: %s: post label */
|
1331 |
+
$pretitle = sprintf( _x( 'Currently Editing %s', 'Currently editing message', 'fl-builder' ), $edited_object_label );
|
1332 |
+
$pretitle = apply_filters( 'fl_builder_ui_bar_pretitle', $pretitle );
|
1333 |
|
1334 |
// Render the bar title.
|
1335 |
include FL_BUILDER_DIR . 'includes/ui-bar-title-area.php';
|
1479 |
self::enqueue_layout_styles_scripts_by_id( $query_post->ID );
|
1480 |
|
1481 |
// Print the styles if we are outside of the head tag.
|
1482 |
+
if ( did_action( 'wp_enqueue_scripts' ) && ! doing_filter( 'wp_enqueue_scripts' ) ) {
|
1483 |
wp_print_styles();
|
1484 |
}
|
1485 |
|
2112 |
'data-node' => $group->node,
|
2113 |
);
|
2114 |
|
2115 |
+
if ( isset( $parent->type ) && 'column' == $parent->type ) {
|
2116 |
$attrs['class'][] = 'fl-col-group-nested';
|
2117 |
}
|
2118 |
|
3393 |
$regex = apply_filters( 'fl_module_upload_regex', $regex, $type, $ext, $file );
|
3394 |
|
3395 |
if ( ! preg_match( $regex[ $type ], $ext ) ) {
|
3396 |
+
/* translators: %s: extension type */
|
3397 |
$file['error'] = sprintf( __( 'The uploaded file is not a valid %s extension.', 'fl-builder' ), $type );
|
3398 |
}
|
3399 |
|
3447 |
return apply_filters( 'fl_get_fa5_url', $url );
|
3448 |
}
|
3449 |
|
3450 |
+
/**
|
3451 |
+
* Remove template type from wp-link suggestions.
|
3452 |
+
* @since 2.2.2
|
3453 |
+
*/
|
3454 |
+
static public function wp_link_query_args_filter( $query ) {
|
3455 |
+
|
3456 |
+
if ( array_search( 'fl-builder-template', $query['post_type'] ) ) {
|
3457 |
+
unset( $query['post_type'][ array_search( 'fl-builder-template', $query['post_type'] ) ] );
|
3458 |
+
}
|
3459 |
+
return $query;
|
3460 |
+
}
|
3461 |
+
|
3462 |
/**
|
3463 |
* @since 1.0
|
3464 |
* @deprecated 1.7.4
|
css/fl-builder-admin-settings.css
CHANGED
@@ -296,3 +296,79 @@ body .ms-options-wrap > .ms-options > ul input[type="checkbox"] {
|
|
296 |
padding: 5px 17px;
|
297 |
}
|
298 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
padding: 5px 17px;
|
297 |
}
|
298 |
}
|
299 |
+
|
300 |
+
.subscription-form {
|
301 |
+
background: #0a3c4b;
|
302 |
+
color: #fefefe;
|
303 |
+
padding: 25px;
|
304 |
+
border-radius: 0;
|
305 |
+
}
|
306 |
+
|
307 |
+
.subscription-form .input-group-field {
|
308 |
+
border-radius: 4px;
|
309 |
+
height: 35px;
|
310 |
+
display: flex;
|
311 |
+
margin: 10px 0;
|
312 |
+
width: 95%;
|
313 |
+
border: 1px solid #e6e6e6;
|
314 |
+
}
|
315 |
+
|
316 |
+
.subscription-form .subscribe-button {
|
317 |
+
display: inline-block;
|
318 |
+
vertical-align: middle;
|
319 |
+
margin: 20px 0 0;
|
320 |
+
padding: 0 10px;
|
321 |
+
text-align: center;
|
322 |
+
cursor: pointer;
|
323 |
+
color: #fff;
|
324 |
+
background-color: #0F637D;
|
325 |
+
height: 45px;
|
326 |
+
font-size: 20px;
|
327 |
+
border-color: #0F637D;
|
328 |
+
box-shadow: none;
|
329 |
+
border-radius: 4px;
|
330 |
+
}
|
331 |
+
|
332 |
+
.subscription-form .input-group span.error {
|
333 |
+
display: none;
|
334 |
+
}
|
335 |
+
|
336 |
+
.subscription-form .dashicons {
|
337 |
+
vertical-align: middle;
|
338 |
+
margin: 10px;
|
339 |
+
position: relative;
|
340 |
+
top: 8px;
|
341 |
+
}
|
342 |
+
|
343 |
+
.subscription-form .dashicons {
|
344 |
+
color: #0a3c4b;
|
345 |
+
}
|
346 |
+
|
347 |
+
.subscription-form .subscribe-button:focus {
|
348 |
+
box-shadow: none;
|
349 |
+
outline: none;
|
350 |
+
}
|
351 |
+
|
352 |
+
.subscription-form .subscribe-button:hover {
|
353 |
+
background-color: #0F637D;
|
354 |
+
}
|
355 |
+
.subscription-form h4 {
|
356 |
+
margin: 0 0 5px;
|
357 |
+
}
|
358 |
+
.subscription-form h2 {
|
359 |
+
color: #fff;
|
360 |
+
}
|
361 |
+
|
362 |
+
.dashicons.spin {
|
363 |
+
animation: dashicons-spin 1s infinite;
|
364 |
+
animation-timing-function: linear;
|
365 |
+
}
|
366 |
+
|
367 |
+
@keyframes dashicons-spin {
|
368 |
+
0% {
|
369 |
+
transform: rotate( 0deg );
|
370 |
+
}
|
371 |
+
100% {
|
372 |
+
transform: rotate( 360deg );
|
373 |
+
}
|
374 |
+
}
|
css/fl-builder.css
CHANGED
@@ -2876,13 +2876,48 @@ button.fl-builder-button.fl-builder-bar-title-caret:focus {
|
|
2876 |
.fl-builder-alert-lightbox .fl-lightbox-content-wrap {
|
2877 |
display: block;
|
2878 |
}
|
2879 |
-
.fl-builder-alert-lightbox .fl-lightbox-message
|
|
|
2880 |
color: #333 !important;
|
2881 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
2882 |
font-size: 16px !important;
|
2883 |
line-height: 24px;
|
2884 |
padding: 30px;
|
2885 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2886 |
/* @endgroup Alert Lightbox */
|
2887 |
|
2888 |
/* @group Template Selector
|
@@ -3720,7 +3755,7 @@ body .fl-lightbox-has-tab-overflow .fl-builder-settings-tabs-more {
|
|
3720 |
.fl-builder-settings-fields input[type=number] {
|
3721 |
width: 70px;
|
3722 |
}
|
3723 |
-
.fl-builder-lightbox .fl-builder-settings-fields textarea:focus,
|
3724 |
.fl-builder-lightbox .fl-builder-settings-fields input[type=text]:focus,
|
3725 |
.fl-builder-lightbox .fl-builder-settings-fields input[type=password]:focus,
|
3726 |
.fl-builder-lightbox .fl-builder-settings-fields input[type=file]:focus,
|
@@ -3976,6 +4011,7 @@ i.fl-field-responsive-toggle:hover {
|
|
3976 |
}
|
3977 |
.fl-color-picker .fl-color-picker-clear {
|
3978 |
box-sizing: border-box;
|
|
|
3979 |
}
|
3980 |
.fl-color-picker .fl-color-picker-clear:hover {
|
3981 |
background-color: #ededed;
|
@@ -5574,6 +5610,18 @@ body > .fl-builder-tour-dimmed {
|
|
5574 |
opacity:1;
|
5575 |
text-transform: none;
|
5576 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5577 |
.fl-builder--menu-item:hover {
|
5578 |
background: #eaf1f8;
|
5579 |
border:none;
|
2876 |
.fl-builder-alert-lightbox .fl-lightbox-content-wrap {
|
2877 |
display: block;
|
2878 |
}
|
2879 |
+
.fl-builder-alert-lightbox .fl-lightbox-message,
|
2880 |
+
.fl-builder-alert-lightbox .fl-lightbox-message-info {
|
2881 |
color: #333 !important;
|
2882 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
2883 |
font-size: 16px !important;
|
2884 |
line-height: 24px;
|
2885 |
padding: 30px;
|
2886 |
}
|
2887 |
+
|
2888 |
+
.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox{
|
2889 |
+
max-width: 60%;
|
2890 |
+
}
|
2891 |
+
.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox-content {
|
2892 |
+
padding: 20px;
|
2893 |
+
}
|
2894 |
+
|
2895 |
+
.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox-message {
|
2896 |
+
padding: 10px 20px;
|
2897 |
+
}
|
2898 |
+
.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox-message h1 {
|
2899 |
+
font-size: 20px;
|
2900 |
+
}
|
2901 |
+
.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox-message p {
|
2902 |
+
font-size: 14px;
|
2903 |
+
padding-top: 5px;
|
2904 |
+
}
|
2905 |
+
.fl-builder-alert-lightbox.fl-builder-crash-lightbox .link {
|
2906 |
+
color: #428bca;
|
2907 |
+
text-decoration: underline;
|
2908 |
+
}
|
2909 |
+
|
2910 |
+
.fl-builder-alert-lightbox .fl-lightbox-message-info {
|
2911 |
+
padding: 0 20px;
|
2912 |
+
font-size: 14px !important;
|
2913 |
+
}
|
2914 |
+
.fl-builder-alert-lightbox .fl-lightbox-message-info p {
|
2915 |
+
line-height: 20px;
|
2916 |
+
padding: 10px 0 0 10px;
|
2917 |
+
}
|
2918 |
+
.fl-builder-alert-lightbox .fl-lightbox-message-info a {
|
2919 |
+
font-size: 14px;
|
2920 |
+
}
|
2921 |
/* @endgroup Alert Lightbox */
|
2922 |
|
2923 |
/* @group Template Selector
|
3755 |
.fl-builder-settings-fields input[type=number] {
|
3756 |
width: 70px;
|
3757 |
}
|
3758 |
+
.fl-builder-lightbox .fl-builder-settings-fields textarea:not(.wp-editor-area):focus,
|
3759 |
.fl-builder-lightbox .fl-builder-settings-fields input[type=text]:focus,
|
3760 |
.fl-builder-lightbox .fl-builder-settings-fields input[type=password]:focus,
|
3761 |
.fl-builder-lightbox .fl-builder-settings-fields input[type=file]:focus,
|
4011 |
}
|
4012 |
.fl-color-picker .fl-color-picker-clear {
|
4013 |
box-sizing: border-box;
|
4014 |
+
display: inline-block;
|
4015 |
}
|
4016 |
.fl-color-picker .fl-color-picker-clear:hover {
|
4017 |
background-color: #ededed;
|
5610 |
opacity:1;
|
5611 |
text-transform: none;
|
5612 |
}
|
5613 |
+
|
5614 |
+
.fl-builder--menu-item .menu-view.view-revisions {
|
5615 |
+
opacity: 0.5;
|
5616 |
+
padding-left: 5px;
|
5617 |
+
}
|
5618 |
+
|
5619 |
+
.fl-builder--menu-item .menu-event.event-showLayoutSettings,
|
5620 |
+
.fl-builder--menu-item .menu-event.event-showGlobalSettings{
|
5621 |
+
color: #6bc373;
|
5622 |
+
padding-left: 5px;
|
5623 |
+
}
|
5624 |
+
|
5625 |
.fl-builder--menu-item:hover {
|
5626 |
background: #eaf1f8;
|
5627 |
border:none;
|
css/fl-builder.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.fl-color-picker-ui{width:300px}.fl-color-picker-ui.fl-color-alpha-enabled{width:334px}.fl-color-picker-ui .iris-picker{float:left;width:100%;height:224px;display:block;position:relative;border-top:1px solid rgba(0,0,0,.1)}.fl-color-picker-ui .iris-picker .iris-square-inner,.fl-color-picker-ui .iris-picker-inner{position:absolute;left:0;top:0;bottom:0;right:0}.fl-color-picker-ui .iris-picker,.iris-picker *{box-sizing:content-box}.fl-color-picker-ui .iris-error{background-color:#ffafaf}.fl-color-picker-ui .iris-picker .iris-square{width:300px;height:200px}.fl-color-picker-ui .iris-picker .iris-palette,.fl-color-picker-ui .iris-picker .iris-slider,.fl-color-picker-ui .iris-picker .iris-square-inner{height:100%;width:12.5%}.fl-color-picker-ui .iris-picker .iris-placeholder,.fl-color-picker-ui .iris-picker .iris-square{position:relative}.fl-color-picker-ui .iris-picker .iris-square-inner{width:auto;margin:0}.fl-color-picker-ui .iris-ie-9 .iris-palette,.fl-color-picker-ui .iris-ie-9 .iris-slider,.fl-color-picker-ui .iris-ie-9 .iris-square,.fl-color-picker-ui .iris-ie-9 .iris-square-inner{box-shadow:none;border-radius:0}.fl-color-picker-ui .iris-ie-9 .iris-palette,.fl-color-picker-ui .iris-ie-9 .iris-slider,.fl-color-picker-ui .iris-ie-9 .iris-square{outline:rgba(0,0,0,.1) solid 1px}.fl-color-picker-ui .iris-ie-lt9 .iris-palette,.fl-color-picker-ui .iris-ie-lt9 .iris-slider,.fl-color-picker-ui .iris-ie-lt9 .iris-square,.fl-color-picker-ui .iris-ie-lt9 .iris-square-inner{outline:#999 solid 1px}.fl-color-picker-ui .iris-ie-lt9 .iris-square .ui-slider-handle{outline:#999 solid 1px;background-color:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"}.fl-color-picker-ui .iris-ie-lt9 .iris-square .iris-square-handle{background:0 0;border:3px solid #fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.fl-color-picker-ui .iris-picker .iris-strip{box-sizing:border-box;width:calc(300px - 12px);margin:5px 6px 6px;border-radius:4px;position:relative;height:22px;transform:rotate(180deg)}.fl-color-picker-ui .iris-picker .iris-strip .ui-slider-handle{width:6px;position:absolute;right:0;top:-2px;bottom:-2px;margin:0;border-radius:3px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.5);z-index:5;cursor:ew-resize}.fl-color-picker-ui .iris-picker .iris-strip .ui-slider-handle:focus{outline:#00a0d2 solid 2px}.fl-color-picker-ui .iris-picker .iris-slider-offset{position:absolute;top:0;left:6px;right:0;bottom:0;width:auto;height:auto;background:0 0;border:none;border-radius:0;transform:rotate(180deg)}.fl-color-picker-ui .iris-picker .iris-square-handle{background:0 0;border:5px solid #999;border-radius:50%;border-color:rgba(128,128,128,.5);box-shadow:none;width:12px;height:12px;position:absolute;left:-10px;top:-10px;cursor:move;opacity:1;z-index:10}.fl-color-picker-ui .iris-picker .ui-state-focus .iris-square-handle{opacity:.8}.fl-color-picker-ui .iris-picker .iris-square-handle:hover{border-color:#999}.fl-color-picker-ui .iris-picker .iris-square-value:focus .iris-square-handle{box-shadow:0 0 2px rgba(0,0,0,.75);opacity:.8}.fl-color-picker-ui .iris-picker .iris-square-handle:hover::after{border-color:#fff}.fl-color-picker-ui .iris-picker .iris-square-handle::after{position:absolute;bottom:-4px;right:-4px;left:-4px;top:-4px;border:3px solid #f9f9f9;border-color:rgba(255,255,255,.8);border-radius:50%;content:" "}.fl-color-picker-ui .iris-picker .iris-square-value{width:0;height:0;position:absolute}.iris-ie-lt9 .iris-square-value,.iris-mozilla .iris-square-value{width:1px;height:1px}.fl-color-picker-wrapper{position:relative;width:48px;height:32px}.fl-color-picker{box-shadow:0 2px 4px 0 rgba(0,0,0,.12);background:url(../img/transp_bg.png) #fff;border-radius:4px;width:120px;height:36px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-color-picker-color{-ms-flex:1 1 100%;flex:1 1 100%;box-sizing:border-box!important;position:relative;border-radius:4px;background-color:transparent;cursor:pointer;border:2px solid transparent;padding:0;-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:flex}.fl-color-picker-clear:hover,.fl-color-picker-color:hover{background:0 0;border:2px solid transparent}.fl-color-picker-clear:focus,.fl-color-picker-color.fl-color-picker-empty:focus,.fl-color-picker-color:focus{outline:0;top:0;border:2px solid #00a0d2;background:0 0}.fl-color-picker.fl-color-picker-has-reset .fl-color-picker-color:not(.fl-color-picker-empty){border-top-right-radius:0;border-bottom-right-radius:0}.fl-color-picker-icon{display:none;margin:auto}.fl-color-picker-color.fl-color-picker-empty{border-color:transparent}.fl-color-picker-color.fl-color-picker-empty svg.fl-color-picker-icon{display:block}.fl-color-picker-color.fl-color-picker-empty svg.fl-color-picker-icon path{fill:inherit}.fl-color-picker-clear{box-sizing:border-box;position:relative;display:-ms-flexbox;display:flex;-ms-flex:0 0 36px;flex:0 0 36px;-ms-flex-pack:center;justify-content:center;padding:0;border:2px solid transparent;fill:#A2AABE;background-color:#E7EBEF;cursor:pointer;border-radius:0 4px 4px 0}.fl-color-picker-clear:hover{fill:#6B6E75;background-color:#E7EBEF}.fl-color-picker-color.fl-color-picker-empty+.fl-color-picker-clear{display:none}.fl-color-picker-ui{display:inline-block;font-family:Helvetica,Verdana,sans-serif;z-index:1;position:fixed;overflow:hidden;padding-bottom:45px;border:1px solid rgba(0,0,0,.1);color:#999;background-color:#FAFAFA;border-radius:3px;box-shadow:0 9px 20px rgba(0,0,0,.17);transition:opacity .2s,visibility .2s;visibility:hidden;opacity:0;-webkit-transform:translate3d(0,0,0)}.fl-color-picker-ui.fl-color-picker-active{visibility:visible;opacity:1;z-index:999999}.fl-color-picker-ui .fl-color-picker-input,.fl-color-picker-ui .fl-color-picker-input:focus{width:100%;height:30px;border:none!important;font-size:14px!important;padding:0 8px;vertical-align:middle;color:#656c6e;background-color:#fff;border-radius:0;box-shadow:none}.fl-color-picker-ui .iris-square-value{transition:none}.fl-color-picker-preset-add{position:absolute;top:8px;right:8px;width:14px;height:14px;background-color:#656c6e;border-radius:50%;cursor:pointer;transition:all .2s}.fl-color-picker-preset-add:hover{background-color:#333}.fl-color-picker-preset-add:after,.fl-color-picker-preset-add:before{content:'';display:block;position:relative;background-color:#fff}.fl-color-picker-preset-add:before{top:6px;left:3px;width:8px;height:2px}.fl-color-picker-preset-add:after{left:6px;top:1px;width:2px;height:8px}.fl-color-picker-presets{position:absolute;left:0;bottom:0;width:100%;z-index:15;overflow:auto;border-top:1px solid rgba(0,0,0,.1);background-color:#FAFAFA}.fl-color-picker-presets-list .fl-color-picker-preset:hover,.fl-color-picker-presets-toggle:hover{background-color:#EDEDED}.fl-color-picker-presets-toggle{position:relative;overflow:hidden;width:100%;height:35px;text-align:center;line-height:35px;font-size:12px;font-weight:700;cursor:pointer;transition:all .1s}.fl-color-picker-presets-close-label,.fl-color-picker-presets-open-label{position:absolute;top:50%;left:50%;visibility:hidden;color:#999;transition:all .5s;transform:translate(-50%,-50%);opacity:0;width:100%}.fl-color-picker-presets-close-label.fl-color-picker-active,.fl-color-picker-presets-open-label.fl-color-picker-active{color:#656c6e;visibility:visible;opacity:1;z-index:999999}.fl-color-picker-presets-list{width:100%;list-style:none;margin:0;padding:0;overflow:auto}.fl-color-picker-presets-list .fl-color-picker-no-preset,.fl-color-picker-presets-list .fl-color-picker-preset{position:relative;padding:5px;font-size:12px;border-top:1px solid rgba(0,0,0,.1);transition:all .1s}.fl-color-picker-presets-list .fl-color-picker-no-preset{padding:18px 5px;text-align:center}.fl-color-picker-presets-list .fl-color-picker-preset-color{display:inline-block;width:40px;height:20px;margin-right:3px;vertical-align:middle;border:1px solid rgba(0,0,0,.1);border-radius:2px;cursor:pointer}.fl-color-picker-presets-list .fl-color-picker-preset-label{vertical-align:middle;color:#333;cursor:pointer}.fl-color-picker-presets-list .fl-color-picker-preset-remove{position:absolute;top:50%;cursor:pointer;transform:translateY(-50%)}.fl-color-picker-clear .fl-color-picker-icon-remove{right:auto;top:auto;margin:auto}.fl-color-picker-presets-list .fl-color-picker-preset-remove{right:5px}.fl-color-picker-presets-list .fl-color-picker-preset-remove:hover:after,.fl-color-picker-presets-list .fl-color-picker-preset-remove:hover:before{background-color:#333}.fl-color-picker-added{position:absolute;width:100%;top:0;left:0;right:0;bottom:35px;z-index:10;color:#fff;text-align:center;background-color:rgba(0,0,0,.8)}.fl-color-picker-added-text{position:absolute;top:50%;left:50%;width:80%;font-size:14px;color:#fff!important;transform:translate(-50%,-50%)}.fl-color-picker-icon-check{position:relative;width:50px;height:50px;margin:5px auto}.fl-color-picker-icon-check:before{content:'';display:block;position:relative;width:15px;height:30px;margin-left:14px;border:7px solid #fff;border-left:none;border-top:none;transform:rotate(45deg)}.fl-color-picker-icon-arrow-down,.fl-color-picker-icon-arrow-up{display:inline-block;position:relative;width:10px;height:10px;margin-left:5px}.fl-color-picker-icon-arrow-down:before,.fl-color-picker-icon-arrow-up:before{content:'';display:block;position:relative;width:6px;height:6px;border:2px solid #999;border-left:none;border-top:none;transform:rotate(45deg)}.fl-color-picker-icon-arrow-up{top:2px;transform:rotate(180deg)}.fl-color-picker-icon-remove{width:15px;height:15px}.fl-color-picker-icon-remove:after,.fl-color-picker-icon-remove:before{content:'';display:block;position:relative;background-color:#6f7881}.fl-color-picker-icon-remove:before{left:6px;width:2px;height:10px;margin-top:3px;transform:rotate(-45deg)}.fl-color-picker-icon-remove:after{left:6px;width:2px;height:10px;margin-top:-10px;transform:rotate(45deg)}.fl-alpha-wrap{position:absolute;width:32px;height:215px;padding:0 5px;right:4px;border-top:none}.fl-alpha-slider{height:190px;position:absolute;top:12px;width:28px}.fl-alpha-slider .ui-slider-handle{background:rgba(0,0,0,0);border-color:#aaa;border-radius:4px;border-style:solid;border-width:4px;box-shadow:0 1px 2px rgba(0,0,0,.2);-moz-box-shadow:0 1px 2px rgba(0,0,0,.2);-webkit-box-shadow:0 1px 2px rgba(0,0,0,.2);cursor:ns-resize;height:12px;left:0;opacity:.9;position:absolute;right:0;width:30px;z-index:14}.fl-alpha-slider .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;border-radius:3px}.fl-theme-builder-preview-select-title i:before,body .fl-theme-builder-preview-select .fa-caret-down i:before,body .fl-theme-builder-preview-select-item-title i:before{content:"\f078"}.fl-alpha-slider-offset{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAASCAYAAAAe/ZHXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NkNEQUQ0ODM4RUE0MTFFNEExOEJFN0E5M0VFOTg0QUQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NkNEQUQ0ODQ4RUE0MTFFNEExOEJFN0E5M0VFOTg0QUQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2Q0RBRDQ4MThFQTQxMUU0QTE4QkU3QTkzRUU5ODRBRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2Q0RBRDQ4MjhFQTQxMUU0QTE4QkU3QTkzRUU5ODRBRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/r/N8AAAWYSURBVHjarFvvR3VBEN45JZGIPkREHyIiIhJJf3qUSERE9CGiDxERkcg9z9u92uucvTszz5z7xnHPj93Z2d359cxscn5+jpTS+EoiMr3/+51cZ2dn4+e29i2/u7y8RKf/pO3vc+o+n5ycoNK31+f6+jrfZ37yuG2mf3R01H3fa5N/b29vU6dP5qft0G4PDg5MGuPr/v4+jz1t27mfvN/b21P75+fHx8eZfiV/Ozs7rUJnSu/5+RlFv+m6ZJpbW1s1PnrvXl9fZ/qX89zY2LB4mfy+v7/nsdV1XltbK/dr5vnz87OcV5bJabuVlRVLBifjfX9/l/xkGtM+S0tLNXnu0szfU/P3IMn/k0678h6ddqjQFGccVL6hoCsVfsq+NZ5QtCv5rfFS41sq37W+UPhMyhxEWTetvce3NR8oewqD39qalXuGAK/WPltjajIC4x2c9Ye1f43SGcqGwRBeTZjhMNntL4pCWZMQYhE05RVl02EovRgC4RkCbUNSQAGhGB/GsKG4h6FQoigDa2i8fRBy3uLMXYIG3Vr3aZvRaCRdBYlYIMZywhBGCVhgzzOlgRuUSOvC0GMEWxOM/+EtQFh1OIIXtfwg1tRaayGjg5px0jyZKEaTle3e+AsLCygVRAh3FlEgKbReE3oYGj9EgIR00QiEgKw3ZBQbRGjBeAMtDETQmHiKDsezJNLgCTFGItZXlAgCSiQggblP+9c8SDI0lXWlFv5g3K63KZ51FOcZzthQ3LomoNHwJmKIQISI3vqzSpwIQ8liSjGMFQjDpoVgaQ6cWgvLhOC7qiAwiHrWbEg4JMSmeUrBuHoYwioOQNXmhmAcrs096s1gJCGi3hSEVU8DQxYElYHhKwUUGAa+NqOBMsSSAQJuhQhCAH4vxozExsxiihPuaIrjCVYKWlYEsjSM52G8Kxxryngl5j0j+EyGTIiED4s1Itm0ZGWxMFCLJaBAcEI6OBkmFgNBoc8Cait2ZnENE/6wQN8LJSJeSMNAjKVm+LUMAIt3PR5AQgIGp1Z5zxhE8PtXUYReYeXi4mKmOPNXBMzt2tPT07LIUtJqr66uusXEbkFnWiQ6Pj72ikrtzc1NKopuvbbj58PDwxqNHp27u7tuYWumUDV+v7+/Xyu6pc59+/DwUCsC9ujt7u6qRbt8//T01C3elbyN70fb29uZ/1FSincvLy/lPGb42tzc9IqJeHt7q61Pr2C6vr7u7tfHx8fMPhV0sLq6WhZtU0n36+uru8elPE7aLi8v1wqJPXn++fmZKYgX8ozFxcXJb0NaQTHClZT8+gBjsYdaFc+zWcUkGTCWENY66ta92oSVzo3WI6IZKGtukeyfBLFKBNAj6bUOBgaoe9wE4n04IBNkLMoC7+Skj630ZlTJMYdyMsU2T8AwpzALkVFilZgJcT2l9PCWDDSAMBSjVlJgZNk0lE1AIby0qCiCnBQNj6aBGQslZIZJ5hB6D/AzQHto5Z9Nk8tARdN4q2ExBnsyIJ311EymShyjan2rKk0zh1Ay1oQVWAZQRnkUA8RFw7TahjBnmNgMVMQrsCGZJezRtGlU0cUZ1zuaxGZPpbhApM+ZpFQqQ6xadoMtBrEKpBVo4GRXvNSxpaRixKiR+TChCYhsDwZkfFj8IkErjAHejcUI0XQrgwehhNSMHAz21E0wZ23FcCAmj8Sd/PXy2xLYLAuwRw4IMsqjFaWYOpMEhDySAPFCWyFkgAHrEcA+BNeJ4UE8HCzJPpCrerUmQIx1pWJkjqxJD8EikUo2c5aI8ZYgsAkM4WQtnHd0ns0ORgVTBghy5ISy928SGsbTMqYg523RUY8oNYG4FIYiyRyZCnFCJC87IoRAIMVOqQ7BKexxCS2hYVl9JhvlpYjnAe4MhmRPMWhhvLfXINaI9WKM0Zu0+SfAAFLE1EgfVSv7AAAAAElFTkSuQmCC) center;box-shadow:0 0 5px rgba(0,0,0,.4) inset;-moz-box-shadow:0 0 5px rgba(0,0,0,.4) inset;-webkit-box-shadow:0 0 5px rgba(0,0,0,.4) inset;width:200px;height:22px;transform:rotate(-90deg);bottom:48%;left:-80px;position:absolute}.fl-alpha-text{width:30px;font-size:12px;text-align:center;color:#999;position:absolute;bottom:-5px}.fl-lightbox-mask,.fl-lightbox-wrap{bottom:0;left:0;position:fixed;right:0;z-index:100010}@keyframes fl-lightbox-zoom{from{transform:scale(.4)}to{transform:scale(1)}}.fl-lightbox-wrap{display:none;overflow:auto;padding:0;top:43px;-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);pointer-events:none}.fl-builder-draggable-is-dragging .fl-lightbox-wrap,.fl-builder-resizable-is-resizing .fl-lightbox-wrap,.fl-lightbox,.fl-lightbox-mask{pointer-events:auto}.fl-lightbox-mask{background:#000;opacity:.7;filter:alpha(opacity=70);top:0}.fl-lightbox{background:#F5F7F9;border-radius:4px;box-shadow:rgba(0,0,0,1) 0 4px 30px;-moz-box-shadow:rgba(0,0,0,1) 0 4px 30px;-webkit-box-shadow:rgba(0,0,0,1) 0 4px 30px;position:relative;display:-ms-flexbox;display:flex;z-index:100011;transform-origin:center;animation-name:fl-lightbox-zoom;animation-duration:.25s}.fl-lightbox.fl-lightbox-prevent-animation{animation-duration:0s;-moz-animation-duration:0s;-webkit-animation-duration:0s;-o-animation-duration:0s}.fl-lightbox :not(i){color:#333;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:12px;line-height:14px;text-decoration:none;text-transform:none}.fl-lightbox *,.fl-lightbox :after,.fl-lightbox :before{box-sizing:content-box}#fl-ui-root .fl-nanoscroller-pane,.fl-builder--content-library-panel .fl-nanoscroller-pane,.fl-lightbox .fl-nanoscroller-pane{bottom:2px;right:2px;width:6px}.fl-nanoscroller>.fl-nanoscroller-pane>.fl-nanoscroller-slider{background-color:#bac0ca;transition-property:height,background-color;transition-duration:.25s}#wpadminbar,html{transition-duration:.35s}.fl-nanoscroller>.fl-nanoscroller-pane>.fl-nanoscroller-slider:hover{background-color:#c8cdd4}.fl-nanoscroller>.fl-nanoscroller-pane.active>.fl-nanoscroller-slider{background-color:#029fd2}.fl-lightbox .fa{font-family:FontAwesome!important}.fl-lightbox .dashicons{font-family:dashicons}.fl-lightbox.ui-draggable{box-shadow:rgba(0,0,0,.2) 0 7px 30px;-moz-box-shadow:rgba(0,0,0,.2) 0 7px 30px;-webkit-box-shadow:rgba(0,0,0,.2) 0 7px 30px}#wpadminbar,.fl-builder-bar.is-hidden{pointer-events:none}.fl-lightbox-resizable{height:500px;width:380px}@media (max-width:500px){.fl-lightbox-resizable{left:0!important;right:0!important;top:0!important;height:100%!important;width:100%!important}.fl-lightbox-resizable .ui-resizable-handle{display:none!important}.fl-lightbox.ui-draggable .fl-lightbox-header{cursor:default!important}.fl-lightbox-controls{display:none}}.fl-lightbox-width-full{left:0!important;right:0!important;top:0!important;height:100%!important;width:100%!important}.fl-lightbox-width-full .fl-lightbox-header{cursor:inherit!important}.fl-lightbox-controls{position:absolute;right:10px;top:10px;z-index:5}.fl-lightbox-controls .fa{color:#bdbdbd;font-size:14px;padding:5px}.fl-lightbox-controls .fa:hover{color:#aaa;cursor:pointer}.fl-lightbox-header-wrap{border-top-left-radius:4px;border-top-right-radius:4px}.fl-lightbox-header{position:relative}.fl-lightbox-header h1{color:#333!important;font-size:16px!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;font-weight:400!important;margin:0!important;padding:14px 34px 15px 28px!important;text-align:left!important;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;line-height:1}.fl-lightbox.ui-draggable .fl-lightbox-header{cursor:move}.fl-lightbox-header h1 .fl-builder-badge{margin-left:10px;color:#fff;background-color:#F7A408}.fl-lightbox-content,.fl-lightbox-content-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1 100%;flex:1 100%;max-width:100%}.fl-lightbox-footer{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex:0 0;flex:0 0;-ms-flex-preferred-size:44px;flex-basis:44px;padding:4px;text-align:right}.fl-lightbox-footer .fl-builder-button{height:36px;margin-left:5px!important;-ms-flex:0 0 0%;flex:0 0 0%;-ms-flex-pack:center;justify-content:center}.fl-lightbox-width-slim .fl-lightbox-footer{-ms-flex-pack:stretch;justify-content:stretch;padding:4px 5px}.fl-lightbox-width-slim .fl-lightbox-footer .fl-builder-button{-ms-flex:1 1 100%;flex:1 1 100%;display:block;text-align:center}.fl-lightbox-width-slim .fl-lightbox-footer .fl-builder-button:first-child{margin-left:0!important}.fl-lightbox table,.fl-lightbox td,.fl-lightbox th,.fl-lightbox tr{border:none}.fl-lightbox-wrap.fl-icon-selector{z-index:1000111}.fl-icon-selector .fl-lightbox{height:100%}.fl-icons-filter{height:auto!important;margin:0!important;position:absolute!important;right:0;top:0;padding:10px 16px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-icons-filter select{vertical-align:middle;width:195px;-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;color:#000;border:2px solid #e4e7ea!important;border-right:none!important;margin:0;padding:2px 10px;background:url(../img/svg/select-arrow-down-alt2.svg) center right 10px no-repeat #fff!important;-ms-flex:1 1 195px;flex:1 1 195px;border-radius:0}.fl-icons-filter input[type=text]{line-height:18px;vertical-align:middle;width:160px;-ms-flex:1 1 160px;flex:1 1 160px;border:2px solid #e4e7ea!important;border-radius:0!important;padding:2px 10px!important}.fl-icons-filter input[type=text]:focus,.fl-icons-filter select:focus{border:2px solid #00A0D2!important}.fl-icons-list{bottom:52px;left:0;overflow:auto;padding:20px;position:absolute;right:0;top:48px}.fl-icons-list::-webkit-scrollbar{background-color:#ccc;-webkit-appearance:none;width:10px}.fl-icons-list::-webkit-scrollbar-thumb{background-color:#666;border:1px solid #ccc}.fl-icons-section{text-align:center}.fl-icons-section h2{border-bottom:1px solid #dfdfdf;color:#333!important;font-family:Helvetica,Verdana,sans-serif!important;font-size:16px!important;font-weight:700!important;margin:0 0 20px!important;padding:0 0 10px!important;text-align:left}.fl-icons-list i,.fl-icons-list i:before{cursor:pointer;display:inline-block;font-size:40px;height:100px;line-height:100px;width:100px;background:0 0}.fl-icons-list i:hover{background:#fff;box-shadow:0 10px 20px rgba(0,0,0,.15);border-radius:4px}.fl-icon-selector-footer{bottom:0;left:0;position:absolute;right:0}html{transition-property:margin}html.fl-builder-is-showing-toolbar{margin-top:calc(44px + 1px)!important}.fl-builder-edit body{position:static!important}.fl-builder-edit:after,.fl-builder-edit:before{z-index:0!important}.fl-builder-edit .fl-builder-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}#wpadminbar{transition-property:transform,opacity;transform-origin:bottom;transform-style:preserve-3d;transform:rotateX(89deg) translateY(46px);opacity:0;will-change:transform}html.fl-builder-show-admin-bar{margin-top:32px}html.fl-builder-show-admin-bar #wpadminbar{transform:rotateX(0) translateY(0);pointer-events:auto;opacity:1}@media screen and (max-width:782px){html.fl-builder-show-admin-bar{margin-top:46px}}.fl-clear{clear:both}.screen-reader-text{position:absolute;left:-1000em;top:-1000em;height:1px;width:1px;overflow:hidden}.fl-builder-loading{background:url(../img/ajax-loader.svg) center center no-repeat rgba(240,240,240,.8);bottom:0;display:none;left:0;position:fixed;right:0;text-align:center;top:0;z-index:12000000}.fl-builder-settings .fl-builder-loading{background:url(../img/ajax-loader.svg) center center no-repeat rgba(255,255,255,.8);display:block;position:absolute}.fl-field-loader{color:#B3B3B3!important;font-style:italic}.fl-builder-node-loading{opacity:.35!important}.fl-builder-node-loading-placeholder{background:url(../img/ajax-loader.svg) center center no-repeat;height:50px}.fl-col-group-has-child-loading{display:-ms-flexbox;display:flex}.fl-col-group-has-child-loading>.fl-builder-node-loading-placeholder{width:50px}.fl-node-hidden{display:none}.fl-builder-edit .fl-node-hidden{display:block}html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-visible-desktop,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-visible-desktop-medium,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-visible-medium,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-visible-medium-mobile,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-visible-mobile{display:block!important}html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-col-group-equal-height .fl-col.fl-visible-desktop,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-col-group-equal-height .fl-col.fl-visible-desktop-medium,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-col-group-equal-height .fl-col.fl-visible-medium,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-col-group-equal-height .fl-col.fl-visible-medium-mobile,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-col-group-equal-height .fl-col.fl-visible-mobile{display:-ms-flexbox!important;display:flex!important}.fl-responsive-preview-enabled body{overflow:hidden!important}.fl-responsive-preview-mask{background:#F7F7F7;bottom:0;left:0;position:fixed;right:0;top:0;z-index:99999}.fl-responsive-preview{bottom:0;left:0;position:fixed;right:0;top:0;margin-top:50px;z-index:100000}.fl-builder-preview .fl-responsive-preview{margin:0!important}.fl-responsive-preview-content{background:#F5F7F9;padding:20px 20px 45px;overflow:scroll;position:absolute;top:45px;right:0;bottom:0;left:0}.fl-responsive-preview-content .fl-builder-content-editing{overflow:visible!important}.fl-responsive-preview-message{background:#F5F7F9;color:#b3b3b3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;font-size:14px;font-weight:400;padding:15px;text-align:center;position:absolute;top:0;left:0;right:0;z-index:999999}.fl-responsive-preview-message span{display:inline-block;margin-right:8px}.fl-responsive-preview-message .fl-builder-button{display:inline-block;margin-left:2px;padding:0 10px}.fl-responsive-preview-message .fl-builder-button i{font-size:14px;height:14px;width:14px}.fl-responsive-preview .fl-builder-content{box-shadow:0 0 8px rgba(0,0,0,.2);margin-left:auto;margin-right:auto;max-width:100%;overflow:visible;position:relative}#fl-builder-preview-frame,#fl-builder-preview-mask{bottom:0;height:100%;position:fixed;top:0;width:100%;right:0}.fl-responsive-preview .fl-block-col-resize{display:none}.fl-builder-button,body .fl-builder-bar .fl-builder-bar-content{display:-ms-flexbox;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important}#fl-builder-preview-mask{background:url(../img/ajax-loader.svg) center center no-repeat #F7F7F7;left:0;z-index:999999}#fl-builder-preview-frame{left:50%;transform:translateX(-50%);-moz-transform:translateX(-50%);-webkit-transform:translateX(-50%);z-index:1000000}body button[class*=fl-builder],body button[class*=fl-builder]:focus,body button[class*=fl-builder]:hover{box-shadow:none;max-height:none;max-width:none;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none}.fl-builder-button{-webkit-appearance:none;-ms-flex-align:center;align-items:center;background:#e7ebef;border:2px solid transparent;border-radius:3px;-webkit-border-radius:3px;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;color:#676F7A!important;cursor:pointer;display:flex;fill:#676F7A!important;font-size:14px!important;font-style:normal!important;font-weight:500!important;height:33px;letter-spacing:normal!important;line-height:1!important;margin:0;padding:0 12px;text-align:center;transition-property:background-color,width;transition-duration:.2s;white-space:nowrap;width:auto;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fl-builder--search-results-panel,.fl-builder-bar,.fl-builder-panel{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-touch-callout:none}.fl-builder-button:hover{background:#dadfe5;color:#222;border:2px solid transparent!important}.fl-builder-button:active{background:#DCDCDC}button.fl-builder-button:focus{position:static;top:auto;outline:0;background:#E4E7EA;border:2px solid #00A0D0!important}.fl-builder-bar .fl-builder-button{height:auto}.fl-builder-button-primary,body.fl-builder--layout-has-drafted-changes .fl-builder-done-button{background:#00A0D2;color:#fff!important;text-decoration:none;border:2px solid transparent!important}.fl-builder-button.fl-builder-button-primary:focus,body.fl-builder--layout-has-drafted-changes .fl-builder-button.fl-builder-done-button:focus{background:#00A0D2;border:2px solid #ffc217!important}.fl-builder-button-primary:hover,body.fl-builder--layout-has-drafted-changes .fl-builder-done-button:hover{background:#0197C6;color:#fff!important}.fl-builder-button-primary:active,body.fl-builder--layout-has-drafted-changes .fl-builder-done-button:active{background:#0484AC}.fl-builder-button-large{height:30px}.fl-builder-button-small{font-size:11px!important;line-height:1!important}.fl-builder-help-button{color:#b3b3b3;font-size:16px!important}.fl-builder-help-button i{position:relative;top:-1px}.fl-builder-help-button:hover{color:#666}.fl-builder-publish-button{line-height:45px!important}.fl-builder-content-panel-button,.fl-builder-content-panel-button:hover{fill:#00A0D2!important;font-size:30px!important;padding-bottom:4px}.fl-builder-button-silent,.fl-builder-button-silent:hover{padding:0 12px;background:0 0!important;border:2px solid transparent!important;box-shadow:none!important}.fl-builder-done-button,.fl-builder-done-button:hover{font-weight:600}.fl-field .fl-builder-button{display:inline-block;height:auto;padding:11px 12px;vertical-align:middle;box-shadow:0 2px 4px 0 rgba(0,0,0,.12)}.fl-builder-badge{background:#333;border-radius:2px;color:#fff!important;display:inline;font-size:11px!important;font-weight:400;letter-spacing:1px;margin-left:2px;padding:2px 4px;vertical-align:middle}.fl-builder-badge-global{background:#ff9600;transform:translateY(0);transition-duration:.25s;transition-property:transform}.fl-builder-blocks-node-template .fl-builder-badge-global{position:absolute;right:0;top:0}.fl-builder-block:hover .fl-builder-badge-global{display:none}.fl-builder-bar{left:0;position:fixed;right:0;top:0;z-index:999999;user-select:none;transition-property:transform opacity;transition-duration:.35s;transform-style:preserve-3d;perspective:1100px}.fl-builder-bar.is-hidden .fl-builder-bar-content{transform:translateY(-100%) rotateX(90deg)}body .fl-builder-bar .fl-builder-bar-content{display:flex;box-sizing:border-box;background:#fff;border-bottom:1px solid #eceef1;color:#999;font-size:14px!important;height:calc(44px + 1px);transition-property:background-color,opacity,transform;transition-duration:.35s;pointer-events:auto}.fl-builder-draggable-is-dragging .fl-builder-content,.fl-builder-draggable-is-dragging .fl-builder-panel .fl-lightbox,.fl-builder-resizable-is-resizing .fl-builder-content,.fl-builder-resizable-is-resizing .fl-builder-panel .fl-lightbox,body .fl-builder-bar .fl-builder-bar-content.is-muted{pointer-events:none}body .fl-builder-bar .fl-builder-bar-content.is-muted>:not(.fl-builder-publish-actions){-webkit-filter:saturate(20%) blur(1px);filter:saturate(20%) blur(1px);opacity:.4}.fl-builder-bar-title{box-sizing:border-box;color:#333;display:-ms-flexbox;display:flex;-ms-flex:0 0 380px;flex:0 0 380px;max-width:380px;border-right:1px solid #eceef1;cursor:pointer}.fl-builder-bar-title:hover{background:#fff}.fl-builder-bar-title.is-showing-menu .fl-builder-bar-title-caret>svg{transform:rotate(180deg)}.fl-builder-simple .fl-builder-bar-title{cursor:auto}.fl-builder-simple .fl-builder-bar-title:hover{cursor:auto;background:0 0}.fl-builder-bar-title span{vertical-align:middle}.fl-builder-bar-title-icon{box-sizing:border-box;background:0 0;-ms-flex:0 0 46px;flex:0 0 46px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:4px}.fl-builder-bar-title-icon img{max-width:100%!important;height:auto!important}.fl-builder-bar-title.fl-builder-bar-title-no-icon{padding-left:12px}.fl-builder-bar-title-area{box-sizing:border-box;-ms-flex:1 1 100%;flex:1 1 100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;padding:4px}.fl-builder-layout-title,.fl-theme-builder-preview-select .fl-theme-builder-preview-select-title span{font-size:16px;font-weight:400;line-height:1.3;color:#161B20;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.fl-builder-bar-title-caret,.fl-builder-layout-pretitle,.fl-theme-builder-preview-select .fl-theme-builder-preview-select-title{font-size:12px;font-weight:500;line-height:1.3;color:#656d77;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.fl-builder-bar-title-caret i,.fl-theme-builder-preview-select-title i{color:inherit!important;font-size:14px}.fl-builder-bar-title-caret{margin-left:auto!important;-ms-flex:0 0 46px;flex:0 0 46px}.fl-theme-builder-preview-select-title i{padding:12px}.fl-theme-builder-preview-select.fl-builder-button{position:relative;border-radius:0;background:0 0;min-width:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 360px;flex:0 0 360px;max-width:360px;margin:0!important;padding:4px 10px;border:none!important;border-right:2px solid #d5dadd!important;box-shadow:none}.fl-theme-builder-preview-select.fl-builder-button:hover{border:none!important;border-right:2px solid #d5dadd!important}.fl-theme-builder-preview-select .fl-theme-builder-preview-select-title{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.fl-theme-builder-preview-select-title div{-ms-flex:1;flex:1}.fl-theme-builder-preview-select .fl-theme-builder-preview-select-title span{display:block}.fl-theme-builder-preview-select-open .fl-theme-builder-preview-select-items{position:absolute;top:calc(48px + 10px);left:10px;width:calc(100% - 20px)!important;background:#fff;border-radius:4px;border:2px solid #D5DADD;border-top:3px solid #00a0d2;box-shadow:0 15px 45px 8px rgba(0,0,0,.04);margin:0!important;padding:0;z-index:-1;font-size:16px;overflow:visible;height:auto!important;max-height:calc(100vh - 66px);min-height:300px;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column;flex-direction:column}.fl-theme-builder-preview-select-item{padding:4px 0!important;border-bottom:none!important;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:initial}.fl-theme-builder-preview-select-item:hover{text-decoration:none;color:#111;background:0 0!important}body .fl-theme-builder-preview-select .fa-caret-down{float:none}body .fl-theme-builder-preview-select-item-title{padding:10px 15px;color:#222;font-size:14px}body .fl-theme-builder-preview-select-item-children{overflow:auto}body .fl-theme-builder-preview-select-item-child{overflow:hidden;text-overflow:ellipsis;line-height:1.1;margin:0 10px;border:2px solid transparent;border-radius:4px;padding:8px 10px 10px;font-size:14px;font-weight:400;color:#222}body .fl-theme-builder-preview-select-item-child:hover{background:#e6eaed!important}.fl-theme-builder-preview-select-item .fa-caret-down{color:#606D77}.fl-builder-bar-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex:1 1 100%;flex:1 1 100%;padding:4px}.fl-builder-bar .fl-builder-button{margin:0 0 0 4px}.fl-builder-bar-actions .fl-builder-button:last-child{margin:0}.fl-builder-bar-actions:after{clear:both}.fl-builder-bar .fl-builder-content-panel-button{-ms-flex-align:baseline!important;align-items:baseline!important;padding-top:1px;font-weight:400}.fl-builder-content-panel-button svg{transition-property:transform;transition-duration:.25s;transform:rotate(0) scale(1);transform-origin:center}.fl-builder-content-panel-is-showing .fl-builder-content-panel-button svg{transform:rotate(135deg) scale(1.1) translate(.5px,-.5px)}.fl-builder--saving-indicator{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;padding:0 10px;font-size:12px;font-style:italic;color:#676f7a;-ms-flex-align:center;align-items:center;line-height:1.2;min-width:180px;-ms-flex-pack:end;justify-content:flex-end}.fl-builder--saving-indicator:hover{color:#676f7a}.fl-builder--saving-indicator .fa-question-circle{font-size:13px;margin:3px 0 3px 5px}.fl-builder-buy-button,.fl-builder-feedback-button,.fl-builder-upgrade-button{background:#F7A407;color:#fff!important;text-decoration:none}.fl-builder-buy-button i.fa-external-link-alt,.fl-builder-feedback-button i.fa-external-link-alt,.fl-builder-upgrade-button i.fa-external-link-alt{color:#FFC733;margin:0 0 0 6px}.fl-builder-buy-button:hover,.fl-builder-feedback-button:hover,.fl-builder-upgrade-button:hover{background:#EE8E0D;color:#fff!important}@media (max-width:980px){.fl-builder--main-menu-panel{width:calc(100% - 20px)!important}.fl-builder--main-menu-panel:before{right:auto;left:20px}.fl-builder-bar-title,.fl-theme-builder-preview-select{-ms-flex:1 .5 380px!important;flex:1 .5 380px!important}}@media (max-width:620px){.fl-theme-builder-preview-select.fl-builder-button{display:none}}@media (max-width:500px){#fl-builder-toggle-notifications,.fl-builder--main-menu-panel:before,.fl-builder--panel-arrow,.fl-builder-bar-title-area,.fl-builder-panel-drag-handle,.fl-builder-panel:before{display:none}.fl-builder--main-menu-panel,.fl-builder-panel{width:auto!important;top:44px!important;left:0!important;right:0!important;bottom:0!important;border-radius:0!important;box-shadow:none!important}.fl-builder--main-menu-panel{border-left:transparent!important;border-right:transparent!important;border-bottom:transparent!important;max-height:calc(100% - 44px)!important}.fl-builder-bar-title{-ms-flex:0 0 80px!important;flex:0 0 80px!important}.fl-builder-bar-title-caret{padding-left:0;padding-right:0;max-width:24px}.fl-builder-bar-actions{max-width:calc(100% - 80px);overflow:hidden}.fl-builder--panel-header{border-radius:0!important;cursor:default!important}.fl-builder--panel-header .fl-builder--tabs{cursor:default!important}.fl-builder-publish-actions{width:100%!important;padding-left:4px!important}.fl-builder-bar-actions .fl-builder-button{padding:0 8px!important}}.fl-builder--preview-actions{display:none;position:fixed;top:4px;left:4px;z-index:10000001;padding:4px;-ms-flex-pack:center;justify-content:center;background:#fff;border-radius:4px}.fl-builder-preview .fl-builder--preview-actions{display:-ms-flexbox;display:flex}.fl-builder--preview-actions .device-icons{color:#555;background:#e4e4e4;border:none!important;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;text-decoration:none;font-size:14px!important;line-height:1!important;margin:0 4px 0 0;padding:0 6px;cursor:pointer;-webkit-border-radius:3px;-webkit-appearance:none;border-radius:3px}.fl-builder--preview-actions .device-icons i{margin:0 6px}@keyframes fl-builder-ui-pin-zone-pulse{0%,100%{opacity:1;filter:alpha( opacity=1 )}50%{opacity:.5;filter:alpha( opacity=35 )}}.fl-builder-ui-pin-zone{animation:fl-builder-ui-pin-zone-pulse 2s infinite;transition:width .3s ease;background:rgba(0,160,210,.5);bottom:0;top:0;position:fixed;width:35px;z-index:100001}.fl-builder-ui-show-pin-zone-left .fl-builder-ui-pin-zone-left,.fl-builder-ui-show-pin-zone-right .fl-builder-ui-pin-zone-right{width:75px}.fl-builder-ui-pin-zone-left{left:0}.fl-builder-ui-pin-zone-right{right:0}.fl-builder-content-panel-pin-zone .fl-builder-content-panel-button{display:-ms-flexbox!important;display:flex!important;background:rgba(0,160,210,.5)!important;padding:2px 4px;width:80px;animation:fl-builder-ui-pin-zone-pulse 2s infinite}.fl-builder-content-panel-pin-zone .fl-builder-content-panel-button svg{display:none}.fl-builder-content-panel-pin-zone-hover .fl-builder-content-panel-button{width:120px}.fl-builder-content-panel-pin-zone-hover .fl-builder-content-panel-button svg{display:none!important;width:100%;transform:none!important;fill:#00A0D2!important;border-radius:3px}.fl-builder-ui-is-pinned .fl-builder-content-panel-button,.fl-builder-ui-pinned-container .fl-lightbox-controls{display:none}.fl-builder-content-panel-pin-zone .fl-builder-done-button{-webkit-filter:grayscale(100%);filter:grayscale(100%)}.fl-builder-panel.fl-builder-ui-pinned{top:45px!important;bottom:0!important;height:auto!important;border-radius:0;border:none;box-shadow:none;animation-duration:0s;-moz-animation-duration:0s;-webkit-animation-duration:0s;-o-animation-duration:0s;z-index:11}.fl-builder-panel.fl-builder-ui-pinned-right{left:auto!important;right:0;border-left:1px solid #eceef1}.fl-builder-panel.fl-builder-ui-pinned-left{left:0;right:auto;border-right:1px solid #eceef1}.fl-builder-panel.fl-builder-ui-pinned .fl-builder--panel-header{border-radius:0!important}.fl-builder-ui-pinned-container .fl-lightbox-wrap{position:absolute;z-index:11}.fl-builder-ui-pinned-container .fl-lightbox{position:absolute;top:0;bottom:0;left:0;right:0;width:auto!important;height:auto;border-radius:0;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;animation-duration:0s;-moz-animation-duration:0s;-webkit-animation-duration:0s;-o-animation-duration:0s}.fl-builder-ui-pinned-container .fl-lightbox-header-wrap{border-radius:0}.fl-builder-ui-pinned-container .fl-lightbox.ui-draggable .fl-lightbox-header{cursor:auto}.fl-builder-ui-pinned-container .fl-lightbox-header h1{padding:12px 20px 10px!important}.fl-builder-ui-pinned-content-transform{transform:scale(1);transform-origin:center top 0}.fl-builder-ui-pinned-collapse{cursor:pointer;display:none;position:absolute!important;bottom:2px;padding:5px;border:2px solid transparent;background:0 0;width:36px;height:36px;border-radius:4px;fill:#778794;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}.fl-builder-ui-pinned-collapse:focus,.fl-builder-ui-pinned-collapse:hover{top:auto!important;background:0 0;border:2px solid transparent;outline:0;fill:#00A0D2}.fl-builder-ui-pinned-collapse:focus{background:#E4E7EA}.fl-builder-ui-pinned-collapse>*{margin:auto;line-height:1}.fl-builder-ui-pinned-collapse svg g{fill:inherit}.fl-builder-ui-is-pinned-right .fl-builder-ui-pinned-right-collapse{display:-ms-flexbox;display:flex;left:-40px}.fl-builder-ui-is-pinned-left .fl-builder-ui-pinned-left-collapse{display:-ms-flexbox;display:flex;right:-40px}.fl-builder-ui-pinned-collapse i[data-toggle=show],.fl-builder-ui-pinned-is-collapsed i[data-toggle=hide]{display:none}.fl-builder-ui-pinned-is-collapsed i[data-toggle=show]{display:block}.fl-builder--panel-no-settings,.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-builder--panel-content,.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-builder--panel-controls,.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-builder--tab-wrap,.fl-builder-ui-pinned-is-collapsed .fl-builder--panel-header{display:none}.fl-builder-ui-is-pinned-left [data-toggle=hide],.fl-builder-ui-is-pinned-right [data-toggle=show]{transform:rotateY(180deg)}.fl-builder-ui-pinned-is-collapsed .fl-lightbox{box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none}.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-builder--panel-header{background:0 0;border:none;z-index:10}.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-lightbox-wrap{top:0}.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-lightbox-header h1{padding:14px 28px 15px!important}.fl-builder-simple-pinned .fl-builder--panel-no-settings{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:0;left:0;right:0;bottom:0}@keyframes fl-builder-show-panel{from{transform:scale(.8)}to{transform:scale(1)}}.fl-builder--search-results-panel,.fl-builder-panel{box-sizing:border-box;position:fixed!important;right:20px;top:calc(43px + 10px);width:380px;bottom:20px;background:#F5F7F9;color:#676F7A;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px;border-radius:4px;box-shadow:0 8px 40px 4px rgba(0,0,0,.3);z-index:10000007;will-change:transform;user-select:none}.fl-builder-panel{transform-origin:top right;animation-name:fl-builder-show-panel;animation-duration:.15s;animation-fill-mode:both;-ms-flex:1;flex:1;display:none}.fl-builder--search-results-panel{display:none;position:absolute;right:0;top:93px;left:0;bottom:0;width:auto!important;border:none;border-radius:0;box-shadow:none;min-height:100px;max-height:calc(100vh - 54px);overflow:auto;z-index:1}.fl-builder-content-panel-is-showing .fl-builder-panel,.fl-builder-search-results-panel-is-showing .fl-builder--search-results-panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.fl-builder-panel .fl-lightbox .fl-builder-panel-drag-handle,.fl-builder-ui-is-pinned .fl-builder--panel-arrow,.fl-lightbox-width-full .fl-builder-panel-drag-handle,body.fl-builder-draggable-is-dragging .fl-builder--panel-arrow{display:none}.fl-builder--search-results-panel .fl-builder--no-results{text-align:center;padding:50px 20px}.fl-builder--panel-arrow{position:absolute;top:-13px;right:10px}.fl-builder--panel-arrow polygon{fill:#00a0d2}.fl-builder--panel-header{border-top:3px solid #00a0d2;border-top-right-radius:4px;border-top-left-radius:4px}.fl-builder-ui-is-pinned .fl-builder--panel-header{border-top:none}.fl-builder-panel-drag-handle{position:absolute;top:7px;left:10px;fill:#ccd4da;width:6px}.fl-builder-ui-is-pinned-left .fl-builder-panel-drag-handle{left:auto;right:10px}.fl-builder--panel-header .fl-builder--panel-controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative}.fl-builder--panel-header .fl-builder--panel-controls .fl-builder-content-group-select{-ms-flex:1 1;flex:1 1}.fl-builder--panel-header .fl-builder--panel-controls .fl-builder-panel-search{-ms-flex:0 0;flex:0 0;padding:0 10px 6px 0;margin-left:-4px}.fl-builder--panel-controls .fl-builder-panel-search button{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;background:0 0!important;border:2px solid transparent!important;font-size:inherit;height:36px;margin:0;padding:0}.fl-builder--panel-controls .fl-builder-panel-search button:active,.fl-builder--panel-controls .fl-builder-panel-search button:focus{top:0;outline:0}.fl-builder-panel-search button svg{height:auto;width:20px}.fl-builder-panel-search button.fl-builder-dismiss-panel-search svg{width:16px}.fl-builder-panel-search button svg .filled-shape{fill:#000}.fl-builder--panel-controls .fl-builder-panel-search button:active svg .filled-shape,.fl-builder--panel-controls .fl-builder-panel-search button:focus svg .filled-shape{fill:#00A0D2}.fl-builder-panel-search .fl-builder-panel-search-input{display:none;position:absolute;top:0;left:0;right:0;bottom:0;background:#f5f7f9}.fl-builder-panel-search.is-showing-input .fl-builder-panel-search-input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:0 10px 6px}.fl-builder-panel-search-input input{-ms-flex:1 1 100%;flex:1 1 100%;border:2px solid #e6eaed;background:#fff;border-radius:4px;margin:0 4px 0 0;padding:10px;color:#333}.fl-builder-panel-search-input input:focus{border-color:#0197C6;outline:0}.fl-builder-panel-content-wrap{bottom:0;height:auto;left:0;overflow:hidden;position:absolute;right:0;top:43px}.fl-builder-panel-content{padding-bottom:60px}.fl-builder--panel-view .fl-builder-blocks-section:first-child{border-top:none}.fl-builder-blocks-group:first-child{padding:20px 0 0}.fl-builder-blocks-group .fl-builder-blocks-section-group-name{display:block;padding:0 30px 15px;color:#000;font-size:20px;font-weight:600;line-height:1.4}.fl-builder-blocks-section .fl-builder-block{display:block;line-height:1.1;padding:15px 20px}.fl-builder--template-collection-section-header,.fl-builder-blocks-section .fl-builder-blocks-section-header{line-height:1.2;color:#333;margin:0!important;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#e7ebef;border-top:4px solid #e7ebef;height:30px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-builder-blocks-section .fl-builder-blocks-section-title{background:#F5F7F9;color:#353535;padding:2px 16px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.fl-builder-blocks-section .fl-builder-blocks-section-title i{color:#bfbfbf;float:right}.fl-builder-blocks-section-content{overflow:auto;padding:10px 10px 20px}.fl-builder-blocks-section-content:before{content:none}.fl-builder-blocks-section-content:after{float:none;clear:both}.fl-builder-blocks-section-content.fl-builder-modules,.fl-builder-blocks-section-content.fl-builder-rows,.fl-builder-blocks-section-content.fl-builder-widgets{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}@supports (display:grid){.fl-builder--template-collection-section-content,.fl-builder-blocks-section-content.fl-builder-modules,.fl-builder-blocks-section-content.fl-builder-rows,.fl-builder-blocks-section-content.fl-builder-widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr))}.fl-builder--template-collection-section-content>*,.fl-builder-blocks-section-content.fl-builder-modules>*,.fl-builder-blocks-section-content.fl-builder-rows>*,.fl-builder-blocks-section-content.fl-builder-widgets>*{width:auto!important}}.fl-builder-blocks-section-content .fl-builder-block-module,.fl-builder-blocks-section-content .fl-builder-block-row{-ms-flex:1 1 50%;flex:1 1 50%;width:50%;box-sizing:border-box}.fl-builder--search-results-panel .fl-builder-blocks-section-content .fl-builder-block-module{-ms-flex:1 1 100%;flex:1 1 100%;width:100%}.fl-builder-blocks-section.fl-active .fl-builder-blocks-section-content{display:block}.fl-builder-blocks-section-content .fl-builder-block{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px;font-size:13px;line-height:1.1;font-weight:400;color:#38404a}.fl-builder-block{position:relative;height:47px}.fl-builder-block.fl-builder-block-col-group{height:84px}.fl-builder-block.fl-builder-block-has-thumbnail{height:auto!important;padding:10px!important}.fl-builder-block.fl-builder-block-has-thumbnail:hover{padding:0!important}.fl-builder-block.fl-builder-block-has-thumbnail .fl-builder-block-content{position:relative!important}.fl-builder-block.fl-builder-block-has-thumbnail:hover .fl-builder-block-content{padding:10px!important}.fl-builder-block.fl-builder-block-has-thumbnail .fl-builder-block-details{margin:0 10px 4px!important}.fl-builder-block:hover{overflow:visible;z-index:1}.fl-builder-block:hover .fl-builder-block-content{display:block;box-sizing:border-box;position:absolute;top:0;left:0;width:100%;padding:15px 20px;border-radius:4px;background:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);text-decoration:none;color:#111;cursor:move;overflow:hidden}.fl-builder-blocks-node-template .fl-builder-block,.fl-builder-blocks-section-content .fl-builder-block .fl-builder-block-details{position:relative}.fl-builder-block-module:hover .fl-builder-block-content{width:auto;min-width:100%}.fl-builder-block .fl-builder-block-content .fl-builder-block-visual{display:block;margin-bottom:7px}.fl-builder-block-drag-helper .fl-builder-block-content .fl-builder-block-visual{display:none!important}.fl-builder-block .fl-builder-block-content .fl-builder-block-visual.fl-cols-visual{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:30px}.fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col{-ms-flex:1 100%;flex:1 100%;background:#464a4c;height:30px;margin:0 2px;border-radius:2px}.fl-builder-block:hover .fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col{background:#000}.fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col:first-child{margin-left:0!important}.fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col:last-child{margin-right:0!important}.fl-cols-visual.left-right-sidebar .fl-cols-visual-col:first-child,.fl-cols-visual.left-right-sidebar .fl-cols-visual-col:last-child,.fl-cols-visual.left-sidebar .fl-cols-visual-col:first-child,.fl-cols-visual.right-sidebar .fl-cols-visual-col:last-child{-ms-flex-preferred-size:60px;flex-basis:60px}.fl-builder-block-saved-column.fl-builder-block-global .fl-builder-block-title,.fl-builder-block-saved-column:hover .fl-builder-block-title,.fl-builder-block-saved-module.fl-builder-block-global .fl-builder-block-title,.fl-builder-block-saved-module:hover .fl-builder-block-title,.fl-builder-block-saved-row.fl-builder-block-global .fl-builder-block-title,.fl-builder-block-saved-row:hover .fl-builder-block-title{margin-right:70px}.fl-builder-block-module:nth-child(even):hover .fl-builder-block-content{left:auto;right:0}.fl-builder-block-thumbnail{border-radius:4px;background-size:contain;background-repeat:no-repeat;background-position:center;background-color:rgba(0,0,0,.06);margin-bottom:10px;transform-origin:bottom;transition-property:transform,box-shadow;transition-duration:.15s}.fl-builder-block:hover .fl-builder-block-thumbnail{transform:scale(1.05);box-shadow:0 20px 40px rgba(0,0,0,.08)}.fl-builder-block .fl-builder-block-icon{margin-right:7px;fill:#000;display:inline-block;width:20px;height:20px;vertical-align:middle}.fl-builder-block-thumbnail:before{content:"";display:block;padding-top:50%}.fl-builder-block-thumbnail img{max-width:100%;max-height:160px;margin:0;-o-object-fit:cover;object-fit:cover}.fl-builder-blocks-section-content .fl-builder-block{box-shadow:0 0 0 transparent;transition-property:box-shadow;transition-duration:.15s}.fl-builder-blocks-section-content .fl-builder-block i,.fl-user-template-actions i{color:#000;margin-right:10px}.fl-builder-blocks-separator{background:#f1f1f1;height:6px}.fl-builder-block:hover .fl-builder-badge{background:#2ea2cc}.ui-sortable-helper .fl-builder-badge{display:none!important}.fl-builder-modules-cta a{color:#999!important;display:block!important;font-size:12px!important;font-style:italic!important;padding:15px 20px!important;line-height:16px!important}.fl-builder-modules-cta a:hover{background:#e5e5e5!important;color:#666!important;text-decoration:none!important}.fl-builder-modules-cta a:focus{text-decoration:none!important}.fl-builder-modules-cta .fa{float:right!important;font-size:14px!important;margin:3px 0 0 9px!important}.fl-builder--panel-message{text-align:center;padding:40px 20px;font-size:16px}.fl-builder--panel-message .fl-builder-button{display:inline-block;padding:10px}.fl-builder--panel-cta{padding:20px 30px;font-size:16px;text-align:center}.fl-builder--panel-cta a{color:inherit;text-decoration:none}.fl-builder--panel-cta a:hover{text-decoration:none}.fl-builder-block-template-image{margin:5px 0 10px;max-width:100%;border:1px solid #dfdfdf}.fl-builder-block .fl-builder-block-title{overflow:hidden;text-overflow:ellipsis;vertical-align:middle;line-height:1.3}.ui-sortable-helper .fl-builder-block-template-image{display:none!important}@keyframes fl-builder-template-item-enter{from{transform:translateY(100px) scale(.3);opacity:0}to{transform:scale(1);opacity:1}}.fl-builder--template-collection{clear:both;padding:10px 0}.fl-builder--template-collection-section-content{padding:0 10px}.fl-builder--template-collection-item{box-sizing:border-box;width:50%;float:left;padding:10px;cursor:pointer;font-size:13px;transform-origin:center;opacity:1}.fl-builder--template-thumbnail{background-size:cover;background-clip:content-box;background-position:center top;background-color:#fff;border:2px solid transparent;transform-origin:bottom;transition-property:transform,box-shadow;transition-duration:.15s}.fl-builder--template-collection-item[data-id="0"] .fl-builder--template-thumbnail,.fl-user-template .fl-builder--template-thumbnail{border-color:#e4e7ea}.fl-builder--template-thumbnail:before{display:block;content:"";padding-top:120%}.fl-builder--template-thumbnail:hover{transform:scale(1.05);box-shadow:0 20px 40px rgba(0,0,0,.08)}.fl-builder--template-name{text-align:center;padding:4px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.fl-builder--template-collection-section{padding-bottom:10px;border-bottom:1px solid #dfdfdf}.fl-builder--template-collection-section:last-child{border-bottom:none}.fl-builder--template-collection-section:after,.fl-builder--template-collection-section:before{content:"";display:block;clear:both}.fl-builder--template-collection-section-name{padding:15px 10px 10px}span.fl-builder-block-no-node-templates{display:block;padding:15px 20px;text-align:center}span.fl-builder-block-no-node-templates:hover{cursor:default}.fl-builder-blocks-section-content .fl-builder-node-template-actions{bottom:0;cursor:default;display:none;position:absolute;right:0;top:0}.fl-builder-blocks-section-content .fl-builder-node-template-delete,.fl-builder-blocks-section-content .fl-builder-node-template-edit{display:inline;cursor:pointer;margin:0;padding:15px 10px;text-align:center;width:30px}.fl-builder-block-details .fl-builder-node-template-delete,.fl-builder-block-details .fl-builder-node-template-edit{padding-top:0!important}.fl-builder-blocks-section-content .fl-builder-node-template-delete i,.fl-builder-blocks-section-content .fl-builder-node-template-edit i{margin:0}.fl-builder-blocks-section-content .fl-builder-node-template-delete:hover i,.fl-builder-blocks-section-content .fl-builder-node-template-edit:hover i{color:#444}.fl-builder-blocks-node-template .fl-builder-block:hover .fl-builder-node-template-actions{display:block}.ui-sortable-helper .fl-builder-node-template-delete,.ui-sortable-helper .fl-builder-node-template-edit{display:none!important}.fl-builder--tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.fl-builder-panel .fl-builder--panel-header{cursor:move}.fl-builder-panel .fl-builder--tabs{-ms-flex-pack:distribute;justify-content:space-around;padding:4px 24px;cursor:pointer}.fl-builder--tab-wrap{-ms-flex:1 1 100%;flex:1 1 100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;justify-content:space-between;margin:auto;max-width:400px}.fl-builder--tabs button,.fl-builder--tabs button:active,.fl-builder--tabs button:focus,.fl-builder--tabs button:hover{-ms-flex:1 1 100%;flex:1 1 100%;display:inline-block;text-decoration:none;text-transform:none;color:inherit;text-align:center;letter-spacing:normal!important;margin:0;padding:5px;cursor:pointer;font-size:13px!important;font-weight:500!important;line-height:1.3!important;background:0 0!important;outline:0!important;border:2px solid transparent;border-radius:4px;min-height:36px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;top:0;transition-property:background,color;transition-duration:.25s}.fl-builder--tabs button:focus{background:#e6eaed!important}.fl-builder--tabs button.is-showing{color:#0086b0}.fl-builder--panel-content{-ms-flex:1;flex:1}.fl-builder--panel-view{display:none;overflow:hidden}.fl-builder--panel-view.is-showing{display:block}.fl-builder--content-library-panel.ui-draggable-dragging{height:500px!important}.fl-builder--content-library-panel .fl-builder-drop-zone{display:none!important}.fl-builder--panel-header .fl-builder--tabs{cursor:move}.fl-builder--category-select{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}.fl-builder--selector-display{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative;-ms-flex-pack:justify;justify-content:space-between;color:#161B20;background:url(../img/svg/select-arrow-down-alt2.svg) center right 10px no-repeat #fff!important;cursor:pointer;font-size:13px;font-weight:700;line-height:16px;border-radius:4px;-ms-flex-align:stretch;align-items:stretch}.fl-builder--selector-display-label{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;font-size:inherit;line-height:inherit;width:100%;margin:0!important;padding:0!important;color:#6D6D6D;background:0 0;border:2px solid transparent;box-shadow:0 1px 2px 0 rgba(0,0,0,.12)!important;border-radius:4px;font-family:inherit;text-transform:none}.fl-builder--selector-display-label:hover{top:0;color:inherit;background:0 0;border:2px solid transparent;border-radius:4px}.fl-builder--selector-display-label:active{top:0;color:inherit;background:0 0;border:2px solid #e4e7ea;border-radius:4px}.fl-builder--selector-display-label:focus{top:0;color:inherit;background:0 0;border:2px solid #00A0D2;outline:0}.fl-builder--group-label{color:inherit;-ms-flex:0 0 0%;flex:0 0 0%;padding:4px 12px 4px 10px;background:#e7ebef;border-radius:3px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.fl-builder--current-view-name{-ms-flex:1 1 100%;flex:1 1 100%;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;padding:8px 10px;text-align:left}.fl-builder--selector-menu{display:none;color:#293138;position:absolute;top:46px;left:0;width:100%;background:#fff;border-radius:4px;box-shadow:0 0 20px 2px rgba(0,0,0,.2);overflow:visible;z-index:2}.fl-builder--selector-menu:before{bottom:100%;right:8px;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:solid;border-color:rgba(255,255,255,0);border-bottom-color:#fff;border-width:10px;margin-left:-10px}.fl-builder--category-select.is-showing .fl-builder--selector-menu{display:-ms-flexbox;display:flex;max-height:calc(100vh - 150px)}.fl-builder--category-select.is-showing .fl-builder--selector-menu .fl-builder--menu{margin:10px 0;-ms-flex:1 100%;flex:1 100%;overflow:auto}button.fl-builder-button.fl-builder-bar-title-caret{margin:4px}button.fl-builder-button.fl-builder-bar-title-caret:focus{background-color:#e6eaed!important;border-color:transparent!important}.fl-builder--category-select.is-showing .fl-builder-bar-title-caret i{transform:rotate(180deg)}.fl-builder--menu{margin-bottom:2px}.fl-builder--menu>a,.fl-builder--menu>button,.fl-builder--menu>span{display:block;padding:8px 10px 10px;border-radius:4px;color:inherit;text-decoration:none;background:0 0!important;border:2px solid transparent!important;font-weight:400;font-family:inherit}.fl-builder--menu>a:active,.fl-builder--menu>a:focus,.fl-builder--menu>a:hover,.fl-builder--menu>button:active,.fl-builder--menu>button:focus,.fl-builder--menu>button:hover{background:#e6eaed!important;border:2px solid transparent!important;top:0}.fl-builder-block-drag-helper,.fl-builder-block.ui-draggable-dragging,.fl-builder-drop-zone,.fl-builder-empty{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.fl-builder--menu>a:focus,.fl-builder--menu>button:focus{outline:0;color:inherit;text-decoration:none}.fl-builder--menu .fl-has-children>svg{float:right;margin:0 7px 0 0;height:16px;width:9px;transition-property:transform;transition-duration:.15s;transform:rotate(-90deg)}.fl-builder--menu .fl-has-children.fl-has-children-showing>svg{transform:rotate(0)}.fl-builder--menu .fl-inset{display:none;padding-left:35px;font-size:14px;line-height:1.25}.fl-builder--menu a.fl-template-collection{color:#161B20}.fl-builder--menu>:after{clear:both}.fl-builder--menu * .fl-builder--menu-item-accessory{float:right;color:#000;text-transform:uppercase;text-align:center;min-width:20px;letter-spacing:2px}.fl-builder--menu * .fl-builder--menu-item-accessory i{font-size:1em;margin-top:2px}.fl-builder--menu .fl-builder-video-wrap iframe{display:block;margin:4px 0;width:100%}.fl-builder-publish-actions{display:-ms-flexbox;display:flex;box-sizing:border-box;position:absolute;top:0;right:0;width:380px;max-width:100%;height:44px;padding:4px 4px 4px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;opacity:1;pointer-events:auto;transform:scaleX(1) translateX(0);transform-origin:right;transition-property:transform,opacity;transition-duration:.15s}.fl-builder-publish-actions.is-hidden{transform:scaleX(.23) translateX(68px);opacity:0;pointer-events:none}.fl-builder-bar .fl-builder-button-group{display:-ms-flexbox;display:flex;-ms-flex-preferred-size:100%;flex-basis:100%}.fl-builder-bar .fl-builder-button-group>.fl-builder-button{border-radius:0;margin-left:0;-ms-flex-preferred-size:100%;flex-basis:100%;text-align:center;-ms-flex-pack:distribute;justify-content:space-around;box-shadow:none}.fl-builder-bar .fl-builder-button-group>.fl-builder-button:first-child{margin-left:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.fl-builder-bar .fl-builder-button-group>.fl-builder-button:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.fl-builder-publish-actions-click-away-mask{display:none;position:fixed;top:0;left:0;right:0;height:100vh;background:0 0}.fl-builder-dragging .fl-builder-content:not(.fl-builder-empty){padding:16px 0}.fl-builder-empty{display:none;border:2px dashed #969696;border-radius:8px;color:#909090;font-size:20px;font-weight:700;margin:10px;padding:250px 20px;position:relative;text-align:center;text-transform:uppercase}.fl-builder-drop-zone,.fl-builder-has-submenu>ul.fl-builder-submenu li a{font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fl-builder-edit .fl-builder-empty{display:block}.fl-builder-block-drag-helper,.fl-builder-block.ui-draggable-dragging{background:rgba(255,255,255,.95)!important;border:2px solid #000;border-radius:4px;box-shadow:0 0 8px rgba(0,0,0,.2);-moz-box-shadow:0 0 8px rgba(0,0,0,.2);-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);color:#333!important;font-size:13px!important;height:47px!important;line-height:40px!important;overflow:hidden;padding:0 20px;position:fixed!important;text-overflow:ellipsis;white-space:nowrap;width:180px!important;z-index:100010!important;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:start;justify-content:flex-start}.fl-builder-block.fl-builder-block-drag-helper:hover{padding:0;box-shadow:none}.fl-builder-block-drag-helper:hover .fl-builder-block-content{position:static;padding:0 20px}.fl-col-has-highlight-guide .fl-col-content,.fl-col-highlight,.fl-row-highlight .fl-col-group{position:relative}.fl-builder-block-saved-column.fl-builder-block-drag-helper:hover .fl-builder-block-content,.fl-builder-block-saved-module.fl-builder-block-drag-helper:hover .fl-builder-block-content,.fl-builder-block-saved-row.fl-builder-block-drag-helper:hover .fl-builder-block-content{padding:14px 20px}.fl-builder-block-drag-helper .fl-builder-block-icon{fill:#000;margin-top:-10px}.fl-builder-drop-zone{animation:fl-builder-drop-zone-pulse 2s infinite;background:#00A2D7;border-radius:4px;color:#fff!important;display:block;font-size:12px;letter-spacing:1px;line-height:14px;margin:10px;padding:6px 8px 5px;position:relative;text-align:left;text-shadow:none;text-transform:none;z-index:10}@keyframes fl-builder-drop-zone-pulse{0%,100%{background-color:#00A2D7}50%{background-color:#79DEFF}}.fl-builder-drop-zone-global{animation:fl-builder-drop-zone-global-pulse 2s infinite;background:#ff9600}@keyframes fl-builder-drop-zone-global-pulse{0%,100%{background-color:#FFBC5C}50%{background-color:#ff9600}}.fl-builder-content>.fl-builder-drop-zone{margin:10px 20px}.fl-row-content>.fl-builder-drop-zone{margin:3px 7px}.fl-col-has-cols>.fl-col-content>.fl-builder-drop-zone{margin:3px 10px}.fl-sortable-disabled>.fl-builder-drop-zone{display:none!important}.fl-col-group-equal-height.fl-col-group-align-center .fl-col-content>.fl-builder-drop-zone{width:100%}.fl-row-highlight{padding:16px 0}.fl-row-highlight .fl-row-content{border:2px dashed rgba(203,205,206,.5);padding:8px;border-radius:6px}.fl-row-highlight.fl-node-global .fl-row-content{border-color:#ff9600}.fl-col-highlight{padding:8px}.fl-col-highlight .fl-col-content{border-style:dashed!important;border-color:#00a0d2!important;border-radius:4px;min-height:100px;overflow-x:hidden;border-width:2px!important}.fl-col-has-cols.fl-col-highlight>.fl-col-content{padding:8px}.fl-col-highlight.fl-node-global .fl-col-content{border-color:#ff9600!important}.fl-builder-simple .fl-col-highlight .fl-col-content{border:none!important}.fl-col-highlight-guide{background:rgba(0,160,210,.05);border:2px solid #00A0D2;border-radius:4px;bottom:4px;left:4px;position:absolute;right:4px;top:4px;z-index:1}.fl-node-global .fl-col-highlight-guide{border-color:#ff9600!important;background-color:rgba(255,150,0,.06)!important}.fl-col-has-highlight-guide .fl-block-overlay{background:0 0;border-color:transparent}.fl-col-has-highlight-guide .fl-block-col-resize{display:none}.fl-col-has-highlight-guide .fl-col-highlight .fl-col-content{border-color:transparent!important}.fl-col-drop-target{bottom:8px;display:none;left:-9px;position:absolute;top:8px;width:18px;z-index:1}.fl-col-highlight .fl-col-drop-target{display:block}.fl-col-drop-target-last{left:auto;right:-9px}.fl-col-drop-target .fl-builder-drop-zone{bottom:0;left:2px;margin:0;padding:0;position:absolute;right:2px;top:0}.fl-col-group-drop-target{display:none;left:8px;height:18px;position:absolute;right:8px;top:-9px;z-index:1}.fl-row-highlight .fl-col-group-drop-target{display:block}.fl-col-group-drop-target-last{top:auto;bottom:-9px}.fl-col-group-drop-target .fl-builder-drop-zone{bottom:2px;left:0;margin:0;padding:0;position:absolute;right:0;top:2px}.fl-row-content>.fl-col-group-drop-target{position:static}.fl-row-content>.fl-col-group-drop-target .fl-builder-drop-zone{height:18px;position:static}.fl-row-drop-target{display:none;left:0;height:24px;margin-top:-28px;position:absolute;right:0;z-index:1}.fl-row-highlight .fl-row-drop-target{display:block}.fl-row-drop-target-last{margin-top:4px}.fl-row .fl-row-drop-target .fl-builder-drop-zone{bottom:0;left:4px;margin:0;position:absolute;right:4px;top:0}.fl-builder-content>.fl-row-drop-target{margin:0;position:static}.fl-builder-dragging .fl-builder-content.fl-builder-empty>.fl-row-drop-target{bottom:10px;display:block;height:auto;left:0;position:absolute;right:0;top:10px}.fl-builder-content .fl-row-drop-target .fl-builder-drop-zone{margin-bottom:0;margin-top:0}.fl-col-group:focus,.fl-col:focus,.fl-module:focus,.fl-row:focus{outline:0}.fl-sortable-proxy{display:none}.fl-block-overlay,.fl-block-overlay *{text-shadow:none;-webkit-touch-callout:none;transition-property:border-color;transition-duration:.3s}.fl-block-overlay-active{position:relative}.fl-block-overlay-actions{background:#00A0D2;float:left;height:30px;margin:-1px -1px 0;padding:0 4px;text-shadow:none;border-bottom-right-radius:5px;border-top-left-radius:3px;transition-property:background-color;transition-duration:.3s}.fl-row-overlay-header-bottom .fl-block-overlay-actions{border-radius:0 5px 0 3px}.fl-builder-col-resizing .fl-block-overlay-actions,.fl-builder-row-resizing .fl-block-overlay-actions{overflow:hidden}.fl-block-overlay-actions>span{display:block;float:left}.fl-block-overlay-actions i{color:#fff!important;cursor:pointer;display:block!important;float:left;font-size:16px!important;height:28px!important;line-height:28px!important;opacity:.8;filter:alpha(opacity=80);text-align:center;width:32px!important}.fl-block-overlay-actions i:hover{opacity:1;filter:alpha(opacity=100)}.fl-block-overlay-actions>i:first-child{padding-left:4px}.fl-block-overlay-actions>i:last-child{padding-right:2px}.fl-block-overlay-actions .fl-block-move{cursor:move}.fl-block-has-rules{color:#00A0D2!important;cursor:pointer;padding:7px;position:absolute;right:0;top:0}.fl-block-overlay-title,.fl-builder-has-submenu>ul.fl-builder-submenu li a{color:#fff!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.fl-block-overlay-title{float:left;font-size:14px;height:30px;line-height:29px;margin-right:2px;padding:0 12px 0 8px}.fl-col-overlay,.fl-module-overlay,.fl-row-overlay{background:rgba(190,239,255,0);color:#fff}.fl-row-overlay{border:2px solid #00A0D2;border-radius:4px;bottom:0;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;left:0;position:absolute;top:-33px;right:0;z-index:100006}.fl-row-overlay.fl-row-menu-active,.fl-row-overlay.fl-row-menu-active.fl-block-overlay.fl-block-overlay-global{z-index:100007}.fl-row-full-width .fl-row-overlay{left:2px;right:2px;bottom:2px}.fl-row-overlay-header-bottom{bottom:-32px!important;top:0}.fl-row-overlay-header-bottom .fl-block-overlay-header{position:absolute;bottom:0}.fl-block-overlay-active .fl-row-content-wrap{position:relative}.fl-block-overlay-active .fl-row-content{position:relative;z-index:100007!important}.fl-builder-row-resizing .fl-col.fl-block-overlay-active,.fl-builder-row-resizing .fl-module.fl-block-overlay-active{position:static}.fl-col-overlay{border:2px solid #00A0D2;border-radius:4px;bottom:8px;cursor:pointer;left:8px;position:absolute;right:8px;top:8px;z-index:100008}.fl-module-overlay{border:2px solid #00A0D2;border-radius:4px;bottom:4px;cursor:pointer;left:4px;min-height:32px;position:absolute;right:4px;top:4px;z-index:100007}.fl-builder-global-templates-locked .fl-block-overlay-global.fl-module-overlay{cursor:default}.fl-module-adjust-height{padding-bottom:15px;padding-top:15px}.fl-col-bg-overlay .fl-block-overlay-active.fl-module{z-index:100008}.fl-block-overlay-global{background:rgba(255,150,0,0);border:2px solid #F7A407;border-radius:4px}.fl-block-overlay-global .fl-block-overlay-actions{background:#F7A407}.fl-block-overlay-title-global{background:#fff;color:#ff9600!important;font-size:11px;letter-spacing:1px;margin-left:4px;padding:2px 4px;vertical-align:top}.fl-block-overlay-global.fl-row-overlay{background:rgba(255,150,0,0);cursor:pointer;z-index:100007}.fl-builder-global-templates-locked .fl-block-overlay-global.fl-row-overlay{cursor:default}.fl-builder-row-template .fl-block-overlay-global.fl-row-overlay{background:rgba(255,150,0,0);cursor:default;z-index:100006}.fl-block-overlay-global.fl-row-overlay .fl-block-col-resize{display:none}.fl-block-overlay-muted .fl-row-overlay{background:rgba(85,93,102,0);border:2px solid #555D66}.fl-block-overlay-muted .fl-row-overlay .fl-block-overlay-actions{background:#555D66}.fl-block-overlay-muted .fl-row-overlay .fl-block-has-rules{color:#555D66!important}.fl-block-overlay-muted .fl-row-overlay .fl-block-col-resize{display:none}.fl-node-disabled .fl-row-content-wrap,.fl-node-disabled>.fl-col-content{opacity:.3}.fl-block-col-resize{bottom:0!important;position:absolute;top:0!important;width:6px}.fl-block-col-resize-e{cursor:ew-resize;left:auto!important;right:-2px!important}.fl-block-col-resize-w{cursor:ew-resize;left:-7px!important}.fl-block-col-resize-handle-wrap{margin:-4px 0 0 -5px;padding:0 5px;position:absolute;top:50%!important}.fl-block-col-resize-e .fl-block-col-resize-handle-wrap{margin-left:-6px}.fl-block-col-resize-handle{background:#fff;border:2px solid #00A0D2;border-radius:50%;height:12px;width:12px}.fl-node-global .fl-block-col-resize-handle{border-color:#ff9600}.fl-block-col-resize-feedback{color:#333!important;display:none;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:11px!important;position:absolute}.fl-block-col-resize-feedback-left,.fl-block-col-resize-feedback-right{background:#fff;border:1px solid #3ba0ff;padding:2px 4px}.fl-block-col-resize-feedback-left{right:20px;top:-7px}.fl-block-col-resize-feedback-right{left:20px;top:-7px}.fl-builder-has-submenu{position:relative}.fl-builder-has-submenu>ul.fl-builder-submenu{background:#00A0D2;box-shadow:0 0 20px rgba(0,0,0,.2);border-radius:0 4px 4px;display:none;left:0;list-style:none;margin:0;padding:6px 0;position:absolute;text-align:left;top:100%;width:165px;z-index:100008}.fl-builder-has-submenu>ul.fl-builder-submenu li{list-style:none;margin:0;padding:0}.fl-builder-submenu-right ul.fl-builder-submenu{left:auto;right:0}.fl-builder-has-submenu.fl-builder-submenu-open>ul.fl-builder-submenu{display:block}.fl-builder-has-submenu>ul.fl-builder-submenu li a{border-bottom:0 none;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;display:block;line-height:13px;font-size:13px;opacity:.8;filter:alpha(opacity=80);padding:6px 12px;text-decoration:none}.fl-builder-has-submenu>ul.fl-builder-submenu li a:hover{background:#0197C6;color:#fff;opacity:1;filter:alpha(opacity=100);text-decoration:none}.fl-builder-actions-title,.fl-builder-alert-lightbox .fl-lightbox-message{color:#333!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px!important}.fl-builder-has-submenu .fl-builder-submenu .fa,.fl-builder-has-submenu .fl-builder-submenu .far,.fl-builder-has-submenu .fl-builder-submenu .fas{float:right;height:12px!important;line-height:12px!important;position:relative;right:-5px;width:14px!important}.fl-builder-has-submenu .fl-builder-has-submenu .fl-builder-submenu{display:none;left:100%;top:0}.fl-builder-has-submenu .fl-builder-submenu-right.fl-builder-has-submenu .fl-builder-submenu{left:auto;right:100%}.fl-builder-has-submenu .fl-builder-has-submenu:hover .fl-builder-submenu{display:block}.fl-builder-submenu-sep{padding:7px 0!important}.fl-builder-submenu-sep div{border-bottom:1px solid rgba(255,255,255,.4)}.fl-block-col-move,.fl-block-col-move-parent{cursor:move;position:relative}.fl-builder-submenu .fa-arrows-alt{cursor:move;display:none!important}.fl-builder-submenu a:hover .fa-arrows-alt{display:block!important;float:right;line-height:12px!important;height:12px!important}.fl-block-overlay-global ul.fl-builder-submenu{background:#ff9600!important}.fl-block-overlay-global ul.fl-builder-submenu li a:hover{background:#fa3}.fl-builder-actions-lightbox .fl-lightbox{display:block;width:300px;border-radius:4px}.fl-builder-actions-lightbox .fl-lightbox-content-wrap{display:block}.fl-builder-actions-lightbox .fl-builder-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:25px;text-align:center}.fl-builder-actions-title{display:block;margin-bottom:20px}.fl-builder-actions .fl-builder-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin-bottom:7px;min-height:36px}.fl-builder-alert-lightbox{padding:20px;z-index:30000000;top:0;pointer-events:auto}.fl-builder-alert-lightbox .fl-lightbox{max-width:440px;width:auto}.fl-lightbox-width-slim .fl-compound-field,.fl-lightbox-width-slim .fl-dimension-field-units{max-width:none}.fl-builder-alert-lightbox .fl-lightbox-content-wrap{display:block}.fl-builder-alert-lightbox .fl-lightbox-message{line-height:24px;padding:30px}@keyframes fl-builder-content-section-entry{from{transform:translateY(150px) translateX(100px) scale(.3);opacity:0}to{transform:translateY(0) translateX(0) scale(1);opacity:1}}.fl-template-category-select{width:180px!important}.fl-template-selector .fl-builder-settings-section{margin:0 0 10px}.fl-template-selector .fl-builder-settings-fields{height:470px}.fl-template-selector .fl-builder-settings-tab{width:560px}.fl-template-selector .fl-builder-settings-tab-description{font-size:15px!important;margin:0!important;padding:10px 0 25px;text-align:center}.fl-template-preview{float:left;margin:0 25px 30px 0;position:relative;text-align:center;width:170px}.fl-template-preview.fl-last{margin-right:0}.fl-template-image{border:1px solid #d9d9d9;cursor:pointer;margin-bottom:12px;height:164px;overflow:hidden}.fl-template-image:hover{border-color:red}.fl-template-image img{max-height:none;width:100%}.fl-template-preview span{display:block;text-align:center}.fl-user-template-category-name{background:#f2f2f2;border-bottom:3px solid #dfdfdf;border-top:2px solid #dfdfdf;font-weight:700;padding:8px 15px}.fl-user-templates{border-bottom:1px solid #dfdfdf;padding:10px 0 20px}.fl-builder--user-templates-section-content{border-bottom:2px solid #e6eaed;padding:10px}.fl-builder--user-templates-section-content:first-child{padding-top:0}.fl-builder--user-templates-section-content:last-child,.fl-user-templates:last-child{border-bottom:none}.fl-builder--user-templates-section-name{font-weight:700;font-size:16px;color:#333;z-index:9999;padding:15px 10px;margin:0 10px}@keyframes fl-list-item-entry{from{opacity:0;transform:scale(.5) translateY(100px)}to{opacity:1;transform:scale(1) translateY(0)}}.fl-builder--save-new-user-template,.fl-user-template{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px;font-size:16px;font-weight:200;line-height:1.1;padding:10px 20px;color:#6d6d6d}.fl-user-template:hover{cursor:pointer;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.08);text-decoration:none;color:#111;padding-right:68px}.fl-user-template-name{overflow:hidden;text-overflow:ellipsis;-ms-flex:1;flex:1}.fl-user-template-actions{display:none;bottom:0;position:absolute;right:0;top:0}.fl-user-template:hover .fl-user-template-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.fl-user-template-actions a{display:inline-block;padding:15px 0;width:30px}.fl-user-template:hover a:hover i{color:#444!important}.fl-user-templates-message{display:none}.fl-user-template-thumbnail{-ms-flex:0;flex:0;margin-right:20px}.fl-user-template-thumbnail .fl-builder--template-thumbnail{background-size:cover;background-position:center top;width:45px}.fl-user-template-thumbnail .fl-builder--template-thumbnail:hover{box-shadow:none;transform:scale(1);transition-property:none}.fl-builder--save-new-user-template .fl-user-template-thumbnail .fl-builder--template-thumbnail{border-style:dashed;border-width:2px;border-color:#ccd4da}.fl-builder--save-new-user-template .fl-save-control{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex:1;flex:1}.fl-builder--save-new-user-template .fl-save-control input{background:0 0;border:none!important;-ms-flex:1;flex:1;font-size:16px;margin-right:10px;margin-left:-12px;color:#000}.fl-builder--save-new-user-template .fl-save-control input::-webkit-input-placeholder{color:#777}.fl-builder--save-new-user-template .fl-save-control input::-moz-placeholder{color:#777}.fl-builder--save-new-user-template .fl-save-control input:-ms-input-placeholder{color:#777}.fl-builder--save-new-user-template .fl-save-control input:-moz-placeholder{color:#777}@keyframes fl-slide-in-right{from{transform:translateX(50px)}to{transform:translateX(0)}}.fl-builder--save-new-user-template .fl-save-control button{display:none;animation-name:fl-slide-in-right;animation-duration:.25s;background-color:#00a0d2;border:none;padding:0 15px}.fl-save-control-mask{display:none;background:0 0;position:absolute;top:-50px;left:0;bottom:0;right:0;z-index:-1;min-height:80vh}.fl-builder-templates-cta{margin-bottom:20px}.fl-builder-templates-cta p{display:inline-block!important;width:75%!important;font-size:14px!important;line-height:1.5!important;margin-bottom:0!important}.fl-builder-templates-cta .fl-builder-upgrade-button{font-size:13px!important;line-height:13px!important;position:relative;top:8px;left:15px;padding:1px 12px}.fl-builder-settings-message,.fl-builder-settings-message *{font-size:15px!important;line-height:23px!important}.single-fl-builder-template .fl-content{width:100%!important}form.fl-builder-settings{height:100%;margin:0;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.fl-builder-settings-message{padding:20px 25px!important;background:#f2f2f2!important}.fl-builder-preview-loader{position:relative;top:-2px;margin-left:3px}.fl-lightbox-header .fl-builder-preview-loader{margin:0;position:absolute;right:40px;top:15px}@keyframes fl-grab-attention{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}.fl-lightbox-width-slim .fl-form-table{margin:10px 12px 10px 10px!important;width:calc(100% - 40px)}.fl-lightbox-width-slim .fl-form-table th{display:block;position:relative;padding:10px 0 0 12px!important;width:auto!important}.fl-lightbox-width-slim .fl-form-table td{display:block}.fl-lightbox-width-slim .fl-form-table .fl-field[data-type=editor] td:first-child,.fl-lightbox-width-slim .fl-form-table td:first-child{padding-left:0!important}.fl-field-label .fl-field-responsive-toggle,.fl-lightbox-width-slim .fl-field-control-wrapper .fl-field-responsive-toggle{display:none}.fl-lightbox-width-slim .fl-field-label .fl-field-responsive-toggle{display:inline-block;padding:0 5px!important}.fl-lightbox-width-slim input.text-full+.fl-field-description,.fl-lightbox-width-slim select+.fl-field-description{display:block;padding:8px 10px;margin:0}.fl-lightbox-width-slim .fl-builder-settings-fields select{width:100%}.fl-lightbox-width-slim .fl-color-picker{display:-ms-flexbox;display:flex;width:auto}.fl-lightbox-width-slim .fl-color-picker-clear{-ms-flex:0 0 40px;flex:0 0 40px}.fl-lightbox-width-slim .fl-field[data-type=dimension] .fl-field-responsive-setting{width:100%}.fl-lightbox-width-slim .fl-dimension-field-unit-select select{width:auto!important}.fl-lightbox-width-slim .fl-gradient-picker-color-row{width:50%}.fl-lightbox-width-slim .fl-color-picker.fl-gradient-picker-color,.fl-lightbox-width-slim .fl-typography-field-align .fl-button-group-field-option{width:100%}.fl-lightbox-width-slim .fl-typography-field-align .fl-button-group-field-options{float:none}.fl-lightbox-width-slim .mce-menubtn.mce-fixed-width button{width:72px!important}.fl-lightbox-width-slim .fl-builder-settings-tab-description{margin:20px 10px}.fl-lightbox-width-micro .mce-menubtn.mce-fixed-width button{width:38px!important}.fl-lightbox-width-micro .mce-btn[aria-label=Fullscreen],.fl-lightbox-width-micro .mce-btn[aria-label=Blockquote]{display:none}.fl-lightbox-width-micro .mce-toolbar i.mce-ico{width:18px}.fl-lightbox-width-slim .fl-field[data-type=editor] .fl-field-control-wrapper,.fl-lightbox-width-slim .fl-field[data-type=code] .fl-field-control-wrapper{margin-left:-10px;margin-right:-30px}.fl-lightbox .wp-editor-tools{padding-left:6px;padding-right:28px}.fl-lightbox .mce-top-part::before{box-shadow:none!important}.mce-container .mce-stack-layout span{color:initial}.fl-lightbox div.mce-toolbar-grp{background:0 0;border:none}.fl-lightbox div.mce-toolbar-grp>div{padding:0 3px}.fl-lightbox .fl-builder-settings .wp-switch-editor{background:#e7ebef;border:1px solid transparent}.fl-lightbox .html-active .switch-html,.fl-lightbox .quicktags-toolbar,.fl-lightbox .tmce-active .switch-tmce{background:#fff}.fl-lightbox .quicktags-toolbar,.fl-lightbox .wp-editor-container{border:none}.fl-lightbox .mce-toolbar .mce-container-body{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-lightbox-width-slim .mce-toolbar .mce-container-body{-ms-flex-pack:center;justify-content:center}.fl-lightbox textarea.wp-editor-area{line-height:1.5;padding:20px;width:calc(100% - 10px)}.fl-lightbox .wp-core-ui .button,.fl-lightbox .wp-core-ui .button-secondary{border:none;box-shadow:none;background:#e7ebef}.fl-lightbox-width-slim .fl-shadow-field .fl-dimension-field-units{width:auto}.fl-lightbox-width-slim .fl-shadow-field .fl-dimension-field-units input{max-width:none;width:100%!important}.fl-lightbox-width-slim .fl-builder-field-multiple{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.fl-lightbox-width-slim .fl-builder-field-multiple .fl-field-control,.fl-lightbox-width-slim .fl-builder-field-multiple .fl-field-label{width:100%!important}.fl-lightbox-width-slim .fl-builder-field-multiple .fl-form-field-preview-text{max-width:225px}.fl-lightbox-width-slim .fl-builder-field-multiple .fl-builder-field-actions{position:absolute!important;top:0;right:0;width:70px;z-index:1}.fl-lightbox-width-slim .fl-builder-field-actions-single .fl-builder-field-copy{float:right!important;margin-right:5px}.fl-lightbox-width-slim .fl-field[data-type=time] select{width:auto}.fl-builder-settings-tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;overflow:hidden;height:32px;background:#e7ebef}.fl-builder-content-group-select{padding:0 10px 6px;display:none}.fl-builder-content-group-select select{display:block;width:100%;-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;padding:8px 10px;background:url(../img/svg/select-arrow-down-alt2.svg) center right 10px no-repeat #fff!important;border:2px solid #e4e7ea;color:#161B20}select:focus{border-width:2px!important;border-style:solid!important;border-color:#00a0d2!important;outline:0!important}.fl-legacy-settings-tab{background:url(../img/ajax-loader.svg) center center no-repeat;height:100px}.fl-builder-settings-tab:first-child .fl-legacy-settings-tab{background:0 0;height:auto}body .fl-builder-settings-tabs>*{box-sizing:border-box;color:#676F7A!important;fill:#676F7A!important;background:0 0;border:2px solid transparent;border-radius:0;margin:0;outline:0;padding:1px 16px;text-decoration:none!important;font-size:13px;font-weight:400!important;-ms-flex:0 0 auto;flex:0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}body .fl-lightbox-width-slim .fl-builder-settings-tabs>*{-ms-flex:1 1 auto;flex:1 1 auto}body .fl-builder-settings-tabs>.fl-builder-settings-tabs-more{-ms-flex:0 0 60px;flex:0 0 60px;display:none;margin-left:auto;-ms-flex-pack:center;justify-content:center}.fl-builder-settings-tabs-more svg{width:16px;height:auto;margin:auto}.fl-builder-settings-tabs-more g,.fl-builder-settings-tabs-more path,.fl-builder-settings-tabs-more svg{fill:inherit}body .fl-lightbox-has-tab-overflow .fl-builder-settings-tabs-more{display:-ms-flexbox;display:flex}.fl-builder-settings-tabs>:active,.fl-builder-settings-tabs>:hover{top:0;color:#333;background:0 0;border:2px solid transparent}.fl-builder-settings-tabs>:focus{top:0;outline:0;border:2px solid transparent;background:0 0;color:#0086b0;fill:#0086b0}.fl-builder-settings-tabs .fl-active,.fl-builder-settings-tabs-more.fl-contains-active,.fl-builder-settings-tabs-overflow-menu .fl-active{color:#0086b0!important;fill:#0086b0!important;position:relative;background:#fff}.fl-builder-settings-tabs .fl-active.fl-overflowed,.fl-builder-settings-tabs .fl-overflowed{display:none!important}.fl-builder-settings-tabs .error{color:#d03436;padding-right:10px}.fl-builder-settings-tabs .error .fl-error-icon,.fl-builder-settings-tabs-overflow-menu .error .fl-error-icon{background:url(../img/sprite.png) -148px -5px no-repeat;display:inline-block;height:16px;margin-left:7px;position:relative;top:3px;width:16px}.fl-builder-settings-tabs-more.fl-contains-errors{fill:#d03436!important}.fl-builder-settings-tab{display:none;width:auto!important}.fl-builder-settings-tab.fl-active{display:block}.fl-builder-settings-tab-description{background:#e4e7ea;padding:10px 15px;border-radius:4px;margin:20px}.fl-builder-settings-tab-description a{text-decoration:underline!important}.fl-builder-settings-tab-description a:hover{color:#333}.fl-builder-settings-tabs-overflow-menu{display:none;position:absolute;left:0;right:0;border:2px solid #e6eaed;border-top:3px solid #00a0d2;border-radius:4px;background:#fff;z-index:9999;margin:0 6px;padding:10px;-ms-flex-direction:column;flex-direction:column;box-shadow:0 0 20px 2px rgba(0,0,0,.2)}.fl-builder-settings-tabs-overflow-menu:before{bottom:100%;right:20px;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:solid;border-color:rgba(255,255,255,0);border-bottom-color:#00a0d2;border-width:10px;margin-left:-10px}.fl-builder-settings-tabs-overflow-menu>a{display:block;padding:10px 15px;font-size:14px;font-weight:600!important;border:2px solid transparent;border-radius:4px;outline:0}.fl-builder-settings-tabs-overflow-menu>a:hover{background:#e6eaed;text-decoration:none}.fl-builder-settings-tabs-overflow-click-mask{display:none;position:fixed;top:0;bottom:0;left:0;right:0;background:0 0;z-index:11}.fl-form-table{background:none;border:none;width:calc(100% - 35px)}.fl-form-table tbody{border:none}.fl-form-table tr,.fl-form-table tr:nth-child(even){background:0 0}.fl-form-table td,.fl-form-table th{background:0 0!important;border:none!important;font-weight:400!important;text-align:left!important}.fl-form-table th{padding:10px 15px 10px 30px!important;vertical-align:top!important;width:200px!important}.fl-form-table td:first-child{padding-left:30px!important}.fl-form-table th label{color:#333;width:auto;max-width:100%}.fl-form-table th label i{color:grey}.fl-form-table th label i:hover{color:#555}.fl-form-table td{padding:8px 10px}.fl-lightbox-width-slim .fl-form-table td{padding:4px 0 5px}.fl-builder-settings-fields{margin:0;overflow:hidden;position:relative;-ms-flex:1 100%;flex:1 100%;visibility:hidden}.fl-lightbox-header .fl-builder-settings-fields{height:auto;margin:0;position:absolute;right:10px;top:10px}.fl-builder-settings-fields .fl-nanoscroller-content{padding:4px 0 0}.fl-builder-settings-fields .fl-field-control-wrapper{position:relative}.fl-field{animation-duration:.25s;animation-delay:.1s}.fl-builder-settings-fields input[type=date],.fl-builder-settings-fields input[type=email],.fl-builder-settings-fields input[type=file],.fl-builder-settings-fields input[type=number],.fl-builder-settings-fields input[type=password],.fl-builder-settings-fields input[type=search],.fl-builder-settings-fields input[type=tel],.fl-builder-settings-fields input[type=text],.fl-builder-settings-fields input[type=url],.fl-builder-settings-fields select,.fl-builder-settings-fields textarea{background:#fff!important;border-color:transparent!important;border-style:solid;border-width:2px;border-radius:4px!important;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);color:#333!important;display:inline;font-size:13px;height:auto;line-height:15px;margin:1px;outline:0;padding:3px 6px;width:auto;box-sizing:border-box}i.fl-dimension-field-link,i.fl-field-responsive-toggle{line-height:18px!important;cursor:pointer;vertical-align:middle}.fl-builder-settings-fields input[type=date],.fl-builder-settings-fields input[type=email],.fl-builder-settings-fields input[type=file],.fl-builder-settings-fields input[type=number],.fl-builder-settings-fields input[type=password],.fl-builder-settings-fields input[type=search],.fl-builder-settings-fields input[type=tel],.fl-builder-settings-fields input[type=text],.fl-builder-settings-fields input[type=url],.fl-builder-settings-fields select:not(multiple){height:36px!important}.fl-builder-settings-fields select,.fl-builder-settings-fields select[multiple]{height:auto!important}.fl-builder-settings-fields input[type=number]{width:70px}.fl-builder-lightbox .fl-builder-settings-fields input[type=date]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=email]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=file]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=number]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=password]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=search]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=tel]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=text]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=url]:focus,.fl-builder-lightbox .fl-builder-settings-fields select:focus,.fl-builder-lightbox .fl-builder-settings-fields textarea:focus{border-width:2px!important;border-style:solid!important;border-color:#00a0d2!important;box-shadow:0 2px 4px 0 rgba(0,0,0,.12)!important}.fl-builder-settings-fields ::-webkit-input-placeholder{color:#999!important;font-size:13px}.fl-builder-settings-fields input:-moz-placeholder{color:#999;font-size:13px}.fl-builder-settings-fields ::-moz-placeholder{color:#999!important;font-size:13px}.fl-builder-settings-fields input:-ms-input-placeholder{color:#999;font-size:13px}.fl-builder-settings-fields label{display:inline-block;font-weight:400;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-bottom:3px;font-size:12px}.fl-builder-settings-fields select{-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;color:#000;margin:0 0 2px;padding:2px 10px;padding-right:30px!important;background:url(../img/svg/select-arrow-down-alt2.svg) center right 10px no-repeat #fff!important}.fl-dimension-field-unit input[type=number],.fl-unit-field-inputs input[type=number]{-moz-appearance:textfield}.fl-builder-settings-fields select[multiple]{height:60px;background-image:none!important}.fl-builder-custom-field select,.fl-photo-field select{box-shadow:none;border-color:#e6eaed!important}.fl-builder-settings-section:first-child{border-top:none!important}.fl-builder-settings-section-header{background-color:#e7ebef;border-top:4px solid #e7ebef;cursor:pointer;height:30px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-builder-settings-description{padding:0 10px 10px;margin:0;font-style:italic;opacity:.75}.fl-builder-settings-fields table{margin:20px 0}.fl-builder-settings-fields .fl-builder-settings-title{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:#F5F7F9;color:#353535;padding:2px 10px;margin:0;font-size:13px!important;font-weight:400;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:2px solid transparent;border-radius:0}.fl-builder-settings-fields .fl-builder-settings-title:active,.fl-builder-settings-fields .fl-builder-settings-title:hover{top:0}.fl-builder-settings-fields .fl-builder-settings-title:focus{top:0;border-color:#e0e4ea}.fl-builder-settings-fields .fl-builder-settings-title>svg{height:6px;width:9px;margin-right:7px;transition-property:transform;transition-duration:.15s}.fl-builder-settings-section-collapsed{margin-bottom:4px}.fl-builder-settings-section-collapsed .fl-builder-settings-section-content{display:none}.fl-builder-settings-section-collapsed .fl-builder-settings-title{background:0 0;-ms-flex:1 1 100%;flex:1 1 100%}.fl-builder-settings-section-collapsed .fl-builder-settings-title>svg{transform:rotate(-90deg)}.wp-core-ui h1,.wp-core-ui h2,.wp-core-ui h3,.wp-core-ui h4,.wp-core-ui h5,.wp-core-ui h6,.wp-core-ui p{color:#333;font-family:inherit}.wp-core-ui #media-attachment-date-filters{width:275px}.wp-core-ui input[type=search]::-webkit-input-placeholder{color:#333}.wp-core-ui input[type=search]:-ms-input-placeholder{color:#333}.wp-core-ui input[type=search]::-ms-input-placeholder{color:#333}.wp-core-ui input[type=search]::placeholder{color:#333}.wp-core-ui .submitbox .submitdelete{color:#a00}.wp-core-ui button{font-weight:400}.wp-core-ui input[type=date],.wp-core-ui input[type=email],.wp-core-ui input[type=file],.wp-core-ui input[type=number],.wp-core-ui input[type=password],.wp-core-ui input[type=search],.wp-core-ui input[type=tel],.wp-core-ui input[type=text],.wp-core-ui input[type=url],.wp-core-ui select,.wp-core-ui textarea{background-color:#fff;border-color:#dfdfdf;border-style:solid;border-width:1px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;color:#333;font-weight:400}.wp-core-ui input[type=date]:focus,.wp-core-ui input[type=email]:focus,.wp-core-ui input[type=file]:focus,.wp-core-ui input[type=number]:focus,.wp-core-ui input[type=password]:focus,.wp-core-ui input[type=search]:focus,.wp-core-ui input[type=tel]:focus,.wp-core-ui input[type=text]:focus,.wp-core-ui input[type=url]:focus,.wp-core-ui select:focus,.wp-core-ui textarea:focus{background:0 0;border-color:#aaa}.wp-core-ui input[type=search]{background-image:none;padding:6px}.fl-field-responsive-setting{display:inline-block;width:100%}.fl-field-responsive-setting-medium,.fl-field-responsive-setting-responsive{display:none}.fl-field-control-wrapper i.fl-field-responsive-toggle{padding:9px 0 0;position:absolute;left:-25px}i.fl-field-responsive-toggle{color:grey;display:inline-block;font-size:15px!important;height:auto;text-align:left;width:20px}.fl-builder-settings-fields input.text-full,.fl-builder-settings-fields textarea{width:100%}i.fl-field-responsive-toggle:hover{color:#000}.fl-builder-settings-fields .fl-text-field-add-value{min-width:50%;margin-top:.62em}.fl-field[data-type=shadow] .fl-field-control-wrapper{display:-ms-flexbox;display:flex}.fl-shadow-field .fl-color-picker{margin-bottom:15px;width:100%}.fl-color-picker{cursor:pointer}.fl-color-picker .fl-color-picker-clear{box-sizing:border-box}.fl-color-picker .fl-color-picker-clear:hover{background-color:#ededed}.colorpicker input{padding:0!important;font-size:11px!important;color:#fff!important;width:29px!important;height:auto!important;background:0 0!important;border:none!important}.colorpicker .colorpicker_hex input{width:45px!important}.fl-gradient-picker-type{display:-ms-flexbox;display:flex;margin-bottom:15px}.fl-gradient-picker-type input{margin:0!important}.fl-gradient-picker-type select{margin-bottom:0!important}.fl-gradient-picker-type-select{margin-right:10px!important}.fl-gradient-picker-colors{display:-ms-flexbox;display:flex}.fl-gradient-picker-color-row{display:-ms-flexbox;display:flex;margin-right:15px}.fl-color-picker.fl-gradient-picker-color,.fl-gradient-picker-color-row:last-child{margin-right:0}.fl-color-picker.fl-gradient-picker-color .fl-color-picker-color{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.fl-gradient-picker .fl-gradient-picker-stop input{border-top-left-radius:0!important;border-bottom-left-radius:0!important;margin:0!important}.fl-field[data-type=dimension] .fl-field-label label{padding-right:35px}.fl-field[data-type=dimension] .fl-field-control-wrapper{display:-ms-flexbox;display:flex}.fl-field[data-type=dimension] .fl-field-description{padding:9px 0 0 5px}.fl-field[data-type=dimension] .fl-field-responsive-setting{width:auto}.fl-dimension-field-units{border-radius:4px;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);display:-ms-flexbox;display:flex;height:36px;margin:1px 1px 20px;position:relative;max-width:350px}.fl-dimension-field-units>*{border-right:1px solid #e6eaed;width:100%}body .fl-dimension-field-units>:last-child{border-right:none!important}body .fl-dimension-field-units>:first-child>input[type]{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}body .fl-dimension-field-units>:last-child>*{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.fl-dimension-field-unit input[type],.fl-dimension-field-units .fl-field-unit-select{box-shadow:none!important;margin:0!important;border-radius:0!important}.fl-dimension-field-unit input{width:100%!important}.fl-dimension-field-unit input::-webkit-inner-spin-button,.fl-dimension-field-unit input::-webkit-outer-spin-button{-webkit-appearance:none}.fl-dimension-field-unit label{padding:5px 0 0;font-size:11px;font-weight:700;color:inherit!important;display:block;text-align:center;opacity:.5}.fl-dimension-field-unit .fl-field-popup-slider{margin-top:27px}i.fl-dimension-field-link{color:grey;font-size:15px!important;height:auto;text-align:left;width:20px}i.fl-dimension-field-link:hover{color:#000}i.fl-dimension-field-link.dashicons-editor-unlink,i.fl-dimension-field-link.dashicons-editor-unlink:hover{color:#0086b0}.fl-field-label .fl-dimension-field-link,.fl-lightbox-width-slim .fl-dimension-field-link{display:none}.fl-lightbox-width-slim .fl-field-label .fl-dimension-field-link{display:inline-block}.fl-field-control-wrapper .fl-dimension-field-link{padding:9px 0 0;left:-50px;position:absolute}.fl-dimension-field-unit-select{display:-ms-flexbox;display:flex;width:auto!important}.fl-field[data-type=unit] .fl-field-control-wrapper{display:-ms-flexbox;display:flex}.fl-field[data-type=unit] .fl-field-description{margin-left:7px!important;padding-top:9px}.fl-field[data-type=unit] .fl-field-responsive-setting{width:auto}.fl-unit-field-inputs{background:0 0;border-radius:4px;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);display:-ms-flexbox;display:flex}.fl-unit-field-inputs .fl-field-unit-select,.fl-unit-field-inputs input[type]{box-shadow:none!important;margin:0!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}.fl-unit-field-inputs .fl-field-unit-select{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.fl-unit-field-inputs input::-webkit-inner-spin-button,.fl-unit-field-inputs input::-webkit-outer-spin-button{-webkit-appearance:none}.fl-unit-field-input{border-right:1px solid #e6eaed!important}body .fl-unit-field-input:last-child{border-right:none!important}body .fl-unit-field-input:last-child>*{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.fl-unit-field-unit-select{display:-ms-flexbox;display:flex;width:auto!important}select.fl-field-unit-select{background-color:#E7EBEF!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}div.fl-field-unit-select{background-color:#E7EBEF!important;padding:9px 7px!important;width:100%}.fl-field-popup-slider{background:#fff;border-radius:4px;box-shadow:0 4px 25px 0 rgba(0,0,0,.18);display:none;margin-top:10px;padding:15px;position:absolute;left:0;right:0;z-index:9999}.fl-field-popup-slider-top{margin-top:0!important;top:-100%;transform:translateY(-10px)}.fl-field-popup-slider-input{background:#E7EBEF;cursor:pointer;height:4px;text-align:left;position:relative;border-radius:3px}.fl-field-popup-slider-input .ui-slider-handle{background:#fff;border:2px solid #3AA4CC;border-radius:100%;cursor:pointer;height:12px;width:12px;position:absolute;top:-6px;margin-left:-7px}.fl-field-popup-slider-input .ui-slider-handle:focus{outline:0}.fl-field-popup-slider-arrow{position:absolute;top:-22px}.fl-field-popup-slider-arrow:after{content:' ';border-color:transparent transparent #fff;border-style:solid;border-width:0 8px 8px;width:0;height:0}.fl-field-popup-slider-top .fl-field-popup-slider-arrow{top:auto;bottom:-24px}.fl-field-popup-slider-top .fl-field-popup-slider-arrow:after{border-bottom-width:0;border-top-width:8px;border-top-color:#fff}input[type=number].fl-field-popup-slider-focus{border:2px solid #00a0d2!important}.fl-font-field{display:-ms-flexbox;display:flex}.fl-font-field label{display:block!important;margin:0!important;padding:0 0 6px 12px}.fl-font-field .fl-font-field-font-wrapper{margin-right:8px;width:70%!important}.fl-font-field .fl-font-field-weight-wrapper{width:30%!important}.fl-compound-field{max-width:350px}.fl-compound-field-section-toggle{background:#E7EAEF;border-radius:4px;border-top:2px solid transparent;border-bottom:2px solid transparent;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:32px;margin-bottom:8px;padding:0 12px}.fl-compound-field-section-toggle:hover{background:#dadfe5}.fl-compound-field-section-toggle .dashicons{font-size:15px;height:15px;margin-right:5px;width:15px}.fl-compound-field-section:last-child .fl-compound-field-section-toggle{margin-bottom:0}.fl-compound-field-section.fl-compound-field-section-visible{padding-bottom:12px}.fl-compound-field-section.fl-compound-field-section-visible:last-child{padding-bottom:0}.fl-compound-field-section-visible .fl-compound-field-section-toggle{background:0 0;border-top:2px solid #E7EBEF;border-radius:0}.fl-compound-field-section-visible .fl-compound-field-section-toggle:hover{background:0 0}.fl-compound-field-section-visible .fl-compound-field-section-toggle .dashicons:before{content:'\f347'}.fl-compound-field-row{display:none;padding-bottom:12px}.fl-compound-field-section-visible .fl-compound-field-row{display:-ms-flexbox;display:flex}.fl-compound-field-label{display:block!important;margin:0!important;padding:0 0 6px 12px}.fl-compound-field-label-bottom{padding:6px 0 0 12px}.fl-compound-field-label .fl-dimension-field-link{display:inline-block;padding:0 0 0 2px;position:relative;left:auto;top:-1px}.fl-compound-field-setting{padding-right:8px;width:100%}.fl-compound-field-setting:last-child{padding-right:0}.fl-compound-field-setting select{margin:0!important;width:100%}.fl-compound-field-setting .fl-unit-field-input input{width:100%!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}.fl-compound-field-setting .fl-unit-field-input{width:50%!important}.fl-compound-field-setting .fl-unit-field-input select.fl-field-unit-select{background-position:center right 2px!important;padding:2px 5px!important;width:100%;font-size:11px}.fl-typography-field .fl-font-field-font-wrapper{margin-right:8px!important}.fl-typography-field-spacing{width:calc(33.33% - 8px)}.fl-typography-field-transform{width:66.66%}.fl-typography-field-transform .fl-button-group-field-options{float:none}.fl-typography-field-transform .fl-button-group-field-option{width:100%;padding:0 7px}.fl-typography-field .fl-shadow-field{display:-ms-flexbox;display:flex}.fl-typography-field .fl-shadow-field .fl-color-picker{margin:0 8px 0 0;width:calc(33.33% - 8px)}.fl-typography-field .fl-shadow-field .fl-dimension-field-units{margin-left:0;margin-top:0;margin-right:0;width:66.66%}.fl-button-group-field-options{background:#E7EBEF;border-radius:4px;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);display:-ms-flexbox;display:flex;float:left;height:36px;overflow:hidden}.fl-button-group-field-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0 5px;border-radius:0;border:2px solid transparent;background:0 0}.fl-button-group-field-option:hover{top:0;background-color:transparent;color:#000;border:2px solid transparent}.fl-button-group-field-option:focus{top:0;background-color:transparent;border:2px solid #00a0d2;color:#333}.fl-button-group-field-option:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.fl-button-group-field-option:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.fl-button-group-field-option[data-selected="1"]{background-color:#fff;color:#000}.fl-button-group-field-option i{color:#6B6E75}.fl-button-group-field-option:hover i{color:#333}.fl-compound-field-cell{width:50%;display:block;float:left;padding-top:13px}.fl-compound-field-cell:first-child{padding-right:4px}.fl-compound-field-cell:last-child{padding-left:4px}.fl-compound-field-cell label{padding:5px 0 0;font-size:11px;font-weight:700;color:inherit!important;display:block;text-align:center;opacity:.5}.fl-shape-transform-field .fl-compound-field-row{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-shape-transform-field .fl-compound-field-row>*{width:auto;-ms-flex:1 1 auto;flex:1 1 auto}.fl-shape-transform-field .fl-compound-field-row>:first-child{-ms-flex:0 0 auto;flex:0 0 auto}.fl-shape-transform-field .fl-shape-orientation-controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-shape-transform-field .fl-shape-orientation-controls>*{-ms-flex:0 0 auto;flex:0 0 auto}.fl-shape-transform-field .fl-shape-orientation-controls .fl-button-group-field>*,.fl-shape-transform-field .fl-shape-orientation-controls .fl-button-group-field>* button{border-radius:0}.fl-shape-orientation-controls .fl-button-group-field:first-child>*,.fl-shape-orientation-controls .fl-button-group-field:first-child>* button{border-top-left-radius:4px;border-bottom-left-radius:4px}.fl-shape-orientation-controls .fl-button-group-field:last-child>*,.fl-shape-orientation-controls .fl-button-group-field:last-child>* button{border-top-right-radius:4px;border-bottom-right-radius:4px}.fl-builder-custom-field{background:#fff;border:2px solid transparent;border-radius:4px;padding:7px 10px;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);min-height:36px;box-sizing:border-box}.fl-builder-field-multiple .fl-builder-custom-field{cursor:move}.fl-builder-custom-field a{color:#21759b!important;text-decoration:underline!important}.fl-builder-custom-field a:hover{color:#d54e21!important}.fl-builder-custom-field label.error{margin-top:5px}.fl-photo-field .fl-photo-preview{display:-ms-flexbox;display:flex}.fl-photo-field .fl-photo-select,.fl-photo-field.fl-photo-empty .fl-photo-preview{display:none}.fl-photo-field.fl-photo-empty .fl-photo-select{display:block}.fl-photo-field .fl-photo-preview-img{line-height:0;margin:5px 0}.fl-photo-field .fl-photo-preview-img img{max-width:60px}.fl-photo-field .fl-photo-preview select{margin:8px 0 8px 10px;width:calc(100% - 10px)}.fl-photo-field.fl-photo-no-attachment .fl-photo-preview select{display:none}.fl-photo-field .fl-photo-preview-filename{display:none;font-size:13px;font-weight:700;margin:5px 0 9px 11px}.fl-photo-field.fl-photo-no-attachment .fl-photo-preview-filename{display:inline-block;word-break:break-all}.fl-multiple-photos-field .fl-multiple-photos-select,.fl-multiple-photos-field.fl-multiple-photos-empty .fl-multiple-photos-add,.fl-multiple-photos-field.fl-multiple-photos-empty .fl-multiple-photos-count,.fl-multiple-photos-field.fl-multiple-photos-empty .fl-multiple-photos-edit,.fl-multiple-photos-lightbox .gallery-settings,.fl-photo-field.fl-photo-no-attachment .fl-photo-edit{display:none}.fl-photo-field .fl-photo-edit{margin:0 0 0 11px}.fl-photo-field .fl-photo-remove,.fl-photo-field .fl-photo-replace{margin:0 0 0 8px}.fl-builder-edit .media-modal{z-index:9999991}.fl-builder-edit .media-modal-backdrop{z-index:999999}.fl-builder-edit .media-frame{-webkit-backface-visibility:hidden;backface-visibility:hidden}.fl-builder-edit .media-modal-content h1{font-family:inherit}.fl-builder-edit form#wp-link,.popover[class*=tour-],ul.as-list{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.fl-builder-edit .media-modal-content .thumbnail{padding:0;border:none;border-radius:0}.fl-builder-edit .media-modal-content .attachment-preview .thumbnail{margin-bottom:0}.fl-builder-edit .media-modal-content .attachment-preview .thumbnail img{max-width:none}.fl-builder-edit button.media-modal-close{position:absolute;box-shadow:none;-webkit-box-shadow:none}.fl-builder-edit .media-frame.hide-menu{visibility:visible}span.select2-container.select2-container--open{z-index:9999999}.fl-multiple-photos-field .fl-multiple-photos-add{margin:0 0 0 8px}.fl-multiple-photos-field.fl-multiple-photos-empty .fl-multiple-photos-select{display:inline}.fl-multiple-photos-count{font-weight:700;margin-bottom:3px}.fl-video-field .fl-video-select,.fl-video-field.fl-video-empty .fl-video-preview{display:none}.fl-video-field.fl-video-empty .fl-video-select{display:block}.fl-video-field .fl-video-preview-img{float:left;line-height:0;margin:5px 0}.fl-video-field .fl-video-preview-img img{max-width:60px}.fl-video-field .fl-video-preview-img .dashicons.dashicons-media-video{display:block;font-size:60px;height:60px;line-height:60px;width:60px}.fl-video-field .fl-video-preview-filename{display:inline-block;font-size:14px;font-weight:700;margin:7px 0 5px 11px}.fl-video-field .fl-video-remove,.fl-video-field .fl-video-replace{margin:0 0 0 11px}.fl-multiple-audios-field .fl-multiple-audios-select,.fl-multiple-audios-field.fl-multiple-audios-empty .fl-multiple-audios-add,.fl-multiple-audios-field.fl-multiple-audios-empty .fl-multiple-audios-edit{display:none}.fl-multiple-audios-field.fl-multiple-audios-empty .fl-multiple-audios-select{display:block}.fl-multiple-audios-field .fl-multiple-audios-add{margin:0 0 0 8px}.fl-icon-field .fl-icon-select,.fl-icon-field.fl-icon-empty .fl-icon-preview{display:none}.fl-icon-field.fl-icon-empty .fl-icon-select{display:block}.fl-icon-field .fl-icon-preview i{display:inline-block;font-size:28px;margin:10px 10px 9px;vertical-align:middle}.fl-icon-field .fl-icon-remove{margin:0 0 0 8px}.fl-builder-hidden-editor{display:none}.fl-builder-settings .wp-switch-editor{border-radius:0;color:#333;margin-top:2px}.fl-builder-settings .mce-toolbar .mce-btn-group .mce-btn{margin:2px 0}.fl-builder-settings .mce-menubtn.mce-fixed-width button{width:100px}.fl-builder-settings .mce-menubtn.mce-fixed-width span{width:100%}.mce-close:active,.mce-close:hover,.mce-toolbar .mce-btn button:active,.mce-toolbar .mce-btn button:hover,.mce-window .mce-btn button:active,.mce-window .mce-btn button:hover{background:0 0;border:none}.wp-core-ui .quicktags-toolbar input.button.button-small{margin:1px!important}.wp-editor-container textarea.wp-editor-area{background:0 0;border:none;padding:10px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.fl-builder-edit form#wp-link{color:#000;font-size:13px}.fl-builder-edit form#wp-link #link-options label{display:block;margin-bottom:2px}.fl-builder-edit form#wp-link #link-options label span{padding-right:10px;vertical-align:middle}.fl-builder-edit form#wp-link #link-options input[type=text]{display:inline-block;height:auto;margin:5px 0 0;padding:3px 5px;width:80%}.fl-builder-edit form#wp-link .query-results{top:225px}.fl-code-field{border:1px solid #E6E6E6;border-left:none}.ace_editor,.ace_editor *{font-family:Monaco,Menlo,"Ubuntu Mono","Droid Sans Mono",Consolas,monospace!important;font-size:12px!important;font-weight:400!important;letter-spacing:0!important}.fl-layout-field-option{border:2px solid #d9d9d9;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;cursor:pointer;float:left;line-height:0;max-width:23%;margin:0 1% 2%;padding:5px}.fl-layout-field-option-selected,.fl-layout-field-option:hover{border-color:red}.fl-layout-field-option img{max-width:100%}.fl-link-field .fl-link-field-input-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-link-field-input{width:auto!important;-ms-flex:1 1 100%;flex:1 1 100%}.fl-link-field .fl-link-field-input-wrap button{-ms-flex:0 0 0%;flex:0 0 0%;height:36px;margin:1px 1px 1px 5px}.fl-link-field-options-wrap{padding:7px 0 0 12px}.fl-link-field-options-wrap label{margin-right:7px}.fl-link-field-options-wrap span{font-size:11px;font-weight:700;color:inherit!important;text-align:center;opacity:.5}.fl-link-field-search{display:none;border:2px solid #e6eaed;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin:4px 0 0;padding:10px}.fl-link-field-search-title{display:block;margin:0 0 3px 2px}.fl-link-field-search-cancel{margin-top:6px}.fl-link-field-search input{box-shadow:none!important;width:100%!important;padding:3px 9px!important}.fl-link-field-search #as-original-link-search{width:100%}.fl-field-connections-toggle{padding:10px 0}.fl-field[data-type=editor] .fl-field-connections-toggle{-ms-flex-align:start;align-items:flex-start}.fl-field[data-type=link] .fl-field-connections-toggle{height:24px;margin-top:1px;-ms-flex-align:start;align-items:flex-start}.fl-field[data-type=link] .fl-field-connection{bottom:25px}.fl-field-connections-menu[data-field=fl-field-text]{margin-top:30px}.fl-help-tooltip{display:inline-block;position:relative}.fl-lightbox-width-slim .fl-help-tooltip{position:static}.fl-help-tooltip-icon{color:#999!important;cursor:pointer;font-size:15px!important;padding:5px;vertical-align:middle}.fl-help-tooltip-text{box-sizing:border-box;background:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ccc;-moz-box-shadow:0 0 5px #ccc;-webkit-box-shadow:0 0 5px #ccc;display:none;font-weight:400;left:23px;padding:10px 13px;position:absolute;top:-6px;width:250px;z-index:1000;border-radius:4px}.fl-lightbox-width-slim .fl-help-tooltip-text{top:30px;left:0;width:100%}.fl-field-control .fl-form-field{margin-bottom:0}.fl-form-field[data-preview-text=icon]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.fl-form-field-preview-text i{display:inline-block;font-size:18px;line-height:22px;margin-right:10px}.fl-builder-field-actions{padding-left:0!important;padding-right:0!important;text-align:center;width:85px}.fl-builder-field-actions i{color:#999!important;cursor:pointer;font-size:13px!important;line-height:29px!important;width:16px}.fl-builder-field-actions i:hover{color:#000!important}.fl-builder-field-actions i.fl-builder-field-copy,.fl-builder-field-actions i.fl-builder-field-delete{margin-left:5px}.fl-builder-field-actions i.fl-builder-field-move{cursor:move}.fl-builder-field-dd-helper{background:#ccc;height:30px!important;float:left;width:130px!important}.fl-builder-field-dd-zone{border:1px dashed #ccc;height:30px}.fl-builder-field-actions-single .fl-builder-field-delete,.fl-builder-field-actions-single .fl-builder-field-move{display:none!important}.fl-builder-field-multiple .fl-builder-field-actions,.fl-builder-field-multiple .fl-field-control,.fl-builder-field-multiple .fl-field-label{padding-top:2px!important;padding-bottom:2px!important}.fl-builder-field-multiple .fl-builder-field-actions{min-width:70px!important}.fl-builder-field-multiple[data-field=icons] .fl-builder-field-actions{width:70px!important}.fl-builder-field-multiple.ui-sortable-helper .fl-field-control{width:60%}.fl-builder-field-multiple.ui-sortable-helper .fl-builder-field-actions{display:none}.fl-builder-widget-settings input{display:inline-block!important;margin:5px 10px 8px!important}.fl-builder-lightbox-loading{background:url(../img/ajax-loader.svg) center center no-repeat;height:100px}.fl-builder-settings .error,.fl-builder-settings input.error{color:#d03436!important}.fl-builder-settings label.error,.fl-builder-settings p.error{color:#d03436;display:block;margin-top:5px}.fl-builder-settings .fl-form-table .fl-field-description{color:#464646;font-style:normal;margin-left:2px}.fl-lightbox .fl-field-connection{right:-1px}.fl-lightbox .fl-field-connection-content{border:2px solid transparent!important;background:#e7ebef!important}.fl-field-connection-content .fl-field-connection-label{color:#676f7a!important}.fl-field-connections-toggle{pointer-events:none;width:20px;right:-25px}.has-scrollbar .fl-field-connections-toggle{right:-22px}.fl-lightbox-width-slim tr[data-type=code] .fl-field-connections-toggle{right:10px}.fl-lightbox-width-slim .fl-code-field{width:90%}.fl-field-connections-toggle-open{transform:none!important}.fl-field-connections-toggle i{pointer-events:auto;color:#abb1ba;font-size:13px!important;transition-property:transform;transition-duration:.15s}.fl-field-connections-toggle-open i{transform:rotate(-45deg)}ul.as-selections{background-color:#fff;border:none;border-radius:4px;box-shadow:none;color:#333;font-size:12px;height:auto;line-height:15px;margin:1px;outline:0;padding:3px;width:auto}ul.as-selections.loading{background:url(../img/ajax-loader-small.svg) 98% center no-repeat}ul.as-selections li.as-selection-item{background:#d4eaf6;border:none;font-size:11px;line-height:14px;padding:8px 15px;border-radius:4px;margin:2px}ul.as-selections li.as-selection-item.blur{background:#f4f4f4}ul.as-selections li.as-selection-item a.as-close{line-height:12px}ul.as-selections li.as-original{margin:0}ul.as-selections li.as-original input{height:auto;font-size:12px;margin:0;padding:0;box-shadow:none}ul.as-list{margin:0;font-size:13px;color:#000;background-color:#fff;background-color:rgba(255,255,255,.95);z-index:2;box-shadow:0 0 10px rgba(0,0,0,.1);border:none;border:1px solid #dfdfdf;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}li.as-message,li.as-result-item{border:none}li.as-result-item.active{background:#e5e5e5;border-radius:0;color:#333;text-shadow:none}li.as-result-item em{background:0 0!important;color:#333!important;font-size:12px;padding:0!important;font-weight:700}.fl-custom-query-filter{display:none}.fl-custom-query .fl-field[data-type=suggest] select{margin-bottom:5px;width:100%}.fl-builder-service-settings{position:relative}.fl-builder-service-error{color:red!important;padding:15px 0 0}.fl-builder-service-account-delete{color:red!important;margin-left:10px;position:relative;top:2px}.fl-lightbox-width-slim .fl-builder-service-account-delete{display:block;padding-top:7px}#fl-field-visibility_user_capability .fl-field-description,.fl-builder-service-connect-row .fl-field-description{background:#f0f0f0;color:#333!important;display:block;float:none;margin:10px 0 0;padding:10px}#fl-field-visibility_user_capability .fl-field-description a,.fl-builder-service-connect-row .fl-field-description a{color:#21759b!important;text-decoration:underline!important}.fl-ordering-field-option{background:#fff;border:1px solid #dfdfdf;border-radius:3px;cursor:move;margin-bottom:5px;padding:5px 10px}.fl-ordering-field-option .fa{color:#ccc;float:right;line-height:16px}#tiptip_holder{z-index:1000000}#tiptip_holder.tip_top #tiptip_arrow_inner{border-top-color:#333}#tiptip_holder.tip_bottom #tiptip_arrow_inner{border-bottom-color:#333}#tiptip_holder.tip_right #tiptip_arrow_inner{border-right-color:#333}#tiptip_holder.tip_left #tiptip_arrow_inner{border-left-color:#333}#tiptip_content{background:#333;box-shadow:none}.fl-builder-getting-started-video{line-height:0!important;padding:10px}.fl-builder-getting-started-video iframe{border:none;height:326px;width:100%}.fl-builder-tour-actions .fl-builder-actions-title{font-size:14px!important;line-height:19px}.fl-builder-tour-mask{bottom:0;left:0;position:fixed;right:0;top:0;z-index:100000000}.fl-builder-tour-dimmed{background:rgba(0,0,0,.7);bottom:0;left:0;position:absolute;right:0;top:0}body>.fl-builder-tour-dimmed{position:fixed}.tour-backdrop{z-index:110000}.popover[class*=tour-]{border:1px solid #ccc;border-radius:0;box-shadow:0 0 40px rgba(0,0,0,.3);color:#666;font-size:13px;font-weight:400;line-height:18px;max-width:none;padding:0;width:300px;z-index:100000001}.popover[class*=tour-].bottom>.arrow{border-bottom-color:#ccc}.popover[class*=tour-].bottom>.arrow:after{border-bottom-color:#f7f7f7}.popover[class*=tour-] .popover-title{border-radius:0;color:#333;letter-spacing:normal;text-transform:none}.popover[class*=tour-] .fa-times{color:#b3b3b3;cursor:pointer;font-size:16px;padding:5px;position:absolute;right:3px;top:2px}.popover[class*=tour-] .fa-times:hover{color:#666}.popover[class*=tour-] .popover-content{border-bottom:1px solid #d9d9d9;padding:13px 15px}.popover[class*=tour-] .fl-builder-tour-next{display:block;float:none;width:100%}.popover-navigation button{min-height:36px}.fl-builder-shortcode-mask-wrap{position:relative}.fl-builder-shortcode-mask{bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fl-builder--search{border:2px solid transparent;position:relative;padding:0;width:54px;transition-property:width;transition-delay:.1s;transition-duration:.15s}.fl-builder--search.is-expanded{border:2px solid #00A0D0}.fl-builder--search input[type=text],.fl-builder--search input[type=text]:focus{background-color:transparent;border:none!important;box-sizing:border-box;width:100%;font-size:16px;text-align:center}.fl-builder--search:before{display:-ms-flexbox;display:flex;top:0;left:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:"\f002";font:normal normal normal 14px/1 Font Awesome\ 5 Free;text-align:center;width:100%;height:100%;position:absolute;pointer-events:none;color:rgba(128,128,128,.6);font-size:17px;opacity:1;transition-property:opacity;transition-duration:.15s}.fl-builder--main-menu-panel,.fl-builder-ui-keyboard-shortcuts{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important}.fl-builder--search.has-text:before,.fl-builder--search.is-expanded:before{opacity:0}.fl-builder--search input::-webkit-input-placeholder{color:rgba(128,128,128,0)!important;transition:color .25s}.fl-builder--search input:focus::-webkit-input-placeholder{color:rgba(128,128,128,.4)!important}.fl-builder--search .search-label{cursor:text}.fl-builder--search .search-clear{display:none;padding:10px 10px 10px 30px;color:#a7a7a7;font-size:12px;position:absolute;right:0;top:0;background-color:#eff1f2;background:linear-gradient(to left,#e4e7ea,#e4e7ea 75%,rgba(228,231,234,0))}.fl-builder--search.has-text .search-clear,.fl-builder--search.is-expanded input{display:inline-block}.fl-builder--search:hover .search-clear{color:#888;background-color:#eff1f2;background:linear-gradient(to left,#dadfe5,#dadfe5 75%,rgba(218,223,229,0))}.fl-builder--search.is-expanded{width:246px}@keyframes fl-builder-show-menu-item{from{transform:translateY(10px) scale(.8);opacity:0}to{transform:translateX(0) translateY(0) scale(1);opacity:1}}.fl-builder--main-menu-panel{display:none;box-sizing:border-box;position:fixed;top:calc(45px + 10px);left:10px;width:360px;color:#222;max-height:calc(100% - 66px);border-radius:4px;background:#fff;border:none;border-top:3px solid #00a0d2;box-shadow:0 11px 45px 8px rgba(0,0,0,.1);font-size:14px!important;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10000009;pointer-events:auto}.fl-builder--main-menu-panel.is-showing{display:-ms-flexbox;display:flex}.fl-builder--main-menu-panel:before,.fl-theme-builder-preview-select-open .fl-theme-builder-preview-select-items:before{bottom:100%;right:6px;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:solid;border-color:rgba(255,255,255,0);border-bottom-color:#00a0d2;border-width:13px;margin-left:-13px}.fl-builder--main-menu-panel-views{-ms-flex:1 1 100%;flex:1 1 100%;overflow:auto}.fl-builder--main-menu-panel-mask{display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000119}.fl-builder--main-menu-panel .fl-builder--tabs{padding-left:20px;padding-top:15px}.fl-builder--main-menu-panel-view{display:none}.fl-builder--main-menu-panel-view.is-showing{display:block}.fl-builder--main-menu-panel-view-title{font-size:24px;font-weight:600;padding:25px 22px 0;line-height:1;white-space:nowrap}.fl-builder--main-menu-panel-view-title .title-accessory{float:right;color:#b1b1b1}.fl-builder--main-menu-panel-view-title .title-accessory>i{font-size:20px!important;width:25px!important}.fl-builder--main-menu-panel-view-title .title-accessory>i:hover{color:#222}.fl-builder--main-menu-panel-view-title .pop-view{padding:10px;margin-left:-10px;opacity:.5;font-size:25px;font-weight:400;cursor:pointer;background:0 0;outline:0;border:none;color:inherit}.fl-builder--main-menu-panel-view-title .pop-view:focus{outline:0;top:0;background:#E5EAED!important}.fl-builder--menu-item:before{display:block;content:"";float:none;clear:both}.fl-builder--menu-item{color:inherit;text-align:left;box-sizing:border-box;display:block;padding:10px 15px;margin:0 10px;width:calc(100% - 20px);background:0 0;border:none;border-radius:4px;font-size:14px;line-height:1.1;cursor:pointer;opacity:1;text-transform:none}.fl-builder--menu-item:hover{background:#eaf1f8;border:none;text-decoration:none;color:#000}.fl-builder--selector-menu .fl-builder--menu-item:hover{background:#fff}.fl-builder--menu-item-accessory{float:right;text-align:center;display:inline-block;min-width:40px;font-size:14px}.fl-builder--menu-item-accessory.view-arrow{font-size:18px}.fl-builder--menu{padding:0;margin:20px 0}.fl-builder--menu hr{margin:8px 0;background:#e6eaed!important;height:1px;border:none}.fl-builder--menu .fl-builder-video-wrap{padding:0 10px 10px}.fl-revision-list-item{display:-ms-flexbox;display:flex}.fl-revision-list-item-text{padding-left:15px}.fl-revision-list-item-date{padding-bottom:5px}.fl-builder--revision-actions{display:none;position:fixed;top:4px;left:4px;z-index:100008;padding:4px 4px 6px;-ms-flex-pack:center;justify-content:center;background:#fff;border-radius:4px}.fl-builder--revision-actions *{margin-right:5px}.fl-builder--revision-actions :last-child{margin:0}.fl-builder--menu-item[data-event=noRevisionsMessage]:hover{background:0 0;box-shadow:none;cursor:default}.fl-no-revisions-message-title{font-weight:700;margin-bottom:10px}.fl-no-revisions-message-text{line-height:22px}.fl-builder-module-placeholder-message{border:1px dashed #ccc;overflow:hidden;padding:20px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.fl-field-connections-menu{z-index:999999}.fl-field[data-type=editor] .fl-field-connections-toggle{right:5px!important}.fl-field-connections-inline-toggle{display:inline;color:#9a9b9c;margin-left:6px}.fl-field-connections-inline-toggle i{transition-property:transform;transition-duration:.15s}.fl-field-connections-inline-toggle.fl-field-connections-toggle-open i{transform:rotate(45deg)}.fl-builder-add-ultimate-presets-button,.fl-builder-add-ultimate-rows-button,.fl-builder-pp-add-template-button,.pp-preview-button,.uabb-live-preview-button{display:none!important}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none;background:0 0;transition-property:background;transition-duration:.15s}.ui-resizable-autohide .ui-resizable-handle,.ui-resizable-disabled .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-ne,.ui-resizable-nw,.ui-resizable-se,.ui-resizable-sw{width:12px;height:12px}.ui-resizable-se{cursor:se-resize;right:-4px;bottom:-4px}.ui-resizable-sw{cursor:sw-resize;left:-4px;bottom:-4px}.ui-resizable-nw{cursor:nw-resize;left:-4px;top:-4px}.ui-resizable-ne{cursor:ne-resize;right:-4px;top:-4px}.fl-builder-resizable-iframe-fix{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100000000}.fl-builder-panel .ui-resizable-handle:active,.fl-builder-panel .ui-resizable-handle:hover,.fl-lightbox .ui-resizable-handle:active,.fl-lightbox .ui-resizable-handle:hover{background:#00a0d2}.fl-builder-panel .ui-resizable-n,.fl-builder-panel .ui-resizable-s,.fl-lightbox .ui-resizable-n,.fl-lightbox .ui-resizable-s{height:6px}.fl-builder-panel .ui-resizable-n,.fl-lightbox .ui-resizable-n{top:-3px}.fl-builder-panel .ui-resizable-s,.fl-lightbox .ui-resizable-s{bottom:-3px}.fl-builder-panel .ui-resizable-e,.fl-builder-panel .ui-resizable-w,.fl-lightbox .ui-resizable-e,.fl-lightbox .ui-resizable-w{width:6px}.fl-builder-panel .ui-resizable-e,.fl-lightbox .ui-resizable-e{right:-3px}.fl-builder-panel .ui-resizable-w,.fl-lightbox .ui-resizable-w{left:-3px}.fl-lightbox .ui-resizable-ne,.fl-lightbox .ui-resizable-nw,.fl-lightbox .ui-resizable-se,.fl-lightbox .ui-resizable-sw{background:0 0;border:6px solid transparent}.fl-lightbox .ui-resizable-ne:active,.fl-lightbox .ui-resizable-ne:hover,.fl-lightbox .ui-resizable-nw:active,.fl-lightbox .ui-resizable-nw:hover,.fl-lightbox .ui-resizable-se:active,.fl-lightbox .ui-resizable-se:hover,.fl-lightbox .ui-resizable-sw:active,.fl-lightbox .ui-resizable-sw:hover{background:0 0;border-color:#00a0d2}.fl-lightbox .ui-resizable-ne{border-bottom:none;border-left:none;border-top-right-radius:4px}.fl-lightbox .ui-resizable-nw{border-bottom:none;border-right:none;border-top-left-radius:4px}.fl-lightbox .ui-resizable-se{border-top:none;border-left:none;border-bottom-right-radius:4px}.fl-lightbox .ui-resizable-sw{border-top:none;border-right:none;border-bottom-left-radius:4px}.fl-builder-ui-keyboard-shortcuts{display:none;position:fixed;top:0;left:0;bottom:0;right:0;z-index:999999;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background:rgba(50,50,50,.88);font-size:15px;line-height:1.3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fl-builder-ui-keyboard-shortcuts.is-showing{display:-ms-flexbox;display:flex}.fl-builder-ui-keyboard-shortcuts-content{box-sizing:border-box;width:500px;background:#f5f7f9;border-radius:4px;padding:30px 0 0;box-shadow:0 10px 30px rgba(0,0,0,.15)}.fl-builder-ui-keyboard-shortcut-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:12px 40px}.fl-builder-ui-keyboard-shortcut-item:nth-child(even){background:#eef2f5}.fl-builder-ui-shortcut-keycode{margin-left:auto;text-transform:uppercase;letter-spacing:2px}.fl-builder-ui-keyboard-shortcust-footer{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;padding:10px}.dismiss-shortcut-ui{padding:10px;border-radius:4px;background:#fff;color:#000;font-size:14px;border:2px solid #fff}.dismiss-shortcut-ui:focus,.dismiss-shortcut-ui:hover{top:0;color:#000;background:#eef2f5;border:2px solid #eef2f5}.fl-builder-ui-skin--dark .fl-builder--main-menu-panel,.fl-builder-ui-skin--dark .fl-builder--preview-actions,.fl-builder-ui-skin--dark .fl-builder--search-results-panel,.fl-builder-ui-skin--dark .fl-builder-panel,.fl-builder-ui-skin--dark .fl-lightbox,body.fl-builder-ui-skin--dark .fl-builder-bar .fl-builder-bar-content{background:#23282d;color:#b4b9be;border-color:#1d1d1d}.fl-builder-ui-skin--dark .fl-builder--panel-header{color:#b4b9be;border-bottom-color:#1d1d1d;border-top-color:#1d1d1d}.fl-builder-ui-skin--dark .fl-builder-panel.fl-builder-ui-pinned .fl-builder--panel-header{border-top-color:#1d2227}.fl-builder-ui-skin--dark .fl-builder--main-menu-panel:before{border-bottom-color:#1d1d1d}.fl-builder-ui-skin--dark .fl-builder--panel-arrow polygon{fill:#1d1d1d}.fl-builder-ui-skin--dark .fl-builder-panel-search .fl-builder-panel-search-input{background:#24282e}.fl-builder-ui-skin--dark .fl-responsive-preview-content{background:#131619}.fl-builder-ui-skin--dark .fl-form-table th{background:#23282d!important;color:#7d8690}.fl-builder-ui-skin--dark .fl-builder--preview-actions .device-icons,.fl-builder-ui-skin--dark .fl-builder-button{background:#2c333a}.fl-builder-ui-skin--dark .fl-builder-button:focus{background:#131a22}.fl-builder-ui-skin--dark .fl-builder-button.fl-builder-button-primary{color:#fff!important;fill:#fff!important;background:#00A0D2}.fl-builder-ui-skin--dark .fl-builder-button.fl-builder-buy-button,.fl-builder-ui-skin--dark .fl-builder-button.fl-builder-feedback-button,.fl-builder-ui-skin--dark .fl-builder-button.fl-builder-upgrade-button{background-color:#F7A407;color:#fff!important}.fl-builder-ui-skin--dark .fl-builder-button.fl-builder-button-silent:focus{border:2px solid #00a0d2!important}.fl-builder-ui-skin--dark .fl-builder-content-panel--button:hover,.fl-builder-ui-skin--dark .fl-builder-content-panel-button{color:#00A0D2!important}.fl-builder-ui-skin--dark .fl-builder--menu>a:hover,.fl-builder-ui-skin--dark .fl-builder--menu>button:hover{background:#101215!important}.fl-builder-ui-skin--dark .fl-builder--menu>a:focus,.fl-builder-ui-skin--dark .fl-builder--menu>button:focus{background:#101215!important;color:#fff!important}.fl-builder-ui-skin--dark .fl-builder-bar-title{border-color:#101215}.fl-builder-ui-skin--dark .fl-builder-bar-title:hover{background-color:#181b1f}.fl-builder-simple.fl-builder-ui-skin--dark .fl-builder-bar-title:hover{background-color:transparent}.fl-builder-ui-skin--dark .fl-builder-layout-title{color:#c6cdd6}.fl-builder-ui-skin--dark .fl-builder-bar-title-caret i,.fl-builder-ui-skin--dark .fl-builder-layout-pretitle,.fl-builder-ui-skin--dark .fl-theme-builder-preview-select .fl-theme-builder-preview-select-title{color:#7d8690}.fl-builder-ui-skin--dark button.fl-builder-button.fl-builder-bar-title-caret:focus{background-color:#101215!important}.fl-builder-ui-skin--dark .fl-builder--search:before{color:rgba(162,173,184,.73)}.fl-builder-ui-skin--dark .fl-builder--search input:focus::-webkit-input-placeholder{color:rgba(162,173,184,.73)!important}.fl-builder-ui-skin--dark .fl-builder--search .search-clear{color:rgba(162,173,184,.5);background-color:#e4e4e4;background:linear-gradient(to left,#383f46,#383f46 75%,rgba(56,63,70,0))}.fl-builder-ui-skin--dark .fl-builder--menu hr{background-color:#23282d!important;border:none}.fl-builder-ui-skin--dark .fl-builder--tabs{border-color:#383f46!important}.fl-builder-ui-skin--dark .fl-builder--tabs .is-showing,.fl-builder-ui-skin--dark .fl-builder-settings-tabs a.fl-active,.fl-builder-ui-skin--dark .fl-builder-settings-tabs-more.fl-contains-active{color:#fff!important;fill:#fff!important;background:#181b20!important}.fl-builder-ui-skin--dark .fl-builder--tabs :focus{background-color:#101215!important;color:#fff!important}.fl-builder-ui-skin--dark .fl-builder--tabs .is-showing:focus{color:#00a0d2!important}.fl-builder-ui-skin--dark .fl-builder--menu-item:hover{background:#383f46;color:#a8b3bf}.fl-builder-ui-skin--dark .fl-builder--menu * .fl-builder--menu-item-accessory,.fl-builder-ui-skin--dark .fl-builder-blocks-section-group-name{color:#7d8690}.fl-builder-ui-skin--dark .fl-builder--selector-display{color:#c6cdd6;background:url(../img/svg/select-arrow-down-alt2-light.svg) center right 10px no-repeat #1a1b22!important}.fl-builder-ui-skin--dark .fl-builder--selector-display-label{color:#b5becb}.fl-builder-ui-skin--dark .fl-builder-panel-search-input input{border-color:#5b656f;color:#b8c2ce;background:#171b1f!important}.fl-builder-ui-skin--dark .fl-builder--selector-display-label:focus,.fl-builder-ui-skin--dark .fl-builder-panel-search-input input:focus{border-color:#00a0d2}.fl-builder-ui-skin--dark .fl-builder--group-label{color:#aaafb5!important;background:#24282e}.fl-builder-ui-skin--dark .fl-builder--category-select .fl-builder--selector-menu{border-color:#101215!important;color:#7c858e;background-color:#101215}.fl-builder-ui-skin--dark .fl-builder--category-select .fl-builder--selector-menu:before{border-bottom-color:#101215}.fl-builder-ui-skin--dark .fl-builder--menu>a,.fl-builder-ui-skin--dark .fl-builder--menu>button,.fl-builder-ui-skin--dark .fl-builder--menu>span{color:#a1adb9}.fl-builder-ui-skin--dark .fl-builder--category-select .fl-builder--selector-menu .fl-builder--menu-item:hover{background:#23282d!important;color:#a1adb9}.fl-builder-ui-skin--dark .fl-builder--category-select .fl-builder--selector-menu .fl-builder--menu-item:focus{background:#23282d!important;color:#00a0d2!important}.fl-builder-ui-skin--dark .fl-builder-panel-drag-handle{fill:#5b656f}.fl-builder-ui-skin--dark .fl-builder--template-collection-section-header,.fl-builder-ui-skin--dark .fl-builder-blocks-section .fl-builder-blocks-section-header,.fl-builder-ui-skin--dark .fl-builder-settings-section-header{background-color:#191b21;border-color:#191b21}.fl-builder-ui-skin--dark .fl-builder--template-collection-section-name,.fl-builder-ui-skin--dark .fl-builder--user-templates-section-name,.fl-builder-ui-skin--dark .fl-builder-blocks-section .fl-builder-blocks-section-title,.fl-builder-ui-skin--dark .fl-builder-settings-fields .fl-builder-settings-title{color:#7d8690!important;fill:#7d8690;background:#24282e}.fl-builder-ui-skin--dark .fl-builder-settings-fields .fl-builder-settings-title:focus{border-color:#7d8690}.fl-builder-ui-skin--dark .fl-builder-blocks-section-content .fl-builder-block,.fl-builder-ui-skin--dark .fl-user-template{color:#b8c2ce}.fl-builder-ui-skin--dark .fl-builder-block:hover .fl-builder-block-content,.fl-builder-ui-skin--dark .fl-user-template:hover{background:#171b1f;color:#fff}.fl-builder-ui-skin--dark .fl-builder-block:hover i,.fl-builder-ui-skin--dark .fl-user-template:hover i{color:#6d7782!important}.fl-builder-ui-skin--dark .fl-builder-block:hover a:hover i,.fl-builder-ui-skin--dark .fl-user-template:hover a:hover i{color:#9eacbb!important}.fl-builder-ui-skin--dark .fl-builder-block .fl-builder-block-icon{fill:#b5becb}.fl-builder-ui-skin--dark .fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col,.fl-builder-ui-skin--dark .fl-builder-block:hover .fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col{background:#7d8690}.fl-builder-ui-skin--dark .fl-user-templates{border-color:#101215}.fl-builder-ui-skin--dark .fl-builder--template-thumbnail{border-color:#393f44}.fl-builder-ui-skin--dark .fl-builder--menu a.fl-template-collection{color:#a8b3bf}.fl-builder-ui-skin--dark .fl-lightbox .fl-lightbox-header h1{color:#fff!important}.fl-builder-ui-skin--dark .fl-form-table th label{color:#a8b3bf!important}.fl-builder-ui-skin--dark .fl-builder-settings-tabs{background-color:#2c333a!important}.fl-builder-ui-skin--dark .fl-builder-settings-fields h3.fl-builder-settings-title{background:#24282e}.fl-builder-ui-skin--dark h3.fl-builder-settings-title .fl-builder-settings-title-text-wrap{color:#a8b3bf;background-color:#1b2025}.fl-builder-ui-skin--dark .fl-lightbox :not(i){color:#a7b1bb!important}.fl-builder-ui-skin--dark .fl-builder-button{color:#c6cdd6!important;fill:#c6cdd6!important}.fl-builder-ui-skin--dark .fl-builder-content-panel--button:hover,.fl-builder-ui-skin--dark .fl-builder-content-panel-button{fill:#00A0D2!important}.fl-builder-ui-skin--dark .fl-lightbox .fl-builder-button.fl-builder-button-primary{color:#fff!important}.fl-builder-ui-skin--dark .fl-color-picker-color.fl-color-picker-empty{background:#1a1b22}.fl-color-picker-color.fl-color-picker-empty .fl-color-picker-icon{fill:#6f7881}.fl-builder-ui-skin--dark .fl-color-picker-clear{background-color:#121a23}.fl-builder-ui-skin--dark .fl-color-picker-clear:hover{background-color:#373f46}.fl-builder-ui-skin--dark span.fl-builder-block-no-node-templates:hover{background:#1d2025}.fl-builder-ui-skin--dark .fl-builder-settings-tab-description{background:#1d2227}.fl-builder-ui-skin--dark .fl-builder-panel-search button svg .filled-shape{fill:#b5becb}.fl-builder-ui-skin--dark .fl-builder-custom-field,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=email],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=file],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=number],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=password],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=search],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=tel],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=text],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=url],.fl-builder-ui-skin--dark .fl-builder-settings-fields select,.fl-builder-ui-skin--dark .fl-builder-settings-fields textarea{background-color:#181b20!important}.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=email]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=file]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=number]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=password]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=search]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=tel]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=text]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=url]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields select:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields textarea:focus{border-color:#00a0d2!important;color:#fff!important}.fl-builder-ui-skin--dark .fl-builder-settings-fields select{background-image:url(../img/svg/select-arrow-down-alt2-light.svg)!important}.fl-builder-ui-skin--dark .fl-builder-custom-field select,.fl-builder-ui-skin--dark .fl-photo-field select{border-color:#7d8690!important}.fl-builder-ui-skin--dark .fl-field i.fl-field-responsive-toggle{color:#6b747d}.fl-builder-ui-skin--dark .fl-builder--main-menu-panel-view-title,.fl-builder-ui-skin--dark .fl-field i.fl-field-responsive-toggle:hover{color:#a8b3bf}.fl-builder-ui-skin--dark .fl-builder--saving-indicator{color:#858f99}.fl-builder-ui-skin--dark .fl-icons-list i:hover{background-color:#16191d;color:#fff}.fl-builder-ui-skin--dark .fl-color-picker-clear .fl-color-picker-icon-remove:after,.fl-builder-ui-skin--dark .fl-color-picker-clear .fl-color-picker-icon-remove:before{background:#6f7881}.fl-builder-ui-skin--dark .fl-builder--user-templates-section-content{border-color:#1d1d1d}.fl-builder-ui-skin--dark .fl-theme-builder-preview-select.fl-builder-button{background:0 0;border-right-color:#101215!important}.fl-builder-ui-skin--dark .fl-theme-builder-preview-select.fl-builder-button:hover{background:#181b1f}.fl-builder-ui-skin--dark .fl-theme-builder-preview-select .fl-theme-builder-preview-select-title span{color:#c6cdd6}.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu{background:#131a22;border-color:#353c43 #131a22 #131a22}.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu:before{border-bottom-color:#353c43}.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu>a:active,.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu>a:focus,.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu>a:hover{background:#383f46}.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu>a.fl-active,.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu>a:hover.fl-active{color:#fff!important;background:#383f46}.fl-builder-ui-skin--dark ul.as-selections{background-color:#121a23}.fl-builder-ui-skin--dark .fl-custom-query .fl-builder-settings-section{border-top:2px solid #1b2026!important}.fl-builder-ui-skin--dark div.fl-field-unit-select{background-color:#181b20!important}.fl-builder-ui-skin--dark .fl-dimension-field-units>*{border-right:1px solid #383f46}.fl-builder-ui-skin--dark .fl-field-popup-slider,.fl-builder-ui-skin--dark .fl-field-popup-slider-input .ui-slider-handle{background:#383f46}.fl-builder-ui-skin--dark .fl-field-popup-slider-arrow:after{border-bottom-color:#383f46}.fl-builder-ui-skin--dark .fl-field-popup-slider-input{background-color:#121a23}.fl-builder-ui-skin--dark .fl-unit-field-input{border-right:1px solid #383f46!important}.fl-builder-ui-skin--dark .fl-button-group-field-option[data-selected="1"]{background-color:#383f46;color:#fff}.fl-builder-ui-skin--dark .fl-button-group-field-option[data-selected="1"] i{color:#fff!important}.fl-builder-ui-skin--dark .fl-button-group-field-options{background:#181b20}.fl-builder-ui-skin--dark .fl-compound-field-section-toggle{background-color:#181b20}.fl-builder-ui-skin--dark .fl-compound-field-section-toggle:hover{background-color:#383f46}.fl-builder-ui-skin--dark .fl-compound-field-section-visible .fl-compound-field-section-toggle{border-top-color:#121a23!important;background-color:transparent}.fl-builder-ui-skin--dark .fl-field-connections-toggle i{color:#7c8590}.fl-builder-ui-skin--dark .fl-lightbox .fl-field-connection-content{background-color:#191b20!important}.fl-builder-ui-skin--dark .fl-nanoscroller>.fl-nanoscroller-pane>.fl-nanoscroller-slider{background-color:#181b20}.fl-builder-ui-skin--dark .fl-nanoscroller>.fl-nanoscroller-pane:hover>.fl-nanoscroller-slider{background-color:#5a646f}.fl-builder-ui-skin--dark .fl-nanoscroller>.fl-nanoscroller-pane.active>.fl-nanoscroller-slider{background-color:#00A0D2}.fl-builder-ui-skin--dark .fl-lightbox div.mce-panel{background:#383f46}.fl-builder-ui-skin--dark .fl-lightbox .mce-toolbar .mce-ico{color:#a7b1bb}.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button-secondary{background:#383f46;border:none;box-shadow:none}.fl-builder-ui-skin--dark .fl-lightbox .fl-builder-settings .wp-switch-editor{background:#23282d}.fl-builder-ui-skin--dark .fl-lightbox .html-active .switch-html,.fl-builder-ui-skin--dark .fl-lightbox .quicktags-toolbar,.fl-builder-ui-skin--dark .fl-lightbox .tmce-active .switch-tmce{background:#383f46}.fl-builder-ui-skin--dark .fl-lightbox textarea.wp-editor-area{background:0 0!important}.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button-secondary:focus,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button-secondary:hover,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button.focus,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button.hover,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button:focus,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button:hover{background:#191b20}
|
1 |
+
.fl-color-picker-ui{width:300px}.fl-color-picker-ui.fl-color-alpha-enabled{width:334px}.fl-color-picker-ui .iris-picker{float:left;width:100%;height:224px;display:block;position:relative;border-top:1px solid rgba(0,0,0,.1)}.fl-color-picker-ui .iris-picker .iris-square-inner,.fl-color-picker-ui .iris-picker-inner{position:absolute;left:0;top:0;bottom:0;right:0}.fl-color-picker-ui .iris-picker,.iris-picker *{box-sizing:content-box}.fl-color-picker-ui .iris-error{background-color:#ffafaf}.fl-color-picker-ui .iris-picker .iris-square{width:300px;height:200px}.fl-color-picker-ui .iris-picker .iris-palette,.fl-color-picker-ui .iris-picker .iris-slider,.fl-color-picker-ui .iris-picker .iris-square-inner{height:100%;width:12.5%}.fl-color-picker-ui .iris-picker .iris-placeholder,.fl-color-picker-ui .iris-picker .iris-square{position:relative}.fl-color-picker-ui .iris-picker .iris-square-inner{width:auto;margin:0}.fl-color-picker-ui .iris-ie-9 .iris-palette,.fl-color-picker-ui .iris-ie-9 .iris-slider,.fl-color-picker-ui .iris-ie-9 .iris-square,.fl-color-picker-ui .iris-ie-9 .iris-square-inner{box-shadow:none;border-radius:0}.fl-color-picker-ui .iris-ie-9 .iris-palette,.fl-color-picker-ui .iris-ie-9 .iris-slider,.fl-color-picker-ui .iris-ie-9 .iris-square{outline:rgba(0,0,0,.1) solid 1px}.fl-color-picker-ui .iris-ie-lt9 .iris-palette,.fl-color-picker-ui .iris-ie-lt9 .iris-slider,.fl-color-picker-ui .iris-ie-lt9 .iris-square,.fl-color-picker-ui .iris-ie-lt9 .iris-square-inner{outline:#999 solid 1px}.fl-color-picker-ui .iris-ie-lt9 .iris-square .ui-slider-handle{outline:#999 solid 1px;background-color:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"}.fl-color-picker-ui .iris-ie-lt9 .iris-square .iris-square-handle{background:0 0;border:3px solid #fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.fl-color-picker-ui .iris-picker .iris-strip{box-sizing:border-box;width:calc(300px - 12px);margin:5px 6px 6px;border-radius:4px;position:relative;height:22px;transform:rotate(180deg)}.fl-color-picker-ui .iris-picker .iris-strip .ui-slider-handle{width:6px;position:absolute;right:0;top:-2px;bottom:-2px;margin:0;border-radius:3px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.5);z-index:5;cursor:ew-resize}.fl-color-picker-ui .iris-picker .iris-strip .ui-slider-handle:focus{outline:#00a0d2 solid 2px}.fl-color-picker-ui .iris-picker .iris-slider-offset{position:absolute;top:0;left:6px;right:0;bottom:0;width:auto;height:auto;background:0 0;border:none;border-radius:0;transform:rotate(180deg)}.fl-color-picker-ui .iris-picker .iris-square-handle{background:0 0;border:5px solid #999;border-radius:50%;border-color:rgba(128,128,128,.5);box-shadow:none;width:12px;height:12px;position:absolute;left:-10px;top:-10px;cursor:move;opacity:1;z-index:10}.fl-color-picker-ui .iris-picker .ui-state-focus .iris-square-handle{opacity:.8}.fl-color-picker-ui .iris-picker .iris-square-handle:hover{border-color:#999}.fl-color-picker-ui .iris-picker .iris-square-value:focus .iris-square-handle{box-shadow:0 0 2px rgba(0,0,0,.75);opacity:.8}.fl-color-picker-ui .iris-picker .iris-square-handle:hover::after{border-color:#fff}.fl-color-picker-ui .iris-picker .iris-square-handle::after{position:absolute;bottom:-4px;right:-4px;left:-4px;top:-4px;border:3px solid #f9f9f9;border-color:rgba(255,255,255,.8);border-radius:50%;content:" "}.fl-color-picker-ui .iris-picker .iris-square-value{width:0;height:0;position:absolute}.iris-ie-lt9 .iris-square-value,.iris-mozilla .iris-square-value{width:1px;height:1px}.fl-color-picker-wrapper{position:relative;width:48px;height:32px}.fl-color-picker{box-shadow:0 2px 4px 0 rgba(0,0,0,.12);background:url(../img/transp_bg.png) #fff;border-radius:4px;width:120px;height:36px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-color-picker-color{-ms-flex:1 1 100%;flex:1 1 100%;box-sizing:border-box!important;position:relative;border-radius:4px;background-color:transparent;cursor:pointer;border:2px solid transparent;padding:0;-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:flex}.fl-color-picker-clear:hover,.fl-color-picker-color:hover{background:0 0;border:2px solid transparent}.fl-color-picker-clear:focus,.fl-color-picker-color.fl-color-picker-empty:focus,.fl-color-picker-color:focus{outline:0;top:0;border:2px solid #00a0d2;background:0 0}.fl-color-picker.fl-color-picker-has-reset .fl-color-picker-color:not(.fl-color-picker-empty){border-top-right-radius:0;border-bottom-right-radius:0}.fl-color-picker-icon{display:none;margin:auto}.fl-color-picker-color.fl-color-picker-empty{border-color:transparent}.fl-color-picker-color.fl-color-picker-empty svg.fl-color-picker-icon{display:block}.fl-color-picker-color.fl-color-picker-empty svg.fl-color-picker-icon path{fill:inherit}.fl-color-picker-clear{box-sizing:border-box;position:relative;display:-ms-flexbox;display:flex;-ms-flex:0 0 36px;flex:0 0 36px;-ms-flex-pack:center;justify-content:center;padding:0;border:2px solid transparent;fill:#A2AABE;background-color:#E7EBEF;cursor:pointer;border-radius:0 4px 4px 0}.fl-color-picker-clear:hover{fill:#6B6E75;background-color:#E7EBEF}.fl-color-picker-color.fl-color-picker-empty+.fl-color-picker-clear{display:none}.fl-color-picker-ui{display:inline-block;font-family:Helvetica,Verdana,sans-serif;z-index:1;position:fixed;overflow:hidden;padding-bottom:45px;border:1px solid rgba(0,0,0,.1);color:#999;background-color:#FAFAFA;border-radius:3px;box-shadow:0 9px 20px rgba(0,0,0,.17);transition:opacity .2s,visibility .2s;visibility:hidden;opacity:0;-webkit-transform:translate3d(0,0,0)}.fl-color-picker-ui.fl-color-picker-active{visibility:visible;opacity:1;z-index:999999}.fl-color-picker-ui .fl-color-picker-input,.fl-color-picker-ui .fl-color-picker-input:focus{width:100%;height:30px;border:none!important;font-size:14px!important;padding:0 8px;vertical-align:middle;color:#656c6e;background-color:#fff;border-radius:0;box-shadow:none}.fl-color-picker-ui .iris-square-value{transition:none}.fl-color-picker-preset-add{position:absolute;top:8px;right:8px;width:14px;height:14px;background-color:#656c6e;border-radius:50%;cursor:pointer;transition:all .2s}.fl-color-picker-preset-add:hover{background-color:#333}.fl-color-picker-preset-add:after,.fl-color-picker-preset-add:before{content:'';display:block;position:relative;background-color:#fff}.fl-color-picker-preset-add:before{top:6px;left:3px;width:8px;height:2px}.fl-color-picker-preset-add:after{left:6px;top:1px;width:2px;height:8px}.fl-color-picker-presets{position:absolute;left:0;bottom:0;width:100%;z-index:15;overflow:auto;border-top:1px solid rgba(0,0,0,.1);background-color:#FAFAFA}.fl-color-picker-presets-list .fl-color-picker-preset:hover,.fl-color-picker-presets-toggle:hover{background-color:#EDEDED}.fl-color-picker-presets-toggle{position:relative;overflow:hidden;width:100%;height:35px;text-align:center;line-height:35px;font-size:12px;font-weight:700;cursor:pointer;transition:all .1s}.fl-color-picker-presets-close-label,.fl-color-picker-presets-open-label{position:absolute;top:50%;left:50%;visibility:hidden;color:#999;transition:all .5s;transform:translate(-50%,-50%);opacity:0;width:100%}.fl-color-picker-presets-close-label.fl-color-picker-active,.fl-color-picker-presets-open-label.fl-color-picker-active{color:#656c6e;visibility:visible;opacity:1;z-index:999999}.fl-color-picker-presets-list{width:100%;list-style:none;margin:0;padding:0;overflow:auto}.fl-color-picker-presets-list .fl-color-picker-no-preset,.fl-color-picker-presets-list .fl-color-picker-preset{position:relative;padding:5px;font-size:12px;border-top:1px solid rgba(0,0,0,.1);transition:all .1s}.fl-color-picker-presets-list .fl-color-picker-no-preset{padding:18px 5px;text-align:center}.fl-color-picker-presets-list .fl-color-picker-preset-color{display:inline-block;width:40px;height:20px;margin-right:3px;vertical-align:middle;border:1px solid rgba(0,0,0,.1);border-radius:2px;cursor:pointer}.fl-color-picker-presets-list .fl-color-picker-preset-label{vertical-align:middle;color:#333;cursor:pointer}.fl-color-picker-presets-list .fl-color-picker-preset-remove{position:absolute;top:50%;cursor:pointer;transform:translateY(-50%)}.fl-color-picker-clear .fl-color-picker-icon-remove{right:auto;top:auto;margin:auto}.fl-color-picker-presets-list .fl-color-picker-preset-remove{right:5px}.fl-color-picker-presets-list .fl-color-picker-preset-remove:hover:after,.fl-color-picker-presets-list .fl-color-picker-preset-remove:hover:before{background-color:#333}.fl-color-picker-added{position:absolute;width:100%;top:0;left:0;right:0;bottom:35px;z-index:10;color:#fff;text-align:center;background-color:rgba(0,0,0,.8)}.fl-color-picker-added-text{position:absolute;top:50%;left:50%;width:80%;font-size:14px;color:#fff!important;transform:translate(-50%,-50%)}.fl-color-picker-icon-check{position:relative;width:50px;height:50px;margin:5px auto}.fl-color-picker-icon-check:before{content:'';display:block;position:relative;width:15px;height:30px;margin-left:14px;border:7px solid #fff;border-left:none;border-top:none;transform:rotate(45deg)}.fl-color-picker-icon-arrow-down,.fl-color-picker-icon-arrow-up{display:inline-block;position:relative;width:10px;height:10px;margin-left:5px}.fl-color-picker-icon-arrow-down:before,.fl-color-picker-icon-arrow-up:before{content:'';display:block;position:relative;width:6px;height:6px;border:2px solid #999;border-left:none;border-top:none;transform:rotate(45deg)}.fl-color-picker-icon-arrow-up{top:2px;transform:rotate(180deg)}.fl-color-picker-icon-remove{width:15px;height:15px}.fl-color-picker-icon-remove:after,.fl-color-picker-icon-remove:before{content:'';display:block;position:relative;background-color:#6f7881}.fl-color-picker-icon-remove:before{left:6px;width:2px;height:10px;margin-top:3px;transform:rotate(-45deg)}.fl-color-picker-icon-remove:after{left:6px;width:2px;height:10px;margin-top:-10px;transform:rotate(45deg)}.fl-alpha-wrap{position:absolute;width:32px;height:215px;padding:0 5px;right:4px;border-top:none}.fl-alpha-slider{height:190px;position:absolute;top:12px;width:28px}.fl-alpha-slider .ui-slider-handle{background:rgba(0,0,0,0);border-color:#aaa;border-radius:4px;border-style:solid;border-width:4px;box-shadow:0 1px 2px rgba(0,0,0,.2);-moz-box-shadow:0 1px 2px rgba(0,0,0,.2);-webkit-box-shadow:0 1px 2px rgba(0,0,0,.2);cursor:ns-resize;height:12px;left:0;opacity:.9;position:absolute;right:0;width:30px;z-index:14}.fl-alpha-slider .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;border-radius:3px}.fl-theme-builder-preview-select-title i:before,body .fl-theme-builder-preview-select .fa-caret-down i:before,body .fl-theme-builder-preview-select-item-title i:before{content:"\f078"}.fl-alpha-slider-offset{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAASCAYAAAAe/ZHXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NkNEQUQ0ODM4RUE0MTFFNEExOEJFN0E5M0VFOTg0QUQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NkNEQUQ0ODQ4RUE0MTFFNEExOEJFN0E5M0VFOTg0QUQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2Q0RBRDQ4MThFQTQxMUU0QTE4QkU3QTkzRUU5ODRBRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2Q0RBRDQ4MjhFQTQxMUU0QTE4QkU3QTkzRUU5ODRBRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/r/N8AAAWYSURBVHjarFvvR3VBEN45JZGIPkREHyIiIhJJf3qUSERE9CGiDxERkcg9z9u92uucvTszz5z7xnHPj93Z2d359cxscn5+jpTS+EoiMr3/+51cZ2dn4+e29i2/u7y8RKf/pO3vc+o+n5ycoNK31+f6+jrfZ37yuG2mf3R01H3fa5N/b29vU6dP5qft0G4PDg5MGuPr/v4+jz1t27mfvN/b21P75+fHx8eZfiV/Ozs7rUJnSu/5+RlFv+m6ZJpbW1s1PnrvXl9fZ/qX89zY2LB4mfy+v7/nsdV1XltbK/dr5vnz87OcV5bJabuVlRVLBifjfX9/l/xkGtM+S0tLNXnu0szfU/P3IMn/k0678h6ddqjQFGccVL6hoCsVfsq+NZ5QtCv5rfFS41sq37W+UPhMyhxEWTetvce3NR8oewqD39qalXuGAK/WPltjajIC4x2c9Ye1f43SGcqGwRBeTZjhMNntL4pCWZMQYhE05RVl02EovRgC4RkCbUNSQAGhGB/GsKG4h6FQoigDa2i8fRBy3uLMXYIG3Vr3aZvRaCRdBYlYIMZywhBGCVhgzzOlgRuUSOvC0GMEWxOM/+EtQFh1OIIXtfwg1tRaayGjg5px0jyZKEaTle3e+AsLCygVRAh3FlEgKbReE3oYGj9EgIR00QiEgKw3ZBQbRGjBeAMtDETQmHiKDsezJNLgCTFGItZXlAgCSiQggblP+9c8SDI0lXWlFv5g3K63KZ51FOcZzthQ3LomoNHwJmKIQISI3vqzSpwIQ8liSjGMFQjDpoVgaQ6cWgvLhOC7qiAwiHrWbEg4JMSmeUrBuHoYwioOQNXmhmAcrs096s1gJCGi3hSEVU8DQxYElYHhKwUUGAa+NqOBMsSSAQJuhQhCAH4vxozExsxiihPuaIrjCVYKWlYEsjSM52G8Kxxryngl5j0j+EyGTIiED4s1Itm0ZGWxMFCLJaBAcEI6OBkmFgNBoc8Cait2ZnENE/6wQN8LJSJeSMNAjKVm+LUMAIt3PR5AQgIGp1Z5zxhE8PtXUYReYeXi4mKmOPNXBMzt2tPT07LIUtJqr66uusXEbkFnWiQ6Pj72ikrtzc1NKopuvbbj58PDwxqNHp27u7tuYWumUDV+v7+/Xyu6pc59+/DwUCsC9ujt7u6qRbt8//T01C3elbyN70fb29uZ/1FSincvLy/lPGb42tzc9IqJeHt7q61Pr2C6vr7u7tfHx8fMPhV0sLq6WhZtU0n36+uru8elPE7aLi8v1wqJPXn++fmZKYgX8ozFxcXJb0NaQTHClZT8+gBjsYdaFc+zWcUkGTCWENY66ta92oSVzo3WI6IZKGtukeyfBLFKBNAj6bUOBgaoe9wE4n04IBNkLMoC7+Skj630ZlTJMYdyMsU2T8AwpzALkVFilZgJcT2l9PCWDDSAMBSjVlJgZNk0lE1AIby0qCiCnBQNj6aBGQslZIZJ5hB6D/AzQHto5Z9Nk8tARdN4q2ExBnsyIJ311EymShyjan2rKk0zh1Ay1oQVWAZQRnkUA8RFw7TahjBnmNgMVMQrsCGZJezRtGlU0cUZ1zuaxGZPpbhApM+ZpFQqQ6xadoMtBrEKpBVo4GRXvNSxpaRixKiR+TChCYhsDwZkfFj8IkErjAHejcUI0XQrgwehhNSMHAz21E0wZ23FcCAmj8Sd/PXy2xLYLAuwRw4IMsqjFaWYOpMEhDySAPFCWyFkgAHrEcA+BNeJ4UE8HCzJPpCrerUmQIx1pWJkjqxJD8EikUo2c5aI8ZYgsAkM4WQtnHd0ns0ORgVTBghy5ISy928SGsbTMqYg523RUY8oNYG4FIYiyRyZCnFCJC87IoRAIMVOqQ7BKexxCS2hYVl9JhvlpYjnAe4MhmRPMWhhvLfXINaI9WKM0Zu0+SfAAFLE1EgfVSv7AAAAAElFTkSuQmCC) center;box-shadow:0 0 5px rgba(0,0,0,.4) inset;-moz-box-shadow:0 0 5px rgba(0,0,0,.4) inset;-webkit-box-shadow:0 0 5px rgba(0,0,0,.4) inset;width:200px;height:22px;transform:rotate(-90deg);bottom:48%;left:-80px;position:absolute}.fl-alpha-text{width:30px;font-size:12px;text-align:center;color:#999;position:absolute;bottom:-5px}.fl-lightbox-mask,.fl-lightbox-wrap{bottom:0;left:0;position:fixed;right:0;z-index:100010}@keyframes fl-lightbox-zoom{from{transform:scale(.4)}to{transform:scale(1)}}.fl-lightbox-wrap{display:none;overflow:auto;padding:0;top:43px;-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);pointer-events:none}.fl-builder-draggable-is-dragging .fl-lightbox-wrap,.fl-builder-resizable-is-resizing .fl-lightbox-wrap,.fl-lightbox,.fl-lightbox-mask{pointer-events:auto}.fl-lightbox-mask{background:#000;opacity:.7;filter:alpha(opacity=70);top:0}.fl-lightbox{background:#F5F7F9;border-radius:4px;box-shadow:rgba(0,0,0,1) 0 4px 30px;-moz-box-shadow:rgba(0,0,0,1) 0 4px 30px;-webkit-box-shadow:rgba(0,0,0,1) 0 4px 30px;position:relative;display:-ms-flexbox;display:flex;z-index:100011;transform-origin:center;animation-name:fl-lightbox-zoom;animation-duration:.25s}.fl-lightbox.fl-lightbox-prevent-animation{animation-duration:0s;-moz-animation-duration:0s;-webkit-animation-duration:0s;-o-animation-duration:0s}.fl-lightbox :not(i){color:#333;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:12px;line-height:14px;text-decoration:none;text-transform:none}.fl-lightbox *,.fl-lightbox :after,.fl-lightbox :before{box-sizing:content-box}#fl-ui-root .fl-nanoscroller-pane,.fl-builder--content-library-panel .fl-nanoscroller-pane,.fl-lightbox .fl-nanoscroller-pane{bottom:2px;right:2px;width:6px}.fl-nanoscroller>.fl-nanoscroller-pane>.fl-nanoscroller-slider{background-color:#bac0ca;transition-property:height,background-color;transition-duration:.25s}#wpadminbar,html{transition-duration:.35s}.fl-nanoscroller>.fl-nanoscroller-pane>.fl-nanoscroller-slider:hover{background-color:#c8cdd4}.fl-nanoscroller>.fl-nanoscroller-pane.active>.fl-nanoscroller-slider{background-color:#029fd2}.fl-lightbox .dashicons{font-family:dashicons}.fl-lightbox.ui-draggable{box-shadow:rgba(0,0,0,.2) 0 7px 30px;-moz-box-shadow:rgba(0,0,0,.2) 0 7px 30px;-webkit-box-shadow:rgba(0,0,0,.2) 0 7px 30px}#wpadminbar,.fl-builder-bar.is-hidden{pointer-events:none}.fl-lightbox-resizable{height:500px;width:380px}@media (max-width:500px){.fl-lightbox-resizable{left:0!important;right:0!important;top:0!important;height:100%!important;width:100%!important}.fl-lightbox-resizable .ui-resizable-handle{display:none!important}.fl-lightbox.ui-draggable .fl-lightbox-header{cursor:default!important}.fl-lightbox-controls{display:none}}.fl-lightbox-width-full{left:0!important;right:0!important;top:0!important;height:100%!important;width:100%!important}.fl-lightbox-width-full .fl-lightbox-header{cursor:inherit!important}.fl-lightbox-controls{position:absolute;right:10px;top:10px;z-index:5}.fl-lightbox-controls .fa{color:#bdbdbd;font-size:14px;padding:5px}.fl-lightbox-controls .fa:hover{color:#aaa;cursor:pointer}.fl-lightbox-header-wrap{border-top-left-radius:4px;border-top-right-radius:4px}.fl-lightbox-header{position:relative}.fl-lightbox-header h1{color:#333!important;font-size:16px!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;font-weight:400!important;margin:0!important;padding:14px 34px 15px 28px!important;text-align:left!important;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;line-height:1}.fl-lightbox.ui-draggable .fl-lightbox-header{cursor:move}.fl-lightbox-header h1 .fl-builder-badge{margin-left:10px;color:#fff;background-color:#F7A408}.fl-lightbox-content,.fl-lightbox-content-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1 100%;flex:1 100%;max-width:100%}.fl-lightbox-footer{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex:0 0;flex:0 0;-ms-flex-preferred-size:44px;flex-basis:44px;padding:4px;text-align:right}.fl-lightbox-footer .fl-builder-button{height:36px;margin-left:5px!important;-ms-flex:0 0 0%;flex:0 0 0%;-ms-flex-pack:center;justify-content:center}.fl-lightbox-width-slim .fl-lightbox-footer{-ms-flex-pack:stretch;justify-content:stretch;padding:4px 5px}.fl-lightbox-width-slim .fl-lightbox-footer .fl-builder-button{-ms-flex:1 1 100%;flex:1 1 100%;display:block;text-align:center}.fl-lightbox-width-slim .fl-lightbox-footer .fl-builder-button:first-child{margin-left:0!important}.fl-lightbox table,.fl-lightbox td,.fl-lightbox th,.fl-lightbox tr{border:none}.fl-lightbox-wrap.fl-icon-selector{z-index:1000111}.fl-icon-selector .fl-lightbox{height:100%}.fl-icons-filter{height:auto!important;margin:0!important;position:absolute!important;right:0;top:0;padding:10px 16px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-icons-filter select{vertical-align:middle;width:195px;-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;color:#000;border:2px solid #e4e7ea!important;border-right:none!important;margin:0;padding:2px 10px;background:url(../img/svg/select-arrow-down-alt2.svg) center right 10px no-repeat #fff!important;-ms-flex:1 1 195px;flex:1 1 195px;border-radius:0}.fl-icons-filter input[type=text]{line-height:18px;vertical-align:middle;width:160px;-ms-flex:1 1 160px;flex:1 1 160px;border:2px solid #e4e7ea!important;border-radius:0!important;padding:2px 10px!important}.fl-icons-filter input[type=text]:focus,.fl-icons-filter select:focus{border:2px solid #00A0D2!important}.fl-icons-list{bottom:52px;left:0;overflow:auto;padding:20px;position:absolute;right:0;top:48px}.fl-icons-list::-webkit-scrollbar{background-color:#ccc;-webkit-appearance:none;width:10px}.fl-icons-list::-webkit-scrollbar-thumb{background-color:#666;border:1px solid #ccc}.fl-icons-section{text-align:center}.fl-icons-section h2{border-bottom:1px solid #dfdfdf;color:#333!important;font-family:Helvetica,Verdana,sans-serif!important;font-size:16px!important;font-weight:700!important;margin:0 0 20px!important;padding:0 0 10px!important;text-align:left}.fl-icons-list i,.fl-icons-list i:before{cursor:pointer;display:inline-block;font-size:40px;height:100px;line-height:100px;width:100px;background:0 0}.fl-icons-list i:hover{background:#fff;box-shadow:0 10px 20px rgba(0,0,0,.15);border-radius:4px}.fl-icon-selector-footer{bottom:0;left:0;position:absolute;right:0}html{transition-property:margin}html.fl-builder-is-showing-toolbar{margin-top:calc(44px + 1px)!important}.fl-builder-edit body{position:static!important}.fl-builder-edit:after,.fl-builder-edit:before{z-index:0!important}.fl-builder-edit .fl-builder-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}#wpadminbar{transition-property:transform,opacity;transform-origin:bottom;transform-style:preserve-3d;transform:rotateX(89deg) translateY(46px);opacity:0;will-change:transform}html.fl-builder-show-admin-bar{margin-top:32px}html.fl-builder-show-admin-bar #wpadminbar{transform:rotateX(0) translateY(0);pointer-events:auto;opacity:1}@media screen and (max-width:782px){html.fl-builder-show-admin-bar{margin-top:46px}}.fl-clear{clear:both}.screen-reader-text{position:absolute;left:-1000em;top:-1000em;height:1px;width:1px;overflow:hidden}.fl-builder-loading{background:url(../img/ajax-loader.svg) center center no-repeat rgba(240,240,240,.8);bottom:0;display:none;left:0;position:fixed;right:0;text-align:center;top:0;z-index:12000000}.fl-builder-settings .fl-builder-loading{background:url(../img/ajax-loader.svg) center center no-repeat rgba(255,255,255,.8);display:block;position:absolute}.fl-field-loader{color:#B3B3B3!important;font-style:italic}.fl-builder-node-loading{opacity:.35!important}.fl-builder-node-loading-placeholder{background:url(../img/ajax-loader.svg) center center no-repeat;height:50px}.fl-col-group-has-child-loading{display:-ms-flexbox;display:flex}.fl-col-group-has-child-loading>.fl-builder-node-loading-placeholder{width:50px}.fl-node-hidden{display:none}.fl-builder-edit .fl-node-hidden{display:block}html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-visible-desktop,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-visible-desktop-medium,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-visible-medium,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-visible-medium-mobile,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-visible-mobile{display:block!important}html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-col-group-equal-height .fl-col.fl-visible-desktop,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-col-group-equal-height .fl-col.fl-visible-desktop-medium,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-col-group-equal-height .fl-col.fl-visible-medium,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-col-group-equal-height .fl-col.fl-visible-medium-mobile,html:not(.fl-responsive-preview-enabled) .fl-builder-content-editing .fl-col-group-equal-height .fl-col.fl-visible-mobile{display:-ms-flexbox!important;display:flex!important}.fl-responsive-preview-enabled body{overflow:hidden!important}.fl-responsive-preview-mask{background:#F7F7F7;bottom:0;left:0;position:fixed;right:0;top:0;z-index:99999}.fl-responsive-preview{bottom:0;left:0;position:fixed;right:0;top:0;margin-top:50px;z-index:100000}.fl-builder-preview .fl-responsive-preview{margin:0!important}.fl-responsive-preview-content{background:#F5F7F9;padding:20px 20px 45px;overflow:scroll;position:absolute;top:45px;right:0;bottom:0;left:0}.fl-responsive-preview-content .fl-builder-content-editing{overflow:visible!important}.fl-responsive-preview-message{background:#F5F7F9;color:#b3b3b3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;font-size:14px;font-weight:400;padding:15px;text-align:center;position:absolute;top:0;left:0;right:0;z-index:999999}.fl-responsive-preview-message span{display:inline-block;margin-right:8px}.fl-responsive-preview-message .fl-builder-button{display:inline-block;margin-left:2px;padding:0 10px}.fl-responsive-preview-message .fl-builder-button i{font-size:14px;height:14px;width:14px}.fl-responsive-preview .fl-builder-content{box-shadow:0 0 8px rgba(0,0,0,.2);margin-left:auto;margin-right:auto;max-width:100%;overflow:visible;position:relative}#fl-builder-preview-frame,#fl-builder-preview-mask{bottom:0;height:100%;position:fixed;top:0;width:100%;right:0}.fl-responsive-preview .fl-block-col-resize{display:none}.fl-builder-button,body .fl-builder-bar .fl-builder-bar-content{display:-ms-flexbox;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important}#fl-builder-preview-mask{background:url(../img/ajax-loader.svg) center center no-repeat #F7F7F7;left:0;z-index:999999}#fl-builder-preview-frame{left:50%;transform:translateX(-50%);-moz-transform:translateX(-50%);-webkit-transform:translateX(-50%);z-index:1000000}body button[class*=fl-builder],body button[class*=fl-builder]:focus,body button[class*=fl-builder]:hover{box-shadow:none;max-height:none;max-width:none;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none}.fl-builder-button{-webkit-appearance:none;-ms-flex-align:center;align-items:center;background:#e7ebef;border:2px solid transparent;border-radius:3px;-webkit-border-radius:3px;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;color:#676F7A!important;cursor:pointer;display:flex;fill:#676F7A!important;font-size:14px!important;font-style:normal!important;font-weight:500!important;height:33px;letter-spacing:normal!important;line-height:1!important;margin:0;padding:0 12px;text-align:center;transition-property:background-color,width;transition-duration:.2s;white-space:nowrap;width:auto;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fl-builder--search-results-panel,.fl-builder-bar,.fl-builder-panel{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-touch-callout:none}.fl-builder-button:hover{background:#dadfe5;color:#222;border:2px solid transparent!important}.fl-builder-button:active{background:#DCDCDC}button.fl-builder-button:focus{position:static;top:auto;outline:0;background:#E4E7EA;border:2px solid #00A0D0!important}.fl-builder-bar .fl-builder-button{height:auto}.fl-builder-button-primary,body.fl-builder--layout-has-drafted-changes .fl-builder-done-button{background:#00A0D2;color:#fff!important;text-decoration:none;border:2px solid transparent!important}.fl-builder-button.fl-builder-button-primary:focus,body.fl-builder--layout-has-drafted-changes .fl-builder-button.fl-builder-done-button:focus{background:#00A0D2;border:2px solid #ffc217!important}.fl-builder-button-primary:hover,body.fl-builder--layout-has-drafted-changes .fl-builder-done-button:hover{background:#0197C6;color:#fff!important}.fl-builder-button-primary:active,body.fl-builder--layout-has-drafted-changes .fl-builder-done-button:active{background:#0484AC}.fl-builder-button-large{height:30px}.fl-builder-button-small{font-size:11px!important;line-height:1!important}.fl-builder-help-button{color:#b3b3b3;font-size:16px!important}.fl-builder-help-button i{position:relative;top:-1px}.fl-builder-help-button:hover{color:#666}.fl-builder-publish-button{line-height:45px!important}.fl-builder-content-panel-button,.fl-builder-content-panel-button:hover{fill:#00A0D2!important;font-size:30px!important;padding-bottom:4px}.fl-builder-button-silent,.fl-builder-button-silent:hover{padding:0 12px;background:0 0!important;border:2px solid transparent!important;box-shadow:none!important}.fl-builder-done-button,.fl-builder-done-button:hover{font-weight:600}.fl-field .fl-builder-button{display:inline-block;height:auto;padding:11px 12px;vertical-align:middle;box-shadow:0 2px 4px 0 rgba(0,0,0,.12)}.fl-builder-badge{background:#333;border-radius:2px;color:#fff!important;display:inline;font-size:11px!important;font-weight:400;letter-spacing:1px;margin-left:2px;padding:2px 4px;vertical-align:middle}.fl-builder-badge-global{background:#ff9600;transform:translateY(0);transition-duration:.25s;transition-property:transform}.fl-builder-blocks-node-template .fl-builder-badge-global{position:absolute;right:0;top:0}.fl-builder-block:hover .fl-builder-badge-global{display:none}.fl-builder-bar{left:0;position:fixed;right:0;top:0;z-index:999999;user-select:none;transition-property:transform opacity;transition-duration:.35s;transform-style:preserve-3d;perspective:1100px}.fl-builder-bar.is-hidden .fl-builder-bar-content{transform:translateY(-100%) rotateX(90deg)}body .fl-builder-bar .fl-builder-bar-content{display:flex;box-sizing:border-box;background:#fff;border-bottom:1px solid #eceef1;color:#999;font-size:14px!important;height:calc(44px + 1px);transition-property:background-color,opacity,transform;transition-duration:.35s;pointer-events:auto}.fl-builder-draggable-is-dragging .fl-builder-content,.fl-builder-draggable-is-dragging .fl-builder-panel .fl-lightbox,.fl-builder-resizable-is-resizing .fl-builder-content,.fl-builder-resizable-is-resizing .fl-builder-panel .fl-lightbox,body .fl-builder-bar .fl-builder-bar-content.is-muted{pointer-events:none}body .fl-builder-bar .fl-builder-bar-content.is-muted>:not(.fl-builder-publish-actions){-webkit-filter:saturate(20%) blur(1px);filter:saturate(20%) blur(1px);opacity:.4}.fl-builder-bar-title{box-sizing:border-box;color:#333;display:-ms-flexbox;display:flex;-ms-flex:0 0 380px;flex:0 0 380px;max-width:380px;border-right:1px solid #eceef1;cursor:pointer}.fl-builder-bar-title:hover{background:#fff}.fl-builder-bar-title.is-showing-menu .fl-builder-bar-title-caret>svg{transform:rotate(180deg)}.fl-builder-simple .fl-builder-bar-title{cursor:auto}.fl-builder-simple .fl-builder-bar-title:hover{cursor:auto;background:0 0}.fl-builder-bar-title span{vertical-align:middle}.fl-builder-bar-title-icon{box-sizing:border-box;background:0 0;-ms-flex:0 0 46px;flex:0 0 46px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:4px}.fl-builder-bar-title-icon img{max-width:100%!important;height:auto!important}.fl-builder-bar-title.fl-builder-bar-title-no-icon{padding-left:12px}.fl-builder-bar-title-area{box-sizing:border-box;-ms-flex:1 1 100%;flex:1 1 100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;padding:4px}.fl-builder-layout-title,.fl-theme-builder-preview-select .fl-theme-builder-preview-select-title span{font-size:16px;font-weight:400;line-height:1.3;color:#161B20;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.fl-builder-bar-title-caret,.fl-builder-layout-pretitle,.fl-theme-builder-preview-select .fl-theme-builder-preview-select-title{font-size:12px;font-weight:500;line-height:1.3;color:#656d77;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.fl-builder-bar-title-caret i,.fl-theme-builder-preview-select-title i{color:inherit!important;font-size:14px}.fl-builder-bar-title-caret{margin-left:auto!important;-ms-flex:0 0 46px;flex:0 0 46px}.fl-theme-builder-preview-select-title i{padding:12px}.fl-theme-builder-preview-select.fl-builder-button{position:relative;border-radius:0;background:0 0;min-width:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 360px;flex:0 0 360px;max-width:360px;margin:0!important;padding:4px 10px;border:none!important;border-right:2px solid #d5dadd!important;box-shadow:none}.fl-theme-builder-preview-select.fl-builder-button:hover{border:none!important;border-right:2px solid #d5dadd!important}.fl-theme-builder-preview-select .fl-theme-builder-preview-select-title{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.fl-theme-builder-preview-select-title div{-ms-flex:1;flex:1}.fl-theme-builder-preview-select .fl-theme-builder-preview-select-title span{display:block}.fl-theme-builder-preview-select-open .fl-theme-builder-preview-select-items{position:absolute;top:calc(48px + 10px);left:10px;width:calc(100% - 20px)!important;background:#fff;border-radius:4px;border:2px solid #D5DADD;border-top:3px solid #00a0d2;box-shadow:0 15px 45px 8px rgba(0,0,0,.04);margin:0!important;padding:0;z-index:-1;font-size:16px;overflow:visible;height:auto!important;max-height:calc(100vh - 66px);min-height:300px;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column;flex-direction:column}.fl-theme-builder-preview-select-item{padding:4px 0!important;border-bottom:none!important;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:initial}.fl-theme-builder-preview-select-item:hover{text-decoration:none;color:#111;background:0 0!important}body .fl-theme-builder-preview-select .fa-caret-down{float:none}body .fl-theme-builder-preview-select-item-title{padding:10px 15px;color:#222;font-size:14px}body .fl-theme-builder-preview-select-item-children{overflow:auto}body .fl-theme-builder-preview-select-item-child{overflow:hidden;text-overflow:ellipsis;line-height:1.1;margin:0 10px;border:2px solid transparent;border-radius:4px;padding:8px 10px 10px;font-size:14px;font-weight:400;color:#222}body .fl-theme-builder-preview-select-item-child:hover{background:#e6eaed!important}.fl-theme-builder-preview-select-item .fa-caret-down{color:#606D77}.fl-builder-bar-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex:1 1 100%;flex:1 1 100%;padding:4px}.fl-builder-bar .fl-builder-button{margin:0 0 0 4px}.fl-builder-bar-actions .fl-builder-button:last-child{margin:0}.fl-builder-bar-actions:after{clear:both}.fl-builder-bar .fl-builder-content-panel-button{-ms-flex-align:baseline!important;align-items:baseline!important;padding-top:1px;font-weight:400}.fl-builder-content-panel-button svg{transition-property:transform;transition-duration:.25s;transform:rotate(0) scale(1);transform-origin:center}.fl-builder-content-panel-is-showing .fl-builder-content-panel-button svg{transform:rotate(135deg) scale(1.1) translate(.5px,-.5px)}.fl-builder--saving-indicator{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;padding:0 10px;font-size:12px;font-style:italic;color:#676f7a;-ms-flex-align:center;align-items:center;line-height:1.2;min-width:180px;-ms-flex-pack:end;justify-content:flex-end}.fl-builder--saving-indicator:hover{color:#676f7a}.fl-builder--saving-indicator .fa-question-circle{font-size:13px;margin:3px 0 3px 5px}.fl-builder-buy-button,.fl-builder-feedback-button,.fl-builder-upgrade-button{background:#F7A407;color:#fff!important;text-decoration:none}.fl-builder-buy-button i.fa-external-link-alt,.fl-builder-feedback-button i.fa-external-link-alt,.fl-builder-upgrade-button i.fa-external-link-alt{color:#FFC733;margin:0 0 0 6px}.fl-builder-buy-button:hover,.fl-builder-feedback-button:hover,.fl-builder-upgrade-button:hover{background:#EE8E0D;color:#fff!important}@media (max-width:980px){.fl-builder--main-menu-panel{width:calc(100% - 20px)!important}.fl-builder--main-menu-panel:before{right:auto;left:20px}.fl-builder-bar-title,.fl-theme-builder-preview-select{-ms-flex:1 .5 380px!important;flex:1 .5 380px!important}}@media (max-width:620px){.fl-theme-builder-preview-select.fl-builder-button{display:none}}@media (max-width:500px){#fl-builder-toggle-notifications,.fl-builder--main-menu-panel:before,.fl-builder--panel-arrow,.fl-builder-bar-title-area,.fl-builder-panel-drag-handle,.fl-builder-panel:before{display:none}.fl-builder--main-menu-panel,.fl-builder-panel{width:auto!important;top:44px!important;left:0!important;right:0!important;bottom:0!important;border-radius:0!important;box-shadow:none!important}.fl-builder--main-menu-panel{border-left:transparent!important;border-right:transparent!important;border-bottom:transparent!important;max-height:calc(100% - 44px)!important}.fl-builder-bar-title{-ms-flex:0 0 80px!important;flex:0 0 80px!important}.fl-builder-bar-title-caret{padding-left:0;padding-right:0;max-width:24px}.fl-builder-bar-actions{max-width:calc(100% - 80px);overflow:hidden}.fl-builder--panel-header{border-radius:0!important;cursor:default!important}.fl-builder--panel-header .fl-builder--tabs{cursor:default!important}.fl-builder-publish-actions{width:100%!important;padding-left:4px!important}.fl-builder-bar-actions .fl-builder-button{padding:0 8px!important}}.fl-builder--preview-actions{display:none;position:fixed;top:4px;left:4px;z-index:10000001;padding:4px;-ms-flex-pack:center;justify-content:center;background:#fff;border-radius:4px}.fl-builder-preview .fl-builder--preview-actions{display:-ms-flexbox;display:flex}.fl-builder--preview-actions .device-icons{color:#555;background:#e4e4e4;border:none!important;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;text-decoration:none;font-size:14px!important;line-height:1!important;margin:0 4px 0 0;padding:0 6px;cursor:pointer;-webkit-border-radius:3px;-webkit-appearance:none;border-radius:3px}.fl-builder--preview-actions .device-icons i{margin:0 6px}@keyframes fl-builder-ui-pin-zone-pulse{0%,100%{opacity:1;filter:alpha( opacity=1 )}50%{opacity:.5;filter:alpha( opacity=35 )}}.fl-builder-ui-pin-zone{animation:fl-builder-ui-pin-zone-pulse 2s infinite;transition:width .3s ease;background:rgba(0,160,210,.5);bottom:0;top:0;position:fixed;width:35px;z-index:100001}.fl-builder-ui-show-pin-zone-left .fl-builder-ui-pin-zone-left,.fl-builder-ui-show-pin-zone-right .fl-builder-ui-pin-zone-right{width:75px}.fl-builder-ui-pin-zone-left{left:0}.fl-builder-ui-pin-zone-right{right:0}.fl-builder-content-panel-pin-zone .fl-builder-content-panel-button{display:-ms-flexbox!important;display:flex!important;background:rgba(0,160,210,.5)!important;padding:2px 4px;width:80px;animation:fl-builder-ui-pin-zone-pulse 2s infinite}.fl-builder-content-panel-pin-zone .fl-builder-content-panel-button svg{display:none}.fl-builder-content-panel-pin-zone-hover .fl-builder-content-panel-button{width:120px}.fl-builder-content-panel-pin-zone-hover .fl-builder-content-panel-button svg{display:none!important;width:100%;transform:none!important;fill:#00A0D2!important;border-radius:3px}.fl-builder-ui-is-pinned .fl-builder-content-panel-button,.fl-builder-ui-pinned-container .fl-lightbox-controls{display:none}.fl-builder-content-panel-pin-zone .fl-builder-done-button{-webkit-filter:grayscale(100%);filter:grayscale(100%)}.fl-builder-panel.fl-builder-ui-pinned{top:45px!important;bottom:0!important;height:auto!important;border-radius:0;border:none;box-shadow:none;animation-duration:0s;-moz-animation-duration:0s;-webkit-animation-duration:0s;-o-animation-duration:0s;z-index:11}.fl-builder-panel.fl-builder-ui-pinned-right{left:auto!important;right:0;border-left:1px solid #eceef1}.fl-builder-panel.fl-builder-ui-pinned-left{left:0;right:auto;border-right:1px solid #eceef1}.fl-builder-panel.fl-builder-ui-pinned .fl-builder--panel-header{border-radius:0!important}.fl-builder-ui-pinned-container .fl-lightbox-wrap{position:absolute;z-index:11}.fl-builder-ui-pinned-container .fl-lightbox{position:absolute;top:0;bottom:0;left:0;right:0;width:auto!important;height:auto;border-radius:0;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;animation-duration:0s;-moz-animation-duration:0s;-webkit-animation-duration:0s;-o-animation-duration:0s}.fl-builder-ui-pinned-container .fl-lightbox-header-wrap{border-radius:0}.fl-builder-ui-pinned-container .fl-lightbox.ui-draggable .fl-lightbox-header{cursor:auto}.fl-builder-ui-pinned-container .fl-lightbox-header h1{padding:12px 20px 10px!important}.fl-builder-ui-pinned-content-transform{transform:scale(1);transform-origin:center top 0}.fl-builder-ui-pinned-collapse{cursor:pointer;display:none;position:absolute!important;bottom:2px;padding:5px;border:2px solid transparent;background:0 0;width:36px;height:36px;border-radius:4px;fill:#778794;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}.fl-builder-ui-pinned-collapse:focus,.fl-builder-ui-pinned-collapse:hover{top:auto!important;background:0 0;border:2px solid transparent;outline:0;fill:#00A0D2}.fl-builder-ui-pinned-collapse:focus{background:#E4E7EA}.fl-builder-ui-pinned-collapse>*{margin:auto;line-height:1}.fl-builder-ui-pinned-collapse svg g{fill:inherit}.fl-builder-ui-is-pinned-right .fl-builder-ui-pinned-right-collapse{display:-ms-flexbox;display:flex;left:-40px}.fl-builder-ui-is-pinned-left .fl-builder-ui-pinned-left-collapse{display:-ms-flexbox;display:flex;right:-40px}.fl-builder-ui-pinned-collapse i[data-toggle=show],.fl-builder-ui-pinned-is-collapsed i[data-toggle=hide]{display:none}.fl-builder-ui-pinned-is-collapsed i[data-toggle=show]{display:block}.fl-builder--panel-no-settings,.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-builder--panel-content,.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-builder--panel-controls,.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-builder--tab-wrap,.fl-builder-ui-pinned-is-collapsed .fl-builder--panel-header{display:none}.fl-builder-ui-is-pinned-left [data-toggle=hide],.fl-builder-ui-is-pinned-right [data-toggle=show]{transform:rotateY(180deg)}.fl-builder-ui-pinned-is-collapsed .fl-lightbox{box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none}.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-builder--panel-header{background:0 0;border:none;z-index:10}.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-lightbox-wrap{top:0}.fl-builder-simple-pinned .fl-builder--content-library-panel .fl-lightbox-header h1{padding:14px 28px 15px!important}.fl-builder-simple-pinned .fl-builder--panel-no-settings{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:0;left:0;right:0;bottom:0}@keyframes fl-builder-show-panel{from{transform:scale(.8)}to{transform:scale(1)}}.fl-builder--search-results-panel,.fl-builder-panel{box-sizing:border-box;position:fixed!important;right:20px;top:calc(43px + 10px);width:380px;bottom:20px;background:#F5F7F9;color:#676F7A;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px;border-radius:4px;box-shadow:0 8px 40px 4px rgba(0,0,0,.3);z-index:10000007;will-change:transform;user-select:none}.fl-builder-panel{transform-origin:top right;animation-name:fl-builder-show-panel;animation-duration:.15s;animation-fill-mode:both;-ms-flex:1;flex:1;display:none}.fl-builder--search-results-panel{display:none;position:absolute;right:0;top:93px;left:0;bottom:0;width:auto!important;border:none;border-radius:0;box-shadow:none;min-height:100px;max-height:calc(100vh - 54px);overflow:auto;z-index:1}.fl-builder-content-panel-is-showing .fl-builder-panel,.fl-builder-search-results-panel-is-showing .fl-builder--search-results-panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.fl-builder-panel .fl-lightbox .fl-builder-panel-drag-handle,.fl-builder-ui-is-pinned .fl-builder--panel-arrow,.fl-lightbox-width-full .fl-builder-panel-drag-handle,body.fl-builder-draggable-is-dragging .fl-builder--panel-arrow{display:none}.fl-builder--search-results-panel .fl-builder--no-results{text-align:center;padding:50px 20px}.fl-builder--panel-arrow{position:absolute;top:-13px;right:10px}.fl-builder--panel-arrow polygon{fill:#00a0d2}.fl-builder--panel-header{border-top:3px solid #00a0d2;border-top-right-radius:4px;border-top-left-radius:4px}.fl-builder-ui-is-pinned .fl-builder--panel-header{border-top:none}.fl-builder-panel-drag-handle{position:absolute;top:7px;left:10px;fill:#ccd4da;width:6px}.fl-builder-ui-is-pinned-left .fl-builder-panel-drag-handle{left:auto;right:10px}.fl-builder--panel-header .fl-builder--panel-controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative}.fl-builder--panel-header .fl-builder--panel-controls .fl-builder-content-group-select{-ms-flex:1 1;flex:1 1}.fl-builder--panel-header .fl-builder--panel-controls .fl-builder-panel-search{-ms-flex:0 0;flex:0 0;padding:0 10px 6px 0;margin-left:-4px}.fl-builder--panel-controls .fl-builder-panel-search button{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;background:0 0!important;border:2px solid transparent!important;font-size:inherit;height:36px;margin:0;padding:0}.fl-builder--panel-controls .fl-builder-panel-search button:active,.fl-builder--panel-controls .fl-builder-panel-search button:focus{top:0;outline:0}.fl-builder-panel-search button svg{height:auto;width:20px}.fl-builder-panel-search button.fl-builder-dismiss-panel-search svg{width:16px}.fl-builder-panel-search button svg .filled-shape{fill:#000}.fl-builder--panel-controls .fl-builder-panel-search button:active svg .filled-shape,.fl-builder--panel-controls .fl-builder-panel-search button:focus svg .filled-shape{fill:#00A0D2}.fl-builder-panel-search .fl-builder-panel-search-input{display:none;position:absolute;top:0;left:0;right:0;bottom:0;background:#f5f7f9}.fl-builder-panel-search.is-showing-input .fl-builder-panel-search-input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:0 10px 6px}.fl-builder-panel-search-input input{-ms-flex:1 1 100%;flex:1 1 100%;border:2px solid #e6eaed;background:#fff;border-radius:4px;margin:0 4px 0 0;padding:10px;color:#333}.fl-builder-panel-search-input input:focus{border-color:#0197C6;outline:0}.fl-builder-panel-content-wrap{bottom:0;height:auto;left:0;overflow:hidden;position:absolute;right:0;top:43px}.fl-builder-panel-content{padding-bottom:60px}.fl-builder--panel-view .fl-builder-blocks-section:first-child{border-top:none}.fl-builder-blocks-group:first-child{padding:20px 0 0}.fl-builder-blocks-group .fl-builder-blocks-section-group-name{display:block;padding:0 30px 15px;color:#000;font-size:20px;font-weight:600;line-height:1.4}.fl-builder-blocks-section .fl-builder-block{display:block;line-height:1.1;padding:15px 20px}.fl-builder--template-collection-section-header,.fl-builder-blocks-section .fl-builder-blocks-section-header{line-height:1.2;color:#333;margin:0!important;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#e7ebef;border-top:4px solid #e7ebef;height:30px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-builder-blocks-section .fl-builder-blocks-section-title{background:#F5F7F9;color:#353535;padding:2px 16px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.fl-builder-blocks-section .fl-builder-blocks-section-title i{color:#bfbfbf;float:right}.fl-builder-blocks-section-content{overflow:auto;padding:10px 10px 20px}.fl-builder-blocks-section-content:before{content:none}.fl-builder-blocks-section-content:after{float:none;clear:both}.fl-builder-blocks-section-content.fl-builder-modules,.fl-builder-blocks-section-content.fl-builder-rows,.fl-builder-blocks-section-content.fl-builder-widgets{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}@supports (display:grid){.fl-builder--template-collection-section-content,.fl-builder-blocks-section-content.fl-builder-modules,.fl-builder-blocks-section-content.fl-builder-rows,.fl-builder-blocks-section-content.fl-builder-widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr))}.fl-builder--template-collection-section-content>*,.fl-builder-blocks-section-content.fl-builder-modules>*,.fl-builder-blocks-section-content.fl-builder-rows>*,.fl-builder-blocks-section-content.fl-builder-widgets>*{width:auto!important}}.fl-builder-blocks-section-content .fl-builder-block-module,.fl-builder-blocks-section-content .fl-builder-block-row{-ms-flex:1 1 50%;flex:1 1 50%;width:50%;box-sizing:border-box}.fl-builder--search-results-panel .fl-builder-blocks-section-content .fl-builder-block-module{-ms-flex:1 1 100%;flex:1 1 100%;width:100%}.fl-builder-blocks-section.fl-active .fl-builder-blocks-section-content{display:block}.fl-builder-blocks-section-content .fl-builder-block{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px;font-size:13px;line-height:1.1;font-weight:400;color:#38404a}.fl-builder-block{position:relative;height:47px}.fl-builder-block.fl-builder-block-col-group{height:84px}.fl-builder-block.fl-builder-block-has-thumbnail{height:auto!important;padding:10px!important}.fl-builder-block.fl-builder-block-has-thumbnail:hover{padding:0!important}.fl-builder-block.fl-builder-block-has-thumbnail .fl-builder-block-content{position:relative!important}.fl-builder-block.fl-builder-block-has-thumbnail:hover .fl-builder-block-content{padding:10px!important}.fl-builder-block.fl-builder-block-has-thumbnail .fl-builder-block-details{margin:0 10px 4px!important}.fl-builder-block:hover{overflow:visible;z-index:1}.fl-builder-block:hover .fl-builder-block-content{display:block;box-sizing:border-box;position:absolute;top:0;left:0;width:100%;padding:15px 20px;border-radius:4px;background:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);text-decoration:none;color:#111;cursor:move;overflow:hidden}.fl-builder-blocks-node-template .fl-builder-block,.fl-builder-blocks-section-content .fl-builder-block .fl-builder-block-details{position:relative}.fl-builder-block-module:hover .fl-builder-block-content{width:auto;min-width:100%}.fl-builder-block .fl-builder-block-content .fl-builder-block-visual{display:block;margin-bottom:7px}.fl-builder-block-drag-helper .fl-builder-block-content .fl-builder-block-visual{display:none!important}.fl-builder-block .fl-builder-block-content .fl-builder-block-visual.fl-cols-visual{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:30px}.fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col{-ms-flex:1 100%;flex:1 100%;background:#464a4c;height:30px;margin:0 2px;border-radius:2px}.fl-builder-block:hover .fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col{background:#000}.fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col:first-child{margin-left:0!important}.fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col:last-child{margin-right:0!important}.fl-cols-visual.left-right-sidebar .fl-cols-visual-col:first-child,.fl-cols-visual.left-right-sidebar .fl-cols-visual-col:last-child,.fl-cols-visual.left-sidebar .fl-cols-visual-col:first-child,.fl-cols-visual.right-sidebar .fl-cols-visual-col:last-child{-ms-flex-preferred-size:60px;flex-basis:60px}.fl-builder-block-saved-column.fl-builder-block-global .fl-builder-block-title,.fl-builder-block-saved-column:hover .fl-builder-block-title,.fl-builder-block-saved-module.fl-builder-block-global .fl-builder-block-title,.fl-builder-block-saved-module:hover .fl-builder-block-title,.fl-builder-block-saved-row.fl-builder-block-global .fl-builder-block-title,.fl-builder-block-saved-row:hover .fl-builder-block-title{margin-right:70px}.fl-builder-block-module:nth-child(even):hover .fl-builder-block-content{left:auto;right:0}.fl-builder-block-thumbnail{border-radius:4px;background-size:contain;background-repeat:no-repeat;background-position:center;background-color:rgba(0,0,0,.06);margin-bottom:10px;transform-origin:bottom;transition-property:transform,box-shadow;transition-duration:.15s}.fl-builder-block:hover .fl-builder-block-thumbnail{transform:scale(1.05);box-shadow:0 20px 40px rgba(0,0,0,.08)}.fl-builder-block .fl-builder-block-icon{margin-right:7px;fill:#000;display:inline-block;width:20px;height:20px;vertical-align:middle}.fl-builder-block-thumbnail:before{content:"";display:block;padding-top:50%}.fl-builder-block-thumbnail img{max-width:100%;max-height:160px;margin:0;-o-object-fit:cover;object-fit:cover}.fl-builder-blocks-section-content .fl-builder-block{box-shadow:0 0 0 transparent;transition-property:box-shadow;transition-duration:.15s}.fl-builder-blocks-section-content .fl-builder-block i,.fl-user-template-actions i{color:#000;margin-right:10px}.fl-builder-blocks-separator{background:#f1f1f1;height:6px}.fl-builder-block:hover .fl-builder-badge{background:#2ea2cc}.ui-sortable-helper .fl-builder-badge{display:none!important}.fl-builder-modules-cta a{color:#999!important;display:block!important;font-size:12px!important;font-style:italic!important;padding:15px 20px!important;line-height:16px!important}.fl-builder-modules-cta a:hover{background:#e5e5e5!important;color:#666!important;text-decoration:none!important}.fl-builder-modules-cta a:focus{text-decoration:none!important}.fl-builder-modules-cta .fa{float:right!important;font-size:14px!important;margin:3px 0 0 9px!important}.fl-builder--panel-message{text-align:center;padding:40px 20px;font-size:16px}.fl-builder--panel-message .fl-builder-button{display:inline-block;padding:10px}.fl-builder--panel-cta{padding:20px 30px;font-size:16px;text-align:center}.fl-builder--panel-cta a{color:inherit;text-decoration:none}.fl-builder--panel-cta a:hover{text-decoration:none}.fl-builder-block-template-image{margin:5px 0 10px;max-width:100%;border:1px solid #dfdfdf}.fl-builder-block .fl-builder-block-title{overflow:hidden;text-overflow:ellipsis;vertical-align:middle;line-height:1.3}.ui-sortable-helper .fl-builder-block-template-image{display:none!important}@keyframes fl-builder-template-item-enter{from{transform:translateY(100px) scale(.3);opacity:0}to{transform:scale(1);opacity:1}}.fl-builder--template-collection{clear:both;padding:10px 0}.fl-builder--template-collection-section-content{padding:0 10px}.fl-builder--template-collection-item{box-sizing:border-box;width:50%;float:left;padding:10px;cursor:pointer;font-size:13px;transform-origin:center;opacity:1}.fl-builder--template-thumbnail{background-size:cover;background-clip:content-box;background-position:center top;background-color:#fff;border:2px solid transparent;transform-origin:bottom;transition-property:transform,box-shadow;transition-duration:.15s}.fl-builder--template-collection-item[data-id="0"] .fl-builder--template-thumbnail,.fl-user-template .fl-builder--template-thumbnail{border-color:#e4e7ea}.fl-builder--template-thumbnail:before{display:block;content:"";padding-top:120%}.fl-builder--template-thumbnail:hover{transform:scale(1.05);box-shadow:0 20px 40px rgba(0,0,0,.08)}.fl-builder--template-name{text-align:center;padding:4px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.fl-builder--template-collection-section{padding-bottom:10px;border-bottom:1px solid #dfdfdf}.fl-builder--template-collection-section:last-child{border-bottom:none}.fl-builder--template-collection-section:after,.fl-builder--template-collection-section:before{content:"";display:block;clear:both}.fl-builder--template-collection-section-name{padding:15px 10px 10px}span.fl-builder-block-no-node-templates{display:block;padding:15px 20px;text-align:center}span.fl-builder-block-no-node-templates:hover{cursor:default}.fl-builder-blocks-section-content .fl-builder-node-template-actions{bottom:0;cursor:default;display:none;position:absolute;right:0;top:0}.fl-builder-blocks-section-content .fl-builder-node-template-delete,.fl-builder-blocks-section-content .fl-builder-node-template-edit{display:inline;cursor:pointer;margin:0;padding:15px 10px;text-align:center;width:30px}.fl-builder-block-details .fl-builder-node-template-delete,.fl-builder-block-details .fl-builder-node-template-edit{padding-top:0!important}.fl-builder-blocks-section-content .fl-builder-node-template-delete i,.fl-builder-blocks-section-content .fl-builder-node-template-edit i{margin:0}.fl-builder-blocks-section-content .fl-builder-node-template-delete:hover i,.fl-builder-blocks-section-content .fl-builder-node-template-edit:hover i{color:#444}.fl-builder-blocks-node-template .fl-builder-block:hover .fl-builder-node-template-actions{display:block}.ui-sortable-helper .fl-builder-node-template-delete,.ui-sortable-helper .fl-builder-node-template-edit{display:none!important}.fl-builder--tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.fl-builder-panel .fl-builder--panel-header{cursor:move}.fl-builder-panel .fl-builder--tabs{-ms-flex-pack:distribute;justify-content:space-around;padding:4px 24px;cursor:pointer}.fl-builder--tab-wrap{-ms-flex:1 1 100%;flex:1 1 100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;justify-content:space-between;margin:auto;max-width:400px}.fl-builder--tabs button,.fl-builder--tabs button:active,.fl-builder--tabs button:focus,.fl-builder--tabs button:hover{-ms-flex:1 1 100%;flex:1 1 100%;display:inline-block;text-decoration:none;text-transform:none;color:inherit;text-align:center;letter-spacing:normal!important;margin:0;padding:5px;cursor:pointer;font-size:13px!important;font-weight:500!important;line-height:1.3!important;background:0 0!important;outline:0!important;border:2px solid transparent;border-radius:4px;min-height:36px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;top:0;transition-property:background,color;transition-duration:.25s}.fl-builder--tabs button:focus{background:#e6eaed!important}.fl-builder--tabs button.is-showing{color:#0086b0}.fl-builder--panel-content{-ms-flex:1;flex:1}.fl-builder--panel-view{display:none;overflow:hidden}.fl-builder--panel-view.is-showing{display:block}.fl-builder--content-library-panel.ui-draggable-dragging{height:500px!important}.fl-builder--content-library-panel .fl-builder-drop-zone{display:none!important}.fl-builder--panel-header .fl-builder--tabs{cursor:move}.fl-builder--category-select{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}.fl-builder--selector-display{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative;-ms-flex-pack:justify;justify-content:space-between;color:#161B20;background:url(../img/svg/select-arrow-down-alt2.svg) center right 10px no-repeat #fff!important;cursor:pointer;font-size:13px;font-weight:700;line-height:16px;border-radius:4px;-ms-flex-align:stretch;align-items:stretch}.fl-builder--selector-display-label{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;font-size:inherit;line-height:inherit;width:100%;margin:0!important;padding:0!important;color:#6D6D6D;background:0 0;border:2px solid transparent;box-shadow:0 1px 2px 0 rgba(0,0,0,.12)!important;border-radius:4px;font-family:inherit;text-transform:none}.fl-builder--selector-display-label:hover{top:0;color:inherit;background:0 0;border:2px solid transparent;border-radius:4px}.fl-builder--selector-display-label:active{top:0;color:inherit;background:0 0;border:2px solid #e4e7ea;border-radius:4px}.fl-builder--selector-display-label:focus{top:0;color:inherit;background:0 0;border:2px solid #00A0D2;outline:0}.fl-builder--group-label{color:inherit;-ms-flex:0 0 0%;flex:0 0 0%;padding:4px 12px 4px 10px;background:#e7ebef;border-radius:3px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.fl-builder--current-view-name{-ms-flex:1 1 100%;flex:1 1 100%;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;padding:8px 10px;text-align:left}.fl-builder--selector-menu{display:none;color:#293138;position:absolute;top:46px;left:0;width:100%;background:#fff;border-radius:4px;box-shadow:0 0 20px 2px rgba(0,0,0,.2);overflow:visible;z-index:2}.fl-builder--selector-menu:before{bottom:100%;right:8px;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:solid;border-color:rgba(255,255,255,0);border-bottom-color:#fff;border-width:10px;margin-left:-10px}.fl-builder--category-select.is-showing .fl-builder--selector-menu{display:-ms-flexbox;display:flex;max-height:calc(100vh - 150px)}.fl-builder--category-select.is-showing .fl-builder--selector-menu .fl-builder--menu{margin:10px 0;-ms-flex:1 100%;flex:1 100%;overflow:auto}button.fl-builder-button.fl-builder-bar-title-caret{margin:4px}button.fl-builder-button.fl-builder-bar-title-caret:focus{background-color:#e6eaed!important;border-color:transparent!important}.fl-builder--category-select.is-showing .fl-builder-bar-title-caret i{transform:rotate(180deg)}.fl-builder--menu{margin-bottom:2px}.fl-builder--menu>a,.fl-builder--menu>button,.fl-builder--menu>span{display:block;padding:8px 10px 10px;border-radius:4px;color:inherit;text-decoration:none;background:0 0!important;border:2px solid transparent!important;font-weight:400;font-family:inherit}.fl-builder--menu>a:active,.fl-builder--menu>a:focus,.fl-builder--menu>a:hover,.fl-builder--menu>button:active,.fl-builder--menu>button:focus,.fl-builder--menu>button:hover{background:#e6eaed!important;border:2px solid transparent!important;top:0}.fl-builder-block-drag-helper,.fl-builder-block.ui-draggable-dragging,.fl-builder-drop-zone,.fl-builder-empty{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.fl-builder--menu>a:focus,.fl-builder--menu>button:focus{outline:0;color:inherit;text-decoration:none}.fl-builder--menu .fl-has-children>svg{float:right;margin:0 7px 0 0;height:16px;width:9px;transition-property:transform;transition-duration:.15s;transform:rotate(-90deg)}.fl-builder--menu .fl-has-children.fl-has-children-showing>svg{transform:rotate(0)}.fl-builder--menu .fl-inset{display:none;padding-left:35px;font-size:14px;line-height:1.25}.fl-builder--menu a.fl-template-collection{color:#161B20}.fl-builder--menu>:after{clear:both}.fl-builder--menu * .fl-builder--menu-item-accessory{float:right;color:#000;text-transform:uppercase;text-align:center;min-width:20px;letter-spacing:2px}.fl-builder--menu * .fl-builder--menu-item-accessory i{font-size:1em;margin-top:2px}.fl-builder--menu .fl-builder-video-wrap iframe{display:block;margin:4px 0;width:100%}.fl-builder-publish-actions{display:-ms-flexbox;display:flex;box-sizing:border-box;position:absolute;top:0;right:0;width:380px;max-width:100%;height:44px;padding:4px 4px 4px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;opacity:1;pointer-events:auto;transform:scaleX(1) translateX(0);transform-origin:right;transition-property:transform,opacity;transition-duration:.15s}.fl-builder-publish-actions.is-hidden{transform:scaleX(.23) translateX(68px);opacity:0;pointer-events:none}.fl-builder-bar .fl-builder-button-group{display:-ms-flexbox;display:flex;-ms-flex-preferred-size:100%;flex-basis:100%}.fl-builder-bar .fl-builder-button-group>.fl-builder-button{border-radius:0;margin-left:0;-ms-flex-preferred-size:100%;flex-basis:100%;text-align:center;-ms-flex-pack:distribute;justify-content:space-around;box-shadow:none}.fl-builder-bar .fl-builder-button-group>.fl-builder-button:first-child{margin-left:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.fl-builder-bar .fl-builder-button-group>.fl-builder-button:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.fl-builder-publish-actions-click-away-mask{display:none;position:fixed;top:0;left:0;right:0;height:100vh;background:0 0}.fl-builder-dragging .fl-builder-content:not(.fl-builder-empty){padding:16px 0}.fl-builder-empty{display:none;border:2px dashed #969696;border-radius:8px;color:#909090;font-size:20px;font-weight:700;margin:10px;padding:250px 20px;position:relative;text-align:center;text-transform:uppercase}.fl-builder-drop-zone,.fl-builder-has-submenu>ul.fl-builder-submenu li a{font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fl-builder-edit .fl-builder-empty{display:block}.fl-builder-block-drag-helper,.fl-builder-block.ui-draggable-dragging{background:rgba(255,255,255,.95)!important;border:2px solid #000;border-radius:4px;box-shadow:0 0 8px rgba(0,0,0,.2);-moz-box-shadow:0 0 8px rgba(0,0,0,.2);-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);color:#333!important;font-size:13px!important;height:47px!important;line-height:40px!important;overflow:hidden;padding:0 20px;position:fixed!important;text-overflow:ellipsis;white-space:nowrap;width:180px!important;z-index:100010!important;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:start;justify-content:flex-start}.fl-builder-block.fl-builder-block-drag-helper:hover{padding:0;box-shadow:none}.fl-builder-block-drag-helper:hover .fl-builder-block-content{position:static;padding:0 20px}.fl-col-has-highlight-guide .fl-col-content,.fl-col-highlight,.fl-row-highlight .fl-col-group{position:relative}.fl-builder-block-saved-column.fl-builder-block-drag-helper:hover .fl-builder-block-content,.fl-builder-block-saved-module.fl-builder-block-drag-helper:hover .fl-builder-block-content,.fl-builder-block-saved-row.fl-builder-block-drag-helper:hover .fl-builder-block-content{padding:14px 20px}.fl-builder-block-drag-helper .fl-builder-block-icon{fill:#000;margin-top:-10px}.fl-builder-drop-zone{animation:fl-builder-drop-zone-pulse 2s infinite;background:#00A2D7;border-radius:4px;color:#fff!important;display:block;font-size:12px;letter-spacing:1px;line-height:14px;margin:10px;padding:6px 8px 5px;position:relative;text-align:left;text-shadow:none;text-transform:none;z-index:10}@keyframes fl-builder-drop-zone-pulse{0%,100%{background-color:#00A2D7}50%{background-color:#79DEFF}}.fl-builder-drop-zone-global{animation:fl-builder-drop-zone-global-pulse 2s infinite;background:#ff9600}@keyframes fl-builder-drop-zone-global-pulse{0%,100%{background-color:#FFBC5C}50%{background-color:#ff9600}}.fl-builder-content>.fl-builder-drop-zone{margin:10px 20px}.fl-row-content>.fl-builder-drop-zone{margin:3px 7px}.fl-col-has-cols>.fl-col-content>.fl-builder-drop-zone{margin:3px 10px}.fl-sortable-disabled>.fl-builder-drop-zone{display:none!important}.fl-col-group-equal-height.fl-col-group-align-center .fl-col-content>.fl-builder-drop-zone{width:100%}.fl-row-highlight{padding:16px 0}.fl-row-highlight .fl-row-content{border:2px dashed rgba(203,205,206,.5);padding:8px;border-radius:6px}.fl-row-highlight.fl-node-global .fl-row-content{border-color:#ff9600}.fl-col-highlight{padding:8px}.fl-col-highlight .fl-col-content{border-style:dashed!important;border-color:#00a0d2!important;border-radius:4px;min-height:100px;overflow-x:hidden;border-width:2px!important}.fl-col-has-cols.fl-col-highlight>.fl-col-content{padding:8px}.fl-col-highlight.fl-node-global .fl-col-content{border-color:#ff9600!important}.fl-builder-simple .fl-col-highlight .fl-col-content{border:none!important}.fl-col-highlight-guide{background:rgba(0,160,210,.05);border:2px solid #00A0D2;border-radius:4px;bottom:4px;left:4px;position:absolute;right:4px;top:4px;z-index:1}.fl-node-global .fl-col-highlight-guide{border-color:#ff9600!important;background-color:rgba(255,150,0,.06)!important}.fl-col-has-highlight-guide .fl-block-overlay{background:0 0;border-color:transparent}.fl-col-has-highlight-guide .fl-block-col-resize{display:none}.fl-col-has-highlight-guide .fl-col-highlight .fl-col-content{border-color:transparent!important}.fl-col-drop-target{bottom:8px;display:none;left:-9px;position:absolute;top:8px;width:18px;z-index:1}.fl-col-highlight .fl-col-drop-target{display:block}.fl-col-drop-target-last{left:auto;right:-9px}.fl-col-drop-target .fl-builder-drop-zone{bottom:0;left:2px;margin:0;padding:0;position:absolute;right:2px;top:0}.fl-col-group-drop-target{display:none;left:8px;height:18px;position:absolute;right:8px;top:-9px;z-index:1}.fl-row-highlight .fl-col-group-drop-target{display:block}.fl-col-group-drop-target-last{top:auto;bottom:-9px}.fl-col-group-drop-target .fl-builder-drop-zone{bottom:2px;left:0;margin:0;padding:0;position:absolute;right:0;top:2px}.fl-row-content>.fl-col-group-drop-target{position:static}.fl-row-content>.fl-col-group-drop-target .fl-builder-drop-zone{height:18px;position:static}.fl-row-drop-target{display:none;left:0;height:24px;margin-top:-28px;position:absolute;right:0;z-index:1}.fl-row-highlight .fl-row-drop-target{display:block}.fl-row-drop-target-last{margin-top:4px}.fl-row .fl-row-drop-target .fl-builder-drop-zone{bottom:0;left:4px;margin:0;position:absolute;right:4px;top:0}.fl-builder-content>.fl-row-drop-target{margin:0;position:static}.fl-builder-dragging .fl-builder-content.fl-builder-empty>.fl-row-drop-target{bottom:10px;display:block;height:auto;left:0;position:absolute;right:0;top:10px}.fl-builder-content .fl-row-drop-target .fl-builder-drop-zone{margin-bottom:0;margin-top:0}.fl-col-group:focus,.fl-col:focus,.fl-module:focus,.fl-row:focus{outline:0}.fl-sortable-proxy{display:none}.fl-block-overlay,.fl-block-overlay *{text-shadow:none;-webkit-touch-callout:none;transition-property:border-color;transition-duration:.3s}.fl-block-overlay-active{position:relative}.fl-block-overlay-actions{background:#00A0D2;float:left;height:30px;margin:-1px -1px 0;padding:0 4px;text-shadow:none;border-bottom-right-radius:5px;border-top-left-radius:3px;transition-property:background-color;transition-duration:.3s}.fl-row-overlay-header-bottom .fl-block-overlay-actions{border-radius:0 5px 0 3px}.fl-builder-col-resizing .fl-block-overlay-actions,.fl-builder-row-resizing .fl-block-overlay-actions{overflow:hidden}.fl-block-overlay-actions>span{display:block;float:left}.fl-block-overlay-actions i{color:#fff!important;cursor:pointer;display:block!important;float:left;font-size:16px!important;height:28px!important;line-height:28px!important;opacity:.8;filter:alpha(opacity=80);text-align:center;width:32px!important}.fl-block-overlay-actions i:hover{opacity:1;filter:alpha(opacity=100)}.fl-block-overlay-actions>i:first-child{padding-left:4px}.fl-block-overlay-actions>i:last-child{padding-right:2px}.fl-block-overlay-actions .fl-block-move{cursor:move}.fl-block-has-rules{color:#00A0D2!important;cursor:pointer;padding:7px;position:absolute;right:0;top:0}.fl-block-overlay-title,.fl-builder-has-submenu>ul.fl-builder-submenu li a{color:#fff!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.fl-block-overlay-title{float:left;font-size:14px;height:30px;line-height:29px;margin-right:2px;padding:0 12px 0 8px}.fl-col-overlay,.fl-module-overlay,.fl-row-overlay{background:rgba(190,239,255,0);color:#fff}.fl-row-overlay{border:2px solid #00A0D2;border-radius:4px;bottom:0;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;left:0;position:absolute;top:-33px;right:0;z-index:100006}.fl-row-overlay.fl-row-menu-active,.fl-row-overlay.fl-row-menu-active.fl-block-overlay.fl-block-overlay-global{z-index:100007}.fl-row-full-width .fl-row-overlay{left:2px;right:2px;bottom:2px}.fl-row-overlay-header-bottom{bottom:-32px!important;top:0}.fl-row-overlay-header-bottom .fl-block-overlay-header{position:absolute;bottom:0}.fl-block-overlay-active .fl-row-content-wrap{position:relative}.fl-block-overlay-active .fl-row-content{position:relative;z-index:100007!important}.fl-builder-row-resizing .fl-col.fl-block-overlay-active,.fl-builder-row-resizing .fl-module.fl-block-overlay-active{position:static}.fl-col-overlay{border:2px solid #00A0D2;border-radius:4px;bottom:8px;cursor:pointer;left:8px;position:absolute;right:8px;top:8px;z-index:100008}.fl-module-overlay{border:2px solid #00A0D2;border-radius:4px;bottom:4px;cursor:pointer;left:4px;min-height:32px;position:absolute;right:4px;top:4px;z-index:100007}.fl-builder-global-templates-locked .fl-block-overlay-global.fl-module-overlay{cursor:default}.fl-module-adjust-height{padding-bottom:15px;padding-top:15px}.fl-col-bg-overlay .fl-block-overlay-active.fl-module{z-index:100008}.fl-block-overlay-global{background:rgba(255,150,0,0);border:2px solid #F7A407;border-radius:4px}.fl-block-overlay-global .fl-block-overlay-actions{background:#F7A407}.fl-block-overlay-title-global{background:#fff;color:#ff9600!important;font-size:11px;letter-spacing:1px;margin-left:4px;padding:2px 4px;vertical-align:top}.fl-block-overlay-global.fl-row-overlay{background:rgba(255,150,0,0);cursor:pointer;z-index:100007}.fl-builder-global-templates-locked .fl-block-overlay-global.fl-row-overlay{cursor:default}.fl-builder-row-template .fl-block-overlay-global.fl-row-overlay{background:rgba(255,150,0,0);cursor:default;z-index:100006}.fl-block-overlay-global.fl-row-overlay .fl-block-col-resize{display:none}.fl-block-overlay-muted .fl-row-overlay{background:rgba(85,93,102,0);border:2px solid #555D66}.fl-block-overlay-muted .fl-row-overlay .fl-block-overlay-actions{background:#555D66}.fl-block-overlay-muted .fl-row-overlay .fl-block-has-rules{color:#555D66!important}.fl-block-overlay-muted .fl-row-overlay .fl-block-col-resize{display:none}.fl-node-disabled .fl-row-content-wrap,.fl-node-disabled>.fl-col-content{opacity:.3}.fl-block-col-resize{bottom:0!important;position:absolute;top:0!important;width:6px}.fl-block-col-resize-e{cursor:ew-resize;left:auto!important;right:-2px!important}.fl-block-col-resize-w{cursor:ew-resize;left:-7px!important}.fl-block-col-resize-handle-wrap{margin:-4px 0 0 -5px;padding:0 5px;position:absolute;top:50%!important}.fl-block-col-resize-e .fl-block-col-resize-handle-wrap{margin-left:-6px}.fl-block-col-resize-handle{background:#fff;border:2px solid #00A0D2;border-radius:50%;height:12px;width:12px}.fl-node-global .fl-block-col-resize-handle{border-color:#ff9600}.fl-block-col-resize-feedback{color:#333!important;display:none;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:11px!important;position:absolute}.fl-block-col-resize-feedback-left,.fl-block-col-resize-feedback-right{background:#fff;border:1px solid #3ba0ff;padding:2px 4px}.fl-block-col-resize-feedback-left{right:20px;top:-7px}.fl-block-col-resize-feedback-right{left:20px;top:-7px}.fl-builder-has-submenu{position:relative}.fl-builder-has-submenu>ul.fl-builder-submenu{background:#00A0D2;box-shadow:0 0 20px rgba(0,0,0,.2);border-radius:0 4px 4px;display:none;left:0;list-style:none;margin:0;padding:6px 0;position:absolute;text-align:left;top:100%;width:165px;z-index:100008}.fl-builder-has-submenu>ul.fl-builder-submenu li{list-style:none;margin:0;padding:0}.fl-builder-submenu-right ul.fl-builder-submenu{left:auto;right:0}.fl-builder-has-submenu.fl-builder-submenu-open>ul.fl-builder-submenu{display:block}.fl-builder-has-submenu>ul.fl-builder-submenu li a{border-bottom:0 none;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;display:block;line-height:13px;font-size:13px;opacity:.8;filter:alpha(opacity=80);padding:6px 12px;text-decoration:none}.fl-builder-has-submenu>ul.fl-builder-submenu li a:hover{background:#0197C6;color:#fff;opacity:1;filter:alpha(opacity=100);text-decoration:none}.fl-builder-actions-title,.fl-builder-alert-lightbox .fl-lightbox-message,.fl-builder-alert-lightbox .fl-lightbox-message-info{color:#333!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px!important}.fl-builder-has-submenu .fl-builder-submenu .fa,.fl-builder-has-submenu .fl-builder-submenu .far,.fl-builder-has-submenu .fl-builder-submenu .fas{float:right;height:12px!important;line-height:12px!important;position:relative;right:-5px;width:14px!important}.fl-builder-has-submenu .fl-builder-has-submenu .fl-builder-submenu{display:none;left:100%;top:0}.fl-builder-has-submenu .fl-builder-submenu-right.fl-builder-has-submenu .fl-builder-submenu{left:auto;right:100%}.fl-builder-has-submenu .fl-builder-has-submenu:hover .fl-builder-submenu{display:block}.fl-builder-submenu-sep{padding:7px 0!important}.fl-builder-submenu-sep div{border-bottom:1px solid rgba(255,255,255,.4)}.fl-block-col-move,.fl-block-col-move-parent{cursor:move;position:relative}.fl-builder-submenu .fa-arrows-alt{cursor:move;display:none!important}.fl-builder-submenu a:hover .fa-arrows-alt{display:block!important;float:right;line-height:12px!important;height:12px!important}.fl-block-overlay-global ul.fl-builder-submenu{background:#ff9600!important}.fl-block-overlay-global ul.fl-builder-submenu li a:hover{background:#fa3}.fl-builder-actions-lightbox .fl-lightbox{display:block;width:300px;border-radius:4px}.fl-builder-actions-lightbox .fl-lightbox-content-wrap{display:block}.fl-builder-actions-lightbox .fl-builder-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:25px;text-align:center}.fl-builder-actions-title{display:block;margin-bottom:20px}.fl-builder-actions .fl-builder-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin-bottom:7px;min-height:36px}.fl-builder-alert-lightbox{padding:20px;z-index:30000000;top:0;pointer-events:auto}.fl-builder-alert-lightbox .fl-lightbox{max-width:440px;width:auto}.fl-builder-alert-lightbox .fl-lightbox-content-wrap{display:block}.fl-builder-alert-lightbox .fl-lightbox-message,.fl-builder-alert-lightbox .fl-lightbox-message-info{line-height:24px;padding:30px}.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox{max-width:60%}.fl-lightbox-width-slim .fl-compound-field,.fl-lightbox-width-slim .fl-dimension-field-units{max-width:none}.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox-content{padding:20px}.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox-message{padding:10px 20px}.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox-message h1{font-size:20px}.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox-message p{font-size:14px;padding-top:5px}.fl-builder-alert-lightbox.fl-builder-crash-lightbox .link{color:#428bca;text-decoration:underline}.fl-builder-alert-lightbox .fl-lightbox-message-info{padding:0 20px;font-size:14px!important}.fl-builder-alert-lightbox .fl-lightbox-message-info p{line-height:20px;padding:10px 0 0 10px}.fl-builder-alert-lightbox .fl-lightbox-message-info a{font-size:14px}@keyframes fl-builder-content-section-entry{from{transform:translateY(150px) translateX(100px) scale(.3);opacity:0}to{transform:translateY(0) translateX(0) scale(1);opacity:1}}.fl-template-category-select{width:180px!important}.fl-template-selector .fl-builder-settings-section{margin:0 0 10px}.fl-template-selector .fl-builder-settings-fields{height:470px}.fl-template-selector .fl-builder-settings-tab{width:560px}.fl-template-selector .fl-builder-settings-tab-description{font-size:15px!important;margin:0!important;padding:10px 0 25px;text-align:center}.fl-template-preview{float:left;margin:0 25px 30px 0;position:relative;text-align:center;width:170px}.fl-template-preview.fl-last{margin-right:0}.fl-template-image{border:1px solid #d9d9d9;cursor:pointer;margin-bottom:12px;height:164px;overflow:hidden}.fl-template-image:hover{border-color:red}.fl-template-image img{max-height:none;width:100%}.fl-template-preview span{display:block;text-align:center}.fl-user-template-category-name{background:#f2f2f2;border-bottom:3px solid #dfdfdf;border-top:2px solid #dfdfdf;font-weight:700;padding:8px 15px}.fl-user-templates{border-bottom:1px solid #dfdfdf;padding:10px 0 20px}.fl-builder--user-templates-section-content{border-bottom:2px solid #e6eaed;padding:10px}.fl-builder--user-templates-section-content:first-child{padding-top:0}.fl-builder--user-templates-section-content:last-child,.fl-user-templates:last-child{border-bottom:none}.fl-builder--user-templates-section-name{font-weight:700;font-size:16px;color:#333;z-index:9999;padding:15px 10px;margin:0 10px}@keyframes fl-list-item-entry{from{opacity:0;transform:scale(.5) translateY(100px)}to{opacity:1;transform:scale(1) translateY(0)}}.fl-builder--save-new-user-template,.fl-user-template{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px;font-size:16px;font-weight:200;line-height:1.1;padding:10px 20px;color:#6d6d6d}.fl-user-template:hover{cursor:pointer;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.08);text-decoration:none;color:#111;padding-right:68px}.fl-user-template-name{overflow:hidden;text-overflow:ellipsis;-ms-flex:1;flex:1}.fl-user-template-actions{display:none;bottom:0;position:absolute;right:0;top:0}.fl-user-template:hover .fl-user-template-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.fl-user-template-actions a{display:inline-block;padding:15px 0;width:30px}.fl-user-template:hover a:hover i{color:#444!important}.fl-user-templates-message{display:none}.fl-user-template-thumbnail{-ms-flex:0;flex:0;margin-right:20px}.fl-user-template-thumbnail .fl-builder--template-thumbnail{background-size:cover;background-position:center top;width:45px}.fl-user-template-thumbnail .fl-builder--template-thumbnail:hover{box-shadow:none;transform:scale(1);transition-property:none}.fl-builder--save-new-user-template .fl-user-template-thumbnail .fl-builder--template-thumbnail{border-style:dashed;border-width:2px;border-color:#ccd4da}.fl-builder--save-new-user-template .fl-save-control{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex:1;flex:1}.fl-builder--save-new-user-template .fl-save-control input{background:0 0;border:none!important;-ms-flex:1;flex:1;font-size:16px;margin-right:10px;margin-left:-12px;color:#000}.fl-builder--save-new-user-template .fl-save-control input::-webkit-input-placeholder{color:#777}.fl-builder--save-new-user-template .fl-save-control input::-moz-placeholder{color:#777}.fl-builder--save-new-user-template .fl-save-control input:-ms-input-placeholder{color:#777}.fl-builder--save-new-user-template .fl-save-control input:-moz-placeholder{color:#777}@keyframes fl-slide-in-right{from{transform:translateX(50px)}to{transform:translateX(0)}}.fl-builder--save-new-user-template .fl-save-control button{display:none;animation-name:fl-slide-in-right;animation-duration:.25s;background-color:#00a0d2;border:none;padding:0 15px}.fl-save-control-mask{display:none;background:0 0;position:absolute;top:-50px;left:0;bottom:0;right:0;z-index:-1;min-height:80vh}.fl-builder-templates-cta{margin-bottom:20px}.fl-builder-templates-cta p{display:inline-block!important;width:75%!important;font-size:14px!important;line-height:1.5!important;margin-bottom:0!important}.fl-builder-templates-cta .fl-builder-upgrade-button{font-size:13px!important;line-height:13px!important;position:relative;top:8px;left:15px;padding:1px 12px}.fl-builder-settings-message,.fl-builder-settings-message *{font-size:15px!important;line-height:23px!important}.single-fl-builder-template .fl-content{width:100%!important}form.fl-builder-settings{height:100%;margin:0;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.fl-builder-settings-message{padding:20px 25px!important;background:#f2f2f2!important}.fl-builder-preview-loader{position:relative;top:-2px;margin-left:3px}.fl-lightbox-header .fl-builder-preview-loader{margin:0;position:absolute;right:40px;top:15px}@keyframes fl-grab-attention{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}.fl-lightbox-width-slim .fl-form-table{margin:10px 12px 10px 10px!important;width:calc(100% - 40px)}.fl-lightbox-width-slim .fl-form-table th{display:block;position:relative;padding:10px 0 0 12px!important;width:auto!important}.fl-lightbox-width-slim .fl-form-table td{display:block}.fl-lightbox-width-slim .fl-form-table .fl-field[data-type=editor] td:first-child,.fl-lightbox-width-slim .fl-form-table td:first-child{padding-left:0!important}.fl-field-label .fl-field-responsive-toggle,.fl-lightbox-width-slim .fl-field-control-wrapper .fl-field-responsive-toggle{display:none}.fl-lightbox-width-slim .fl-field-label .fl-field-responsive-toggle{display:inline-block;padding:0 5px!important}.fl-lightbox-width-slim input.text-full+.fl-field-description,.fl-lightbox-width-slim select+.fl-field-description{display:block;padding:8px 10px;margin:0}.fl-lightbox-width-slim .fl-builder-settings-fields select{width:100%}.fl-lightbox-width-slim .fl-color-picker{display:-ms-flexbox;display:flex;width:auto}.fl-lightbox-width-slim .fl-color-picker-clear{-ms-flex:0 0 40px;flex:0 0 40px}.fl-lightbox-width-slim .fl-field[data-type=dimension] .fl-field-responsive-setting{width:100%}.fl-lightbox-width-slim .fl-dimension-field-unit-select select{width:auto!important}.fl-lightbox-width-slim .fl-gradient-picker-color-row{width:50%}.fl-lightbox-width-slim .fl-color-picker.fl-gradient-picker-color,.fl-lightbox-width-slim .fl-typography-field-align .fl-button-group-field-option{width:100%}.fl-lightbox-width-slim .fl-typography-field-align .fl-button-group-field-options{float:none}.fl-lightbox-width-slim .mce-menubtn.mce-fixed-width button{width:72px!important}.fl-lightbox-width-slim .fl-builder-settings-tab-description{margin:20px 10px}.fl-lightbox-width-micro .mce-menubtn.mce-fixed-width button{width:38px!important}.fl-lightbox-width-micro .mce-btn[aria-label=Fullscreen],.fl-lightbox-width-micro .mce-btn[aria-label=Blockquote]{display:none}.fl-lightbox-width-micro .mce-toolbar i.mce-ico{width:18px}.fl-lightbox-width-slim .fl-field[data-type=editor] .fl-field-control-wrapper,.fl-lightbox-width-slim .fl-field[data-type=code] .fl-field-control-wrapper{margin-left:-10px;margin-right:-30px}.fl-lightbox .wp-editor-tools{padding-left:6px;padding-right:28px}.fl-lightbox .mce-top-part::before{box-shadow:none!important}.mce-container .mce-stack-layout span{color:initial}.fl-lightbox div.mce-toolbar-grp{background:0 0;border:none}.fl-lightbox div.mce-toolbar-grp>div{padding:0 3px}.fl-lightbox .fl-builder-settings .wp-switch-editor{background:#e7ebef;border:1px solid transparent}.fl-lightbox .html-active .switch-html,.fl-lightbox .quicktags-toolbar,.fl-lightbox .tmce-active .switch-tmce{background:#fff}.fl-lightbox .quicktags-toolbar,.fl-lightbox .wp-editor-container{border:none}.fl-lightbox .mce-toolbar .mce-container-body{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-lightbox-width-slim .mce-toolbar .mce-container-body{-ms-flex-pack:center;justify-content:center}.fl-lightbox textarea.wp-editor-area{line-height:1.5;padding:20px;width:calc(100% - 10px)}.fl-lightbox .wp-core-ui .button,.fl-lightbox .wp-core-ui .button-secondary{border:none;box-shadow:none;background:#e7ebef}.fl-lightbox-width-slim .fl-shadow-field .fl-dimension-field-units{width:auto}.fl-lightbox-width-slim .fl-shadow-field .fl-dimension-field-units input{max-width:none;width:100%!important}.fl-lightbox-width-slim .fl-builder-field-multiple{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.fl-lightbox-width-slim .fl-builder-field-multiple .fl-field-control,.fl-lightbox-width-slim .fl-builder-field-multiple .fl-field-label{width:100%!important}.fl-lightbox-width-slim .fl-builder-field-multiple .fl-form-field-preview-text{max-width:225px}.fl-lightbox-width-slim .fl-builder-field-multiple .fl-builder-field-actions{position:absolute!important;top:0;right:0;width:70px;z-index:1}.fl-lightbox-width-slim .fl-builder-field-actions-single .fl-builder-field-copy{float:right!important;margin-right:5px}.fl-lightbox-width-slim .fl-field[data-type=time] select{width:auto}.fl-builder-settings-tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;overflow:hidden;height:32px;background:#e7ebef}.fl-builder-content-group-select{padding:0 10px 6px;display:none}.fl-builder-content-group-select select{display:block;width:100%;-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;padding:8px 10px;background:url(../img/svg/select-arrow-down-alt2.svg) center right 10px no-repeat #fff!important;border:2px solid #e4e7ea;color:#161B20}select:focus{border-width:2px!important;border-style:solid!important;border-color:#00a0d2!important;outline:0!important}.fl-legacy-settings-tab{background:url(../img/ajax-loader.svg) center center no-repeat;height:100px}.fl-builder-settings-tab:first-child .fl-legacy-settings-tab{background:0 0;height:auto}body .fl-builder-settings-tabs>*{box-sizing:border-box;color:#676F7A!important;fill:#676F7A!important;background:0 0;border:2px solid transparent;border-radius:0;margin:0;outline:0;padding:1px 16px;text-decoration:none!important;font-size:13px;font-weight:400!important;-ms-flex:0 0 auto;flex:0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}body .fl-lightbox-width-slim .fl-builder-settings-tabs>*{-ms-flex:1 1 auto;flex:1 1 auto}body .fl-builder-settings-tabs>.fl-builder-settings-tabs-more{-ms-flex:0 0 60px;flex:0 0 60px;display:none;margin-left:auto;-ms-flex-pack:center;justify-content:center}.fl-builder-settings-tabs-more svg{width:16px;height:auto;margin:auto}.fl-builder-settings-tabs-more g,.fl-builder-settings-tabs-more path,.fl-builder-settings-tabs-more svg{fill:inherit}body .fl-lightbox-has-tab-overflow .fl-builder-settings-tabs-more{display:-ms-flexbox;display:flex}.fl-builder-settings-tabs>:active,.fl-builder-settings-tabs>:hover{top:0;color:#333;background:0 0;border:2px solid transparent}.fl-builder-settings-tabs>:focus{top:0;outline:0;border:2px solid transparent;background:0 0;color:#0086b0;fill:#0086b0}.fl-builder-settings-tabs .fl-active,.fl-builder-settings-tabs-more.fl-contains-active,.fl-builder-settings-tabs-overflow-menu .fl-active{color:#0086b0!important;fill:#0086b0!important;position:relative;background:#fff}.fl-builder-settings-tabs .fl-active.fl-overflowed,.fl-builder-settings-tabs .fl-overflowed{display:none!important}.fl-builder-settings-tabs .error{color:#d03436;padding-right:10px}.fl-builder-settings-tabs .error .fl-error-icon,.fl-builder-settings-tabs-overflow-menu .error .fl-error-icon{background:url(../img/sprite.png) -148px -5px no-repeat;display:inline-block;height:16px;margin-left:7px;position:relative;top:3px;width:16px}.fl-builder-settings-tabs-more.fl-contains-errors{fill:#d03436!important}.fl-builder-settings-tab{display:none;width:auto!important}.fl-builder-settings-tab.fl-active{display:block}.fl-builder-settings-tab-description{background:#e4e7ea;padding:10px 15px;border-radius:4px;margin:20px}.fl-builder-settings-tab-description a{text-decoration:underline!important}.fl-builder-settings-tab-description a:hover{color:#333}.fl-builder-settings-tabs-overflow-menu{display:none;position:absolute;left:0;right:0;border:2px solid #e6eaed;border-top:3px solid #00a0d2;border-radius:4px;background:#fff;z-index:9999;margin:0 6px;padding:10px;-ms-flex-direction:column;flex-direction:column;box-shadow:0 0 20px 2px rgba(0,0,0,.2)}.fl-builder-settings-tabs-overflow-menu:before{bottom:100%;right:20px;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:solid;border-color:rgba(255,255,255,0);border-bottom-color:#00a0d2;border-width:10px;margin-left:-10px}.fl-builder-settings-tabs-overflow-menu>a{display:block;padding:10px 15px;font-size:14px;font-weight:600!important;border:2px solid transparent;border-radius:4px;outline:0}.fl-builder-settings-tabs-overflow-menu>a:hover{background:#e6eaed;text-decoration:none}.fl-builder-settings-tabs-overflow-click-mask{display:none;position:fixed;top:0;bottom:0;left:0;right:0;background:0 0;z-index:11}.fl-form-table{background:none;border:none;width:calc(100% - 35px)}.fl-form-table tbody{border:none}.fl-form-table tr,.fl-form-table tr:nth-child(even){background:0 0}.fl-form-table td,.fl-form-table th{background:0 0!important;border:none!important;font-weight:400!important;text-align:left!important}.fl-form-table th{padding:10px 15px 10px 30px!important;vertical-align:top!important;width:200px!important}.fl-form-table td:first-child{padding-left:30px!important}.fl-form-table th label{color:#333;width:auto;max-width:100%}.fl-form-table th label i{color:grey}.fl-form-table th label i:hover{color:#555}.fl-form-table td{padding:8px 10px}.fl-lightbox-width-slim .fl-form-table td{padding:4px 0 5px}.fl-builder-settings-fields{margin:0;overflow:hidden;position:relative;-ms-flex:1 100%;flex:1 100%;visibility:hidden}.fl-lightbox-header .fl-builder-settings-fields{height:auto;margin:0;position:absolute;right:10px;top:10px}.fl-builder-settings-fields .fl-nanoscroller-content{padding:4px 0 0}.fl-builder-settings-fields .fl-field-control-wrapper{position:relative}.fl-field{animation-duration:.25s;animation-delay:.1s}.fl-builder-settings-fields input[type=date],.fl-builder-settings-fields input[type=email],.fl-builder-settings-fields input[type=file],.fl-builder-settings-fields input[type=number],.fl-builder-settings-fields input[type=password],.fl-builder-settings-fields input[type=search],.fl-builder-settings-fields input[type=tel],.fl-builder-settings-fields input[type=text],.fl-builder-settings-fields input[type=url],.fl-builder-settings-fields select,.fl-builder-settings-fields textarea{background:#fff!important;border-color:transparent!important;border-style:solid;border-width:2px;border-radius:4px!important;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);color:#333!important;display:inline;font-size:13px;height:auto;line-height:15px;margin:1px;outline:0;padding:3px 6px;width:auto;box-sizing:border-box}i.fl-dimension-field-link,i.fl-field-responsive-toggle{line-height:18px!important;cursor:pointer;vertical-align:middle}.fl-builder-settings-fields input[type=date],.fl-builder-settings-fields input[type=email],.fl-builder-settings-fields input[type=file],.fl-builder-settings-fields input[type=number],.fl-builder-settings-fields input[type=password],.fl-builder-settings-fields input[type=search],.fl-builder-settings-fields input[type=tel],.fl-builder-settings-fields input[type=text],.fl-builder-settings-fields input[type=url],.fl-builder-settings-fields select:not(multiple){height:36px!important}.fl-builder-settings-fields select,.fl-builder-settings-fields select[multiple]{height:auto!important}.fl-builder-settings-fields input[type=number]{width:70px}.fl-builder-lightbox .fl-builder-settings-fields input[type=date]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=email]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=file]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=number]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=password]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=search]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=tel]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=text]:focus,.fl-builder-lightbox .fl-builder-settings-fields input[type=url]:focus,.fl-builder-lightbox .fl-builder-settings-fields select:focus,.fl-builder-lightbox .fl-builder-settings-fields textarea:not(.wp-editor-area):focus{border-width:2px!important;border-style:solid!important;border-color:#00a0d2!important;box-shadow:0 2px 4px 0 rgba(0,0,0,.12)!important}.fl-builder-settings-fields ::-webkit-input-placeholder{color:#999!important;font-size:13px}.fl-builder-settings-fields input:-moz-placeholder{color:#999;font-size:13px}.fl-builder-settings-fields ::-moz-placeholder{color:#999!important;font-size:13px}.fl-builder-settings-fields input:-ms-input-placeholder{color:#999;font-size:13px}.fl-builder-settings-fields label{display:inline-block;font-weight:400;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-bottom:3px;font-size:12px}.fl-builder-settings-fields select{-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;color:#000;margin:0 0 2px;padding:2px 10px;padding-right:30px!important;background:url(../img/svg/select-arrow-down-alt2.svg) center right 10px no-repeat #fff!important}.fl-dimension-field-unit input[type=number],.fl-unit-field-inputs input[type=number]{-moz-appearance:textfield}.fl-builder-settings-fields select[multiple]{height:60px;background-image:none!important}.fl-builder-custom-field select,.fl-photo-field select{box-shadow:none;border-color:#e6eaed!important}.fl-builder-settings-section:first-child{border-top:none!important}.fl-builder-settings-section-header{background-color:#e7ebef;border-top:4px solid #e7ebef;cursor:pointer;height:30px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-builder-settings-description{padding:0 10px 10px;margin:0;font-style:italic;opacity:.75}.fl-builder-settings-fields table{margin:20px 0}.fl-builder-settings-fields .fl-builder-settings-title{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:#F5F7F9;color:#353535;padding:2px 10px;margin:0;font-size:13px!important;font-weight:400;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:2px solid transparent;border-radius:0}.fl-builder-settings-fields .fl-builder-settings-title:active,.fl-builder-settings-fields .fl-builder-settings-title:hover{top:0}.fl-builder-settings-fields .fl-builder-settings-title:focus{top:0;border-color:#e0e4ea}.fl-builder-settings-fields .fl-builder-settings-title>svg{height:6px;width:9px;margin-right:7px;transition-property:transform;transition-duration:.15s}.fl-builder-settings-section-collapsed{margin-bottom:4px}.fl-builder-settings-section-collapsed .fl-builder-settings-section-content{display:none}.fl-builder-settings-section-collapsed .fl-builder-settings-title{background:0 0;-ms-flex:1 1 100%;flex:1 1 100%}.fl-builder-settings-section-collapsed .fl-builder-settings-title>svg{transform:rotate(-90deg)}.wp-core-ui h1,.wp-core-ui h2,.wp-core-ui h3,.wp-core-ui h4,.wp-core-ui h5,.wp-core-ui h6,.wp-core-ui p{color:#333;font-family:inherit}.wp-core-ui #media-attachment-date-filters{width:275px}.wp-core-ui input[type=search]::-webkit-input-placeholder{color:#333}.wp-core-ui input[type=search]:-ms-input-placeholder{color:#333}.wp-core-ui input[type=search]::-ms-input-placeholder{color:#333}.wp-core-ui input[type=search]::placeholder{color:#333}.wp-core-ui .submitbox .submitdelete{color:#a00}.wp-core-ui button{font-weight:400}.wp-core-ui input[type=date],.wp-core-ui input[type=email],.wp-core-ui input[type=file],.wp-core-ui input[type=number],.wp-core-ui input[type=password],.wp-core-ui input[type=search],.wp-core-ui input[type=tel],.wp-core-ui input[type=text],.wp-core-ui input[type=url],.wp-core-ui select,.wp-core-ui textarea{background-color:#fff;border-color:#dfdfdf;border-style:solid;border-width:1px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;color:#333;font-weight:400}.wp-core-ui input[type=date]:focus,.wp-core-ui input[type=email]:focus,.wp-core-ui input[type=file]:focus,.wp-core-ui input[type=number]:focus,.wp-core-ui input[type=password]:focus,.wp-core-ui input[type=search]:focus,.wp-core-ui input[type=tel]:focus,.wp-core-ui input[type=text]:focus,.wp-core-ui input[type=url]:focus,.wp-core-ui select:focus,.wp-core-ui textarea:focus{background:0 0;border-color:#aaa}.wp-core-ui input[type=search]{background-image:none;padding:6px}.fl-field-responsive-setting{display:inline-block;width:100%}.fl-field-responsive-setting-medium,.fl-field-responsive-setting-responsive{display:none}.fl-field-control-wrapper i.fl-field-responsive-toggle{padding:9px 0 0;position:absolute;left:-25px}i.fl-field-responsive-toggle{color:grey;display:inline-block;font-size:15px!important;height:auto;text-align:left;width:20px}.fl-builder-settings-fields input.text-full,.fl-builder-settings-fields textarea{width:100%}i.fl-field-responsive-toggle:hover{color:#000}.fl-builder-settings-fields .fl-text-field-add-value{min-width:50%;margin-top:.62em}.fl-field[data-type=shadow] .fl-field-control-wrapper{display:-ms-flexbox;display:flex}.fl-shadow-field .fl-color-picker{margin-bottom:15px;width:100%}.fl-color-picker{cursor:pointer}.fl-color-picker .fl-color-picker-clear{box-sizing:border-box;display:inline-block}.fl-color-picker .fl-color-picker-clear:hover{background-color:#ededed}.colorpicker input{padding:0!important;font-size:11px!important;color:#fff!important;width:29px!important;height:auto!important;background:0 0!important;border:none!important}.colorpicker .colorpicker_hex input{width:45px!important}.fl-gradient-picker-type{display:-ms-flexbox;display:flex;margin-bottom:15px}.fl-gradient-picker-type input{margin:0!important}.fl-gradient-picker-type select{margin-bottom:0!important}.fl-gradient-picker-type-select{margin-right:10px!important}.fl-gradient-picker-colors{display:-ms-flexbox;display:flex}.fl-gradient-picker-color-row{display:-ms-flexbox;display:flex;margin-right:15px}.fl-color-picker.fl-gradient-picker-color,.fl-gradient-picker-color-row:last-child{margin-right:0}.fl-color-picker.fl-gradient-picker-color .fl-color-picker-color{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.fl-gradient-picker .fl-gradient-picker-stop input{border-top-left-radius:0!important;border-bottom-left-radius:0!important;margin:0!important}.fl-field[data-type=dimension] .fl-field-label label{padding-right:35px}.fl-field[data-type=dimension] .fl-field-control-wrapper{display:-ms-flexbox;display:flex}.fl-field[data-type=dimension] .fl-field-description{padding:9px 0 0 5px}.fl-field[data-type=dimension] .fl-field-responsive-setting{width:auto}.fl-dimension-field-units{border-radius:4px;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);display:-ms-flexbox;display:flex;height:36px;margin:1px 1px 20px;position:relative;max-width:350px}.fl-dimension-field-units>*{border-right:1px solid #e6eaed;width:100%}body .fl-dimension-field-units>:last-child{border-right:none!important}body .fl-dimension-field-units>:first-child>input[type]{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}body .fl-dimension-field-units>:last-child>*{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.fl-dimension-field-unit input[type],.fl-dimension-field-units .fl-field-unit-select{box-shadow:none!important;margin:0!important;border-radius:0!important}.fl-dimension-field-unit input{width:100%!important}.fl-dimension-field-unit input::-webkit-inner-spin-button,.fl-dimension-field-unit input::-webkit-outer-spin-button{-webkit-appearance:none}.fl-dimension-field-unit label{padding:5px 0 0;font-size:11px;font-weight:700;color:inherit!important;display:block;text-align:center;opacity:.5}.fl-dimension-field-unit .fl-field-popup-slider{margin-top:27px}i.fl-dimension-field-link{color:grey;font-size:15px!important;height:auto;text-align:left;width:20px}i.fl-dimension-field-link:hover{color:#000}i.fl-dimension-field-link.dashicons-editor-unlink,i.fl-dimension-field-link.dashicons-editor-unlink:hover{color:#0086b0}.fl-field-label .fl-dimension-field-link,.fl-lightbox-width-slim .fl-dimension-field-link{display:none}.fl-lightbox-width-slim .fl-field-label .fl-dimension-field-link{display:inline-block}.fl-field-control-wrapper .fl-dimension-field-link{padding:9px 0 0;left:-50px;position:absolute}.fl-dimension-field-unit-select{display:-ms-flexbox;display:flex;width:auto!important}.fl-field[data-type=unit] .fl-field-control-wrapper{display:-ms-flexbox;display:flex}.fl-field[data-type=unit] .fl-field-description{margin-left:7px!important;padding-top:9px}.fl-field[data-type=unit] .fl-field-responsive-setting{width:auto}.fl-unit-field-inputs{background:0 0;border-radius:4px;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);display:-ms-flexbox;display:flex}.fl-unit-field-inputs .fl-field-unit-select,.fl-unit-field-inputs input[type]{box-shadow:none!important;margin:0!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}.fl-unit-field-inputs .fl-field-unit-select{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.fl-unit-field-inputs input::-webkit-inner-spin-button,.fl-unit-field-inputs input::-webkit-outer-spin-button{-webkit-appearance:none}.fl-unit-field-input{border-right:1px solid #e6eaed!important}body .fl-unit-field-input:last-child{border-right:none!important}body .fl-unit-field-input:last-child>*{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.fl-unit-field-unit-select{display:-ms-flexbox;display:flex;width:auto!important}select.fl-field-unit-select{background-color:#E7EBEF!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}div.fl-field-unit-select{background-color:#E7EBEF!important;padding:9px 7px!important;width:100%}.fl-field-popup-slider{background:#fff;border-radius:4px;box-shadow:0 4px 25px 0 rgba(0,0,0,.18);display:none;margin-top:10px;padding:15px;position:absolute;left:0;right:0;z-index:9999}.fl-field-popup-slider-top{margin-top:0!important;top:-100%;transform:translateY(-10px)}.fl-field-popup-slider-input{background:#E7EBEF;cursor:pointer;height:4px;text-align:left;position:relative;border-radius:3px}.fl-field-popup-slider-input .ui-slider-handle{background:#fff;border:2px solid #3AA4CC;border-radius:100%;cursor:pointer;height:12px;width:12px;position:absolute;top:-6px;margin-left:-7px}.fl-field-popup-slider-input .ui-slider-handle:focus{outline:0}.fl-field-popup-slider-arrow{position:absolute;top:-22px}.fl-field-popup-slider-arrow:after{content:' ';border-color:transparent transparent #fff;border-style:solid;border-width:0 8px 8px;width:0;height:0}.fl-field-popup-slider-top .fl-field-popup-slider-arrow{top:auto;bottom:-24px}.fl-field-popup-slider-top .fl-field-popup-slider-arrow:after{border-bottom-width:0;border-top-width:8px;border-top-color:#fff}input[type=number].fl-field-popup-slider-focus{border:2px solid #00a0d2!important}.fl-font-field{display:-ms-flexbox;display:flex}.fl-font-field label{display:block!important;margin:0!important;padding:0 0 6px 12px}.fl-font-field .fl-font-field-font-wrapper{margin-right:8px;width:70%!important}.fl-font-field .fl-font-field-weight-wrapper{width:30%!important}.fl-compound-field{max-width:350px}.fl-compound-field-section-toggle{background:#E7EAEF;border-radius:4px;border-top:2px solid transparent;border-bottom:2px solid transparent;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:32px;margin-bottom:8px;padding:0 12px}.fl-compound-field-section-toggle:hover{background:#dadfe5}.fl-compound-field-section-toggle .dashicons{font-size:15px;height:15px;margin-right:5px;width:15px}.fl-compound-field-section:last-child .fl-compound-field-section-toggle{margin-bottom:0}.fl-compound-field-section.fl-compound-field-section-visible{padding-bottom:12px}.fl-compound-field-section.fl-compound-field-section-visible:last-child{padding-bottom:0}.fl-compound-field-section-visible .fl-compound-field-section-toggle{background:0 0;border-top:2px solid #E7EBEF;border-radius:0}.fl-compound-field-section-visible .fl-compound-field-section-toggle:hover{background:0 0}.fl-compound-field-section-visible .fl-compound-field-section-toggle .dashicons:before{content:'\f347'}.fl-compound-field-row{display:none;padding-bottom:12px}.fl-compound-field-section-visible .fl-compound-field-row{display:-ms-flexbox;display:flex}.fl-compound-field-label{display:block!important;margin:0!important;padding:0 0 6px 12px}.fl-compound-field-label-bottom{padding:6px 0 0 12px}.fl-compound-field-label .fl-dimension-field-link{display:inline-block;padding:0 0 0 2px;position:relative;left:auto;top:-1px}.fl-compound-field-setting{padding-right:8px;width:100%}.fl-compound-field-setting:last-child{padding-right:0}.fl-compound-field-setting select{margin:0!important;width:100%}.fl-compound-field-setting .fl-unit-field-input input{width:100%!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}.fl-compound-field-setting .fl-unit-field-input{width:50%!important}.fl-compound-field-setting .fl-unit-field-input select.fl-field-unit-select{background-position:center right 2px!important;padding:2px 5px!important;width:100%;font-size:11px}.fl-typography-field .fl-font-field-font-wrapper{margin-right:8px!important}.fl-typography-field-spacing{width:calc(33.33% - 8px)}.fl-typography-field-transform{width:66.66%}.fl-typography-field-transform .fl-button-group-field-options{float:none}.fl-typography-field-transform .fl-button-group-field-option{width:100%;padding:0 7px}.fl-typography-field .fl-shadow-field{display:-ms-flexbox;display:flex}.fl-typography-field .fl-shadow-field .fl-color-picker{margin:0 8px 0 0;width:calc(33.33% - 8px)}.fl-typography-field .fl-shadow-field .fl-dimension-field-units{margin-left:0;margin-top:0;margin-right:0;width:66.66%}.fl-button-group-field-options{background:#E7EBEF;border-radius:4px;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);display:-ms-flexbox;display:flex;float:left;height:36px;overflow:hidden}.fl-button-group-field-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0 5px;border-radius:0;border:2px solid transparent;background:0 0}.fl-button-group-field-option:hover{top:0;background-color:transparent;color:#000;border:2px solid transparent}.fl-button-group-field-option:focus{top:0;background-color:transparent;border:2px solid #00a0d2;color:#333}.fl-button-group-field-option:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.fl-button-group-field-option:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.fl-button-group-field-option[data-selected="1"]{background-color:#fff;color:#000}.fl-button-group-field-option i{color:#6B6E75}.fl-button-group-field-option:hover i{color:#333}.fl-compound-field-cell{width:50%;display:block;float:left;padding-top:13px}.fl-compound-field-cell:first-child{padding-right:4px}.fl-compound-field-cell:last-child{padding-left:4px}.fl-compound-field-cell label{padding:5px 0 0;font-size:11px;font-weight:700;color:inherit!important;display:block;text-align:center;opacity:.5}.fl-shape-transform-field .fl-compound-field-row{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-shape-transform-field .fl-compound-field-row>*{width:auto;-ms-flex:1 1 auto;flex:1 1 auto}.fl-shape-transform-field .fl-compound-field-row>:first-child{-ms-flex:0 0 auto;flex:0 0 auto}.fl-shape-transform-field .fl-shape-orientation-controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-shape-transform-field .fl-shape-orientation-controls>*{-ms-flex:0 0 auto;flex:0 0 auto}.fl-shape-transform-field .fl-shape-orientation-controls .fl-button-group-field>*,.fl-shape-transform-field .fl-shape-orientation-controls .fl-button-group-field>* button{border-radius:0}.fl-shape-orientation-controls .fl-button-group-field:first-child>*,.fl-shape-orientation-controls .fl-button-group-field:first-child>* button{border-top-left-radius:4px;border-bottom-left-radius:4px}.fl-shape-orientation-controls .fl-button-group-field:last-child>*,.fl-shape-orientation-controls .fl-button-group-field:last-child>* button{border-top-right-radius:4px;border-bottom-right-radius:4px}.fl-builder-custom-field{background:#fff;border:2px solid transparent;border-radius:4px;padding:7px 10px;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);min-height:36px;box-sizing:border-box}.fl-builder-field-multiple .fl-builder-custom-field{cursor:move}.fl-builder-custom-field a{color:#21759b!important;text-decoration:underline!important}.fl-builder-custom-field a:hover{color:#d54e21!important}.fl-builder-custom-field label.error{margin-top:5px}.fl-photo-field .fl-photo-preview{display:-ms-flexbox;display:flex}.fl-photo-field .fl-photo-select,.fl-photo-field.fl-photo-empty .fl-photo-preview{display:none}.fl-photo-field.fl-photo-empty .fl-photo-select{display:block}.fl-photo-field .fl-photo-preview-img{line-height:0;margin:5px 0}.fl-photo-field .fl-photo-preview-img img{max-width:60px}.fl-photo-field .fl-photo-preview select{margin:8px 0 8px 10px;width:calc(100% - 10px)}.fl-photo-field.fl-photo-no-attachment .fl-photo-preview select{display:none}.fl-photo-field .fl-photo-preview-filename{display:none;font-size:13px;font-weight:700;margin:5px 0 9px 11px}.fl-photo-field.fl-photo-no-attachment .fl-photo-preview-filename{display:inline-block;word-break:break-all}.fl-multiple-photos-field .fl-multiple-photos-select,.fl-multiple-photos-field.fl-multiple-photos-empty .fl-multiple-photos-add,.fl-multiple-photos-field.fl-multiple-photos-empty .fl-multiple-photos-count,.fl-multiple-photos-field.fl-multiple-photos-empty .fl-multiple-photos-edit,.fl-multiple-photos-lightbox .gallery-settings,.fl-photo-field.fl-photo-no-attachment .fl-photo-edit{display:none}.fl-photo-field .fl-photo-edit{margin:0 0 0 11px}.fl-photo-field .fl-photo-remove,.fl-photo-field .fl-photo-replace{margin:0 0 0 8px}.fl-builder-edit .media-modal{z-index:9999991}.fl-builder-edit .media-modal-backdrop{z-index:999999}.fl-builder-edit .media-frame{-webkit-backface-visibility:hidden;backface-visibility:hidden}.fl-builder-edit .media-modal-content h1{font-family:inherit}.fl-builder-edit form#wp-link,.popover[class*=tour-],ul.as-list{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.fl-builder-edit .media-modal-content .thumbnail{padding:0;border:none;border-radius:0}.fl-builder-edit .media-modal-content .attachment-preview .thumbnail{margin-bottom:0}.fl-builder-edit .media-modal-content .attachment-preview .thumbnail img{max-width:none}.fl-builder-edit button.media-modal-close{position:absolute;box-shadow:none;-webkit-box-shadow:none}.fl-builder-edit .media-frame.hide-menu{visibility:visible}span.select2-container.select2-container--open{z-index:9999999}.fl-multiple-photos-field .fl-multiple-photos-add{margin:0 0 0 8px}.fl-multiple-photos-field.fl-multiple-photos-empty .fl-multiple-photos-select{display:inline}.fl-multiple-photos-count{font-weight:700;margin-bottom:3px}.fl-video-field .fl-video-select,.fl-video-field.fl-video-empty .fl-video-preview{display:none}.fl-video-field.fl-video-empty .fl-video-select{display:block}.fl-video-field .fl-video-preview-img{float:left;line-height:0;margin:5px 0}.fl-video-field .fl-video-preview-img img{max-width:60px}.fl-video-field .fl-video-preview-img .dashicons.dashicons-media-video{display:block;font-size:60px;height:60px;line-height:60px;width:60px}.fl-video-field .fl-video-preview-filename{display:inline-block;font-size:14px;font-weight:700;margin:7px 0 5px 11px}.fl-video-field .fl-video-remove,.fl-video-field .fl-video-replace{margin:0 0 0 11px}.fl-multiple-audios-field .fl-multiple-audios-select,.fl-multiple-audios-field.fl-multiple-audios-empty .fl-multiple-audios-add,.fl-multiple-audios-field.fl-multiple-audios-empty .fl-multiple-audios-edit{display:none}.fl-multiple-audios-field.fl-multiple-audios-empty .fl-multiple-audios-select{display:block}.fl-multiple-audios-field .fl-multiple-audios-add{margin:0 0 0 8px}.fl-icon-field .fl-icon-select,.fl-icon-field.fl-icon-empty .fl-icon-preview{display:none}.fl-icon-field.fl-icon-empty .fl-icon-select{display:block}.fl-icon-field .fl-icon-preview i{display:inline-block;font-size:28px;margin:10px 10px 9px;vertical-align:middle}.fl-icon-field .fl-icon-remove{margin:0 0 0 8px}.fl-builder-hidden-editor{display:none}.fl-builder-settings .wp-switch-editor{border-radius:0;color:#333;margin-top:2px}.fl-builder-settings .mce-toolbar .mce-btn-group .mce-btn{margin:2px 0}.fl-builder-settings .mce-menubtn.mce-fixed-width button{width:100px}.fl-builder-settings .mce-menubtn.mce-fixed-width span{width:100%}.mce-close:active,.mce-close:hover,.mce-toolbar .mce-btn button:active,.mce-toolbar .mce-btn button:hover,.mce-window .mce-btn button:active,.mce-window .mce-btn button:hover{background:0 0;border:none}.wp-core-ui .quicktags-toolbar input.button.button-small{margin:1px!important}.wp-editor-container textarea.wp-editor-area{background:0 0;border:none;padding:10px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.fl-builder-edit form#wp-link{color:#000;font-size:13px}.fl-builder-edit form#wp-link #link-options label{display:block;margin-bottom:2px}.fl-builder-edit form#wp-link #link-options label span{padding-right:10px;vertical-align:middle}.fl-builder-edit form#wp-link #link-options input[type=text]{display:inline-block;height:auto;margin:5px 0 0;padding:3px 5px;width:80%}.fl-builder-edit form#wp-link .query-results{top:225px}.fl-code-field{border:1px solid #E6E6E6;border-left:none}.ace_editor,.ace_editor *{font-family:Monaco,Menlo,"Ubuntu Mono","Droid Sans Mono",Consolas,monospace!important;font-size:12px!important;font-weight:400!important;letter-spacing:0!important}.fl-layout-field-option{border:2px solid #d9d9d9;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;cursor:pointer;float:left;line-height:0;max-width:23%;margin:0 1% 2%;padding:5px}.fl-layout-field-option-selected,.fl-layout-field-option:hover{border-color:red}.fl-layout-field-option img{max-width:100%}.fl-link-field .fl-link-field-input-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.fl-link-field-input{width:auto!important;-ms-flex:1 1 100%;flex:1 1 100%}.fl-link-field .fl-link-field-input-wrap button{-ms-flex:0 0 0%;flex:0 0 0%;height:36px;margin:1px 1px 1px 5px}.fl-link-field-options-wrap{padding:7px 0 0 12px}.fl-link-field-options-wrap label{margin-right:7px}.fl-link-field-options-wrap span{font-size:11px;font-weight:700;color:inherit!important;text-align:center;opacity:.5}.fl-link-field-search{display:none;border:2px solid #e6eaed;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin:4px 0 0;padding:10px}.fl-link-field-search-title{display:block;margin:0 0 3px 2px}.fl-link-field-search-cancel{margin-top:6px}.fl-link-field-search input{box-shadow:none!important;width:100%!important;padding:3px 9px!important}.fl-link-field-search #as-original-link-search{width:100%}.fl-field-connections-toggle{padding:10px 0}.fl-field[data-type=editor] .fl-field-connections-toggle{-ms-flex-align:start;align-items:flex-start}.fl-field[data-type=link] .fl-field-connections-toggle{height:24px;margin-top:1px;-ms-flex-align:start;align-items:flex-start}.fl-field[data-type=link] .fl-field-connection{bottom:25px}.fl-field-connections-menu[data-field=fl-field-text]{margin-top:30px}.fl-help-tooltip{display:inline-block;position:relative}.fl-lightbox-width-slim .fl-help-tooltip{position:static}.fl-help-tooltip-icon{color:#999!important;cursor:pointer;font-size:15px!important;padding:5px;vertical-align:middle}.fl-help-tooltip-text{box-sizing:border-box;background:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ccc;-moz-box-shadow:0 0 5px #ccc;-webkit-box-shadow:0 0 5px #ccc;display:none;font-weight:400;left:23px;padding:10px 13px;position:absolute;top:-6px;width:250px;z-index:1000;border-radius:4px}.fl-lightbox-width-slim .fl-help-tooltip-text{top:30px;left:0;width:100%}.fl-field-control .fl-form-field{margin-bottom:0}.fl-form-field[data-preview-text=icon]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.fl-form-field-preview-text i{display:inline-block;font-size:18px;line-height:22px;margin-right:10px}.fl-builder-field-actions{padding-left:0!important;padding-right:0!important;text-align:center;width:85px}.fl-builder-field-actions i{color:#999!important;cursor:pointer;font-size:13px!important;line-height:29px!important;width:16px}.fl-builder-field-actions i:hover{color:#000!important}.fl-builder-field-actions i.fl-builder-field-copy,.fl-builder-field-actions i.fl-builder-field-delete{margin-left:5px}.fl-builder-field-actions i.fl-builder-field-move{cursor:move}.fl-builder-field-dd-helper{background:#ccc;height:30px!important;float:left;width:130px!important}.fl-builder-field-dd-zone{border:1px dashed #ccc;height:30px}.fl-builder-field-actions-single .fl-builder-field-delete,.fl-builder-field-actions-single .fl-builder-field-move{display:none!important}.fl-builder-field-multiple .fl-builder-field-actions,.fl-builder-field-multiple .fl-field-control,.fl-builder-field-multiple .fl-field-label{padding-top:2px!important;padding-bottom:2px!important}.fl-builder-field-multiple .fl-builder-field-actions{min-width:70px!important}.fl-builder-field-multiple[data-field=icons] .fl-builder-field-actions{width:70px!important}.fl-builder-field-multiple.ui-sortable-helper .fl-field-control{width:60%}.fl-builder-field-multiple.ui-sortable-helper .fl-builder-field-actions{display:none}.fl-builder-widget-settings input{display:inline-block!important;margin:5px 10px 8px!important}.fl-builder-lightbox-loading{background:url(../img/ajax-loader.svg) center center no-repeat;height:100px}.fl-builder-settings .error,.fl-builder-settings input.error{color:#d03436!important}.fl-builder-settings label.error,.fl-builder-settings p.error{color:#d03436;display:block;margin-top:5px}.fl-builder-settings .fl-form-table .fl-field-description{color:#464646;font-style:normal;margin-left:2px}.fl-lightbox .fl-field-connection{right:-1px}.fl-lightbox .fl-field-connection-content{border:2px solid transparent!important;background:#e7ebef!important}.fl-field-connection-content .fl-field-connection-label{color:#676f7a!important}.fl-field-connections-toggle{pointer-events:none;width:20px;right:-25px}.has-scrollbar .fl-field-connections-toggle{right:-22px}.fl-lightbox-width-slim tr[data-type=code] .fl-field-connections-toggle{right:10px}.fl-lightbox-width-slim .fl-code-field{width:90%}.fl-field-connections-toggle-open{transform:none!important}.fl-field-connections-toggle i{pointer-events:auto;color:#abb1ba;font-size:13px!important;transition-property:transform;transition-duration:.15s}.fl-field-connections-toggle-open i{transform:rotate(-45deg)}ul.as-selections{background-color:#fff;border:none;border-radius:4px;box-shadow:none;color:#333;font-size:12px;height:auto;line-height:15px;margin:1px;outline:0;padding:3px;width:auto}ul.as-selections.loading{background:url(../img/ajax-loader-small.svg) 98% center no-repeat}ul.as-selections li.as-selection-item{background:#d4eaf6;border:none;font-size:11px;line-height:14px;padding:8px 15px;border-radius:4px;margin:2px}ul.as-selections li.as-selection-item.blur{background:#f4f4f4}ul.as-selections li.as-selection-item a.as-close{line-height:12px}ul.as-selections li.as-original{margin:0}ul.as-selections li.as-original input{height:auto;font-size:12px;margin:0;padding:0;box-shadow:none}ul.as-list{margin:0;font-size:13px;color:#000;background-color:#fff;background-color:rgba(255,255,255,.95);z-index:2;box-shadow:0 0 10px rgba(0,0,0,.1);border:none;border:1px solid #dfdfdf;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}li.as-message,li.as-result-item{border:none}li.as-result-item.active{background:#e5e5e5;border-radius:0;color:#333;text-shadow:none}li.as-result-item em{background:0 0!important;color:#333!important;font-size:12px;padding:0!important;font-weight:700}.fl-custom-query-filter{display:none}.fl-custom-query .fl-field[data-type=suggest] select{margin-bottom:5px;width:100%}.fl-builder-service-settings{position:relative}.fl-builder-service-error{color:red!important;padding:15px 0 0}.fl-builder-service-account-delete{color:red!important;margin-left:10px;position:relative;top:2px}.fl-lightbox-width-slim .fl-builder-service-account-delete{display:block;padding-top:7px}#fl-field-visibility_user_capability .fl-field-description,.fl-builder-service-connect-row .fl-field-description{background:#f0f0f0;color:#333!important;display:block;float:none;margin:10px 0 0;padding:10px}#fl-field-visibility_user_capability .fl-field-description a,.fl-builder-service-connect-row .fl-field-description a{color:#21759b!important;text-decoration:underline!important}.fl-ordering-field-option{background:#fff;border:1px solid #dfdfdf;border-radius:3px;cursor:move;margin-bottom:5px;padding:5px 10px}.fl-ordering-field-option .fa{color:#ccc;float:right;line-height:16px}#tiptip_holder{z-index:1000000}#tiptip_holder.tip_top #tiptip_arrow_inner{border-top-color:#333}#tiptip_holder.tip_bottom #tiptip_arrow_inner{border-bottom-color:#333}#tiptip_holder.tip_right #tiptip_arrow_inner{border-right-color:#333}#tiptip_holder.tip_left #tiptip_arrow_inner{border-left-color:#333}#tiptip_content{background:#333;box-shadow:none}.fl-builder-getting-started-video{line-height:0!important;padding:10px}.fl-builder-getting-started-video iframe{border:none;height:326px;width:100%}.fl-builder-tour-actions .fl-builder-actions-title{font-size:14px!important;line-height:19px}.fl-builder-tour-mask{bottom:0;left:0;position:fixed;right:0;top:0;z-index:100000000}.fl-builder-tour-dimmed{background:rgba(0,0,0,.7);bottom:0;left:0;position:absolute;right:0;top:0}body>.fl-builder-tour-dimmed{position:fixed}.tour-backdrop{z-index:110000}.popover[class*=tour-]{border:1px solid #ccc;border-radius:0;box-shadow:0 0 40px rgba(0,0,0,.3);color:#666;font-size:13px;font-weight:400;line-height:18px;max-width:none;padding:0;width:300px;z-index:100000001}.popover[class*=tour-].bottom>.arrow{border-bottom-color:#ccc}.popover[class*=tour-].bottom>.arrow:after{border-bottom-color:#f7f7f7}.popover[class*=tour-] .popover-title{border-radius:0;color:#333;letter-spacing:normal;text-transform:none}.popover[class*=tour-] .fa-times{color:#b3b3b3;cursor:pointer;font-size:16px;padding:5px;position:absolute;right:3px;top:2px}.popover[class*=tour-] .fa-times:hover{color:#666}.popover[class*=tour-] .popover-content{border-bottom:1px solid #d9d9d9;padding:13px 15px}.popover[class*=tour-] .fl-builder-tour-next{display:block;float:none;width:100%}.popover-navigation button{min-height:36px}.fl-builder-shortcode-mask-wrap{position:relative}.fl-builder-shortcode-mask{bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fl-builder--search{border:2px solid transparent;position:relative;padding:0;width:54px;transition-property:width;transition-delay:.1s;transition-duration:.15s}.fl-builder--search.is-expanded{border:2px solid #00A0D0}.fl-builder--search input[type=text],.fl-builder--search input[type=text]:focus{background-color:transparent;border:none!important;box-sizing:border-box;width:100%;font-size:16px;text-align:center}.fl-builder--search:before{display:-ms-flexbox;display:flex;top:0;left:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:"\f002";font:normal normal normal 14px/1 Font Awesome\ 5 Free;text-align:center;width:100%;height:100%;position:absolute;pointer-events:none;color:rgba(128,128,128,.6);font-size:17px;opacity:1;transition-property:opacity;transition-duration:.15s}.fl-builder--main-menu-panel,.fl-builder-ui-keyboard-shortcuts{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important}.fl-builder--search.has-text:before,.fl-builder--search.is-expanded:before{opacity:0}.fl-builder--search input::-webkit-input-placeholder{color:rgba(128,128,128,0)!important;transition:color .25s}.fl-builder--search input:focus::-webkit-input-placeholder{color:rgba(128,128,128,.4)!important}.fl-builder--search .search-label{cursor:text}.fl-builder--search .search-clear{display:none;padding:10px 10px 10px 30px;color:#a7a7a7;font-size:12px;position:absolute;right:0;top:0;background-color:#eff1f2;background:linear-gradient(to left,#e4e7ea,#e4e7ea 75%,rgba(228,231,234,0))}.fl-builder--search.has-text .search-clear,.fl-builder--search.is-expanded input{display:inline-block}.fl-builder--search:hover .search-clear{color:#888;background-color:#eff1f2;background:linear-gradient(to left,#dadfe5,#dadfe5 75%,rgba(218,223,229,0))}.fl-builder--search.is-expanded{width:246px}@keyframes fl-builder-show-menu-item{from{transform:translateY(10px) scale(.8);opacity:0}to{transform:translateX(0) translateY(0) scale(1);opacity:1}}.fl-builder--main-menu-panel{display:none;box-sizing:border-box;position:fixed;top:calc(45px + 10px);left:10px;width:360px;color:#222;max-height:calc(100% - 66px);border-radius:4px;background:#fff;border:none;border-top:3px solid #00a0d2;box-shadow:0 11px 45px 8px rgba(0,0,0,.1);font-size:14px!important;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10000009;pointer-events:auto}.fl-builder--main-menu-panel.is-showing{display:-ms-flexbox;display:flex}.fl-builder--main-menu-panel:before,.fl-theme-builder-preview-select-open .fl-theme-builder-preview-select-items:before{bottom:100%;right:6px;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:solid;border-color:rgba(255,255,255,0);border-bottom-color:#00a0d2;border-width:13px;margin-left:-13px}.fl-builder--main-menu-panel-views{-ms-flex:1 1 100%;flex:1 1 100%;overflow:auto}.fl-builder--main-menu-panel-mask{display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000119}.fl-builder--main-menu-panel .fl-builder--tabs{padding-left:20px;padding-top:15px}.fl-builder--main-menu-panel-view{display:none}.fl-builder--main-menu-panel-view.is-showing{display:block}.fl-builder--main-menu-panel-view-title{font-size:24px;font-weight:600;padding:25px 22px 0;line-height:1;white-space:nowrap}.fl-builder--main-menu-panel-view-title .title-accessory{float:right;color:#b1b1b1}.fl-builder--main-menu-panel-view-title .title-accessory>i{font-size:20px!important;width:25px!important}.fl-builder--main-menu-panel-view-title .title-accessory>i:hover{color:#222}.fl-builder--main-menu-panel-view-title .pop-view{padding:10px;margin-left:-10px;opacity:.5;font-size:25px;font-weight:400;cursor:pointer;background:0 0;outline:0;border:none;color:inherit}.fl-builder--main-menu-panel-view-title .pop-view:focus{outline:0;top:0;background:#E5EAED!important}.fl-builder--menu-item:before{display:block;content:"";float:none;clear:both}.fl-builder--menu-item{color:inherit;text-align:left;box-sizing:border-box;display:block;padding:10px 15px;margin:0 10px;width:calc(100% - 20px);background:0 0;border:none;border-radius:4px;font-size:14px;line-height:1.1;cursor:pointer;opacity:1;text-transform:none}.fl-builder--menu-item .menu-view.view-revisions{opacity:.5;padding-left:5px}.fl-builder--menu-item .menu-event.event-showGlobalSettings,.fl-builder--menu-item .menu-event.event-showLayoutSettings{color:#6bc373;padding-left:5px}.fl-builder--menu-item:hover{background:#eaf1f8;border:none;text-decoration:none;color:#000}.fl-builder--selector-menu .fl-builder--menu-item:hover{background:#fff}.fl-builder--menu-item-accessory{float:right;text-align:center;display:inline-block;min-width:40px;font-size:14px}.fl-builder--menu-item-accessory.view-arrow{font-size:18px}.fl-builder--menu{padding:0;margin:20px 0}.fl-builder--menu hr{margin:8px 0;background:#e6eaed!important;height:1px;border:none}.fl-builder--menu .fl-builder-video-wrap{padding:0 10px 10px}.fl-revision-list-item{display:-ms-flexbox;display:flex}.fl-revision-list-item-text{padding-left:15px}.fl-revision-list-item-date{padding-bottom:5px}.fl-builder--revision-actions{display:none;position:fixed;top:4px;left:4px;z-index:100008;padding:4px 4px 6px;-ms-flex-pack:center;justify-content:center;background:#fff;border-radius:4px}.fl-builder--revision-actions *{margin-right:5px}.fl-builder--revision-actions :last-child{margin:0}.fl-builder--menu-item[data-event=noRevisionsMessage]:hover{background:0 0;box-shadow:none;cursor:default}.fl-no-revisions-message-title{font-weight:700;margin-bottom:10px}.fl-no-revisions-message-text{line-height:22px}.fl-builder-module-placeholder-message{border:1px dashed #ccc;overflow:hidden;padding:20px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.fl-field-connections-menu{z-index:999999}.fl-field[data-type=editor] .fl-field-connections-toggle{right:5px!important}.fl-field-connections-inline-toggle{display:inline;color:#9a9b9c;margin-left:6px}.fl-field-connections-inline-toggle i{transition-property:transform;transition-duration:.15s}.fl-field-connections-inline-toggle.fl-field-connections-toggle-open i{transform:rotate(45deg)}.fl-builder-add-ultimate-presets-button,.fl-builder-add-ultimate-rows-button,.fl-builder-pp-add-template-button,.pp-preview-button,.uabb-live-preview-button{display:none!important}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none;background:0 0;transition-property:background;transition-duration:.15s}.ui-resizable-autohide .ui-resizable-handle,.ui-resizable-disabled .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-ne,.ui-resizable-nw,.ui-resizable-se,.ui-resizable-sw{width:12px;height:12px}.ui-resizable-se{cursor:se-resize;right:-4px;bottom:-4px}.ui-resizable-sw{cursor:sw-resize;left:-4px;bottom:-4px}.ui-resizable-nw{cursor:nw-resize;left:-4px;top:-4px}.ui-resizable-ne{cursor:ne-resize;right:-4px;top:-4px}.fl-builder-resizable-iframe-fix{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100000000}.fl-builder-panel .ui-resizable-handle:active,.fl-builder-panel .ui-resizable-handle:hover,.fl-lightbox .ui-resizable-handle:active,.fl-lightbox .ui-resizable-handle:hover{background:#00a0d2}.fl-builder-panel .ui-resizable-n,.fl-builder-panel .ui-resizable-s,.fl-lightbox .ui-resizable-n,.fl-lightbox .ui-resizable-s{height:6px}.fl-builder-panel .ui-resizable-n,.fl-lightbox .ui-resizable-n{top:-3px}.fl-builder-panel .ui-resizable-s,.fl-lightbox .ui-resizable-s{bottom:-3px}.fl-builder-panel .ui-resizable-e,.fl-builder-panel .ui-resizable-w,.fl-lightbox .ui-resizable-e,.fl-lightbox .ui-resizable-w{width:6px}.fl-builder-panel .ui-resizable-e,.fl-lightbox .ui-resizable-e{right:-3px}.fl-builder-panel .ui-resizable-w,.fl-lightbox .ui-resizable-w{left:-3px}.fl-lightbox .ui-resizable-ne,.fl-lightbox .ui-resizable-nw,.fl-lightbox .ui-resizable-se,.fl-lightbox .ui-resizable-sw{background:0 0;border:6px solid transparent}.fl-lightbox .ui-resizable-ne:active,.fl-lightbox .ui-resizable-ne:hover,.fl-lightbox .ui-resizable-nw:active,.fl-lightbox .ui-resizable-nw:hover,.fl-lightbox .ui-resizable-se:active,.fl-lightbox .ui-resizable-se:hover,.fl-lightbox .ui-resizable-sw:active,.fl-lightbox .ui-resizable-sw:hover{background:0 0;border-color:#00a0d2}.fl-lightbox .ui-resizable-ne{border-bottom:none;border-left:none;border-top-right-radius:4px}.fl-lightbox .ui-resizable-nw{border-bottom:none;border-right:none;border-top-left-radius:4px}.fl-lightbox .ui-resizable-se{border-top:none;border-left:none;border-bottom-right-radius:4px}.fl-lightbox .ui-resizable-sw{border-top:none;border-right:none;border-bottom-left-radius:4px}.fl-builder-ui-keyboard-shortcuts{display:none;position:fixed;top:0;left:0;bottom:0;right:0;z-index:999999;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background:rgba(50,50,50,.88);font-size:15px;line-height:1.3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fl-builder-ui-keyboard-shortcuts.is-showing{display:-ms-flexbox;display:flex}.fl-builder-ui-keyboard-shortcuts-content{box-sizing:border-box;width:500px;background:#f5f7f9;border-radius:4px;padding:30px 0 0;box-shadow:0 10px 30px rgba(0,0,0,.15)}.fl-builder-ui-keyboard-shortcut-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:12px 40px}.fl-builder-ui-keyboard-shortcut-item:nth-child(even){background:#eef2f5}.fl-builder-ui-shortcut-keycode{margin-left:auto;text-transform:uppercase;letter-spacing:2px}.fl-builder-ui-keyboard-shortcust-footer{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;padding:10px}.dismiss-shortcut-ui{padding:10px;border-radius:4px;background:#fff;color:#000;font-size:14px;border:2px solid #fff}.dismiss-shortcut-ui:focus,.dismiss-shortcut-ui:hover{top:0;color:#000;background:#eef2f5;border:2px solid #eef2f5}.fl-builder-ui-skin--dark .fl-builder--main-menu-panel,.fl-builder-ui-skin--dark .fl-builder--preview-actions,.fl-builder-ui-skin--dark .fl-builder--search-results-panel,.fl-builder-ui-skin--dark .fl-builder-panel,.fl-builder-ui-skin--dark .fl-lightbox,body.fl-builder-ui-skin--dark .fl-builder-bar .fl-builder-bar-content{background:#23282d;color:#b4b9be;border-color:#1d1d1d}.fl-builder-ui-skin--dark .fl-builder--panel-header{color:#b4b9be;border-bottom-color:#1d1d1d;border-top-color:#1d1d1d}.fl-builder-ui-skin--dark .fl-builder-panel.fl-builder-ui-pinned .fl-builder--panel-header{border-top-color:#1d2227}.fl-builder-ui-skin--dark .fl-builder--main-menu-panel:before{border-bottom-color:#1d1d1d}.fl-builder-ui-skin--dark .fl-builder--panel-arrow polygon{fill:#1d1d1d}.fl-builder-ui-skin--dark .fl-builder-panel-search .fl-builder-panel-search-input{background:#24282e}.fl-builder-ui-skin--dark .fl-responsive-preview-content{background:#131619}.fl-builder-ui-skin--dark .fl-form-table th{background:#23282d!important;color:#7d8690}.fl-builder-ui-skin--dark .fl-builder--preview-actions .device-icons,.fl-builder-ui-skin--dark .fl-builder-button{background:#2c333a}.fl-builder-ui-skin--dark .fl-builder-button:focus{background:#131a22}.fl-builder-ui-skin--dark .fl-builder-button.fl-builder-button-primary{color:#fff!important;fill:#fff!important;background:#00A0D2}.fl-builder-ui-skin--dark .fl-builder-button.fl-builder-buy-button,.fl-builder-ui-skin--dark .fl-builder-button.fl-builder-feedback-button,.fl-builder-ui-skin--dark .fl-builder-button.fl-builder-upgrade-button{background-color:#F7A407;color:#fff!important}.fl-builder-ui-skin--dark .fl-builder-button.fl-builder-button-silent:focus{border:2px solid #00a0d2!important}.fl-builder-ui-skin--dark .fl-builder-content-panel--button:hover,.fl-builder-ui-skin--dark .fl-builder-content-panel-button{color:#00A0D2!important}.fl-builder-ui-skin--dark .fl-builder--menu>a:hover,.fl-builder-ui-skin--dark .fl-builder--menu>button:hover{background:#101215!important}.fl-builder-ui-skin--dark .fl-builder--menu>a:focus,.fl-builder-ui-skin--dark .fl-builder--menu>button:focus{background:#101215!important;color:#fff!important}.fl-builder-ui-skin--dark .fl-builder-bar-title{border-color:#101215}.fl-builder-ui-skin--dark .fl-builder-bar-title:hover{background-color:#181b1f}.fl-builder-simple.fl-builder-ui-skin--dark .fl-builder-bar-title:hover{background-color:transparent}.fl-builder-ui-skin--dark .fl-builder-layout-title{color:#c6cdd6}.fl-builder-ui-skin--dark .fl-builder-bar-title-caret i,.fl-builder-ui-skin--dark .fl-builder-layout-pretitle,.fl-builder-ui-skin--dark .fl-theme-builder-preview-select .fl-theme-builder-preview-select-title{color:#7d8690}.fl-builder-ui-skin--dark button.fl-builder-button.fl-builder-bar-title-caret:focus{background-color:#101215!important}.fl-builder-ui-skin--dark .fl-builder--search:before{color:rgba(162,173,184,.73)}.fl-builder-ui-skin--dark .fl-builder--search input:focus::-webkit-input-placeholder{color:rgba(162,173,184,.73)!important}.fl-builder-ui-skin--dark .fl-builder--search .search-clear{color:rgba(162,173,184,.5);background-color:#e4e4e4;background:linear-gradient(to left,#383f46,#383f46 75%,rgba(56,63,70,0))}.fl-builder-ui-skin--dark .fl-builder--menu hr{background-color:#23282d!important;border:none}.fl-builder-ui-skin--dark .fl-builder--tabs{border-color:#383f46!important}.fl-builder-ui-skin--dark .fl-builder--tabs .is-showing,.fl-builder-ui-skin--dark .fl-builder-settings-tabs a.fl-active,.fl-builder-ui-skin--dark .fl-builder-settings-tabs-more.fl-contains-active{color:#fff!important;fill:#fff!important;background:#181b20!important}.fl-builder-ui-skin--dark .fl-builder--tabs :focus{background-color:#101215!important;color:#fff!important}.fl-builder-ui-skin--dark .fl-builder--tabs .is-showing:focus{color:#00a0d2!important}.fl-builder-ui-skin--dark .fl-builder--menu-item:hover{background:#383f46;color:#a8b3bf}.fl-builder-ui-skin--dark .fl-builder--menu * .fl-builder--menu-item-accessory,.fl-builder-ui-skin--dark .fl-builder-blocks-section-group-name{color:#7d8690}.fl-builder-ui-skin--dark .fl-builder--selector-display{color:#c6cdd6;background:url(../img/svg/select-arrow-down-alt2-light.svg) center right 10px no-repeat #1a1b22!important}.fl-builder-ui-skin--dark .fl-builder--selector-display-label{color:#b5becb}.fl-builder-ui-skin--dark .fl-builder-panel-search-input input{border-color:#5b656f;color:#b8c2ce;background:#171b1f!important}.fl-builder-ui-skin--dark .fl-builder--selector-display-label:focus,.fl-builder-ui-skin--dark .fl-builder-panel-search-input input:focus{border-color:#00a0d2}.fl-builder-ui-skin--dark .fl-builder--group-label{color:#aaafb5!important;background:#24282e}.fl-builder-ui-skin--dark .fl-builder--category-select .fl-builder--selector-menu{border-color:#101215!important;color:#7c858e;background-color:#101215}.fl-builder-ui-skin--dark .fl-builder--category-select .fl-builder--selector-menu:before{border-bottom-color:#101215}.fl-builder-ui-skin--dark .fl-builder--menu>a,.fl-builder-ui-skin--dark .fl-builder--menu>button,.fl-builder-ui-skin--dark .fl-builder--menu>span{color:#a1adb9}.fl-builder-ui-skin--dark .fl-builder--category-select .fl-builder--selector-menu .fl-builder--menu-item:hover{background:#23282d!important;color:#a1adb9}.fl-builder-ui-skin--dark .fl-builder--category-select .fl-builder--selector-menu .fl-builder--menu-item:focus{background:#23282d!important;color:#00a0d2!important}.fl-builder-ui-skin--dark .fl-builder-panel-drag-handle{fill:#5b656f}.fl-builder-ui-skin--dark .fl-builder--template-collection-section-header,.fl-builder-ui-skin--dark .fl-builder-blocks-section .fl-builder-blocks-section-header,.fl-builder-ui-skin--dark .fl-builder-settings-section-header{background-color:#191b21;border-color:#191b21}.fl-builder-ui-skin--dark .fl-builder--template-collection-section-name,.fl-builder-ui-skin--dark .fl-builder--user-templates-section-name,.fl-builder-ui-skin--dark .fl-builder-blocks-section .fl-builder-blocks-section-title,.fl-builder-ui-skin--dark .fl-builder-settings-fields .fl-builder-settings-title{color:#7d8690!important;fill:#7d8690;background:#24282e}.fl-builder-ui-skin--dark .fl-builder-settings-fields .fl-builder-settings-title:focus{border-color:#7d8690}.fl-builder-ui-skin--dark .fl-builder-blocks-section-content .fl-builder-block,.fl-builder-ui-skin--dark .fl-user-template{color:#b8c2ce}.fl-builder-ui-skin--dark .fl-builder-block:hover .fl-builder-block-content,.fl-builder-ui-skin--dark .fl-user-template:hover{background:#171b1f;color:#fff}.fl-builder-ui-skin--dark .fl-builder-block:hover i,.fl-builder-ui-skin--dark .fl-user-template:hover i{color:#6d7782!important}.fl-builder-ui-skin--dark .fl-builder-block:hover a:hover i,.fl-builder-ui-skin--dark .fl-user-template:hover a:hover i{color:#9eacbb!important}.fl-builder-ui-skin--dark .fl-builder-block .fl-builder-block-icon{fill:#b5becb}.fl-builder-ui-skin--dark .fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col,.fl-builder-ui-skin--dark .fl-builder-block:hover .fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col{background:#7d8690}.fl-builder-ui-skin--dark .fl-user-templates{border-color:#101215}.fl-builder-ui-skin--dark .fl-builder--template-thumbnail{border-color:#393f44}.fl-builder-ui-skin--dark .fl-builder--menu a.fl-template-collection{color:#a8b3bf}.fl-builder-ui-skin--dark .fl-lightbox .fl-lightbox-header h1{color:#fff!important}.fl-builder-ui-skin--dark .fl-form-table th label{color:#a8b3bf!important}.fl-builder-ui-skin--dark .fl-builder-settings-tabs{background-color:#2c333a!important}.fl-builder-ui-skin--dark .fl-builder-settings-fields h3.fl-builder-settings-title{background:#24282e}.fl-builder-ui-skin--dark h3.fl-builder-settings-title .fl-builder-settings-title-text-wrap{color:#a8b3bf;background-color:#1b2025}.fl-builder-ui-skin--dark .fl-lightbox :not(i){color:#a7b1bb!important}.fl-builder-ui-skin--dark .fl-builder-button{color:#c6cdd6!important;fill:#c6cdd6!important}.fl-builder-ui-skin--dark .fl-builder-content-panel--button:hover,.fl-builder-ui-skin--dark .fl-builder-content-panel-button{fill:#00A0D2!important}.fl-builder-ui-skin--dark .fl-lightbox .fl-builder-button.fl-builder-button-primary{color:#fff!important}.fl-builder-ui-skin--dark .fl-color-picker-color.fl-color-picker-empty{background:#1a1b22}.fl-color-picker-color.fl-color-picker-empty .fl-color-picker-icon{fill:#6f7881}.fl-builder-ui-skin--dark .fl-color-picker-clear{background-color:#121a23}.fl-builder-ui-skin--dark .fl-color-picker-clear:hover{background-color:#373f46}.fl-builder-ui-skin--dark span.fl-builder-block-no-node-templates:hover{background:#1d2025}.fl-builder-ui-skin--dark .fl-builder-settings-tab-description{background:#1d2227}.fl-builder-ui-skin--dark .fl-builder-panel-search button svg .filled-shape{fill:#b5becb}.fl-builder-ui-skin--dark .fl-builder-custom-field,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=email],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=file],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=number],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=password],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=search],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=tel],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=text],.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=url],.fl-builder-ui-skin--dark .fl-builder-settings-fields select,.fl-builder-ui-skin--dark .fl-builder-settings-fields textarea{background-color:#181b20!important}.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=email]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=file]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=number]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=password]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=search]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=tel]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=text]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields input[type=url]:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields select:focus,.fl-builder-ui-skin--dark .fl-builder-settings-fields textarea:focus{border-color:#00a0d2!important;color:#fff!important}.fl-builder-ui-skin--dark .fl-builder-settings-fields select{background-image:url(../img/svg/select-arrow-down-alt2-light.svg)!important}.fl-builder-ui-skin--dark .fl-builder-custom-field select,.fl-builder-ui-skin--dark .fl-photo-field select{border-color:#7d8690!important}.fl-builder-ui-skin--dark .fl-field i.fl-field-responsive-toggle{color:#6b747d}.fl-builder-ui-skin--dark .fl-builder--main-menu-panel-view-title,.fl-builder-ui-skin--dark .fl-field i.fl-field-responsive-toggle:hover{color:#a8b3bf}.fl-builder-ui-skin--dark .fl-builder--saving-indicator{color:#858f99}.fl-builder-ui-skin--dark .fl-icons-list i:hover{background-color:#16191d;color:#fff}.fl-builder-ui-skin--dark .fl-color-picker-clear .fl-color-picker-icon-remove:after,.fl-builder-ui-skin--dark .fl-color-picker-clear .fl-color-picker-icon-remove:before{background:#6f7881}.fl-builder-ui-skin--dark .fl-builder--user-templates-section-content{border-color:#1d1d1d}.fl-builder-ui-skin--dark .fl-theme-builder-preview-select.fl-builder-button{background:0 0;border-right-color:#101215!important}.fl-builder-ui-skin--dark .fl-theme-builder-preview-select.fl-builder-button:hover{background:#181b1f}.fl-builder-ui-skin--dark .fl-theme-builder-preview-select .fl-theme-builder-preview-select-title span{color:#c6cdd6}.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu{background:#131a22;border-color:#353c43 #131a22 #131a22}.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu:before{border-bottom-color:#353c43}.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu>a:active,.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu>a:focus,.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu>a:hover{background:#383f46}.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu>a.fl-active,.fl-builder-ui-skin--dark .fl-builder-settings-tabs-overflow-menu>a:hover.fl-active{color:#fff!important;background:#383f46}.fl-builder-ui-skin--dark ul.as-selections{background-color:#121a23}.fl-builder-ui-skin--dark .fl-custom-query .fl-builder-settings-section{border-top:2px solid #1b2026!important}.fl-builder-ui-skin--dark div.fl-field-unit-select{background-color:#181b20!important}.fl-builder-ui-skin--dark .fl-dimension-field-units>*{border-right:1px solid #383f46}.fl-builder-ui-skin--dark .fl-field-popup-slider,.fl-builder-ui-skin--dark .fl-field-popup-slider-input .ui-slider-handle{background:#383f46}.fl-builder-ui-skin--dark .fl-field-popup-slider-arrow:after{border-bottom-color:#383f46}.fl-builder-ui-skin--dark .fl-field-popup-slider-input{background-color:#121a23}.fl-builder-ui-skin--dark .fl-unit-field-input{border-right:1px solid #383f46!important}.fl-builder-ui-skin--dark .fl-button-group-field-option[data-selected="1"]{background-color:#383f46;color:#fff}.fl-builder-ui-skin--dark .fl-button-group-field-option[data-selected="1"] i{color:#fff!important}.fl-builder-ui-skin--dark .fl-button-group-field-options{background:#181b20}.fl-builder-ui-skin--dark .fl-compound-field-section-toggle{background-color:#181b20}.fl-builder-ui-skin--dark .fl-compound-field-section-toggle:hover{background-color:#383f46}.fl-builder-ui-skin--dark .fl-compound-field-section-visible .fl-compound-field-section-toggle{border-top-color:#121a23!important;background-color:transparent}.fl-builder-ui-skin--dark .fl-field-connections-toggle i{color:#7c8590}.fl-builder-ui-skin--dark .fl-lightbox .fl-field-connection-content{background-color:#191b20!important}.fl-builder-ui-skin--dark .fl-nanoscroller>.fl-nanoscroller-pane>.fl-nanoscroller-slider{background-color:#181b20}.fl-builder-ui-skin--dark .fl-nanoscroller>.fl-nanoscroller-pane:hover>.fl-nanoscroller-slider{background-color:#5a646f}.fl-builder-ui-skin--dark .fl-nanoscroller>.fl-nanoscroller-pane.active>.fl-nanoscroller-slider{background-color:#00A0D2}.fl-builder-ui-skin--dark .fl-lightbox div.mce-panel{background:#383f46}.fl-builder-ui-skin--dark .fl-lightbox .mce-toolbar .mce-ico{color:#a7b1bb}.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button-secondary{background:#383f46;border:none;box-shadow:none}.fl-builder-ui-skin--dark .fl-lightbox .fl-builder-settings .wp-switch-editor{background:#23282d}.fl-builder-ui-skin--dark .fl-lightbox .html-active .switch-html,.fl-builder-ui-skin--dark .fl-lightbox .quicktags-toolbar,.fl-builder-ui-skin--dark .fl-lightbox .tmce-active .switch-tmce{background:#383f46}.fl-builder-ui-skin--dark .fl-lightbox textarea.wp-editor-area{background:0 0!important}.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button-secondary:focus,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button-secondary:hover,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button.focus,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button.hover,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button:focus,.fl-builder-ui-skin--dark .fl-lightbox .wp-core-ui .button:hover{background:#191b20}
|
css/fl-lightbox.css
CHANGED
@@ -85,9 +85,7 @@
|
|
85 |
.fl-nanoscroller > .fl-nanoscroller-pane.active > .fl-nanoscroller-slider {
|
86 |
background-color: #029fd2;
|
87 |
}
|
88 |
-
|
89 |
-
font-family: FontAwesome !important;
|
90 |
-
}
|
91 |
.fl-lightbox .dashicons {
|
92 |
font-family: dashicons;
|
93 |
}
|
85 |
.fl-nanoscroller > .fl-nanoscroller-pane.active > .fl-nanoscroller-slider {
|
86 |
background-color: #029fd2;
|
87 |
}
|
88 |
+
|
|
|
|
|
89 |
.fl-lightbox .dashicons {
|
90 |
font-family: dashicons;
|
91 |
}
|
fl-builder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Beaver Builder Plugin (Lite Version)
|
4 |
* Plugin URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-uri
|
5 |
* Description: A drag and drop frontend WordPress page builder plugin that works with almost any theme!
|
6 |
-
* Version: 2.2.
|
7 |
* Author: The Beaver Builder Team
|
8 |
* Author URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-author
|
9 |
* Copyright: (c) 2014 Beaver Builder
|
3 |
* Plugin Name: Beaver Builder Plugin (Lite Version)
|
4 |
* Plugin URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-uri
|
5 |
* Description: A drag and drop frontend WordPress page builder plugin that works with almost any theme!
|
6 |
+
* Version: 2.2.2.5
|
7 |
* Author: The Beaver Builder Team
|
8 |
* Author URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-author
|
9 |
* Copyright: (c) 2014 Beaver Builder
|
fonts/fontawesome/css/all.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
-
* Font Awesome Free 5.8.
|
3 |
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4 |
*/
|
5 |
.fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adobe:before{content:"\f778"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-balance-scale:before{content:"\f24e"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-battle-net:before{content:"\f835"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bootstrap:before{content:"\f836"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-buffer:before{content:"\f837"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-chromecast:before{content:"\f838"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-evernote:before{content:"\f839"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-handshake:before{content:"\f2b5"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-wizard:before{content:"\f6e8"}.fa-haykal:before{content:"\f666"}.fa-hdd:before{content:"\f0a0"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itch-io:before{content:"\f83a"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-nintendo-switch:before{content:"\f418"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-volume:before{content:"\f2a0"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-salesforce:before{content:"\f83b"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-speaker-deck:before{content:"\f83c"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-symfony:before{content:"\f83d"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-wave-square:before{content:"\f83e"}.fa-waze:before{content:"\f83f"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yammer:before{content:"\f840"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;font-display:auto;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:auto;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:auto;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900}
|
1 |
/*!
|
2 |
+
* Font Awesome Free 5.8.1 by @fontawesome - https://fontawesome.com
|
3 |
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4 |
*/
|
5 |
.fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adobe:before{content:"\f778"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-balance-scale:before{content:"\f24e"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-battle-net:before{content:"\f835"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bootstrap:before{content:"\f836"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-buffer:before{content:"\f837"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-chromecast:before{content:"\f838"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-evernote:before{content:"\f839"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-handshake:before{content:"\f2b5"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-wizard:before{content:"\f6e8"}.fa-haykal:before{content:"\f666"}.fa-hdd:before{content:"\f0a0"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itch-io:before{content:"\f83a"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-nintendo-switch:before{content:"\f418"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-volume:before{content:"\f2a0"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-salesforce:before{content:"\f83b"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-speaker-deck:before{content:"\f83c"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-symfony:before{content:"\f83d"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-wave-square:before{content:"\f83e"}.fa-waze:before{content:"\f83f"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yammer:before{content:"\f840"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;font-display:auto;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:auto;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:auto;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900}
|
fonts/fontawesome/css/v4-shims.min.css
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Font Awesome Free 5.8.1 by @fontawesome - https://fontawesome.com
|
3 |
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
4 |
+
*/
|
5 |
+
.fa.fa-glass:before{content:"\f000"}.fa.fa-meetup{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-star-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-o:before{content:"\f005"}.fa.fa-close:before,.fa.fa-remove:before{content:"\f00d"}.fa.fa-gear:before{content:"\f013"}.fa.fa-trash-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-trash-o:before{content:"\f2ed"}.fa.fa-file-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-o:before{content:"\f15b"}.fa.fa-clock-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-clock-o:before{content:"\f017"}.fa.fa-arrow-circle-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-down:before{content:"\f358"}.fa.fa-arrow-circle-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-up:before{content:"\f35b"}.fa.fa-play-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-play-circle-o:before{content:"\f144"}.fa.fa-repeat:before,.fa.fa-rotate-right:before{content:"\f01e"}.fa.fa-refresh:before{content:"\f021"}.fa.fa-list-alt{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-dedent:before{content:"\f03b"}.fa.fa-video-camera:before{content:"\f03d"}.fa.fa-picture-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-picture-o:before{content:"\f03e"}.fa.fa-photo{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-photo:before{content:"\f03e"}.fa.fa-image{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-image:before{content:"\f03e"}.fa.fa-pencil:before{content:"\f303"}.fa.fa-map-marker:before{content:"\f3c5"}.fa.fa-pencil-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-pencil-square-o:before{content:"\f044"}.fa.fa-share-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-share-square-o:before{content:"\f14d"}.fa.fa-check-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-check-square-o:before{content:"\f14a"}.fa.fa-arrows:before{content:"\f0b2"}.fa.fa-times-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-times-circle-o:before{content:"\f057"}.fa.fa-check-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-check-circle-o:before{content:"\f058"}.fa.fa-mail-forward:before{content:"\f064"}.fa.fa-eye,.fa.fa-eye-slash{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-warning:before{content:"\f071"}.fa.fa-calendar:before{content:"\f073"}.fa.fa-arrows-v:before{content:"\f338"}.fa.fa-arrows-h:before{content:"\f337"}.fa.fa-bar-chart{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bar-chart:before{content:"\f080"}.fa.fa-bar-chart-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bar-chart-o:before{content:"\f080"}.fa.fa-facebook-square,.fa.fa-twitter-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-gears:before{content:"\f085"}.fa.fa-thumbs-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-thumbs-o-up:before{content:"\f164"}.fa.fa-thumbs-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-thumbs-o-down:before{content:"\f165"}.fa.fa-heart-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-heart-o:before{content:"\f004"}.fa.fa-sign-out:before{content:"\f2f5"}.fa.fa-linkedin-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-linkedin-square:before{content:"\f08c"}.fa.fa-thumb-tack:before{content:"\f08d"}.fa.fa-external-link:before{content:"\f35d"}.fa.fa-sign-in:before{content:"\f2f6"}.fa.fa-github-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-lemon-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-lemon-o:before{content:"\f094"}.fa.fa-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-square-o:before{content:"\f0c8"}.fa.fa-bookmark-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bookmark-o:before{content:"\f02e"}.fa.fa-facebook,.fa.fa-twitter{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-facebook:before{content:"\f39e"}.fa.fa-facebook-f{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-facebook-f:before{content:"\f39e"}.fa.fa-github{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-credit-card{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-feed:before{content:"\f09e"}.fa.fa-hdd-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hdd-o:before{content:"\f0a0"}.fa.fa-hand-o-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-right:before{content:"\f0a4"}.fa.fa-hand-o-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-left:before{content:"\f0a5"}.fa.fa-hand-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-up:before{content:"\f0a6"}.fa.fa-hand-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-down:before{content:"\f0a7"}.fa.fa-arrows-alt:before{content:"\f31e"}.fa.fa-group:before{content:"\f0c0"}.fa.fa-chain:before{content:"\f0c1"}.fa.fa-scissors:before{content:"\f0c4"}.fa.fa-files-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-files-o:before{content:"\f0c5"}.fa.fa-floppy-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-floppy-o:before{content:"\f0c7"}.fa.fa-navicon:before,.fa.fa-reorder:before{content:"\f0c9"}.fa.fa-google-plus,.fa.fa-google-plus-square,.fa.fa-pinterest,.fa.fa-pinterest-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-google-plus:before{content:"\f0d5"}.fa.fa-money{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-money:before{content:"\f3d1"}.fa.fa-unsorted:before{content:"\f0dc"}.fa.fa-sort-desc:before{content:"\f0dd"}.fa.fa-sort-asc:before{content:"\f0de"}.fa.fa-linkedin{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-linkedin:before{content:"\f0e1"}.fa.fa-rotate-left:before{content:"\f0e2"}.fa.fa-legal:before{content:"\f0e3"}.fa.fa-dashboard:before,.fa.fa-tachometer:before{content:"\f3fd"}.fa.fa-comment-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-comment-o:before{content:"\f075"}.fa.fa-comments-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-comments-o:before{content:"\f086"}.fa.fa-flash:before{content:"\f0e7"}.fa.fa-clipboard,.fa.fa-paste{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-paste:before{content:"\f328"}.fa.fa-lightbulb-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-lightbulb-o:before{content:"\f0eb"}.fa.fa-exchange:before{content:"\f362"}.fa.fa-cloud-download:before{content:"\f381"}.fa.fa-cloud-upload:before{content:"\f382"}.fa.fa-bell-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bell-o:before{content:"\f0f3"}.fa.fa-cutlery:before{content:"\f2e7"}.fa.fa-file-text-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-text-o:before{content:"\f15c"}.fa.fa-building-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-building-o:before{content:"\f1ad"}.fa.fa-hospital-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hospital-o:before{content:"\f0f8"}.fa.fa-tablet:before{content:"\f3fa"}.fa.fa-mobile-phone:before,.fa.fa-mobile:before{content:"\f3cd"}.fa.fa-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-circle-o:before{content:"\f111"}.fa.fa-mail-reply:before{content:"\f3e5"}.fa.fa-github-alt{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-folder-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-folder-o:before{content:"\f07b"}.fa.fa-folder-open-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-folder-open-o:before{content:"\f07c"}.fa.fa-smile-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-smile-o:before{content:"\f118"}.fa.fa-frown-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-frown-o:before{content:"\f119"}.fa.fa-meh-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-meh-o:before{content:"\f11a"}.fa.fa-keyboard-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-keyboard-o:before{content:"\f11c"}.fa.fa-flag-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-flag-o:before{content:"\f024"}.fa.fa-mail-reply-all:before{content:"\f122"}.fa.fa-star-half-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-half-o:before{content:"\f089"}.fa.fa-star-half-empty{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-half-empty:before{content:"\f089"}.fa.fa-star-half-full{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-half-full:before{content:"\f089"}.fa.fa-code-fork:before{content:"\f126"}.fa.fa-chain-broken:before{content:"\f127"}.fa.fa-shield:before{content:"\f3ed"}.fa.fa-calendar-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-o:before{content:"\f133"}.fa.fa-css3,.fa.fa-html5,.fa.fa-maxcdn{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-ticket:before{content:"\f3ff"}.fa.fa-minus-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-minus-square-o:before{content:"\f146"}.fa.fa-level-up:before{content:"\f3bf"}.fa.fa-level-down:before{content:"\f3be"}.fa.fa-pencil-square:before{content:"\f14b"}.fa.fa-external-link-square:before{content:"\f360"}.fa.fa-compass{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-down:before{content:"\f150"}.fa.fa-toggle-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-down:before{content:"\f150"}.fa.fa-caret-square-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-up:before{content:"\f151"}.fa.fa-toggle-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-up:before{content:"\f151"}.fa.fa-caret-square-o-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-right:before{content:"\f152"}.fa.fa-toggle-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-right:before{content:"\f152"}.fa.fa-eur:before,.fa.fa-euro:before{content:"\f153"}.fa.fa-gbp:before{content:"\f154"}.fa.fa-dollar:before,.fa.fa-usd:before{content:"\f155"}.fa.fa-inr:before,.fa.fa-rupee:before{content:"\f156"}.fa.fa-cny:before,.fa.fa-jpy:before,.fa.fa-rmb:before,.fa.fa-yen:before{content:"\f157"}.fa.fa-rouble:before,.fa.fa-rub:before,.fa.fa-ruble:before{content:"\f158"}.fa.fa-krw:before,.fa.fa-won:before{content:"\f159"}.fa.fa-bitcoin,.fa.fa-btc{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bitcoin:before{content:"\f15a"}.fa.fa-file-text:before{content:"\f15c"}.fa.fa-sort-alpha-asc:before{content:"\f15d"}.fa.fa-sort-alpha-desc:before{content:"\f15e"}.fa.fa-sort-amount-asc:before{content:"\f160"}.fa.fa-sort-amount-desc:before{content:"\f161"}.fa.fa-sort-numeric-asc:before{content:"\f162"}.fa.fa-sort-numeric-desc:before{content:"\f163"}.fa.fa-xing,.fa.fa-xing-square,.fa.fa-youtube,.fa.fa-youtube-play,.fa.fa-youtube-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-youtube-play:before{content:"\f167"}.fa.fa-adn,.fa.fa-bitbucket,.fa.fa-bitbucket-square,.fa.fa-dropbox,.fa.fa-flickr,.fa.fa-instagram,.fa.fa-stack-overflow{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bitbucket-square:before{content:"\f171"}.fa.fa-tumblr,.fa.fa-tumblr-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-long-arrow-down:before{content:"\f309"}.fa.fa-long-arrow-up:before{content:"\f30c"}.fa.fa-long-arrow-left:before{content:"\f30a"}.fa.fa-long-arrow-right:before{content:"\f30b"}.fa.fa-android,.fa.fa-apple,.fa.fa-dribbble,.fa.fa-foursquare,.fa.fa-gittip,.fa.fa-gratipay,.fa.fa-linux,.fa.fa-skype,.fa.fa-trello,.fa.fa-windows{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-gittip:before{content:"\f184"}.fa.fa-sun-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-sun-o:before{content:"\f185"}.fa.fa-moon-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-moon-o:before{content:"\f186"}.fa.fa-pagelines,.fa.fa-renren,.fa.fa-stack-exchange,.fa.fa-vk,.fa.fa-weibo{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-arrow-circle-o-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-right:before{content:"\f35a"}.fa.fa-arrow-circle-o-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-left:before{content:"\f359"}.fa.fa-caret-square-o-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-left:before{content:"\f191"}.fa.fa-toggle-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-left:before{content:"\f191"}.fa.fa-dot-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-dot-circle-o:before{content:"\f192"}.fa.fa-vimeo-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-try:before,.fa.fa-turkish-lira:before{content:"\f195"}.fa.fa-plus-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-plus-square-o:before{content:"\f0fe"}.fa.fa-openid,.fa.fa-slack,.fa.fa-wordpress{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bank:before,.fa.fa-institution:before{content:"\f19c"}.fa.fa-mortar-board:before{content:"\f19d"}.fa.fa-delicious,.fa.fa-digg,.fa.fa-drupal,.fa.fa-google,.fa.fa-joomla,.fa.fa-pied-piper-alt,.fa.fa-pied-piper-pp,.fa.fa-reddit,.fa.fa-reddit-square,.fa.fa-stumbleupon,.fa.fa-stumbleupon-circle,.fa.fa-yahoo{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-spoon:before{content:"\f2e5"}.fa.fa-behance,.fa.fa-behance-square,.fa.fa-steam,.fa.fa-steam-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-automobile:before{content:"\f1b9"}.fa.fa-cab:before{content:"\f1ba"}.fa.fa-envelope-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-envelope-o:before{content:"\f0e0"}.fa.fa-deviantart,.fa.fa-soundcloud{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-file-pdf-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-pdf-o:before{content:"\f1c1"}.fa.fa-file-word-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-word-o:before{content:"\f1c2"}.fa.fa-file-excel-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-excel-o:before{content:"\f1c3"}.fa.fa-file-powerpoint-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-powerpoint-o:before{content:"\f1c4"}.fa.fa-file-image-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-image-o:before{content:"\f1c5"}.fa.fa-file-photo-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-photo-o:before{content:"\f1c5"}.fa.fa-file-picture-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-picture-o:before{content:"\f1c5"}.fa.fa-file-archive-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-archive-o:before{content:"\f1c6"}.fa.fa-file-zip-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-zip-o:before{content:"\f1c6"}.fa.fa-file-audio-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-audio-o:before{content:"\f1c7"}.fa.fa-file-sound-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-sound-o:before{content:"\f1c7"}.fa.fa-file-video-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-video-o:before{content:"\f1c8"}.fa.fa-file-movie-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-movie-o:before{content:"\f1c8"}.fa.fa-file-code-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-code-o:before{content:"\f1c9"}.fa.fa-codepen,.fa.fa-jsfiddle,.fa.fa-vine{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-life-bouy,.fa.fa-life-ring{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-life-bouy:before{content:"\f1cd"}.fa.fa-life-buoy{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-life-buoy:before{content:"\f1cd"}.fa.fa-life-saver{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-life-saver:before{content:"\f1cd"}.fa.fa-support{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-support:before{content:"\f1cd"}.fa.fa-circle-o-notch:before{content:"\f1ce"}.fa.fa-ra,.fa.fa-rebel{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-ra:before{content:"\f1d0"}.fa.fa-resistance{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-resistance:before{content:"\f1d0"}.fa.fa-empire,.fa.fa-ge{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-ge:before{content:"\f1d1"}.fa.fa-git,.fa.fa-git-square,.fa.fa-hacker-news,.fa.fa-y-combinator-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-y-combinator-square:before{content:"\f1d4"}.fa.fa-yc-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-yc-square:before{content:"\f1d4"}.fa.fa-qq,.fa.fa-tencent-weibo,.fa.fa-wechat,.fa.fa-weixin{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-wechat:before{content:"\f1d7"}.fa.fa-send:before{content:"\f1d8"}.fa.fa-paper-plane-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-paper-plane-o:before{content:"\f1d8"}.fa.fa-send-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-send-o:before{content:"\f1d8"}.fa.fa-circle-thin{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-circle-thin:before{content:"\f111"}.fa.fa-header:before{content:"\f1dc"}.fa.fa-sliders:before{content:"\f1de"}.fa.fa-futbol-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-futbol-o:before{content:"\f1e3"}.fa.fa-soccer-ball-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-soccer-ball-o:before{content:"\f1e3"}.fa.fa-slideshare,.fa.fa-twitch,.fa.fa-yelp{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-newspaper-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-newspaper-o:before{content:"\f1ea"}.fa.fa-cc-amex,.fa.fa-cc-discover,.fa.fa-cc-mastercard,.fa.fa-cc-paypal,.fa.fa-cc-stripe,.fa.fa-cc-visa,.fa.fa-google-wallet,.fa.fa-paypal{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bell-slash-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bell-slash-o:before{content:"\f1f6"}.fa.fa-trash:before{content:"\f2ed"}.fa.fa-copyright{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-eyedropper:before{content:"\f1fb"}.fa.fa-area-chart:before{content:"\f1fe"}.fa.fa-pie-chart:before{content:"\f200"}.fa.fa-line-chart:before{content:"\f201"}.fa.fa-angellist,.fa.fa-ioxhost,.fa.fa-lastfm,.fa.fa-lastfm-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-cc{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-cc:before{content:"\f20a"}.fa.fa-ils:before,.fa.fa-shekel:before,.fa.fa-sheqel:before{content:"\f20b"}.fa.fa-meanpath{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-meanpath:before{content:"\f2b4"}.fa.fa-buysellads,.fa.fa-connectdevelop,.fa.fa-dashcube,.fa.fa-forumbee,.fa.fa-leanpub,.fa.fa-sellsy,.fa.fa-shirtsinbulk,.fa.fa-simplybuilt,.fa.fa-skyatlas{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-diamond{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-diamond:before{content:"\f3a5"}.fa.fa-intersex:before{content:"\f224"}.fa.fa-facebook-official{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-facebook-official:before{content:"\f09a"}.fa.fa-pinterest-p,.fa.fa-whatsapp{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-hotel:before{content:"\f236"}.fa.fa-medium,.fa.fa-viacoin,.fa.fa-y-combinator,.fa.fa-yc{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-yc:before{content:"\f23b"}.fa.fa-expeditedssl,.fa.fa-opencart,.fa.fa-optin-monster{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-battery-4:before,.fa.fa-battery:before{content:"\f240"}.fa.fa-battery-3:before{content:"\f241"}.fa.fa-battery-2:before{content:"\f242"}.fa.fa-battery-1:before{content:"\f243"}.fa.fa-battery-0:before{content:"\f244"}.fa.fa-object-group,.fa.fa-object-ungroup,.fa.fa-sticky-note-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-sticky-note-o:before{content:"\f249"}.fa.fa-cc-diners-club,.fa.fa-cc-jcb{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-clone,.fa.fa-hourglass-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hourglass-o:before{content:"\f254"}.fa.fa-hourglass-1:before{content:"\f251"}.fa.fa-hourglass-2:before{content:"\f252"}.fa.fa-hourglass-3:before{content:"\f253"}.fa.fa-hand-rock-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-rock-o:before{content:"\f255"}.fa.fa-hand-grab-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-grab-o:before{content:"\f255"}.fa.fa-hand-paper-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-paper-o:before{content:"\f256"}.fa.fa-hand-stop-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-stop-o:before{content:"\f256"}.fa.fa-hand-scissors-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-scissors-o:before{content:"\f257"}.fa.fa-hand-lizard-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-lizard-o:before{content:"\f258"}.fa.fa-hand-spock-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-spock-o:before{content:"\f259"}.fa.fa-hand-pointer-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-pointer-o:before{content:"\f25a"}.fa.fa-hand-peace-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-peace-o:before{content:"\f25b"}.fa.fa-registered{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-chrome,.fa.fa-creative-commons,.fa.fa-firefox,.fa.fa-get-pocket,.fa.fa-gg,.fa.fa-gg-circle,.fa.fa-internet-explorer,.fa.fa-odnoklassniki,.fa.fa-odnoklassniki-square,.fa.fa-opera,.fa.fa-safari,.fa.fa-tripadvisor,.fa.fa-wikipedia-w{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-television:before{content:"\f26c"}.fa.fa-500px,.fa.fa-amazon,.fa.fa-contao{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-calendar-plus-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-plus-o:before{content:"\f271"}.fa.fa-calendar-minus-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-minus-o:before{content:"\f272"}.fa.fa-calendar-times-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-times-o:before{content:"\f273"}.fa.fa-calendar-check-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-check-o:before{content:"\f274"}.fa.fa-map-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-map-o:before{content:"\f279"}.fa.fa-commenting:before{content:"\f4ad"}.fa.fa-commenting-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-commenting-o:before{content:"\f4ad"}.fa.fa-houzz,.fa.fa-vimeo{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-vimeo:before{content:"\f27d"}.fa.fa-black-tie,.fa.fa-edge,.fa.fa-fonticons,.fa.fa-reddit-alien{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-credit-card-alt:before{content:"\f09d"}.fa.fa-codiepie,.fa.fa-fort-awesome,.fa.fa-mixcloud,.fa.fa-modx,.fa.fa-product-hunt,.fa.fa-scribd,.fa.fa-usb{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-pause-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-pause-circle-o:before{content:"\f28b"}.fa.fa-stop-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-stop-circle-o:before{content:"\f28d"}.fa.fa-bluetooth,.fa.fa-bluetooth-b,.fa.fa-envira,.fa.fa-gitlab,.fa.fa-wheelchair-alt,.fa.fa-wpbeginner,.fa.fa-wpforms{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-wheelchair-alt:before{content:"\f368"}.fa.fa-question-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-question-circle-o:before{content:"\f059"}.fa.fa-volume-control-phone:before{content:"\f2a0"}.fa.fa-asl-interpreting:before{content:"\f2a3"}.fa.fa-deafness:before,.fa.fa-hard-of-hearing:before{content:"\f2a4"}.fa.fa-glide,.fa.fa-glide-g{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-signing:before{content:"\f2a7"}.fa.fa-first-order,.fa.fa-google-plus-official,.fa.fa-pied-piper,.fa.fa-snapchat,.fa.fa-snapchat-ghost,.fa.fa-snapchat-square,.fa.fa-themeisle,.fa.fa-viadeo,.fa.fa-viadeo-square,.fa.fa-yoast{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-google-plus-official:before{content:"\f2b3"}.fa.fa-google-plus-circle{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-google-plus-circle:before{content:"\f2b3"}.fa.fa-fa,.fa.fa-font-awesome{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-fa:before{content:"\f2b4"}.fa.fa-handshake-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-handshake-o:before{content:"\f2b5"}.fa.fa-envelope-open-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-envelope-open-o:before{content:"\f2b6"}.fa.fa-linode{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-address-book-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-address-book-o:before{content:"\f2b9"}.fa.fa-vcard:before{content:"\f2bb"}.fa.fa-address-card-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-address-card-o:before{content:"\f2bb"}.fa.fa-vcard-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-vcard-o:before{content:"\f2bb"}.fa.fa-user-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-user-circle-o:before{content:"\f2bd"}.fa.fa-user-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-user-o:before{content:"\f007"}.fa.fa-id-badge{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-drivers-license:before{content:"\f2c2"}.fa.fa-id-card-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-id-card-o:before{content:"\f2c2"}.fa.fa-drivers-license-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-drivers-license-o:before{content:"\f2c2"}.fa.fa-free-code-camp,.fa.fa-quora,.fa.fa-telegram{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-thermometer-4:before,.fa.fa-thermometer:before{content:"\f2c7"}.fa.fa-thermometer-3:before{content:"\f2c8"}.fa.fa-thermometer-2:before{content:"\f2c9"}.fa.fa-thermometer-1:before{content:"\f2ca"}.fa.fa-thermometer-0:before{content:"\f2cb"}.fa.fa-bathtub:before,.fa.fa-s15:before{content:"\f2cd"}.fa.fa-window-maximize,.fa.fa-window-restore{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-times-rectangle:before{content:"\f410"}.fa.fa-window-close-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-window-close-o:before{content:"\f410"}.fa.fa-times-rectangle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-times-rectangle-o:before{content:"\f410"}.fa.fa-bandcamp,.fa.fa-eercast,.fa.fa-etsy,.fa.fa-grav,.fa.fa-imdb,.fa.fa-ravelry{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-eercast:before{content:"\f2da"}.fa.fa-snowflake-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-snowflake-o:before{content:"\f2dc"}.fa.fa-spotify,.fa.fa-superpowers,.fa.fa-wpexplorer{font-family:"Font Awesome 5 Brands";font-weight:400}
|
fonts/fontawesome/webfonts/fa-brands-400.eot
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-brands-400.svg
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?xml version="1.0" standalone="no"?>
|
2 |
<!--
|
3 |
-
Font Awesome Free 5.8.
|
4 |
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
5 |
-->
|
6 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
7 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
8 |
<metadata>
|
9 |
-
Created by FontForge 20190112 at
|
10 |
By Robert Madole
|
11 |
Copyright (c) Font Awesome
|
12 |
</metadata>
|
@@ -92,7 +92,7 @@ d="M386.061 219.504c1.83398 -9.69238 3.14355 -19.3838 3.14355 -31.9561c0 -109.75
|
|
92 |
c-14.1455 13.6211 -39.0283 29.5996 -76.4854 29.5996c-65.4834 0 -118.92 -54.2217 -118.92 -121.277s53.4365 -121.277 118.92 -121.277c75.9609 0 104.514 54.7451 108.965 82.7734h-108.965v66.0088h181.261v-0.000976562zM571.467 213.067h55.7334v-56.001h-55.7334
|
93 |
v-55.7334h-56.001v55.7334h-55.7324v56.001h55.7324v55.7324h56.001v-55.7324z" />
|
94 |
<glyph glyph-name="linkedin-in" unicode=""
|
95 |
-
d="M100.28 -
|
96 |
c0 34.7002 -0.700195 79.2002 -48.29 79.2002c-48.29 0 -55.6895 -37.7002 -55.6895 -76.7002v-148.1h-92.7803v299.1h89.0801v-40.7998h1.2998c12.4004 23.5 42.6904 48.2998 87.8799 48.2998c94 0 111.28 -61.8994 111.28 -142.3v-164.3h-0.0996094z" />
|
97 |
<glyph glyph-name="github-alt" unicode="" horiz-adv-x="480"
|
98 |
d="M186.1 119.3c0 -20.8994 -10.8994 -55.0996 -36.6992 -55.0996c-25.8008 0 -36.7002 34.2002 -36.7002 55.0996c0 20.9004 10.8994 55.1006 36.7002 55.1006c25.7998 0 36.6992 -34.2002 36.6992 -55.1006zM480 169.8c0 -31.8994 -3.2002 -65.7002 -17.5 -95
|
1 |
<?xml version="1.0" standalone="no"?>
|
2 |
<!--
|
3 |
+
Font Awesome Free 5.8.1 by @fontawesome - https://fontawesome.com
|
4 |
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
5 |
-->
|
6 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
7 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
8 |
<metadata>
|
9 |
+
Created by FontForge 20190112 at Thu Mar 21 16:19:01 2019
|
10 |
By Robert Madole
|
11 |
Copyright (c) Font Awesome
|
12 |
</metadata>
|
92 |
c-14.1455 13.6211 -39.0283 29.5996 -76.4854 29.5996c-65.4834 0 -118.92 -54.2217 -118.92 -121.277s53.4365 -121.277 118.92 -121.277c75.9609 0 104.514 54.7451 108.965 82.7734h-108.965v66.0088h181.261v-0.000976562zM571.467 213.067h55.7334v-56.001h-55.7334
|
93 |
v-55.7334h-56.001v55.7334h-55.7324v56.001h55.7324v55.7324h56.001v-55.7324z" />
|
94 |
<glyph glyph-name="linkedin-in" unicode=""
|
95 |
+
d="M100.28 0h-92.8799v299.1h92.8799v-299.1zM53.79 339.9c-29.7002 0 -53.79 24.5996 -53.79 54.2998c0 29.6914 24.0977 53.79 53.79 53.79s53.79 -24.0986 53.79 -53.79c0 -29.7002 -24.0996 -54.2998 -53.79 -54.2998zM447.9 0h-92.6807v145.6
|
96 |
c0 34.7002 -0.700195 79.2002 -48.29 79.2002c-48.29 0 -55.6895 -37.7002 -55.6895 -76.7002v-148.1h-92.7803v299.1h89.0801v-40.7998h1.2998c12.4004 23.5 42.6904 48.2998 87.8799 48.2998c94 0 111.28 -61.8994 111.28 -142.3v-164.3h-0.0996094z" />
|
97 |
<glyph glyph-name="github-alt" unicode="" horiz-adv-x="480"
|
98 |
d="M186.1 119.3c0 -20.8994 -10.8994 -55.0996 -36.6992 -55.0996c-25.8008 0 -36.7002 34.2002 -36.7002 55.0996c0 20.9004 10.8994 55.1006 36.7002 55.1006c25.7998 0 36.6992 -34.2002 36.6992 -55.1006zM480 169.8c0 -31.8994 -3.2002 -65.7002 -17.5 -95
|
fonts/fontawesome/webfonts/fa-brands-400.ttf
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-brands-400.woff
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-brands-400.woff2
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-regular-400.eot
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-regular-400.svg
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?xml version="1.0" standalone="no"?>
|
2 |
<!--
|
3 |
-
Font Awesome Free 5.8.
|
4 |
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
5 |
-->
|
6 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
7 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
8 |
<metadata>
|
9 |
-
Created by FontForge 20190112 at
|
10 |
By Robert Madole
|
11 |
Copyright (c) Font Awesome
|
12 |
</metadata>
|
1 |
<?xml version="1.0" standalone="no"?>
|
2 |
<!--
|
3 |
+
Font Awesome Free 5.8.1 by @fontawesome - https://fontawesome.com
|
4 |
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
5 |
-->
|
6 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
7 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
8 |
<metadata>
|
9 |
+
Created by FontForge 20190112 at Thu Mar 21 16:19:01 2019
|
10 |
By Robert Madole
|
11 |
Copyright (c) Font Awesome
|
12 |
</metadata>
|
fonts/fontawesome/webfonts/fa-regular-400.ttf
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-regular-400.woff
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-regular-400.woff2
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-solid-900.eot
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-solid-900.svg
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?xml version="1.0" standalone="no"?>
|
2 |
<!--
|
3 |
-
Font Awesome Free 5.8.
|
4 |
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
5 |
-->
|
6 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
7 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
8 |
<metadata>
|
9 |
-
Created by FontForge 20190112 at
|
10 |
By Robert Madole
|
11 |
Copyright (c) Font Awesome
|
12 |
</metadata>
|
1 |
<?xml version="1.0" standalone="no"?>
|
2 |
<!--
|
3 |
+
Font Awesome Free 5.8.1 by @fontawesome - https://fontawesome.com
|
4 |
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
5 |
-->
|
6 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
7 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
8 |
<metadata>
|
9 |
+
Created by FontForge 20190112 at Thu Mar 21 16:19:01 2019
|
10 |
By Robert Madole
|
11 |
Copyright (c) Font Awesome
|
12 |
</metadata>
|
fonts/fontawesome/webfonts/fa-solid-900.ttf
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-solid-900.woff
CHANGED
Binary file
|
fonts/fontawesome/webfonts/fa-solid-900.woff2
CHANGED
Binary file
|
includes/admin-posts.php
CHANGED
@@ -6,11 +6,14 @@
|
|
6 |
</div>
|
7 |
<?php endif; ?>
|
8 |
<div class="fl-builder-admin-ui">
|
|
|
9 |
<h3><?php printf( _x( '%1$s is currently active for this %2$s.', 'The first %s stands for custom branded "Page Builder" name. The second %s stands for the post type name.', 'fl-builder' ), FLBuilderModel::get_branding(), $post_type_name ); ?></h3>
|
10 |
<?php if ( FLBuilderUserAccess::current_user_can( 'builder_access' ) ) : ?>
|
11 |
-
|
|
|
12 |
<?php else : ?>
|
13 |
-
|
|
|
14 |
<?php endif; ?>
|
15 |
</div>
|
16 |
<div class="fl-builder-loading"></div>
|
@@ -18,6 +21,7 @@
|
|
18 |
<script type="text/javascript">
|
19 |
|
20 |
FLBuilderAdminPostsStrings = {
|
|
|
21 |
switchToEditor: "<?php printf( esc_attr_x( 'Switching to Text Editor mode will disable your %1$s layout until it is enabled again. Any edits made while in Text Editor mode will not be made on your %1$s layout. Do you want to continue?', '%s stands for custom branded \"Page Builder\" name.', 'fl-builder' ), FLBuilderModel::get_branding() ); ?>"
|
22 |
};
|
23 |
|
6 |
</div>
|
7 |
<?php endif; ?>
|
8 |
<div class="fl-builder-admin-ui">
|
9 |
+
<?php /* translators: 1: branded builder name: 2: post type name */ ?>
|
10 |
<h3><?php printf( _x( '%1$s is currently active for this %2$s.', 'The first %s stands for custom branded "Page Builder" name. The second %s stands for the post type name.', 'fl-builder' ), FLBuilderModel::get_branding(), $post_type_name ); ?></h3>
|
11 |
<?php if ( FLBuilderUserAccess::current_user_can( 'builder_access' ) ) : ?>
|
12 |
+
<?php /* translators: %s: branded builder name */ ?>
|
13 |
+
<a href="<?php echo FLBuilderModel::get_edit_url(); ?>" class="fl-launch-builder button button-primary button-large"><?php printf( _x( 'Launch %s', '%s stands for custom branded "Page Builder" name.', 'fl-builder' ), FLBuilderModel::get_branding() ); ?></a>
|
14 |
<?php else : ?>
|
15 |
+
<?php /* translators: %s: post type name */ ?>
|
16 |
+
<a href="<?php echo get_permalink(); ?>" class="button button-large"><?php printf( _x( 'View %s', '%s stands the post type name.', 'fl-builder' ), $post_type_name ); ?></a>
|
17 |
<?php endif; ?>
|
18 |
</div>
|
19 |
<div class="fl-builder-loading"></div>
|
21 |
<script type="text/javascript">
|
22 |
|
23 |
FLBuilderAdminPostsStrings = {
|
24 |
+
<?php /* translators: 1: branded builder name */ ?>
|
25 |
switchToEditor: "<?php printf( esc_attr_x( 'Switching to Text Editor mode will disable your %1$s layout until it is enabled again. Any edits made while in Text Editor mode will not be made on your %1$s layout. Do you want to continue?', '%s stands for custom branded \"Page Builder\" name.', 'fl-builder' ), FLBuilderModel::get_branding() ); ?>"
|
26 |
};
|
27 |
|
includes/admin-settings-welcome.php
CHANGED
@@ -26,6 +26,7 @@ $fb_url = 'https://www.facebook.com/groups/beaverbuilders/';
|
|
26 |
<p><?php _e( 'Thank you for choosing Beaver Builder and welcome to the colony! Find some helpful information below. Also, to the left are the Page Builder settings options.', 'fl-builder' ); ?>
|
27 |
|
28 |
<?php if ( true === FL_BUILDER_LITE ) : ?>
|
|
|
29 |
<?php printf( __( 'For more time-saving features and access to our expert support team, <a href="%s" target="_blank">upgrade today</a>.', 'fl-builder' ), $upgrade_url ); ?>
|
30 |
<?php else : ?>
|
31 |
<?php _e( 'Be sure to add your license key for access to updates and new features.', 'fl-builder' ); ?>
|
@@ -54,6 +55,19 @@ $fb_url = 'https://www.facebook.com/groups/beaverbuilders/';
|
|
54 |
|
55 |
<p><?php _e( 'Come by and share a project, ask a question, or just say hi! For news about new features and updates, like our <a href="https://www.facebook.com/wpbeaverbuilder/" target="_blank">Facebook Page</a> or follow us <a href="https://twitter.com/beaverbuilder" target="_blank">on Twitter</a>.', 'fl-builder' ); ?></p>
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
</div>
|
58 |
|
59 |
<div class="fl-welcome-col">
|
@@ -68,6 +82,7 @@ $fb_url = 'https://www.facebook.com/groups/beaverbuilders/';
|
|
68 |
|
69 |
<div class="fl-welcome-col">
|
70 |
|
|
|
71 |
<h4><?php printf( __( 'What\'s New in Beaver Builder %s', 'fl-builder' ), '2.2 "Falcon"' ); ?></h4>
|
72 |
|
73 |
<p><?php _e( 'We\'re thrilled to announce Beaver Builder 2.2 "Falcon". Beaver Builder 2.2 brings a number of design-focused enhancements and quality-of-life improvements.', 'fl-builder' ); ?></p>
|
@@ -78,7 +93,7 @@ $fb_url = 'https://www.facebook.com/groups/beaverbuilders/';
|
|
78 |
<li><?php _e( 'Break out of the box with <a target="_blank" href="https://kb.wpbeaverbuilder.com/article/678-row-shape-overlays">row shapes</a> and <a target="_blank" href="https://kb.wpbeaverbuilder.com/article/669-color-gradients-for-row-and-column-backgrounds-and-overlays">gradients</a>, plus new border and text shadow effects.', 'fl-builder' ); ?></li>
|
79 |
<li><?php _e( '<a target="_blank" href="https://kb.wpbeaverbuilder.com/article/690-beaver-builder-2-2-changes-to-specific-modules">More module settings</a> and responsive capabilities give you more control with less code.', 'fl-builder' ); ?></li>
|
80 |
</ul>
|
81 |
-
|
82 |
<p><?php printf( __( 'There\'s a whole lot more, too! Read about everything else on our <a href="%1$s" target="_blank">update post</a> or <a href="%2$s" target="_blank">change logs</a>.', 'fl-builder' ), $blog_post_url, $change_logs_url ); ?></p>
|
83 |
|
84 |
</div>
|
@@ -91,12 +106,15 @@ $fb_url = 'https://www.facebook.com/groups/beaverbuilders/';
|
|
91 |
|
92 |
<p><?php _e( 'The fastest way to find an answer to a question is to see if someone\'s already answered it!', 'fl-builder' ); ?></p>
|
93 |
|
|
|
94 |
<p><?php printf( __( 'For that, check our <a href="%1$s" target="_blank">Knowledge Base</a> or try searching <a href="%2$s" target="_blank">the Beaver Builders Facebook group</a>.', 'fl-builder' ), $docs_url, $fb_url ); ?></p>
|
95 |
|
96 |
<?php if ( true === FL_BUILDER_LITE ) : ?>
|
|
|
97 |
<p><?php printf( __( 'If you can\'t find an answer, consider upgrading to a premium version of Beaver Builder. Our expert support team is waiting to answer your questions and help you build your website. <a href="%s" target="_blank">Learn More</a>.', 'fl-builder' ), $upgrade_url ); ?></p>
|
98 |
<?php else : ?>
|
99 |
-
|
|
|
100 |
<?php endif; ?>
|
101 |
</div>
|
102 |
|
26 |
<p><?php _e( 'Thank you for choosing Beaver Builder and welcome to the colony! Find some helpful information below. Also, to the left are the Page Builder settings options.', 'fl-builder' ); ?>
|
27 |
|
28 |
<?php if ( true === FL_BUILDER_LITE ) : ?>
|
29 |
+
<?php /* translators: %s: upgrade url */ ?>
|
30 |
<?php printf( __( 'For more time-saving features and access to our expert support team, <a href="%s" target="_blank">upgrade today</a>.', 'fl-builder' ), $upgrade_url ); ?>
|
31 |
<?php else : ?>
|
32 |
<?php _e( 'Be sure to add your license key for access to updates and new features.', 'fl-builder' ); ?>
|
55 |
|
56 |
<p><?php _e( 'Come by and share a project, ask a question, or just say hi! For news about new features and updates, like our <a href="https://www.facebook.com/wpbeaverbuilder/" target="_blank">Facebook Page</a> or follow us <a href="https://twitter.com/beaverbuilder" target="_blank">on Twitter</a>.', 'fl-builder' ); ?></p>
|
57 |
|
58 |
+
<?php if ( true === FL_BUILDER_LITE && '1' !== get_user_meta( get_current_user_id(), '_fl_welcome_subscribed', true ) ) : ?>
|
59 |
+
<div class="subscription-form">
|
60 |
+
<h4>Get the Latest News First</h4>
|
61 |
+
<p>Our newsletter is personally written and sent out about once a month. It's not the least bit annoying or spammy. We promise.</p>
|
62 |
+
<div class="input-group">
|
63 |
+
<input class="input-group-field name" type="name" placeholder="Your Name" required />
|
64 |
+
<input class="input-group-field email" type="email" placeholder="Your Email" required />
|
65 |
+
<?php wp_nonce_field( 'welcome_submit' ); ?>
|
66 |
+
</div>
|
67 |
+
<span class="error"></span>
|
68 |
+
<button class="subscribe-button">Get News & Updates</button><span class="dashicons dashicons-update"></span>
|
69 |
+
</div>
|
70 |
+
<?php endif; ?>
|
71 |
</div>
|
72 |
|
73 |
<div class="fl-welcome-col">
|
82 |
|
83 |
<div class="fl-welcome-col">
|
84 |
|
85 |
+
<?php /* translators: %s: builder version */ ?>
|
86 |
<h4><?php printf( __( 'What\'s New in Beaver Builder %s', 'fl-builder' ), '2.2 "Falcon"' ); ?></h4>
|
87 |
|
88 |
<p><?php _e( 'We\'re thrilled to announce Beaver Builder 2.2 "Falcon". Beaver Builder 2.2 brings a number of design-focused enhancements and quality-of-life improvements.', 'fl-builder' ); ?></p>
|
93 |
<li><?php _e( 'Break out of the box with <a target="_blank" href="https://kb.wpbeaverbuilder.com/article/678-row-shape-overlays">row shapes</a> and <a target="_blank" href="https://kb.wpbeaverbuilder.com/article/669-color-gradients-for-row-and-column-backgrounds-and-overlays">gradients</a>, plus new border and text shadow effects.', 'fl-builder' ); ?></li>
|
94 |
<li><?php _e( '<a target="_blank" href="https://kb.wpbeaverbuilder.com/article/690-beaver-builder-2-2-changes-to-specific-modules">More module settings</a> and responsive capabilities give you more control with less code.', 'fl-builder' ); ?></li>
|
95 |
</ul>
|
96 |
+
<?php /* translators: 1: blog post url: 2: changelog url */ ?>
|
97 |
<p><?php printf( __( 'There\'s a whole lot more, too! Read about everything else on our <a href="%1$s" target="_blank">update post</a> or <a href="%2$s" target="_blank">change logs</a>.', 'fl-builder' ), $blog_post_url, $change_logs_url ); ?></p>
|
98 |
|
99 |
</div>
|
106 |
|
107 |
<p><?php _e( 'The fastest way to find an answer to a question is to see if someone\'s already answered it!', 'fl-builder' ); ?></p>
|
108 |
|
109 |
+
<?php /* translators: 1: docs url: 2: facebook url */ ?>
|
110 |
<p><?php printf( __( 'For that, check our <a href="%1$s" target="_blank">Knowledge Base</a> or try searching <a href="%2$s" target="_blank">the Beaver Builders Facebook group</a>.', 'fl-builder' ), $docs_url, $fb_url ); ?></p>
|
111 |
|
112 |
<?php if ( true === FL_BUILDER_LITE ) : ?>
|
113 |
+
<?php /* translators: %s: upgrade url */ ?>
|
114 |
<p><?php printf( __( 'If you can\'t find an answer, consider upgrading to a premium version of Beaver Builder. Our expert support team is waiting to answer your questions and help you build your website. <a href="%s" target="_blank">Learn More</a>.', 'fl-builder' ), $upgrade_url ); ?></p>
|
115 |
<?php else : ?>
|
116 |
+
<?php /* translators: %s: support url */ ?>
|
117 |
+
<p><?php printf( __( 'If you can\'t find an answer, feel free to <a href="%s" target="_blank">send us a message with your question.</a>', 'fl-builder' ), $support_url ); ?></p>
|
118 |
<?php endif; ?>
|
119 |
</div>
|
120 |
|
includes/column-settings.php
CHANGED
@@ -441,6 +441,7 @@ FLBuilder::register_settings_form('col', array(
|
|
441 |
'visibility_user_capability' => array(
|
442 |
'type' => 'text',
|
443 |
'label' => __( 'User Capability', 'fl-builder' ),
|
|
|
444 |
'description' => sprintf( __( 'Optional. Set the <a%s>capability</a> required for users to view this column.', 'fl-builder' ), ' href="http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table" target="_blank"' ),
|
445 |
'preview' => array(
|
446 |
'type' => 'none',
|
441 |
'visibility_user_capability' => array(
|
442 |
'type' => 'text',
|
443 |
'label' => __( 'User Capability', 'fl-builder' ),
|
444 |
+
/* translators: %s: wporg docs link */
|
445 |
'description' => sprintf( __( 'Optional. Set the <a%s>capability</a> required for users to view this column.', 'fl-builder' ), ' href="http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table" target="_blank"' ),
|
446 |
'preview' => array(
|
447 |
'type' => 'none',
|
includes/compatibility.php
CHANGED
@@ -355,7 +355,9 @@ function fl_imember_shortcode_fix( $content ) {
|
|
355 |
add_action( 'plugins_loaded', 'fl_fix_nextgen_gallery' );
|
356 |
function fl_fix_nextgen_gallery() {
|
357 |
if ( isset( $_GET['fl_builder'] ) || isset( $_POST['fl_builder_data'] ) || FLBuilderAJAX::doing_ajax() ) {
|
358 |
-
|
|
|
|
|
359 |
}
|
360 |
}
|
361 |
|
@@ -398,37 +400,6 @@ function fl_render_ninja_forms_js( $response ) {
|
|
398 |
return $response;
|
399 |
}
|
400 |
|
401 |
-
/**
|
402 |
-
* Reorder font awesome css.
|
403 |
-
* @since 2.1
|
404 |
-
*/
|
405 |
-
function fl_builder_fa_fix() {
|
406 |
-
|
407 |
-
global $wp_styles;
|
408 |
-
|
409 |
-
$queue = $wp_styles->queue;
|
410 |
-
|
411 |
-
$fa4 = array_search( 'font-awesome', $queue );
|
412 |
-
$fa5 = array_search( 'font-awesome-5', $queue );
|
413 |
-
|
414 |
-
// if fa4 is disabled and both are detected, load fa4 FIRST.
|
415 |
-
if ( false !== $fa4 && false !== $fa5 && $fa4 > $fa5 && ! in_array( 'font-awesome', FLBuilderModel::get_enabled_icons() ) ) {
|
416 |
-
unset( $wp_styles->queue[ $fa4 ] );
|
417 |
-
array_unshift( $wp_styles->queue, 'font-awesome' );
|
418 |
-
}
|
419 |
-
// If fa4 is detected, add a compatibility layer in the footer.
|
420 |
-
// This fixes various theme/themer issues.
|
421 |
-
if ( false !== $fa4 ) {
|
422 |
-
add_action( 'wp_footer', 'fl_builder_fa_fix_callback' );
|
423 |
-
}
|
424 |
-
}
|
425 |
-
add_action( 'wp_enqueue_scripts', 'fl_builder_fa_fix', 99999 );
|
426 |
-
|
427 |
-
function fl_builder_fa_fix_callback() {
|
428 |
-
echo '<style>[class*="fa fa-"]{font-family: FontAwesome !important;}</style>';
|
429 |
-
}
|
430 |
-
|
431 |
-
|
432 |
/**
|
433 |
* Turn off Hummingbird minification
|
434 |
* @since 2.1
|
@@ -573,12 +544,12 @@ function fl_fix_woo_short_description( $content ) {
|
|
573 |
global $post, $fl_woo_description_fix;
|
574 |
|
575 |
// if there is a short description no need to carry on.
|
576 |
-
if ( ''
|
577 |
return $content;
|
578 |
}
|
579 |
|
580 |
// if the product content contains a layout shortcode then extract any css to add to footer later.
|
581 |
-
if ( false !== strpos( $post->post_content, '[fl_builder_insert_layout' ) ) {
|
582 |
$dummy = do_shortcode( $post->post_content );
|
583 |
$scripts = preg_match_all( "#<link rel='stylesheet'.*#", $dummy, $out );
|
584 |
if ( is_array( $out ) ) {
|
@@ -672,12 +643,3 @@ function fl_fix_sumo( $option ) {
|
|
672 |
}
|
673 |
return $option;
|
674 |
}
|
675 |
-
|
676 |
-
add_filter( 'fl_widget_module_output_disabled', 'fl_caldera_widget', 10, 3 );
|
677 |
-
function fl_caldera_widget( $disabled, $module, $class ) {
|
678 |
-
if ( isset( $_GET['fl_builder'] ) && 'Caldera_Forms_Widget' === $class ) {
|
679 |
-
$out = '<script>(function($){$(document).ready(function(){FLBuilderConfig.shouldRefreshOnPublish=true})})(jQuery)</script>';
|
680 |
-
return $out . '<h3>Caldera Form Widget cannot be displayed while builder is open</h3>';
|
681 |
-
}
|
682 |
-
return $disabled;
|
683 |
-
}
|
355 |
add_action( 'plugins_loaded', 'fl_fix_nextgen_gallery' );
|
356 |
function fl_fix_nextgen_gallery() {
|
357 |
if ( isset( $_GET['fl_builder'] ) || isset( $_POST['fl_builder_data'] ) || FLBuilderAJAX::doing_ajax() ) {
|
358 |
+
if ( ! defined( 'NGG_DISABLE_RESOURCE_MANAGER' ) ) {
|
359 |
+
define( 'NGG_DISABLE_RESOURCE_MANAGER', true );
|
360 |
+
}
|
361 |
}
|
362 |
}
|
363 |
|
400 |
return $response;
|
401 |
}
|
402 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
403 |
/**
|
404 |
* Turn off Hummingbird minification
|
405 |
* @since 2.1
|
544 |
global $post, $fl_woo_description_fix;
|
545 |
|
546 |
// if there is a short description no need to carry on.
|
547 |
+
if ( '' !== $content ) {
|
548 |
return $content;
|
549 |
}
|
550 |
|
551 |
// if the product content contains a layout shortcode then extract any css to add to footer later.
|
552 |
+
if ( isset( $post->post_content ) && false !== strpos( $post->post_content, '[fl_builder_insert_layout' ) ) {
|
553 |
$dummy = do_shortcode( $post->post_content );
|
554 |
$scripts = preg_match_all( "#<link rel='stylesheet'.*#", $dummy, $out );
|
555 |
if ( is_array( $out ) ) {
|
643 |
}
|
644 |
return $option;
|
645 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/export.php
CHANGED
@@ -324,11 +324,11 @@ function fl_export_wp( $post_ids = array() ) {
|
|
324 |
$wp_query->in_the_loop = true;
|
325 |
|
326 |
// Fetch 20 posts at a time rather than loading the entire table into memory.
|
|
|
327 |
while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) {
|
328 |
$where = 'WHERE ID IN (' . join( ',', $next_posts ) . ')';
|
329 |
-
|
330 |
-
|
331 |
-
// @codingStandardsIgnoreEnd
|
332 |
|
333 |
// Begin Loop.
|
334 |
foreach ( $posts as $post ) {
|
324 |
$wp_query->in_the_loop = true;
|
325 |
|
326 |
// Fetch 20 posts at a time rather than loading the entire table into memory.
|
327 |
+
// @codingStandardsIgnoreStart
|
328 |
while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) {
|
329 |
$where = 'WHERE ID IN (' . join( ',', $next_posts ) . ')';
|
330 |
+
$posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" );
|
331 |
+
// @codingStandardsIgnoreEnd
|
|
|
332 |
|
333 |
// Begin Loop.
|
334 |
foreach ( $posts as $post ) {
|
includes/loop-settings-matching.php
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
<select name="<?php echo $name; ?>_matching">
|
|
|
2 |
<option value="1" <?php selected( $settings->{ $name . '_matching' }, '1' ); ?>><?php printf( _x( 'Match these %s...', '%s is an object like posts or taxonomies.', 'fl-builder' ), $label ); ?></option>
|
|
|
3 |
<option value="0" <?php selected( $settings->{ $name . '_matching' }, '0' ); ?>><?php printf( _x( 'Match all %s except...', '%s is an object like posts or taxonomies.', 'fl-builder' ), $label ); ?></option>
|
4 |
<?php if ( 'fl_as_terms' === $field['action'] ) : ?>
|
5 |
-
|
|
|
6 |
<?php endif; ?>
|
7 |
</select>
|
1 |
<select name="<?php echo $name; ?>_matching">
|
2 |
+
<?php /* translators: %s: an object like posts or taxonomie */ ?>
|
3 |
<option value="1" <?php selected( $settings->{ $name . '_matching' }, '1' ); ?>><?php printf( _x( 'Match these %s...', '%s is an object like posts or taxonomies.', 'fl-builder' ), $label ); ?></option>
|
4 |
+
<?php /* translators: %s: an object like posts or taxonomie */ ?>
|
5 |
<option value="0" <?php selected( $settings->{ $name . '_matching' }, '0' ); ?>><?php printf( _x( 'Match all %s except...', '%s is an object like posts or taxonomies.', 'fl-builder' ), $label ); ?></option>
|
6 |
<?php if ( 'fl_as_terms' === $field['action'] ) : ?>
|
7 |
+
<?php /* translators: %s: an object like posts or taxonomie */ ?>
|
8 |
+
<option value="related" <?php selected( $settings->{ $name . '_matching' }, 'related' ); ?>><?php printf( _x( 'Match all related %s except...', '%s is an object like posts or taxonomies.', 'fl-builder' ), $label ); ?></option>
|
9 |
<?php endif; ?>
|
10 |
</select>
|
includes/module-settings.php
CHANGED
@@ -75,6 +75,7 @@ FLBuilder::register_settings_form('module_advanced', array(
|
|
75 |
'visibility_user_capability' => array(
|
76 |
'type' => 'text',
|
77 |
'label' => __( 'User Capability', 'fl-builder' ),
|
|
|
78 |
'description' => sprintf( __( 'Optional. Set the <a%s>capability</a> required for users to view this module.', 'fl-builder' ), ' href="http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table" target="_blank"' ),
|
79 |
'preview' => array(
|
80 |
'type' => 'none',
|
75 |
'visibility_user_capability' => array(
|
76 |
'type' => 'text',
|
77 |
'label' => __( 'User Capability', 'fl-builder' ),
|
78 |
+
/* translators: %s: wporg docs link */
|
79 |
'description' => sprintf( __( 'Optional. Set the <a%s>capability</a> required for users to view this module.', 'fl-builder' ), ' href="http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table" target="_blank"' ),
|
80 |
'preview' => array(
|
81 |
'type' => 'none',
|
includes/row-settings.php
CHANGED
@@ -718,6 +718,7 @@ $row_settings = array(
|
|
718 |
'visibility_user_capability' => array(
|
719 |
'type' => 'text',
|
720 |
'label' => __( 'User Capability', 'fl-builder' ),
|
|
|
721 |
'description' => sprintf( __( 'Optional. Set the <a%s>capability</a> required for users to view this row.', 'fl-builder' ), ' href="http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table" target="_blank"' ),
|
722 |
'preview' => array(
|
723 |
'type' => 'none',
|
718 |
'visibility_user_capability' => array(
|
719 |
'type' => 'text',
|
720 |
'label' => __( 'User Capability', 'fl-builder' ),
|
721 |
+
/* translators: %s: wporg docs link */
|
722 |
'description' => sprintf( __( 'Optional. Set the <a%s>capability</a> required for users to view this row.', 'fl-builder' ), ' href="http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table" target="_blank"' ),
|
723 |
'preview' => array(
|
724 |
'type' => 'none',
|
includes/shape-layer.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<div class="fl-builder-layer fl-builder-shape-layer fl-builder-<?php echo $position; ?>-edge-layer">
|
2 |
<svg class="<?php echo $svg_class; ?>" viewBox="<?php echo $view_box; ?>" preserveAspectRatio="<?php echo $preserve_aspect_ratio; ?>">
|
3 |
|
4 |
<defs>
|
1 |
+
<div class="fl-builder-layer fl-builder-shape-layer fl-builder-<?php echo $position; ?>-edge-layer fl-builder-shape-<?php echo esc_attr( $shape_name ); ?>">
|
2 |
<svg class="<?php echo $svg_class; ?>" viewBox="<?php echo $view_box; ?>" preserveAspectRatio="<?php echo $preserve_aspect_ratio; ?>">
|
3 |
|
4 |
<defs>
|
includes/strings.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
*/
|
7 |
|
8 |
__( 'The Beaver Builder Booster plugin is not compatible with your host.', 'fl-builder' );
|
9 |
-
|
10 |
_x( 'Click here to edit content on this %s using an easy drag-and-drop builder.', '%s is the singular post type name (e.g. page)', 'fl-builder' );
|
11 |
|
12 |
__( 'Use an easy drag-and-drop builder to edit content on this page.', 'fl-builder' );
|
6 |
*/
|
7 |
|
8 |
__( 'The Beaver Builder Booster plugin is not compatible with your host.', 'fl-builder' );
|
9 |
+
/* translators: %s: singular label */
|
10 |
_x( 'Click here to edit content on this %s using an easy drag-and-drop builder.', '%s is the singular post type name (e.g. page)', 'fl-builder' );
|
11 |
|
12 |
__( 'Use an easy drag-and-drop builder to edit content on this page.', 'fl-builder' );
|
includes/ui-js-config.php
CHANGED
@@ -70,11 +70,15 @@ echo 'FLBuilderConfig = ' . json_encode( apply_filters('fl_builder_
|
|
70 |
*/
|
71 |
echo 'FLBuilderStrings = ' . json_encode( apply_filters('fl_builder_ui_js_strings', array(
|
72 |
'actionsLightboxTitle' => esc_attr__( 'What would you like to do?', 'fl-builder' ),
|
|
|
73 |
'addField' => esc_attr_x( 'Add %s', 'Field name to add.', 'fl-builder' ),
|
|
|
74 |
'alreadySaved' => esc_attr_x( '%s is already a saved preset.', '%s is the preset hex color code.', 'fl-builder' ),
|
75 |
'audioSelected' => esc_attr__( 'Audio File Selected', 'fl-builder' ),
|
|
|
76 |
'audioSelectedNum' => esc_attr__( '%d Audio File Selected', 'fl-builder' ),
|
77 |
'audiosSelected' => esc_attr__( 'Audio Files Selected', 'fl-builder' ),
|
|
|
78 |
'audiosSelectedNum' => esc_attr__( '%d Audio Files Selected', 'fl-builder' ),
|
79 |
'blank' => esc_attr__( 'Blank', 'fl-builder' ),
|
80 |
'cancel' => esc_attr__( 'Cancel', 'fl-builder' ),
|
@@ -102,6 +106,7 @@ echo 'FLBuilderStrings = ' . json_encode( apply_filters('fl_builder_
|
|
102 |
'draft' => esc_attr__( 'Save Changes and Exit', 'fl-builder' ),
|
103 |
'duplicate' => esc_attr__( 'Duplicate', 'fl-builder' ),
|
104 |
'duplicateLayout' => esc_attr_x( 'Duplicate Layout', 'Duplicate page/post action label.', 'fl-builder' ),
|
|
|
105 |
'editFormField' => esc_attr_x( 'Edit %s', '%s stands for form field label.', 'fl-builder' ),
|
106 |
'editGlobalSettings' => esc_attr__( 'Global Settings', 'fl-builder' ),
|
107 |
'editLayoutSettings' => esc_attr__( 'Layout CSS / Javascript', 'fl-builder' ),
|
@@ -132,16 +137,21 @@ echo 'FLBuilderStrings = ' . json_encode( apply_filters('fl_builder_
|
|
132 |
'ok' => esc_attr__( 'OK', 'fl-builder' ),
|
133 |
'photoPage' => esc_attr__( 'Photo Page', 'fl-builder' ),
|
134 |
'photoSelected' => esc_attr__( 'Photo Selected', 'fl-builder' ),
|
|
|
135 |
'photoSelectedNum' => esc_attr__( '%d Photo Selected', 'fl-builder' ),
|
136 |
'photosSelected' => esc_attr__( 'Photos Selected', 'fl-builder' ),
|
|
|
137 |
'photosSelectedNum' => esc_attr__( '%d Photos Selected', 'fl-builder' ),
|
138 |
'placeholder' => esc_attr__( 'Paste color here...', 'fl-builder' ),
|
139 |
'pleaseWait' => esc_attr__( 'Please Wait...', 'fl-builder' ),
|
|
|
140 |
'presetAdded' => esc_attr_x( '%s added to presets!', '%s is the preset hex color code.', 'fl-builder' ),
|
141 |
'publish' => esc_attr__( 'Publish Changes', 'fl-builder' ),
|
142 |
'remove' => esc_attr__( 'Remove', 'fl-builder' ),
|
143 |
'removePresetConfirm' => esc_attr__( 'Are you sure?', 'fl-builder' ),
|
|
|
144 |
'revisionDate' => esc_attr_x( '%s ago', '%s is a time diff such as 1 day or 2 weeks.', 'fl-builder' ),
|
|
|
145 |
'revisionAuthor' => esc_attr_x( 'By %s', '%s is the author name.', 'fl-builder' ),
|
146 |
'row' => esc_attr__( 'Row', 'fl-builder' ),
|
147 |
'rowSettings' => esc_attr__( 'Row Settings', 'fl-builder' ),
|
70 |
*/
|
71 |
echo 'FLBuilderStrings = ' . json_encode( apply_filters('fl_builder_ui_js_strings', array(
|
72 |
'actionsLightboxTitle' => esc_attr__( 'What would you like to do?', 'fl-builder' ),
|
73 |
+
/* translators: %s: field name */
|
74 |
'addField' => esc_attr_x( 'Add %s', 'Field name to add.', 'fl-builder' ),
|
75 |
+
/* translators: %s: preset color code */
|
76 |
'alreadySaved' => esc_attr_x( '%s is already a saved preset.', '%s is the preset hex color code.', 'fl-builder' ),
|
77 |
'audioSelected' => esc_attr__( 'Audio File Selected', 'fl-builder' ),
|
78 |
+
/* translators: %d: number of files selected */
|
79 |
'audioSelectedNum' => esc_attr__( '%d Audio File Selected', 'fl-builder' ),
|
80 |
'audiosSelected' => esc_attr__( 'Audio Files Selected', 'fl-builder' ),
|
81 |
+
/* translators: %d: number of files selected (plural) */
|
82 |
'audiosSelectedNum' => esc_attr__( '%d Audio Files Selected', 'fl-builder' ),
|
83 |
'blank' => esc_attr__( 'Blank', 'fl-builder' ),
|
84 |
'cancel' => esc_attr__( 'Cancel', 'fl-builder' ),
|
106 |
'draft' => esc_attr__( 'Save Changes and Exit', 'fl-builder' ),
|
107 |
'duplicate' => esc_attr__( 'Duplicate', 'fl-builder' ),
|
108 |
'duplicateLayout' => esc_attr_x( 'Duplicate Layout', 'Duplicate page/post action label.', 'fl-builder' ),
|
109 |
+
/* translators: %s: form field label */
|
110 |
'editFormField' => esc_attr_x( 'Edit %s', '%s stands for form field label.', 'fl-builder' ),
|
111 |
'editGlobalSettings' => esc_attr__( 'Global Settings', 'fl-builder' ),
|
112 |
'editLayoutSettings' => esc_attr__( 'Layout CSS / Javascript', 'fl-builder' ),
|
137 |
'ok' => esc_attr__( 'OK', 'fl-builder' ),
|
138 |
'photoPage' => esc_attr__( 'Photo Page', 'fl-builder' ),
|
139 |
'photoSelected' => esc_attr__( 'Photo Selected', 'fl-builder' ),
|
140 |
+
/* translators: %d: number of selected */
|
141 |
'photoSelectedNum' => esc_attr__( '%d Photo Selected', 'fl-builder' ),
|
142 |
'photosSelected' => esc_attr__( 'Photos Selected', 'fl-builder' ),
|
143 |
+
/* translators: %d: number of selected (plural) */
|
144 |
'photosSelectedNum' => esc_attr__( '%d Photos Selected', 'fl-builder' ),
|
145 |
'placeholder' => esc_attr__( 'Paste color here...', 'fl-builder' ),
|
146 |
'pleaseWait' => esc_attr__( 'Please Wait...', 'fl-builder' ),
|
147 |
+
/* translators: %s: preset color code */
|
148 |
'presetAdded' => esc_attr_x( '%s added to presets!', '%s is the preset hex color code.', 'fl-builder' ),
|
149 |
'publish' => esc_attr__( 'Publish Changes', 'fl-builder' ),
|
150 |
'remove' => esc_attr__( 'Remove', 'fl-builder' ),
|
151 |
'removePresetConfirm' => esc_attr__( 'Are you sure?', 'fl-builder' ),
|
152 |
+
/* translators: %s: time diff - 1 day/2 weeks */
|
153 |
'revisionDate' => esc_attr_x( '%s ago', '%s is a time diff such as 1 day or 2 weeks.', 'fl-builder' ),
|
154 |
+
/* translators: %s: author name */
|
155 |
'revisionAuthor' => esc_attr_x( 'By %s', '%s is the author name.', 'fl-builder' ),
|
156 |
'row' => esc_attr__( 'Row', 'fl-builder' ),
|
157 |
'rowSettings' => esc_attr__( 'Row Settings', 'fl-builder' ),
|
includes/ui-js-templates.php
CHANGED
@@ -139,6 +139,7 @@
|
|
139 |
<?php if ( ! FLBuilderModel::is_post_user_template( 'module' ) && ! $simple_ui ) : ?>
|
140 |
<i class="fl-block-move fas fa-arrows-alt fl-tip" title="<?php _e( 'Move', 'fl-builder' ); ?>"></i>
|
141 |
<?php endif; ?>
|
|
|
142 |
<i class="fl-block-settings fas fa-wrench fl-tip" title="<?php printf( __( '%s Settings', 'fl-builder' ), '{{data.moduleName}}' ); ?>"></i>
|
143 |
<?php if ( ! FLBuilderModel::is_post_user_template( 'module' ) && ! $simple_ui ) : ?>
|
144 |
<i class="fl-block-copy far fa-clone fl-tip" title="<?php _e( 'Duplicate', 'fl-builder' ); ?>"></i>
|
@@ -262,6 +263,18 @@
|
|
262 |
</script>
|
263 |
<!-- #tmpl-fl-alert-lightbox -->
|
264 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
<script type="text/html" id="tmpl-fl-confirm-lightbox">
|
266 |
<div class="fl-lightbox-message">{{{data.message}}}</div>
|
267 |
<div class="fl-lightbox-footer">
|
@@ -401,15 +414,28 @@
|
|
401 |
|
402 |
<div class="fl-builder--menu">
|
403 |
<# for (var key in data.items) {
|
404 |
-
var item
|
405 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
406 |
switch(item.type) {
|
407 |
case "separator":
|
408 |
#><hr><#
|
409 |
break;
|
410 |
case "event":
|
411 |
#>
|
412 |
-
<button class="fl-builder--menu-item" data-type="event" data-event="{{item.eventName}}">{{{item.label}}}
|
413 |
<#
|
414 |
break;
|
415 |
case "link":
|
@@ -419,7 +445,7 @@
|
|
419 |
break;
|
420 |
case "view":
|
421 |
#>
|
422 |
-
<button class="fl-builder--menu-item" data-type="view" data-view="{{item.view}}">{{item.label}}
|
423 |
<#
|
424 |
break;
|
425 |
case "video":
|
139 |
<?php if ( ! FLBuilderModel::is_post_user_template( 'module' ) && ! $simple_ui ) : ?>
|
140 |
<i class="fl-block-move fas fa-arrows-alt fl-tip" title="<?php _e( 'Move', 'fl-builder' ); ?>"></i>
|
141 |
<?php endif; ?>
|
142 |
+
<?php /* translators: %s: module name */ ?>
|
143 |
<i class="fl-block-settings fas fa-wrench fl-tip" title="<?php printf( __( '%s Settings', 'fl-builder' ), '{{data.moduleName}}' ); ?>"></i>
|
144 |
<?php if ( ! FLBuilderModel::is_post_user_template( 'module' ) && ! $simple_ui ) : ?>
|
145 |
<i class="fl-block-copy far fa-clone fl-tip" title="<?php _e( 'Duplicate', 'fl-builder' ); ?>"></i>
|
263 |
</script>
|
264 |
<!-- #tmpl-fl-alert-lightbox -->
|
265 |
|
266 |
+
<script type="text/html" id="tmpl-fl-crash-lightbox">
|
267 |
+
<div class="fl-lightbox-message">{{{data.message}}}</div>
|
268 |
+
<# if ( data.debug ) { #>
|
269 |
+
<div class="fl-lightbox-message-info">Here is the message reported in your browser’s JavaScript console.<pre>{{{data.debug}}}</pre></div>
|
270 |
+
<# } #>
|
271 |
+
<div class="fl-lightbox-message-info">{{{data.info}}}</div>
|
272 |
+
<div class="fl-lightbox-footer">
|
273 |
+
<span class="fl-builder-alert-close fl-builder-button fl-builder-button-large fl-builder-button-primary" href="javascript:void(0);"><?php _e( 'OK', 'fl-builder' ); ?></span>
|
274 |
+
</div>
|
275 |
+
</script>
|
276 |
+
<!-- #tmpl-fl-crash-lightbox -->
|
277 |
+
|
278 |
<script type="text/html" id="tmpl-fl-confirm-lightbox">
|
279 |
<div class="fl-lightbox-message">{{{data.message}}}</div>
|
280 |
<div class="fl-lightbox-footer">
|
414 |
|
415 |
<div class="fl-builder--menu">
|
416 |
<# for (var key in data.items) {
|
417 |
+
var item = data.items[key];
|
418 |
+
var extra = '';
|
419 |
+
if ( 'revisions' === item.view && FLBuilderConfig.revisions_count > 0 ) {
|
420 |
+
extra = '[' + FLBuilderConfig.revisions_count + ']';
|
421 |
+
}
|
422 |
+
if ( 'event' === item.type && 'showLayoutSettings' === item.eventName ) {
|
423 |
+
if( FLBuilderConfig.layout_css_js ) {
|
424 |
+
extra = '•';
|
425 |
+
}
|
426 |
+
}
|
427 |
+
if ( 'event' === item.type && 'showGlobalSettings' === item.eventName ) {
|
428 |
+
if( '' !== FLBuilderConfig.global.css || '' !== FLBuilderConfig.global.js ) {
|
429 |
+
extra = '•';
|
430 |
+
}
|
431 |
+
}
|
432 |
switch(item.type) {
|
433 |
case "separator":
|
434 |
#><hr><#
|
435 |
break;
|
436 |
case "event":
|
437 |
#>
|
438 |
+
<button class="fl-builder--menu-item" data-type="event" data-event="{{item.eventName}}">{{{item.label}}}<span class="menu-event event-{{item.eventName}}">{{{extra}}}</span><span class="fl-builder--menu-item-accessory">{{{item.accessory}}}</span></button>
|
439 |
<#
|
440 |
break;
|
441 |
case "link":
|
445 |
break;
|
446 |
case "view":
|
447 |
#>
|
448 |
+
<button class="fl-builder--menu-item" data-type="view" data-view="{{item.view}}">{{item.label}}<span class="menu-view view-{{item.view}}">{{extra}}</span><span class="fl-builder--menu-item-accessory">→</span></button>
|
449 |
<#
|
450 |
break;
|
451 |
case "video":
|
includes/ui-loop-settings.php
CHANGED
@@ -142,6 +142,7 @@ do_action( 'fl_builder_loop_settings_before_form', $settings );
|
|
142 |
'action' => 'fl_as_posts',
|
143 |
'data' => $slug,
|
144 |
'label' => $type->label,
|
|
|
145 |
'help' => sprintf( __( 'Enter a list of %1$s.', 'fl-builder' ), $type->label ),
|
146 |
'matching' => true,
|
147 |
), $settings );
|
@@ -156,6 +157,7 @@ do_action( 'fl_builder_loop_settings_before_form', $settings );
|
|
156 |
'action' => 'fl_as_terms',
|
157 |
'data' => $tax_slug,
|
158 |
'label' => $tax->label,
|
|
|
159 |
'help' => sprintf( __( 'Enter a list of %1$s.', 'fl-builder' ), $tax->label ),
|
160 |
'matching' => true,
|
161 |
), $settings );
|
142 |
'action' => 'fl_as_posts',
|
143 |
'data' => $slug,
|
144 |
'label' => $type->label,
|
145 |
+
/* translators: %s: type label */
|
146 |
'help' => sprintf( __( 'Enter a list of %1$s.', 'fl-builder' ), $type->label ),
|
147 |
'matching' => true,
|
148 |
), $settings );
|
157 |
'action' => 'fl_as_terms',
|
158 |
'data' => $tax_slug,
|
159 |
'label' => $tax->label,
|
160 |
+
/* translators: %s: tax label */
|
161 |
'help' => sprintf( __( 'Enter a list of %1$s.', 'fl-builder' ), $tax->label ),
|
162 |
'matching' => true,
|
163 |
), $settings );
|
includes/updater-config.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
if ( class_exists( 'FLUpdater' ) ) {
|
4 |
FLUpdater::add_product(array(
|
5 |
'name' => 'Beaver Builder Plugin (Lite Version)',
|
6 |
-
'version' => '2.2.
|
7 |
'slug' => 'bb-plugin',
|
8 |
'type' => 'plugin',
|
9 |
));
|
3 |
if ( class_exists( 'FLUpdater' ) ) {
|
4 |
FLUpdater::add_product(array(
|
5 |
'name' => 'Beaver Builder Plugin (Lite Version)',
|
6 |
+
'version' => '2.2.2.5',
|
7 |
'slug' => 'bb-plugin',
|
8 |
'type' => 'plugin',
|
9 |
));
|
includes/updater/classes/class-fl-updater.php
CHANGED
@@ -14,7 +14,7 @@ final class FLUpdater {
|
|
14 |
* @access private
|
15 |
* @var string $_updates_api_url
|
16 |
*/
|
17 |
-
static private $_updates_api_url = '
|
18 |
|
19 |
/**
|
20 |
* An internal array of data for each product.
|
@@ -376,9 +376,11 @@ final class FLUpdater {
|
|
376 |
|
377 |
if ( ! $license ) {
|
378 |
$link = sprintf( '<a href="%s" target="_blank" style="color: #fff; text-decoration: underline;">%s »</a>', admin_url( '/options-general.php?page=fl-builder-settings#license' ), __( 'Enter License Key', 'fl-builder' ) );
|
|
|
379 |
$text = sprintf( __( 'Please enter a valid license key to enable automatic updates. %s', 'fl-builder' ), $link );
|
380 |
} else {
|
381 |
$link = sprintf( '<a href="%s" target="_blank" style="color: #fff; text-decoration: underline;">%s »</a>', $plugin_data['PluginURI'], __( 'Subscribe Now', 'fl-builder' ) );
|
|
|
382 |
$text = sprintf( __( 'Please subscribe to enable automatic updates for this plugin. %s', 'fl-builder' ), $link );
|
383 |
}
|
384 |
|
14 |
* @access private
|
15 |
* @var string $_updates_api_url
|
16 |
*/
|
17 |
+
static private $_updates_api_url = 'https://updates.wpbeaverbuilder.com/';
|
18 |
|
19 |
/**
|
20 |
* An internal array of data for each product.
|
376 |
|
377 |
if ( ! $license ) {
|
378 |
$link = sprintf( '<a href="%s" target="_blank" style="color: #fff; text-decoration: underline;">%s »</a>', admin_url( '/options-general.php?page=fl-builder-settings#license' ), __( 'Enter License Key', 'fl-builder' ) );
|
379 |
+
/* translators: %s: link to license tab */
|
380 |
$text = sprintf( __( 'Please enter a valid license key to enable automatic updates. %s', 'fl-builder' ), $link );
|
381 |
} else {
|
382 |
$link = sprintf( '<a href="%s" target="_blank" style="color: #fff; text-decoration: underline;">%s »</a>', $plugin_data['PluginURI'], __( 'Subscribe Now', 'fl-builder' ) );
|
383 |
+
/* translators: %s: subscribe link */
|
384 |
$text = sprintf( __( 'Please subscribe to enable automatic updates for this plugin. %s', 'fl-builder' ), $link );
|
385 |
}
|
386 |
|
js/fl-builder-admin-settings.js
CHANGED
@@ -56,6 +56,51 @@
|
|
56 |
$('.fl-delete-icon-set').on('click', FLBuilderAdminSettings._deleteCustomIconSet);
|
57 |
$('#uninstall-form').on('submit', FLBuilderAdminSettings._uninstallFormSubmit);
|
58 |
$( '.fl-settings-form .dashicons-editor-help' ).tipTip();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
},
|
60 |
|
61 |
/**
|
56 |
$('.fl-delete-icon-set').on('click', FLBuilderAdminSettings._deleteCustomIconSet);
|
57 |
$('#uninstall-form').on('submit', FLBuilderAdminSettings._uninstallFormSubmit);
|
58 |
$( '.fl-settings-form .dashicons-editor-help' ).tipTip();
|
59 |
+
$( '.subscription-form .subscribe-button' ).on( 'click', FLBuilderAdminSettings._welcomeSubscribe);
|
60 |
+
},
|
61 |
+
|
62 |
+
_welcomeSubscribe: function()
|
63 |
+
{
|
64 |
+
form = $('.subscription-form')
|
65 |
+
var error = form.find('.error')
|
66 |
+
var spinner = form.find('.dashicons')
|
67 |
+
|
68 |
+
if( error.css('display') != 'none' ) {
|
69 |
+
error.hide()
|
70 |
+
}
|
71 |
+
|
72 |
+
name = form.find( '.input-group-field.name').val()
|
73 |
+
email = form.find( '.input-group-field.email').val()
|
74 |
+
nonce = form.find( '#_wpnonce' ).val()
|
75 |
+
|
76 |
+
if ( ! email || ! name ) {
|
77 |
+
error.html('Please enter required fields').fadeIn()
|
78 |
+
return false;
|
79 |
+
}
|
80 |
+
spinner.css('color', '#fff')
|
81 |
+
spinner.addClass('spin')
|
82 |
+
|
83 |
+
data = {
|
84 |
+
'action' : 'fl_welcome_submit',
|
85 |
+
'name' : name,
|
86 |
+
'email' : email,
|
87 |
+
'_wpnonce': nonce
|
88 |
+
}
|
89 |
+
|
90 |
+
console.log(data)
|
91 |
+
|
92 |
+
$.post(ajaxurl, data, function(response) {
|
93 |
+
spinner.css( 'color', '#0a3c4b' );
|
94 |
+
spinner.removeClass( 'spin' );
|
95 |
+
if( response.success ) {
|
96 |
+
$('.subscribe-button').hide()
|
97 |
+
$('.input-group').remove()
|
98 |
+
spinner.remove()
|
99 |
+
$( error ).html( '<h2>' + response.data.message + '</h2>' ).fadeIn()
|
100 |
+
} else {
|
101 |
+
$( error ).html(response.data.message).fadeIn()
|
102 |
+
}
|
103 |
+
});
|
104 |
},
|
105 |
|
106 |
/**
|
js/fl-builder-ajax-layout.js
CHANGED
@@ -8,7 +8,8 @@
|
|
8 |
*/
|
9 |
FLBuilderAJAXLayout = function( data, callback )
|
10 |
{
|
11 |
-
|
|
|
12 |
this._callback = callback;
|
13 |
this._post = FLBuilderConfig.postId;
|
14 |
this._head = $('head').eq(0);
|
8 |
*/
|
9 |
FLBuilderAJAXLayout = function( data, callback )
|
10 |
{
|
11 |
+
|
12 |
+
this._data = $.extend( {}, this._defaults, typeof data == 'string' ? FLBuilder._jsonParse( data ) : data );
|
13 |
this._callback = callback;
|
14 |
this._post = FLBuilderConfig.postId;
|
15 |
this._head = $('head').eq(0);
|
js/fl-builder-layout.js
CHANGED
@@ -534,7 +534,7 @@
|
|
534 |
}
|
535 |
|
536 |
// Comply with the audio policy in some browsers like Chrome and Safari.
|
537 |
-
if ( stateCount > 1 && -1 === event.data && "yes" === enableAudio ) {
|
538 |
player.mute();
|
539 |
player.playVideo();
|
540 |
audioButton.show();
|
534 |
}
|
535 |
|
536 |
// Comply with the audio policy in some browsers like Chrome and Safari.
|
537 |
+
if ( stateCount > 1 && (-1 === event.data || 2 === event.data) && "yes" === enableAudio ) {
|
538 |
player.mute();
|
539 |
player.playVideo();
|
540 |
audioButton.show();
|
js/fl-builder-libs.js
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
/**
|
3 |
+
* JSONfn - javascript (both node.js and browser) plugin to stringify,
|
4 |
+
* parse and clone objects with Functions, Regexp and Date.
|
5 |
+
*
|
6 |
+
* Version - 1.1.0
|
7 |
+
* Copyright (c) Vadim Kiryukhin
|
8 |
+
* vkiryukhin @ gmail.com
|
9 |
+
* http://www.eslinstructor.net/jsonfn/
|
10 |
+
*
|
11 |
+
* Licensed under the MIT license ( http://www.opensource.org/licenses/mit-license.php )
|
12 |
+
*
|
13 |
+
* USAGE:
|
14 |
+
* browser:
|
15 |
+
* JSONfn.stringify(obj);
|
16 |
+
* JSONfn.parse(str[, date2obj]);
|
17 |
+
* JSONfn.clone(obj[, date2obj]);
|
18 |
+
*
|
19 |
+
* nodejs:
|
20 |
+
* var JSONfn = require('path/to/json-fn');
|
21 |
+
* JSONfn.stringify(obj);
|
22 |
+
* JSONfn.parse(str[, date2obj]);
|
23 |
+
* JSONfn.clone(obj[, date2obj]);
|
24 |
+
*
|
25 |
+
*
|
26 |
+
* @obj - Object;
|
27 |
+
* @str - String, which is returned by JSONfn.stringify() function;
|
28 |
+
* @date2obj - Boolean (optional); if true, date string in ISO8061 format
|
29 |
+
* is converted into a Date object; otherwise, it is left as a String.
|
30 |
+
*/
|
31 |
+
|
32 |
+
(function (exports) {
|
33 |
+
"use strict";
|
34 |
+
|
35 |
+
exports.stringify = function (obj) {
|
36 |
+
|
37 |
+
return JSON.stringify(obj, function (key, value) {
|
38 |
+
var fnBody;
|
39 |
+
if (value instanceof Function || typeof value == 'function') {
|
40 |
+
|
41 |
+
|
42 |
+
fnBody = value.toString();
|
43 |
+
|
44 |
+
if (fnBody.length < 8 || fnBody.substring(0, 8) !== 'function') { //this is ES6 Arrow Function
|
45 |
+
return '_NuFrRa_' + fnBody;
|
46 |
+
}
|
47 |
+
return fnBody;
|
48 |
+
}
|
49 |
+
if (value instanceof RegExp) {
|
50 |
+
return '_PxEgEr_' + value;
|
51 |
+
}
|
52 |
+
return value;
|
53 |
+
});
|
54 |
+
};
|
55 |
+
|
56 |
+
exports.parse = function (str, date2obj) {
|
57 |
+
|
58 |
+
var iso8061 = date2obj ? /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/ : false;
|
59 |
+
|
60 |
+
return JSON.parse(str, function (key, value) {
|
61 |
+
var prefix;
|
62 |
+
|
63 |
+
if (typeof value != 'string') {
|
64 |
+
return value;
|
65 |
+
}
|
66 |
+
if (value.length < 8) {
|
67 |
+
return value;
|
68 |
+
}
|
69 |
+
|
70 |
+
prefix = value.substring(0, 8);
|
71 |
+
|
72 |
+
if (iso8061 && value.match(iso8061)) {
|
73 |
+
return new Date(value);
|
74 |
+
}
|
75 |
+
if (prefix === 'function') {
|
76 |
+
return eval('(' + value + ')');
|
77 |
+
}
|
78 |
+
if (prefix === '_PxEgEr_') {
|
79 |
+
return eval(value.slice(8));
|
80 |
+
}
|
81 |
+
if (prefix === '_NuFrRa_') {
|
82 |
+
return eval(value.slice(8));
|
83 |
+
}
|
84 |
+
|
85 |
+
return value;
|
86 |
+
});
|
87 |
+
};
|
88 |
+
|
89 |
+
exports.clone = function (obj, date2obj) {
|
90 |
+
return exports.parse(exports.stringify(obj), date2obj);
|
91 |
+
};
|
92 |
+
|
93 |
+
}(typeof exports === 'undefined' ? (window.JSONfn = {}) : exports));
|
js/fl-builder-preview.js
CHANGED
@@ -1886,7 +1886,7 @@
|
|
1886 |
args.unitSelect = field.find( '.fl-field-unit-select' );
|
1887 |
args.getValues = function() {
|
1888 |
var inputVal = args.input.val(),
|
1889 |
-
unitVal = args.
|
1890 |
values = {
|
1891 |
value: inputVal,
|
1892 |
unit: unitVal,
|
@@ -2323,14 +2323,23 @@
|
|
2323 |
weight = parent.find( '.fl-font-field-weight' ),
|
2324 |
uniqueID = preview.id + '-' + this.nodeId,
|
2325 |
selector = this._getPreviewSelector( this.classes.node, preview.selector ),
|
2326 |
-
important = preview.important ? ' !important' : ''
|
|
|
2327 |
|
2328 |
// If the selected font is a Google Font, build the font stylesheet
|
2329 |
if( fontGroup == 'Google' ){
|
2330 |
this._buildFontStylesheet( uniqueID, font.val(), weight.val() );
|
2331 |
}
|
2332 |
|
2333 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2334 |
this.updateCSSRule( selector, 'font-weight', 'default' === weight.val() ? '' : weight.val() + important );
|
2335 |
},
|
2336 |
|
1886 |
args.unitSelect = field.find( '.fl-field-unit-select' );
|
1887 |
args.getValues = function() {
|
1888 |
var inputVal = args.input.val(),
|
1889 |
+
unitVal = args.unitSelect.val(),
|
1890 |
values = {
|
1891 |
value: inputVal,
|
1892 |
unit: unitVal,
|
2323 |
weight = parent.find( '.fl-font-field-weight' ),
|
2324 |
uniqueID = preview.id + '-' + this.nodeId,
|
2325 |
selector = this._getPreviewSelector( this.classes.node, preview.selector ),
|
2326 |
+
important = preview.important ? ' !important' : '',
|
2327 |
+
val = ''
|
2328 |
|
2329 |
// If the selected font is a Google Font, build the font stylesheet
|
2330 |
if( fontGroup == 'Google' ){
|
2331 |
this._buildFontStylesheet( uniqueID, font.val(), weight.val() );
|
2332 |
}
|
2333 |
|
2334 |
+
val = font.val();
|
2335 |
+
|
2336 |
+
// Some google fonts that end with numbers need to be wrapped in quotes.
|
2337 |
+
var checkNum = new RegExp('[0-9]');
|
2338 |
+
if( checkNum.test( font.val() ) ){
|
2339 |
+
val = '"' + font.val() + '"';
|
2340 |
+
}
|
2341 |
+
|
2342 |
+
this.updateCSSRule( selector, 'font-family', 'Default' === font.val() ? '' : val + important );
|
2343 |
this.updateCSSRule( selector, 'font-weight', 'default' === weight.val() ? '' : weight.val() + important );
|
2344 |
},
|
2345 |
|
js/fl-builder-responsive-preview.js
CHANGED
@@ -62,7 +62,7 @@
|
|
62 |
src = FLBuilderConfig.previewUrl,
|
63 |
last = $( '#fl-builder-preview-mask, #fl-builder-preview-frame' ),
|
64 |
mask = $( '<div id="fl-builder-preview-mask"></div>' ),
|
65 |
-
frame = $( '<iframe id="fl-builder-preview-frame" src="' + src + '"
|
66 |
|
67 |
last.remove();
|
68 |
body.append( mask );
|
62 |
src = FLBuilderConfig.previewUrl,
|
63 |
last = $( '#fl-builder-preview-mask, #fl-builder-preview-frame' ),
|
64 |
mask = $( '<div id="fl-builder-preview-mask"></div>' ),
|
65 |
+
frame = $( '<iframe id="fl-builder-preview-frame" src="' + src + '"></iframe>' );
|
66 |
|
67 |
last.remove();
|
68 |
body.append( mask );
|
js/fl-builder-revisions.js
CHANGED
@@ -101,7 +101,7 @@
|
|
101 |
*/
|
102 |
refreshItemsComplete: function( response )
|
103 |
{
|
104 |
-
FLBuilderConfig.revisions =
|
105 |
|
106 |
this.setupMainMenuData();
|
107 |
},
|
@@ -231,11 +231,19 @@
|
|
231 |
* @param {String} response
|
232 |
*/
|
233 |
restoreComplete: function( response ) {
|
234 |
-
var data =
|
235 |
-
|
236 |
FLBuilder._renderLayout( data.layout );
|
237 |
FLBuilder.triggerHook( 'didRestoreRevisionComplete', data.config );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
}
|
|
|
239 |
};
|
240 |
|
241 |
$( function() { Revisions.init(); } );
|
101 |
*/
|
102 |
refreshItemsComplete: function( response )
|
103 |
{
|
104 |
+
FLBuilderConfig.revisions = FLBuilder._jsonParse( response );
|
105 |
|
106 |
this.setupMainMenuData();
|
107 |
},
|
231 |
* @param {String} response
|
232 |
*/
|
233 |
restoreComplete: function( response ) {
|
234 |
+
var data = FLBuilder._jsonParse( response );
|
|
|
235 |
FLBuilder._renderLayout( data.layout );
|
236 |
FLBuilder.triggerHook( 'didRestoreRevisionComplete', data.config );
|
237 |
+
|
238 |
+
settings = data.settings
|
239 |
+
if( typeof( settings.css ) != "undefined" && settings.css !== null) {
|
240 |
+
FLBuilderSettingsConfig.settings.layout.css = settings.css
|
241 |
+
}
|
242 |
+
if( typeof( settings.js ) != "undefined" && settings.js !== null) {
|
243 |
+
FLBuilderSettingsConfig.settings.layout.js = settings.js
|
244 |
+
}
|
245 |
}
|
246 |
+
|
247 |
};
|
248 |
|
249 |
$( function() { Revisions.init(); } );
|
js/fl-builder-services.js
CHANGED
@@ -106,7 +106,7 @@
|
|
106 |
*/
|
107 |
_serviceChangeComplete: function( response )
|
108 |
{
|
109 |
-
var data =
|
110 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
111 |
selectRow = wrap.find( '.fl-builder-service-select-row' );
|
112 |
|
@@ -158,7 +158,7 @@
|
|
158 |
*/
|
159 |
_connectComplete: function( response )
|
160 |
{
|
161 |
-
var data =
|
162 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
163 |
selectRow = wrap.find( '.fl-builder-service-select-row' ),
|
164 |
select = wrap.find( '.fl-builder-service-select' ),
|
@@ -243,7 +243,7 @@
|
|
243 |
*/
|
244 |
_accountChangeComplete: function( response )
|
245 |
{
|
246 |
-
var data =
|
247 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
248 |
accountRow = wrap.find( '.fl-builder-service-account-row' );
|
249 |
|
@@ -358,7 +358,7 @@
|
|
358 |
*/
|
359 |
_campaignMonitorClientChangeComplete: function( response )
|
360 |
{
|
361 |
-
var data =
|
362 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
363 |
client = wrap.find( '.fl-builder-campaign-monitor-client-select' );
|
364 |
|
@@ -409,7 +409,7 @@
|
|
409 |
*/
|
410 |
_mailChimpListChangeComplete: function( response )
|
411 |
{
|
412 |
-
var data =
|
413 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
414 |
list = wrap.find( '.fl-builder-service-list-select' );
|
415 |
|
@@ -463,7 +463,7 @@
|
|
463 |
*/
|
464 |
_activeCampaignTypeChangeComplete: function( response )
|
465 |
{
|
466 |
-
var data =
|
467 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
468 |
fieldRow = wrap.find( '.fl-builder-service-field-row' );
|
469 |
|
106 |
*/
|
107 |
_serviceChangeComplete: function( response )
|
108 |
{
|
109 |
+
var data = FLBuilder._jsonParse( response ),
|
110 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
111 |
selectRow = wrap.find( '.fl-builder-service-select-row' );
|
112 |
|
158 |
*/
|
159 |
_connectComplete: function( response )
|
160 |
{
|
161 |
+
var data = FLBuilder._jsonParse( response ),
|
162 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
163 |
selectRow = wrap.find( '.fl-builder-service-select-row' ),
|
164 |
select = wrap.find( '.fl-builder-service-select' ),
|
243 |
*/
|
244 |
_accountChangeComplete: function( response )
|
245 |
{
|
246 |
+
var data = FLBuilder._jsonParse( response ),
|
247 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
248 |
accountRow = wrap.find( '.fl-builder-service-account-row' );
|
249 |
|
358 |
*/
|
359 |
_campaignMonitorClientChangeComplete: function( response )
|
360 |
{
|
361 |
+
var data = FLBuilder._jsonParse( response ),
|
362 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
363 |
client = wrap.find( '.fl-builder-campaign-monitor-client-select' );
|
364 |
|
409 |
*/
|
410 |
_mailChimpListChangeComplete: function( response )
|
411 |
{
|
412 |
+
var data = FLBuilder._jsonParse( response ),
|
413 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
414 |
list = wrap.find( '.fl-builder-service-list-select' );
|
415 |
|
463 |
*/
|
464 |
_activeCampaignTypeChangeComplete: function( response )
|
465 |
{
|
466 |
+
var data = FLBuilder._jsonParse( response ),
|
467 |
wrap = $( '.fl-builder-service-settings-loading' ),
|
468 |
fieldRow = wrap.find( '.fl-builder-service-field-row' );
|
469 |
|
js/fl-builder-ui-settings-forms.js
CHANGED
@@ -132,7 +132,7 @@
|
|
132 |
action : 'get_node_settings',
|
133 |
node_id : config.nodeId,
|
134 |
}, function( response ) {
|
135 |
-
config.settings =
|
136 |
FLBuilderSettingsConfig.nodes[ config.nodeId ] = config.settings;
|
137 |
FLBuilderSettingsForms.render( config, callback );
|
138 |
FLBuilder.hideAjaxLoader();
|
@@ -418,7 +418,7 @@
|
|
418 |
* @param {String} response
|
419 |
*/
|
420 |
renderLegacySettingsComplete: function( response ) {
|
421 |
-
var data = 'object' === typeof response ? response :
|
422 |
lightbox = null,
|
423 |
form = null,
|
424 |
name = '',
|
132 |
action : 'get_node_settings',
|
133 |
node_id : config.nodeId,
|
134 |
}, function( response ) {
|
135 |
+
config.settings = FLBuilder._jsonParse( response );
|
136 |
FLBuilderSettingsConfig.nodes[ config.nodeId ] = config.settings;
|
137 |
FLBuilderSettingsForms.render( config, callback );
|
138 |
FLBuilder.hideAjaxLoader();
|
418 |
* @param {String} response
|
419 |
*/
|
420 |
renderLegacySettingsComplete: function( response ) {
|
421 |
+
var data = 'object' === typeof response ? response : FLBuilder._jsonParse( response ),
|
422 |
lightbox = null,
|
423 |
form = null,
|
424 |
name = '',
|
js/fl-builder.js
CHANGED
@@ -521,11 +521,16 @@
|
|
521 |
moduleConnections = '';
|
522 |
|
523 |
// Module Connections.
|
524 |
-
if ( 'row' == FLBuilderConfig.userTemplateType
|
525 |
moduleConnections = FLBuilder._contentClass + ' .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, ' +
|
526 |
FLBuilder._contentClass + ' .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target, ' +
|
527 |
FLBuilder._contentClass + ' .fl-row:not(.fl-builder-node-loading) .fl-col-content';
|
528 |
}
|
|
|
|
|
|
|
|
|
|
|
529 |
else {
|
530 |
moduleConnections = FLBuilder._contentClass + ' .fl-row-drop-target, ' +
|
531 |
FLBuilder._contentClass + ' .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, ' +
|
@@ -1700,7 +1705,7 @@
|
|
1700 |
*/
|
1701 |
_saveGlobalSettingsComplete: function( response )
|
1702 |
{
|
1703 |
-
FLBuilderConfig.global =
|
1704 |
|
1705 |
FLBuilder.triggerHook( 'didSaveGlobalSettingsComplete', FLBuilderConfig.global );
|
1706 |
|
@@ -1882,7 +1887,7 @@
|
|
1882 |
*/
|
1883 |
_applyTemplateComplete: function( response )
|
1884 |
{
|
1885 |
-
var data =
|
1886 |
|
1887 |
FLBuilder._renderLayout( data.layout );
|
1888 |
FLBuilder.triggerHook( 'didApplyTemplateComplete', data.config );
|
@@ -1898,7 +1903,7 @@
|
|
1898 |
*/
|
1899 |
_applyUserTemplateComplete: function( response )
|
1900 |
{
|
1901 |
-
var data =
|
1902 |
|
1903 |
if ( null !== data.layout_css ) {
|
1904 |
$( '#fl-builder-layout-css' ).html( data.layout_css );
|
@@ -1966,7 +1971,7 @@
|
|
1966 |
_saveUserTemplateSettingsComplete: function(data)
|
1967 |
{
|
1968 |
if ( !data ) return;
|
1969 |
-
var data =
|
1970 |
|
1971 |
FLBuilderConfig.contentItems.template.push(data);
|
1972 |
FLBuilder.triggerHook('contentItemsChanged');
|
@@ -2247,7 +2252,7 @@
|
|
2247 |
action : 'render_node',
|
2248 |
node_id : nodeId
|
2249 |
}, function( response ) {
|
2250 |
-
FLBuilder._renderLayout(
|
2251 |
}.bind( this ) );
|
2252 |
},
|
2253 |
|
@@ -3346,7 +3351,7 @@
|
|
3346 |
*/
|
3347 |
_addRowComplete: function(response)
|
3348 |
{
|
3349 |
-
var data = 'object' === typeof response ? response :
|
3350 |
content = $(FLBuilder._contentClass),
|
3351 |
rowId = $(data.html).data('node');
|
3352 |
|
@@ -3454,7 +3459,7 @@
|
|
3454 |
settings: settings,
|
3455 |
settings_id: formNodeId
|
3456 |
}, function( response ) {
|
3457 |
-
var data =
|
3458 |
data.nodeParent = $( FLBuilder._contentClass );
|
3459 |
data.nodePosition = $( FLBuilder._contentClass + ' > .fl-row' ).index( clone );
|
3460 |
data.duplicatedRow = nodeId;
|
@@ -4189,7 +4194,7 @@
|
|
4189 |
settings: settings,
|
4190 |
settings_id: formNodeId
|
4191 |
}, function( response ){
|
4192 |
-
var data =
|
4193 |
data.nodeParent = group;
|
4194 |
data.nodePosition = clone.index();
|
4195 |
data.duplicatedColumn = nodeId;
|
@@ -4371,7 +4376,7 @@
|
|
4371 |
*/
|
4372 |
_addColsComplete: function( response )
|
4373 |
{
|
4374 |
-
var data = 'object' === typeof response ? response :
|
4375 |
col = null;
|
4376 |
|
4377 |
data.nodeParent = FLBuilder._newColParent;
|
@@ -4437,7 +4442,7 @@
|
|
4437 |
*/
|
4438 |
_addColGroupComplete: function(response)
|
4439 |
{
|
4440 |
-
var data =
|
4441 |
html = $(data.html),
|
4442 |
groupId = html.data('node'),
|
4443 |
colId = html.find('.fl-col').data('node');
|
@@ -5151,7 +5156,7 @@
|
|
5151 |
node_id: nodeId,
|
5152 |
settings: settings
|
5153 |
}, function( response ) {
|
5154 |
-
var data =
|
5155 |
data.nodeParent = parent;
|
5156 |
data.nodePosition = parent.find( ' > .fl-col-group, > .fl-module' ).index( clone );
|
5157 |
data.duplicatedModule = nodeId;
|
@@ -5240,6 +5245,7 @@
|
|
5240 |
head.append( config.assets.css );
|
5241 |
}
|
5242 |
if ( '' !== config.assets.js ) {
|
|
|
5243 |
head.append( config.assets.js );
|
5244 |
}
|
5245 |
FLBuilder._loadedModuleAssets.push( data.type );
|
@@ -5354,7 +5360,7 @@
|
|
5354 |
*/
|
5355 |
_addModuleComplete: function( response )
|
5356 |
{
|
5357 |
-
var data =
|
5358 |
|
5359 |
// Setup a preview layout if we have one.
|
5360 |
if ( data.layout ) {
|
@@ -5502,7 +5508,7 @@
|
|
5502 |
*/
|
5503 |
_saveNodeTemplateComplete: function( response )
|
5504 |
{
|
5505 |
-
var data =
|
5506 |
panel = $( '.fl-builder-saved-' + data.type + 's' ),
|
5507 |
blocks = panel.find( '.fl-builder-block' ),
|
5508 |
block = null,
|
@@ -5717,11 +5723,11 @@
|
|
5717 |
position : position
|
5718 |
}, function( response ) {
|
5719 |
if ( action.indexOf( 'row' ) > -1 ) {
|
5720 |
-
var data =
|
5721 |
FLBuilder.triggerHook( 'didApplyRowTemplateComplete', data.config );
|
5722 |
callback( data.layout );
|
5723 |
} else if ( action.indexOf( 'col' ) > -1 ) {
|
5724 |
-
var data =
|
5725 |
FLBuilder.triggerHook( 'didApplyColTemplateComplete', data.config );
|
5726 |
callback( data.layout );
|
5727 |
} else {
|
@@ -5843,7 +5849,7 @@
|
|
5843 |
FLBuilder._lightbox._resizeEditors();
|
5844 |
|
5845 |
$( '.fl-builder-settings-fields' ).css( 'visibility', 'visible' );
|
5846 |
-
|
5847 |
/**
|
5848 |
* Hook for settings form init.
|
5849 |
*/
|
@@ -6100,7 +6106,8 @@
|
|
6100 |
existingNodes = null,
|
6101 |
previewModule = null,
|
6102 |
previewCol = null,
|
6103 |
-
existingCol = null
|
|
|
6104 |
|
6105 |
// Close a nested settings lightbox.
|
6106 |
if ( nestedLightbox.length > 0 ) {
|
@@ -6115,7 +6122,7 @@
|
|
6115 |
previewCol = previewModule.closest('.fl-col');
|
6116 |
existingCol = existingNodes.find('.fl-node-' + previewCol.data('node'));
|
6117 |
|
6118 |
-
if(existingCol.length > 0) {
|
6119 |
FLBuilder._deleteModule(previewModule);
|
6120 |
}
|
6121 |
else {
|
@@ -6406,7 +6413,7 @@
|
|
6406 |
if ( nodeId && config[ nodeId ] ) {
|
6407 |
original = config[ nodeId ];
|
6408 |
} else if ( formJSON.length ) {
|
6409 |
-
original =
|
6410 |
}
|
6411 |
|
6412 |
if ( original ) {
|
@@ -6516,7 +6523,7 @@
|
|
6516 |
*/
|
6517 |
_saveSettingsComplete: function( render, preview, response )
|
6518 |
{
|
6519 |
-
var data =
|
6520 |
callback = function() {
|
6521 |
if( preview && data.layout.partial && data.layout.nodeId === preview.nodeId ) {
|
6522 |
preview.clear();
|
@@ -6923,7 +6930,7 @@
|
|
6923 |
action: 'get_autosuggest_values',
|
6924 |
fields: data
|
6925 |
}, function( response ) {
|
6926 |
-
values =
|
6927 |
for ( name in values ) {
|
6928 |
$( '.fl-suggest-field[name="' + name + '"]' ).attr( 'data-value', values[ name ] );
|
6929 |
}
|
@@ -7338,7 +7345,7 @@
|
|
7338 |
// TOGGLE sections, fields or tabs.
|
7339 |
if(typeof toggle !== 'undefined') {
|
7340 |
|
7341 |
-
toggle =
|
7342 |
|
7343 |
for(i in toggle) {
|
7344 |
FLBuilder._settingsSelectToggle(toggle[i].fields, 'hide', '#fl-field-');
|
@@ -7356,7 +7363,7 @@
|
|
7356 |
// HIDE sections, fields or tabs.
|
7357 |
if(typeof hide !== 'undefined') {
|
7358 |
|
7359 |
-
hide =
|
7360 |
|
7361 |
for(i in hide) {
|
7362 |
FLBuilder._settingsSelectToggle(hide[i].fields, 'show', '#fl-field-');
|
@@ -7374,7 +7381,7 @@
|
|
7374 |
// TRIGGER select inputs.
|
7375 |
if(typeof trigger !== 'undefined') {
|
7376 |
|
7377 |
-
trigger =
|
7378 |
|
7379 |
if(typeof trigger[val] !== 'undefined') {
|
7380 |
if(typeof trigger[val].fields !== 'undefined') {
|
@@ -7730,7 +7737,7 @@
|
|
7730 |
var wrap = $(this).closest('.fl-multiple-photos-field'),
|
7731 |
photosField = wrap.find('input[type=hidden]'),
|
7732 |
photosFieldVal = photosField.val(),
|
7733 |
-
parsedVal = photosFieldVal === '' ? '' :
|
7734 |
defaultPostId = wp.media.gallery.defaults.id,
|
7735 |
content = '[gallery ids="-1"]',
|
7736 |
shortcode = null,
|
@@ -7933,7 +7940,7 @@
|
|
7933 |
var wrap = $(this).closest('.fl-multiple-audios-field'),
|
7934 |
audiosField = wrap.find('input[type=hidden]'),
|
7935 |
audiosFieldVal = audiosField.val(),
|
7936 |
-
content = audiosFieldVal == '' ? '[playlist ids="-1"]' : '[playlist ids="'+
|
7937 |
shortcode = wp.shortcode.next('playlist', content).shortcode,
|
7938 |
defaultPostId = wp.media.playlist.defaults.id,
|
7939 |
attachments = null,
|
@@ -8060,7 +8067,7 @@
|
|
8060 |
return;
|
8061 |
}
|
8062 |
|
8063 |
-
show =
|
8064 |
|
8065 |
FLBuilder._settingsSelectToggle( show.fields, 'hide', '#fl-field-' );
|
8066 |
FLBuilder._settingsSelectToggle( show.sections, 'hide', '#fl-builder-settings-section-' );
|
@@ -8161,7 +8168,7 @@
|
|
8161 |
id : type,
|
8162 |
nodeId : form.attr( 'data-node' ),
|
8163 |
nodeSettings : FLBuilder._getSettings( form ),
|
8164 |
-
settings :
|
8165 |
lightbox : lightbox,
|
8166 |
helper : helper,
|
8167 |
rules : helper ? helper.rules : null
|
@@ -8227,7 +8234,7 @@
|
|
8227 |
oldSettings = link.siblings('input').val().replace(/'/g, "'");
|
8228 |
|
8229 |
if ( '' != oldSettings ) {
|
8230 |
-
settings = $.extend(
|
8231 |
}
|
8232 |
|
8233 |
link.siblings('input').val(JSON.stringify(settings)).trigger('change');
|
@@ -8418,7 +8425,7 @@
|
|
8418 |
|
8419 |
if ( value.indexOf( 'family' ) > -1 ) {
|
8420 |
|
8421 |
-
value =
|
8422 |
font.val( value.family );
|
8423 |
font.trigger( 'change' );
|
8424 |
|
@@ -8525,7 +8532,9 @@
|
|
8525 |
wrap = null;
|
8526 |
|
8527 |
html = html.replace( /flbuildereditor/g , editorId );
|
8528 |
-
config =
|
|
|
|
|
8529 |
|
8530 |
textarea.after( html ).remove();
|
8531 |
$( 'textarea#' + editorId ).val( textarea.val() )
|
@@ -8866,7 +8875,7 @@
|
|
8866 |
var select = $( this ).find( 'select' ),
|
8867 |
value = select.attr( 'data-value' );
|
8868 |
|
8869 |
-
select.find( 'option[value="' + value + '"]' ).
|
8870 |
},
|
8871 |
|
8872 |
/* Dimension Fields
|
@@ -9649,6 +9658,22 @@
|
|
9649 |
alert.open( template( { message : message } ) );
|
9650 |
},
|
9651 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9652 |
/**
|
9653 |
* Closes the alert lightbox when a child element is clicked.
|
9654 |
*
|
@@ -9759,7 +9784,7 @@
|
|
9759 |
* @method logError
|
9760 |
* @param {String} error The error to log.
|
9761 |
*/
|
9762 |
-
logError: function( error )
|
9763 |
{
|
9764 |
var message = null;
|
9765 |
|
@@ -9777,7 +9802,15 @@
|
|
9777 |
FLBuilder.log( '************************************************************************' );
|
9778 |
FLBuilder.log( FLBuilderStrings.errorMessage );
|
9779 |
FLBuilder.log( message );
|
|
|
|
|
|
|
|
|
9780 |
FLBuilder.log( '************************************************************************' );
|
|
|
|
|
|
|
|
|
9781 |
}
|
9782 |
},
|
9783 |
|
@@ -9800,10 +9833,40 @@
|
|
9800 |
|
9801 |
if ( 'undefined' != typeof error && 'undefined' != typeof error.stack ) {
|
9802 |
FLBuilder.log( error.stack );
|
9803 |
-
FLBuilder.log( '************************************************************************' );
|
9804 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9805 |
},
|
9806 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9807 |
/**
|
9808 |
* Helper taken from lodash
|
9809 |
* @since 2.2.2
|
521 |
moduleConnections = '';
|
522 |
|
523 |
// Module Connections.
|
524 |
+
if ( 'row' == FLBuilderConfig.userTemplateType ) {
|
525 |
moduleConnections = FLBuilder._contentClass + ' .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, ' +
|
526 |
FLBuilder._contentClass + ' .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target, ' +
|
527 |
FLBuilder._contentClass + ' .fl-row:not(.fl-builder-node-loading) .fl-col-content';
|
528 |
}
|
529 |
+
else if ( 'column' == FLBuilderConfig.userTemplateType ) {
|
530 |
+
moduleConnections = FLBuilder._contentClass + ' .fl-col-group-drop-target, ' +
|
531 |
+
FLBuilder._contentClass + ' .fl-col-drop-target, ' +
|
532 |
+
FLBuilder._contentClass + ' .fl-col-content';
|
533 |
+
}
|
534 |
else {
|
535 |
moduleConnections = FLBuilder._contentClass + ' .fl-row-drop-target, ' +
|
536 |
FLBuilder._contentClass + ' .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, ' +
|
1705 |
*/
|
1706 |
_saveGlobalSettingsComplete: function( response )
|
1707 |
{
|
1708 |
+
FLBuilderConfig.global = FLBuilder._jsonParse( response );
|
1709 |
|
1710 |
FLBuilder.triggerHook( 'didSaveGlobalSettingsComplete', FLBuilderConfig.global );
|
1711 |
|
1887 |
*/
|
1888 |
_applyTemplateComplete: function( response )
|
1889 |
{
|
1890 |
+
var data = FLBuilder._jsonParse( response );
|
1891 |
|
1892 |
FLBuilder._renderLayout( data.layout );
|
1893 |
FLBuilder.triggerHook( 'didApplyTemplateComplete', data.config );
|
1903 |
*/
|
1904 |
_applyUserTemplateComplete: function( response )
|
1905 |
{
|
1906 |
+
var data = FLBuilder._jsonParse( response );
|
1907 |
|
1908 |
if ( null !== data.layout_css ) {
|
1909 |
$( '#fl-builder-layout-css' ).html( data.layout_css );
|
1971 |
_saveUserTemplateSettingsComplete: function(data)
|
1972 |
{
|
1973 |
if ( !data ) return;
|
1974 |
+
var data = FLBuilder._jsonParse(data);
|
1975 |
|
1976 |
FLBuilderConfig.contentItems.template.push(data);
|
1977 |
FLBuilder.triggerHook('contentItemsChanged');
|
2252 |
action : 'render_node',
|
2253 |
node_id : nodeId
|
2254 |
}, function( response ) {
|
2255 |
+
FLBuilder._renderLayout( FLBuilder._jsonParse( response ), callback );
|
2256 |
}.bind( this ) );
|
2257 |
},
|
2258 |
|
3351 |
*/
|
3352 |
_addRowComplete: function(response)
|
3353 |
{
|
3354 |
+
var data = 'object' === typeof response ? response : FLBuilder._jsonParse(response),
|
3355 |
content = $(FLBuilder._contentClass),
|
3356 |
rowId = $(data.html).data('node');
|
3357 |
|
3459 |
settings: settings,
|
3460 |
settings_id: formNodeId
|
3461 |
}, function( response ) {
|
3462 |
+
var data = FLBuilder._jsonParse( response );
|
3463 |
data.nodeParent = $( FLBuilder._contentClass );
|
3464 |
data.nodePosition = $( FLBuilder._contentClass + ' > .fl-row' ).index( clone );
|
3465 |
data.duplicatedRow = nodeId;
|
4194 |
settings: settings,
|
4195 |
settings_id: formNodeId
|
4196 |
}, function( response ){
|
4197 |
+
var data = FLBuilder._jsonParse( response );
|
4198 |
data.nodeParent = group;
|
4199 |
data.nodePosition = clone.index();
|
4200 |
data.duplicatedColumn = nodeId;
|
4376 |
*/
|
4377 |
_addColsComplete: function( response )
|
4378 |
{
|
4379 |
+
var data = 'object' === typeof response ? response : FLBuilder._jsonParse( response ),
|
4380 |
col = null;
|
4381 |
|
4382 |
data.nodeParent = FLBuilder._newColParent;
|
4442 |
*/
|
4443 |
_addColGroupComplete: function(response)
|
4444 |
{
|
4445 |
+
var data = FLBuilder._jsonParse(response),
|
4446 |
html = $(data.html),
|
4447 |
groupId = html.data('node'),
|
4448 |
colId = html.find('.fl-col').data('node');
|
5156 |
node_id: nodeId,
|
5157 |
settings: settings
|
5158 |
}, function( response ) {
|
5159 |
+
var data = FLBuilder._jsonParse( response );
|
5160 |
data.nodeParent = parent;
|
5161 |
data.nodePosition = parent.find( ' > .fl-col-group, > .fl-module' ).index( clone );
|
5162 |
data.duplicatedModule = nodeId;
|
5245 |
head.append( config.assets.css );
|
5246 |
}
|
5247 |
if ( '' !== config.assets.js ) {
|
5248 |
+
|
5249 |
head.append( config.assets.js );
|
5250 |
}
|
5251 |
FLBuilder._loadedModuleAssets.push( data.type );
|
5360 |
*/
|
5361 |
_addModuleComplete: function( response )
|
5362 |
{
|
5363 |
+
var data = FLBuilder._jsonParse( response );
|
5364 |
|
5365 |
// Setup a preview layout if we have one.
|
5366 |
if ( data.layout ) {
|
5508 |
*/
|
5509 |
_saveNodeTemplateComplete: function( response )
|
5510 |
{
|
5511 |
+
var data = FLBuilder._jsonParse( response ),
|
5512 |
panel = $( '.fl-builder-saved-' + data.type + 's' ),
|
5513 |
blocks = panel.find( '.fl-builder-block' ),
|
5514 |
block = null,
|
5723 |
position : position
|
5724 |
}, function( response ) {
|
5725 |
if ( action.indexOf( 'row' ) > -1 ) {
|
5726 |
+
var data = FLBuilder._jsonParse( response );
|
5727 |
FLBuilder.triggerHook( 'didApplyRowTemplateComplete', data.config );
|
5728 |
callback( data.layout );
|
5729 |
} else if ( action.indexOf( 'col' ) > -1 ) {
|
5730 |
+
var data = FLBuilder._jsonParse( response );
|
5731 |
FLBuilder.triggerHook( 'didApplyColTemplateComplete', data.config );
|
5732 |
callback( data.layout );
|
5733 |
} else {
|
5849 |
FLBuilder._lightbox._resizeEditors();
|
5850 |
|
5851 |
$( '.fl-builder-settings-fields' ).css( 'visibility', 'visible' );
|
5852 |
+
$( '.fl-builder-settings button' ).on( 'click', function( e ) { e.preventDefault() } )
|
5853 |
/**
|
5854 |
* Hook for settings form init.
|
5855 |
*/
|
6106 |
existingNodes = null,
|
6107 |
previewModule = null,
|
6108 |
previewCol = null,
|
6109 |
+
existingCol = null,
|
6110 |
+
isRootCol = 'column' == FLBuilderConfig.userTemplateType;
|
6111 |
|
6112 |
// Close a nested settings lightbox.
|
6113 |
if ( nestedLightbox.length > 0 ) {
|
6122 |
previewCol = previewModule.closest('.fl-col');
|
6123 |
existingCol = existingNodes.find('.fl-node-' + previewCol.data('node'));
|
6124 |
|
6125 |
+
if(existingCol.length > 0 || isRootCol) {
|
6126 |
FLBuilder._deleteModule(previewModule);
|
6127 |
}
|
6128 |
else {
|
6413 |
if ( nodeId && config[ nodeId ] ) {
|
6414 |
original = config[ nodeId ];
|
6415 |
} else if ( formJSON.length ) {
|
6416 |
+
original = FLBuilder._jsonParse( formJSON.val().replace( /'/g, "'" ) );
|
6417 |
}
|
6418 |
|
6419 |
if ( original ) {
|
6523 |
*/
|
6524 |
_saveSettingsComplete: function( render, preview, response )
|
6525 |
{
|
6526 |
+
var data = FLBuilder._jsonParse( response ),
|
6527 |
callback = function() {
|
6528 |
if( preview && data.layout.partial && data.layout.nodeId === preview.nodeId ) {
|
6529 |
preview.clear();
|
6930 |
action: 'get_autosuggest_values',
|
6931 |
fields: data
|
6932 |
}, function( response ) {
|
6933 |
+
values = FLBuilder._jsonParse( response );
|
6934 |
for ( name in values ) {
|
6935 |
$( '.fl-suggest-field[name="' + name + '"]' ).attr( 'data-value', values[ name ] );
|
6936 |
}
|
7345 |
// TOGGLE sections, fields or tabs.
|
7346 |
if(typeof toggle !== 'undefined') {
|
7347 |
|
7348 |
+
toggle = FLBuilder._jsonParse(toggle);
|
7349 |
|
7350 |
for(i in toggle) {
|
7351 |
FLBuilder._settingsSelectToggle(toggle[i].fields, 'hide', '#fl-field-');
|
7363 |
// HIDE sections, fields or tabs.
|
7364 |
if(typeof hide !== 'undefined') {
|
7365 |
|
7366 |
+
hide = FLBuilder._jsonParse(hide);
|
7367 |
|
7368 |
for(i in hide) {
|
7369 |
FLBuilder._settingsSelectToggle(hide[i].fields, 'show', '#fl-field-');
|
7381 |
// TRIGGER select inputs.
|
7382 |
if(typeof trigger !== 'undefined') {
|
7383 |
|
7384 |
+
trigger = FLBuilder._jsonParse(trigger);
|
7385 |
|
7386 |
if(typeof trigger[val] !== 'undefined') {
|
7387 |
if(typeof trigger[val].fields !== 'undefined') {
|
7737 |
var wrap = $(this).closest('.fl-multiple-photos-field'),
|
7738 |
photosField = wrap.find('input[type=hidden]'),
|
7739 |
photosFieldVal = photosField.val(),
|
7740 |
+
parsedVal = photosFieldVal === '' ? '' : FLBuilder._jsonParse(photosFieldVal),
|
7741 |
defaultPostId = wp.media.gallery.defaults.id,
|
7742 |
content = '[gallery ids="-1"]',
|
7743 |
shortcode = null,
|
7940 |
var wrap = $(this).closest('.fl-multiple-audios-field'),
|
7941 |
audiosField = wrap.find('input[type=hidden]'),
|
7942 |
audiosFieldVal = audiosField.val(),
|
7943 |
+
content = audiosFieldVal == '' ? '[playlist ids="-1"]' : '[playlist ids="'+ FLBuilder._jsonParse(audiosFieldVal).join() +'"]',
|
7944 |
shortcode = wp.shortcode.next('playlist', content).shortcode,
|
7945 |
defaultPostId = wp.media.playlist.defaults.id,
|
7946 |
attachments = null,
|
8067 |
return;
|
8068 |
}
|
8069 |
|
8070 |
+
show = FLBuilder._jsonParse( show );
|
8071 |
|
8072 |
FLBuilder._settingsSelectToggle( show.fields, 'hide', '#fl-field-' );
|
8073 |
FLBuilder._settingsSelectToggle( show.sections, 'hide', '#fl-builder-settings-section-' );
|
8168 |
id : type,
|
8169 |
nodeId : form.attr( 'data-node' ),
|
8170 |
nodeSettings : FLBuilder._getSettings( form ),
|
8171 |
+
settings : FLBuilder._jsonParse( settings.replace( /'/g, "'" ) ),
|
8172 |
lightbox : lightbox,
|
8173 |
helper : helper,
|
8174 |
rules : helper ? helper.rules : null
|
8234 |
oldSettings = link.siblings('input').val().replace(/'/g, "'");
|
8235 |
|
8236 |
if ( '' != oldSettings ) {
|
8237 |
+
settings = $.extend( FLBuilder._jsonParse( oldSettings ), settings );
|
8238 |
}
|
8239 |
|
8240 |
link.siblings('input').val(JSON.stringify(settings)).trigger('change');
|
8425 |
|
8426 |
if ( value.indexOf( 'family' ) > -1 ) {
|
8427 |
|
8428 |
+
value = FLBuilder._jsonParse( value );
|
8429 |
font.val( value.family );
|
8430 |
font.trigger( 'change' );
|
8431 |
|
8532 |
wrap = null;
|
8533 |
|
8534 |
html = html.replace( /flbuildereditor/g , editorId );
|
8535 |
+
config = FLBuilder._jsonParse( JSON.stringify( config ).replace( /flbuildereditor/g , editorId ) );
|
8536 |
+
|
8537 |
+
config = JSONfn.parse( JSONfn.stringify( config ).replace( /flbuildereditor/g , editorId ) );
|
8538 |
|
8539 |
textarea.after( html ).remove();
|
8540 |
$( 'textarea#' + editorId ).val( textarea.val() )
|
8875 |
var select = $( this ).find( 'select' ),
|
8876 |
value = select.attr( 'data-value' );
|
8877 |
|
8878 |
+
select.find( 'option[value="' + value + '"]' ).prop('selected', true);
|
8879 |
},
|
8880 |
|
8881 |
/* Dimension Fields
|
9658 |
alert.open( template( { message : message } ) );
|
9659 |
},
|
9660 |
|
9661 |
+
crashMessage: function(debug)
|
9662 |
+
{
|
9663 |
+
var alert = new FLLightbox({
|
9664 |
+
className: 'fl-builder-alert-lightbox fl-builder-crash-lightbox',
|
9665 |
+
destroyOnClose: true
|
9666 |
+
}),
|
9667 |
+
template = wp.template( 'fl-crash-lightbox' );
|
9668 |
+
|
9669 |
+
message = "Beaver Builder has detected a plugin conflict that is preventing the page from saving.<p>( In technical terms there’s probably a PHP error in Ajax. )</p>"
|
9670 |
+
info = "If you contact Beaver Builder Support, we need to know what the error is in the JavaScript console in your browser.<p>To open the JavaScript console:<br />Chrome: View > Developer > JavaScript Console<br />Firefox: Tools > Web Developer > Browser Console<br />Safari: Develop > Show JavaScript console</p>Copy the errors you find there and submit them with your Support ticket. It saves us having to ask you that as a second step.<br /><br />If you want to troubleshoot further, you can check our <a class='link' target='_blank' href='https://kb.wpbeaverbuilder.com/article/42-known-beaver-builder-incompatibilities'>Knowledge Base</a> for plugins we know to be incompatible. Then deactivate your plugins one by one while you try to save the page in the Beaver Builder editor. When the page saves normally, you have identified the plugin causing the conflict. <a class='link' target='_blank' href='https://www.wpbeaverbuilder.com/beaver-builder-support/'>Contact Support</a> if you need further help."
|
9671 |
+
|
9672 |
+
debug = false
|
9673 |
+
|
9674 |
+
alert.open( template( { message : message, info: info, debug: debug } ) );
|
9675 |
+
},
|
9676 |
+
|
9677 |
/**
|
9678 |
* Closes the alert lightbox when a child element is clicked.
|
9679 |
*
|
9784 |
* @method logError
|
9785 |
* @param {String} error The error to log.
|
9786 |
*/
|
9787 |
+
logError: function( error, data )
|
9788 |
{
|
9789 |
var message = null;
|
9790 |
|
9802 |
FLBuilder.log( '************************************************************************' );
|
9803 |
FLBuilder.log( FLBuilderStrings.errorMessage );
|
9804 |
FLBuilder.log( message );
|
9805 |
+
if ( 'undefined' != typeof data && data ) {
|
9806 |
+
FLBuilder.log( "Debug Info" );
|
9807 |
+
console.log( data );
|
9808 |
+
}
|
9809 |
FLBuilder.log( '************************************************************************' );
|
9810 |
+
if ( 'undefined' != typeof data && data ) {
|
9811 |
+
message = data + "\n" + message
|
9812 |
+
}
|
9813 |
+
FLBuilder.crashMessage(message)
|
9814 |
}
|
9815 |
},
|
9816 |
|
9833 |
|
9834 |
if ( 'undefined' != typeof error && 'undefined' != typeof error.stack ) {
|
9835 |
FLBuilder.log( error.stack );
|
|
|
9836 |
}
|
9837 |
+
FLBuilder.log( '************************************************************************' );
|
9838 |
+
},
|
9839 |
+
|
9840 |
+
/**
|
9841 |
+
* Parse JSON with try/catch and print useful debug info on error.
|
9842 |
+
* @since 2.2.2
|
9843 |
+
* @param {string} data JSON data
|
9844 |
+
*/
|
9845 |
+
_jsonParse: function( data ) {
|
9846 |
+
try {
|
9847 |
+
data = JSON.parse( data );
|
9848 |
+
} catch (e) {
|
9849 |
+
FLBuilder.logError( e, FLBuilder._parseError( data ) );
|
9850 |
+
}
|
9851 |
+
return data;
|
9852 |
},
|
9853 |
|
9854 |
+
/**
|
9855 |
+
* Parse data for php error on 1st line.
|
9856 |
+
* @since 2.2.2
|
9857 |
+
* @param {string} data the JSON containing error(s)
|
9858 |
+
*/
|
9859 |
+
_parseError: function( data ) {
|
9860 |
+
php = data.match(/^<.*/gm) || false;
|
9861 |
+
if ( php && php.length > 0 ) {
|
9862 |
+
var txt = '';
|
9863 |
+
$.each( php, function(i,t) {
|
9864 |
+
txt += t
|
9865 |
+
})
|
9866 |
+
return $(txt).text();
|
9867 |
+
}
|
9868 |
+
return false;
|
9869 |
+
},
|
9870 |
/**
|
9871 |
* Helper taken from lodash
|
9872 |
* @since 2.2.2
|
js/fl-builder.min.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
var FLBuilderColorPicker;!function(e,i){function t(){var i,t,l="backgroundImage";f?h="filter":(i=e('<div id="iris-gradtest" />'),t="linear-gradient(top,#fff,#000)",e.each(g,function(e,n){if(i.css(l,n+t),i.css(l).match("gradient"))return h=e,!1}),h===!1&&(i.css("background","-webkit-gradient(linear,0% 0%,0% 100%,from(#fff),to(#000))"),i.css(this.bgImageString).match("gradient")&&(h="webkit")),i.remove())}function l(i,t){return i="top"===i?"top":"left",t=e.isArray(t)?t:Array.prototype.slice.call(arguments,1),"webkit"===h?s(i,t):g[h]+"linear-gradient("+i+", "+t.join(", ")+")"}function n(i,t){var l,n,s,r,a,d,u,c,f;i="top"===i?"top":"left",t=e.isArray(t)?t:Array.prototype.slice.call(arguments,1),l="top"===i?0:1,n=e(this),s=t.length-1,r="filter",a=1===l?"left":"top",d=1===l?"right":"bottom",u=1===l?"height":"width",c='<div class="iris-ie-gradient-shim" style="position:absolute;'+u+":100%;"+a+":%start%;"+d+":%end%;"+r+':%filter%;" data-color:"%color%"></div>',f="","static"===n.css("position")&&n.css({position:"relative"}),t=o(t),e.each(t,function(e,i){var n,o,r;return e!==s&&(n=t[e+1],void(i.stop!==n.stop&&(o=100-parseFloat(n.stop)+"%",i.octoHex=new FLBuilderColor(i.color).toIEOctoHex(),n.octoHex=new FLBuilderColor(n.color).toIEOctoHex(),r="progid:DXImageTransform.Microsoft.Gradient(GradientType="+l+", StartColorStr='"+i.octoHex+"', EndColorStr='"+n.octoHex+"')",f+=c.replace("%start%",i.stop).replace("%end%",o).replace("%filter%",r))))}),n.find(".iris-ie-gradient-shim").remove(),e(f).prependTo(n)}function s(i,t){var l=[];return i="top"===i?"0% 0%,0% 100%,":"0% 100%,100% 100%,",t=o(t),e.each(t,function(e,i){l.push("color-stop("+parseFloat(i.stop)/100+", "+i.color+")")}),"-webkit-gradient(linear,"+i+l.join(",")+")"}function o(i){var t=[],l=[],n=[],s=i.length-1;return e.each(i,function(e,i){var n=i,s=!1,o=i.match(/1?[0-9]{1,2}%$/);o&&(n=i.replace(/\s?1?[0-9]{1,2}%$/,""),s=o.shift()),t.push(n),l.push(s)}),l[0]===!1&&(l[0]="0%"),l[s]===!1&&(l[s]="100%"),l=r(l),e.each(l,function(e){n[e]={color:t[e],stop:l[e]}}),n}function r(i){var t,l,n,s,o=0,a=i.length-1,d=0,u=!1;if(i.length<=2||e.inArray(!1,i)<0)return i;for(;d<i.length-1;)u||i[d]!==!1?u&&i[d]!==!1&&(a=d,d=i.length):(o=d-1,u=!0),d++;for(l=a-o,s=parseInt(i[o].replace("%"),10),t=(parseFloat(i[a].replace("%"))-s)/l,d=o+1,n=1;d<a;)i[d]=s+n*t+"%",n++,d++;return r(i)}var a=[],d=navigator.userAgent.toLowerCase(),u="Microsoft Internet Explorer"===navigator.appName,c=u?parseFloat(d.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,f=u&&c<10,h=!1,g=["-moz-","-webkit-","-o-","-ms-"];flBuilderParseColorValue=function(e){var i=e.replace(/\s+/g,""),t=i.indexOf("rgba")!==-1?parseFloat(100*i.replace(/^.*,(.+)\)/,"$1")):100,l=t<100;return{value:i,alpha:t,rgba:l}},e.fn.flBuilderColorPickerGradient=function(){var i=arguments;return this.each(function(){f?n.apply(this,i):e(this).css("backgroundImage",l.apply(this,i))})},e.fn.flBuilderColorPickerRaninbowGradient=function(i,t){var l,n,s,o;for(i=i||"top",l=e.extend({},{s:100,l:50},t),n="hsl(%h%,"+l.s+"%,"+l.l+"%)",s=0,o=[];s<=360;)o.push(n.replace("%h%",s)),s+=30;return this.each(function(){e(this).flBuilderColorPickerGradient(i,o)})},FLBuilderColorPicker=function(i){this._html='<div class="fl-color-picker-ui"><div class="iris-picker"><div class="iris-picker-inner"><div class="iris-square"><a class="iris-square-value" href="javascript:void(0);"><span class="iris-square-handle ui-slider-handle"></span></a><div class="iris-square-inner iris-square-horiz"></div><div class="iris-square-inner iris-square-vert"></div></div><div class="iris-slider iris-strip"><div class="iris-slider-offset"></div></div></div></div></div>';var t={elements:null,color:"",mode:"hsl",controls:{horiz:"s",vert:"l",strip:"h"},target:!1,width:200,presets:[],labels:{colorPresets:"Color Presets",colorPicker:"Color Picker",placeholder:"Paste color here...",removePresetConfirm:"Are you sure?",noneColorSelected:"None color selected.",alreadySaved:"%s is already a saved preset.",noPresets:"Add a color preset first.",presetAdded:"%s added to presets!"}};this.options=e.extend({},t,i),(f===!1||f===!0&&c>7)&&this._init()},FLBuilderColorPicker.prototype={_html:"",_color:"",_currentElement:"",_inited:!1,_defaultHSLControls:{horiz:"s",vert:"l",strip:"h"},_defaultHSVControls:{horiz:"h",vert:"v",strip:"s"},_scale:{h:360,s:100,l:100,v:100},_init:function(){var i=this;e(i.options.elements);return e("html").hasClass("fl-color-picker-init")?void this._prepareColorFields():(this._color=new FLBuilderColor("#ff0000").setHSpace(i.options.mode),a=this.options.presets,h===!1&&t(),i.picker=e(this._html).appendTo("body"),u?9===c?i.picker.addClass("iris-ie-9"):c<=8&&i.picker.addClass("iris-ie-lt9"):d.indexOf("compatible")<0&&d.indexOf("khtml")<0&&d.match(/mozilla/)&&i.picker.addClass("iris-mozilla"),i.controls={square:i.picker.find(".iris-square"),squareDrag:i.picker.find(".iris-square-value"),horiz:i.picker.find(".iris-square-horiz"),vert:i.picker.find(".iris-square-vert"),strip:i.picker.find(".iris-strip"),stripSlider:i.picker.find(".iris-strip .iris-slider-offset")},"hsv"===i.options.mode&&i._has("l",i.options.controls)?i.options.controls=i._defaultHSVControls:"hsl"===i.options.mode&&i._has("v",i.options.controls)&&(i.options.controls=i._defaultHSLControls),i.hue=i._color.h(),this._setTemplates(),this._ui=e(".fl-color-picker-ui"),this._iris=e(".iris-picker"),this._wrapper=e("body"),this._ui.prepend(this._hexHtml).append(this._presetsHtml),i.element=this._ui.find(".fl-color-picker-input"),i._initControls(),i.active="external",i._change(),i._addInputListeners(i.element),this._buildUI(),this._prepareColorFields(),this._pickerControls(),this._presetsControls(),this._buildAlphaUI(),void e("html").addClass("fl-color-picker-init"))},_prepareColorFields:function(){var i=this;e(".fl-color-picker-value").each(function(){var t=e(this),l=t.val(),n=t.parent().find(".fl-color-picker-color"),s=flBuilderParseColorValue(l),o="";if(l){if(n.hasClass("fl-color-picker-alpha-enabled")&&s.rgba)o=t.val().toString();else if(!n.hasClass("fl-color-picker-alpha-enabled")&&s.rgba){var r=l.replace("rgba","rgb");r=r.substr(0,r.lastIndexOf(","))+")",i._color._alpha=1,o=r,t.val(r)}else o="#"+t.val().toString();n.css({backgroundColor:o})}})},_setTemplates:function(){this._alphaHtml='<div class="fl-alpha-wrap"><div class="fl-alpha-slider"></div><div class="fl-alpha-slider-offset"></div><div class="fl-alpha-text"></div></div>',this._presetsHtml='<div class="fl-color-picker-presets"><div class="fl-color-picker-presets-toggle"><div class="fl-color-picker-presets-open-label fl-color-picker-active">'+this.options.labels.colorPresets+' <span class="fl-color-picker-icon-arrow-up"></span></div><div class="fl-color-picker-presets-close-label">'+this.options.labels.colorPicker+' <span class="fl-color-picker-icon-arrow-down"></span></div></div><ul class="fl-color-picker-presets-list"></ul></div>',this._hexHtml='<input type="text" class="fl-color-picker-input" placeholder="'+this.options.labels.placeholder+'"><div class="fl-color-picker-preset-add"></div>',this._presetsTpl='<li class="fl-color-picker-preset"><span class="fl-color-picker-preset-color"></span> <span class="fl-color-picker-preset-label"></span> <span class="fl-color-picker-preset-remove fl-color-picker-icon-remove"></span></li>',this._noPresetsTpl='<li class="fl-color-picker-no-preset"><span class="fl-color-picker-preset-label">'+this.options.labels.noPresets+"</span></li>"},_has:function(i,t){var l=!1;return e.each(t,function(e,t){if(i===t)return l=!0,!1}),l},_buildUI:function(){var i=this;i._presetsList=this._ui.find(".fl-color-picker-presets-list"),i._presetsList.html(""),this.options.presets.length>0?e.each(this.options.presets,function(e,t){i._addPresetView(t)}):i._presetsList.append(this._noPresetsTpl)},_addPresetView:function(i){var t=this._presetsList.find(".fl-color-picker-no-preset");t.length>0&&t.remove();var l=e(this._presetsTpl),n=FLBuilderColor(i);l.attr("data-color",i).find(".fl-color-picker-preset-color").css({backgroundColor:n.toString()}).end().find(".fl-color-picker-preset-label").html(n.toString()),this._presetsList.append(l)},_addPresetFeedback:function(){this._ui.append('<div class="fl-color-picker-added"><div class="fl-color-picker-added-text"><div class="fl-color-picker-icon-check"></div> "'+this.options.labels.presetAdded.replace("%s",this._color.toString())+'"</div></div>'),this._ui.find(".fl-color-picker-added").hide().fadeIn(200).delay(2e3).fadeOut(200,function(){e(this).remove()})},_pickerControls:function(){var i=this;this._wrapper.on("click",".fl-color-picker-color",function(){var t=e(this);i._currentElement=t.parent().find(".fl-color-picker-value"),i._ui.position({my:"left top",at:"left bottom",of:t,collision:"flip",using:function(e,t){i._togglePicker(e)}})}).on("click",".fl-color-picker-clear",function(){var t=e(this);i._currentElement=t.parent().find(".fl-color-picker-value"),t.prev(".fl-color-picker-color").css({backgroundColor:"transparent"}).addClass("fl-color-picker-empty"),i._setColor(""),i.element.val(""),i._currentElement.val("").trigger("change")}),e(document).on("mousedown",function(i){0===e(i.target).closest(".fl-color-picker-ui").length&&e(".fl-color-picker-ui.fl-color-picker-active").removeClass("fl-color-picker-active")})},_presetsControls:function(){var i=this,t=i._ui.find(".fl-color-picker-preset-add"),l=i._ui.find(".fl-color-picker-presets"),n=l.find(".fl-color-picker-presets-open-label"),s=l.find(".fl-color-picker-presets-close-label"),o=l.find(".fl-color-picker-presets-list");t.off("click").on("click",function(){i._addPreset(i.element.val())}),o.css({height:i.element.innerHeight()+i._iris.innerHeight()+14+"px"}).hide(),l.off("click").on("click",".fl-color-picker-presets-toggle",function(){n.toggleClass("fl-color-picker-active"),s.toggleClass("fl-color-picker-active"),o.slideToggle(500)}).on("click",".fl-color-picker-preset",function(t){var l=new FLBuilderColor(e(this).data("color").toString());i._setColor(l),i._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:l.toString()}).removeClass("fl-color-picker-empty"),n.toggleClass("fl-color-picker-active"),s.toggleClass("fl-color-picker-active"),o.slideToggle(500)}).on("click",".fl-color-picker-preset-remove",function(t){t.stopPropagation(),i._removePreset(e(this).parent().data("color"))})},_removePreset:function(i){if(confirm(this.options.labels.removePresetConfirm)){var t=i.toString(),l=a.indexOf(t);l>-1&&(a.splice(l,1),this.options.presets=a,this._presetsList.find('.fl-color-picker-preset[data-color="'+t+'"]').slideUp(function(){e(this).remove()})),a.length<1&&this._presetsList.append(this._noPresetsTpl),e(this).trigger("presetRemoved",{presets:a})}},_addPreset:function(i){if(!this._CheckValidColor(i))return alert(this.options.labels.noneColorSelected),!1;var t=i.toString().replace(/^#/,"");""===t?alert(this.options.labels.noneColorSelected):a.indexOf(t)>-1?alert(this.options.labels.alreadySaved.replace("%s","#"+t)):(this._addPresetView(t),this._addPresetFeedback(),a.push(t),this.options.presets=a,e(this).trigger("presetAdded",{presets:a}))},_CheckValidColor:function(e){if(!e.match(/^#/)&&!e.match(/^rgb/)&&!e.match(/^hsl/))return!1;var i=document.getElementById("divValidColor");i||(i=document.createElement("div"),i.id="divValidColor"),i.style.borderColor="",i.style.borderColor=e;var t=i.style.borderColor;return 0!=t.length},_togglePicker:function(e){var i=this;this._ui.hasClass("fl-color-picker-active")?(this._ui.removeClass("fl-color-picker-active"),e&&setTimeout(function(){i._ui.css(e),i._ui.addClass("fl-color-picker-active"),i._setColor(i._currentElement.val())},200)):(e&&i._ui.css(e),setTimeout(function(){i._ui.addClass("fl-color-picker-active"),i._setColor(i._currentElement.val())},200))},_paint:function(){var e=this;e._paintDimension("right","strip"),e._paintDimension("top","vert"),e._paintDimension("left","horiz")},_paintDimension:function(e,i){var t,l=this,n=l._color,s=l.options.mode,o=l._getHSpaceColor(),r=l.controls[i],a=l.options.controls;if(i!==l.active&&("square"!==l.active||"strip"===i))switch(a[i]){case"h":if("hsv"===s){switch(o=n.clone(),i){case"horiz":o[a.vert](100);break;case"vert":o[a.horiz](100);break;case"strip":o.setHSpace("hsl")}t=o.toHsl()}else t="strip"===i?{s:o.s,l:o.l}:{s:100,l:o.l};r.flBuilderColorPickerRaninbowGradient(e,t);break;case"s":"hsv"===s?"vert"===i?t=[n.clone().a(0).s(0).toCSS("rgba"),n.clone().a(1).s(0).toCSS("rgba")]:"strip"===i?t=[n.clone().s(100).toCSS("hsl"),n.clone().s(0).toCSS("hsl")]:"horiz"===i&&(t=["#fff","hsl("+o.h+",100%,50%)"]):t="vert"===i&&"h"===l.options.controls.horiz?["hsla(0, 0%, "+o.l+"%, 0)","hsla(0, 0%, "+o.l+"%, 1)"]:["hsl("+o.h+",0%,50%)","hsl("+o.h+",100%,50%)"],r.flBuilderColorPickerGradient(e,t);break;case"l":t="strip"===i?["hsl("+o.h+",100%,100%)","hsl("+o.h+", "+o.s+"%,50%)","hsl("+o.h+",100%,0%)"]:["#fff","rgba(255,255,255,0) 50%","rgba(0,0,0,0) 50%","rgba(0,0,0,1)"],r.flBuilderColorPickerGradient(e,t);break;case"v":t="strip"===i?[n.clone().v(100).toCSS(),n.clone().v(0).toCSS()]:["rgba(0,0,0,0)","#000"],r.flBuilderColorPickerGradient(e,t)}},_getHSpaceColor:function(){return"hsv"===this.options.mode?this._color.toHsv():this._color.toHsl()},_dimensions:function(e){var i,t=this,l=t.options,n=t.controls,s=n.square,o=t.picker.find(".iris-strip"),r="77.5%",a="12%",d=20,u=l.border?l.width-d:l.width;if(e&&(s.css("width",""),o.css("width",""),t.picker.css({width:"",height:""})),r=u*(parseFloat(r)/100),a=u*(parseFloat(a)/100),i=l.border?r+d:r,s.width(r).height(r),o.height(r).width(a),t.picker.css({width:l.width,height:i}),!l.palettes)return t.picker.css("paddingBottom","")},_addInputListeners:function(e){var i=this,t=100,l=function(t){var l=new FLBuilderColor(e.val()),n=e.val().replace(/^#/,""),s=i._currentElement.hasClass("fl-color-picker-empty");if(e.removeClass("iris-error"),l.error)""!==n&&e.addClass("iris-error");else if(l.toString()!==i._color.toString()||""!==i._color.toString()&&s)if("keyup"===t.type){if(n.match(/^[0-9a-fA-F]{3}$/))return;i._setColor(n),i._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:FLBuilderColor(n).toString()}).removeClass("fl-color-picker-empty"),i._currentElement.val(n).trigger("change")}else if("paste"===t.type)return n=t.originalEvent.clipboardData.getData("text").replace(/^#/,""),hex=FLBuilderColor(n).toString(),i._setColor(n),e.val(hex),i._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:hex}).removeClass("fl-color-picker-empty"),i._currentElement.val(n).trigger("change"),!1};e.on("change",l).on("keyup",i._debounce(l,t))},_initControls:function(){var i=this,t=i.controls,l=t.square,n=i.options.controls,s=i._scale[n.strip];t.stripSlider.slider({orientation:"horizontal",max:s,slide:function(e,t){i.active="strip","h"===n.strip&&(t.value=s-t.value),i._color[n.strip](t.value),i._change.apply(i,arguments)}}),t.squareDrag.draggable({containment:t.square.find(".iris-square-inner"),zIndex:1e3,cursor:"move",drag:function(e,t){i._squareDrag(e,t)},start:function(){l.addClass("iris-dragging"),e(this).addClass("ui-state-focus")},stop:function(){l.removeClass("iris-dragging"),e(this).removeClass("ui-state-focus")}}).on("mousedown mouseup",function(t){var l="ui-state-focus";t.preventDefault(),"mousedown"===t.type?(i.picker.find("."+l).removeClass(l).blur(),e(this).addClass(l).focus()):e(this).removeClass(l)}).on("keydown",function(e){var l=t.square,n=t.squareDrag,s=n.position(),o=2;switch(e.altKey&&(o*=10),e.keyCode){case 37:s.left-=o;break;case 38:s.top-=o;break;case 39:s.left+=o;break;case 40:s.top+=o;break;default:return!0}s.left=Math.max(0,Math.min(s.left,l.width())),s.top=Math.max(0,Math.min(s.top,l.height())),n.css(s),i._squareDrag(e,{position:s}),e.preventDefault()}),l.mousedown(function(t){var l,n;1===t.which&&e(t.target).is("div")&&(l=i.controls.square.offset(),n={top:t.pageY-l.top,left:t.pageX-l.left},t.preventDefault(),i._squareDrag(t,{position:n}),t.target=i.controls.squareDrag.get(0),i.controls.squareDrag.css(n).trigger(t))})},_squareDrag:function(e,i){var t=this,l=t.options.controls,n=t._squareDimensions(),s=Math.round((n.h-i.position.top)/n.h*t._scale[l.vert]),o=t._scale[l.horiz]-Math.round((n.w-i.position.left)/n.w*t._scale[l.horiz]);t._color[l.horiz](o)[l.vert](s),t.active="square",t._change.apply(t,arguments)},_setColor:function(e){var i,t,l=this,n=l.options.color,s="#ff0000";""===e?(e=s,l["default"]=!0):l["default"]=!1,l.options.color=e,e=""+e,i=e.replace(/^#/,""),t=new FLBuilderColor(e).setHSpace(l.options.mode),t.error?l.options.color=n:(l._color=t,l.options.color=l._color.toString(),l.active="external",l._change())},_squareDimensions:function(e){var t,l,n=this.controls.square;return e!==i&&n.data("dimensions")?n.data("dimensions"):(l=this.controls.squareDrag,t={w:n.width(),h:n.height()},n.data("dimensions",t),t)},_isNonHueControl:function(e,i){return"square"===e&&"h"===this.options.controls.strip||"external"!==i&&("h"!==i||"strip"!==e)},_change:function(){var i=this,t=i.controls,l=i._getHSpaceColor(),n=["square","strip"],s=i.options.controls,o=s[i.active]||"external",r=i.hue;"strip"===i.active?n=[]:"external"!==i.active&&n.pop(),e.each(n,function(e,n){var o,r,a;if(n!==i.active)switch(n){case"strip":o="h"===s.strip?i._scale[s.strip]-l[s.strip]:l[s.strip],t.stripSlider.slider("value",o);break;case"square":r=i._squareDimensions(),a={left:l[s.horiz]/i._scale[s.horiz]*r.w,top:r.h-l[s.vert]/i._scale[s.vert]*r.h},i.controls.squareDrag.css(a)}}),l.h!==r&&i._isNonHueControl(i.active,o)&&i._color.h(r),i.hue=i._color.h(),i.options.color=i._color.toString(),i.element.is(":input")&&!i._color.error&&(i.element.removeClass("iris-error"),i.element.val()!==i._color.toString()&&(i.element.val(i._color.toString()),this._currentElement&&(!i["default"]||i["default"]&&"external"!==i.active?this._currentElement.val(i._color.toString().replace(/^#/,"")).parent().find(".fl-color-picker-color").css({backgroundColor:i._color.toString()}).removeClass("fl-color-picker-empty"):this._currentElement.val(""),i._wrapper.find(".fl-alpha-slider-offset").css("background-color",i._color.toString()),this._currentElement.trigger("change")))),i._paint(),i._inited=!0,i.active=!1},_debounce:function(e,i,t){var l,n;return function(){var s,o,r=this,a=arguments;return s=function(){l=null,t||(n=e.apply(r,a))},o=t&&!l,clearTimeout(l),l=setTimeout(s,i),o&&(n=e.apply(r,a)),n}},_buildAlphaUI:function(){var i=this;i._wrapper.on("click",".fl-color-picker-color",function(){var t=e(this);i._currentElement.val();t.hasClass("fl-color-picker-alpha-enabled")?(i._ui.find(".fl-alpha-wrap").length<=0&&e(i._alphaHtml).insertAfter(i._iris),i.picker.addClass("fl-color-alpha-enabled"),i._pickerAlphaControls()):(i.picker.removeClass("fl-color-alpha-enabled"),i._ui.find(".fl-alpha-wrap").remove())})},_pickerAlphaControls:function(){var e=this,i=e._currentElement,t=flBuilderParseColorValue(i.val()),l=parseFloat(t.alpha/100),n=e._wrapper,s=e._ui,o=s.find(".fl-alpha-wrap"),r=o.find(".fl-alpha-slider"),a=o.find(".fl-alpha-text"),d=o.find(".fl-alpha-slider-offset");alphaHandle=o.find(".ui-slider-handle"),a.text(l<1?l:""),r.slider({orientation:"vertical",slide:function(i,t){var l=parseFloat(t.value/100);e._color._alpha=l,a.text(l<1?l:""),e._change.apply(e,arguments)},create:function(){d.css({backgroundColor:t.value}),n.on("click",".fl-color-picker-clear",function(){e._color._alpha=1,a.text(""),r.slider("value",100).trigger("slide")})},value:t.alpha,step:1,min:0,max:100})}}}(jQuery),function(e,i){var t=function(e,i){return this instanceof t?this._init(e,i):new t(e,i)};t.fn=t.prototype={_color:0,_alpha:1,error:!1,_hsl:{h:0,s:0,l:0},_hsv:{h:0,s:0,v:0},_hSpace:"hsl",_init:function(e){var t="noop";switch(typeof e){case"object":return e.a!==i&&this.a(e.a),t=e.r!==i?"fromRgb":e.l!==i?"fromHsl":e.v!==i?"fromHsv":t,this[t](e);case"string":return this.fromCSS(e);case"number":return this.fromInt(parseInt(e,10))}return this},_error:function(){return this.error=!0,this},clone:function(){for(var e=new t(this.toInt()),i=["_alpha","_hSpace","_hsl","_hsv","error"],l=i.length-1;l>=0;l--)e[i[l]]=this[i[l]];return e},setHSpace:function(e){return this._hSpace="hsv"===e?e:"hsl",this},noop:function(){return this},fromCSS:function(e){var i,t=/^(rgb|hs(l|v))a?\(/;if(this.error=!1,e=e.replace(/^\s+/,"").replace(/\s+$/,"").replace(/;$/,""),e.match(t)&&e.match(/\)$/)){if(i=e.replace(/(\s|%)/g,"").replace(t,"").replace(/,?\);?$/,"").split(","),i.length<3)return this._error();if(4===i.length&&(this.a(parseFloat(i.pop())),this.error))return this;for(var l=i.length-1;l>=0;l--)if(i[l]=parseInt(i[l],10),isNaN(i[l]))return this._error();return e.match(/^rgb/)?this.fromRgb({r:i[0],g:i[1],b:i[2]}):e.match(/^hsv/)?this.fromHsv({h:i[0],s:i[1],v:i[2]}):this.fromHsl({h:i[0],s:i[1],l:i[2]})}return this.fromHex(e)},fromRgb:function(e,t){return"object"!=typeof e||e.r===i||e.g===i||e.b===i?this._error():(this.error=!1,this.fromInt(parseInt((e.r<<16)+(e.g<<8)+e.b,10),t))},fromHex:function(e){return e=e.replace(/^#/,"").replace(/^0x/,""),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),this.error=!/^[0-9A-F]{6}$/i.test(e),this.fromInt(parseInt(e,16))},fromHsl:function(e){var t,l,n,s,o,r,a,d;return"object"!=typeof e||e.h===i||e.s===i||e.l===i?this._error():(this._hsl=e,this._hSpace="hsl",r=e.h/360,a=e.s/100,d=e.l/100,0===a?t=l=n=d:(s=d<.5?d*(1+a):d+a-d*a,o=2*d-s,t=this.hue2rgb(o,s,r+1/3),l=this.hue2rgb(o,s,r),n=this.hue2rgb(o,s,r-1/3)),this.fromRgb({r:255*t,g:255*l,b:255*n},!0))},fromHsv:function(e){var t,l,n,s,o,r,a,d,u,c,f;if("object"!=typeof e||e.h===i||e.s===i||e.v===i)return this._error();switch(this._hsv=e,this._hSpace="hsv",t=e.h/360,l=e.s/100,n=e.v/100,a=Math.floor(6*t),d=6*t-a,u=n*(1-l),c=n*(1-d*l),f=n*(1-(1-d)*l),a%6){case 0:s=n,o=f,r=u;break;case 1:s=c,o=n,r=u;break;case 2:s=u,o=n,r=f;break;case 3:s=u,o=c,r=n;break;case 4:s=f,o=u,r=n;break;case 5:s=n,o=u,r=c}return this.fromRgb({r:255*s,g:255*o,b:255*r},!0)},fromInt:function(e,t){return this._color=parseInt(e,10),isNaN(this._color)&&(this._color=0),this._color>16777215?this._color=16777215:this._color<0&&(this._color=0),t===i&&(this._hsv.h=this._hsv.s=this._hsl.h=this._hsl.s=0),this},hue2rgb:function(e,i,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(i-e)*t:t<.5?i:t<2/3?e+(i-e)*(2/3-t)*6:e},toString:function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);if(this.error)return"";if(e.length<6)for(var i=6-e.length-1;i>=0;i--)e="0"+e;return"#"+e},toCSS:function(e,i){switch(e=e||"hex",i=parseFloat(i||this._alpha),e){case"rgb":case"rgba":var t=this.toRgb();return i<1?"rgba( "+t.r+", "+t.g+", "+t.b+", "+i+" )":"rgb( "+t.r+", "+t.g+", "+t.b+" )";case"hsl":case"hsla":var l=this.toHsl();return i<1?"hsla( "+l.h+", "+l.s+"%, "+l.l+"%, "+i+" )":"hsl( "+l.h+", "+l.s+"%, "+l.l+"% )";default:return this.toString()}},toRgb:function(){return{r:255&this._color>>16,g:255&this._color>>8,b:255&this._color}},toHsl:function(){var e,i,t=this.toRgb(),l=t.r/255,n=t.g/255,s=t.b/255,o=Math.max(l,n,s),r=Math.min(l,n,s),a=(o+r)/2;if(o===r)e=i=0;else{var d=o-r;switch(i=a>.5?d/(2-o-r):d/(o+r),o){case l:e=(n-s)/d+(n<s?6:0);break;case n:e=(s-l)/d+2;break;case s:e=(l-n)/d+4}e/=6}return e=Math.round(360*e),0===e&&this._hsl.h!==e&&(e=this._hsl.h),i=Math.round(100*i),0===i&&this._hsl.s&&(i=this._hsl.s),{h:e,s:i,l:Math.round(100*a)}},toHsv:function(){var e,i,t=this.toRgb(),l=t.r/255,n=t.g/255,s=t.b/255,o=Math.max(l,n,s),r=Math.min(l,n,s),a=o,d=o-r;if(i=0===o?0:d/o,o===r)e=i=0;else{switch(o){case l:e=(n-s)/d+(n<s?6:0);break;case n:e=(s-l)/d+2;break;case s:e=(l-n)/d+4}e/=6}return e=Math.round(360*e),0===e&&this._hsv.h!==e&&(e=this._hsv.h),i=Math.round(100*i),0===i&&this._hsv.s&&(i=this._hsv.s),{h:e,s:i,v:Math.round(100*a)}},toInt:function(){return this._color},toIEOctoHex:function(){var e=this.toString(),i=parseInt(255*this._alpha,10).toString(16);return 1===i.length&&(i="0"+i),"#"+i+e.replace(/^#/,"")},toLuminosity:function(){var e=this.toRgb();return.2126*Math.pow(e.r/255,2.2)+.7152*Math.pow(e.g/255,2.2)+.0722*Math.pow(e.b/255,2.2)},getDistanceLuminosityFrom:function(e){if(!(e instanceof t))throw"getDistanceLuminosityFrom requires a Color object";var i=this.toLuminosity(),l=e.toLuminosity();return i>l?(i+.05)/(l+.05):(l+.05)/(i+.05)},getMaxContrastColor:function(){var e=this.toLuminosity(),i=e>=.5?"000000":"ffffff";return new t(i)},getReadableContrastingColor:function(e,l){if(!(e instanceof t))return this;var n=l===i?5:l,s=e.getDistanceLuminosityFrom(this),o=e.getMaxContrastColor(),r=o.getDistanceLuminosityFrom(e);if(r<=n)return o;if(s>=n)return this;for(var a=0===o.toInt()?-1:1;s<n&&(this.l(a,!0),s=this.getDistanceLuminosityFrom(e),0!==this._color&&16777215!==this._color););return this},a:function(e){if(e===i)return this._alpha;var t=parseFloat(e);return isNaN(t)?this._error():(this._alpha=t,this)},darken:function(e){return e=e||5,this.l(-e,!0)},lighten:function(e){return e=e||5,this.l(e,!0)},saturate:function(e){return e=e||15,this.s(e,!0)},desaturate:function(e){return e=e||15,this.s(-e,!0)},toGrayscale:function(){return this.setHSpace("hsl").s(0)},getComplement:function(){return this.h(180,!0)},getSplitComplement:function(e){e=e||1;var i=180+30*e;return this.h(i,!0)},getAnalog:function(e){e=e||1;var i=30*e;return this.h(i,!0)},getTetrad:function(e){e=e||1;var i=60*e;return this.h(i,!0)},getTriad:function(e){e=e||1;var i=120*e;return this.h(i,!0)},_partial:function(e){var t=l[e];return function(l,n){var s=this._spaceFunc("to",t.space);return l===i?s[e]:(n===!0&&(l=s[e]+l),t.mod&&(l%=t.mod),t.range&&(l=l<t.range[0]?t.range[0]:l>t.range[1]?t.range[1]:l),s[e]=l,this._spaceFunc("from",t.space,s))}},_spaceFunc:function(e,i,t){var l=i||this._hSpace,n=e+l.charAt(0).toUpperCase()+l.substr(1);return this[n](t)}};var l={h:{mod:360},s:{range:[0,100]},l:{space:"hsl",range:[0,100]},v:{space:"hsv",range:[0,100]},r:{space:"rgb",range:[0,255]},g:{space:"rgb",range:[0,255]},b:{space:"rgb",range:[0,255]}};for(var n in l)l.hasOwnProperty(n)&&(t.fn[n]=t.fn._partial(n));"object"==typeof exports?module.exports=t:(e.FLBuilderColor=t,e.Color=t)}(this),function(e){FLLightbox=function(e){this._init(e)},FLLightbox.closeParent=function(i){var t=e(i).closest(".fl-lightbox-wrap").attr("data-instance-id");_.isUndefined(t)||FLLightbox._instances[t].close()},FLLightbox.getResizableControlClass=function(){var i=e(".fl-lightbox-resizable").eq(0),t="far fa-window-maximize";return i.length&&i.hasClass("fl-lightbox-width-full")&&(t="far fa-window-minimize"),t},FLLightbox.unbindAll=function(){var e;for(e in FLLightbox._instances)FLLightbox._instances[e]._unbind()},FLLightbox.bindAll=function(){var e;for(e in FLLightbox._instances)FLLightbox._instances[e]._bind()},FLLightbox.closeAll=function(){var e;for(e in FLLightbox._instances)FLLightbox._instances[e].close()},FLLightbox._instances={},FLLightbox.prototype={_id:null,_node:null,_visible:!1,_allowClosing:!0,_resizeTimer:null,_defaults:{className:"",destroyOnClose:!1,resizable:!1},open:function(e){var i=this._node.find(".fl-lightbox"),t=i.closest(".fl-builder-ui-pinned").length,l=this._getPositionSettings();!t&&l&&this._defaults.resizable&&i.css(l),this._bind(),this._node.show(),this._visible=!0,"undefined"!=typeof e?this.setContent(e):this._resize(),this.trigger("open"),FLBuilder.triggerHook("didShowLightbox",this)},close:function(){var e=this._node.data("parent");this._allowClosing&&(this.trigger("beforeCloseLightbox"),this._unbind(),this._node.hide(),this._visible=!1,this.trigger("close"),FLBuilder.triggerHook("didHideLightbox"),this._defaults.resizable&&_.isUndefined(e)&&FLBuilder.triggerHook("didHideAllLightboxes"),this._defaults.destroyOnClose&&this.destroy())},disableClose:function(){this._allowClosing=!1},enableClose:function(){this._allowClosing=!0},setContent:function(e){this._node.find(".fl-lightbox-content").html(e),this._resize()},empty:function(){this._node.find(".fl-lightbox-content").empty()},on:function(e,i){this._node.on(e,i)},off:function(e,i){this._node.off(e,i)},trigger:function(e,i){this._node.trigger(e,i)},destroy:function(){this._node.empty(),this._node.remove(),FLLightbox._instances[this._id]="undefined";try{delete FLLightbox._instances[this._id]}catch(e){}},_init:function(i){var t=0,l=null;for(l in FLLightbox._instances)t++;this._defaults=e.extend({},this._defaults,i),this._id=(new Date).getTime()+t,FLLightbox._instances[this._id]=this,this._render(),this._resizable()},_render:function(){this._node=e('<div class="fl-lightbox-wrap" data-instance-id="'+this._id+'"><div class="fl-lightbox-mask"></div><div class="fl-lightbox"><div class="fl-lightbox-content-wrap"><div class="fl-lightbox-content"></div></div></div></div>'),this._node.addClass(this._defaults.className),e("body").append(this._node)},_bind:function(){e(window).on("resize.fl-lightbox-"+this._id,this._delayedResize.bind(this))},_unbind:function(){e(window).off("resize.fl-lightbox-"+this._id)},_resizable:function(){var i=(e("body"),this._node.find(".fl-lightbox-mask")),t=this._node.find(".fl-lightbox"),l=e(".fl-lightbox-resizable").eq(0);this._defaults.resizable?(i.hide(),t.addClass("fl-lightbox-resizable"),t.delegate(".fl-lightbox-resize-toggle","click",this._resizeClicked.bind(this)),t.draggable({cursor:"move",handle:".fl-lightbox-header"}).resizable({handles:"all",minHeight:500,minWidth:380,start:this._resizeStart.bind(this),stop:this._resizeStop.bind(this)}),l.length&&l.hasClass("fl-lightbox-width-full")?(t.addClass("fl-lightbox-width-full"),t.draggable("disable")):this._restorePosition()):i.show(),this._resize()},_delayedResize:function(){clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(this._resize.bind(this),250)},_resize:function(){var i=this._node.find(".fl-lightbox"),t=parseInt(this._node.css("padding-top")),l=parseInt(this._node.css("padding-bottom")),n=parseInt(this._node.css("padding-left")),s=parseInt(this._node.css("padding-right")),o=i.height(),r=i.width(),a=e(window),d=a.height()-t-l,u=(a.width()-n-s,"0px");this._defaults.resizable?(r<600?i.addClass("fl-lightbox-width-slim"):i.removeClass("fl-lightbox-width-slim"),r<450?i.addClass("fl-lightbox-width-micro"):i.removeClass("fl-lightbox-width-micro"),this._resizeEditors()):(d>o&&(u=(d-o-46)/2+"px"),i.attr("style","").css("margin",u+" auto 0")),this.trigger("resized")},_resizeStart:function(){e("body").addClass("fl-builder-resizable-is-resizing"),e(".fl-builder-lightbox:visible").append('<div class="fl-builder-resizable-iframe-fix"></div>'),FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays()},_resizeStop:function(i,t){var l=e(".fl-lightbox-resizable:visible");parseInt(l.css("top"))<0&&l.css("top","0"),this._savePosition(),e("body").removeClass("fl-builder-resizable-is-resizing"),e(".fl-builder-resizable-iframe-fix").remove(),FLBuilder._bindOverlayEvents()},_resizeClicked:function(){var i=e(".fl-lightbox-resizable"),t=(i.find(".fl-lightbox-resize-toggle"),this._node.find(".fl-lightbox"));t.hasClass("fl-lightbox-width-full")?this._resizeExitFull():this._resizeEnterFull(),this._resize()},_resizeEnterFull:function(){var i=e(".fl-lightbox-resizable"),t=i.find(".fl-lightbox-resize-toggle");this._node.find(".fl-lightbox");t.removeClass("fa-window-maximize").addClass("fa-window-minimize"),i.addClass("fl-lightbox-width-full"),i.draggable("disable"),i.resizable("disable")},_resizeExitFull:function(){var i=e(".fl-lightbox-resizable"),t=i.find(".fl-lightbox-resize-toggle");this._node.find(".fl-lightbox");t.removeClass("fa-window-minimize").addClass("fa-window-maximize"),i.removeClass("fl-lightbox-width-full"),i.draggable("enable"),i.resizable("enable")},_resizeEditors:function(){e(".fl-lightbox-resizable").each(function(){var i=e(this),t=i.find(".fl-builder-settings-fields").height(),l=i.find(".mce-edit-area > iframe, textarea.wp-editor-area, .ace_editor"),n=null;t<350&&(t=350),l.each(function(){n=e(this),n.hasClass("ace_editor")?(n.height(t-60),n.closest(".fl-field").data("editor").resize()):n.closest(".mce-container-body").find(".mce-toolbar-grp .mce-toolbar.mce-last").is(":visible")?n.height(t-175):n.height(t-150);
|
2 |
-
})})},_savePosition:function(){var e=this._node.find(".fl-lightbox"),i={width:e.width(),height:e.height(),top:parseInt(e.css("top"))<0?"0px":e.css("top"),left:e.css("left")};e.closest(".fl-builder-ui-pinned").length||(FLBuilderConfig.userSettings.lightbox=i,FLBuilder.ajax({action:"save_lightbox_position",data:i}))},_restorePosition:function(){var e=this._node.find(".fl-lightbox"),i=this._getPositionSettings();i?(wleft=parseInt(i.left),wtop=parseInt(i.top),wleft>screen.width&&(i.left="100px"),wtop>screen.height&&(i.top="100px"),e.css(i)):e.css({top:25,left:FLBuilderConfig.isRtl?"-25":25})},_getPositionSettings:function(){var e=FLBuilderConfig.userSettings.lightbox;if(!e)return!1;var i=window.innerHeight,t=parseInt(e.height);return t>i&&i>546&&(e.height=i-50,e.top=0),e}}}(jQuery),function(e){FLIconSelector={_content:null,_lightbox:null,_rendered:!1,_filterText:"",open:function(e){FLIconSelector._rendered||FLIconSelector._render(),null===FLIconSelector._content?(FLIconSelector._lightbox.open('<div class="fl-builder-lightbox-loading"></div>'),FLBuilder.ajax({action:"render_icon_selector"},FLIconSelector._getContentComplete)):FLIconSelector._lightbox.open(),FLIconSelector._lightbox.on("icon-selected",function(i,t){FLIconSelector._lightbox.off("icon-selected"),FLIconSelector._lightbox.close(),e(t)})},_render:function(){FLIconSelector._lightbox=new FLLightbox({className:"fl-icon-selector"}),FLIconSelector._rendered=!0,FLBuilder.addHook("endEditingSession",function(){FLIconSelector._lightbox.close()})},_getContentComplete:function(i){var t=JSON.parse(i);FLIconSelector._content=t.html,FLIconSelector._lightbox.setContent(t.html),e(".fl-icons-filter-select").on("change",FLIconSelector._filter),e(".fl-icons-filter-text").on("keyup",FLIconSelector._filter),e(".fl-icons-list i").on("click",FLIconSelector._select),e(".fl-icon-selector-cancel").on("click",e.proxy(FLIconSelector._lightbox.close,FLIconSelector._lightbox))},_filter:function(){var i=e(".fl-icons-filter-select").val(),t=e(".fl-icons-filter-text").val();"all"==i?e(".fl-icons-section").show():(e(".fl-icons-section").hide(),e(".fl-"+i).show()),FLIconSelector._filterText=t,""!==t?e(".fl-icons-list i").each(FLIconSelector._filterIcon):e(".fl-icons-list i").show()},_filterIcon:function(){var i=e(this);-1==i.attr("class").indexOf(FLIconSelector._filterText)?i.hide():i.show()},_select:function(){var i=e(this).attr("class");FLIconSelector._lightbox.trigger("icon-selected",i)}}}(jQuery),function(e){FLStyleSheet=function(i){"object"==typeof i&&e.extend(this,i),this._createSheet()},FLStyleSheet.prototype={id:null,_sheet:null,_sheetElement:null,updateRule:function(e,i,t){for(var l=this._sheet.cssRules?this._sheet.cssRules:this._sheet.rules,n=null,s=0;s<l.length;s++)l[s].selectorText.toLowerCase().replace(/\s/g,"")==e.toLowerCase().replace(/\s/g,"")&&(n=l[s]);if(n)if("object"==typeof i)for(s in i)this.setProperty(n,s,i[s]);else this.setProperty(n,i,t);else this.addRule(e,i,t)},setProperty:function(e,i,t){var l="";e.style.setProperty?(t.indexOf("!important")>-1&&(l="important",t=t.replace("!important","").trim()),e.style.setProperty(i,t,l)):e.style[this._toCamelCase(i)]=t},addRule:function(e,i,t){var l="",n="";if("object"==typeof i)for(n in i)l+=n+":"+i[n]+";";else l=i+":"+t+";";this._sheet.insertRule?this._sheet.insertRule(e+" { "+l+" }",this._sheet.cssRules.length):this._sheet.addRule(e,l)},destroy:function(){this._sheetElement&&(this._sheetElement.remove(),this._sheetElement=null),this._sheet&&(this._sheet=null)},disable:function(){this._sheet.disabled=!0},enable:function(){this._sheet.disabled=!1},_createSheet:function(){var i=this.id?' id="'+this.id+'"':"",t=this.className?' class="'+this.className+'"':"";this._sheet||(this._sheetElement=e('<style type="text/css"'+i+t+"></style>"),e("body").append(this._sheetElement),this._sheet=this._sheetElement[0].sheet)},_toCamelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()})}}}(jQuery),function(e){FLBuilder={preview:null,_actionsLightbox:null,_ajaxQueue:[],_ajaxRequest:null,_colResizeData:null,_colResizing:!1,_contentClass:!1,_dragEnabled:!1,_dragging:!1,_dragInitialScrollTop:0,_exitUrl:null,_layout:null,_layoutQueue:[],_layoutSettingsCSSCache:null,_layoutSettingsCSSTimeout:null,_lightbox:null,_lightboxScrollbarTimeout:null,_loadedModuleAssets:[],_moduleHelpers:{},_multiplePhotoSelector:null,_newColParent:null,_newColPosition:0,_newColGroupParent:null,_newColGroupPosition:0,_newModuleParent:null,_newModulePosition:0,_newRowPosition:0,_selectedTemplateId:null,_selectedTemplateType:null,_singlePhotoSelector:null,_singleVideoSelector:null,_multipleAudiosSelector:null,_init:function(){FLBuilder._initJQueryReadyFix(),FLBuilder._initGlobalErrorHandling(),FLBuilder._initPostLock(),FLBuilder._initClassNames(),FLBuilder._initMediaUploader(),FLBuilder._initOverflowFix(),FLBuilder._initScrollbars(),FLBuilder._initLightboxes(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._initStrings(),FLBuilder._initTipTips(),FLBuilder._initTinyMCE(),FLBuilder._bindEvents(),FLBuilder._bindOverlayEvents(),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder.addHook("didInitUI",FLBuilder._showTourOrTemplates.bind(FLBuilder)),FLBuilder.addHook("endEditingSession",FLBuilder._doStats.bind(this)),FLBuilder.triggerHook("init")},_initJQueryReadyFix:function(){FLBuilderConfig.debug||(jQuery.fn.oldReady=jQuery.fn.ready,jQuery.fn.ready=function(i){return jQuery.fn.oldReady(function(){try{"function"==typeof i&&i(e)}catch(t){FLBuilder.logError(t)}})})},_initGlobalErrorHandling:function(){FLBuilderConfig.debug||(window.onerror=function(e,i,t,l,n){return FLBuilder.logGlobalError(e,i,t,l,n),!0})},_initPostLock:function(){"undefined"!=typeof wp.heartbeat&&(wp.heartbeat.interval(30),wp.heartbeat.enqueue("fl_builder_post_lock",{post_id:FLBuilderConfig.postId}))},_initClassNames:function(){e("html").addClass("fl-builder-edit"),e("body").addClass("fl-builder"),FLBuilderConfig.simpleUi&&e("body").addClass("fl-builder-simple"),FLBuilder._contentClass=".fl-builder-content-"+FLBuilderConfig.postId,e(FLBuilder._contentClass).addClass("fl-builder-content-editing")},_initMediaUploader:function(){wp.media.model.settings.post.id=FLBuilderConfig.postId},_initOverflowFix:function(){e(FLBuilder._contentClass).parents().css("overflow","visible")},_initScrollbars:function(){var i=e(".fl-nanoscroller").nanoScroller({alwaysVisible:!0,preventPageScrolling:!0,paneClass:"fl-nanoscroller-pane",sliderClass:"fl-nanoscroller-slider",contentClass:"fl-nanoscroller-content"}),t=i.filter(".fl-builder-settings-fields"),l=t.find(".fl-nanoscroller-pane");if(l.length){var n=l.get(0).style.display,s=t.find(".fl-nanoscroller-content");"none"===n?s.removeClass("has-scrollbar"):s.addClass("has-scrollbar")}},_initSortables:function(){var i={appendTo:"body",cursor:"move",cursorAt:{left:85,top:20},distance:1,helper:FLBuilder._blockDragHelper,start:FLBuilder._blockDragStart,sort:FLBuilder._blockDragSort,change:FLBuilder._blockDragChange,stop:FLBuilder._blockDragStop,placeholder:"fl-builder-drop-zone",tolerance:"intersect"},t="",l="",n="";n="row"==FLBuilderConfig.userTemplateType||"column"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-content":FLBuilder._contentClass+" .fl-row-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col:not(.fl-builder-node-loading):not(.fl-node-global) .fl-col-content",l="row"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target":FLBuilder._contentClass+" .fl-row-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target",t=FLBuilderConfig.nestedColumns?n:"row"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target":FLBuilder._contentClass+" .fl-row-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target",e(".fl-builder-rows").sortable(e.extend({},i,{connectWith:t,items:".fl-builder-block-row",stop:FLBuilder._rowDragStop})),e(".fl-builder-row-templates").sortable(e.extend({},i,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",items:".fl-builder-block-row-template",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-saved-rows").sortable(e.extend({},i,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:FLBuilder._contentClass+" .fl-row-drop-target",items:".fl-builder-block-saved-row",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-saved-columns").sortable(e.extend({},i,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:l,items:".fl-builder-block-saved-column",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-modules, .fl-builder-widgets").sortable(e.extend({},i,{connectWith:n,items:".fl-builder-block-module",stop:FLBuilder._moduleDragStop})),e(".fl-builder-module-templates").sortable(e.extend({},i,{connectWith:n,items:".fl-builder-block-module-template",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-saved-modules").sortable(e.extend({},i,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:n,items:".fl-builder-block-saved-module",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-row-sortable-proxy").sortable(e.extend({},i,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",helper:FLBuilder._rowDragHelper,start:FLBuilder._rowDragStart,stop:FLBuilder._rowDragStop})),e(".fl-col-sortable-proxy").sortable(e.extend({},i,{connectWith:n,helper:FLBuilder._colDragHelper,start:FLBuilder._colDragStart,stop:FLBuilder._colDragStop})),e(FLBuilder._contentClass+" .fl-col-content").sortable(e.extend({},i,{connectWith:n,handle:".fl-module-overlay .fl-block-overlay-actions .fl-block-move",helper:FLBuilder._moduleDragHelper,items:".fl-module, .fl-col-group",start:FLBuilder._moduleDragStart,stop:FLBuilder._moduleDragStop})),e(FLBuilder._contentClass+" .fl-row-drop-target").sortable(i),e(FLBuilder._contentClass+" .fl-col-group-drop-target").sortable(i),e(FLBuilder._contentClass+" .fl-col-drop-target").sortable(i)},_refreshSortables:function(){e(".ui-sortable").sortable("refresh")},_initStrings:function(){e.validator.messages.required=FLBuilderStrings.validateRequiredMessage},_bindEvents:function(){$excludedLinks=e(".fl-builder-bar a, .fl-builder--content-library-panel a, .fl-page-nav .nav a"),e("a").not($excludedLinks).on("click",FLBuilder._preventDefault),e(".fl-page-nav .nav a").on("click",FLBuilder._headerLinkClicked),e("body").delegate(".fl-builder-content a","click",FLBuilder._preventDefault),e("body").delegate("button.fl-builder-button","mouseup",this._buttonMouseUp.bind(this)),e(document).on("heartbeat-tick",FLBuilder._initPostLock),e(window).on("beforeunload",FLBuilder._warnBeforeUnload),e("body").delegate(".fl-builder-has-submenu","click",FLBuilder._submenuParentClicked),e("body").delegate(".fl-builder-has-submenu a","click",FLBuilder._submenuChildClicked),e("body").delegate(".fl-builder-submenu","mouseenter",FLBuilder._submenuMouseenter),e("body").delegate(".fl-builder-submenu","mouseleave",FLBuilder._submenuMouseleave),e("body").delegate(".fl-builder-submenu .fl-builder-has-submenu","mouseenter",FLBuilder._submenuNestedParentMouseenter),e(".fl-builder-panel-actions .fl-builder-panel-close").on("click",FLBuilder._closePanel),e(".fl-builder-blocks-section-title").on("click",FLBuilder._blockSectionTitleClicked),e("body").delegate(".fl-builder-node-template-actions","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-edit","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-delete","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-edit","click",FLBuilder._editNodeTemplateClicked),e("body").delegate(".fl-builder-node-template-delete","click",FLBuilder._deleteNodeTemplateClicked),e("body").delegate(".fl-builder-block","mousedown",FLBuilder._blockDragInit),e("body").on("mouseup",FLBuilder._blockDragCancel),e("body").delegate(".fl-builder-actions .fl-builder-cancel-button","click",FLBuilder._cancelButtonClicked),e("body").delegate(".fl-builder-save-user-template-button","click",FLBuilder._saveUserTemplateClicked),e("body").delegate(".fl-builder-duplicate-layout-button","click",FLBuilder._duplicateLayoutClicked),e("body").delegate(".fl-builder-layout-settings-button","click",FLBuilder._layoutSettingsClicked),e("body").delegate(".fl-builder-layout-settings .fl-builder-settings-save","click",FLBuilder._saveLayoutSettingsClicked),e("body").delegate(".fl-builder-layout-settings .fl-builder-settings-cancel","click",FLBuilder._cancelLayoutSettingsClicked),e("body").delegate(".fl-builder-global-settings-button","click",FLBuilder._globalSettingsClicked),e("body").delegate(".fl-builder-global-settings .fl-builder-settings-save","click",FLBuilder._saveGlobalSettingsClicked),e("body").delegate(".fl-builder-global-settings .fl-builder-settings-cancel","click",FLBuilder._cancelLayoutSettingsClicked),e("body").delegate(".fl-user-template","click",FLBuilder._userTemplateClicked),e("body").delegate(".fl-user-template-edit","click",FLBuilder._editUserTemplateClicked),e("body").delegate(".fl-user-template-delete","click",FLBuilder._deleteUserTemplateClicked),e("body").delegate(".fl-builder-template-replace-button","click",FLBuilder._templateReplaceClicked),e("body").delegate(".fl-builder-template-append-button","click",FLBuilder._templateAppendClicked),e("body").delegate(".fl-builder-template-actions .fl-builder-cancel-button","click",FLBuilder._templateCancelClicked),e("body").delegate(".fl-builder-user-template-settings .fl-builder-settings-save","click",FLBuilder._saveUserTemplateSettings),e("body").delegate(".fl-builder-help-tour-button","click",FLBuilder._startHelpTour),e("body").delegate(".fl-builder-knowledge-base-button","click",FLBuilder._viewKnowledgeBaseClicked),e("body").delegate(".fl-builder-forums-button","click",FLBuilder._visitForumsClicked),e("body").delegate(".fl-builder-no-tour-button","click",FLBuilder._noTourButtonClicked),e("body").delegate(".fl-builder-yes-tour-button","click",FLBuilder._yesTourButtonClicked),e("body").delegate(".fl-builder-alert-close","click",FLBuilder._alertClose),e("body").delegate(".fl-block-overlay","contextmenu",FLBuilder._onContextmenu),e("body").delegate(".fl-row-overlay .fl-block-remove","click",FLBuilder._deleteRowClicked),e("body").delegate(".fl-row-overlay .fl-block-copy","click",FLBuilder._rowCopyClicked),e("body").delegate(".fl-row-overlay .fl-block-move","mousedown",FLBuilder._rowDragInit),e("body").delegate(".fl-row-overlay .fl-block-settings","click",FLBuilder._rowSettingsClicked),e("body").delegate(".fl-row-overlay","click",FLBuilder._rowSettingsClicked),e("body").delegate(".fl-builder-row-settings .fl-builder-settings-save","click",FLBuilder._saveSettings),e("body").delegate(".fl-block-col-submenu .fl-block-row-reset","click",FLBuilder._resetRowWidthClicked),e("body").delegate(".fl-col-overlay .fl-block-move","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-block-col-copy","click",FLBuilder._copyColClicked),e("body").delegate(".fl-col-overlay .fl-block-remove","click",FLBuilder._deleteColClicked),e("body").delegate(".fl-col-overlay .fl-block-settings","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-col-overlay","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-builder-col-settings .fl-builder-settings-save","click",FLBuilder._saveSettings),e("body").delegate(".fl-block-col-submenu .fl-block-col-move","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-block-col-submenu .fl-block-col-edit","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-block-col-submenu .fl-block-col-delete","click",FLBuilder._deleteColClicked),e("body").delegate(".fl-block-col-submenu .fl-block-col-reset","click",FLBuilder._resetColumnWidthsClicked),e("body").delegate(".fl-block-col-submenu li","mouseenter",FLBuilder._showColHighlightGuide),e("body").delegate(".fl-block-col-submenu li","mouseleave",FLBuilder._removeColHighlightGuides),e("body").delegate(".fl-block-col-submenu .fl-block-col-move-parent","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-block-col-submenu .fl-block-col-edit-parent","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-module-overlay .fl-block-remove","click",FLBuilder._deleteModuleClicked),e("body").delegate(".fl-module-overlay .fl-block-copy","click",FLBuilder._moduleCopyClicked),e("body").delegate(".fl-module-overlay .fl-block-move","mousedown",FLBuilder._blockDragInit),e("body").delegate(".fl-module-overlay .fl-block-settings","click",FLBuilder._moduleSettingsClicked),e("body").delegate(".fl-module-overlay","click",FLBuilder._moduleSettingsClicked),e("body").delegate(".fl-builder-module-settings .fl-builder-settings-save","click",FLBuilder._saveModuleClicked),e("body").delegate(".fl-module-overlay .fl-block-col-settings","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-builder-settings-save-as","click",FLBuilder._showNodeTemplateSettings),e("body").delegate(".fl-builder-node-template-settings .fl-builder-settings-save","click",FLBuilder._saveNodeTemplate),e("body").delegate(".fl-builder-settings-tabs a","click",FLBuilder._settingsTabClicked),e("body").delegate(".fl-builder-settings-tabs a","show",FLBuilder._calculateSettingsTabsOverflow),e("body").delegate(".fl-builder-settings-tabs a","hide",FLBuilder._calculateSettingsTabsOverflow),e("body").delegate(".fl-builder-settings-cancel","click",FLBuilder._settingsCancelClicked),e("body").delegate(".fl-builder-settings-tabs-overflow-menu > a","click",FLBuilder._settingsTabsToOverflowMenuItemClicked.bind(this)),e("body").delegate(".fl-builder-settings-tabs-more","click",FLBuilder._toggleTabsOverflowMenu.bind(this)),e("body").delegate(".fl-builder-settings-tabs-overflow-click-mask","click",FLBuilder._hideTabsOverflowMenu.bind(this)),e("body").delegate(".fl-help-tooltip-icon","mouseover",FLBuilder._showHelpTooltip),e("body").delegate(".fl-help-tooltip-icon","mouseout",FLBuilder._hideHelpTooltip),e("body").delegate(".fl-builder-field-add","click",FLBuilder._addFieldClicked),e("body").delegate(".fl-builder-field-copy","click",FLBuilder._copyFieldClicked),e("body").delegate(".fl-builder-field-delete","click",FLBuilder._deleteFieldClicked),e("body").delegate(".fl-photo-field .fl-photo-select","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-edit","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-replace","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-remove","click",FLBuilder._singlePhotoRemoved),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-select","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-edit","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-add","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-video-field .fl-video-select","click",FLBuilder._selectSingleVideo),e("body").delegate(".fl-video-field .fl-video-replace","click",FLBuilder._selectSingleVideo),e("body").delegate(".fl-video-field .fl-video-remove","click",FLBuilder._singleVideoRemoved),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-select","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-edit","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-add","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-icon-field .fl-icon-select","click",FLBuilder._selectIcon),e("body").delegate(".fl-icon-field .fl-icon-replace","click",FLBuilder._selectIcon),e("body").delegate(".fl-icon-field .fl-icon-remove","click",FLBuilder._removeIcon),e("body").delegate(".fl-form-field .fl-form-field-edit","click",FLBuilder._formFieldClicked),e("body").delegate(".fl-form-field-settings .fl-builder-settings-save","click",FLBuilder._saveFormFieldClicked),e("body").delegate(".fl-layout-field-option","click",FLBuilder._layoutFieldClicked),e("body").delegate(".fl-link-field-select","click",FLBuilder._linkFieldSelectClicked),e("body").delegate(".fl-link-field-search-cancel","click",FLBuilder._linkFieldSelectCancelClicked),e("body").delegate(".fl-loop-data-source-select select[name=data_source]","change",FLBuilder._loopDataSourceChange),e("body").delegate(".fl-custom-query select[name=post_type]","change",FLBuilder._customQueryPostTypeChange),e("body").delegate(".fl-text-field-add-value","change",FLBuilder._textFieldAddValueSelectChange),e("body").delegate(".fl-field input[type=number]","focus",FLBuilder._onNumberFieldFocus),e("body").delegate(".fl-field input[type=number]","blur",FLBuilder._onNumberFieldBlur),FLBuilder.addHook("didCompleteAJAX",FLBuilder._refreshSettingsPreviewReference),FLBuilder.addHook("didRenderLayoutComplete",FLBuilder._refreshSettingsPreviewReference)},_unbindEvents:function(){e("a").off("click",FLBuilder._preventDefault),e(".fl-page-nav .nav a").off("click",FLBuilder._headerLinkClicked),e("body").undelegate(".fl-builder-content a","click",FLBuilder._preventDefault)},_rebindEvents:function(){e("a").on("click",FLBuilder._preventDefault),e(".fl-page-nav .nav a").on("click",FLBuilder._headerLinkClicked),e("body").delegate(".fl-builder-content a","click",FLBuilder._preventDefault)},_bindOverlayEvents:function(){var i=e(FLBuilder._contentClass);i.delegate(".fl-row","mouseenter",FLBuilder._rowMouseenter),i.delegate(".fl-row","mouseleave",FLBuilder._rowMouseleave),i.delegate(".fl-row-overlay","mouseleave",FLBuilder._rowMouseleave),i.delegate(".fl-col","mouseenter",FLBuilder._colMouseenter),i.delegate(".fl-col","mouseleave",FLBuilder._colMouseleave),i.delegate(".fl-module","mouseenter",FLBuilder._moduleMouseenter),i.delegate(".fl-module","mouseleave",FLBuilder._moduleMouseleave)},_destroyOverlayEvents:function(){var i=e(FLBuilder._contentClass);i.undelegate(".fl-row","mouseenter",FLBuilder._rowMouseenter),i.undelegate(".fl-row","mouseleave",FLBuilder._rowMouseleave),i.undelegate(".fl-row-overlay","mouseleave",FLBuilder._rowMouseleave),i.undelegate(".fl-col","mouseenter",FLBuilder._colMouseenter),i.undelegate(".fl-col","mouseleave",FLBuilder._colMouseleave),i.undelegate(".fl-module","mouseenter",FLBuilder._moduleMouseenter),i.undelegate(".fl-module","mouseleave",FLBuilder._moduleMouseleave)},_onContextmenu:function(i){e(this).hide()},_preventDefault:function(e){e.preventDefault()},_stopPropagation:function(e){e.stopPropagation()},_headerLinkClicked:function(i){var t=e(this),l=t.attr("href");this.hash||(i.preventDefault(),FLBuilderConfig.isUserTemplate||(FLBuilder._exitUrl=l.indexOf("?")>-1?l:l+"?fl_builder",FLBuilder.triggerHook("triggerDone")))},_warnBeforeUnload:function(){var i=e(".fl-builder-row-settings").length>0,t=e(".fl-builder-col-settings").length>0,l=e(".fl-builder-module-settings").length>0;if(i||t||l)return FLBuilderStrings.unloadWarning},_initTipTips:function(){e(".fl-tip:not(.fl-has-tip)").each(function(){var i=e(this);i.addClass("fl-has-tip"),void 0==i.attr("data-title")&&i.attr("data-title",i.attr("title"))}).tipTip({defaultPosition:"top",delay:1e3})},_hideTipTips:function(){e("#tiptip_holder").stop().hide()},_submenuParentClicked:function(i){var t=e("body"),l=e(this),n=l.find(".fl-builder-submenu");l.hasClass("fl-builder-submenu-open")?(t.removeClass("fl-builder-submenu-open"),l.removeClass("fl-builder-submenu-open"),l.removeClass("fl-builder-submenu-right")):(l.offset().left+n.width()>e(window).width()&&l.addClass("fl-builder-submenu-right"),t.addClass("fl-builder-submenu-open"),l.addClass("fl-builder-submenu-open")),n.closest(".fl-row-overlay").addClass("fl-row-menu-active"),FLBuilder._hideTipTips(),i.preventDefault(),i.stopPropagation()},_submenuChildClicked:function(i){var t=e("body"),l=e(this).parents(".fl-builder-has-submenu");l.parents(".fl-builder-has-submenu").length||(t.removeClass("fl-builder-submenu-open"),l.removeClass("fl-builder-submenu-open"))},_submenuMouseenter:function(i){var t=e(this),l=t.data("timeout");"undefined"!=typeof l&&clearTimeout(l)},_submenuMouseleave:function(i){var t=e("body"),l=e(this),n=setTimeout(function(){t.removeClass("fl-builder-submenu-open"),l.closest(".fl-builder-has-submenu").removeClass("fl-builder-submenu-open")},500);l.closest(".fl-row-overlay").removeClass("fl-row-menu-active"),l.data("timeout",n)},_submenuNestedParentMouseenter:function(i){var t=e(this),l=t.find(".fl-builder-submenu");t.width()+t.offset().left+l.width()>e(window).width()&&t.addClass("fl-builder-submenu-right")},_closeAllSubmenus:function(){e(".fl-builder-submenu-open").removeClass("fl-builder-submenu-open")},_upgradeClicked:function(){window.open(FLBuilderConfig.upgradeUrl)},_buttonMouseUp:function(i){e(i.currentTarget).blur()},_closePanel:function(){FLBuilder.triggerHook("hideContentPanel")},_showPanel:function(){FLBuilder.triggerHook("showContentPanel")},_togglePanel:function(){FLBuilder.triggerHook("toggleContentPanel")},_blockSectionTitleClicked:function(){var i=e(this),t=i.parent();t.hasClass("fl-active")?t.removeClass("fl-active"):(e(".fl-builder-blocks-section").removeClass("fl-active"),t.addClass("fl-active")),FLBuilder._initScrollbars()},_publishLayout:function(e){if(FLBuilder._triggerSettingsSave(!1,!0)){if(_.isUndefined(e))var e=!0;FLBuilder.ajax({action:"save_layout"},this._onPublishComplete.bind(this,e))}},_publishButtonClicked:function(e){FLBuilder._publishLayout(e)},_onPublishComplete:function(i){i&&(FLBuilderConfig.shouldRefreshOnPublish?FLBuilder._exit():FLBuilder._exitWithoutRefresh()),e("#wp-admin-bar-fl-builder-frontend-edit-link .fl-builder-admin-bar-status-dot").css("color","#6bc373"),FLBuilder.triggerHook("didPublishLayout")},_draftButtonClicked:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"save_draft"},FLBuilder._exit)},_discardButtonClicked:function(){var e=confirm(FLBuilderStrings.discardMessage);e?(FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"clear_draft_layout"},FLBuilder._exit)):FLBuilder.triggerHook("didCancelDiscard")},_cancelButtonClicked:function(){FLBuilder._exitUrl=null,FLBuilder._actionsLightbox.close()},_exit:function(){var e=window.location.href;try{var i="undefined"!=typeof window.opener.FLBuilder}catch(t){var i=!1}FLBuilderConfig.isUserTemplate&&"undefined"!=typeof window.opener&&window.opener?(i&&("undefined"==typeof FLBuilderGlobalNodeId?window.opener.FLBuilder._updateLayout():window.opener.FLBuilder._updateNode(FLBuilderGlobalNodeId)),window.close()):(FLBuilder._exitUrl?e=FLBuilder._exitUrl:(e=e.replace("?fl_builder&","?"),e=e.replace("?fl_builder",""),e=e.replace("&fl_builder","")),window.location.href=e)},_exitWithoutRefresh:function(){window.location.href;try{var e="undefined"!=typeof window.opener.FLBuilder}catch(i){var e=!1}FLBuilderConfig.isUserTemplate&&e&&window.opener?(e&&("undefined"==typeof FLBuilderGlobalNodeId?window.opener.FLBuilder._updateLayout():window.opener.FLBuilder._updateNode(FLBuilderGlobalNodeId)),window.close()):FLBuilder.triggerHook("endEditingSession")},_duplicateLayoutClicked:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"duplicate_post"},FLBuilder._duplicateLayoutComplete)},_duplicateLayoutComplete:function(e){var i=FLBuilderConfig.adminUrl;window.location.href=i+"post.php?post="+e+"&action=edit"},_layoutSettingsClicked:function(){FLBuilderSettingsForms.render({id:"layout",className:"fl-builder-layout-settings",settings:FLBuilderSettingsConfig.settings.layout},function(){FLBuilder._layoutSettingsInitCSS()})},_layoutSettingsInitCSS:function(){var i=e(".fl-builder-settings #fl-field-css textarea:not(.ace_text-input)");i.on("change",FLBuilder._layoutSettingsCSSChanged),FLBuilder._layoutSettingsCSSCache=i.val()},_layoutSettingsCSSChanged:function(){FLBuilder._layoutSettingsCSSTimeout&&clearTimeout(FLBuilder._layoutSettingsCSSTimeout),FLBuilder._layoutSettingsCSSTimeout=setTimeout(e.proxy(FLBuilder._layoutSettingsCSSDoChange,this),600)},_layoutSettingsCSSDoChange:function(){var i=e(".fl-builder-settings"),t=e(this),l=t.parents("#fl-field-css");l.find(".ace_error").length>0||(i.hasClass("fl-builder-layout-settings")?e("#fl-builder-layout-css").html(t.val()):e("#fl-builder-global-css").html(t.val()),FLBuilder._layoutSettingsCSSTimeout=null)},_saveLayoutSettingsClicked:function(){for(var i=e(this).closest(".fl-builder-settings"),t=i.serializeArray(),l={},n=0;n<t.length;n++)l[t[n].name]=t[n].value;FLBuilder.showAjaxLoader(),FLBuilder._lightbox.close(),FLBuilder._layoutSettingsCSSCache=null,FLBuilder.ajax({action:"save_layout_settings",settings:l},function(){FLBuilder.triggerHook("didSaveLayoutSettingsComplete",l),FLBuilder._updateLayout()})},_cancelLayoutSettingsClicked:function(){var i=e(".fl-builder-settings");i.hasClass("fl-builder-layout-settings")?e("#fl-builder-layout-css").html(FLBuilder._layoutSettingsCSSCache):e("#fl-builder-global-css").html(FLBuilder._layoutSettingsCSSCache),FLBuilder._layoutSettingsCSSCache=null},_globalSettingsClicked:function(){FLBuilderSettingsForms.render({id:"global",className:"fl-builder-global-settings",settings:FLBuilderSettingsConfig.settings.global},function(){FLBuilder._layoutSettingsInitCSS()})},_saveGlobalSettingsClicked:function(){var i=e(this).closest(".fl-builder-settings"),t=i.validate().form(),l=FLBuilder._getSettings(i);t&&(FLBuilder.showAjaxLoader(),FLBuilder._layoutSettingsCSSCache=null,FLBuilder.ajax({action:"save_global_settings",settings:l},FLBuilder._saveGlobalSettingsComplete),FLBuilder._lightbox.close())},_saveGlobalSettingsComplete:function(e){FLBuilderConfig.global=JSON.parse(e),FLBuilder.triggerHook("didSaveGlobalSettingsComplete",FLBuilderConfig.global),FLBuilder._updateLayout()},_initTemplateSelector:function(){var i=e(FLBuilder._contentClass).find(".fl-row"),t=i.length>0;t||FLBuilder.ContentPanel.show("modules")},_requestTemplateInsert:function(e,i){FLBuilder.layoutHasContent()?0==e?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate(0,!1,i)):(FLBuilder._selectedTemplateId=e,FLBuilder._selectedTemplateType=i,FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(e,!1,i)},_showTemplateActions:function(){var e=[];e[10]={key:"template-replace",label:FLBuilderStrings.templateReplace},e[20]={key:"template-append",label:FLBuilderStrings.templateAppend},FLBuilder._showActionsLightbox({className:"fl-builder-template-actions",title:FLBuilderStrings.actionsLightboxTitle,buttons:e})},_templateReplaceClicked:function(){confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._actionsLightbox.close(),FLBuilder._applyTemplate(FLBuilder._selectedTemplateId,!1,FLBuilder._selectedTemplateType))},_templateAppendClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._applyTemplate(FLBuilder._selectedTemplateId,!0,FLBuilder._selectedTemplateType)},_templateCancelClicked:function(){
|
3 |
-
FLBuilder.triggerHook("showContentPanel")},_applyTemplate:function(e,i,t){i="undefined"!=typeof i&&i?"1":"0",t="undefined"==typeof t?"core":t,FLBuilder._lightbox.close(),FLBuilder.showAjaxLoader(),"core"==t?FLBuilder.ajax({action:"apply_template",template_id:e,append:i},FLBuilder._applyTemplateComplete):FLBuilder.ajax({action:"apply_user_template",template_id:e,append:i},FLBuilder._applyUserTemplateComplete),FLBuilder.triggerHook("didApplyTemplate")},_applyTemplateComplete:function(e){var i=JSON.parse(e);FLBuilder._renderLayout(i.layout),FLBuilder.triggerHook("didApplyTemplateComplete",i.config)},_applyUserTemplateComplete:function(i){var t=JSON.parse(i);null!==t.layout_css&&e("#fl-builder-layout-css").html(t.layout_css),FLBuilder._renderLayout(t.layout),FLBuilder.triggerHook("didApplyTemplateComplete",t.config)},_saveUserTemplateClicked:function(){FLBuilderSettingsForms.render({id:"user_template",className:"fl-builder-user-template-settings",rules:{name:{required:!0}}})},_saveUserTemplateSettings:function(){var i=e(this).closest(".fl-builder-settings"),t=i.validate().form(),l=FLBuilder._getSettings(i);t&&(FLBuilder.ajax({action:"save_user_template",settings:l},FLBuilder._saveUserTemplateSettingsComplete),FLBuilder._lightbox.close())},_saveUserTemplateSettingsComplete:function(e){if(e){var e=JSON.parse(e);FLBuilderConfig.contentItems.template.push(e),FLBuilder.triggerHook("contentItemsChanged")}},_userTemplateClicked:function(){var i=e(this).attr("data-id");e(FLBuilder._contentClass).children(".fl-row").length>0?"blank"==i?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate("blank",!1,"user")):(FLBuilder._selectedTemplateId=i,FLBuilder._selectedTemplateType="user",FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(i,!1,"user")},_editUserTemplateClicked:function(i){i.preventDefault(),i.stopPropagation(),window.open(e(this).attr("href"))},_deleteUserTemplateClicked:function(i){var t=e(this).closest(".fl-user-template"),l=t.attr("data-id"),n=(e(".fl-user-template[data-id="+l+"]"),null),s=null,o=null;if(confirm(FLBuilderStrings.deleteTemplate)){FLBuilder.ajax({action:"delete_user_template",template_id:l});for(s in FLBuilderConfig.contentItems.template)o=FLBuilderConfig.contentItems.template[s],o.postId==l&&(n=s);_.isNull(n)||(FLBuilderConfig.contentItems.template.splice(n,1),FLBuilder.triggerHook("contentItemsChanged"))}i.stopPropagation()},_viewKnowledgeBaseClicked:function(){window.open(FLBuilderConfig.help.knowledge_base_url)},_visitForumsClicked:function(){window.open(FLBuilderConfig.help.forums_url)},_showTourOrTemplates:function(){FLBuilderConfig.simpleUi||FLBuilderConfig.isUserTemplate||(FLBuilderConfig.help.tour&&FLBuilderConfig.newUser?FLBuilder._showTourLightbox():FLBuilder._initTemplateSelector())},_doStats:function(){1==FLBuilderConfig.statsEnabled&&(args={"screen-width":screen.width,"screen-height":screen.height,"pixel-ratio":window.devicePixelRatio,"user-agent":window.navigator.userAgent,isrtl:FLBuilderConfig.isRtl},FLBuilder.ajax({action:"save_browser_stats",browser_data:args}))},_showTourLightbox:function(){var e=wp.template("fl-tour-lightbox");FLBuilder._actionsLightbox.open(e())},_noTourButtonClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._initTemplateSelector()},_yesTourButtonClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilderTour.start()},_startHelpTour:function(){FLBuilder._actionsLightbox.close(),FLBuilderTour.start()},_setupEmptyLayout:function(){var i=e(FLBuilder._contentClass);FLBuilderConfig.isUserTemplate&&"module"==FLBuilderConfig.userTemplateType||FLBuilderConfig.isUserTemplate&&"column"==FLBuilderConfig.userTemplateType||(i.removeClass("fl-builder-empty"),i.find(".fl-builder-empty-message").remove(),i.find(".fl-row, .fl-builder-block").length||(i.addClass("fl-builder-empty"),i.append('<span class="fl-builder-empty-message">'+FLBuilderStrings.emptyMessage+"</span>"),FLBuilder._initSortables()))},_updateNode:function(i,t){e(".fl-node-"+i).length&&(FLBuilder._showNodeLoading(i),FLBuilder.ajax({action:"render_node",node_id:i},function(e){FLBuilder._renderLayout(JSON.parse(e),t)}.bind(this)))},_updateLayout:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"render_layout"},FLBuilder._renderLayout)},_renderLayout:function(e,i){FLBuilder._layout?FLBuilder._layoutQueue.push({data:e,callback:i}):FLBuilder._layout=new FLBuilderAJAXLayout(e,i)},_renderLayoutComplete:function(){if(FLBuilder._layout&&(FLBuilder._layout._complete(),FLBuilder._layout=null),FLBuilder._layoutQueue.length){var e=FLBuilder._layoutQueue.shift();FLBuilder._layout=new FLBuilderAJAXLayout(e.data,e.callback)}},_resizeLayout:function(){e(window).trigger("resize"),"undefined"!=typeof YUI&&YUI().use("node-event-simulate",function(e){e.one(window).simulate("resize")})},layoutHasContent:function(){return e(FLBuilder._contentClass).children(".fl-row").length>0},_initMediaElements:function(){var i={};"undefined"!=typeof e.fn.mediaelementplayer&&("undefined"!=typeof _wpmejsSettings&&(i.pluginPath=_wpmejsSettings.pluginPath),e(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").mediaelementplayer(i))},_initDropTargets:function(){var i="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",t=e(FLBuilder._contentClass+" .fl-row"),l=null,n=e(FLBuilder._contentClass+" .fl-row"+i).find(".fl-col-group"),s=null,o=null,r="column"==FLBuilderConfig.userTemplateType?e(FLBuilder._contentClass+"> .fl-col").eq(0):null,a=0;for(e(".fl-col-drop-target").remove(),e(".fl-col-group-drop-target").remove(),e(".fl-row-drop-target").remove(),e(FLBuilder._contentClass).append('<div class="fl-drop-target fl-row-drop-target"></div>'),t.prepend('<div class="fl-drop-target fl-row-drop-target"></div>'),t.append('<div class="fl-drop-target fl-drop-target-last fl-row-drop-target fl-row-drop-target-last"></div>');a<t.length;a++)l=t.eq(a),0===l.find(".fl-col-group").length&&l.find(".fl-row-content").prepend('<div class="fl-drop-target fl-col-group-drop-target"></div>');for(r&&0===n.length&&(n=r.find(".fl-col-group"),r.append('<div class="fl-drop-target fl-col-drop-target"></div>'),r.append('<div class="fl-drop-target fl-drop-target-last fl-col-drop-target fl-col-drop-target-last"></div>')),a=0;a<n.length;a++)s=n.eq(a),o=s.find("> .fl-col"),s.hasClass("fl-col-group-nested")||(s.append('<div class="fl-drop-target fl-col-group-drop-target"></div>'),s.append('<div class="fl-drop-target fl-drop-target-last fl-col-group-drop-target fl-col-group-drop-target-last"></div>')),o.append('<div class="fl-drop-target fl-col-drop-target"></div>'),o.append('<div class="fl-drop-target fl-drop-target-last fl-col-drop-target fl-col-drop-target-last"></div>')},_blockDragHelper:function(e,i){var t=i.clone();return i.clone().insertAfter(i),t.addClass("fl-builder-block-drag-helper"),t},_blockDragInit:function(i){var t=e(i.currentTarget),l=null,n=e(window).scrollTop(),s=0;FLBuilder._dragEnabled=!0,FLBuilder._dragInitialScrollTop=n,t.closest("[data-node]").length>0?(l=t.closest("[data-node]"),l.addClass("fl-node-drag-init")):t.hasClass("fl-builder-block")&&e(".fl-row").each(function(){null===l&&e(this).offset().top-n>0&&(l=e(this))}),null!==l&&(s=l.offset().top-n),FLBuilder._highlightRowsAndColsForDrag(t),FLBuilder._adjustColHeightsForDrag(),FLBuilder._disableGlobalRows(),FLBuilder._disableGlobalCols(),FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays(),FLBuilder._initSortables(),e("body").addClass("fl-builder-dragging"),e(".fl-builder-empty-message").hide(),e(".fl-sortable-disabled").removeClass("fl-sortable-disabled"),s>0&&scrollTo(0,l.offset().top-s),FLBuilder.triggerHook("didInitDrag")},_blockDragStart:function(i,t){FLBuilder._dragging=!0,e(".fl-node-drag-init").removeClass("fl-node-drag-init"),FLBuilder.triggerHook("didStartDrag")},_blockDragSort:function(i,t){var l=t.placeholder.parent(),n=FLBuilderStrings.insert;FLBuilder._blockPreventSort(t.item,l)||(l.hasClass("fl-col-content")?n=t.item.hasClass("fl-builder-block-row")?t.item.find(".fl-builder-block-title").text():t.item.hasClass("fl-col-sortable-proxy-item")?FLBuilderStrings.column:t.item.hasClass("fl-builder-block-module")?t.item.find(".fl-builder-block-title").text():t.item.hasClass("fl-builder-block-saved-module")||t.item.hasClass("fl-builder-block-module-template")?t.item.find(".fl-builder-block-title").text():t.item.attr("data-name"):l.hasClass("fl-col-drop-target")?n="":l.hasClass("fl-col-group-drop-target")?n="":l.hasClass("fl-row-drop-target")&&(n=t.item.hasClass("fl-builder-block-row")?t.item.find(".fl-builder-block-title").text():t.item.hasClass("fl-builder-block-saved-row")?t.item.find(".fl-builder-block-title").text():t.item.hasClass("fl-builder-block-saved-column")?t.item.find(".fl-builder-block-title").text():t.item.hasClass("fl-row-sortable-proxy-item")?FLBuilderStrings.row:FLBuilderStrings.newRow),t.placeholder.html(n),t.item.hasClass("fl-node-global")||t.item.hasClass("fl-builder-block-global")||e(".fl-node-dragging").hasClass("fl-node-global")?t.placeholder.addClass("fl-builder-drop-zone-global"):t.placeholder.removeClass("fl-builder-drop-zone-global"))},_blockDragChange:function(e,i){i.placeholder.css("opacity","0"),i.placeholder.animate({opacity:"1"},100)},_blockPreventSort:function(i,t){var l=!1,n=i.hasClass("fl-builder-block-row"),s=i.hasClass("fl-col-sortable-proxy-item"),o=t.hasClass("fl-col-content"),r=t.hasClass("fl-col-drop-target"),a=t.parents(".fl-col-group:not(.fl-col-group-nested)"),d=t.parents(".fl-col-group-nested");return(n||s)&&o&&d.length>0&&(l=!0),o&&!t.find(".fl-module, .fl-col").length&&(n&&"1-col"==i.data("cols")?l=!0:s&&(l=!0)),n&&o&&e.inArray(i.data("cols"),["5-cols","6-cols"])>-1&&(l=!0),s&&e(".fl-node-dragging").find(".fl-col-group-nested").length>0&&(o||r&&d.length>0)&&(l=!0),r&&a.length>0&&0===d.length&&a.find("> .fl-col:visible").length>11&&(l=!0),r&&d.length>0&&d.find(".fl-col:visible").length>3&&(l=!0),l&&t.addClass("fl-sortable-disabled"),l},_blockDragStop:function(i,t){var l=e(window).scrollTop(),n=t.item.parent(),s=null;n.hasClass("fl-drop-target")&&n.closest("[data-node]").length?(n=n.closest("[data-node]"),s=n.offset().top-l):s=n.offset().top-l,n.hasClass("fl-builder-blocks-section-content")&&FLBuilder._showPanel(),FLBuilder._dragEnabled=!1,FLBuilder._dragging=!1,FLBuilder._bindOverlayEvents(),FLBuilder._removeEmptyRowAndColHighlights(),FLBuilder._highlightEmptyCols(),FLBuilder._enableGlobalRows(),FLBuilder._enableGlobalCols(),FLBuilder._setupEmptyLayout(),e("body").removeClass("fl-builder-dragging"),scrollTo(0,n.offset().top-s),FLBuilder.triggerHook("didStopDrag")},_blockDragCancel:function(){FLBuilder._dragEnabled&&!FLBuilder._dragging&&(FLBuilder._dragEnabled=!1,FLBuilder._dragging=!1,FLBuilder._bindOverlayEvents(),FLBuilder._removeEmptyRowAndColHighlights(),FLBuilder._highlightEmptyCols(),FLBuilder._enableGlobalRows(),FLBuilder._setupEmptyLayout(),e("body").removeClass("fl-builder-dragging"),e(".fl-node-drag-init").removeClass("fl-node-drag-init"),e(".fl-node-dragging").removeClass("fl-node-dragging"),scrollTo(0,FLBuilder._dragInitialScrollTop))},_reorderNode:function(e,i){FLBuilder.ajax({action:"reorder_node",node_id:e,position:i})},_moveNode:function(e,i,t){FLBuilder.ajax({action:"move_node",new_parent:e,node_id:i,position:t})},_removeAllOverlays:function(){FLBuilder._removeRowOverlays(),FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides(),FLBuilder._removeModuleOverlays(),FLBuilder._hideTipTips(),FLBuilder._closeAllSubmenus()},_appendOverlay:function(e,i){var t=0,l=null,n=e.hasClass("fl-row"),s=n?e.find("> .fl-row-content-wrap"):e.find("> .fl-node-content"),o={top:parseInt(s.css("margin-top"),10),bottom:parseInt(s.css("margin-bottom"),10)};return e.append(i),e.addClass("fl-block-overlay-active"),FLBuilder._initTipTips(),l=e.find("> .fl-block-overlay"),o.top<0&&(t=parseInt(l.css("top"),10),t=isNaN(t)?0:t,l.css("top",o.top+t+"px")),o.bottom<0&&(t=parseInt(l.css("bottom"),10),t=isNaN(t)?0:t,l.css("bottom",o.bottom+t+"px")),l},_buildOverlayOverflowMenu:function(e){var i=e.find(".fl-block-overlay-header"),t=e.find(".fl-block-overlay-actions"),l=e.find(".fl-block-has-rules"),n=t.data("original"),s=0,o=null,r=0,a=null,d=0,u=[],c=[],f=[],h=wp.template("fl-overlay-overflow-menu");for(void 0!=n&&(t.after(n),t.remove(),t=n),t.data("original",t.clone()),s=Math.floor(t[0].getBoundingClientRect().width)-8,o=t.find(" > i, > span.fl-builder-has-submenu"),l.length&&s+l.outerWidth()>i.outerWidth()&&(r+=l.outerWidth());d<o.length;d++)a=o.eq(d),r+=Math.floor(a[0].getBoundingClientRect().width),r>s?(c.push(a),a.remove()):u.push(a);if(c.length>0){for(u.length>0&&c.unshift(u.pop().remove()),d=0;d<c.length;d++)c[d].is(".fl-builder-has-submenu")?f.push({type:"submenu",label:c[d].find(".fa, .fas, .far").data("title"),submenu:c[d].find(".fl-builder-submenu")[0].outerHTML}):f.push({type:"action",label:c[d].data("title"),className:c[d].removeClass(function(e,i){return i.replace(/fl-block-([^\s]+)/,"")}).attr("class")});t.append(h(f)),FLBuilder._initTipTips()}},_removeRowOverlays:function(){e(".fl-row").removeClass("fl-block-overlay-active"),e(".fl-row-overlay").remove(),e(".fl-module").removeClass("fl-module-adjust-height"),e("body").removeClass("fl-builder-row-resizing"),FLBuilder._closeAllSubmenus()},_disableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&e(".fl-row.fl-node-global").addClass("fl-node-disabled")},_disableGlobalCols:function(){"column"!=FLBuilderConfig.userTemplateType&&e(".fl-row:not(.fl-node-global) .fl-col.fl-node-global").addClass("fl-node-disabled")},_enableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&e(".fl-node-disabled").removeClass("fl-node-disabled")},_enableGlobalCols:function(){"column"!=FLBuilderConfig.userTemplateType&&e(".fl-node-disabled").removeClass("fl-node-disabled")},_rowMouseenter:function(){var i=e(this),t=i.offset().top,l=null,n=null,s=wp.template("fl-row-overlay"),o=FLBuilderResponsiveEditing._mode;i.closest(".fl-builder-node-loading").length||i.hasClass("fl-block-overlay-active")||(n=FLBuilder._appendOverlay(i,s({node:i.attr("data-node"),global:i.hasClass("fl-node-global"),hasRules:i.hasClass("fl-node-has-rules")})),i.find(".fl-node-content:visible").each(function(){var i=e(this).offset().top;l=null===l||l>i?i:l}),null!==l&&l<t&&n.css("top",l-t-30+"px"),("default"===o&&n.offset().top<43||"default"!==o&&0===i.index())&&n.addClass("fl-row-overlay-header-bottom"),i.find(".fl-module").each(function(){var i=e(this);i.outerHeight(!0)<20&&i.addClass("fl-module-adjust-height")}),FLBuilder._buildOverlayOverflowMenu(n))},_rowMouseleave:function(i){var t=e(i.toElement)||e(i.relatedTarget),l=t.hasClass("fl-row-overlay"),n=t.closest(".fl-row-overlay").length>0,s=t.is("#tiptip_holder"),o=t.closest("#tiptip_holder").length>0;l||n||s||o||FLBuilder._removeRowOverlays()},_rowDragHelper:function(){return e('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.row+"</div>")},_rowDragInit:function(i){var t=e(i.target),l=e(".fl-row-sortable-proxy-item"),n=t.closest(".fl-row");n.addClass("fl-node-dragging"),FLBuilder._blockDragInit(i),i.target=l[0],l.trigger(i)},_rowDragStart:function(i,t){var l=e(FLBuilder._contentClass+" .fl-row"),n=e(".fl-node-dragging");1===l.length&&e(FLBuilder._contentClass).addClass("fl-builder-empty"),n.hide(),FLBuilder._blockDragStart(i,t)},_rowDragStop:function(i,t){var l=t.item,n=l.parent(),s=null,o=null,r=0;if(FLBuilder._blockDragStop(i,t),n.hasClass("fl-builder-rows"))return void l.remove();if(n.hasClass("fl-row-sortable-proxy"))return void e(".fl-node-dragging").removeClass("fl-node-dragging").show();if(l.hasClass("fl-builder-block")){if(n.hasClass("fl-sortable-disabled"))return l.remove(),void FLBuilder._showPanel();n.hasClass("fl-col-content")?FLBuilder._addColGroup(l.closest(".fl-col").attr("data-node"),l.attr("data-cols"),n.find("> .fl-module, .fl-col-group, .fl-builder-block").index(l)):n.hasClass("fl-col-drop-target")?FLBuilder._addCols(n.closest(".fl-col"),n.hasClass("fl-col-drop-target-last")?"after":"before",l.attr("data-cols"),n.closest(".fl-col-group-nested").length>0):n.hasClass("fl-col-group-drop-target")?(o=l.closest(".fl-col-group"),r=l.closest(".fl-row").find(".fl-row-content > .fl-col-group").index(o),FLBuilder._addColGroup(l.closest(".fl-row").attr("data-node"),l.attr("data-cols"),n.hasClass("fl-drop-target-last")?r+1:r)):(s=l.closest(".fl-row"),r=s.length?e(FLBuilder._contentClass+" > .fl-row").index(s):0,FLBuilder._addRow(l.attr("data-cols"),n.hasClass("fl-drop-target-last")?r+1:r)),l.remove(),FLBuilder._showPanel(),e(".fl-builder-modules").siblings(".fl-builder-blocks-section-title").eq(0).trigger("click")}else s=e(".fl-node-dragging").removeClass("fl-node-dragging").show(),n.parent().hasClass("fl-builder-content")||(n.hasClass("fl-drop-target-last")?n.parent().after(s):n.parent().before(s),FLBuilder._reorderNode(s.attr("data-node"),s.index())),e(".fl-row-sortable-proxy").append(t.item)},_addRow:function(i,t,l){FLBuilder._showNodeLoadingPlaceholder(e(FLBuilder._contentClass),t),FLBuilder._newRowPosition=t,FLBuilder.ajax({action:"render_new_row",cols:i,position:t,module:l},FLBuilder._addRowComplete)},_addRowComplete:function(i){var t="object"==typeof i?i:JSON.parse(i),l=e(FLBuilder._contentClass),n=e(t.html).data("node");t.nodeParent=l,t.nodePosition=FLBuilder._newRowPosition,FLBuilder._renderLayout(t,function(){FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+n)),FLBuilder.triggerHook("didAddRow",n)})},_deleteRowClicked:function(i){var t=e(this).closest(".fl-row"),l=null;t.find(".fl-module").length?(l=confirm(FLBuilderStrings.deleteRowMessage),l&&FLBuilder._deleteRow(t)):FLBuilder._deleteRow(t),FLBuilder._removeAllOverlays(),i.stopPropagation()},_deleteRow:function(e){var i=e.attr("data-node");FLBuilder.ajax({action:"delete_node",node_id:i}),e.empty(),e.remove(),FLBuilder._setupEmptyLayout(),FLBuilder._removeRowOverlays(),FLBuilder.triggerHook("didDeleteRow",i)},_rowCopyClicked:function(i){var t=e(window),l=e(this).closest(".fl-row"),n=l.attr("data-node"),s=l.clone(),o=e(".fl-builder-settings[data-node]"),r=o.attr("data-node"),a=r===n?l:l.find('[data-node="'+r+'"]'),d=null;o.length&&a.length&&(d=FLBuilder._getSettings(o),FLBuilderSettingsConfig.nodes[r]=d),s.addClass("fl-node-"+n+"-clone fl-builder-node-clone"),s.find(".fl-block-overlay").remove(),l.after(s),FLBuilder._showNodeLoading(n+"-clone"),t.scrollTop()+t.height()<s.offset().top&&e("html, body").animate({scrollTop:s.offset().top+s.height()-t.height()},500),FLBuilder.ajax({action:"copy_row",node_id:n,settings:d,settings_id:r},function(i){var t=JSON.parse(i);t.nodeParent=e(FLBuilder._contentClass),t.nodePosition=e(FLBuilder._contentClass+" > .fl-row").index(s),t.duplicatedRow=n,t.onAddNewHTML=function(){s.remove()},FLBuilder._rowCopyComplete(t)}),i.stopPropagation()},_rowCopyComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder.triggerHook("didDuplicateRow",{newNodeId:e.nodeId,oldNodeId:e.duplicatedRow})})},_rowSettingsClicked:function(i){var t=e(this),l=t.closest(".fl-row").attr("data-node"),n=t.closest(".fl-block-overlay-global").length>0,s=null;n&&"row"!=FLBuilderConfig.userTemplateType?FLBuilderConfig.userCanEditGlobalTemplates&&(s=window.open(e('.fl-row[data-node="'+l+'"]').attr("data-template-url")),s.FLBuilderGlobalNodeId=l):t.hasClass("fl-block-settings")&&FLBuilderSettingsForms.render({id:"row",nodeId:l,className:"fl-builder-row-settings",attrs:'data-node="'+l+'"',buttons:n||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:n?[FLBuilderStrings.global]:[],settings:FLBuilderSettingsConfig.nodes[l],preview:{type:"row"}},function(){e("#fl-field-width select").on("change",FLBuilder._rowWidthChanged),e("#fl-field-content_width select").on("change",FLBuilder._rowWidthChanged)}),i.stopPropagation()},_rowWidthChanged:function(){var i=e("#fl-field-width select").val(),t=e("#fl-field-content_width select").val(),l=e("#fl-field-max_content_width");"fixed"==i||"full"==i&&"fixed"==t?l.show():l.hide()},_resetRowWidthClicked:function(i){var t=e(this),l=t.closest(".fl-row"),n=l.attr("data-node"),s=l.find(".fl-row-content"),o=FLBuilderConfig.global.row_width+"px",r=e(".fl-builder-row-settings");l.hasClass("fl-row-fixed-width")&&l.css("max-width",o),s.css("max-width",o),r.length&&r.find("[name=max_content_width]").val(""),FLBuilder.ajax({action:"resize_row_content",node:n,width:""}),FLBuilder._closeAllSubmenus(),FLBuilder.triggerHook("didResetRowWidth",n),i.stopPropagation()},_highlightEmptyCols:function(){var i="row"==FLBuilderConfig.userTemplateType||"column"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",t=(e(FLBuilder._contentClass+" .fl-row"+i),e(FLBuilder._contentClass+" .fl-col"+i));t.removeClass("fl-col-highlight").find(".fl-col-content").css("height",""),t.each(function(){var i=e(this);0===i.find(".fl-module, .fl-col").length&&i.addClass("fl-col-highlight")})},_highlightRowsAndColsForDrag:function(i){var t="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)";"column"==FLBuilderConfig.userTemplateType&&(t=":not(:first)"),e(FLBuilder._contentClass+" .fl-row").addClass("fl-row-highlight"),i&&i.closest(".fl-row-overlay").length||e(FLBuilder._contentClass+" .fl-col"+t).addClass("fl-col-highlight")},_removeEmptyRowAndColHighlights:function(){e(".fl-row-highlight").removeClass("fl-row-highlight"),e(".fl-col-highlight").removeClass("fl-col-highlight")},_adjustColHeightsForDrag:function(){var i="row"==FLBuilderConfig.userTemplateType?"":".fl-row:not(.fl-node-global) ",t="column"==FLBuilderConfig.userTemplateType?"":".fl-col:not(.fl-node-global) ",l=e(FLBuilder._contentClass),n=l.find(i+".fl-col-group:not(.fl-col-group-nested) > "+t+"> .fl-col-content"),s=l.find(i+".fl-col-group-nested "+t+".fl-col-content"),o=0;for(e(".fl-node-drag-init").hide();o<s.length;o++)FLBuilder._adjustColHeightForDrag(s.eq(o));for(o=0;o<n.length;o++)FLBuilder._adjustColHeightForDrag(n.eq(o));e(".fl-node-drag-init").show()},_adjustColHeightForDrag:function(e){e.find(".fl-module:visible, .fl-col:visible").length&&e.height(e.height()+45)},_showColHighlightGuide:function(){var i=e(this),t=i.find("a"),l=i.closest(".fl-col"),n=l.parents(".fl-col"),s=e('<div class="fl-col-highlight-guide"></div>'),o=null,r=i.closest(".fl-block-overlay").offset().top;(t.hasClass("fl-block-col-move-parent")||t.hasClass("fl-block-col-edit-parent"))&&(l=n),l.hasClass("fl-col-highlight")||(l.find("> .fl-col-content").append(s),l.addClass("fl-col-has-highlight-guide"),o=s.offset().top,o>r&&s.css("top",r-o+4+"px"))},_removeColHighlightGuides:function(){e(".fl-col-has-highlight-guide").removeClass("fl-col-has-highlight-guide"),e(".fl-col-highlight-guide").remove()},_colMouseenter:function(){var i=e(this),t=i.closest(".fl-col-group"),l=t.hasClass("fl-col-group-has-child-loading"),n=i.hasClass("fl-node-global"),s=i.parents(".fl-node-global").length>0,o=i.closest(".fl-col-group").find("> .fl-col").length,r=t.find("> .fl-col").index(i),a=0===r,d=o===r+1,u=i.find(".fl-col").length>0,c=i.find(".fl-module").length>0,f=i.parents(".fl-col"),h=f.closest(".fl-col-group"),g=f.length>0,p="undefined"!=typeof i.data("template-url"),b="column"==FLBuilderConfig.userTemplateType&&!g;numParentCols=g?h.find("> .fl-col").length:0,parentIndex=h.find("> .fl-col").index(f),parentFirst=!!g&&0===parentIndex,parentLast=!!g&&numParentCols===parentIndex+1,row=i.closest(".fl-row"),rowIsFixedWidth=!!row.find(".fl-row-fixed-width").addBack(".fl-row-fixed-width").length,userCanResizeRows=FLBuilderConfig.rowResize.userCanResizeRows,hasRules=i.hasClass("fl-node-has-rules"),template=wp.template("fl-col-overlay"),overlay=null,FLBuilderConfig.simpleUi||n&&s&&c&&!p||n&&"column"==FLBuilderConfig.userTemplateType&&c||!n&&i.find(".fl-module").length>0||i.find(".fl-builder-node-loading-placeholder").length>0||!c&&u||s&&u&&!p||i.closest(".fl-builder-node-loading").length||(i.hasClass("fl-block-overlay-active")||(FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),overlay=FLBuilder._appendOverlay(i,template({global:n,groupLoading:l,numCols:o,first:a,last:d,isRootCol:b,hasChildCols:u,hasParentCol:g,parentFirst:parentFirst,parentLast:parentLast,numParentCols:numParentCols,rowIsFixedWidth:rowIsFixedWidth,userCanResizeRows:userCanResizeRows,hasRules:hasRules})),FLBuilder._buildOverlayOverflowMenu(overlay),FLBuilder._initColDragResizing()),e("body").addClass("fl-block-overlay-muted"))},_colMouseleave:function(i){var t=e(this),l=e(i.toElement)||e(i.relatedTarget),n=t.find(".fl-module").length>0,s=(t.hasClass("fl-node-global"),"undefined"!=typeof t.data("template-url")),o=l.is("#tiptip_holder"),r=l.closest("#tiptip_holder").length>0;o||r||n&&!s||(FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides(),FLBuilder._closeAllSubmenus())},_removeColOverlays:function(){var i=e(".fl-col");i.removeClass("fl-block-overlay-active"),i.find(".fl-col-overlay").remove(),e("body").removeClass("fl-block-overlay-muted"),FLBuilder._closeAllSubmenus()},_colDragHelper:function(){return e('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.column+"</div>")},_colDragInit:function(i){var t=e(i.target),l=e(".fl-col-sortable-proxy-item"),n=t.closest(".fl-col");t.hasClass("fl-block-col-move-parent")&&(n=n.parents(".fl-col")),n.addClass("fl-node-dragging"),FLBuilder._blockDragInit(i),FLBuilder._removeColHighlightGuides(),i.target=l[0],l.trigger(i)},_colDragStart:function(i,t){var l=e(".fl-node-dragging");l.hide(),FLBuilder._resetColumnWidths(l.parent()),FLBuilder._blockDragStart(i,t)},_colDragStop:function(i,t){FLBuilder._blockDragStop(i,t);var l=e(".fl-node-dragging").removeClass("fl-node-dragging").show(),n=l.attr("data-node"),s=t.item.parent(),o=l.parent(),r=o.attr("data-node");newGroup=s.closest(".fl-col-group"),newGroupId=newGroup.attr("data-node"),newRow=s.closest(".fl-row"),position=0,s.closest('[data-node="'+n+'"]').length?FLBuilder._resetColumnWidths(o):s.hasClass("fl-sortable-disabled")?FLBuilder._resetColumnWidths(o):s.hasClass("fl-col-sortable-proxy")?FLBuilder._resetColumnWidths(o):s.hasClass("fl-col-content")?(l.remove(),0===o.find(".fl-col").length&&o.remove(),position=s.find("> .fl-module, .fl-col-group, .fl-col-sortable-proxy-item").index(t.item),FLBuilder._addColGroup(s.closest(".fl-col").attr("data-node"),n,position)):s.hasClass("fl-col-drop-target")?(s.hasClass("fl-col-drop-target-last")?s.parent().after(l):s.parent().before(l),FLBuilder._resetColumnWidths(newGroup),r==newGroupId?FLBuilder.ajax({action:"reorder_col",node_id:n,position:l.index()}):FLBuilder.ajax({action:"move_col",node_id:n,new_parent:newGroupId,position:l.index(),resize:[r,newGroupId]}),FLBuilder._resizeLayout()):s.hasClass("fl-col-group-drop-target")?(l.remove(),0===o.find(".fl-col").length&&o.remove(),position=newRow.find(".fl-row-content > .fl-col-group").index(newGroup),position=s.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addColGroup(newRow.attr("data-node"),n,position)):s.hasClass("fl-row-drop-target")&&(l.remove(),position=s.closest(".fl-builder-content").find(".fl-row").index(newRow),position=s.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addRow(n,position)),0===o.find(".fl-col").length&&o.remove(),e(".fl-col-sortable-proxy").append(t.item),FLBuilder._highlightEmptyCols(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._closeAllSubmenus()},_colSettingsClicked:function(i){var t=e(this),l=t.closest(".fl-col"),n=(l.find("> .fl-col-content"),t.parent().find("ul.fl-builder-submenu").length>0),s=t.closest(".fl-block-overlay-global").length>0,o=t.closest(".fl-block-overlay-global").hasClass("fl-col-overlay"),r="column"!=FLBuilderConfig.userTemplateType&&"undefined"!=typeof l.attr("data-template-url"),a=null;FLBuilder._colResizing||s&&!FLBuilderConfig.userCanEditGlobalTemplates||n&&!t.hasClass("fl-col-overlay")||(t.hasClass("fl-block-col-edit-parent")&&(l=l.parents(".fl-col")),a=l.attr("data-node"),s&&o&&r?FLBuilderConfig.userCanEditGlobalTemplates&&(win=window.open(e('.fl-col[data-node="'+a+'"]').attr("data-template-url")),win.FLBuilderGlobalNodeId=a):FLBuilderSettingsForms.render({id:"col",nodeId:a,className:"fl-builder-col-settings",attrs:'data-node="'+a+'"',buttons:s||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:s?[FLBuilderStrings.global]:[],settings:FLBuilderSettingsConfig.nodes[a],preview:{type:"col"}},function(){0===l.siblings(".fl-col").length&&e("#fl-field-size, #fl-field-equal_height, #fl-field-content_alignment").hide()}),i.stopPropagation())},_copyColClicked:function(i){var t=e(this).closest(".fl-col"),l=t.attr("data-node"),n=t.clone(),s=t.parent(),o=e(".fl-builder-settings[data-node]"),r=o.attr("data-node"),a=r===l?t:t.find('[data-node="'+r+'"]'),d=null;o.length&&a.length&&(d=FLBuilder._getSettings(o),FLBuilderSettingsConfig.nodes[r]=d),n.addClass("fl-node-"+l+"-clone fl-builder-node-clone"),n.find(".fl-block-overlay").remove(),t.after(n),FLBuilder._showNodeLoading(l+"-clone"),FLBuilder._resetColumnWidths(s),FLBuilder.ajax({action:"copy_col",node_id:l,settings:d,settings_id:r},function(e){var i=JSON.parse(e);i.nodeParent=s,i.nodePosition=n.index(),i.duplicatedColumn=l,i.onAddNewHTML=function(){n.remove()},FLBuilder._copyColComplete(i)}),i.stopPropagation()},_copyColComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder._resetColumnWidths(e.nodeParent),FLBuilder.triggerHook("didDuplicateColumn",{newNodeId:e.nodeId,oldNodeId:e.duplicatedColumn})})},_deleteColClicked:function(i){var t=e(this),l=t.closest(".fl-col"),n=l.closest(".fl-col-group"),s=l.parents(".fl-col"),o=s.length>0,r=s.find("> .fl-col-content > .fl-module, > .fl-col-content > .fl-col-group"),a=l.siblings(".fl-col"),d=!0;l.find(".fl-module").length>0&&(d=confirm(FLBuilderStrings.deleteColumnMessage)),o&&1===r.length&&(0===a.length?l=s:1!==a.length||a.find(".fl-module").length||(l=n)),d&&(FLBuilder._deleteCol(l),FLBuilder._removeAllOverlays(),FLBuilder._highlightEmptyCols(),FLBuilder._resizeLayout()),i.stopPropagation()},_deleteCol:function(e){var i=e.attr("data-node"),t=e.closest(".fl-row"),l=e.closest(".fl-col-group"),n=0;e.remove(),rowCols=t.find(".fl-row-content > .fl-col-group > .fl-col"),groupCols=l.find(" > .fl-col"),0===rowCols.length&&"row"!=FLBuilderConfig.userTemplateType&&"column"!=FLBuilderConfig.userTemplateType?FLBuilder._deleteRow(t):(0===groupCols.length?l.remove():(n=6===groupCols.length?16.65:7===groupCols.length?14.28:Math.round(100/groupCols.length*100)/100,groupCols.css("width",n+"%"),FLBuilder.triggerHook("didResetColumnWidths",{cols:groupCols})),FLBuilder.ajax({action:"delete_col",node_id:i,new_width:n}),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder.triggerHook("didDeleteColumn",i))},_addCols:function(e,i,t,l,n){var s=e.closest(".fl-col-group"),o=s.find(".fl-col").index(e);t="undefined"==typeof t?"1-col":t,l="undefined"!=typeof l&&l,"after"==i&&o++,FLBuilder._showNodeLoadingPlaceholder(s,o),FLBuilder._removeAllOverlays(),FLBuilder.ajax({action:"render_new_columns",node_id:e.attr("data-node"),insert:i,type:t,nested:l?1:0,module:n},FLBuilder._addColsComplete)},_addColsComplete:function(i){var t="object"==typeof i?i:JSON.parse(i);t.nodeParent=FLBuilder._newColParent,t.nodePosition=FLBuilder._newColPosition,FLBuilder._renderLayout(t,function(){FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+t.nodeId)),FLBuilder.triggerHook("didAddColumn",t.nodeId),FLBuilder.triggerHook("didResetColumnWidths",{cols:e(".fl-node-"+t.nodeId).find("> .fl-col")})})},_addColGroup:function(i,t,l,n){var s=e(".fl-node-"+i);FLBuilder._newColGroupPosition=l,s.hasClass("fl-col")?FLBuilder._newColGroupParent=s.find(" > .fl-col-content"):FLBuilder._newColGroupParent=s.find(".fl-row-content"),FLBuilder._showNodeLoadingPlaceholder(FLBuilder._newColGroupParent,l),FLBuilder.ajax({action:"render_new_column_group",cols:t,node_id:i,position:l,module:n},FLBuilder._addColGroupComplete)},_addColGroupComplete:function(i){
|
4 |
-
var t=JSON.parse(i),l=e(t.html),n=l.data("node");l.find(".fl-col").data("node");t.nodeParent=FLBuilder._newColGroupParent,t.nodePosition=FLBuilder._newColGroupPosition,FLBuilder._renderLayout(t,function(){t.nodeParent.hasClass("fl-col-content")&&t.nodeParent.parents(".fl-col").addClass("fl-col-has-cols"),FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+n)),FLBuilder.triggerHook("didAddColumnGroup",n)})},_initColDragResizing:function(){e(".fl-block-col-resize").not(".fl-block-row-resize").draggable({axis:"x",start:FLBuilder._colDragResizeStart,drag:FLBuilder._colDragResize,stop:FLBuilder._colDragResizeStop})},_colDragResizeStart:function(i,t){var l=e(t.helper),n="",s=l.hasClass("fl-block-col-resize-parent"),o=s?l.closest(".fl-col").parents(".fl-col"):null,r=s?o.parents(".fl-col-group"):l.closest(".fl-col-group"),a=r.find("> .fl-col"),d=s?o:l.closest(".fl-col"),u=d.attr("data-node"),c=e("[data-node="+u+"] #fl-field-size input"),f=null,h=null,g=null,p=100,b=0,m=null,v=null;for(l.hasClass("fl-block-col-resize-e")?(n="e",f=d.nextAll(".fl-col").first()):(n="w",f=d.prevAll(".fl-col").first()),h=f.attr("data-node"),g=e("[data-node="+h+"] #fl-field-size input");b<a.length;b++)a.eq(b).data("node")!=d.data("node")&&a.eq(b).data("node")!=f.data("node")&&(p-=parseFloat(a.eq(b)[0].style.width));c.length?(m=c,v="col"):g.length&&(m=g,v="sibling"),FLBuilder._colResizeData={handle:l,feedbackLeft:l.find(".fl-block-col-resize-feedback-left"),feedbackRight:l.find(".fl-block-col-resize-feedback-right"),direction:n,groupWidth:r.outerWidth(),col:d,colWidth:parseFloat(d[0].style.width)/100,sibling:f,offset:t.position.left,availWidth:p,setting:m,settingType:v},FLBuilder._colResizing=!0,e("body").addClass("fl-builder-col-resizing"),FLBuilder._closePanel(),FLBuilder._destroyOverlayEvents(),FLBuilder.triggerHook("col-resize-start")},_colDragResize:function(e,i){var t=FLBuilder._colResizeData,l=FLBuilderConfig.isRtl?"w":"e",n=t.handle.closest(".fl-block-overlay"),s=(t.offset-i.position.left)/t.groupWidth,o=l==t.direction?100*(t.colWidth-s):100*(t.colWidth+s),r=Math.round(100*o)/100,a=t.availWidth-o,d=Math.round(100*a)/100,u=8,c=Math.round(100*(t.availWidth-u))/100;r<u?(r=u,d=c):d<u&&(r=c,d=u),l==t.direction?(t.feedbackLeft.html(r.toFixed(1)+"%").show(),t.feedbackRight.html(d.toFixed(1)+"%").show()):(t.feedbackLeft.html(d.toFixed(1)+"%").show(),t.feedbackRight.html(r.toFixed(1)+"%").show()),t.col.css("width",r+"%"),t.sibling.css("width",d+"%"),t.setting&&("col"===t.settingType?t.setting.val(parseFloat(t.col[0].style.width)):"sibling"===t.settingType&&t.setting.val(parseFloat(t.sibling[0].style.width))),FLBuilder._buildOverlayOverflowMenu(n),FLBuilder.triggerHook("col-resize-drag")},_colDragResizeStop:function(i,t){var l=FLBuilder._colResizeData,n=FLBuilder._colResizeData.handle.closest(".fl-block-overlay"),s=l.col.data("node"),o=parseFloat(l.col[0].style.width),r=l.sibling.data("node"),a=parseFloat(l.sibling[0].style.width);FLBuilder._colResizeData.feedbackLeft.hide(),FLBuilder._colResizeData.feedbackRight.hide(),FLBuilder.ajax({action:"resize_cols",col_id:s,col_width:o,sibling_id:r,sibling_width:a}),FLBuilder._buildOverlayOverflowMenu(n),FLBuilder._colResizeData=null,e("body").removeClass("fl-builder-col-resizing"),FLBuilder._bindOverlayEvents(),setTimeout(function(){FLBuilder._colResizing=!1},50),FLBuilder.triggerHook("col-resize-stop"),FLBuilder.triggerHook("didResizeColumn",{colId:s,colWidth:o,siblingId:r,siblingWidth:a})},_resetColumnWidthsClicked:function(i){var t=e(this),l=!!t.closest(".fl-row-overlay").length,n=null,s=null,o=[],r=null,a=0,d=e(".fl-builder-col-settings"),u=null;s=l?t.closest(".fl-row").find(".fl-row-content > .fl-col-group"):t.parents(".fl-col-group").last(),s.each(function(){for(n=e(this),r=n.find(".fl-col-group"),o.push(n.data("node")),FLBuilder._resetColumnWidths(n),a=0;a<r.length;a++)FLBuilder._resetColumnWidths(r.eq(a)),o.push(r.eq(a).data("node"))}),d.length&&(u=e(".fl-node-"+d.attr("data-node")),d.find("#fl-field-size input").val(parseFloat(u[0].style.width))),FLBuilder.ajax({action:"reset_col_widths",group_id:o}),FLBuilder.triggerHook("col-reset-widths"),FLBuilder._closeAllSubmenus(),i.stopPropagation()},_resetColumnWidths:function(e){var i=e.find(" > .fl-col:visible"),t=0;t=6===i.length?16.65:7===i.length?14.28:Math.round(100/i.length*100)/100,i.css("width",t+"%"),FLBuilder.triggerHook("didResetColumnWidths",{cols:i})},_moduleMouseenter:function(){var i=e(this),t=i.attr("data-name"),l=i.hasClass("fl-node-global"),n=i.parents(".fl-node-global").length>0,s=i.parents(".fl-col-group").last(),o=s.hasClass("fl-col-group-has-child-loading"),r=i.closest(".fl-col-group").find("> .fl-col").length,a=i.closest(".fl-col"),d=0===a.index(),u=r===a.index()+1,c=a.parents(".fl-col"),f=c.length>0,h=f?c.closest(".fl-col-group").find("> .fl-col").length:0,g=!!f&&0===c.index(),p=!!f&&h===c.index()+1,b="column"==FLBuilderConfig.userTemplateType&&!f,m=i.closest(".fl-row"),v=m.hasClass("fl-node-global"),_=!!m.find(".fl-row-fixed-width").addBack(".fl-row-fixed-width").length,w=FLBuilderConfig.rowResize.userCanResizeRows,L=i.hasClass("fl-node-has-rules"),F=a.hasClass("fl-node-has-rules"),C=wp.template("fl-module-overlay"),y=null;FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),l&&n&&"row"!=FLBuilderConfig.userTemplateType&&v||l&&n&&"column"!=FLBuilderConfig.userTemplateType&&!v||i.closest(".fl-builder-node-loading").length||i.find(".fl-inline-editor:visible").length||(i.hasClass("fl-block-overlay-active")||(y=FLBuilder._appendOverlay(i,C({global:l,moduleName:t,groupLoading:o,numCols:r,colFirst:d,colLast:u,isRootCol:b,hasParentCol:f,numParentCols:h,parentFirst:g,parentLast:p,rowIsFixedWidth:_,userCanResizeRows:w,hasRules:L,colHasRules:F})),FLBuilder._buildOverlayOverflowMenu(y),FLBuilder._initColDragResizing()),e("body").addClass("fl-block-overlay-muted"))},_moduleMouseleave:function(i){var t=(e(this),e(i.toElement)||e(i.relatedTarget)),l=t.is("#tiptip_holder"),n=t.closest("#tiptip_holder").length>0;l||n||(FLBuilder._removeModuleOverlays(),FLBuilder._removeColHighlightGuides())},_removeModuleOverlays:function(){var i=e(".fl-module");i.removeClass("fl-block-overlay-active"),i.find(".fl-module-overlay").remove(),e("body").removeClass("fl-block-overlay-muted"),FLBuilder._closeAllSubmenus()},_moduleDragHelper:function(i,t){return e('<div class="fl-builder-block-drag-helper">'+t.attr("data-name")+"</div>")},_moduleDragStart:function(i,t){e(t.item).data("original-position",t.item.index()),FLBuilder._blockDragStart(i,t)},_moduleDragStop:function(i,t){FLBuilder._blockDragStop(i,t);var l=t.item,n=l.parent(),s=null,o=0,r=0;if(n.hasClass("fl-builder-modules")||n.hasClass("fl-builder-widgets"))return void l.remove();if(l.hasClass("fl-builder-block")){if(n.hasClass("fl-sortable-disabled"))return l.remove(),void FLBuilder._showPanel();n.hasClass("fl-row-drop-target")?(n=l.closest(".fl-builder-content"),r=0,s=l.closest(".fl-row"),o=n.find(".fl-row").index(s)):n.hasClass("fl-col-group-drop-target")?(n=l.closest(".fl-row-content"),r=n.closest(".fl-row").attr("data-node"),s=l.closest(".fl-col-group"),o=n.find(" > .fl-col-group").index(s)):n.hasClass("fl-col-drop-target")?(n=l.closest(".fl-col-group"),r=n.attr("data-node"),s=l.closest(".fl-col"),o=n.find(" > .fl-col").index(s)):(o=n.find("> .fl-module, .fl-col-group, .fl-builder-block").index(l),r=l.closest(".fl-col").attr("data-node")),l.closest(".fl-drop-target-last").length&&(o+=1),FLBuilder._addModule(n,r,l.attr("data-type"),o,l.attr("data-widget"),l.attr("data-alias")),l.remove()}else{if(n.hasClass("fl-sortable-disabled"))return e(i.target).append(t.item),e(i.target).children().eq(t.item.data("original-position")).before(t.item),void FLBuilder._highlightEmptyCols();n.hasClass("fl-row-drop-target")?(s=l.closest(".fl-row"),o=l.closest(".fl-builder-content").children(".fl-row").index(s),o=l.closest(".fl-drop-target-last").length?o+1:o,FLBuilder._addRow("1-col",o,l.attr("data-node")),l.remove()):n.hasClass("fl-col-group-drop-target")?(s=l.closest(".fl-col-group"),o=l.closest(".fl-row-content ").find(" > .fl-col-group").index(s),o=l.closest(".fl-drop-target-last").length?o+1:o,FLBuilder._addColGroup(l.closest(".fl-row").attr("data-node"),"1-col",o,l.attr("data-node")),l.remove()):n.hasClass("fl-col-drop-target")?(s=l.closest(".fl-col"),o=l.closest(".fl-col-drop-target-last").length?"after":"before",FLBuilder._addCols(s,o,"1-col",l.closest(".fl-col-group-nested").length>0,l.attr("data-node")),l.remove()):FLBuilder._reorderModule(l)}FLBuilder._resizeLayout()},_reorderModule:function(e){var i=e.closest(".fl-col").attr("data-node"),t=e.attr("data-parent"),l=e.attr("data-node"),n=e.index();i==t?FLBuilder._reorderNode(l,n):(e.attr("data-parent",i),FLBuilder._moveNode(i,l,n))},_deleteModuleClicked:function(i){var t=e(this).closest(".fl-module"),l=confirm(FLBuilderStrings.deleteModuleMessage);l&&(FLBuilder._deleteModule(t),FLBuilder._removeAllOverlays()),i.stopPropagation()},_deleteModule:function(e){var i=e.closest(".fl-row"),t=e.attr("data-node");FLBuilder.ajax({action:"delete_node",node_id:t}),e.empty(),e.remove(),i.removeClass("fl-block-overlay-muted"),FLBuilder._highlightEmptyCols(),FLBuilder._removeAllOverlays(),FLBuilder.triggerHook("didDeleteModule",t)},_moduleCopyClicked:function(i){var t=e(window),l=e(this).closest(".fl-module"),n=l.attr("data-node"),s=l.parent(),o=l.clone(),r=e(".fl-builder-module-settings[data-node="+n+"]"),a=null;r.length&&(a=FLBuilder._getSettings(r),FLBuilderSettingsConfig.nodes[n]=a),o.addClass("fl-node-"+n+"-clone fl-builder-node-clone"),o.find(".fl-block-overlay").remove(),l.after(o),FLBuilder._showNodeLoading(n+"-clone"),t.scrollTop()+t.height()<o.offset().top&&e("html, body").animate({scrollTop:o.offset().top+o.height()-t.height()},500),FLBuilder.ajax({action:"copy_module",node_id:n,settings:a},function(e){var i=JSON.parse(e);i.nodeParent=s,i.nodePosition=s.find(" > .fl-col-group, > .fl-module").index(o),i.duplicatedModule=n,i.onAddNewHTML=function(){o.remove()},FLBuilder._moduleCopyComplete(i)}),i.stopPropagation()},_moduleCopyComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder.triggerHook("didDuplicateModule",{newNodeId:e.nodeId,oldNodeId:e.duplicatedModule})})},_moduleSettingsClicked:function(i){var t=e(this),l=t.closest(".fl-module").attr("data-type"),n=t.closest(".fl-module").attr("data-node"),s=t.closest(".fl-col").attr("data-node"),o=t.closest(".fl-block-overlay-global").length>0;i.stopPropagation(),FLBuilder._colResizing||o&&!FLBuilderConfig.userCanEditGlobalTemplates||FLBuilder._showModuleSettings({type:l,nodeId:n,parentId:s,global:o})},_showModuleSettings:function(i,t){if(FLBuilderSettingsConfig.modules){var l=FLBuilderSettingsConfig.modules[i.type],n=i.settings?i.settings:FLBuilderSettingsConfig.nodes[i.nodeId],s=e("head");-1===e.inArray(i.type,FLBuilder._loadedModuleAssets)&&(""!==l.assets.css&&s.append(l.assets.css),""!==l.assets.js&&s.append(l.assets.js),FLBuilder._loadedModuleAssets.push(i.type)),FLBuilderSettingsForms.render({type:"module",id:i.type,nodeId:i.nodeId,className:"fl-builder-module-settings fl-builder-"+i.type+"-settings",attrs:'data-node="'+i.nodeId+'" data-parent="'+i.parentId+'" data-type="'+i.type+'"',buttons:i.global||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:i.global?[FLBuilderStrings.global]:[],settings:n,legacy:i.legacy,helper:FLBuilder._moduleHelpers[i.type],rules:FLBuilder._moduleHelpers[i.type]?FLBuilder._moduleHelpers[i.type].rules:null,messages:FLBuilder._moduleHelpers[i.type]?FLBuilder._moduleHelpers[i.type].messages:null,preview:{type:"module",layout:i.layout,callback:function(){FLBuilder.triggerHook("didAddModule",i.nodeId)}}},t)}},_saveModuleClicked:function(){var i=e(this).closest(".fl-builder-settings"),t=i.attr("data-type"),l=(i.attr("data-node"),FLBuilder._moduleHelpers[t]),n=!0;"undefined"!=typeof l&&(i.find("label.error").remove(),i.validate().hideErrors(),n=i.validate().form(),n&&(n=l.submit())),n?FLBuilder._saveSettings():FLBuilder._toggleSettingsTabErrors()},_addModule:function(e,i,t,l,n,s){FLBuilder._showNodeLoadingPlaceholder(e,l),e.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=e,FLBuilder._newModulePosition=l),FLBuilder.ajax({action:"render_new_module",parent_id:i,type:t,position:l,node_preview:1,widget:"undefined"==typeof n?"":n,alias:"undefined"==typeof s?"":s},FLBuilder._addModuleComplete)},_addModuleComplete:function(i){var t=JSON.parse(i);t.layout&&(FLBuilder._newModuleParent&&FLBuilder._newModuleParent.find(".fl-builder-node-loading-placeholder").hide(),t.layout.nodeParent=FLBuilder._newModuleParent,t.layout.nodePosition=FLBuilder._newModulePosition),t.settings||(t.settings=FLBuilderSettingsConfig.defaults.modules[t.type]),e("form.fl-builder-settings").length?t.layout&&FLBuilder._renderLayout(t.layout):FLBuilder._showModuleSettings(t,function(){e(".fl-builder-module-settings").data("new-module","1")})},registerModuleHelper:function(i,t){var l={rules:{},init:function(){},submit:function(){return!0},preview:function(){}};FLBuilder._moduleHelpers[i]=e.extend({},l,t)},_registerModuleHelper:function(e,i){FLBuilder.registerModuleHelper(e,i)},_showNodeTemplateSettings:function(i){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=t.attr("data-node"),n=FLBuilderStrings.saveModule;return t.hasClass("fl-builder-row-settings")?n=FLBuilderStrings.saveRow:t.hasClass("fl-builder-col-settings")&&(n=FLBuilderStrings.saveColumn),!!FLBuilder._triggerSettingsSave(!1,!1,!1)&&void FLBuilderSettingsForms.render({id:"node_template",nodeId:l,title:n,attrs:'data-node="'+l+'"',className:"fl-builder-node-template-settings",rules:{name:{required:!0}}},function(){FLBuilderConfig.userCanEditGlobalTemplates||e("#fl-field-global").hide()})},_saveNodeTemplate:function(){var i=e(".fl-builder-node-template-settings"),t=i.attr("data-node"),l=i.validate().form();l&&(FLBuilder._showNodeLoading(t),FLBuilder.ajax({action:"save_node_template",node_id:t,settings:FLBuilder._getSettings(i)},function(e){FLBuilder._saveNodeTemplateComplete(e),FLBuilder._hideNodeLoading(t)}),FLBuilder._lightbox.close())},_saveNodeTemplateComplete:function(i){var t=JSON.parse(i),l=e(".fl-builder-saved-"+t.type+"s"),n=l.find(".fl-builder-block"),s=null,o="",r=t.name.toLowerCase(),a=0,d=wp.template("fl-node-template-block"),u={name:t.name,isGlobal:t.global,content:t.type,id:t.id,postID:t.postID,kind:"template",type:"user",link:t.link,category:{uncategorized:FLBuilderStrings.uncategorized}};if(FLBuilderConfig.contentItems.template.push(u),FLBuilder.triggerHook("contentItemsChanged"),t.layout&&(FLBuilder._renderLayout(t.layout),FLBuilder.triggerHook("didSaveGlobalNodeTemplate",t.config)),0===n.length)l.append(d(t));else for(;a<n.length;a++){if(s=n.eq(a),o=s.text().toLowerCase().trim(),0===a&&r<o){l.prepend(d(t));break}if(r<o){s.before(d(t));break}if(n.length-1===a){l.append(d(t));break}}l.find(".fl-builder-block-no-node-templates").remove()},_nodeTemplateDragStop:function(i,t){FLBuilder._blockDragStop(i,t);var l=t.item,n=l.parent(),s=null,o=0,r=null,a="",d=null;if(n.hasClass("fl-builder-blocks-section-content"))return void l.remove();if(l.hasClass("fl-builder-block-saved-row")||l.hasClass("fl-builder-block-row-template"))r=l.closest(".fl-row"),o=r.length?e(FLBuilder._contentClass+" .fl-row").index(r):0,o=n.hasClass("fl-drop-target-last")?o+1:o,s=null,a="render_new_row_template",d=FLBuilder._addRowComplete,FLBuilder._newRowPosition=o,FLBuilder._showNodeLoadingPlaceholder(e(FLBuilder._contentClass),o);else if(l.hasClass("fl-builder-block-saved-column")){if(r=l.closest(".fl-col"),colGroup=n.closest(".fl-col-group"),colGroupId=colGroup.attr("data-node"),a="render_new_col_template",d=FLBuilder._addColsComplete,n.hasClass("fl-sortable-disabled"))return l.remove(),void FLBuilder._showPanel();n.hasClass("fl-row-drop-target")?(r=l.closest(".fl-row"),s=0,n=e(FLBuilder._contentClass),o=r.length?n.find(".fl-row").index(r):0):n.hasClass("fl-col-group-drop-target")?(n=l.closest(".fl-row-content"),s=l.closest(".fl-row").attr("data-node"),o=l.closest(".fl-row").find(".fl-row-content > .fl-col-group").index(l.closest(".fl-col-group"))):n.hasClass("fl-col-drop-target")&&(n=l.closest(".fl-col-group"),o=n.children(".fl-col").index(l.closest(".fl-col")),s=n.attr("data-node")),l.closest(".fl-drop-target-last").length&&(o+=1),n.hasClass("fl-col-group")?FLBuilder._newColParent=null:FLBuilder._newColParent=n,FLBuilder._newColPosition=o,FLBuilder._showNodeLoadingPlaceholder(n,o)}else if(l.hasClass("fl-builder-block-saved-module")||l.hasClass("fl-builder-block-module-template")){if(a="render_new_module",d=FLBuilder._addModuleComplete,n.hasClass("fl-sortable-disabled"))return l.remove(),void FLBuilder._showPanel();n.hasClass("fl-row-drop-target")?(n=l.closest(".fl-builder-content"),s=0,o=n.find(".fl-row").index(l.closest(".fl-row"))):n.hasClass("fl-col-group-drop-target")?(n=l.closest(".fl-row-content"),s=n.closest(".fl-row").attr("data-node"),o=n.find(" > .fl-col-group").index(l.closest(".fl-col-group"))):n.hasClass("fl-col-drop-target")?(n=l.closest(".fl-col-group"),o=n.children(".fl-col").index(l.closest(".fl-col")),s=n.attr("data-node")):(o=n.children(".fl-module, .fl-builder-block").index(l),s=l.closest(".fl-col").attr("data-node")),l.closest(".fl-drop-target-last").length&&(o+=1),n.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=n,FLBuilder._newModulePosition=o),FLBuilder._showNodeLoadingPlaceholder(n,o)}FLBuilder.ajax({action:a,template_id:l.attr("data-id"),template_type:l.attr("data-type"),parent_id:s,position:o},function(e){if(a.indexOf("row")>-1){var i=JSON.parse(e);FLBuilder.triggerHook("didApplyRowTemplateComplete",i.config),d(i.layout)}else if(a.indexOf("col")>-1){var i=JSON.parse(e);FLBuilder.triggerHook("didApplyColTemplateComplete",i.config),d(i.layout)}else d(e)}),l.remove()},_editNodeTemplateClicked:function(i){i.preventDefault(),i.stopPropagation(),window.open(e(this).attr("href"))},_deleteNodeTemplateClicked:function(i){var t=e(i.target),l=t.closest(".fl-builder-blocks-section"),n=l.find(".fl-builder-blocks-section-content"),s=n.find(".fl-builder-block"),o=t.closest(".fl-builder-block"),r=o.hasClass("fl-builder-block-global"),a=r?FLBuilder._updateLayout:void 0,d=r?FLBuilderStrings.deleteGlobalTemplate:FLBuilderStrings.deleteTemplate,u=null;confirm(d)&&(o.remove(),1===s.length&&(o.hasClass("fl-builder-block-saved-row")?n.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedRows+"</span>"):n.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedModules+"</span>")),o.hasClass("fl-builder-block-global")&&FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"delete_node_template",template_id:o.attr("data-id")},a),u=_.findIndex(FLBuilderConfig.contentItems.template,{id:o.attr("data-id"),type:"user"}),FLBuilderConfig.contentItems.template.splice(u,1),FLBuilder.triggerHook("contentItemsChanged"))},_initSettingsForms:function(){FLBuilder._initSections(),FLBuilder._initButtonGroupFields(),FLBuilder._initCompoundFields(),FLBuilder._initCodeFields(),FLBuilder._initColorPickers(),FLBuilder._initGradientPickers(),FLBuilder._initIconFields(),FLBuilder._initPhotoFields(),FLBuilder._initSelectFields(),FLBuilder._initEditorFields(),FLBuilder._initMultipleFields(),FLBuilder._initAutoSuggestFields(),FLBuilder._initLinkFields(),FLBuilder._initFontFields(),FLBuilder._initOrderingFields(),FLBuilder._initTimezoneFields(),FLBuilder._initDimensionFields(),FLBuilder._initFieldPopupSliders(),FLBuilder._initPresetFields(),FLBuilder._focusFirstSettingsControl(),FLBuilder._calculateSettingsTabsOverflow(),FLBuilder._lightbox._resizeEditors(),e(".fl-builder-settings-fields").css("visibility","visible"),FLBuilder.triggerHook("settings-form-init")},_destroySettingsForms:function(){FLBuilder._destroyEditorFields()},_setSettingsFormContent:function(i){e(".fl-legacy-settings").remove(),e("body").append(i)},_settingsTabClicked:function(i){var t=e(this),l=t.closest(".fl-builder-settings"),n=t.attr("href").split("#").pop();FLBuilder._resetSettingsTabsState(),l.find(".fl-builder-settings-tab").removeClass("fl-active"),l.find("#"+n).addClass("fl-active"),l.find(".fl-builder-settings-tabs .fl-active").removeClass("fl-active"),l.find("a[href*="+n+"]").addClass("fl-active"),FLBuilder._focusFirstSettingsControl(),i.preventDefault()},_resetSettingsTabsState:function(){var i=e(".fl-lightbox:visible");FLBuilder._hideTabsOverflowMenu(),i.find(".fl-builder-settings-tabs .fl-active").removeClass("fl-active"),i.find(".fl-builder-settings-tabs-overflow-menu .fl-active").removeClass("fl-active"),i.find(".fl-contains-active").removeClass("fl-contains-active")},_calculateSettingsTabsOverflow:function(){var i=e(".fl-lightbox:visible"),t=i.outerWidth(),l=i.hasClass("fl-lightbox-width-slim"),n=i.find(".fl-builder-settings-tabs"),s=i.find(".fl-builder-settings-tabs-overflow-menu"),o=i.find(".fl-builder-settings-tabs-more"),r=n.find("a"),a=!1,d=t-60,u=0,c=l?16:30;s.html(""),FLBuilder._hideTabsOverflowMenu(),r.removeClass("fl-overflowed"),r.each(function(){if(!e(this).is(":visible"))return!0;if(!a){var i=e(this).textWidth()+c+12;u+=i,u>=d&&(a=!0)}if(a){var t=e(this).html(),l=e(this).attr("href"),n="";e(this).hasClass("fl-active")&&(n="fl-active"),e(this).hasClass("error")&&(n+=" error"),""!==n&&(n='class="'+n+'"');var o=e('<a href="'+l+'" '+n+">"+t+"</a>");s.append(o),e(this).addClass("fl-overflowed")}else e(this).removeClass("fl-overflowed")}),a?i.addClass("fl-lightbox-has-tab-overflow"):i.removeClass("fl-lightbox-has-tab-overflow"),s.find(".fl-active").length>0?o.addClass("fl-contains-active"):o.removeClass("fl-contains-active"),s.find(".error").length>0?o.addClass("fl-contains-errors"):o.removeClass("fl-contains-errors")},_settingsTabsToOverflowMenuItemClicked:function(i){var t=e(i.currentTarget),l=t.attr("href"),n=t.closest(".fl-lightbox-header-wrap").find(".fl-builder-settings-tabs"),s=n.find('a[href="'+l+'"]'),o=n.find(".fl-builder-settings-tabs-more");FLBuilder._resetSettingsTabsState(),s.trigger("click"),t.addClass("fl-active"),o.addClass("fl-contains-active"),FLBuilder._hideTabsOverflowMenu(),i.preventDefault()},_hasOverflowTabs:function(){var i=e(".fl-lightbox:visible"),t=i.find(".fl-builder-settings-tabs-overflow-menu a");return t.length>0},_showTabsOverflowMenu:function(){if(FLBuilder._hasOverflowTabs()){var i=e(".fl-lightbox:visible");i.find(".fl-builder-settings-tabs-overflow-menu").css("display","flex"),i.find(".fl-builder-settings-tabs-overflow-click-mask").show(),this.isShowingSettingsTabsOverflowMenu=!0}},_hideTabsOverflowMenu:function(){var i=e(".fl-lightbox:visible");i.find(".fl-builder-settings-tabs-overflow-menu").css("display","none"),i.find(".fl-builder-settings-tabs-overflow-click-mask").hide(),this.isShowingSettingsTabsOverflowMenu=!1},_toggleTabsOverflowMenu:function(e){FLBuilder.isShowingSettingsTabsOverflowMenu?FLBuilder._hideTabsOverflowMenu():FLBuilder._showTabsOverflowMenu(),e.stopPropagation()},_settingsCancelClicked:function(i){var t=e(".fl-builder-lightbox[data-parent]"),l=e(".fl-builder-module-settings"),n=null,s=null,o=null,r=null;return t.length>0?void FLBuilder._closeNestedSettings():(l.length>0&&"undefined"!=typeof l.data("new-module")?(n=e(FLBuilder.preview.state.html),s=e(".fl-node-"+l.data("node")),o=s.closest(".fl-col"),r=n.find(".fl-node-"+o.data("node")),r.length>0?FLBuilder._deleteModule(s):FLBuilder._deleteCol(o)):FLBuilder.preview&&FLBuilder.preview.revert(),FLBuilder.preview=null,void FLLightbox.closeParent(this))},_focusFirstSettingsControl:function(){var i=e(".fl-builder-settings:visible"),t=i.find(".fl-builder-settings-tab.fl-active"),l=i.data("node"),n=t.find(".fl-field").first(),s=n.find('input:not([type="hidden"]), textarea, select, button, a, .fl-editor-field').first();if(!l||!e(".fl-node-"+l+" .fl-inline-editor").length){if("undefined"!=typeof tinyMCE&&s.hasClass("fl-editor-field")){var o=s.find("textarea.wp-editor-area").attr("id");tinyMCE.get(o).focus()}else setTimeout(function(){s.focus().css("animation-name","fl-grab-attention")},300);n.css("animation-name","fl-grab-attention"),n.on("animationend",function(){n.css("animation-name","")})}},_initSettingsValidation:function(i,t){var l=e(".fl-builder-settings").last();l.validate({ignore:".fl-ignore-validation",rules:i,messages:t,errorPlacement:FLBuilder._settingsErrorPlacement})},_settingsErrorPlacement:function(e,i){e.appendTo(i.parent())},_toggleSettingsTabErrors:function(){for(var i=e(".fl-builder-settings:visible"),t=i.find(".fl-builder-settings-tab"),l=null,n=null,s=0;s<t.length;s++)l=t.eq(s),n=l.find("label.error"),tabLink=i.find(".fl-builder-settings-tabs a[href*="+l.attr("id")+"]"),tabLink.find(".fl-error-icon").remove(),tabLink.removeClass("error"),n.length>0&&(tabLink.append('<span class="fl-error-icon"></span>'),tabLink.addClass("error"));FLBuilder._calculateSettingsTabsOverflow()},_getSettings:function(i){FLBuilder._updateEditorFields();var t=i.serializeArray(),l=0,n=0,s="",o="",r="",a=[],d=[],u={};for(l=0;l<t.length;l++)if(s=t[l].value.replace(/\r/gm,"").replace(/'/g,"'"),!(t[l].name.indexOf("flrich")>-1))if(t[l].name.indexOf("[")>-1){for(o=t[l].name.replace(/\[(.*)\]/,""),r=t[l].name.replace(o,""),a=[],d=r.match(/\[[^\]]*\]/g),n=0;n<d.length;n++)"[]"!=d[n]&&a.push(d[n].replace(/\[|\]/g,""));r.match(/\[\]\[[^\]]*\]\[[^\]]+\]/)||r.match(/\[\]\[[^\]]*\]\[\]\[[^\]]+\]/)?("undefined"==typeof u[o]&&(u[o]={}),"undefined"==typeof u[o][a[0]]&&(u[o][a[0]]={}),u[o][a[0]][a[1]]=s):r.match(/\[\]\[[^\]]*\]\[\]/)?("undefined"==typeof u[o]&&(u[o]={}),"undefined"==typeof u[o][a[0]]&&(u[o][a[0]]=[]),u[o][a[0]].push(s)):r.match(/\[\]\[[^\]]*\]/)?("undefined"==typeof u[o]&&(u[o]={}),u[o][a[0]]=s):r.match(/\[\]/)&&("undefined"==typeof u[o]&&(u[o]=[]),u[o].push(s))}else u[t[l].name]=s;for(r in u)if("undefined"!=typeof u["as_values_"+r]){u[r]=e.grep(u["as_values_"+r].split(","),function(e){return""!==e}).join(",");try{delete u["as_values_"+r]}catch(c){}}return e.each(i.find("[name]"),function(i,t){var l=e(t).attr("name").replace(/\[(.*)\]/,"");l in u||(u[l]="")}),u=e.extend({},FLBuilder._getOriginalSettings(i),u)},_getSettingsJSONForHTML:function(e){return JSON.stringify(e).replace(/\'/g,"'").replace("<wbr />","<wbr>")},_getOriginalSettings:function(i,t){var l=i.find(".fl-builder-settings-json"),n=i.data("node"),s=FLBuilderSettingsConfig.nodes,o=null,r={};if(n&&s[n]?o=s[n]:l.length&&(o=JSON.parse(l.val().replace(/'/g,"'"))),o)for(key in o)(e("#fl-field-"+key).length||t)&&(r[key]=o[key]);return r},_getSettingsForChangedCheck:function(i,t){var l=FLBuilder._getSettings(t);if(i){var n=e(".fl-node-"+i);if(n.hasClass("fl-module")){var s=n.data("type"),o=FLBuilderSettingsConfig.editables[s];if(o&&FLBuilderSettingsConfig.nodes[i])for(var r in o)l[r]=FLBuilderSettingsConfig.nodes[i][r]}}return l},_saveSettings:function(i){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=t.data("new-module"),n=t.attr("data-node"),s=FLBuilder._getSettings(t),o=FLBuilder.preview;return!FLBuilder.isUndefined(i)&&FLBuilder.isBoolean(i)||(i=!0),o&&!o._settingsHaveChanged()&&FLBuilder.isUndefined(l)?void FLBuilder._lightbox.close():(FLBuilder._showNodeLoading(n),FLBuilderSettingsConfig.nodes[n]=s,FLBuilder.ajax({action:"save_settings",node_id:n,settings:s},FLBuilder._saveSettingsComplete.bind(this,i,o)),FLBuilder.triggerHook("didSaveNodeSettings",{nodeId:n,settings:s}),void FLBuilder._lightbox.close())},_saveSettingsComplete:function(e,i,t){var l=JSON.parse(t),n=function(){i&&l.layout.partial&&l.layout.nodeId===i.nodeId&&(i.clear(),i=null)};!0===e?FLBuilder._renderLayout(l.layout,n):n(),FLBuilder.triggerHook("didSaveNodeSettingsComplete",{nodeId:l.node_id,settings:l.settings})},_triggerSettingsSave:function(i,t,l){var n=FLBuilder._lightbox._node.find("form.fl-builder-settings"),s=FLBuilder._lightbox._node.data("instance-id"),o=FLLightbox._instances[s],r=e(".fl-lightbox-wrap[data-parent]:visible"),a=!1,d=!0;return i=!_.isUndefined(i)&&i,t=!_.isUndefined(t)&&t,l=!!_.isUndefined(l)||l,n.length&&(r.length&&(r.find(".fl-builder-settings-save").trigger("click"),(r.find("label.error").length||e(".fl-builder-alert-lightbox:visible").length)&&(d=!1)),d&&!n.validate().form()&&(d=!1),a=FLBuilderSettingsForms.settingsHaveChanged(),d&&a&&(i&&o.disableClose(),n.find(".fl-builder-settings-save").trigger("click"),i&&o.enableClose(),(n.find("label.error").length||e(".fl-builder-alert-lightbox:visible").length)&&(d=!1)),l&&(FLBuilder._destroySettingsForms(),!a&&FLBuilder.preview&&(FLBuilder.preview.clear(),FLBuilder.preview=null)),a||i||o.close()),d||(FLBuilder.triggerHook("didFailSettingsSave"),FLBuilder._toggleSettingsTabErrors(),t&&!e(".fl-builder-alert-lightbox:visible").length&&FLBuilder.alert(FLBuilderStrings.settingsHaveErrors)),d},_refreshSettingsPreviewReference:function(){FLBuilder.preview&&FLBuilder.preview._initElementsAndClasses()},_openNestedSettings:function(i){i.className&&-1===i.className.indexOf("fl-builder-settings-lightbox")&&(i.className+=" fl-builder-settings-lightbox"),i=e.extend({className:"fl-builder-lightbox fl-builder-settings-lightbox",destroyOnClose:!0,resizable:!0},i);var t=e(".fl-lightbox-wrap:visible"),l=t.find(".fl-lightbox"),n=new FLLightbox(i),s=n._node,o=s.find(".fl-lightbox");return t.hide(),s.attr("data-parent",t.attr("data-instance-id")),o.attr("style",l.attr("style")),n.on("resized",FLBuilder._calculateSettingsTabsOverflow),n.open('<div class="fl-builder-lightbox-loading"></div>'),n},_closeNestedSettings:function(){var i=e(".fl-builder-lightbox[data-parent]:visible"),t=i.find(".fl-lightbox"),l=i.attr("data-instance-id"),n=FLLightbox._instances[l],s=i.attr("data-parent"),o=e('[data-instance-id="'+s+'"]'),r=o.find(".fl-lightbox"),a=o.find("form"),d=FLLightbox._instances[s];n.on("close",function(){r.attr("style",t.attr("style")),o.show(),d._resize(),o.find("label.error").remove(),a.validate().hideErrors(),FLBuilder._toggleSettingsTabErrors()}),n.close()},_showHelpTooltip:function(){e(this).siblings(".fl-help-tooltip-text").fadeIn()},_hideHelpTooltip:function(){e(this).siblings(".fl-help-tooltip-text").fadeOut()},_initSections:function(){e(".fl-builder-settings:visible").find(".fl-builder-settings-section").each(FLBuilder._initSection)},_initSection:function(){var i=e(this),t=i.find(".fl-builder-settings-section-header");t.on("click",function(){i.toggleClass("fl-builder-settings-section-collapsed")})},_initButtonGroupFields:function(){e(".fl-builder-settings:visible").find(".fl-button-group-field").each(FLBuilder._initButtonGroupField)},_initButtonGroupField:function(){var i=e(this),t=i.find(".fl-button-group-field-option"),l=i.find("input");t.on("click",function(){var i=e(this);"1"==i.attr("data-selected")?(i.attr("data-selected","0"),l.val("").trigger("change")):(t.attr("data-selected","0"),i.attr("data-selected","1"),l.val(i.data("value")).trigger("change"))}),l.on("change",function(e){var i=l.val(),n=t.filter('[data-value="'+i+'"]');t.attr("data-selected","0"),n.attr("data-selected","1")})},_initCompoundFields:function(){e(".fl-builder-settings:visible").find(".fl-compound-field").each(FLBuilder._initCompoundField)},_initCompoundField:function(){var i=e(this),t=i.find(".fl-compound-field-section"),l=i.find(".fl-compound-field-section-toggle"),n=i.find(".fl-compound-field-setting").has(".fl-dimension-field-units");t.each(function(){var i=e(this);i.find(".fl-compound-field-section-toggle").length||i.addClass("fl-compound-field-section-visible")}),l.on("click",function(){var i=e(this),t=i.closest(".fl-field"),l=i.closest(".fl-compound-field-section"),n="."+l.attr("class").split(" ").join(".");t.find(n).toggleClass("fl-compound-field-section-visible")}),n.each(function(){var i=e(this),t=i.find(".fl-compound-field-label"),l='<i class="fl-dimension-field-link fl-tip dashicons dashicons-admin-links" title="Link Values"></i>';t.length&&!i.find(".fl-shadow-field").length&&t.append(l);
|
5 |
-
})},_initAutoSuggestFields:function(){var i=e(".fl-builder-settings:visible .fl-suggest-field"),t=null,l=null,n=null,s=[];i.each(function(){t=e(this),""!==t.attr("data-value")&&(FLBuilderSettingsForms.showFieldLoader(t),s.push({name:t.attr("name"),value:t.attr("data-value"),action:t.attr("data-action"),data:t.attr("data-action-data")}))}),s.length?FLBuilder.ajax({action:"get_autosuggest_values",fields:s},function(t){l=JSON.parse(t);for(n in l)e('.fl-suggest-field[name="'+n+'"]').attr("data-value",l[n]);i.each(FLBuilder._initAutoSuggestField)}):i.each(FLBuilder._initAutoSuggestField)},_initAutoSuggestField:function(){var i=e(this);i.autoSuggest(FLBuilder._ajaxUrl({fl_action:"fl_builder_autosuggest",fl_as_action:i.data("action"),fl_as_action_data:i.data("action-data"),_wpnonce:FLBuilderConfig.ajaxNonce}),e.extend({},{asHtmlID:i.attr("name"),selectedItemProp:"name",searchObjProps:"name",minChars:2,keyDelay:1e3,fadeOut:!1,usePlaceholder:!0,emptyText:FLBuilderStrings.noResultsFound,showResultListWhenNoMatch:!0,preFill:i.data("value"),queryParam:"fl_as_query",afterSelectionAdd:FLBuilder._updateAutoSuggestField,afterSelectionRemove:FLBuilder._updateAutoSuggestField,selectionLimit:i.data("limit"),canGenerateNewSelections:!1},i.data("args"))),FLBuilderSettingsForms.hideFieldLoader(i)},_updateAutoSuggestField:function(i,t,l){e(this).siblings(".as-values").val(l.join(",")).trigger("change")},_initCodeFields:function(){e(".fl-builder-settings:visible").find(".fl-code-field").each(FLBuilder._initCodeField)},_initCodeField:function(){var i=e(this),t=i.closest(".fl-builder-settings"),l=i.find("textarea"),n=(l.attr("id"),l.data("editor")),s=l.data("wrap"),o=e("<div>",{position:"absolute",height:20*parseInt(l.attr("rows"),10)}),r=null;o.insertBefore(l),l.css("display","none"),ace.require("ace/ext/language_tools"),r=ace.edit(o[0]),r.$blockScrolling=1/0,r.getSession().setValue(l.val()),r.getSession().setMode("ace/mode/"+n),s&&r.getSession().setUseWrapMode(!0),r.setOptions(FLBuilderConfig.AceEditorSettings),r.getSession().on("change",function(e){l.val(r.getSession().getValue()).trigger("change")}),r.getSession().on("changeAnnotation",function(){for(var e=r.getSession().getAnnotations(),i=t.find(".fl-builder-settings-save"),l=t.find(".fl-builder-settings-error"),n=!1,s=0;s<e.length;s++)if(!(e[s].text.indexOf("DOCTYPE")>-1||e[s].text.indexOf("Named entity expected")>-1||e[s].text.indexOf("@supports")>-1||"error"!==e[s].type)){n=!0;break}n&&!l.length&&FLBuilderConfig.CheckCodeErrors?(i.addClass("fl-builder-settings-error"),i.on("click",FLBuilder._showCodeFieldError)):!n&&l.length&&(l.removeClass("fl-builder-settings-error"),l.off("click",FLBuilder._showCodeFieldError))}),l.closest(".fl-field").data("editor",r)},_showCodeFieldError:function(i){i.stopImmediatePropagation(),FLBuilder.confirm({message:FLBuilderStrings.codeError,cancel:function(){var i=e(".fl-builder-settings:visible .fl-builder-settings-save");i.removeClass("fl-builder-settings-error"),i.off("click",FLBuilder._showCodeFieldError),i.trigger("click")},strings:{ok:FLBuilderStrings.codeErrorFix,cancel:FLBuilderStrings.codeErrorIgnore}})},_initMultipleFields:function(){var i=e(".fl-builder-settings:visible .fl-builder-field-multiples"),t=null,l=null,n=0,s=FLBuilderConfig.isRtl?{left:10}:{right:10},o=e("#fl-field-testimonials").attr("data-limit")||0,r=e("tbody.fl-builder-field-multiples").find("tr").length||0;for(parseInt(o)>0&&r-1>=parseInt(o)?(e(".fl-builder-field-copy").hide(),e(".fl-builder-field-add").fadeOut()):e(".fl-builder-field-copy, .fl-builder-field-add").show();n<i.length;n++)t=i.eq(n),l=t.find(".fl-builder-field-multiple"),1===l.length?l.eq(0).find(".fl-builder-field-actions").addClass("fl-builder-field-actions-single"):l.find(".fl-builder-field-actions").removeClass("fl-builder-field-actions-single");e(".fl-builder-field-multiples").sortable({items:".fl-builder-field-multiple",cursor:"move",cursorAt:s,distance:5,opacity:.5,placeholder:"fl-builder-field-dd-zone",stop:FLBuilder._fieldDragStop,tolerance:"pointer",axis:"y"})},_addFieldClicked:function(){var i=e(this),t=i.attr("data-field"),l=i.closest("tr").siblings("tr[data-field="+t+"]").last(),n=l.clone(),s=n.find(".fl-form-field"),o=null,r=null,a=parseInt(l.find("label span.fl-builder-field-index").html(),10)+1;n.find("th label span.fl-builder-field-index").html(a),n.find(".fl-form-field-preview-text").html(""),n.find(".fl-form-field-before").remove(),n.find(".fl-form-field-after").remove(),n.find("input, textarea, select").val(""),l.after(n),FLBuilder._initMultipleFields(),s.length?(o=s.find(".fl-form-field-edit").data("type"),s.find("input").val(JSON.stringify(FLBuilderSettingsConfig.defaults.forms[o]))):(s=i.closest("form.fl-builder-settings"),o=s.data("type"),o&&s.hasClass("fl-builder-module-settings")&&(r=FLBuilderSettingsConfig.defaults.modules[o][t][0],n.find("input, textarea, select").val(r)))},_copyFieldClicked:function(){var i=e(this),t=i.closest("tr"),l=t.clone(),n=parseInt(t.find("label span.fl-builder-field-index").html(),10)+1;l.find("th label span.fl-builder-field-index").html(n),t.after(l),FLBuilder._renumberFields(t.parent()),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview()},_deleteFieldClicked:function(){var i=e(this).closest("tr"),t=i.parent(),l=confirm(FLBuilderStrings.deleteFieldMessage);l&&(i.remove(),FLBuilder._renumberFields(t),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview())},_renumberFields:function(e){for(var i=e.find(".fl-builder-field-multiple"),t=0;t<i.length;t++)i.eq(t).find("th label span.fl-builder-field-index").html(t+1)},_fieldDragHelper:function(){return e('<div class="fl-builder-field-dd-helper"></div>')},_fieldDragStop:function(e,i){FLBuilder._renumberFields(i.item.parent()),FLBuilder.preview.delayPreview()},_initSelectFields:function(){var i=e(".fl-builder-settings:visible").find("select");i.on("change",FLBuilder._settingsSelectChanged),i.trigger("change"),i.on("change",FLBuilder._calculateSettingsTabsOverflow);var t=e(".fl-builder-settings:visible").find(".fl-button-group-field input[type=hidden]");t.on("change",FLBuilder._settingsSelectChanged),t.trigger("change"),t.on("change",FLBuilder._calculateSettingsTabsOverflow)},_settingsSelectChanged:function(){var i=e(this),t=i.attr("data-toggle"),l=i.attr("data-hide"),n=i.attr("data-trigger"),s=i.val(),o=0;if("undefined"!=typeof t){t=JSON.parse(t);for(o in t)FLBuilder._settingsSelectToggle(t[o].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(t[o].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(t[o].tabs,"hide","a[href*=fl-builder-settings-tab-","]");"undefined"!=typeof t[s]&&(FLBuilder._settingsSelectToggle(t[s].fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(t[s].sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(t[s].tabs,"show","a[href*=fl-builder-settings-tab-","]"))}if("undefined"!=typeof l){l=JSON.parse(l);for(o in l)FLBuilder._settingsSelectToggle(l[o].fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(l[o].sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l[o].tabs,"show","a[href*=fl-builder-settings-tab-","]");"undefined"!=typeof l[s]&&(FLBuilder._settingsSelectToggle(l[s].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(l[s].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l[s].tabs,"hide","a[href*=fl-builder-settings-tab-","]"))}if("undefined"!=typeof n&&(n=JSON.parse(n),"undefined"!=typeof n[s]&&"undefined"!=typeof n[s].fields))for(o=0;o<n[s].fields.length;o++)e("#fl-field-"+n[s].fields[o]).find("select").trigger("change")},_settingsSelectToggle:function(i,t,l,n){var s=0;if(n="undefined"==typeof n?"":n,"undefined"!=typeof i)for(;s<i.length;s++)e(".fl-builder-settings:visible").find(l+i[s]+n)[t](),e(l+i[s]+n).parent().find('.fl-field[data-type="code"]').each(function(){e(this).data("editor").resize()})},_initColorPickers:function(){var i=FLBuilderConfig.colorPresets?FLBuilderConfig.colorPresets:[];FLBuilder.colorPicker=new FLBuilderColorPicker({mode:"hsv",elements:".fl-color-picker .fl-color-picker-value",presets:i,labels:{colorPresets:FLBuilderStrings.colorPresets,colorPicker:FLBuilderStrings.colorPicker,placeholder:FLBuilderStrings.placeholder,removePresetConfirm:FLBuilderStrings.removePresetConfirm,noneColorSelected:FLBuilderStrings.noneColorSelected,alreadySaved:FLBuilderStrings.alreadySaved,noPresets:FLBuilderStrings.noPresets,presetAdded:FLBuilderStrings.presetAdded}}),e(FLBuilder.colorPicker).on("presetRemoved presetAdded",function(e,i){FLBuilder.ajax({action:"save_color_presets",presets:i.presets})})},_initGradientPickers:function(){e(".fl-builder-settings:visible .fl-gradient-picker").each(FLBuilder._initGradientPicker)},_initGradientPicker:function(){var i=e(this),t=i.find(".fl-gradient-picker-type-select"),l=i.find(".fl-gradient-picker-angle-wrap"),n=i.find(".fl-gradient-picker-position");t.on("change",function(){"linear"===e(this).val()?(l.show(),n.hide()):(l.hide(),n.show())})},_initPhotoFields:function(){var i=e(".fl-builder-settings:visible").find(".fl-photo-field select");i.on("change",FLBuilder._toggleSettingsOnIconChange),i.trigger("change")},_initSinglePhotoSelector:function(){null===FLBuilder._singlePhotoSelector&&(FLBuilder._singlePhotoSelector=wp.media({title:FLBuilderStrings.selectPhoto,button:{text:FLBuilderStrings.selectPhoto},library:{type:"image"},multiple:!1}),FLBuilder._singlePhotoSelector.on("open",FLBuilder._wpmedia_reset_errors),_wpPluploadSettings.defaults.multipart_params.fl_upload_type="photo")},_selectSinglePhoto:function(){FLBuilder._initSinglePhotoSelector(),FLBuilder._singlePhotoSelector.once("open",e.proxy(FLBuilder._singlePhotoOpened,this)),FLBuilder._singlePhotoSelector.once("select",e.proxy(FLBuilder._singlePhotoSelected,this)),FLBuilder._singlePhotoSelector.open()},_singlePhotoOpened:function(){var i=FLBuilder._singlePhotoSelector.state().get("selection"),t=e(this).closest(".fl-photo-field"),l=t.find("input[type=hidden]"),n=l.val(),s=null;e(this).hasClass("fl-photo-replace")?(i.reset(),t.addClass("fl-photo-empty"),l.val("")):""!==n?(s=wp.media.attachment(n),s.fetch(),i.add(s?[s]:[])):i.reset()},_singlePhotoSelected:function(){var i=FLBuilder._singlePhotoSelector.state().get("selection").first().toJSON(),t=e(this).closest(".fl-photo-field"),l=t.find("input[type=hidden]"),n=t.find(".fl-photo-preview img"),s=t.find("select");l.val(i.id),n.attr("src",FLBuilder._getPhotoSrc(i)),t.removeClass("fl-photo-empty").removeClass("fl-photo-no-attachment"),t.find("label.error").remove(),s.show(),s.html(FLBuilder._getPhotoSizeOptions(i)),s.trigger("change"),FLBuilderSettingsConfig.attachments[i.id]=i},_singlePhotoRemoved:function(){FLBuilder._initSinglePhotoSelector();var i=FLBuilder._singlePhotoSelector.state(),t="undefined"!=typeof i?i.get("selection"):null,l=e(this).closest(".fl-photo-field"),n=l.find("input[type=hidden]"),s=l.find("select");t&&t.reset(),l.addClass("fl-photo-empty"),n.val(""),s.html('<option value="" selected></option>'),s.trigger("change")},_getPhotoSrc:function(e){return"undefined"==typeof e.sizes?e.url:"undefined"!=typeof e.sizes.thumbnail?e.sizes.thumbnail.url:e.sizes.full.url},_getPhotoSizeOptions:function(e,i){var t="",l=null,n=null,s="",o={full:FLBuilderStrings.fullSize,large:FLBuilderStrings.large,medium:FLBuilderStrings.medium,thumbnail:FLBuilderStrings.thumbnail};if("undefined"==typeof e.sizes||0===e.sizes.length)t+='<option value="'+e.url+'">'+FLBuilderStrings.fullSize+"</option>";else{i&&(i=i.split(/[\\\/]/).pop());for(l in e.sizes)s="undefined"!=typeof o[l]?o[l]+" - ":"undefined"!=typeof FLBuilderConfig.customImageSizeTitles[l]?FLBuilderConfig.customImageSizeTitles[l]+" - ":"",n="",i?i===e.sizes[l].url.split(/[\\\/]/).pop()&&(n=' selected="selected"'):n="full"==l?' selected="selected"':"",t+='<option value="'+e.sizes[l].url+'"'+n+">"+s+e.sizes[l].width+" x "+e.sizes[l].height+"</option>"}return t},_selectMultiplePhotos:function(){var i=e(this).closest(".fl-multiple-photos-field"),t=i.find("input[type=hidden]"),l=t.val(),n=""===l?"":JSON.parse(l),s=wp.media.gallery.defaults.id,o='[gallery ids="-1"]',r=null,a=null,d=null,u=null,c=[];if("object"==typeof n){for(u in n)c.push(n[u]);o='[gallery ids="'+c.join()+'"]'}r=wp.shortcode.next("gallery",o).shortcode,_.isUndefined(r.get("id"))&&!_.isUndefined(s)&&r.set("id",s),a=wp.media.gallery.attachments(r),d=new wp.media.model.Selection(a.models,{props:a.props.toJSON(),multiple:!0}),d.gallery=a.gallery,d.more().done(function(){d.length||FLBuilder._multiplePhotoSelector.setState("gallery-library"),d.props.set({query:!1}),d.unmirror(),d.props.unset("orderby")}),FLBuilder._multiplePhotoSelector&&FLBuilder._multiplePhotoSelector.dispose(),FLBuilder._multiplePhotoSelector=wp.media({frame:"post",state:e(this).hasClass("fl-multiple-photos-edit")?"gallery-edit":"gallery-library",title:wp.media.view.l10n.editGalleryTitle,editing:!0,multiple:!0,selection:d}).open(),e(FLBuilder._multiplePhotoSelector.views.view.el).addClass("fl-multiple-photos-lightbox"),FLBuilder._multiplePhotoSelector.once("update",e.proxy(FLBuilder._multiplePhotosSelected,this))},_multiplePhotosSelected:function(i){for(var t=e(this).closest(".fl-multiple-photos-field"),l=t.find("input[type=hidden]"),n=t.find(".fl-multiple-photos-count"),s=[],o=0;o<i.models.length;o++)s.push(i.models[o].id);1==s.length?n.html("1 "+FLBuilderStrings.photoSelected):n.html(s.length+" "+FLBuilderStrings.photosSelected),t.removeClass("fl-multiple-photos-empty"),t.find("label.error").remove(),l.val(JSON.stringify(s)).trigger("change")},_initSingleVideoSelector:function(){null===FLBuilder._singleVideoSelector&&(FLBuilder._singleVideoSelector=wp.media({title:FLBuilderStrings.selectVideo,button:{text:FLBuilderStrings.selectVideo},library:{type:"video"},multiple:!1}),FLBuilder._singleVideoSelector.on("open",FLBuilder._wpmedia_reset_errors),_wpPluploadSettings.defaults.multipart_params.fl_upload_type="video")},_selectSingleVideo:function(){FLBuilder._initSingleVideoSelector(),FLBuilder._singleVideoSelector.once("select",e.proxy(FLBuilder._singleVideoSelected,this)),FLBuilder._singleVideoSelector.open()},_singleVideoSelected:function(){var i=FLBuilder._singleVideoSelector.state().get("selection").first().toJSON(),t=e(this).closest(".fl-video-field"),l=t.find(".fl-video-preview-img"),n=t.find(".fl-video-preview-filename"),s=t.find("input[type=hidden]");l.html('<span class="dashicons dashicons-media-video"></span>'),n.html(i.filename),t.removeClass("fl-video-empty"),t.find("label.error").remove(),s.val(i.id).trigger("change"),FLBuilderSettingsConfig.attachments[i.id]=i},_singleVideoRemoved:function(){FLBuilder._initSingleVideoSelector();var i=FLBuilder._singleVideoSelector.state(),t="undefined"!=typeof i?i.get("selection"):null,l=e(this).closest(".fl-video-field"),n=l.find(".fl-video-preview-img img"),s=l.find(".fl-video-preview-filename"),o=l.find("input[type=hidden]");t&&t.reset(),n.attr("src",""),s.html(""),l.addClass("fl-video-empty"),o.val("").trigger("change")},_selectMultipleAudios:function(){var i=e(this).closest(".fl-multiple-audios-field"),t=i.find("input[type=hidden]"),l=t.val(),n=""==l?'[playlist ids="-1"]':'[playlist ids="'+JSON.parse(l).join()+'"]',s=wp.shortcode.next("playlist",n).shortcode,o=wp.media.playlist.defaults.id,r=null,a=null;_.isUndefined(s.get("id"))&&!_.isUndefined(o)&&s.set("id",o),r=wp.media.playlist.attachments(s),a=new wp.media.model.Selection(r.models,{props:r.props.toJSON(),multiple:!0}),a.playlist=r.playlist,a.more().done(function(){a.props.set({query:!1}),a.unmirror(),a.props.unset("orderby")}),FLBuilder._multipleAudiosSelector&&FLBuilder._multipleAudiosSelector.dispose(),FLBuilder._multipleAudiosSelector=wp.media({frame:"post",state:e(this).hasClass("fl-multiple-audios-edit")?"playlist-edit":"playlist-library",title:wp.media.view.l10n.editPlaylistTitle,editing:!0,multiple:!0,selection:a}).open(),FLBuilder._multipleAudiosSelector.content.get("view").sidebar.unset("playlist"),FLBuilder._multipleAudiosSelector.on("content:render:browse",function(e){e&&e.sidebar.on("ready",function(){e.sidebar.unset("playlist")})}),FLBuilder._multipleAudiosSelector.once("update",e.proxy(FLBuilder._multipleAudiosSelected,this))},_multipleAudiosSelected:function(i){for(var t=e(this).closest(".fl-multiple-audios-field"),l=t.find(".fl-multiple-audios-count"),n=t.find("input[type=hidden]"),s=[],o=0;o<i.models.length;o++)s.push(i.models[o].id);1==s.length?l.html("1 "+FLBuilderStrings.audioSelected):l.html(s.length+" "+FLBuilderStrings.audiosSelected),n.val(JSON.stringify(s)).trigger("change"),t.removeClass("fl-multiple-audios-empty"),t.find("label.error").remove()},_initIconFields:function(){var i=e(".fl-builder-settings:visible").find(".fl-icon-field input");i.on("change",FLBuilder._toggleSettingsOnIconChange),i.trigger("change")},_toggleSettingsOnIconChange:function(){var i=e(this),t=i.val(),l=i.attr("data-show");"undefined"!=typeof l&&(l=JSON.parse(l),FLBuilder._settingsSelectToggle(l.fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(l.sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l.tabs,"hide","a[href*=fl-builder-settings-tab-","]"),t&&(FLBuilder._settingsSelectToggle(l.fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(l.sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l.tabs,"show","a[href*=fl-builder-settings-tab-","]"),FLBuilder._calculateSettingsTabsOverflow()))},_selectIcon:function(){var e=this;FLIconSelector.open(function(i){FLBuilder._iconSelected.apply(e,[i])})},_iconSelected:function(i){var t=e(this).closest(".fl-icon-field"),l=t.find("input[type=hidden]"),n=t.find("i"),s=n.attr("data-icon");l.val(i).trigger("change"),n.removeClass(s),n.addClass(i),n.attr("data-icon",i),t.removeClass("fl-icon-empty"),t.find("label.error").remove()},_removeIcon:function(){var i=e(this).closest(".fl-icon-field"),t=i.find("input[type=hidden]"),l=i.find("i");t.val("").trigger("change"),l.removeClass(),l.attr("data-icon",""),i.addClass("fl-icon-empty")},_formFieldClicked:function(){var i=e(this),t=i.closest(".fl-builder-settings"),l=i.attr("data-type"),n=i.siblings("input").val(),s=FLBuilder._moduleHelpers[l],o=(FLBuilderSettingsConfig.forms[l],FLBuilder._openNestedSettings({className:"fl-builder-lightbox fl-form-field-settings"}));""===n&&(n=JSON.stringify(FLBuilderSettingsConfig.forms[l])),FLBuilderSettingsForms.render({id:l,nodeId:t.attr("data-node"),nodeSettings:FLBuilder._getSettings(t),settings:JSON.parse(n.replace(/'/g,"'")),lightbox:o,helper:s,rules:s?s.rules:null},function(){i.attr("id","fl-"+o._node.attr("data-instance-id")),o._node.find("form.fl-builder-settings").attr("data-type",l)})},_saveFormFieldClicked:function(){var i=e(this).closest(".fl-builder-settings"),t=e(this).closest(".fl-lightbox-wrap").attr("data-instance-id"),l=i.attr("data-type"),n=FLBuilder._getSettings(i),s={},o=FLBuilder._moduleHelpers[l],r=e(".fl-builder-settings #fl-"+t),a=r.parent().attr("data-preview-text"),d=i.find("#fl-field-"+a),u=n[a],c=e('select[name="'+a+'"]'),f=document.createElement("div"),h=!0;return c.length>0&&(u=c.find('option[value="'+n[a]+'"]').text()),"undefined"!=typeof o&&(i.find("label.error").remove(),i.validate().hideErrors(),h=i.validate().form(),h&&(h=o.submit())),h?("undefined"!=typeof a&&"undefined"!=typeof u&&("icon"===d.data("type")?u='<i class="'+u+'"></i>':u.length>35&&(f.innerHTML=u,u=(f.textContent||f.innerText||"").replace(/^(.{35}[^\s]*).*/,"$1")+"..."),r.siblings(".fl-form-field-preview-text").html(u)),s=r.siblings("input").val().replace(/'/g,"'"),""!=s&&(n=e.extend(JSON.parse(s),n)),r.siblings("input").val(JSON.stringify(n)).trigger("change"),FLBuilder._closeNestedSettings(),!0):(FLBuilder._toggleSettingsTabErrors(),!1)},_layoutFieldClicked:function(){var i=e(this);i.siblings().removeClass("fl-layout-field-option-selected"),i.addClass("fl-layout-field-option-selected"),i.siblings("input").val(i.attr("data-value"))},_initLinkFields:function(){e(".fl-builder-settings:visible .fl-link-field").each(FLBuilder._initLinkField)},_initLinkField:function(){var i=e(this),t=i.find(".fl-link-field-search-input"),l=i.find(".fl-link-field-options-wrap input[type=checkbox]");t.autoSuggest(FLBuilder._ajaxUrl({fl_action:"fl_builder_autosuggest",fl_as_action:"fl_as_links",_wpnonce:FLBuilderConfig.ajaxNonce}),{asHtmlID:t.attr("name"),selectedItemProp:"name",searchObjProps:"name",minChars:3,keyDelay:1e3,fadeOut:!1,usePlaceholder:!0,emptyText:FLBuilderStrings.noResultsFound,showResultListWhenNoMatch:!0,queryParam:"fl_as_query",selectionLimit:1,afterSelectionAdd:FLBuilder._updateLinkField}),l.on("click",FLBuilder._linkFieldCheckboxClicked)},_updateLinkField:function(e,i,t){var l=e.closest(".fl-link-field"),n=l.find(".fl-link-field-search"),s=l.find(".fl-link-field-search-input"),o=l.find(".fl-link-field-input");o.val(i.value).trigger("keyup"),s.autoSuggest("remove",i.value),n.hide()},_linkFieldSelectClicked:function(){var i=e(this).closest(".fl-link-field").find(".fl-link-field-search");i.show(),i.find("input").focus()},_linkFieldSelectCancelClicked:function(){var i=e(this);i.parent().hide(),i.closest(".fl-link-field").find("input.fl-link-field-input").focus()},_linkFieldCheckboxClicked:function(){var i=e(this),t=i.is(":checked"),l=i.siblings("input[type=hidden]"),n="";n=i.hasClass("fl-link-field-target-cb")?t?"_blank":"_self":t?"yes":"no",l.val(n)},_initFontFields:function(){e(".fl-builder-settings:visible .fl-font-field").each(FLBuilder._initFontField)},_initFontField:function(){var i=e(this),t=i.attr("data-value"),l=i.find(".fl-font-field-font"),n=i.find(".fl-font-field-weight");l.on("change",function(){FLBuilder._getFontWeights(l)}),t.indexOf("family")>-1&&(t=JSON.parse(t),l.val(t.family),l.trigger("change"),n.find("option[value="+t.weight+"]").length&&n.val(t.weight))},_getFontWeights:function(i){var t=i.closest(".fl-font-field").find(".fl-font-field-weight"),l=i.val(),n=t.val(),s=FLBuilderConfig.FontWeights,o={},r=i.closest(".fl-font-field").find(".recent-fonts option");if(t.html(""),r.length>0){var a=e(r).filter(function(e,i){return i.value===l}).length>0;!1===a&&i.closest(".fl-font-field").find(".recent-fonts").append(e("<option>",{value:l,text:l}))}o="undefined"!=typeof FLBuilderFontFamilies.system[l]?FLBuilderFontFamilies.system[l].weights:"undefined"!=typeof FLBuilderFontFamilies.google[l]?FLBuilderFontFamilies.google[l]:FLBuilderFontFamilies["default"][l],e.each(o,function(e,i){var l=n===i?" selected":"";t.append('<option value="'+i+'"'+l+">"+s[i]+"</option>")})},_initTinyMCE:function(){"object"==typeof tinymce&&"undefined"!=typeof tinymce.ui.FloatPanel&&(tinymce.ui.FloatPanel.zIndex=100100),e(".fl-builder-hidden-editor").each(FLBuilder._initEditorField)},_initEditorFields:function(){e(".fl-builder-settings:visible .fl-editor-field").each(FLBuilder._initEditorField)},_initEditorField:function(){var i=e(this),t=i.find("textarea"),l=i.attr("data-name"),n="flrich"+(new Date).getTime()+"_"+l,s=FLBuilderConfig.wp_editor,o=tinyMCEPreInit,r=Number(i.attr("data-buttons")),a=i.attr("data-rows"),d=null,u=null;s=s.replace(/flbuildereditor/g,n),o=JSON.parse(JSON.stringify(o).replace(/flbuildereditor/g,n)),t.after(s).remove(),e("textarea#"+n).val(t.val()),void 0!==typeof tinymce&&void 0!==o.mceInit[n]&&(d=o.mceInit[n],d.setup=function(e){e.on("SaveContent",function(e){e.content=e.content.replace(/src="(\.\.\/){1,2}/g,'src="'+FLBuilderConfig.homeUrl+"/")})},u=tinymce.$("#wp-"+n+"-wrap"),u.find("textarea").attr("rows",a),r||u.find(".wp-media-buttons").remove(),!u.hasClass("tmce-active")&&o.qtInit.hasOwnProperty(n)||d.wp_skip_init||tinymce.init(d)),void 0!==typeof quicktags&&quicktags(o.qtInit[n]),window.wpActiveEditor=n},_reinitEditorFields:function(){e(".fl-lightbox-resizable:visible").length&&setTimeout(function(){var i,t;if("undefined"!=typeof tinymce){for(i=tinymce.editors.length-1;i>-1;i--)tinymce.editors[i].inline||(t=tinymce.editors[i].id,tinyMCE.execCommand("mceRemoveEditor",!0,t),tinyMCE.execCommand("mceAddEditor",!0,t));FLBuilder.preview&&FLBuilder.preview._initDefaultFieldPreviews(e('.fl-field[data-type="editor"]'))}},1)},_destroyEditorFields:function(){var i;if("undefined"!=typeof tinymce){for(i=tinymce.editors.length-1;i>-1;i--)tinymce.editors[i].inline||tinyMCE.execCommand("mceRemoveEditor",!0,tinymce.editors[i].id);e(".wplink-autocomplete").remove(),e(".ui-helper-hidden-accessible").remove()}},_updateEditorFields:function(){var i=e(".fl-builder-settings:visible textarea.wp-editor-area");i.each(FLBuilder._updateEditorField)},_updateEditorField:function(){var i=e(this),t=i.closest(".fl-editor-field"),l=(i.closest(".fl-builder-settings"),i.closest(".wp-editor-wrap")),n=i.attr("id"),s=t.attr("data-name"),o="undefined"!=typeof tinymce&&tinymce.get(n),r=i.siblings('textarea[name="'+s+'"]'),a=t.data("wpautop");0===r.length&&(r=e('<textarea name="'+s+'"></textarea>').hide(),i.after(r)),a?o&&l.hasClass("tmce-active")?r.val(o.getContent()):"undefined"!=typeof switchEditors?r.val(switchEditors.wpautop(i.val())):r.val(i.val()):(o&&l.hasClass("tmce-active")&&o.save(),r.val(i.val()))},_loopDataSourceChange:function(){var i=e(this).val();e(".fl-loop-data-source").hide(),e('.fl-loop-data-source[data-source="'+i+'"]').show()},_customQueryPostTypeChange:function(){var i=e(this).val();e(".fl-custom-query-filter").hide(),e(".fl-custom-query-"+i+"-filter").show()},_initOrderingFields:function(){e(".fl-builder-settings:visible .fl-ordering-field-options").each(FLBuilder._initOrderingField)},_initOrderingField:function(){e(this).sortable({items:".fl-ordering-field-option",containment:"parent",tolerance:"pointer",stop:FLBuilder._updateOrderingField})},_updateOrderingField:function(i){var t=e(i.target),l=t.siblings("input[type=hidden]"),n=[];t.find(".fl-ordering-field-option").each(function(){n.push(e(this).attr("data-key"))}),l.val(JSON.stringify(n)).trigger("change")},_textFieldAddValueSelectChange:function(){var i=e(this),t=e('input[name="'+i.data("target")+'"]'),l=t.val(),n=i.val(),s="";-1==l.indexOf(n)&&(s=(l.trim()+" "+n.trim()).trim(),t.val(s).trigger("change").trigger("keyup")),i.val("")},_onNumberFieldFocus:function(i){var t=e(i.currentTarget);t.addClass("mousetrap"),Mousetrap.bind("up",function(){t.attr("step",1)}),Mousetrap.bind("down",function(){t.attr("step",1)}),Mousetrap.bind("shift+up",function(){t.attr("step",10)}),Mousetrap.bind("shift+down",function(){t.attr("step",10)})},_onNumberFieldBlur:function(i){var t=e(i.currentTarget);t.attr("step","any").removeClass("mousetrap")},_initTimezoneFields:function(){e(".fl-builder-settings:visible .fl-field[data-type=timezone]").each(FLBuilder._initTimezoneField)},_initTimezoneField:function(){var i=e(this).find("select"),t=i.attr("data-value");i.find('option[value="'+t+'"]').attr("selected","selected")},_initDimensionFields:function(){var i=e(".fl-builder-settings:visible");i.find(".fl-field[data-type=dimension]").each(FLBuilder._initDimensionField),i.find(".fl-dimension-field-link").on("click",FLBuilder._dimensionFieldLinkClicked),FLBuilder.addHook("responsive-editing-switched",this._initResponsiveDimensionFieldLinking),i.find(".fl-compound-field-setting").has(".fl-dimension-field-link").each(FLBuilder._initDimensionFieldLinking)},_initDimensionField:function(){var i=e(this),t=i.find(".fl-field-label label"),l=i.find(".fl-field-control-wrapper"),n='<i class="fl-dimension-field-link fl-tip dashicons dashicons-admin-links" title="Link Values"></i>';t.append(n),l.prepend(n),FLBuilder._initTipTips(),FLBuilder._initDimensionFieldLinking.apply(this)},_initDimensionFieldLinking:function(){var i=e(this),t=i.find(".fl-dimension-field-link"),l=FLBuilder._getDimensionFieldLinkingInputs(i),n=FLBuilder._dimensionFieldInputsAreEqual(l);n?(t.removeClass("dashicons-admin-links"),t.addClass("dashicons-editor-unlink"),l.off("input",FLBuilder._dimensionFieldLinkedValueChange),l.on("input",FLBuilder._dimensionFieldLinkedValueChange)):(t.addClass("dashicons-admin-links"),t.removeClass("dashicons-editor-unlink"))},_initResponsiveDimensionFieldLinking:function(){var i=e(".fl-builder-settings:visible");i.find(".fl-field[data-type=dimension]").each(FLBuilder._initDimensionFieldLinking)},_dimensionFieldLinkClicked:function(){var i=e(this),t=i.closest(".fl-compound-field-setting"),l=t.length?t:i.closest(".fl-field"),n=l.find(".fl-dimension-field-link"),s=n.hasClass("dashicons-editor-unlink"),o=FLBuilder._getDimensionFieldLinkingInputs(l);n.toggleClass("dashicons-admin-links"),n.toggleClass("dashicons-editor-unlink"),s?o.off("input",FLBuilder._dimensionFieldLinkedValueChange):(o.val(o.eq(0).val()).trigger("input"),o.on("input",FLBuilder._dimensionFieldLinkedValueChange))},_dimensionFieldLinkedValueChange:function(){var i=e(this),t=i.attr("name"),l=i.closest(".fl-dimension-field-units"),n=l.find('input:not([name="'+t+'"])');n.off("input",FLBuilder._dimensionFieldLinkedValueChange),n.val(i.val()).trigger("input"),n.on("input",FLBuilder._dimensionFieldLinkedValueChange)},_getDimensionFieldLinkingInputs:function(e){var i=!!e.find(".fl-field-responsive-setting").length,t=FLBuilderResponsiveEditing._mode,l=null;return l=i?e.find(".fl-field-responsive-setting-"+t+" input"):e.find(".fl-dimension-field-unit input")},_dimensionFieldInputsAreEqual:function(e){var i=e.eq(0).val();if(""===i)return!1;for(var t=1;t<4;t++)if(e.eq(t).val()!==i)return!1;return!0},_initFieldPopupSliders:function(){var i=e(".fl-builder-settings:visible"),t=i.find(".fl-field-popup-slider");t.each(FLBuilder._initFieldPopupSlider)},_initFieldPopupSlider:function(){var i=e("body"),t=e(this),l=t.find(".fl-field-popup-slider-input"),n=t.find(".fl-field-popup-slider-arrow"),s=t.data("input"),o=e('input[name="'+s+'"]');o.on("click",function(){l.hasClass("fl-field-popup-slider-init")||(l.slider({value:o.val(),slide:function(e,i){o.val(i.value).trigger("input")}}),o.on("input",function(){l.slider("value",e(this).val())}),l.addClass("fl-field-popup-slider-init"),l.find(".ui-slider-handle").removeAttr("tabindex")),FLBuilder._setFieldPopupSliderMinMax(l),FLBuilder._hideFieldPopupSliders(),i.on("mousedown",FLBuilder._hideFieldPopupSliders),o.addClass("fl-field-popup-slider-focus"),t.show();var s=e(".fl-builder-settings:visible .fl-builder-settings-tab.fl-active"),r=s.offset(),a=o.offset(),d=o.width(),u=t.offset();u.top+t.outerHeight()>r.top+s.outerHeight()&&t.addClass("fl-field-popup-slider-top"),n.css("left",2+a.left-u.left+d/2+"px")}),o.on("focus",function(){FLBuilder._hideFieldPopupSliders()})},_hideFieldPopupSliders:function(i){var t=i?e(i.target):null,l=e("body"),n=e(".fl-field-popup-slider:visible"),s=e(".fl-field-popup-slider-focus");if(t){if(t.closest(".fl-field-popup-slider").length)return;if(t.closest(".fl-field-popup-slider-focus").length)return}l.off("mousedown",FLBuilder._hideFieldPopupSliders),s.removeClass("fl-field-popup-slider-focus"),n.hide()},_setFieldPopupSliderMinMax:function(e){var i=e.parent(),t=i.parent().parent(),l=t.find("select.fl-field-unit-select"),n=l.val(),s=i.data("slider"),o=0,r=100,a=1;""!==n&&"em"!==n&&"rem"!==n||(r=10,a=.1),"object"==typeof s&&(o=s.min?parseFloat(s.min):o,r=s.max?parseFloat(s.max):r,a=s.step?parseFloat(s.step):a,l.length&&s[n]&&(o=s[n].min?parseFloat(s[n].min):o,r=s[n].max?parseFloat(s[n].max):r,a=s[n].step?parseFloat(s[n].step):a)),e.slider({min:o,max:r,step:a})},_initPresetFields:function(){var i=e(".fl-builder-settings:visible"),t=i.find(".fl-preset-select-controls");t.each(FLBuilder._initPresetField)},_initPresetField:function(){var i=e(this),t=i.find("select"),l=i.data("presets"),n=i.data("prefix");t.on("change",FLBuilder._setFormPreset.bind(this,l,n))},_setFormPreset:function(i,t,l){var n=e(l.currentTarget).val();if(presetLists=FLBuilderConfig.presets,presets=presetLists[i],form=e(".fl-builder-settings:visible"),"undefined"!==presets&&"undefined"!==presets[n]){var s=presets[n].settings;for(var o in s){var r,n=s[o];r="undefined"!=typeof t&&""!==t?form.find('[name="'+t+o+'"]'):form.find('[name="'+o+'"]'),
|
6 |
-
r.val(n).trigger("change").trigger("input")}}},ajax:function(i,t){var l;if(FLBuilder._ajaxRequest)return void FLBuilder._ajaxQueue.push({data:i,callback:t});FLBuilder.triggerHook("didBeginAJAX",i);for(l in i)"undefined"==typeof i[l]&&(i[l]=null);return i._wpnonce=FLBuilderConfig.ajaxNonce,i.post_id=FLBuilderConfig.postId,i.fl_builder=1,i.fl_action=i.action,"undefined"!=typeof i.settings&&(i.settings=FLBuilder._ajaxModSecFix(e.extend(!0,{},i.settings))),"undefined"!=typeof i.node_settings&&(i.node_settings=FLBuilder._ajaxModSecFix(e.extend(!0,{},i.node_settings))),i={fl_builder_data:i},FLBuilder._ajaxRequest=e.post(FLBuilder._ajaxUrl(),i,function(e){"undefined"!=typeof t&&t.call(this,e),FLBuilder.triggerHook("didCompleteAJAX",i)}).always(FLBuilder._ajaxComplete),FLBuilder._ajaxRequest},_ajaxComplete:function(){if(FLBuilder._ajaxRequest=null,FLBuilder.hideAjaxLoader(),FLBuilder._ajaxQueue.length){var e=FLBuilder._ajaxQueue.shift();FLBuilder.ajax(e.data,e.callback)}},_ajaxUrl:function(e){var i=window.location.href.split("#").shift(),t=null;if("undefined"!=typeof e)for(t in e)i+=i.indexOf("?")>-1?"&":"?",i+=t+"="+e[t];return i},showAjaxLoader:function(){0===e(".fl-builder-lightbox-loading").length&&e(".fl-builder-loading").show()},hideAjaxLoader:function(){e(".fl-builder-loading").hide()},_showNodeLoading:function(i){var t=e(".fl-node-"+i);t.addClass("fl-builder-node-loading"),FLBuilder._removeAllOverlays(),FLBuilder.triggerHook("didStartNodeLoading",t)},_hideNodeLoading:function(i){var t=e(".fl-node-"+i);t.removeClass("fl-builder-node-loading")},_showNodeLoadingPlaceholder:function(i,t){var l=e('<div class="fl-builder-node-loading-placeholder"></div>');e(".fl-builder-node-loading-placeholder").remove(),i.hasClass("fl-builder-content")?siblings=i.find(" > .fl-row"):i.hasClass("fl-row-content")?siblings=i.find(" > .fl-col-group"):i.hasClass("fl-col-group")?(i.addClass("fl-col-group-has-child-loading"),siblings=i.find(" > .fl-col")):siblings=i.find(" > .fl-col-group, > .fl-module"),0===siblings.length||siblings.length==t?i.append(l):siblings.eq(t).before(l)},_removeNodeLoadingPlaceholder:function(e){var i=e.prev(".fl-builder-node-loading-placeholder"),t=e.next(".fl-builder-node-loading-placeholder");i.length?i.remove():t.remove()},_ajaxModSecFix:function(e){var i;if(FLBuilderConfig.modSecFix&&"undefined"!=typeof btoa)if("string"==typeof e)e=FLBuilder._btoa(e);else for(i in e)"string"==typeof e[i]?e[i]=FLBuilder._btoa(e[i]):"object"==typeof e[i]&&(e[i]=FLBuilder._ajaxModSecFix(e[i]));return e},_btoa:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,i){return String.fromCharCode("0x"+i)}))},_wpmedia_reset_errors:function(){e(".upload-error").remove(),e(".media-uploader-status").removeClass("errors").hide()},_initLightboxes:function(){FLBuilder._lightbox=new FLLightbox({className:"fl-builder-lightbox fl-builder-settings-lightbox",resizable:!0}),FLBuilder._lightbox.on("resized",FLBuilder._calculateSettingsTabsOverflow),FLBuilder._lightbox.on("close",FLBuilder._lightboxClosed),FLBuilder._lightbox.on("beforeCloseLightbox",FLBuilder._destroyEditorFields),FLBuilder._actionsLightbox=new FLLightbox({className:"fl-builder-actions-lightbox"})},_showLightbox:function(e){e||(e='<div class="fl-builder-lightbox-loading"></div>'),FLBuilder._lightbox.open(e),FLBuilder._initLightboxScrollbars()},_setLightboxContent:function(e){FLBuilder._lightbox.setContent(e)},_initLightboxScrollbars:function(){FLBuilder._initScrollbars(),clearTimeout(FLBuilder._lightboxScrollbarTimeout),FLBuilder._lightboxScrollbarTimeout=setTimeout(FLBuilder._initLightboxScrollbars,500)},_lightboxClosed:function(){FLBuilder.triggerHook("settings-lightbox-closed"),FLBuilder._lightbox.empty(),clearTimeout(FLBuilder._lightboxScrollbarTimeout),FLBuilder._lightboxScrollbarTimeout=null},_showActionsLightbox:function(e){var i=wp.template("fl-actions-lightbox");FLBuilder.triggerHook("actions-lightbox-settings",e),FLBuilder._actionsLightbox.open(i(e))},alert:function(e){var i=new FLLightbox({className:"fl-builder-alert-lightbox",destroyOnClose:!0}),t=wp.template("fl-alert-lightbox");i.open(t({message:e}))},_alertClose:function(){FLLightbox.closeParent(this)},confirm:function(i){var t={message:"",ok:function(){},cancel:function(){},strings:{ok:FLBuilderStrings.ok,cancel:FLBuilderStrings.cancel}},l=e.extend({},t,"undefined"==typeof i?{}:i);lightbox=new FLLightbox({className:"fl-builder-confirm-lightbox fl-builder-alert-lightbox",destroyOnClose:!0}),template=wp.template("fl-confirm-lightbox"),lightbox.open(template(l)),lightbox._node.find(".fl-builder-confirm-ok").on("click",l.ok),lightbox._node.find(".fl-builder-confirm-cancel").on("click",l.cancel)},triggerHook:function(i,t){e("body").trigger("fl-builder."+i,t)},addHook:function(i,t){e("body").on("fl-builder."+i,t)},removeHook:function(i,t){e("body").off("fl-builder."+i,t)},log:function(e){"undefined"!=typeof window.console&&"undefined"!=typeof window.console.log&&console.log(e)},logError:function(e){var i=null;"undefined"!=typeof e&&("undefined"!=typeof e.stack?i=e.stack:"undefined"!=typeof e.message&&(i=e.message),i&&(FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(i),FLBuilder.log("************************************************************************")))},logGlobalError:function(e,i,t,l,n){FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(FLBuilderStrings.globalErrorMessage.replace("{message}",e).replace("{line}",t).replace("{file}",i)),"undefined"!=typeof n&&"undefined"!=typeof n.stack&&(FLBuilder.log(n.stack),FLBuilder.log("************************************************************************"))},isUndefined:function(e){return void 0===e},isBoolean:function(e){return e===!0||e===!1}},e(function(){FLBuilder._init()})}(jQuery),function(e){FLBuilderAJAXLayout=function(i,t){this._data=e.extend({},this._defaults,"string"==typeof i?JSON.parse(i):i),this._callback=t,this._post=FLBuilderConfig.postId,this._head=e("head").eq(0),this._body=e("body").eq(0),this._data.css&&("inline"===FLBuilderConfig.enqueueMethod?(this._oldCss=e("#fl-builder-layout-"+this._post+"-inline-css"),this._newCss=e('<style id="fl-builder-layout-'+this._post+'-inline-css" type="text/css">'+this._data.css+"</style>")):(this._loader=e('<img src="'+this._data.css+'" />'),this._oldCss=e('link[href*="/cache/'+this._post+'-layout"]'),this._newCss=e('<link rel="stylesheet" id="fl-builder-layout-'+this._post+'-css" href="'+this._data.css+'" />'))),this._data.partial?(this._data.js&&(this._oldJs=e("#fl-builder-partial-refresh-js"),this._newJs=e('<script type="text/javascript" id="fl-builder-partial-refresh-js">'+this._data.js+"</script>")),this._data.nodeId&&(this._data.oldNodeId?(this._oldScriptsStyles=e('.fl-builder-node-scripts-styles[data-node="'+this._data.oldNodeId+'"]'),this._content=e(".fl-node-"+this._data.oldNodeId)):(this._oldScriptsStyles=e('.fl-builder-node-scripts-styles[data-node="'+this._data.nodeId+'"]'),this._content=e(".fl-node-"+this._data.nodeId).eq(0)))):("inline"===FLBuilderConfig.enqueueMethod?(this._oldJs=e("#fl-builder-layout-"+this._post+"-inline-js"),this._newJs=e('<script id="fl-builder-layout-'+this._post+'-inline-js">'+this._data.js+"</script>")):(this._oldJs=e('script[src*="/cache/'+this._post+'"]'),this._newJs=e('<script src="'+this._data.js+'"></script>')),this._oldScriptsStyles=e(".fl-builder-layout-scripts-styles"),this._content=e(FLBuilder._contentClass)),this._init()},FLBuilderAJAXLayout.prototype={_defaults:{partial:!1,nodeId:null,nodeType:null,nodeParent:null,nodePosition:null,oldNodeId:null,html:null,scriptsStyles:null,css:null,js:null},_data:null,_callback:function(){},_post:null,_head:null,_body:null,_loader:null,_oldCss:null,_newCss:null,_oldJs:null,_newJs:null,_oldScriptsStyles:null,_content:null,_init:function(){this._body.height(this._body.height()),this._data.css?"inline"===FLBuilderConfig.enqueueMethod?(this._addNewCSS(),this._finish()):"onload"in document.createElement("link")?(this._newCss.on("load",e.proxy(this._finish,this)),this._addNewCSS()):(this._loader.on("error",e.proxy(this._loadNewCSSFallbackComplete,this)),this._body.append(this._loader)):this._finish()},_loadNewCSSFallbackComplete:function(){this._loader.remove(),this._addNewCSS(),setTimeout(e.proxy(this._finish,this),250)},_addNewCSS:function(){this._oldCss.length>0?this._oldCss.after(this._newCss):this._head.append(this._newCss)},_finish:function(){this._removeOldContentAndAssets(),this._cleanNewHTML(),this._cleanNewAssets(),this._addNewHTML(),this._addNewScriptsStyles(),this._addNewJS(),e(FLBuilder._contentClass).trigger("fl-builder.layout-rendered"),FLBuilder.hideAjaxLoader()},_removeOldContentAndAssets:function(){this._content&&this._content.empty(),this._oldCss&&this._oldCss.remove(),this._oldJs&&this._oldJs.remove(),this._oldScriptsStyles&&this._oldScriptsStyles.remove()},_cleanNewHTML:function(){if(this._data.scriptsStyles){var i=e("<div>"+this._data.html+"</div>"),t="fl-row",l=this._data.scriptsStyles,n="";this._data.partial&&(t="column-group"==this._data.nodeType?"fl-col-group":"column"==this._data.nodeType?"fl-col":"fl-"+this._data.nodeType),i.find("> *, script").each(function(){e(this).hasClass(t)||"application/json"==e(this).attr("type")||(n=e(this).remove(),l+=n[0].outerHTML)}),""!==l&&(l=this._data.partial?'<div class="fl-builder-node-scripts-styles" data-node="'+this._data.nodeId+'">'+l+"<div>":'<div class="fl-builder-node-scripts-styles">'+l+"<div>"),this._data.html=i.html(),this._data.scriptsStyles=l}},_addNewHTML:function(){var i;if(this._data.partial?this._data.nodeParent?(i=this._data.nodeParent.hasClass("fl-builder-content")?this._data.nodeParent.find(" > .fl-row"):this._data.nodeParent.hasClass("fl-row-content")?this._data.nodeParent.find(" > .fl-col-group"):this._data.nodeParent.hasClass("fl-col-group")?this._data.nodeParent.find(" > .fl-col"):this._data.nodeParent.find(" > .fl-col-group, > .fl-module"),i=i.filter(":not(.fl-builder-node-clone)"),0===i.length||this._data.nodePosition>=i.length?this._data.nodeParent.append(this._data.html):i.eq(this._data.nodePosition).before(this._data.html),this._data.nodeId&&FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+this._data.nodeId))):(this._content.after(this._data.html),this._content.remove()):this._content.append(this._data.html),FLBuilder.preview&&this._data.nodeId&&this._data.nodeId!=FLBuilder.preview.nodeId){var t=e(FLBuilder.preview.classes.node),l=t.closest(".fl-node-"+this._data.nodeId).length;l&&t.html(FLBuilder.preview.elements.node.html())}this._data.onAddNewHTML&&this._data.onAddNewHTML()},_cleanNewAssets:function(){var i=this;this._data.html=this._removeDuplicateAssets(this._data.html),this._data.scriptsStyles&&""!==this._data.scriptsStyles&&(this._data.scriptsStyles=this._removeDuplicateAssets(this._data.scriptsStyles)),this._data.partial?e(".fl-builder-node-scripts-styles").each(function(){i._data.html.indexOf("fl-node-"+e(this).data("node"))>-1&&e(this).remove()}):(e("#fl-builder-partial-refresh-js").remove(),e(".fl-builder-node-scripts-styles").remove())},_removeDuplicateAssets:function(i){var t=e("<div>"+i+"</div>"),l="",n=null,s="",o=null,r=window.location,a=r.protocol+"//"+r.hostname+(r.port?":"+r.port:"");return t.find("script").each(function(){l=e(this).attr("src"),"undefined"!=typeof l&&(l=l.replace(a,""),n=e('script[src*="'+l+'"]'),n.length>0&&e(this).remove())}),t.find("link").each(function(){s=e(this).attr("href"),"undefined"!=typeof s&&(s=s.replace(a,""),o=e('link[href*="'+s+'"]'),o.length>0&&e(this).remove())}),t.html()},_addNewScriptsStyles:function(){this._data.scriptsStyles&&""!==this._data.scriptsStyles&&this._body.append(this._data.scriptsStyles)},_addNewJS:function(){setTimeout(e.proxy(function(){this._newJs&&this._head.append(this._newJs),FLBuilder.triggerHook("didRenderLayoutJSComplete")},this),50)},_complete:function(){FLBuilder._dragging?(FLBuilder._highlightRowsAndColsForDrag(),FLBuilder._refreshSortables()):(FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._resizeLayout()),FLBuilder._initMediaElements(),FLBuilderLayout.init(),FLBuilderResponsiveEditing.refreshPreview(this._callback),FLBuilder.triggerHook("didRenderLayoutComplete"),this._body.height("auto")}}}(jQuery),function(e){FLBuilderPreview=function(e){this.id=(new Date).getTime(),this.type=e.type,this._saveState(),e.layout?FLBuilder._renderLayout(e.layout,function(){this._init(),e.callback&&e.callback()}.bind(this)):this._init()},FLBuilderPreview._fontsList={},FLBuilderPreview.getFormattedSelector=function(e,i){for(var t="",l=i.split(","),n=0;n<l.length;n++)t+=l[n].indexOf("{node}")>-1?l[n].replace("{node}",e):l[n].indexOf("{node_id}")>-1?l[n].replace(/{node_id}/g,this.nodeId):e+" "+l[n],n!=l.length-1&&(t+=", ");return t},FLBuilderPreview.prototype={id:"",type:"",nodeId:null,classes:{},elements:{},state:null,_savedSettings:null,_styleSheet:null,_styleSheetMedium:null,_styleSheetResponsive:null,_timeout:null,_loaderTimeout:null,_lastClassName:null,_xhr:null,_init:function(){switch(this.nodeId=e(".fl-builder-settings").data("node"),this._saveSettings(),this._initElementsAndClasses(),this._createSheets(),this._initResponsivePreviews(),this._initDefaultFieldPreviews(),this.type){case"row":this._initRow();break;case"col":this._initColumn();break;case"module":this._initModule()}FLBuilder.triggerHook("preview-init",this)},_saveSettings:function(){var i=e(".fl-builder-settings-lightbox .fl-builder-settings");this._savedSettings=FLBuilder._getSettingsForChangedCheck(this.nodeId,i)},_settingsHaveChanged:function(){var i=e(".fl-builder-settings-lightbox .fl-builder-settings"),t=FLBuilder._getSettings(i);return JSON.stringify(this._savedSettings)!=JSON.stringify(t)},_initElementsAndClasses:function(){var i;i="row"==this.type?".fl-row-content-wrap":".fl-"+this.type+"-content",e.extend(this.classes,{settings:".fl-builder-"+this.type+"-settings",settingsHeader:".fl-builder-"+this.type+"-settings .fl-lightbox-header",node:FLBuilder._contentClass+" .fl-node-"+this.nodeId,content:FLBuilder._contentClass+" .fl-node-"+this.nodeId+" > "+i}),e.extend(this.elements,{settings:e(this.classes.settings),settingsHeader:e(this.classes.settingsHeader),node:e(this.classes.node),content:e(this.classes.content)})},_createSheets:function(){this._destroySheets(),this._styleSheet||(this._styleSheet=new FLStyleSheet({id:"fl-builder-preview",className:"fl-builder-preview-style"})),this._styleSheetMedium||(this._styleSheetMedium=new FLStyleSheet({id:"fl-builder-preview-medium",className:"fl-builder-preview-style"}),this._styleSheetMedium.disable()),this._styleSheetResponsive||(this._styleSheetResponsive=new FLStyleSheet({id:"fl-builder-preview-responsive",className:"fl-builder-preview-style"}),this._styleSheetResponsive.disable())},_destroySheets:function(){this._styleSheet&&(this._styleSheet.destroy(),this._styleSheet=null),this._styleSheetMedium&&(this._styleSheetMedium.destroy(),this._styleSheetMedium=null),this._styleSheetResponsive&&(this._styleSheetResponsive.destroy(),this._styleSheetResponsive=null)},_disableStyles:function(){var e=FLBuilderResponsiveEditing._mode,i=FLBuilderConfig.global,t=this.elements.node;"responsive"===e?(FLBuilderSimulateMediaQuery.disableStyles(i.responsive_breakpoint),this._styleSheetResponsive.disable()):"medium"===e?(FLBuilderSimulateMediaQuery.disableStyles(i.medium_breakpoint),this._styleSheetMedium.disable()):t.removeClass(function(e,i){return(i.match(/fl-node-[^\s]*/g)||[]).join(" ")})},_enableStyles:function(){var e=FLBuilderResponsiveEditing._mode,i=this.elements.node;"responsive"===e?(FLBuilderSimulateMediaQuery.enableStyles(),this._styleSheetResponsive.enable()):"medium"===e?(FLBuilderSimulateMediaQuery.enableStyles(),this._styleSheetMedium.enable()):i.addClass("fl-node-"+i.data("node"))},_getDefaultValue:function(i,t){var l="",n=e(i),s=n.closest("[data-node]"),o=["line-height","font-weight"];return"width"===t?l="auto":-1===e.inArray(t,o)&&s.length&&(this._disableStyles(),l=n.css(t),this._enableStyles()),l},updateCSSRule:function(e,i,t,l){var n=FLBuilderResponsiveEditing._mode,s="";""!==t&&"null"!==t||(t=this._getDefaultValue(e,i)),l?(s="string"==typeof l?this.toUpperCaseWords(l):"default"===n?"":this.toUpperCaseWords(n),this["_styleSheet"+s].updateRule(e,i,t)):this._styleSheet.updateRule(e,i,t)},delay:function(e,i){this._cancelDelay(),this._timeout=setTimeout(i,e)},_cancelDelay:function(){null!==this._timeout&&clearTimeout(this._timeout)},hexToRgb:function(e){var i=parseInt(e,16),t=i>>16&255,l=i>>8&255,n=255&i;return[t,l,n]},hexOrRgb:function(e){return e.indexOf("rgb")<0&&e.indexOf("#")<0&&(e="#"+e),e},parseFloat:function(e){return isNaN(parseFloat(e))?0:parseFloat(e)},_initResponsivePreviews:function(){var i=".preview-"+this.id;FLBuilder.addHook("responsive-editing-switched"+i,e.proxy(this._responsiveEditingSwitched,this)),FLBuilder.addHook("responsive-editing-before-preview-fields"+i,e.proxy(this._responsiveEditingPreviewFields,this))},_destroyResponsivePreviews:function(){var e=".preview-"+this.id;FLBuilder.removeHook("responsive-editing-switched"+e),FLBuilder.removeHook("responsive-editing-before-preview-fields"+e)},_responsiveEditingSwitched:function(e,i){"default"==i?(this._styleSheetMedium.disable(),this._styleSheetResponsive.disable()):"medium"==i?(this._styleSheetMedium.enable(),this._styleSheetResponsive.disable()):"responsive"==i&&(this._styleSheetMedium.enable(),this._styleSheetResponsive.enable())},_responsiveEditingPreviewFields:function(e,i){"medium"===i&&"col"===this.type&&this.elements.node[0].style.width&&(size=parseFloat(this.elements.node[0].style.width),this.elements.size.val(size))},updateResponsiveCSSRule:function(e,i,t){this.updateCSSRule(e,i,t,!0)},_saveState:function(){var i=FLBuilderConfig.postId,t=e('link[href*="/cache/'+i+'"]').attr("href"),l=e('script[src*="/cache/'+i+'"]').attr("src"),n=e(FLBuilder._contentClass).html();this.state={css:t,js:l,html:n}},preview:function(){var i=e(".fl-builder-settings-lightbox .fl-builder-settings"),t=i.attr("data-node"),l=FLBuilder._getSettings(i);FLBuilder._showNodeLoading(t),this._cancelPreview(),this._xhr=FLBuilder.ajax({action:"render_layout",node_id:t,node_preview:l},e.proxy(this._renderPreview,this))},delayPreview:function(i){var t="undefined"==typeof i?[]:e(i.target).closest("tr").find("th"),l=e(".fl-builder-widget-settings .fl-builder-settings-title"),n=e(".fl-builder-settings .fl-lightbox-header"),s=FLBuilderLayoutConfig.paths.pluginUrl+"img/ajax-loader-small.svg",o=e('<img class="fl-builder-preview-loader" src="'+s+'" />');this.delay(1e3,e.proxy(this.preview,this)),this._loaderTimeout=setTimeout(function(){e(".fl-builder-preview-loader").remove(),t.length>0?t.append(o):l.length>0?l.append(o):n.length>0&&n.append(o)},1500)},_cancelPreview:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)},_renderPreview:function(i){this._xhr=null,FLBuilder._renderLayout(i,e.proxy(this._renderPreviewComplete,this))},_renderPreviewComplete:function(){this._createSheets(),this._initElementsAndClasses(),this._initDefaultFieldPreviews(),null!==this._loaderTimeout&&clearTimeout(this._loaderTimeout),e(".fl-builder-preview-loader").remove(),e(FLBuilder._contentClass).trigger("fl-builder.preview-rendered")},revert:function(){var e=this.nodeId;return this._settingsHaveChanged()?("col"===this.type&&(e=this.elements.node.closest(".fl-col-group").data("node")),void FLBuilder._updateNode(e,function(){this.clear()}.bind(this))):void this.clear()},cancel:function(){this._cancelDelay(),this._cancelPreview()},clear:function(){this.cancel(),this._destroySheets(),this._destroyResponsivePreviews()},_initNodeTextColor:function(){e.extend(this.elements,{textColor:e(this.classes.settings+" input[name=text_color]"),linkColor:e(this.classes.settings+" input[name=link_color]"),hoverColor:e(this.classes.settings+" input[name=hover_color]"),headingColor:e(this.classes.settings+" input[name=heading_color]")}),this.elements.textColor.on("change",e.proxy(this._textColorChange,this)),this.elements.linkColor.on("change",e.proxy(this._textColorChange,this)),this.elements.hoverColor.on("change",e.proxy(this._textColorChange,this)),this.elements.headingColor.on("change",e.proxy(this._textColorChange,this))},_textColorChange:function(i){var t=this.elements.textColor.val(),l=this.elements.linkColor.val(),n=this.elements.hoverColor.val(),s=this.elements.headingColor.val();l=""===l?t:l,n=""===n?t:n,s=""===s?t:s,t&&t.indexOf("rgb")<0&&(t="#"+t),l&&l.indexOf("rgb")<0&&(l="#"+l),n&&n.indexOf("rgb")<0&&(n="#"+n),s&&s.indexOf("rgb")<0&&(s="#"+s),this.delay(50,e.proxy(function(){""===t?this.updateCSSRule(this.classes.node,"color",""):this.updateCSSRule(this.classes.node,"color",t),""===l?this.updateCSSRule(this.classes.node+" a","color",""):this.updateCSSRule(this.classes.node+" a","color",l),""===n?this.updateCSSRule(this.classes.node+" a:hover","color",""):this.updateCSSRule(this.classes.node+" a:hover","color",n),""===s?(this.updateCSSRule(this.classes.node+" h1","color",""),this.updateCSSRule(this.classes.node+" h2","color",""),this.updateCSSRule(this.classes.node+" h3","color",""),this.updateCSSRule(this.classes.node+" h4","color",""),this.updateCSSRule(this.classes.node+" h5","color",""),this.updateCSSRule(this.classes.node+" h6","color",""),this.updateCSSRule(this.classes.node+" h1 a","color",""),this.updateCSSRule(this.classes.node+" h2 a","color",""),this.updateCSSRule(this.classes.node+" h3 a","color",""),this.updateCSSRule(this.classes.node+" h4 a","color",""),this.updateCSSRule(this.classes.node+" h5 a","color",""),this.updateCSSRule(this.classes.node+" h6 a","color","")):(this.updateCSSRule(this.classes.node+" h1","color",s),this.updateCSSRule(this.classes.node+" h2","color",s),this.updateCSSRule(this.classes.node+" h3","color",s),this.updateCSSRule(this.classes.node+" h4","color",s),this.updateCSSRule(this.classes.node+" h5","color",s),this.updateCSSRule(this.classes.node+" h6","color",s),this.updateCSSRule(this.classes.node+" h1 a","color",s),this.updateCSSRule(this.classes.node+" h2 a","color",s),this.updateCSSRule(this.classes.node+" h3 a","color",s),this.updateCSSRule(this.classes.node+" h4 a","color",s),this.updateCSSRule(this.classes.node+" h5 a","color",s),this.updateCSSRule(this.classes.node+" h6 a","color",s))},this))},_initNodeBg:function(){e.extend(this.elements,{bgType:e(this.classes.settings+" select[name=bg_type]"),bgColor:e(this.classes.settings+" input[name=bg_color]"),bgColorPicker:e(this.classes.settings+" .fl-picker-bg_color"),bgGradientType:e(this.classes.settings+" select.fl-gradient-picker-type-select"),bgVideoSource:e(this.classes.settings+" select[name=bg_video_source]"),bgVideo:e(this.classes.settings+" input[name=bg_video]"),bgVideoServiceUrl:e(this.classes.settings+" input[name=bg_video_service_url]"),bgVideoFallbackSrc:e(this.classes.settings+" select[name=bg_video_fallback_src]"),bgSlideshowSource:e(this.classes.settings+" select[name=ss_source]"),bgSlideshowPhotos:e(this.classes.settings+" input[name=ss_photos]"),bgSlideshowFeedUrl:e(this.classes.settings+" input[name=ss_feed_url]"),bgSlideshowSpeed:e(this.classes.settings+" input[name=ss_speed]"),bgSlideshowTrans:e(this.classes.settings+" select[name=ss_transition]"),bgSlideshowTransSpeed:e(this.classes.settings+" input[name=ss_transitionDuration]"),bgParallaxImageSrc:e(this.classes.settings+" select[name=bg_parallax_image_src]"),bgOverlayType:e(this.classes.settings+" select[name=bg_overlay_type]"),bgOverlayColor:e(this.classes.settings+" input[name=bg_overlay_color]"),bgOverlayGradient:e(this.classes.settings+" #fl-field-bg_overlay_gradient select")}),this.elements.bgType.on("change",e.proxy(this._bgTypeChange,this)),this.elements.bgColor.on("change",e.proxy(this._bgColorChange,this)),this.elements.bgVideoServiceUrl.on("change",e.proxy(this._bgVideoChange,this)),this.elements.bgSlideshowSource.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowPhotos.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowFeedUrl.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowSpeed.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowTrans.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowTransSpeed.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgParallaxImageSrc.on("change",e.proxy(this._bgParallaxChange,this)),this.elements.bgOverlayType.on("change",e.proxy(this._bgOverlayChange,this)),this.elements.bgOverlayColor.on("change",e.proxy(this._bgOverlayChange,this))},_bgTypeChange:function(e){var i=this.elements.bgType.val(),t=FLBuilderResponsiveEditing._mode;this.elements.node.removeClass("fl-row-bg-video"),this.elements.node.removeClass("fl-row-bg-slideshow"),this.elements.node.removeClass("fl-row-bg-parallax"),this.elements.node.find(".fl-bg-video").remove(),this.elements.node.find(".fl-bg-slideshow").remove(),this.elements.content.css("background-image",""),this.updateCSSRule(this.classes.content,"background-color","transparent"),this.updateCSSRule(this.classes.content,"background-image","none"),this.updateCSSRule(this.classes.content,"background-image","none","medium"),this.updateCSSRule(this.classes.content,"background-image","none","responsive"),"none"==i?this._bgOverlayClear():"color"==i?(this.elements.bgColor.trigger("change"),this._bgOverlayClear()):"gradient"==i?(this.elements.bgGradientType.trigger("change"),this._bgOverlayClear()):"photo"==i?(this.elements.bgColor.trigger("change"),this.elements.settings.find('[data-device="'+t+'"] select[name*="bg_"]').trigger("change")):"video"==i?(this.elements.bgColor.trigger("change"),this._bgVideoChange()):"slideshow"==i?(this.elements.bgColor.trigger("change"),this._bgSlideshowChange()):"parallax"==i&&(this.elements.bgColor.trigger("change"),this.elements.bgParallaxImageSrc.trigger("change"))},_bgColorChange:function(i){var t;""===this.elements.bgColor.val()?this.updateCSSRule(this.classes.content,"background-color","transparent"):(t=this.hexOrRgb(this.elements.bgColor.val()),this.delay(100,e.proxy(function(){this.updateCSSRule(this.classes.content,"background-color",t)},this)))},_bgVideoChange:function(i){var t=this.elements,l=t.bgVideoSource.val(),n=t.bgVideo.val(),s=t.bgVideoServiceUrl.val(),o="https://www.youtube.com/iframe_api",r="https://player.vimeo.com/api/player.js",a=e("<script>");"video_service"==l&&""!=s?(/^(?:(?:(?:https?:)?\/\/)?(?:www.)?(?:youtu(?:be.com|.be))\/(?:watch\?v\=|v\/|embed\/)?([\w\-]+))/i.test(s)&&e('script[src*="youtube.com"').length<1?a.attr("src",o):/^(http\:\/\/|https\:\/\/)?(www\.)?(vimeo\.com\/)([0-9]+)$/.test(s)&&e('script[src*="vimeo.com"').length<1&&a.attr("src",r),a.attr("type","text/javascript").appendTo("head"),this.delay(500,e.proxy(this.preview,this))):""!=n&&this.preview()},_bgSlideshowChange:function(i){var t=this.elements,l=t.bgSlideshowSource.val(),n=t.bgSlideshowPhotos.val(),s=t.bgSlideshowFeedUrl.val(),o=t.bgSlideshowSpeed.val(),r=t.bgSlideshowTransSpeed.val();"wordpress"==l&&""===n||"smugmug"==l&&""===s||isNaN(parseInt(o))||isNaN(parseInt(r))||this.delay(500,e.proxy(this.preview,this))},_bgParallaxChange:function(e){this.elements.bgParallaxImageSrc.val()&&this.updateCSSRule(this.classes.content,{"background-image":"url("+this.elements.bgParallaxImageSrc.val()+")","background-repeat":"no-repeat","background-position":"center center","background-attachment":"fixed","background-size":"cover"})},_bgOverlayChange:function(i){var t,l=this.elements.bgOverlayType.val(),n=this.elements.bgOverlayColor.val();"color"===l?(""===n?(this.elements.node.removeClass("fl-row-bg-overlay"),this.elements.node.removeClass("fl-col-bg-overlay"),this.updateCSSRule(this.classes.content+"::after","background-color","transparent")):(t=this.hexOrRgb(this.elements.bgOverlayColor.val()),this.delay(100,e.proxy(function(){this._bgOverlayAddClasses(),this.updateCSSRule(this.classes.content+"::after","background-color",t)},this))),this.updateCSSRule(this.classes.content+"::after","background-image","none")):"gradient"===l?(this._bgOverlayAddClasses(),this.updateCSSRule(this.classes.content+"::after","background-color","transparent"),this.elements.bgOverlayGradient.trigger("change")):(this.elements.node.removeClass("fl-row-bg-overlay"),this.elements.node.removeClass("fl-col-bg-overlay"),this.updateCSSRule(this.classes.content+"::after","background-color","transparent"),this.updateCSSRule(this.classes.content+"::after","background-image","none"))},_bgOverlayAddClasses:function(){this.elements.node.hasClass("fl-col")?this.elements.node.addClass("fl-col-bg-overlay"):this.elements.node.addClass("fl-row-bg-overlay")},_bgOverlayClear:function(e){this.elements.bgOverlayColor.prev(".fl-color-picker-clear").trigger("click"),this.elements.bgOverlayType.val("color").trigger("change")},_initNodeClassName:function(){e.extend(this.elements,{className:e(this.classes.settings+" input[name=class]")}),this.elements.className.on("keyup",e.proxy(this._classNameChange,this)),this._lastClassName=this.elements.className.val()},_classNameChange:function(e){var i=this.elements.className.val();null!==this._lastClassName&&this.elements.node.removeClass(this._lastClassName),this.elements.node.addClass(i),this._lastClassName=i},_initNodeDimensions:function(i){var t={},l=["Top","Bottom","Left","Right"],n=["","Medium","Responsive"],s=this.classes.settings,o="",r="",a=null,d=null;for(a=0;a<l.length;a++)for(d=0;d<n.length;d++)o=i+l[a]+n[d],r=i+"_"+l[a].toLowerCase(),""!=n[d]&&(r+="_"+n[d].toLowerCase()),t[o]=e(s+" input[name="+r+"]");e.extend(this.elements,t)},_initRow:function(){e.extend(this.elements,{width:e(this.classes.settings+" select[name=width]"),contentWidth:e(this.classes.settings+" select[name=content_width]"),maxContentWidth:e(this.classes.settings+" input[name=max_content_width]"),maxContentWidthUnit:e(this.classes.settings+" select[name=max_content_width_unit]"),height:e(this.classes.settings+" select[name=full_height]"),minHeight:e(this.classes.settings+" input[name=min_height]"),align:e(this.classes.settings+" select[name=content_alignment]")}),this.elements.width.on("change",e.proxy(this._rowWidthChange,this)),this.elements.contentWidth.on("change",e.proxy(this._rowContentWidthChange,this)),this.elements.maxContentWidth.on("input",e.proxy(this._rowMaxContentWidthChange,this)),this.elements.maxContentWidthUnit.on("change",e.proxy(this._rowMaxContentWidthChange,this)),this.elements.height.on("change",e.proxy(this._rowHeightChange,this)),this.elements.align.on("change",e.proxy(this._rowHeightChange,this)),this._initNodeTextColor(),this._initNodeBg(),this._initNodeClassName(),this._initNodeDimensions("border"),this._initNodeDimensions("margin"),this._initNodeDimensions("padding")},_rowWidthChange:function(e){var i=(FLBuilderConfig.global,this.elements.node),t=this.elements.content.find(".fl-row-content");this.elements.maxContentWidth.val(),this.elements.maxContentWidthUnit.val();i.css("max-width","none"),t.css("max-width","none"),"full"==this.elements.width.val()?(i.removeClass("fl-row-fixed-width"),i.addClass("fl-row-full-width")):(i.removeClass("fl-row-full-width"),i.addClass("fl-row-fixed-width")),this._rowMaxContentWidthChange()},_rowContentWidthChange:function(e){var i=(FLBuilderConfig.global,this.elements.node),t=this.elements.content.find(".fl-row-content");this.elements.maxContentWidth.val(),this.elements.maxContentWidthUnit.val();i.css("max-width","none"),t.css("max-width","none"),"full"==this.elements.contentWidth.val()?(t.removeClass("fl-row-fixed-width"),t.addClass("fl-row-full-width")):(t.removeClass("fl-row-full-width"),t.addClass("fl-row-fixed-width"),this._rowMaxContentWidthChange())},_rowMaxContentWidthChange:function(e){var i=FLBuilderConfig.global,t=this.elements.node,l=this.elements.content.find(".fl-row-content"),n=this.elements.maxContentWidth.val(),s=this.elements.maxContentWidthUnit.val();
|
7 |
-
""==n?n=i.row_width+i.row_width_unit:n+=s,"fixed"===this.elements.width.val()&&t.css("max-width",n),l.css("max-width",n)},_rowHeightChange:function(e){var i=this.elements.node;this.elements.content;i.removeClass("fl-row-align-top"),i.removeClass("fl-row-align-center"),i.removeClass("fl-row-align-bottom"),i.removeClass("fl-row-full-height"),i.removeClass("fl-row-custom-height"),"full"==this.elements.height.val()?(i.addClass("fl-row-full-height"),i.addClass("fl-row-align-"+this.elements.align.val()),this.elements.minHeight.val("").trigger("input")):"custom"==this.elements.height.val()?(i.addClass("fl-row-custom-height"),i.addClass("fl-row-align-"+this.elements.align.val()),this.elements.minHeight.trigger("input")):this.elements.minHeight.val("").trigger("input")},_initColumn:function(){e.extend(this.elements,{size:e(this.classes.settings+" input[name=size]"),sizeMedium:e(this.classes.settings+" input[name=size_medium]"),sizeResponsive:e(this.classes.settings+" input[name=size_responsive]"),columnHeight:e(this.classes.settings+" select[name=equal_height]"),columnAlign:e(this.classes.settings+" select[name=content_alignment]"),responsiveOrder:e(this.classes.settings+" select[name=responsive_order]")}),this.elements.size.on("input",e.proxy(this._colSizeChange,this)),this.elements.sizeMedium.on("input",e.proxy(this._colSizeChange,this)),this.elements.sizeResponsive.on("input",e.proxy(this._colSizeChange,this)),this.elements.columnHeight.on("change",e.proxy(this._colHeightChange,this)),this.elements.columnAlign.on("change",e.proxy(this._colHeightChange,this)),this.elements.responsiveOrder.on("change",e.proxy(this._colResponsiveOrder,this)),this._initNodeTextColor(),this._initNodeBg(),this._initNodeClassName(),this._initNodeDimensions("border"),this._initNodeDimensions("margin"),this._initNodeDimensions("padding")},_colSizeChange:function(i){var t=e(i.target),l=8,n=100-l,s=parseFloat(t.val()),o=this.elements.node.closest(".fl-col-group"),r=this.elements.node.prev(".fl-col"),a=this.elements.node.next(".fl-col"),d=0===a.length?r:a,u=this.elements.node.siblings(".fl-col"),c=0,f=FLBuilderResponsiveEditing._mode;0!==u.length&&(isNaN(s)&&("medium"===f?s=this.elements.size.val():"responsive"===f&&(s=this.elements.sizeMedium.val()?this.elements.sizeMedium.val():"auto"),"auto"!==s&&isNaN(s)&&(s=l)),"default"===f?(u.each(function(){e(this).data("node")!=d.data("node")&&(n-=parseFloat(e(this)[0].style.width),c+=parseFloat(e(this)[0].style.width))}),s<l&&(s=l),s>n&&(s=n),this.elements.node.css("width",s+"%"),d.css("width",100-c-s+"%")):(s>100&&(s=100,t.val(100)),this.updateCSSRule(this.classes.node,{"max-width":("auto"===s?100:s)+"% !important",width:("auto"===s?s:s+"%")+" !important"},void 0,!0),"responsive"===f&&(t.val()?(this.updateCSSRule(this.classes.node,"float",FLBuilderConfig.isRtl?"right":"left",!0),this.updateCSSRule(this.classes.node,"clear","none",!0)):(this.updateCSSRule(this.classes.node,"float","none",!0),this.updateCSSRule(this.classes.node,"clear","both",!0)),t.val()||this._colsHaveCustomResponsiveWidth(u)?o.addClass("fl-col-group-custom-width"):o.removeClass("fl-col-group-custom-width"))))},_colsHaveCustomResponsiveWidth:function(i){var t=FLBuilderSettingsConfig.nodes,l=!1;return i.each(function(){var i=e(this).data("node");t[i]&&t[i].size_responsive&&(l=!0)}),l},_colHeightChange:function(){var e=this.elements.node.parent(".fl-col-group");e.removeClass("fl-col-group-align-top"),e.removeClass("fl-col-group-align-center"),e.removeClass("fl-col-group-align-bottom"),"yes"==this.elements.columnHeight.val()?(e.addClass("fl-col-group-equal-height"),e.addClass("fl-col-group-align-"+this.elements.columnAlign.val())):e.removeClass("fl-col-group-equal-height")},_colResponsiveOrder:function(){var e=this.elements.node.parent(".fl-col-group");"reversed"==this.elements.responsiveOrder.val()?e.addClass("fl-col-group-responsive-reversed"):e.removeClass("fl-col-group-responsive-reversed")},_initModule:function(){this._initNodeClassName(),this._initNodeDimensions("margin")},_initDefaultFieldPreviews:function(e){for(var e=FLBuilder.isUndefined(e)?this.elements.settings.find(".fl-field"):e,i=null,t=null,l=null,n=0;n<e.length;n++)i=e.eq(n),t=i.data("type"),l=i.data("preview"),"refresh"==l.type&&this._initFieldRefreshPreview(i),"text"==l.type&&this._initFieldTextPreview(i),"css"==l.type&&this._initFieldCSSPreview(i),"widget"==l.type&&this._initFieldWidgetPreview(i),"font"==l.type&&this._initFieldFontPreview(i),"attribute"==l.type&&this._initFieldAttributePreview(i),"animation"==l.type&&this._initFieldAnimationPreview(l,i),"callback"==l.type&&this._initFieldCallbackPreview(l,i,t,e),this._initFieldUnitSelect(i)},_initFieldCallbackPreview:function(i,t,l,n){var s,o=i.callback,r=e(".fl-builder-settings:visible"),a=r.data("node"),d=e(".fl-builder-content .fl-node-"+a);if("undefined"!=typeof FLBuilderPreviewCallbacks[o]?s=FLBuilderPreviewCallbacks[o]:"undefined"!=typeof window[o]&&(s=window[o]),"function"==typeof s){var u={field:t,fields:n,type:l,preview:i,form:r,nodeID:a,node:d};switch(l){case"align":case"button-group":case"text":case"multiple-photos":case"video":case"icon":case"ordering":u.input=t.find("input"),u.getValue=function(){return u.input.val()};break;case"color":u.input=t.find("input.fl-color-picker-value"),u.getValues=function(){var e=u.input.val();({value:e,formattedValue:FLBuilderPreview.formatColor(e)})};break;case"textarea":case"code":u.textarea=t.find("textarea"),u.getValue=function(){return u.textarea.val()};break;case"select":case"photo-sizes":case"post-type":u.select=t.find("select"),u.getValue=function(){return u.select.val()};break;case"photo":u.input=t.find("input[type=hidden]"),u.sizeSelect=t.find("select"),u.getValues=function(){return{value:u.input.val(),size:u.sizeSelect.val()}};break;case"unit":u.input=t.find("input[type=number]"),u.unitSelect=t.find(".fl-field-unit-select"),u.getValues=function(){var e=u.input.val(),i=u.input.val(),t={value:e,unit:i,formattedValue:e+i};return t};break;case"dimension":u.inputs=t.find("input[type=number]"),u.unitSelect=t.find(".fl-field-unit-select"),u.getValues=function(){var i={inputs:[],props:{},unit:u.unitSelect.val()};return u.inputs.each(function(t,l){var l=e(l),n=l.val(),s=l.data("unit");i.inputs.push(n),i.props[s]=n}),i};break;case"animation":u.input=t.find("input"),u.select=t.find("select"),u.getValues=function(){return{delay:u.input.val(),style:u.select.val()}};break;case"link":u.input=t.find(".fl-link-field-input-wrap input"),u.targetInput=t.find("input[name$=_target]"),u.noFollowInput=t.find("input[name$=_nofollow]"),u.getValues=function(){return{url:u.input.val(),target:u.targetInput.val(),noFollow:u.noFollowInput.val()}};break;case"shadow":u.colorInput=t.find("input.fl-color-picker-value"),u.inputs=t.find("input[type=number]"),u.getValues=function(){({color:u.colorInput.val(),x:u.inputs[0].val(),y:u.inputs[1].val(),blur:u.inputs[2].val(),spread:u.inputs[3].val()})};break;case"gradient":u.inputs=t.find("input"),u.select=t.find("select"),u.gradientInputs={},u.gradientInputs.type=t.find('select[name$="[type]"]'),u.gradientInputs.angle=t.find('input[name$="[angle]"]'),u.gradientInputs.position=t.find('select[name$="[position]"]'),u.gradientInputs.stops=[],t.find(".fl-gradient-picker-colors .fl-gradient-picker-color-row").each(function(i,t){t=e(t),u.gradientInputs.stops.push({color:t.find(".fl-gradient-picker-color input"),stop:t.find(".fl-gradient-picker-stop input")})}),u.getValues=function(){var e={type:u.gradientInputs.type.val(),angle:u.gradientInputs.angle.val(),position:u.gradientInputs.position.val(),stops:[]};for(var i in u.gradientInputs.stops){var t=u.gradientInputs.stops[i];e.stops[i]={color:t.color.val(),stop:t.stop.val()}}return e};break;case"shape-transform":u.inputs=t.find("input"),u.getValues=function(){return{scaleXSign:u.inputs.eq(0).val(),scaleYSign:u.inputs.eq(1).val(),skewX:u.inputs.eq(2).val(),skewY:u.inputs.eq(3).val(),scaleX:u.inputs.eq(4).val(),rotate:u.inputs.eq(5).val(),scaleY:u.inputs.eq(6).val()}};break;default:u.input=t.find("input"),u.getValue=function(){return u.input.val()}}var c=t.find(".fl-field-responsive-toggle");u.responsiveToggle=!!c.length&&c,s=s.bind(this,u);var f={input:"change keyup input",inputs:"change keyup input",targetInput:"change keyup input",noFollowInput:"change keyup input",colorInput:"change input",textarea:"change keyup input",select:"change",sizeSelect:"change",unitSelect:"change"};for(var h in f)"undefined"!=typeof u[h]&&u[h].on(f[h],s)}},_initFieldRefreshPreview:function(i){var t=i.data("type"),l=i.data("preview"),n=e.proxy(this.delayPreview,this);switch(t){case"align":i.find("input").on("change",n);break;case"text":i.find("input[type=text]").on("keyup",n);break;case"textarea":i.find("textarea").on("keyup",n);break;case"select":i.find("select").on("change",n);break;case"color":i.find(".fl-color-picker-value").on("change",n);break;case"photo":i.find("select").on("change",n);break;case"multiple-photos":i.find("input").on("change",n);break;case"photo-sizes":i.find("select").on("change",n);break;case"video":i.find("input").on("change",n);break;case"multiple-audios":i.find("input").on("change",n);break;case"icon":i.find("input").on("change",n);break;case"form":i.delegate("input","change",n);break;case"editor":this._addTextEditorCallback(i,l);break;case"code":i.find("textarea").on("change",n);break;case"post-type":i.find("select").on("change",n);break;case"suggest":i.find(".as-values").on("change",n),i.find("select").on("change",n);break;case"unit":case"dimension":i.find("input[type=number]").on("input",n);break;case"ordering":i.find("input[type=hidden]").on("change",n);break;default:i.on("change",n)}},_initFieldTextPreview:function(i){var t=i.data("type"),l=i.data("preview"),n=e.proxy(this._previewText,this,l);switch(t){case"text":i.find("input[type=text]").on("keyup",n);break;case"unit":i.find("input[type=number]").on("keyup",n);break;case"textarea":i.find("textarea").on("keyup",n);break;case"code":i.find("textarea").on("change",n);break;case"editor":this._addTextEditorCallback(i,l)}},_previewText:function(i,t){var l=this._getPreviewSelector(this.classes.node,i.selector),n=e(l),s=e("<div>"+e(t.target).val()+"</div>");n.length>0?(s.find("script").remove(),n.html(s.html())):this.delayPreview(t)},_previewTextEditor:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=e(n),o="undefined"!=typeof tinyMCE?tinyMCE.get(t):null,r=e("#"+t),a="";s.length>0&&(a=e(o&&"none"==r.css("display")?"<div>"+o.getContent()+"</div>":"undefined"==typeof switchEditors||"undefined"==typeof switchEditors.wpautop?"<div>"+r.val()+"</div>":"<div>"+switchEditors.wpautop(r.val())+"</div>"),a.find("script").remove(),s.html(a.html()))},_addTextEditorCallback:function(i,t){var l=i.find("textarea.wp-editor-area").attr("id"),n=null;if("refresh"==t.type)n=e.proxy(this.delayPreview,this);else{if("text"!=t.type)return;n=e.proxy(this._previewTextEditor,this,t,l)}e("#"+l).on("keyup",n),"undefined"!=typeof tinyMCE&&(editor=tinyMCE.get(l),editor.on("change",n),editor.on("keyup",n))},_initFieldFontPreview:function(i){var t=i.data("type"),l=i.data("preview");l.id=i.attr("id");var n=e.proxy(this._previewFont,this,l);"font"==t&&i.find(".fl-font-field").on("change","select",n)},_previewFont:function(i,t){var l=e(t.delegateTarget),n=l.find(".fl-font-field-font"),s=e(n).find(":selected"),o=s.parent().attr("label"),r=l.find(".fl-font-field-weight"),a=i.id+"-"+this.nodeId,d=this._getPreviewSelector(this.classes.node,i.selector),u=i.important?" !important":"";"Google"==o&&this._buildFontStylesheet(a,n.val(),r.val()),this.updateCSSRule(d,"font-family","Default"===n.val()?"":n.val()+u),this.updateCSSRule(d,"font-weight","default"===r.val()?"":r.val()+u)},_buildFontStylesheet:function(i,t,l){var n=FLBuilderConfig.googleFontsUrl,s="",o={},r={};o[t]=[l],FLBuilderPreview._fontsList[i]=o,Object.keys(FLBuilderPreview._fontsList).forEach(function(e){var i=FLBuilderPreview._fontsList[e];Object.keys(i).forEach(function(e){var t=i[e];r[e]=r[e]||[],t=t.filter(function(i){return r[e].indexOf(i)<0}),r[e]=r[e].concat(t)})}),e.each(r,function(e,i){s+=e+":"+i.join()+"|"}),s=n+s.slice(0,-1).replace(" ","+"),e("#fl-builder-google-fonts-preview").length<1?e("<link>").attr("id","fl-builder-google-fonts-preview").attr("type","text/css").attr("rel","stylesheet").attr("href",s).appendTo("head"):e("#fl-builder-google-fonts-preview").attr("href",s)},_initFieldCSSPreview:function(e){var i=e.data("preview"),t=null;if("undefined"!=typeof i.rules)for(t in i.rules)this._initFieldCSSPreviewCallback(e,i.rules[t]);else this._initFieldCSSPreviewCallback(e,i)},_initFieldCSSPreviewCallback:function(i,t){switch(i.data("type")){case"align":i.find("input").on("change",e.proxy(this._previewCSS,this,t,i));break;case"border":i.find("select").on("change",e.proxy(this._previewBorderCSS,this,t,i)),i.find("input[type=number]").on("input",e.proxy(this._previewBorderCSS,this,t,i)),i.find("input[type=hidden]").on("change",e.proxy(this._previewBorderCSS,this,t,i));break;case"color":i.find(".fl-color-picker-value").on("change",e.proxy(this._previewColorCSS,this,t,i));break;case"dimension":i.find("input[type=number]").on("input",e.proxy(this._previewDimensionCSS,this,t,i));break;case"gradient":i.find("select").on("change",e.proxy(this._previewGradientCSS,this,t,i)),i.find(".fl-gradient-picker-angle").on("input",e.proxy(this._previewGradientCSS,this,t,i)),i.find(".fl-color-picker-value").on("change",e.proxy(this._previewGradientCSS,this,t,i)),i.find(".fl-gradient-picker-stop").on("input",e.proxy(this._previewGradientCSS,this,t,i));break;case"photo":i.find("select").on("change",e.proxy(this._previewCSS,this,t,i));break;case"select":i.find("select").on("change",e.proxy(this._previewCSS,this,t,i));break;case"shadow":i.find("input").on("input",e.proxy(this._previewShadowCSS,this,t,i)),i.find(".fl-color-picker-value").on("change",e.proxy(this._previewShadowCSS,this,t,i));break;case"text":i.find("input[type=text]").on("keyup",e.proxy(this._previewCSS,this,t,i));break;case"typography":i.find("select").on("change",e.proxy(this._previewTypographyCSS,this,t,i)),i.find("input[type=number]").on("input",e.proxy(this._previewTypographyCSS,this,t,i)),i.find("input[type=hidden]").on("change",e.proxy(this._previewTypographyCSS,this,t,i));break;case"unit":i.find("input[type=number]").on("input",e.proxy(this._previewCSS,this,t,i))}},_previewCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=i.property,o=this._getPreviewCSSUnit(i,t,l),r=e(l.target),a=r.val(),d=!!r.closest(".fl-field-responsive-setting").length,u=i.important&&""!==a?" !important":"";s.indexOf("image")>-1&&a?a="url("+a+")":"%"===o&&"opacity"===s?a=parseInt(a)/100:""!==a&&(a+=o),this.updateCSSRule(n,s,a+u,d)},_previewBorderCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=e(l.target),t=s.closest(".fl-field"),o=s.closest(".fl-compound-field-setting"),r=o.data("property"),a=s.val(),d=(o.find(".fl-field-unit-select"),!!s.closest(".fl-field-responsive-setting").length),u=i.important&&""!==a?" !important":"";i.property=r,"border-color"===r?this._previewColorCSS(i,t,l):"border-width"===r||"border-radius"===r?this._previewDimensionCSS(i,t,l):"box-shadow"===r?this._previewShadowCSS(i,o,l):("border-style"===r&&t.find(".fl-border-field-width input:visible").trigger("input"),this.updateCSSRule(n,r,a+u,d))},_previewColorCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=e(l.target),o=s.val(),r=!!s.closest(".fl-field-responsive-setting").length,a=i.important&&""!==o?" !important":"";""!==o&&o.indexOf("rgb")<0&&(o="#"+o),this.updateCSSRule(n,i.property,o+a,r)},_previewDimensionCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=i.property,o=t.attr("id").replace("fl-field-",""),r=e(l.target).data("unit"),a=this._getDimensionValue(i,t,r,l),d=!!t.find(".fl-field-responsive-setting").length,u=i.important&&""!==a?" !important":"";s="border-radius"===s?"border-"+r.replace("_","-")+"-radius":"border-width"===s?"border-"+r+"-width":s+"-"+r,this.updateCSSRule(n,s,a+u,d),"margin"!==o&&"padding"!==o&&"border"!==o||this.elements.node.find(".fl-bg-slideshow").length&&FLBuilder._resizeLayout()},_getDimensionValue:function(i,t,l,n){var s=e(n.target).val(),o="";return s=s.toLowerCase().replace(/[^a-z0-9%.\-]/g,""),null===s||""===s||isNaN(s)||(o=this._getPreviewCSSUnit(i,t,n),s=parseFloat(s)+(o?o:"px")),s},_getPreviewCSSUnit:function(i,t,l){var n=e(l.target),s=(FLBuilderResponsiveEditing._mode,!!n.closest(".fl-compound-field-setting").length),o=!!n.closest(".fl-field-responsive-setting").length,r=null;return r=s?n.closest(".fl-compound-field-setting").find(".fl-field-unit-select"):o?n.closest(".fl-field-responsive-setting").find(".fl-field-unit-select"):t.find(".fl-field-unit-select"),r&&r.length?"SELECT"===r.prop("tagName")?r.val():r.text():i.unit?i.unit:""},_initFieldUnitSelect:function(i){i.find(".fl-field-unit-select").on("change",function(){var i=e(this),t=i.closest(".fl-field-responsive-setting"),l=i.closest(".fl-field");t.length?t.find("input").trigger("input"):l.find("input").trigger("input")})},_previewGradientCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=t.find(".fl-gradient-picker-type-select").val(),o=t.find(".fl-gradient-picker-angle").val(),r=t.find(".fl-gradient-picker-position").val(),a=t.find(".fl-color-picker-value"),d=t.find(".fl-gradient-picker-stop input"),u=[],c="",f="";a.each(function(i){var t=e(this).val(),l=d.eq(i).val();""===t&&(t="rgba(255,255,255,0)"),t.indexOf("rgb")<0&&(t="#"+t),isNaN(l)&&(l=0),u.push(t+" "+l+"%")}),u=u.join(", "),"linear"===s?(isNaN(o)&&(o=0),c="linear-gradient("+o+"deg, "+u+")"):c="radial-gradient(at "+r+", "+u+")",f=i.important&&""!==c?" !important":"",this.updateCSSRule(n,i.property,c+f)},_previewShadowCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=t.find(".fl-shadow-field-color input").val(),o=t.find(".fl-shadow-field-horizontal input").val(),r=t.find(".fl-shadow-field-vertical input").val(),a=t.find(".fl-shadow-field-blur input").val(),d=t.find(".fl-shadow-field-spread input").val(),u=!!t.find(".fl-shadow-field-spread input").length,c=!!e(l.target).closest(".fl-field-responsive-setting").length,f="",h="";""!==s&&(""===o&&(o=0),""===r&&(r=0),""===a&&(a=0),""===d&&(d=0),s.indexOf("rgb")<0&&(s="#"+s),f=o+"px ",f+=r+"px ",f+=a+"px ",u&&(f+=d+"px "),f+=s,f+=h),h=i.important&&""!==f?" !important":"",this.updateCSSRule(n,i.property,f,c)},_previewTypographyCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=e(l.target),t=s.closest(".fl-field"),o=s.closest(".fl-compound-field-setting"),r=o.data("property"),a=s.val(),d=o.find(".fl-field-unit-select"),u=!!s.closest(".fl-field-responsive-setting").length,c=i.important&&""!==a?" !important":"";"font-family"===r?(i.id=t.attr("id"),this._previewFont(i,{delegateTarget:o})):"text-shadow"===r?(i.property="text-shadow",this._previewShadowCSS(i,o,l)):(d.length&&""!==a&&(a+="SELECT"===d.prop("tagName")?d.val():"px"),this.updateCSSRule(n,r,a+c,u))},_initFieldAttributePreview:function(i){var t=i.data("preview"),l=t.attribute,n=i.find("input"),s=(i.val(),window[t.format_callback]),o=this._getPreviewSelector(this.classes.node,t.selector),r=e(o),a=this._previewAttribute.bind(this,n,r,l,s);n.on("change",a),n.on("keyup",a),n.on("input",a)},_previewAttribute:function(e,i,t,l){var n=e.val();"function"==typeof l&&(n=l(n)),i[0].setAttribute(t,n)},_initFieldWidgetPreview:function(i){var t=e.proxy(this.delayPreview,this);i.find("input").on("keyup",t),i.find("input[type=checkbox]").on("click",t),i.find("textarea").on("keyup",t),i.find("select").on("change",t)},_initFieldAnimationPreview:function(i,t){t.find(".fl-animation-field-style select").on("change",e.proxy(this._previewAnimationField,this,i,t)),t.find(".fl-animation-field-duration input").on("input",e.proxy(this._previewAnimationField,this,i,t))},_previewAnimationField:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=e(n),o=t.find(".fl-animation-field-style select"),r=t.find(".fl-animation-field-duration input"),a=o[0].options;s.removeClass("fl-animated"),s.removeClass("fl-animation"),s.css("animation-duration","");for(var d=0;d<a.length;d++)s.removeClass("fl-"+a[d].value);""!==o.val()&&(s.addClass("fl-animation"),s.addClass("fl-"+o.val()),s.data("animation-delay",0),s.data("animation-duration",r.val())),FLBuilderLayout._doModuleAnimation.apply(s)},_getPreviewSelector:function(e,i){return FLBuilderPreview.getFormattedSelector.call(this,e,i)},toUpperCaseWords:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},FLBuilderPreview.formatColor=function(e){return""!==e&&e.indexOf("rgb")<0&&e.indexOf("url")<0&&(e="#"+e),e},FLBuilderPreviewCallbacks={previewShape:function(e,i){var t=e.preview.position,l=e.preview.prefix,n=e.form,s=l+"transform[][scaleYSign]";yOrientation=n.find('input[name="'+s+'"]'),"bottom"===t?yOrientation.val("invert"):yOrientation.val(""),yOrientation.trigger("change"),this.delayPreview()},previewShapeLayerSize:function(e,i){var t=e.getValues(),l=t.unit,n=t.props.width,s=t.props.height,o=t.props.top,r=e.preview.prefix,a=e.preview.position,d=this._getPreviewSelector(this.classes.node,".fl-builder-"+a+"-edge-layer"),u=d+" > *",c=e.form.find('[name="'+r+'align"]'),f=c.val(),h=f.split(" "),g=h[0],p=h[1],b=e.form.find('[name="'+r+'shape"]'),m=b.val(),v=FLBuilderConfig.presets.shape[m];if(shapeProps={},shapeProps.width="100%",shapeProps.left="auto",shapeProps.right="auto",shapeProps.height="auto",shapeProps.top="auto",shapeProps.bottom="auto",n){shapeProps.width=n+l;var _=n/2+l;switch(p){case"left":shapeProps.left="0",shapeProps.right="auto";break;case"right":shapeProps.left="auto",shapeProps.right="0";break;case"center":shapeProps.left="calc( 50% - "+_+")",shapeProps.right="auto"}}this.updateCSSRule(u,"width",shapeProps.width),this.updateCSSRule(u,"left",shapeProps.left),this.updateCSSRule(u,"right",shapeProps.right);var w;if(s)w=s/2+l;else if(n){var L=v.data.viewBox.width,F=n/L*100;w=F/2+l}else w="";switch(s&&(shapeProps.height=s+l),g){case"top":shapeProps.top="0",shapeProps.bottom="auto";break;case"bottom":shapeProps.top="auto",shapeProps.bottom="0";break;case"center":shapeProps.top="calc( 50% - "+w+")",shapeProps.bottom="auto"}this.updateCSSRule(u,"height",shapeProps.height),this.updateCSSRule(u,"top",shapeProps.top),this.updateCSSRule(u,"bottom",shapeProps.bottom),""===o?this.updateCSSRule(d,a,"0"):this.updateCSSRule(d,a,o+l)},previewShapeAlign:function(e,i){var t=e.preview.prefix,l=e.form.find('[name="'+t+'size_width"]');l.trigger("input")},previewShapeFillStyle:function(e,i){var t=e.input.val(),l=e.preview,n=e.preview.prefix,s="fl-row-"+e.nodeID+"-"+n+"-linear-gradient",o="fl-row-"+e.nodeID+"-"+n+"-radial-gradient",r="fl-row-"+e.nodeID+"-"+n+"-pattern",a=e.form;if("undefined"!=typeof t){var d=this._getPreviewSelector(this.classes.node,l.selector);switch(t){case"color":var u=a.find("[name="+n+"fill_color]").val();this.updateCSSRule(d,"fill",FLBuilderPreview.formatColor(u));break;case"gradient":var c=a.find("#fl-field-"+n+"fill_gradient"),f=c.find('select[name$="[type]"]').val(),h="radial"===f?o:s;this.updateCSSRule(d,"fill","url(#"+h+")");break;case"pattern":var g="url(#"+r+")";this.updateCSSRule(d,"fill",g)}}},previewShapeGradientFill:function(e,i){var t=e.getValues(),l=e.node,n=e.preview,s=".fl-builder-"+n.position+"-edge-layer",o=l.find(s+" "+t.type+"Gradient"),r="url(#"+o.attr("id")+")",a=this._getPreviewSelector(this.classes.node,s+" .fl-shape");this.updateCSSRule(a,"fill",r);var d=o.find("stop");for(var u in t.stops){var c=t.stops[u],f=d.eq(u),h=c.color,g=c.stop,p=1;if(0===h.indexOf("rgba")){var b=h.substring(h.indexOf("(")+1,h.lastIndexOf(")")).split(/,\s*/);p=b.pop(),h="rgb("+b.join(",")+")"}f.attr("stop-color",FLBuilderPreview.formatColor(h)),f.attr("stop-opacity",p),f.attr("offset",g+"%")}if("linear"===t.type&&"undefined"!=typeof o[0]&&o[0].setAttribute("gradientTransform","rotate("+t.angle+" .5 .5 )"),"radial"===t.type){parts=t.position.split(" ");var m,v,_,w=parts[0],L=parts[1];switch(w){case"top":case"left":m=0;break;case"center":m=.5;break;case"bottom":case"right":m=1}switch(L){case"top":case"left":v=0;break;case"center":v=.5;break;case"bottom":case"right":v=1}_=.5,.5===m&&.5===v||(_=1),o.attr("cx",m),o.attr("cy",v),o.attr("r",_)}},previewShapeTransform:function(e,i){var t=(e.form,e.preview),l=(t.prefix,this._getPreviewSelector(this.classes.node,t.selector)),n=l+" > *",s=e.getValues(),o=[];Object.keys(s).map(function(e){var i=s[e],t="",l="";switch(e){case"scaleXSign":case"scaleYSign":return;case"scaleX":case"scaleY":i&&""!==i&&0!==i||(i="1"),l="scaleX"===e?s.scaleXSign:s.scaleYSign,i="invert"===l?-Math.abs(i):Math.abs(i),o.push(e+"("+i+")");break;case"translateX":case"translateY":i&&(t="px",o.push(e+"("+i+t+")"));break;case"skewX":case"skewY":i&&(t="deg",o.push(e+"("+i+t+")"));break;case"rotate":t="deg",""!==i&&"0"!==i&&o.push("rotate("+i+t+")")}}),this.updateCSSRule(n,"transform",o.join(" "))}}}(jQuery),function(e){var i={ignored:[],reparsed:[],width:null,callback:null,sheets:{},styles:[],queue:[],emPxValue:null,regex:{media:/@media[^{]*{([\s\S]+?})\s*}/gi,empty:/@media[^{]*{([^{}]*?)}/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^\/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)\}$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},ignore:function(e){Array.prototype.push.apply(this.ignored,e)},reparse:function(e){Array.prototype.push.apply(this.reparsed,e)},update:function(e,i){this.width=void 0===e?null:e,this.callback=void 0===i?null:i,t.update(),this.queueSheets()?this.runQueue():this.applyStyles()},queueSheets:function(){for(var i=e("link, style"),t=null,l=null,n=null,s=null,o=null,r=null,a=null,d=!1,u=0,c=0;u<i.length;u++)if(element=i[u],t=element.href,l=element.id,n=element.tagName.toLowerCase(),s=element.rel,o=element.media,r=t?t.split("?").shift():l?l:"style-"+u,a=!0,d=!1,"style"===n||t&&s&&"stylesheet"===s.toLowerCase()){for(c=0;c<this.ignored.length;c++)if(r.indexOf(this.ignored[c])>-1){d=!0;break}if(d)continue;for(c=0;c<this.reparsed.length;c++)if(r.indexOf(this.reparsed[c])>-1){this.sheets[r]=null;break}void 0!==this.sheets[r]&&this.sheets[r]||this.queue.push({element:i.eq(u),key:r,tagName:n,href:t,id:l,media:o})}return this.queue.length},runQueue:function(){var i;this.queue.length?(i=this.queue.shift(),"style"===i.tagName?(this.parse(i.element.html(),i),this.runQueue()):e.get(i.href,e.proxy(function(e){this.parse(e,i),this.runQueue()},this)).fail(this.runQueue.bind(this))):this.applyStyles()},parse:function(e,i){var t=this.regex,l=this.cleanStyles(e),n=l.match(t.media),s=n&&n.length||0,o=!s&&i.media,r=null,a=null,d=null,u="",c=0,f=0;for(n?u=l.replace(t.media,""):o&&"all"!=i.media?s=1:u=l,this.sheets[i.key]={element:i.element,key:i.key,tagName:i.tagName,href:i.href,id:i.id,all:u,queries:[]},c=0;c<s;c++)for(o?(r=i.media,l=this.convertURLs(l,i.href)):(r=n[c].match(t.findStyles)&&RegExp.$1,l=RegExp.$2&&this.convertURLs(RegExp.$2,i.href)),a=r.split(","),f=0;f<a.length;f++)r=a[f],d=r.split("(")[0].match(t.only)&&RegExp.$2,"print"!=d&&(r.replace(t.minmaxwh,"").match(t.other)||this.sheets[i.key].queries.push({minw:r.match(t.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(t.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),styles:l}))},applyStyles:function(){var i=e("head"),t={all:"",queries:[]},l=null,n=null,s=null,o=null,r=null,a=null,d=null,u=!1;this.clearStyles();for(s in this.sheets)if(n=this.sheets[s],n.queries.length&&this.width){for(t.all+=n.all,r=0;r<n.queries.length;r++)o=n.queries[r],a=o.minw,d=o.maxw,u=!1,a&&(a=parseFloat(a)*(a.indexOf("em")>-1?this.getEmPxValue():1),this.width>=a&&(t.queries.push({media:"min",width:a,styles:o.styles}),u=!0)),d&&!u&&(d=parseFloat(d)*(d.indexOf("em")>-1?this.getEmPxValue():1),this.width<=d&&t.queries.push({media:"max",width:d,styles:o.styles}));n.element[0].disabled=!0}for(""!==t.all&&(l=e('<style class="fl-builder-media-query" data-query="all"></style>'),this.styles.push(l),i.append(l),l.html(t.all)),r=0;r<t.queries.length;r++)o=t.queries[r],l=e('<style class="fl-builder-media-query" data-query="'+o.media+'" data-value="'+o.width+'"></style>'),this.styles.push(l),i.append(l),l.html(o.styles);this.callback&&(this.callback(),this.callback=null)},clearStyles:function(){var e=null,i=this.styles.slice(0);this.styles=[];for(e in this.sheets)this.sheets[e].element[0].disabled=!1;for(var t=0;t<i.length;t++)i[t].empty(),i[t].remove()},disableStyles:function(e){for(var i,t,l,n=0;n<this.styles.length;n++)i=this.styles[n],t=i.attr("data-query"),l=parseInt(i.attr("data-value")),"max"===t&&!isNaN(l)&&l<=e&&(this.styles[n][0].sheet.disabled=!0)},enableStyles:function(){for(var e=0;e<this.styles.length;e++)this.styles[e][0].sheet.disabled=!1},cleanStyles:function(e){var i=this.regex;return e.replace(i.comments,"").replace(i.keyframes,"").replace(i.empty,"")},convertURLs:function(e,i){return i?(i=i.substring(0,i.lastIndexOf("/")),i.length&&(i+="/"),e.replace(this.regex.urls,"$1"+i+"$2$3")):e},getEmPxValue:function(){if(this.emPxValue)return this.emPxValue;var e=null,i=window.document,t=i.documentElement,l=i.body,n=i.createElement("div"),s=t.style.fontSize,o=l&&l.style.fontSize,r=!1;return n.style.cssText="position:absolute;font-size:1em;width:1em",l||(l=r=i.createElement("body"),l.style.background="none"),t.style.fontSize="100%",l.style.fontSize="100%",l.appendChild(n),r&&t.insertBefore(l,t.firstChild),e=parseFloat(n.offsetWidth),r?t.removeChild(l):l.removeChild(n),t.style.fontSize=s,o?l.style.fontSize=o:l.style.fontSize="",this.emPxValue=e,e}},t={_functions:null,update:function(){var e;if(!this._functions){this._functions={};for(e in l)this._functions[e]=jQuery.fn[e]}if(i.width)for(e in l)jQuery.fn[e]=l[e];else for(e in this._functions)jQuery.fn[e]=this._functions[e]}},l={width:function(l){return void 0!=l?t._functions.width.call(this,l):e.isWindow(this[0])?i.width:t._functions.width.call(this)}};FLBuilderSimulateMediaQuery={ignore:function(e){i.ignore(e)},reparse:function(e){i.reparse(e)},update:function(e,t){i.update(e,t)},disableStyles:function(e){i.disableStyles(e)},enableStyles:function(){i.enableStyles()}}}(jQuery),function(e){FLBuilderResponsiveEditing={_mode:"default",refreshPreview:function(i){var t;e(".fl-responsive-preview").length&&"default"!==this._mode?("responsive"==this._mode?(t=FLBuilderConfig.global.responsive_breakpoint>=320?320:FLBuilderConfig.global.responsive_breakpoint,FLBuilderSimulateMediaQuery.update(t,i)):"medium"==this._mode&&(t=FLBuilderConfig.global.medium_breakpoint>=769?769:FLBuilderConfig.global.medium_breakpoint,FLBuilderSimulateMediaQuery.update(t,i)),FLBuilder._resizeLayout()):i&&i()},_init:function(){this._bind(),this._initMediaQueries()},_bind:function(){FLBuilder.addHook("endEditingSession",this._clearPreview),FLBuilder.addHook("didEnterRevisionPreview",this._clearPreview),FLBuilder.addHook("responsiveEditing",this._menuToggleClicked),FLBuilder.addHook("preview-init",this._switchAllSettingsToCurrentMode),e("body").delegate(".fl-field-responsive-toggle","click",this._settingToggleClicked),e("body").delegate(".fl-responsive-preview-message button","click",this._previewToggleClicked)},_initMediaQueries:function(){FLBuilderSimulateMediaQuery.ignore([FLBuilderConfig.pluginUrl,"fl-builder-preview","fl-theme-builder","/wp-includes/","/wp-admin/","admin-bar-inline-css","ace-tm","ace_editor.css"]),FLBuilderSimulateMediaQuery.reparse([FLBuilderConfig.postId+"-layout-draft.css",FLBuilderConfig.postId+"-layout-draft-partial.css",FLBuilderConfig.postId+"-layout-preview.css",FLBuilderConfig.postId+"-layout-preview-partial.css","fl-builder-global-css","fl-builder-layout-css"]);
|
8 |
-
},_switchTo:function(i,t){var l=e("html"),n=e("body"),s=e(FLBuilder._contentClass),o=e(".fl-responsive-preview"),r=e(".fl-responsive-preview-mask"),a=e(".fl-content-placeholder"),d=null;if(FLBuilderResponsiveEditing._mode=i,"default"==i){if(0===a.length)return;l.removeClass("fl-responsive-preview-enabled"),a.after(s),a.remove(),o.remove(),r.remove()}else 0===o.length?(l.addClass("fl-responsive-preview-enabled"),s.after('<div class="fl-content-placeholder"></div>'),n.prepend(wp.template("fl-responsive-preview")()),e(".fl-responsive-preview").addClass("fl-preview-"+i),e(".fl-responsive-preview-content").append(s)):(o.removeClass("fl-preview-responsive fl-preview-medium"),o.addClass("fl-preview-"+i));"responsive"==i?(d=FLBuilderConfig.global.responsive_breakpoint>=360?360:FLBuilderConfig.global.responsive_breakpoint,s.width(d),FLBuilderSimulateMediaQuery.update(d,t)):"medium"==i?(d=FLBuilderConfig.global.medium_breakpoint>=769?769:FLBuilderConfig.global.medium_breakpoint,s.width(d),FLBuilderSimulateMediaQuery.update(d,t)):(s.width(""),FLBuilderSimulateMediaQuery.update(null,t)),this._setContentBackgroundColor(),FLBuilder._resizeLayout(),this._previewFields(),FLBuilder.triggerHook("responsive-editing-switched",i)},_setContentBackgroundColor:function(){var i=e(FLBuilder._contentClass),t=e(".fl-responsive-preview"),l=e(".fl-content-placeholder"),n=l.parents(),s="#fff",o=0;if(0===t.length)i.css("background-color","");else{for(;o<n.length&&(s=n.eq(o).css("background-color"),"rgba(0, 0, 0, 0)"==s);o++);i.css("background-color",s)}},_switchToAndScroll:function(i){var t=e(".fl-builder-settings").data("node"),l=void 0===t?void 0:e(".fl-node-"+t);FLBuilderResponsiveEditing._switchTo(i,function(){if(void 0!==l&&l){var i=(e(window),e(".fl-responsive-preview-content"));i.length?(i.scrollTop(0),i.scrollTop(l.offset().top-150)):e("html, body").scrollTop(l.offset().top-100)}})},_switchAllSettingsTo:function(i){var t="dashicons-desktop dashicons-tablet dashicons-smartphone";e(".fl-field-responsive-toggle").removeClass(t),e(".fl-field-responsive-setting").hide(),t="default"==i?"dashicons-desktop":"medium"==i?"dashicons-tablet":"dashicons-smartphone",e(".fl-field-responsive-toggle").addClass(t).data("mode",i),e(".fl-field-responsive-setting-"+i).css("display","inline-block")},_switchAllSettingsToCurrentMode:function(){var e=FLBuilderResponsiveEditing;e._switchAllSettingsTo(e._mode),FLBuilder.triggerHook("responsive-editing-switched",e._mode)},_settingToggleClicked:function(){var i=e(this),t=i.data("mode");t="default"==t?"medium":"medium"==t?"responsive":"default",FLBuilderResponsiveEditing._switchAllSettingsTo(t),FLBuilderResponsiveEditing._switchToAndScroll(t),i.siblings(".fl-field-responsive-setting:visible").find("input").focus()},_menuToggleClicked:function(){var e=FLBuilderResponsiveEditing._mode;e="default"==e?"medium":"medium"==e?"responsive":"default",FLBuilder.MainMenu.hide(),FLBuilderResponsiveEditing._switchAllSettingsTo(e),FLBuilderResponsiveEditing._switchToAndScroll(e)},_previewToggleClicked:function(){var i=e(this).data("mode");FLBuilderResponsiveEditing._switchAllSettingsTo(i),FLBuilderResponsiveEditing._switchToAndScroll(i)},_clearPreview:function(){FLBuilderResponsiveEditing._switchToAndScroll("default")},_previewFields:function(){var i=FLBuilderResponsiveEditing._mode,t=e(".fl-builder-settings:visible");0!==t.length&&void 0!==t.attr("data-node")&&(FLBuilder.triggerHook("responsive-editing-before-preview-fields",i),t.find(".fl-builder-settings-tab").each(function(){var t=e(this);t.css("display","block"),t.find(".fl-field-responsive-setting-"+i+":visible").each(function(){var t=e(this),l=t.closest(".fl-field"),n=l.data("type"),s=l.data("preview"),o=l.find(".fl-field-connection-visible").length;"refresh"!=s.type&&(o?"photo"===n&&"default"!==i&&t.find(".fl-photo-remove").trigger("click"):(t.find("input").trigger("keyup"),t.find("select").trigger("change")))}),t.css("display","")}),FLBuilder.triggerHook("responsive-editing-after-preview-fields",i))}},e(function(){FLBuilderResponsiveEditing._init()})}(jQuery),function(e){FLBuilderResponsivePreview={enter:function(){this.render()},exit:function(){this.destroy()},switchTo:function(i){var t=FLBuilderConfig.global,l=e("#fl-builder-preview-frame"),n="100%";"responsive"==i?(n=t.responsive_breakpoint>=360?360:t.responsive_breakpoint,l.width(n)):"medium"==i&&(n=t.medium_breakpoint>=769?769:t.medium_breakpoint,l.width(n)),l.width(n)},render:function(){var i=e("body"),t=FLBuilderConfig.previewUrl,l=e("#fl-builder-preview-mask, #fl-builder-preview-frame"),n=e('<div id="fl-builder-preview-mask"></div>'),s=e('<iframe id="fl-builder-preview-frame" src="'+t+'" frameborder="0"></iframe>');l.remove(),i.append(n),i.append(s),i.css("overflow","hidden")},destroy:function(){e("#fl-builder-preview-mask, #fl-builder-preview-frame").remove(),e("body").css("overflow","visible")}}}(jQuery),function(e){var i={init:function(){var i=e("body");i.delegate(".fl-builder-service-select","change",this._serviceChange),i.delegate(".fl-builder-service-connect-button","click",this._connectClicked),i.delegate(".fl-builder-service-account-select","change",this._accountChange),i.delegate(".fl-builder-service-account-delete","click",this._accountDeleteClicked),i.delegate(".fl-builder-campaign-monitor-client-select","change",this._campaignMonitorClientChange),i.delegate(".fl-builder-mailchimp-list-select","change",this._mailChimpListChange),i.delegate(".fl-builder-activecampaign-list_type-select","change",this._activeCampaignChange)},_startSettingsLoading:function(i){var t=e(".fl-builder-settings"),l=i.closest(".fl-builder-service-settings"),n=e(".fl-builder-service-error");t.append('<div class="fl-builder-loading"></div>'),l.addClass("fl-builder-service-settings-loading"),n.remove()},_finishSettingsLoading:function(){var i=e(".fl-builder-settings"),t=e(".fl-builder-service-settings-loading");i.find(".fl-builder-loading").remove(),t.removeClass("fl-builder-service-settings-loading")},_serviceChange:function(){var t=e(".fl-builder-settings").data("node"),l=e(this),n=l.closest("tr"),s=l.val();n.siblings("tr.fl-builder-service-account-row").remove(),n.siblings("tr.fl-builder-service-connect-row").remove(),n.siblings("tr.fl-builder-service-field-row").remove(),e(".fl-builder-service-error").remove(),""!==s&&(i._startSettingsLoading(l),FLBuilder.ajax({action:"render_service_settings",node_id:t,service:s},i._serviceChangeComplete))},_serviceChangeComplete:function(t){var l=JSON.parse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-service-select-row");s.after(l.html),i._addAccountDelete(n),i._finishSettingsLoading()},_connectClicked:function(){for(var t=e(".fl-builder-settings").data("node"),l=e(this).closest(".fl-builder-service-settings"),n=l.find(".fl-builder-service-select"),s=l.find(".fl-builder-service-connect-row"),o=l.find(".fl-builder-service-connect-input"),r=null,a=null,d=0,u={action:"connect_service",node_id:t,service:n.val(),fields:{}};d<o.length;d++)r=o.eq(d),a=r.attr("name"),u.fields[a]=r.val();s.hide(),i._startSettingsLoading(n),FLBuilder.ajax(u,i._connectComplete)},_connectComplete:function(t){var l=JSON.parse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-service-select-row"),o=n.find(".fl-builder-service-select"),r=n.find(".fl-builder-service-account-row"),a=n.find(".fl-builder-service-account-select"),d=n.find(".fl-builder-service-connect-row");l.error?(d.show(),0===a.length?o.after('<div class="fl-builder-service-error">'+l.error+"</div>"):a.after('<div class="fl-builder-service-error">'+l.error+"</div>")):(d.remove(),r.remove(),s.after(l.html)),i._addAccountDelete(n),i._finishSettingsLoading()},_accountChange:function(){var t=e(".fl-builder-settings").data("node"),l=e(this).closest(".fl-builder-service-settings"),n=l.find(".fl-builder-service-select"),s=l.find(".fl-builder-service-account-select"),o=l.find(".fl-builder-service-connect-row"),r=l.find("tr.fl-builder-service-field-row"),a=e(".fl-builder-service-error"),d=s.val(),u=null;o.remove(),r.remove(),a.remove(),"add_new_account"==d?u={action:"render_service_settings",node_id:t,service:n.val(),add_new:!0}:""!==d&&(u={action:"render_service_fields",node_id:t,service:n.val(),account:d}),u&&(i._startSettingsLoading(n),FLBuilder.ajax(u,i._accountChangeComplete)),i._addAccountDelete(l)},_accountChangeComplete:function(t){var l=JSON.parse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-service-account-row");s.after(l.html),i._finishSettingsLoading()},_addAccountDelete:function(e){var i=e.find(".fl-builder-service-account-select");i.length>0&&(e.find(".fl-builder-service-account-delete").remove(),""!==i.val()&&"add_new_account"!=i.val()&&i.after('<a href="javascript:void(0);" class="fl-builder-service-account-delete">'+FLBuilderStrings.deleteAccount+"</a>"))},_accountDeleteClicked:function(){var t=e(this).closest(".fl-builder-service-settings"),l=t.find(".fl-builder-service-select"),n=t.find(".fl-builder-service-account-select");confirm(FLBuilderStrings.deleteAccountWarning)&&(FLBuilder.ajax({action:"delete_service_account",service:l.val(),account:n.val()},i._accountDeleteComplete),i._startSettingsLoading(n))},_accountDeleteComplete:function(){var t=e(".fl-builder-service-settings-loading"),l=t.find(".fl-builder-service-select");i._finishSettingsLoading(),l.trigger("change")},_campaignMonitorClientChange:function(){var t=e(".fl-builder-settings").data("node"),l=e(this).closest(".fl-builder-service-settings"),n=l.find(".fl-builder-service-select"),s=l.find(".fl-builder-service-account-select"),o=e(this),r=l.find(".fl-builder-service-list-select"),a=o.val();0!==r.length&&r.closest("tr").remove(),""!==a&&(i._startSettingsLoading(n),FLBuilder.ajax({action:"render_service_fields",node_id:t,service:n.val(),account:s.val(),client:a},i._campaignMonitorClientChangeComplete))},_campaignMonitorClientChangeComplete:function(t){var l=JSON.parse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-campaign-monitor-client-select");s.closest("tr").after(l.html),i._finishSettingsLoading()},_mailChimpListChange:function(){var t=e(".fl-builder-settings").data("node"),l=e(this).closest(".fl-builder-service-settings"),n=l.find(".fl-builder-service-select"),s=l.find(".fl-builder-service-account-select"),o=l.find(".fl-builder-service-list-select");e(".fl-builder-mailchimp-group-select").closest("tr").remove(),""!==o.val()&&(i._startSettingsLoading(n),FLBuilder.ajax({action:"render_service_fields",node_id:t,service:n.val(),account:s.val(),list_id:o.val()},i._mailChimpListChangeComplete))},_mailChimpListChangeComplete:function(t){var l=JSON.parse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-service-list-select");s.closest("tr").after(l.html),i._finishSettingsLoading()},_activeCampaignChange:function(){var t=e(".fl-builder-settings").data("node"),l=e(this).closest(".fl-builder-service-settings"),n=l.find(".fl-builder-service-select"),s=l.find(".fl-builder-service-account-select"),o=l.find(".fl-builder-service-list-select");list_type=l.find('select[name="list_type"]'),0!==o.length&&o.closest("tr").remove(),""!==list_type.val()&&(i._startSettingsLoading(n),FLBuilder.ajax({action:"render_service_fields",node_id:t,service:n.val(),account:s.val(),list_type:list_type.val()},i._activeCampaignTypeChangeComplete))},_activeCampaignTypeChangeComplete:function(t){var l=JSON.parse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-service-field-row");s.after(l.html),i._finishSettingsLoading()}};e(function(){i.init()})}(jQuery),function(e){FLBuilderTour={_tour:null,start:function(){FLBuilderTour._tour?FLBuilderTour._tour.restart():(FLBuilderTour._tour=new Tour(FLBuilderTour._config()),FLBuilderTour._tour.init()),FLBuilder._triggerSettingsSave(!1,!0)&&FLBuilderTour._tour.start()},_config:function(){var i={storage:!1,onStart:FLBuilderTour._onStart,onPrev:FLBuilderTour._onPrev,onNext:FLBuilderTour._onNext,onEnd:FLBuilderTour._onEnd,template:'<div class="popover" role="tooltip"> <i class="fas fa-times" data-role="end"></i> <div class="arrow"></div> <h3 class="popover-title"></h3> <div class="popover-content"></div> <div class="popover-navigation clearfix"> <button class="fl-builder-button fl-builder-button-primary fl-builder-tour-next" data-role="next">'+FLBuilderStrings.tourNext+"</button> </div> </div>",steps:[{animation:!1,element:".fl-builder--content-library-panel",placement:"left",title:FLBuilderStrings.tourTemplatesTitle,content:FLBuilderStrings.tourTemplates,onShow:function(){FLBuilder.ContentPanel.show("templates")}},{animation:!1,element:".fl-builder--content-library-panel",placement:"left",title:FLBuilderStrings.tourAddRowsTitle,content:FLBuilderStrings.tourAddRows,onShow:function(){FLBuilder.ContentPanel.show("rows")}},{animation:!1,element:".fl-builder--content-library-panel",placement:"left",title:FLBuilderStrings.tourAddContentTitle,content:FLBuilderStrings.tourAddContent,onShow:function(){FLBuilder.ContentPanel.show("modules")}},{animation:!1,element:".fl-row:first-of-type",placement:"top",title:FLBuilderStrings.tourEditContentTitle,content:FLBuilderStrings.tourEditContent,onShow:function(){FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._closePanel(),e(".fl-row").eq(0).trigger("mouseenter"),e(".fl-module").eq(0).trigger("mouseenter")}},{animation:!1,element:".fl-row:first-of-type .fl-module-overlay .fl-block-overlay-actions",placement:"top",title:FLBuilderStrings.tourEditContentTitle,content:FLBuilderStrings.tourEditContent2,onShow:function(){FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._closePanel(),e(".fl-row").eq(0).trigger("mouseenter"),e(".fl-module").eq(0).trigger("mouseenter")}},{animation:!1,element:".fl-builder-content-panel-button",placement:"bottom",title:FLBuilderStrings.tourAddContentButtonTitle,content:FLBuilderStrings.tourAddContentButton,onShow:function(){FLBuilderTour._dimSection("body"),e(".fl-row").eq(0).trigger("mouseleave"),e(".fl-module").eq(0).trigger("mouseleave")}},{animation:!1,element:".fl-builder-templates-button",placement:"bottom",title:FLBuilderStrings.tourTemplatesButtonTitle,content:FLBuilderStrings.tourTemplatesButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,element:".fl-builder-tools-button",placement:"bottom",title:FLBuilderStrings.tourToolsButtonTitle,content:FLBuilderStrings.tourToolsButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,element:".fl-builder-done-button",placement:"bottom",title:FLBuilderStrings.tourDoneButtonTitle,content:FLBuilderStrings.tourDoneButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,orphan:!0,backdrop:!0,title:FLBuilderStrings.tourFinishedTitle,content:FLBuilderStrings.tourFinished,template:'<div class="popover" role="tooltip"> <div class="arrow"></div> <i class="fas fa-times" data-role="end"></i> <h3 class="popover-title"></h3> <div class="popover-content"></div> <div class="popover-navigation clearfix"> <button class="fl-builder-button fl-builder-button-primary fl-builder-tour-next" data-role="end">'+FLBuilderStrings.tourEnd+"</button> </div> </div>"}]};return FLBuilderConfig.lite?i.steps.shift():"disabled"==FLBuilderConfig.enabledTemplates?i.steps.shift():"fl-builder-template"==FLBuilderConfig.postType&&i.steps.shift(),i},_onStart:function(){var i=e("body");i.scrollTop(0),i.append('<div class="fl-builder-tour-mask"></div>'),0===e(".fl-row").length&&"module"!=FLBuilderConfig.userTemplateType&&(e(".fl-builder-content").append('<div class="fl-builder-tour-demo-content fl-row fl-row-fixed-width fl-row-bg-none"> <div class="fl-row-content-wrap"> <div class="fl-row-content fl-row-fixed-width fl-node-content"> <div class="fl-col-group"> <div class="fl-col" style="width:100%"> <div class="fl-col-content fl-node-content"> <div class="fl-module fl-module-rich-text" data-type="rich-text" data-name="Text Editor"> <div class="fl-module-content fl-node-content"> <div class="fl-rich-text"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus pellentesque ut lorem non cursus. Sed mauris nunc, porttitor iaculis lorem a, sollicitudin lacinia sapien. Proin euismod orci lacus, et sollicitudin leo posuere ac. In hac habitasse platea dictumst. Maecenas elit magna, consequat in turpis suscipit, ultrices rhoncus arcu. Phasellus finibus sapien nec elit tempus venenatis. Maecenas tincidunt sapien non libero maximus, in aliquam felis tincidunt. Mauris mollis ultricies facilisis. Duis condimentum dignissim tortor sit amet facilisis. Aenean gravida lacus eu risus molestie egestas. Donec ut dolor dictum, fringilla metus malesuada, viverra nunc. Maecenas ut purus ac justo aliquet lacinia. Cras vestibulum elementum tincidunt. Maecenas mattis tortor neque, consectetur dignissim neque tempor nec.</p></div> </div> </div> </div> </div> </div> </div> </div> </div>'),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols())},_onPrev:function(){e(".fl-builder-tour-dimmed").remove()},_onNext:function(){e(".fl-builder-tour-dimmed").remove()},_onEnd:function(){e("body").off("fl-builder.template-selector-loaded"),e(".fl-builder-tour-mask").remove(),e(".fl-builder-tour-dimmed").remove(),e(".fl-builder-tour-demo-content").remove(),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._showPanel(),FLBuilder._initTemplateSelector()},_dimSection:function(i){e(i).find(".fl-builder-tour-dimmed").remove(),e(i).append('<div class="fl-builder-tour-dimmed"></div>')}}}(jQuery),function(e,i){String.prototype.startsWith||(String.prototype.startsWith=function(e,i){return i=i||0,this.substr(i,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,i){var t=this.toString();("number"!=typeof i||!isFinite(i)||Math.floor(i)!==i||i>t.length)&&(i=t.length),i-=e.length;var l=t.indexOf(e,i);return l!==-1&&l===i}),e.fn.textWidth=function(i,t){return e.fn.textWidth.fakeEl||(e.fn.textWidth.fakeEl=e("<span>").hide().appendTo(document.body)),e.fn.textWidth.fakeEl.text(i||this.val()||this.text()).css("font",t||this.css("font")),e.fn.textWidth.fakeEl.width()},FLExtendableObject={create:function(i){var t=Object.create(this);return t=e.extend(t,i),e(this).trigger("onCreate"),t}},e.fn.switchClass=function(i,t){return this.each(function(){return e(this).removeClass(function(e,t){var l=[],n=t.split(" ");for(var e in n)n[e].startsWith(i)&&l.push(n[e]);return l.join(" ")}),e(this).addClass(i+t)})};var t={init:function(){i.addHook("cancelTask",this.onCancelTask.bind(this)),i.addHook("showSavedMessage",this.onSaveShortcut.bind(this)),i.addHook("goToNextTab",this.onNextPrevTabShortcut.bind(this,"next")),i.addHook("goToPrevTab",this.onNextPrevTabShortcut.bind(this,"prev")),i.addHook("endEditingSession",this.onEndEditingSession.bind(this)),i.addHook("restartEditingSession",this.onRestartEditingSession.bind(this)),this.setDefaultKeyboardShortcuts()},addShortcut:function(i,t,l){var n=e.proxy(this,"onTriggerKey",i);l?Mousetrap.bindGlobal(t,n):Mousetrap.bind(t,n)},reset:function(){Mousetrap.reset()},setDefaultKeyboardShortcuts:function(){this.reset();for(var e in FLBuilderConfig.keyboardShortcuts){var i=FLBuilderConfig.keyboardShortcuts[e].keyCode,t=FLBuilderConfig.keyboardShortcuts[e].isGlobal;this.addShortcut(e,i,t)}},onTriggerKey:function(e,t){i.triggerHook(e),t.preventDefault?t.preventDefault():t.returnValue=!1},onCancelTask:function(){return s.isPreviewing?void s.endPreview():n.isShowing?void n.hide():i.ContentPanel.isShowing?void i.ContentPanel.hide():void 0},pause:function(){Mousetrap.pause()},unpause:function(){Mousetrap.unpause()},onEndEditingSession:function(){this.reset(),this.addShortcut("restartEditingSession","mod+e")},onRestartEditingSession:function(){this.reset(),this.setDefaultKeyboardShortcuts()},onSaveShortcut:function(){if(i.SaveManager.layoutNeedsPublish()){var e=FLBuilderStrings.savedStatus.hasAlreadySaved;i.SaveManager.showStatusMessage(e),setTimeout(function(){i.SaveManager.resetStatusMessage()},2e3)}else{var e=FLBuilderStrings.savedStatus.nothingToSave;i.SaveManager.showStatusMessage(e),setTimeout(function(){i.SaveManager.resetStatusMessage()},2e3)}},onNextPrevTabShortcut:function(t,l){var n,s,o=e(".fl-lightbox:visible"),r=o.find(".fl-builder-settings-tabs a");o.length>0&&(n=r.filter("a.fl-active"),s="next"==t?n.is(r.last())?r.first():n.next("a"):n.is(r.first())?r.last():n.prev("a"),s.trigger("click")),i._calculateSettingsTabsOverflow(),l.preventDefault()}},l={isShowing:!1,init:function(){this.render(),i.addHook("showKeyboardShortcuts",this.show.bind(this))},render:function(){var i=wp.template("fl-keyboard-shortcuts"),t=FLBuilderConfig.keyboardShortcuts;this.$el=e(i(t)),e("body").append(this.$el),this.$el.find(".dismiss-shortcut-ui").on("click",this.hide.bind(this)),this.$el.on("click",this.hide.bind(this))},show:function(){this.isShowing||(this.$el.addClass("is-showing"),this.isShowing=!0)},hide:function(){this.isShowing&&(this.$el.removeClass("is-showing"),this.isShowing=!1)},toggle:function(){this.isShowing?this.hide():this.show()}},n=FLExtendableObject.create({isShowing:!1,init:function(){this.$el=e(".fl-builder-publish-actions"),this.$defaultBarButtons=e(".fl-builder-bar-actions"),this.$clickAwayMask=e(".fl-builder-publish-actions-click-away-mask"),this.$doneBtn=this.$defaultBarButtons.find(".fl-builder-done-button"),this.$doneBtn.on("click",this.onDoneTriggered.bind(this)),this.$actions=this.$el.find(".fl-builder-button"),this.$actions.on("click",this.onActionClicked.bind(this)),i.addHook("triggerDone",this.onDoneTriggered.bind(this));var t=this.hide.bind(this);i.addHook("cancelPublishActions",t),i.addHook("endEditingSession",t),this.$clickAwayMask.on("click",t)},onDoneTriggered:function(){i.SaveManager.layoutNeedsPublish()?this.show():FLBuilderConfig.shouldRefreshOnPublish?i._exit():i._exitWithoutRefresh()},show:function(){this.isShowing||i._triggerSettingsSave(!1,!0)&&(this.$el.removeClass("is-hidden"),this.$defaultBarButtons.css("opacity","0"),this.$clickAwayMask.show(),this.isShowing=!0,i.triggerHook("didShowPublishActions"))},hide:function(){this.isShowing&&(this.$el.addClass("is-hidden"),this.$defaultBarButtons.css("opacity","1"),this.$clickAwayMask.hide(),this.isShowing=!1)},onActionClicked:function(t){var l=e(t.currentTarget).data("action");switch(l){case"dismiss":this.hide();break;case"discard":this.hide(),s.muteToolbar(),i._discardButtonClicked();break;case"publish":this.hide(),s.muteToolbar(),i._publishButtonClicked(),i._destroyOverlayEvents();break;case"draft":this.hide(),s.muteToolbar(),i._draftButtonClicked();break;default:this.hide(),s.muteToolbar(),i._draftButtonClicked()}i.triggerHook(l+"ButtonClicked")}}),s={isPreviewing:!1,init:function(){this.$el=e("body"),this.$mainToolbar=e(".fl-builder-bar"),this.$mainToolbarContent=this.$mainToolbar.find(".fl-builder-bar-content"),this.$wpAdminBar=e("#wpadminbar"),this.$endPreviewBtn=e(".fl-builder--preview-actions .end-preview-btn"),i.addHook("endEditingSession",this.endEditingSession.bind(this)),i.addHook("previewLayout",this.togglePreview.bind(this)),this.$endPreviewBtn.on("click",this.endPreview.bind(this)),this.$deviceIcons=e(".fl-builder--preview-actions i"),this.$deviceIcons.on("click",this.onDeviceIconClick.bind(this));var t=this.$wpAdminBar.find("#wp-admin-bar-fl-builder-frontend-edit-link > a, #wp-admin-bar-fl-theme-builder-frontend-edit-link > a");t.on("click",this.onClickPageBuilderToolbarLink.bind(this)),e("#wpadminbar a").attr("tabindex","-1");var l=this.restartEditingSession.bind(this);i.addHook("restartEditingSession",l),i.addHook("didHideAllLightboxes",this.unmuteToolbar.bind(this)),i.addHook("didCancelDiscard",this.unmuteToolbar.bind(this)),i.addHook("didEnterRevisionPreview",this.hide.bind(this)),i.addHook("didExitRevisionPreview",this.show.bind(this)),i.addHook("didPublishLayout",this.onPublish.bind(this))},endEditingSession:function(){i._destroyOverlayEvents(),i._removeAllOverlays(),i._removeEmptyRowAndColHighlights(),i._removeColHighlightGuides(),i._unbindEvents(),e("html").removeClass("fl-builder-edit").addClass("fl-builder-show-admin-bar"),e("body").removeClass("fl-builder-edit"),e("#wpadminbar a").attr("tabindex",null),e(i._contentClass).removeClass("fl-builder-content-editing"),this.hideMainToolbar(),i.ContentPanel.hide(),FLBuilderLayout.init()},restartEditingSession:function(t){i._initTemplateSelector(),i._bindOverlayEvents(),i._highlightEmptyCols(),i._rebindEvents(),e("html").addClass("fl-builder-edit").removeClass("fl-builder-show-admin-bar"),e("body").addClass("fl-builder-edit"),e("#wpadminbar a").attr("tabindex","-1"),e(i._contentClass).addClass("fl-builder-content-editing"),this.showMainToolbar(),t.preventDefault()},onClickPageBuilderToolbarLink:function(e){i.triggerHook("restartEditingSession"),e.preventDefault()},onPublish:function(){var e=this.$wpAdminBar.find("#wp-admin-bar-fl-builder-frontend-edit-link > a span");e.css("color","#6bc373")},hide:function(){e("html").hasClass("fl-builder-edit")&&(i._unbindEvents(),i._destroyOverlayEvents(),i._removeAllOverlays(),e("html").removeClass("fl-builder-edit"),e("body").removeClass("admin-bar"),this.hideMainToolbar(),i.ContentPanel.hide(),FLBuilderLayout.init(),i.triggerHook("didHideEditingUI"))},show:function(){e("html").hasClass("fl-builder-edit")||(i._rebindEvents(),i._bindOverlayEvents(),this.showMainToolbar(),FLBuilderResponsiveEditing._switchTo("default"),e("html").addClass("fl-builder-edit"),e("body").addClass("admin-bar"),i.triggerHook("didShowEditingUI"))},beginPreview:function(){i._triggerSettingsSave(!1,!0)&&(this.isPreviewing=!0,this.hide(),e("html").addClass("fl-builder-preview"),e("html, body").removeClass("fl-builder-edit"),i._removeEmptyRowAndColHighlights(),i._removeColHighlightGuides(),i.triggerHook("didBeginPreview"),FLBuilderResponsivePreview.enter())},endPreview:function(){this.isPreviewing=!1,this.show(),i._highlightEmptyCols(),FLBuilderResponsivePreview.exit(),e("html").removeClass("fl-builder-preview"),e("html, body").addClass("fl-builder-edit")},togglePreview:function(){this.isPreviewing?this.endPreview():this.beginPreview()},hideMainToolbar:function(){this.$mainToolbar.addClass("is-hidden"),e("html").removeClass("fl-builder-is-showing-toolbar")},showMainToolbar:function(){this.unmuteToolbar(),this.$mainToolbar.removeClass("is-hidden"),e("html").addClass("fl-builder-is-showing-toolbar")},onDeviceIconClick:function(i){var t=e(i.target).data("mode");FLBuilderResponsivePreview.switchTo(t)},muteToolbar:function(){this.$mainToolbarContent.addClass("is-muted"),i._hideTipTips()},unmuteToolbar:function(){this.$mainToolbarContent.removeClass("is-muted")}},o={isEditing:!0,init:function(){history.pushState&&(i.addHook("endEditingSession",this.onLeaveBuilder.bind(this)),i.addHook("restartEditingSession",this.onEnterBuilder.bind(this)))},onEnterBuilder:function(){history.replaceState({},document.title,FLBuilderConfig.editUrl),this.isEditing=!0},onLeaveBuilder:function(){history.replaceState({},document.title,FLBuilderConfig.url),this.isEditing=!1}},r={$row:null,$rowContent:null,row:null,drag:{},init:function(){if(this.userCanResize()){var t=e(i._contentClass);t.delegate(".fl-block-row-resize","mouseenter",this.onDragHandleHover.bind(this)),t.delegate(".fl-block-row-resize","mousedown",this.onDragHandleDown.bind(this))}},userCanResize:function(){return FLBuilderConfig.rowResize.userCanResizeRows},onDragHandleHover:function(i){if(!this.drag.isDragging){var t=e(i.target),l=t.closest(".fl-row"),n=l.data("node"),s=FLBuilderSettingsConfig.nodes[n],o=e(".fl-builder-row-settings[data-node="+n+"]"),r=o.find("[name=max_content_width_unit]"),a=r.length?r.val():s.max_content_width_unit;this.$row=l,this.$rowContent=this.$row.find(".fl-row-content"),this.row={node:n,form:o,unit:a,isFixedWidth:this.$row.hasClass("fl-row-fixed-width"),parentWidth:"vw"===a?e(window).width():this.$row.parent().width()},this.drag={edge:null,isDragging:!1,originalPosition:null,originalWidth:null,calculatedWidth:null,operation:null},this.row.isFixedWidth?this.drag.originalWidth=this.$row.width():this.drag.originalWidth=this.$rowContent.width(),this.dragInit()}},onDragHandleDown:function(){e("body").addClass("fl-builder-row-resizing")},dragInit:function(e){this.$row.find(".fl-block-row-resize").draggable({axis:"x",start:this.dragStart.bind(this),drag:this.dragging.bind(this),stop:this.dragStop.bind(this)})},dragStart:function(t,l){var n=e("body"),s=e(l.helper);this.drag.isDragging=!0,this.row.isFixedWidth?this.drag.originalWidth=this.$row.width():this.drag.originalWidth=this.$rowContent.width(),s.hasClass("fl-block-col-resize-e")&&(this.drag.edge="e",this.$feedback=s.find(".fl-block-col-resize-feedback-left")),s.hasClass("fl-block-col-resize-w")&&(this.drag.edge="w",this.$feedback=s.find(".fl-block-col-resize-feedback-right")),n.addClass("fl-builder-row-resizing"),i._colResizing=!0,i._destroyOverlayEvents(),i._closePanel()},dragging:function(e,i){var t=i.position.left,l=i.originalPosition.left,n=this.drag.originalWidth,s=0,o=this.drag.edge,r=FLBuilderConfig.rowResize.minAllowedWidth,a=FLBuilderConfig.rowResize.maxAllowedWidth;l!==t&&(FLBuilderConfig.isRtl&&(o="w"==o?"e":"w"),l>t?"w"===o?this.drag.operation="+":this.drag.operation="-":"e"===o?this.drag.operation="+":this.drag.operation="-",s=Math.abs(l-t),"+"===this.drag.operation?this.drag.calculatedWidth=n+2*s:this.drag.calculatedWidth=n-2*s,!1!==r&&this.drag.calculatedWidth<r&&(this.drag.calculatedWidth=r),!1!==a&&this.drag.calculatedWidth>a&&(this.drag.calculatedWidth=a),this.row.isFixedWidth&&this.$row.css("max-width",this.drag.calculatedWidth+"px"),this.$rowContent.css("max-width",this.drag.calculatedWidth+"px"),"px"!==this.row.unit&&(this.drag.calculatedWidth=Math.round(this.drag.calculatedWidth/this.row.parentWidth*100)),_.isUndefined(this.$feedback)||this.$feedback.html(this.drag.calculatedWidth+this.row.unit).show(),this.row.form.length&&this.row.form.find("[name=max_content_width]").val(this.drag.calculatedWidth))},dragStop:function(t,l){this.drag.isDragging=!1,_.isUndefined(this.$feedback)||this.$feedback.hide();var n={action:"resize_row_content",node:this.row.node,width:this.drag.calculatedWidth},s=e("body");i.ajax(n),i._bindOverlayEvents(),s.removeClass("fl-builder-row-resizing"),e(".fl-block-overlay").each(function(){i._buildOverlayOverflowMenu(e(this))}),e("body").removeClass("fl-builder-row-resizing"),setTimeout(function(){i._colResizing=!1},50),i.triggerHook("didResizeRow",{rowId:this.row.node,rowWidth:this.drag.calculatedWidth})}},a={templateName:"fl-toolbar",init:function(){this.template=wp.template(this.templateName),this.render(),this.initTipTips();var e=this.$el.find(".fl-builder-content-panel-button");e.on("click",i._togglePanel),this.$el.find(".fl-builder-buy-button").on("click",i._upgradeClicked),this.$el.find(".fl-builder-upgrade-button").on("click",i._upgradeClicked),this.$el.find("#fl-builder-toggle-notifications").on("click",this.onNotificationsButtonClicked.bind(this)),i.addHook("notificationsLoaded",this.onNotificationsLoaded.bind(this))},render:function(i){var t=e(this.template(i));this.$el=t,this.el=t.get(0),s.$mainToolbar=this.$el,e("body").prepend(t),e("html").addClass("fl-builder-is-showing-toolbar")},initTipTips:function(){e(".fl-builder--saving-indicator").tipTip({defaultPosition:"bottom",edgeOffset:14}),e(".fl-builder-publish-actions .fl-builder-button-group .fl-builder-button").tipTip({defaultPosition:"bottom",edgeOffset:6})},onNotificationsButtonClicked:function(){i.triggerHook("toggleNotifications")},onNotificationsLoaded:function(){e("body").removeClass("fl-builder-has-new-notifications");var t={action:"fl_builder_notifications",read:!0};i.ajax(t)}};e(function(){i.ContentPanel.init(),FLBuilderConfig.simpleUi||i.MainMenu.init(),FLBuilderConfig.showToolbar?(a.init(),i.ContentPanel.alignPanelArrow()):e("html").addClass("fl-builder-no-toolbar"),t.init(),l.init(),s.init(),o.init(),r.init(),n.init(),i.triggerHook("didInitUI")})}(jQuery,FLBuilder),function(e,i){var t=FLExtendableObject.create({
|
9 |
-
templateName:"fl-main-menu-panel-view",name:"Untitled View",isShowing:!1,isRootView:!1,items:{},init:function(){this.template=wp.template(this.templateName)},render:function(){return this.template(this)},bindEvents:function(){this.$items=this.$el.find(".fl-builder--menu-item")},show:function(){this.$el.addClass("is-showing")},hide:function(){this.$el.removeClass("is-showing")},transitionIn:function(e){requestAnimationFrame(this.show.bind(this))},transitionOut:function(e){this.hide()}}),l=FLExtendableObject.create({templateName:"fl-main-menu-panel",template:null,menu:null,views:{},viewNavigationStack:[],isShowing:!1,shouldShowTabs:!1,init:function(){this.template=wp.template(this.templateName),e("body").prepend(this.template(this)),this.$el=e(".fl-builder--main-menu-panel"),this.$el.find(".fl-builder--main-menu-panel-views").html("");for(var t in FLBuilderConfig.mainMenu){this.renderPanel(t);var l="render"+t.charAt(0).toUpperCase()+t.slice(1)+"Panel";i.addHook(l,e.proxy(function(){this.renderPanel(t)},this))}e("body").on("click",".fl-builder--main-menu-panel .pop-view",this.goToPreviousView.bind(this)),this.$tabs=this.$el.find(".fl-builder--tabs > span"),this.$tabs.on("click",this.onItemClick.bind(this)),this.$barTitle=e(".fl-builder-bar-title"),e("body").on("click",".fl-builder-bar-title",this.toggle.bind(this));var o=this.hide.bind(this);i.addHook("didShowPublishActions",o),i.addHook("didBeginSearch",o),i.addHook("didBeginPreview",o),i.addHook("didShowContentPanel",o),i.addHook("endEditingSession",o),i.addHook("didFocusSearchBox",o),i.addHook("didEnterRevisionPreview",o),i.addHook("didFailSettingsSave",o),i.addHook("showKeyboardShortcuts",o),this.$mask=e(".fl-builder--main-menu-panel-mask"),this.$mask.on("click",o),n.init(),s.init()},renderPanel:function(i){var l,n,s;e('fl-builder--main-menu-panel-view[data-name="'+i+'"]').remove(),l=FLBuilderConfig.mainMenu[i],l.handle=i,n=t.create(l),n.init(),s=e(n.render()),n.$el=s,e(".fl-builder--main-menu-panel-views").append(s),n.bindEvents(),n.$el.find(".fl-builder--menu-item").on("click",this.onItemClick.bind(this)),n.isRootView&&(this.rootView=n,this.currentView=n),this.views[i]=n},show:function(){this.isShowing||(this.$el.addClass("is-showing"),this.$barTitle.addClass("is-showing-menu"),this.currentView.transitionIn(),this.isShowing=!0,this.$mask.show(),i.triggerHook("didOpenMainMenu"))},hide:function(){this.isShowing&&(this.$el.removeClass("is-showing"),this.$barTitle.removeClass("is-showing-menu"),this.isShowing=!1,this.resetViews(),this.$mask.hide())},toggle:function(){this.isShowing?this.hide():this.show()},onItemClick:function(t){var l=e(t.currentTarget),n=l.data("type");switch(n){case"view":var s=l.data("view");this.goToView(s);break;case"event":var o=l.data("event");i.triggerHook(o,l);break;case"link":}},goToView:function(e){var i=this.currentView,t=this.views[e];i.transitionOut(),t.transitionIn(),this.currentView=t,this.viewNavigationStack.push(i)},goToPreviousView:function(){var i=this.currentView,t=this.viewNavigationStack.pop();i.transitionOut(!0),t.transitionIn(!0),this.currentView=t,e(".fl-builder-bar-title-caret").focus()},resetViews:function(){this.currentView!=this.rootView&&(this.currentView.hide(),this.rootView.show(),this.currentView=this.rootView,this.viewNavigationStack=[])}});i.MainMenu=l;var n={init:function(){i.addHook("saveTemplate",this.saveTemplate.bind(this)),i.addHook("saveCoreTemplate",this.saveCoreTemplate.bind(this)),i.addHook("duplicateLayout",this.duplicateLayout.bind(this)),i.addHook("showLayoutSettings",this.showLayoutSettings.bind(this)),i.addHook("showGlobalSettings",this.showGlobalSettings.bind(this)),i.addHook("toggleUISkin",this.toggleUISkin.bind(this)),i.addHook("clearLayoutCache",this.clearLayoutCache.bind(this))},saveTemplate:function(){i._saveUserTemplateClicked(),l.hide()},saveCoreTemplate:function(){FLBuilderCoreTemplatesAdmin._saveClicked(),l.hide()},duplicateLayout:function(){i._duplicateLayoutClicked(),l.hide()},showGlobalSettings:function(){i._globalSettingsClicked(),l.hide()},showLayoutSettings:function(){i._layoutSettingsClicked(),l.hide()},clearLayoutCache:function(){i.ajax({action:"clear_cache"},function(){location.href=FLBuilderConfig.editUrl}),i.showAjaxLoader(),l.hide()},toggleUISkin:function(t){e('a[data-event="toggleUISkin"]');if(e("body").hasClass("fl-builder-ui-skin--light"))var l="light",n="dark";if(e("body").hasClass("fl-builder-ui-skin--dark"))var l="dark",n="light";e("body").removeClass("fl-builder-ui-skin--"+l).addClass("fl-builder-ui-skin--"+n),i.ajax({action:"save_ui_skin",skin_name:n})}},s={init:function(){i.addHook("beginTour",this.onStartTourClicked.bind(this))},onStartTourClicked:function(){FLBuilderTour.start(),l.hide()}}}(jQuery,FLBuilder),function(e,i){var t=FLExtendableObject.create({handle:"",name:"",panel:null,shouldShowTabItem:!0,isShowing:!1,views:{},activeView:null,defaultView:null,categorySelector:null,init:function(t){this.categorySelector=a.create({handle:"selector-"+this.handle,tab:this,items:[]}),this.categorySelector.init(),e(this.categorySelector).on("categorySelected",this.onViewSelected.bind(this));t.views;if(this.initViews(t.views),0===Object.keys(this.views).length){var l={handle:"noViews",name:"No Views",templateName:"fl-content-panel-no-view"};this.addView(l)}if(!this.activeView){var n=Object.keys(this.views)[0],l=this.views[n];this.activeView=l}this.defaultView=this.activeView,e(this.panel).on("afterRender",this.renderView.bind(this,this.activeView)),e(this.panel).on("onShow onShowTab",this.initScroller.bind(this)),i.addHook("contentItemsChanged",this.onLibraryDataChanged.bind(this))},initViews:function(e){for(var i in e){var t=e[i];this.categorySelector.addItem(t),"separator"!==t.type&&this.addView(t)}},addView:function(e){var i=l;switch(this.handle){case"modules":i=n;break;case"rows":i=s;break;case"templates":i=o;break;case"saved":i=r;break;default:i=l}_.isNull(this.viewController)||_.isUndefined(this.viewController)||(i=window[this.viewController]);var t=i.create(e),a=t.handle;t.init(),this.views[a]=t,t.isShowing&&(this.activeView=t)},renderView:function(e){if(this.$el=this.panel.$el.find('.fl-builder--panel-view[data-tab="'+this.handle+'"]'),_.isObject(e))var t=e;else var t=this.views[e];if(_.isObject(t)&&_.isFunction(t.render)){var l=t.render();this.$el.find(".fl-nanoscroller-content").html(l),this.activeView=t,i._initSortables(),this===this.panel.activeTab&&this.renderGroupSelector(),this.initScroller(),this.$el.find(".fl-nanoscroller-content").scrollTop(0)}},initScroller:function(){this.$el.nanoScroller({alwaysVisible:!0,preventPageScrolling:!0,paneClass:"fl-nanoscroller-pane",sliderClass:"fl-nanoscroller-slider",contentClass:"fl-nanoscroller-content"})},show:function(){e(this.activeView).trigger("onBeforeShow"),this.renderGroupSelector(),this.isShowing=!0,this.$el.addClass("is-showing"),this.$el.find(".fl-nanoscroller-content").scrollTop(0)},hide:function(){this.isShowing=!1,this.$el.removeClass("is-showing"),this.activeView!==this.defaultView&&this.renderView(this.defaultView),_.isObject(this.categorySelector)&&this.categorySelector.close()},renderGroupSelector:function(){var e=this.panel.$groupSelect,i=this.panel.$el.find(".fl-builder-panel-search");if(this.isSearchEnabled?i.show():i.hide(),Object.keys(this.views).length>1&&!_.isUndefined(this.categorySelector)){var t=this.categorySelector.render();this.panel.$el.find(".fl-builder-content-group-select");e.html(t),e.show(),this.panel.$el.removeClass("single-view")}else e.hide(),i.hide(),this.panel.$el.addClass("single-view")},onViewSelected:function(e,i){this.renderView(i),this.categorySelector.close()},onLibraryDataChanged:function(){this.renderView(this.activeView)}}),l=FLExtendableObject.create({templateName:"",name:"",handle:"",query:null,init:function(){this.template=wp.template(this.templateName),e(this).on("afterRender",this.bindEvents.bind(this)),e(this).trigger("afterInit")},filterTemplateData:function(e){return _.isNull(this.query)||_.isUndefined(this.query)||(e.queryResults=i.Search.byQuery(this.query)),e},render:function(){e(this).trigger("beforeRender");var i=this;i=this.filterTemplateData(i);var t=e(this.template(i));return this.$el=t,e(this).trigger("afterRender"),t},bindEvents:function(){},transitionIn:function(){},transitionOut:function(){}}),n=l.create({templateName:"fl-content-panel-modules-view",bindEvents:function(){this.$sections=this.$el,this.$items=this.$el.find(".fl-builder-block, .fl-builder-blocks-section-title")}}),s=l.create({templateName:"fl-content-panel-row-templates-view",bindEvents:function(){this.$items=this.$el.find(".fl-builder-block, .fl-builder-blocks-section-title")}}),o=l.create({templateName:"fl-content-panel-templates-view",bindEvents:function(){this.$items=this.$el.find(".fl-builder--template-collection-item"),this.$items.on("click",this.onTemplateClick.bind(this)),this.$userTemplateSections=e(".fl-user-templates"),this.$userTemplates=this.$el.find(".fl-user-template, .fl-builder--save-new-user-template"),this.$saveNewTemplateInput=this.$el.find('.fl-save-control input[name="template-name"]'),this.$saveNewTemplateCat=this.$el.find('.fl-save-control input[name="template-category"]'),this.$saveNewTemplateBtn=this.$el.find(".fl-save-control button"),this.$saveNewMask=this.$el.find(".fl-save-control-mask"),this.$saveNewTemplateInput.on("focus",this.onSaveInputFocus.bind(this)),this.$saveNewTemplateInput.on("keyup",this.onSaveInputKeyup.bind(this)),this.$saveNewTemplateBtn.on("click",this.onSaveButtonClick.bind(this)),this.$saveNewMask.on("click",this.resetSaveInput.bind(this))},onSaveInputFocus:function(){this.resetSaveInput(),this.$saveNewMask.show()},resetSaveInput:function(){this.$saveNewTemplateInput.val(""),this.$saveNewTemplateBtn.hide(),this.$saveNewMask.hide()},onSaveInputKeyup:function(i){var t=e(i.currentTarget),l=t.val(),n=t.siblings("button");""!==l?n.show():n.hide()},onSaveButtonClick:function(t){var l=e(t.currentTarget),n=l.siblings('input[name="template-name"]').val(),s=l.siblings('input[name="template-category"]').val(),o={name:n,category:s};""!==n&&i.ajax({action:"save_user_template",settings:o},i._saveUserTemplateSettingsComplete)},onTemplateClick:function(t){var l=e(t.currentTarget),n=l.data("id"),s=l.data("type");i._requestTemplateInsert(n,s)}}),r=l.create({templateName:"fl-content-panel-saved-view",filterTemplateData:function(e){return e.queryResults=i.Search.byQuery({kind:"template",type:"user",content:["module","column","row"]}),e}}),a=FLExtendableObject.create({templateName:"fl-content-panel-category-selector",template:null,tab:null,isOpen:!1,items:{},init:function(){this.template=wp.template(this.templateName),e(this).on("afterRender",this.bindEvents.bind(this)),e(this.tab.panel).on("didShowSearchControls",this.close.bind(this))},render:function(){this.close();var i=e(this.template(this));return this.$el=i,e(this).trigger("afterRender"),i},bindEvents:function(){this.$selectorTitle=this.$el.find(".fl-builder--selector-display"),this.$selectorTitle.on("click",this.toggleOpenClose.bind(this)),this.$categories=this.$el.find(".fl-builder--selector-menu .fl-builder--menu-item"),this.$categories.on("click",this.onCategoryClick.bind(this))},addItem:function(e){var i;i=_.isUndefined(e.handle)?_.uniqueId("sep_"):e.handle,this.items[i]=e},open:function(){this.isOpen||(this.$el.addClass("is-showing"),this.isOpen=!0)},close:function(){this.isOpen&&(this.$el.removeClass("is-showing"),this.isOpen=!1,this.$selectorTitle.find("button").focus())},toggleOpenClose:function(){this.isOpen?this.close():this.open()},onCategoryClick:function(i){var t=e(i.target),l=t.data("view");if(t.hasClass("fl-has-children")){var n=e('[data-parent="'+l+'"]');n.is(":visible")?(this.items[l].hasChildrenOpen=!1,t.removeClass("fl-has-children-showing"),n.hide()):(this.items[l].hasChildrenOpen=!0,t.addClass("fl-has-children-showing"),n.show()),t.blur()}else e(this).trigger("categorySelected",l)}});i.ContentPanel=FLExtendableObject.create({templateName:"fl-content-panel-base",template:null,tabs:{},activeTab:null,isShowing:!1,init:function(){if(FLBuilderConfig.panelData){var e=FLBuilderConfig.panelData.tabs;for(var l in e){var n=e[l];if(o=t.create(n),o.panel=this,o.views={},o.init(n),this.tabs[l]=o,o.isShowing&&(this.activeTab=o),!this.activeTab){var s=Object.keys(this.tabs)[0],o=this.tabs[s];o.isShowing=!0,this.activeTab=o}}this.template=wp.template(this.templateName),this.render(),this.renderSearchResults=wp.template("fl-search-results-panel"),this.renderNoResults=wp.template("fl-search-no-results"),i.triggerHook("contentPanelDidInit")}},render:function(){e("body").prepend(this.template(this)),this.$el=e(".fl-builder--content-library-panel"),this.bindEvents(),this.$groupSelect=this.$el.find(".fl-builder-content-group-select"),e(this).trigger("afterRender")},bindEvents:function(){this.$tabs=this.$el.find(".fl-builder--tabs [data-tab]"),this.$tabs.on("mouseup",this.onTabItemMouseUp.bind(this)),this.$tabs.on("click",this.onTabItemClick.bind(this)),this.$search=this.$el.find(".fl-builder-panel-search"),this.$searchBtn=this.$search.find(".fl-builder-toggle-panel-search"),this.$searchInput=this.$search.find('input[name="search-term"]'),this.$searchBtn.on("click",this.onSearchButtonClicked.bind(this)),this.$search.find(".fl-builder-dismiss-panel-search").on("click",this.onDismissButtonClicked.bind(this)),this.$searchInput.on("keyup",this.onSearchTermChanged.bind(this)),this.$searchPanel=this.$el.find(".fl-builder--search-results-panel"),i.addHook("showContentPanel",this.show.bind(this)),i.addHook("showModules",this.show.bind(this,"modules")),i.addHook("showRows",this.show.bind(this,"rows")),i.addHook("showTemplates",this.show.bind(this,"templates")),i.addHook("showSaved",this.show.bind(this,"saved")),i.addHook("showSearch",this.goToSearch.bind(this));var e=this.hide.bind(this);i.addHook("hideContentPanel",e),i.addHook("didShowLightbox",e),i.addHook("didShowPublishActions",e),i.addHook("didBeginSearch",e),i.addHook("didInitDrag",e),i.addHook("didOpenMainMenu",e),i.addHook("didApplyTemplate",e);var t=this.toggleShowHide.bind(this);i.addHook("toggleContentPanel",t),i.addHook("didStopDrag",this.hideSearchControls.bind(this))},alignPanelArrow:function(){var i,t,l=this.$el,n=null,s=this.$el.find(".fl-builder--panel-arrow"),o=e(".fl-builder-content-panel-button"),r=this.$el.css("animation-duration");if(0!=o.length){this.$el.css("animation-duration","0s"),this.show(),n=l[0].getBoundingClientRect(),i=s[0].getBoundingClientRect(),this.hide(),this.$el.css("animation-duration",r);var a=o[0].getBoundingClientRect(),d=a.x+a.width/2;t=d<n.x?20:d-n.x-i.width/2,s.css({right:"auto",left:t+"px"})}},show:function(t){"module"===FLBuilderConfig.userTemplateType||FLBuilderConfig.simpleUi||(i.triggerHook("willShowContentPanel"),"undefined"!=typeof t&&this.showTab(t),this.isShowing||i._triggerSettingsSave(!1,!0)&&(e("body").addClass("fl-builder-content-panel-is-showing"),this.isShowing=!0,e(this).trigger("onShow"),i.triggerHook("didShowContentPanel")))},hide:function(){this.isShowing&&(this.$el.hasClass("fl-builder-ui-pinned")||(e("body").removeClass("fl-builder-content-panel-is-showing"),this.isShowing=!1,e(this).trigger("onHide"),i.triggerHook("didHideContentPanel")))},toggleShowHide:function(){this.isShowing?this.hide():this.show()},showTab:function(i){var t=this.tabs[i];_.isObject(t)&&(_.isObject(this.activeTab)&&(this.activeTab.hide(),this.$tabs.filter(".is-showing").removeClass("is-showing")),this.hideSearchControls(),t.show(),this.$tabs.filter('[data-tab="'+t.handle+'"]').addClass("is-showing"),this.activeTab=t,e(this).trigger("onShowTab"))},goToSearch:function(){this.show("modules"),this.$el.find(".fl-builder-toggle-panel-search").trigger("click")},onTabItemMouseUp:function(i){e(i.currentTarget).blur()},onTabItemClick:function(i){var t=e(i.target),l=t.data("tab");this.showTab(l)},onSearchButtonClicked:function(){this.showSearchControls()},onDismissButtonClicked:function(){this.hideSearchControls(),this.$searchBtn.focus()},showSearchControls:function(){this.$search.addClass("is-showing-input"),this.$search.find('input[name="search-term"]').focus(),e(".fl-builder--selector-display-label").attr("tabindex",-1),this.$searchBtn.attr("tabindex",-1),e(this).trigger("didShowSearchControls")},hideSearchControls:function(){this.$search.removeClass("is-showing-input"),this.clearSearchInput(),this.hideSearchResults(),e(".fl-builder--selector-display-label").attr("tabindex",null),this.$searchBtn.attr("tabindex",null)},onSearchTermChanged:function(e){var t=this.$searchInput.val();if(""!==t){var l=i.Search.byTerm(t);""!=l.term?this.showSearchResults(l):this.hideSearchResults()}else this.hideSearchResults()},clearSearchInput:function(){this.$searchInput.val(""),this.hideSearchResults()},showSearchResults:function(t){if(t.total>0){var l=e(this.renderSearchResults(t));this.$searchPanel.html(l),i._initSortables()}else{var l=e(this.renderNoResults(t));this.$searchPanel.html(l)}e("body").addClass("fl-builder-search-results-panel-is-showing")},hideSearchResults:function(){e("body").removeClass("fl-builder-search-results-panel-is-showing")}})}(jQuery,FLBuilder),function(e){FLBuilderSettingsForms={config:null,settings:null,legacyXhr:null,init:function(){this.bind()},bind:function(){FLBuilder.addHook("didDeleteRow",this.closeOnDeleteNode),FLBuilder.addHook("didDeleteColumn",this.closeOnDeleteNode),FLBuilder.addHook("didDeleteModule",this.closeOnDeleteNode)},render:function(i,t){var l=FLBuilderSettingsConfig.forms,n=FLBuilderSettingsConfig.modules,s={type:"general",id:null,nodeId:null,className:"",attrs:"",title:"",badges:[],tabs:[],buttons:[],settings:{},legacy:null,rules:null,preview:null,helper:null,messages:null};if(i.nodeId&&!i.settings)return void this.loadNodeSettings(i,t);if(i=e.extend(s,i),t=void 0===t?function(){}:t,i.id){if("general"===i.type&&void 0!==l[i.id])i=e.extend(!0,i,l[i.id]);else{if("module"!==i.type||void 0===n[i.id])return;i=e.extend(!0,i,n[i.id])}this.config=i,this.renderLightbox(i)&&(i.legacy||!this.renderLegacySettings(i,t)?this.renderComplete(i,t):this.showLightboxLoader())}},loadNodeSettings:function(e,i){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"get_node_settings",node_id:e.nodeId},function(t){e.settings=JSON.parse(t),FLBuilderSettingsConfig.nodes[e.nodeId]=e.settings,FLBuilderSettingsForms.render(e,i),FLBuilder.hideAjaxLoader()})},renderLightbox:function(i){var t=wp.template("fl-builder-settings"),l=FLBuilder._lightbox._node.find("form.fl-builder-settings");e(".fl-lightbox-wrap[data-parent]");if(i.nodeId&&i.nodeId===l.data("node")&&!i.lightbox)return FLBuilder._focusFirstSettingsControl(),!1;if(i.lightbox)i.lightbox.setContent(t(i));else{if(!FLBuilder._triggerSettingsSave(!0,!0))return!1;FLBuilder.preview&&FLBuilder.preview.cancel(),FLBuilder._closePanel(),FLBuilder._showLightbox(t(i))}return!0},renderComplete:function(i,t){var l=e(".fl-builder-settings:visible");setTimeout(function(){i.legacy&&this.renderLegacySettingsComplete(i.legacy),t(),FLBuilder._initSettingsForms(),i.rules&&FLBuilder._initSettingsValidation(i.rules,i.messages),i.preview&&(FLBuilder.preview=new FLBuilderPreview(i.preview)),i.helper&&i.helper.init(),l.closest(".fl-lightbox-wrap[data-parent]").length||(this.settings=FLBuilder._getSettingsForChangedCheck(this.config.nodeId,l))}.bind(this),1)},renderFields:function(i,t){var l=wp.template("fl-builder-settings-row"),n="",s=null,o=null,r=null,a=!1,d=null,u=["align","border","dimension","unit","photo","select","typography"],t=t?t:this.config.settings,c=FLBuilderConfig.global;for(o in i)s=i[o],a=!!s.multiple,supportsResponsive=e.inArray(s.type,u)>-1,r=_.isUndefined(t[o])?"":t[o],s.type&&(_.isUndefined(t[o])&&s["default"]&&(r=s["default"]),d=s.responsive&&c.responsive_enabled&&!a&&supportsResponsive?s.responsive:null,n+=l({field:s,name:o,rootName:o,value:r,preview:JSON.stringify(s.preview?s.preview:{type:"refresh"}),responsive:d,rowClass:s.row_class?" "+s.row_class:"",isMultiple:a,supportsMultiple:"editor"!==s.type&&"service"!==s.type,settings:t,globalSettings:c,template:e("#tmpl-fl-builder-field-"+s.type)}));return n},renderField:function(e){var i=wp.template("fl-builder-field");return i(e)},renderSectionTemplate:function(e,i){var t=wp.template(e.template.id);return t({section:e,settings:i})},renderTabTemplate:function(e,i){var t=wp.template(e.template.id);return t({tab:e,settings:i})},renderLegacySettings:function(i,t){var l=e(".fl-builder-settings:visible"),n=null,s=!1,o={tabs:[],sections:[],fields:[],settings:null,node_id:null};return l.find(".fl-legacy-field").each(function(){n=e(this),o.fields.push(n.attr("data-field")),FLBuilderSettingsForms.showFieldLoader(n),s=!0}),l.find(".fl-legacy-settings-section").each(function(){n=e(this),o.sections.push({tab:n.attr("data-tab"),section:n.attr("data-section")}),s=!0}),l.find(".fl-legacy-settings-tab").each(function(){n=e(this),o.tabs.push(n.attr("data-tab")),s=!0}),l.attr("data-node")?o.node_id=l.attr("data-node"):o.settings=FLBuilder._getOriginalSettings(l,!0),this.legacyXhr&&(this.legacyXhr.abort(),this.legacyXhr=null),this.legacyXhr=FLBuilder.ajax(e.extend(this.getLegacyVars(),{action:"render_legacy_settings",data:o,form:l.attr("data-form-id"),group:l.attr("data-form-group"),lightbox:l.closest(".fl-builder-lightbox").attr("data-instance-id")}),function(e){FLBuilderSettingsForms.renderLegacySettingsComplete(e),s&&FLBuilderSettingsForms.renderComplete(i,t),FLBuilderSettingsForms.hideLightboxLoader()}),s},renderLegacySettingsComplete:function(i){var t="object"==typeof i?i:JSON.parse(i),l=null,n=null,s="",o=null,r=null,a=null;if(t.lightbox?(l=e(".fl-builder-lightbox[data-instance-id="+t.lightbox+"]"),n=l.length?l.find(".fl-builder-settings"):null):(n=e(".fl-builder-settings:visible"),l=n.closest(".fl-builder-lightbox")),n&&n.length){for(s in t.fields)o=e("#fl-field-"+s).attr("id",""),o.after(t.fields[s]).remove();for(s in t.extras)o=e("#fl-field-"+s).find(".fl-field-control-wrapper"),t.extras[s].multiple?o.each(function(i,l){i in t.extras[s].before&&""!=t.extras[s].before[i]&&e(this).prepend('<div class="fl-form-field-before">'+t.extras[s].before[i]+"</div>"),i in t.extras[s].after&&""!=t.extras[s].after[i]&&e(this).append('<div class="fl-form-field-after">'+t.extras[s].after[i]+"</div>")}):(""!=t.extras[s].before&&o.prepend('<div class="fl-form-field-before">'+t.extras[s].before+"</div>"),""!=t.extras[s].after&&o.append('<div class="fl-form-field-after">'+t.extras[s].after+"</div>"));for(a in t.sections)for(s in t.sections[a])r=e("#fl-builder-settings-section-"+s),r.html(t.sections[a][s]);for(s in t.tabs)a=e("#fl-builder-settings-tab-"+s),a.html(t.tabs[s]);l.data("parent")||(this.settings=FLBuilder._getSettingsForChangedCheck(this.config.nodeId,n),FLBuilder.preview&&(this.settings=e.extend(this.settings,FLBuilder.preview._savedSettings),FLBuilder.preview._savedSettings=this.settings)),_.isUndefined(window.FLThemeBuilderFieldConnections)||FLThemeBuilderFieldConnections._initSettingsForms(),this.legacyXhr=null}},getLegacyVars:function(){var i=e(".fl-builder-settings:visible"),t=i.closest(".fl-builder-lightbox"),l=t.attr("data-parent"),n=null,s=null,o={};return l&&(l=e(".fl-builder-lightbox[data-instance-id="+l+"]"),i=l.find("form.fl-builder-settings"),n=FLBuilder._getSettings(i),s=i.attr("data-node"),s&&(o.node_id=s,o.node_settings=n)),o},settingsHaveChanged:function(){var e=FLBuilder._lightbox._node.find("form.fl-builder-settings"),i=FLBuilder._getSettings(e),t=!!this.settings&&JSON.stringify(this.settings)!=JSON.stringify(i);return t},closeOnDeleteNode:function(i,t){var l=e(".fl-builder-settings[data-node]"),n=FLBuilder._contentClass+" .fl-node-"+l.data("node");l.length&&!e(n).length&&FLLightbox.closeAll()},showLightboxLoader:function(){e(".fl-builder-settings:visible").append('<div class="fl-builder-loading"></div>')},hideLightboxLoader:function(i){e(".fl-builder-settings:visible .fl-builder-loading").remove()},showFieldLoader:function(e){var i=e.closest(".fl-field-control").find(".fl-field-control-wrapper");i.hide().after('<div class="fl-field-loader">'+FLBuilderStrings.fieldLoading+"</div>")},hideFieldLoader:function(e){var i=e.closest(".fl-field"),t=e.closest(".fl-field-control").find(".fl-field-control-wrapper");t.show(),i.find(".fl-field-loader").remove()}},FLBuilderSettingsConfig="undefined"==typeof FLBuilderSettingsConfig?{}:FLBuilderSettingsConfig,e.extend(FLBuilderSettingsConfig,{init:function(){FLBuilder.addHook("didSaveNodeSettings",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didSaveNodeSettingsComplete",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didSaveGlobalSettingsComplete",this.updateOnSaveGlobalSettings.bind(this)),FLBuilder.addHook("didSaveLayoutSettingsComplete",this.updateOnSaveLayoutSettings.bind(this)),FLBuilder.addHook("didAddRow",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didAddColumnGroup",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didAddColumn",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didAddModule",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didDeleteRow",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didDeleteColumn",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didDeleteModule",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didDuplicateRow",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didDuplicateColumn",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didDuplicateModule",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didResizeRow",this.updateOnRowResize.bind(this)),FLBuilder.addHook("didResizeColumn",this.updateOnColumnResize.bind(this)),FLBuilder.addHook("didResetRowWidth",this.updateOnResetRowWidth.bind(this)),FLBuilder.addHook("didResetColumnWidths",this.updateOnResetColumnWidths.bind(this)),FLBuilder.addHook("didApplyTemplateComplete",this.updateOnApplyTemplate.bind(this)),FLBuilder.addHook("didApplyRowTemplateComplete",this.updateOnApplyTemplate.bind(this)),FLBuilder.addHook("didApplyColTemplateComplete",this.updateOnApplyTemplate.bind(this)),FLBuilder.addHook("didSaveGlobalNodeTemplate",this.updateOnApplyTemplate.bind(this)),FLBuilder.addHook("didRestoreRevisionComplete",this.updateOnApplyTemplate.bind(this))},updateOnSaveGlobalSettings:function(e,i){this.settings.global=i},updateOnSaveLayoutSettings:function(e,i){this.settings.layout=i},updateOnNodeEvent:function(){var e=arguments[0];e.namespace.indexOf("didAdd")>-1?this.addNode(arguments[1]):e.namespace.indexOf("didSaveNodeSettings")>-1?this.updateNode(arguments[1].nodeId,arguments[1].settings):e.namespace.indexOf("didDelete")>-1?this.deleteNodes():e.namespace.indexOf("didDuplicate")>-1&&this.duplicateNode(arguments[1].oldNodeId,arguments[1].newNodeId)},updateOnRowResize:function(e,i){this.nodes[i.rowId].max_content_width=i.rowWidth},updateOnResetRowWidth:function(e,i){this.nodes[i].max_content_width=""},updateOnColumnResize:function(e,i){this.nodes[i.colId].size=i.colWidth,this.nodes[i.siblingId].size=i.siblingWidth},updateOnResetColumnWidths:function(i,t){var l=this;t.cols.each(function(){var i=e(this),t=i.attr("data-node");l.nodes[t]&&(l.nodes[t].size=parseFloat(i[0].style.width))})},updateOnApplyTemplate:function(e,i){this.nodes=i.nodes,this.attachments=i.attachments},addNode:function(i,t){var l=e(".fl-node-"+i),n=l.hasClass("fl-row"),s=l.hasClass("fl-col"),o=l.hasClass("fl-col-group"),r=l.hasClass("fl-module"),a=this;this.nodes[i]||(t||(n?t=e.extend({},this.defaults.row):s?t=e.extend({},this.defaults.column):r&&(t=e.extend({},this.defaults.modules[l.attr("data-type")])),n||o?l.find(".fl-col").each(function(){var i=e(this),t=e.extend({},a.defaults.column);t.size=parseFloat(i[0].style.width),a.addNode(i.attr("data-node"),t)}):r&&(a.addNode(l.closest(".fl-row").attr("data-node")),a.addNode(l.closest(".fl-col").attr("data-node")),a.updateOnResetColumnWidths(null,{cols:l.closest(".fl-col-group").find("> .fl-col")}))),t&&(this.nodes[i]=t))},updateNode:function(i,t){var l=e(".fl-node-"+i),n=this;l.hasClass("fl-col")&&l.closest(".fl-col-group").find("> .fl-col").each(function(){var i=e(this),l=i.attr("data-node");n.nodes[l].size=parseFloat(i[0].style.width),n.nodes[l].equal_height=t.equal_height,n.nodes[l].content_alignment=t.content_alignment,n.nodes[l].responsive_order=t.responsive_order}),this.nodes[i]=t},duplicateNode:function(i,t){var l=e(".fl-node-"+t),n=l.find("[data-node]"),s=e(".fl-node-"+i),o=s.find("[data-node]"),r=this;this.nodes[t]=this.nodes[i],n.each(function(l){i=o.eq(l).attr("data-node"),t=e(this).attr("data-node"),r.nodes[i]&&(r.nodes[t]=r.nodes[i])})},deleteNodes:function(){var i="",t=e(FLBuilder._contentClass).html();for(i in this.nodes)t.indexOf(i)===-1&&(this.nodes[i]=null,delete this.nodes[i])}}),e(function(){FLBuilderSettingsConfig.init(),FLBuilderSettingsForms.init()})}(jQuery),function(e){var i={minWidth:320,maxWidth:600,minHeight:400,init:function(){this.initPanel(),this.pinOrUnpin(),this.bind()},bind:function(){var i=e(window),t=e("body");i.on("resize",_.throttle(this.windowResize.bind(this),250)),t.delegate(".fl-builder-ui-pinned-collapse","click",this.collapse),t.delegate(".fl-builder--content-library-panel .fl-builder--tabs","click",this.closeLightboxOnPanelClick),FLBuilder.addHook("didShowLightbox",this.pinLightboxOnOpen.bind(this)),FLBuilder.addHook("didHideAllLightboxes",this.pinnedLightboxClosed.bind(this)),FLBuilder.addHook("endEditingSession",this.hide.bind(this)),FLBuilder.addHook("didHideEditingUI",this.hide.bind(this)),FLBuilder.addHook("publishButtonClicked",this.hide.bind(this)),FLBuilder.addHook("restartEditingSession",this.show.bind(this)),FLBuilder.addHook("didShowEditingUI",this.show.bind(this)),FLBuilder.addHook("didShowLightbox",this.uncollapse.bind(this)),FLBuilder.addHook("willShowContentPanel",this.uncollapse.bind(this)),FLBuilder.addHook("willShowContentPanel",this.closeLightboxOnPanelClick.bind(this))},isPinned:function(){return e(".fl-builder--content-library-panel").hasClass("fl-builder-ui-pinned")},pin:function(e,i){this.pinPanel(e),this.pinLightboxes(),i&&this.savePosition(),FLBuilder._resizeLayout(),FLBuilder.triggerHook("didPinContentPanel")},unpin:function(e){this.unpinLightboxes(),this.unpinPanel(),e&&this.savePosition(),FLBuilder._resizeLayout(),FLBuilder.triggerHook("didUnpinContentPanel")},pinOrUnpin:function(){var i=e(".fl-builder--content-library-panel"),t=this.isPinned();i.hasClass("fl-builder-ui-pinned-hidden")||(window.innerWidth<=this.maxWidth?(t&&this.unpin(!1),this.disableDragAndResize()):(t||this.restorePosition(),this.enableDragAndResize()))},show:function(){var i=e(".fl-builder--content-library-panel");i.hasClass("fl-builder-ui-pinned-hidden")&&(i.removeClass("fl-builder-ui-pinned-hidden"),i.show(),this.restorePosition())},hide:function(){var i=e("body"),t=e(".fl-builder--content-library-panel");this.isPinned()&&(this.uncollapse(),t.addClass("fl-builder-ui-pinned-hidden"),t.hide(),i.css("margin",""),FLBuilder._resizeLayout())},collapse:function(){var i=e(this).find("i:visible"),t=e("body"),l=i.data("toggle"),n=i.data("position"),s=e(".fl-builder--content-library-panel"),o=s.outerWidth();"hide"===l?(s.css(n,"-"+o+"px"),t.css("margin-"+n,""),t.addClass("fl-builder-ui-pinned-is-collapsed")):(s.css(n,"0px"),t.css("margin-"+n,o+"px"),t.removeClass("fl-builder-ui-pinned-is-collapsed"))},uncollapse:function(){this.isCollapsed()&&e(".fl-builder-ui-pinned-collapse:visible").trigger("click")},isCollapsed:function(){return e("body").hasClass("fl-builder-ui-pinned-is-collapsed")},initPanel:function(){var i=e(".fl-builder--content-library-panel");i.draggable({cursor:"move",handle:".fl-builder--tabs",cancel:".fl-builder--tabs button",scroll:!1,drag:this.drag.bind(this),stop:this.dragStop.bind(this),start:this.dragStart.bind(this)}).resizable({handles:"e, w",minHeight:this.minHeight,minWidth:this.minWidth,maxWidth:this.maxWidth,start:this.resizeStart.bind(this),stop:this.resizeStop.bind(this)}),i.addClass("fl-builder-ui-pinned-container"),i.find(".ui-resizable-e, .ui-resizable-w").hide();
|
10 |
-
},pinPanel:function(i){var t=e(".fl-builder--content-library-panel"),l=t.outerWidth(),n=e("body"),s=e(".fl-responsive-preview, .fl-responsive-preview-mask"),o=e(FLBuilder._contentClass).parentsUntil("body").last();n.addClass("fl-builder-ui-is-pinned fl-builder-ui-is-pinned-"+i),n.addClass("fl-builder-content-panel-is-showing"),n.css("margin-"+i,l+"px"),s.css("margin-"+i,l+"px"),o.addClass("fl-builder-ui-pinned-content-transform"),t.addClass("fl-builder-ui-pinned fl-builder-ui-pinned-"+i),t.find(".ui-resizable-"+("left"===i?"e":"w")).show(),t.on("resize",_.throttle(this.resize.bind(this),250)),t.attr("style",""),FLBuilder.ContentPanel.isShowing=!0},unpinPanel:function(){var i=e(".fl-builder--content-library-panel"),t=i.find(".fl-builder--panel-content .is-showing").data("tab"),l=e("body"),n=e(".fl-responsive-preview, .fl-responsive-preview-mask"),s=e(FLBuilder._contentClass).parentsUntil("body").last();l.css("margin-left",""),l.css("margin-right",""),l.removeClass("fl-builder-ui-is-pinned"),l.removeClass("fl-builder-ui-is-pinned-left"),l.removeClass("fl-builder-ui-is-pinned-right"),n.css("margin-left",""),n.css("margin-right",""),s.removeClass("fl-lightbox-content-transform"),i.removeClass("fl-builder-ui-pinned"),i.removeClass("fl-builder-ui-pinned-left"),i.removeClass("fl-builder-ui-pinned-right"),i.find(".ui-resizable-handle").hide(),i.off("resize"),i.attr("style",""),i.find(".fl-builder--tabs [data-tab="+t+"]").addClass("is-showing")},pinLightboxes:function(){var i=this;e(".fl-lightbox-resizable").each(function(){i.pinLightbox(e(this))}),FLBuilder._reinitEditorFields()},pinLightbox:function(i){var t=e(".fl-builder--content-library-panel"),l=i.closest(".fl-lightbox-wrap");l.closest(".fl-builder-ui-pinned").length||(t.append(l),i.attr("style",""),i.draggable("disable"),i.resizable("disable")),i.is(":visible")&&t.find(".fl-builder--tabs .is-showing").removeClass("is-showing")},pinLightboxOnOpen:function(e,i){var t=i._node.find(".fl-lightbox-resizable");t.length&&(t.hasClass("fl-builder-ui-pinning-initialized")||(t.draggable("option","start",this.dragStart.bind(this)),t.draggable("option","drag",this.drag.bind(this)),t.draggable("option","stop",this.dragStop.bind(this)),t.addClass("fl-builder-ui-pinning-initialized")),this.isPinned()&&this.pinLightbox(t),FLBuilder.addHook("responsive-editing-switched",this.resize))},pinnedLightboxClosed:function(){var i=e(".fl-builder--content-library-panel");tab=null,this.isPinned()&&(tab=i.find(".fl-builder--panel-content .is-showing").data("tab"),i.find(".fl-builder--tabs [data-tab="+tab+"]").addClass("is-showing")),e(".fl-lightbox").removeClass("fl-lightbox-prevent-animation")},unpinLightboxes:function(){var i=e("body"),t=e(".fl-builder--content-library-panel");t.find(".fl-lightbox-wrap").each(function(){var l=e(this),n=l.find(".fl-lightbox"),s=0,o=0,r=0;n.draggable("enable"),n.resizable("enable"),n.find(".ui-resizable-handle").show(),i.append(l),n.is(":visible")?(s=parseInt(t.css("top"))-parseInt(l.css("top"))-parseInt(l.css("padding-top")),o=parseInt(t.css("left"))-parseInt(l.css("padding-left")),r=parseInt(t.css("right"))-parseInt(l.css("padding-right")),n.css("top",(s<0?0:s)+"px"),n.css(FLBuilderConfig.isRtl?"right":"left",(FLBuilderConfig.isRtl?r:o)+"px"),n.addClass("fl-lightbox-prevent-animation"),i.removeClass("fl-builder-content-panel-is-showing"),FLBuilder.ContentPanel.isShowing=!1):n.css({top:"25px",left:"25px"})}),FLBuilder._reinitEditorFields()},closeLightboxOnPanelClick:function(){FLBuilder._triggerSettingsSave(!1,!0)},windowResize:function(){this.pinOrUnpin()},resizeStart:function(){e("body").addClass("fl-builder-resizable-is-resizing"),FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays()},resize:function(){var i=e("body"),t=e(".fl-responsive-preview, .fl-responsive-preview-mask"),l=e(".fl-builder--content-library-panel"),n=l.outerWidth();l.hasClass("fl-builder-ui-pinned-left")?(i.css("margin-left",n+"px"),t.css("margin-left",n+"px")):l.hasClass("fl-builder-ui-pinned-right")&&(i.css("margin-right",n+"px"),t.css("margin-right",n+"px"))},resizeStop:function(){e("body").removeClass("fl-builder-resizable-is-resizing"),FLBuilder._bindOverlayEvents(),FLBuilder._resizeLayout(),this.savePosition()},dragStart:function(i,t){var l=e("body"),n=(e(i.target),e(".fl-builder-bar-actions"));e(".fl-lightbox-resizable:visible").length||n.addClass("fl-builder-content-panel-pin-zone"),l.addClass("fl-builder-draggable-is-dragging"),l.append('<div class="fl-builder-ui-pin-zone fl-builder-ui-pin-zone-left"></div>'),l.append('<div class="fl-builder-ui-pin-zone fl-builder-ui-pin-zone-right"></div>'),FLBuilder._destroyOverlayEvents()},drag:function(i,t){var l=e("body"),n=e(".fl-responsive-preview"),s=e(window),o=n.length?n.width():s.width(),r=s.scrollTop(),a=e(".fl-builder--content-library-panel"),d=a.offset().top,u=e(".fl-builder-bar-actions"),c=e(i.target);c.hasClass("fl-builder--content-library-panel")&&(i.clientX<o-75&&d-r<46?u.addClass("fl-builder-content-panel-pin-zone-hover"):u.removeClass("fl-builder-content-panel-pin-zone-hover")),c.hasClass("fl-builder-ui-pinned")?this.unpinPanel():i.clientX<75?l.addClass("fl-builder-ui-show-pin-zone fl-builder-ui-show-pin-zone-left"):i.clientX>o-75?l.addClass("fl-builder-ui-show-pin-zone fl-builder-ui-show-pin-zone-right"):(l.removeClass("fl-builder-ui-show-pin-zone"),l.removeClass("fl-builder-ui-show-pin-zone-left"),l.removeClass("fl-builder-ui-show-pin-zone-right"))},dragStop:function(i,t){var l=(e(window),e("body")),n=e(".fl-builder-bar-actions"),s=e(".fl-builder-ui-pin-zone"),o=e(".fl-builder--content-library-panel"),r=e(".fl-lightbox-resizable:visible");e(i.target);l.removeClass("fl-builder-draggable-is-dragging"),n.removeClass("fl-builder-content-panel-pin-zone"),n.removeClass("fl-builder-content-panel-pin-zone-hover"),s.remove(),r.length&&parseInt(r.css("top"))<0&&r.css("top","0"),l.hasClass("fl-builder-ui-show-pin-zone")?(l.hasClass("fl-builder-ui-show-pin-zone-left")?this.pin("left",!0):this.pin("right",!0),l.removeClass("fl-builder-ui-show-pin-zone"),l.removeClass("fl-builder-ui-show-pin-zone-left"),l.removeClass("fl-builder-ui-show-pin-zone-right")):o.find(".fl-lightbox").length?(this.unpin(!0),("module"===FLBuilderConfig.userTemplateType||FLBuilderConfig.simpleUi)&&o.hide()):(o.attr("style",""),this.savePosition()),FLBuilder._bindOverlayEvents()},disableDragAndResize:function(){var i=e(".fl-builder--content-library-panel"),t=e(".fl-lightbox-resizable");i.draggable("disable"),i.resizable("disable"),t.draggable("disable"),t.resizable("disable")},enableDragAndResize:function(){var i=e(".fl-builder--content-library-panel"),t=e(".fl-lightbox-resizable:not(.fl-lightbox-width-full)");i.draggable("enable"),i.resizable("enable"),this.isPinned()||(t.draggable("enable"),t.resizable("enable"))},savePosition:function(){var i=e(".fl-builder--content-library-panel"),t=e(".fl-lightbox-resizable:visible"),l={pinned:{width:i.outerWidth(),position:null}};i.hasClass("fl-builder-ui-pinned-left")?l.pinned.position="left":i.hasClass("fl-builder-ui-pinned-right")?l.pinned.position="right":t.length&&(l.lightbox={width:t.width(),height:t.height(),top:parseInt(t.css("top"))<0?"0px":t.css("top"),left:t.css("left")}),FLBuilderConfig.userSettings.pinned=l.pinned,l.lightbox&&(FLBuilderConfig.userSettings.lightbox=l.lightbox),FLBuilder.ajax({action:"save_pinned_ui_position",data:l})},restorePosition:function(){var i=e(".fl-builder--content-library-panel"),t=FLBuilderConfig.userSettings.pinned;t&&t.position&&(i.css("width",t.width+"px"),this.pin(t.position,!1),i.css("width",t.width+"px"))}};e(function(){i.init()})}(jQuery),function(e){var i={init:function(){this.setupMainMenuData(),e(".fl-builder--revision-actions select").on("change",this.selectChanged),e(".fl-cancel-revision-preview").on("click",this.exitPreview.bind(this)),e(".fl-apply-revision-preview").on("click",this.applyClicked.bind(this)),FLBuilder.addHook("revisionItemClicked",this.itemClicked.bind(this)),FLBuilder.addHook("didPublishLayout",this.refreshItems.bind(this))},setupMainMenuData:function(){var i=FLBuilderConfig.revisions.posts,t=FLBuilderConfig.revisions.authors,l=wp.template("fl-revision-list-item"),n=e(".fl-builder--revision-actions select"),s="",o="",r=0;if(FLBuilderConfig.mainMenu.revisions.items=[],n.html(""),0===i.length)FLBuilderConfig.mainMenu.revisions.items.push({eventName:"noRevisionsMessage",type:"event",label:wp.template("fl-no-revisions-message")()});else for(;r<i.length;r++)s=FLBuilderStrings.revisionDate.replace("%s",i[r].date.diff),s+=" ("+i[r].date.published+")",o=FLBuilderStrings.revisionAuthor.replace("%s",t[i[r].author].name),FLBuilderConfig.mainMenu.revisions.items.push({eventName:"revisionItemClicked",type:"event",label:l({id:i[r].id,date:s,author:o,avatar:t[i[r].author].avatar})}),n.append('<option value="'+i[r].id+'">'+s+"</option>");FLBuilder.triggerHook("renderRevisionsPanel")},refreshItems:function(){FLBuilder.ajax({action:"refresh_revision_items"},this.refreshItemsComplete.bind(this))},refreshItemsComplete:function(e){FLBuilderConfig.revisions=JSON.parse(e),this.setupMainMenuData()},itemClicked:function(i,t){var l=e(t).find(".fl-revision-list-item").attr("data-revision-id");FLBuilder._triggerSettingsSave(!1,!0)&&(e(".fl-builder--revision-actions select").val(l),this.preview(l))},selectChanged:function(t){i.preview(e(this).val())},applyClicked:function(t){var l=e(".fl-builder--revision-actions select").val();i.restore(l)},preview:function(i){e(".fl-builder--revision-actions").css("display","flex"),FLBuilder.triggerHook("didEnterRevisionPreview"),FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"render_revision_preview",revision_id:i},this.previewRenderComplete.bind(this))},previewRenderComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays()})},exitPreview:function(){e(".fl-builder--revision-actions").hide(),FLBuilder.triggerHook("didExitRevisionPreview"),FLBuilder._bindOverlayEvents(),FLBuilder._updateLayout()},restore:function(t){e(".fl-builder--revision-actions").hide(),FLBuilder.triggerHook("didExitRevisionPreview"),FLBuilder.showAjaxLoader(),FLBuilder._bindOverlayEvents(),FLBuilder.ajax({action:"restore_revision",revision_id:t},i.restoreComplete)},restoreComplete:function(e){var i=JSON.parse(e);FLBuilder._renderLayout(i.layout),FLBuilder.triggerHook("didRestoreRevisionComplete",i.config)}};e(function(){i.init()})}(jQuery),function(e){var i={query:function(e){var i={},t=null,l={library:{}},n=null;if(e=this.normalizeQuery(e),_.isNull(e.kind))i=FLBuilderConfig.contentItems;else for(var s in e.kind)t=e.kind[s],i[t]=FLBuilderConfig.contentItems[t];return n=this.findMatches(e,i),l.library=this.formatResults(n,e),l},normalizeQuery:function(e){var i={kind:null,type:null,category:null,group:null,enabled:!0,global:null,searchTerm:null,categorized:!1};return e=_.extend(i,e),_.isString(e.kind)&&(e.kind=[e.kind]),e},findMatches:function(e,i){var t={},l=null,n=null,s=null,o=null,r=null,a=null;for(l in i){n=i[l],t[l]={items:[]};for(a in n)if(s=n[a],_.isUndefined(e.category)||_.isNull(e.category)||this.matchesCategory(s.category,e.category)){switch(l){case"template":if(!(_.isUndefined(e.content)||_.isNull(e.content)||(o=_.includes(e.content,s.content),r=e.content===s.content,o||r)))continue;if(!_.isUndefined(e.type)&&!_.isNull(e.type)&&e.type!==s.type)continue;if(!_.isNull(e.group)){var d=e.group,u=s.group;if(_.isString(d)&&(d=[d]),_.isString(u)&&(u=[u]),_.isEmpty(d)||_.isEmpty(u))continue;var c=!1;for(a in d){var f=d[a];_.includes(u,f)&&(c=!0)}if(!c)continue}break;case"module":if(!_.isNull(e.group)){if(e.group===!1&&s.group.length>0)continue;if(e.group!==!1&&!_.includes(s.group,e.group))continue}}(_.isUndefined(e.searchTerm)||_.isNull(e.searchTerm)||this.matchesSearchTerm(s,e.searchTerm))&&t[l].items.push(s)}}return t},matchesCategory:function(e,i){var t,l,n,s,o,r;if(e===i)return!0;_.isString(i)&&(i=[i]);for(l in i){if(t=i[l],_.isString(e)&&e===t)return!0;if(_.isArray(e))for(n in e)if(s=e[n],s===t)return!0;if(_.isObject(e))for(o in e)if(r=e[o],r===t||o===t)return!0}return!1},matchesSearchTerm:function(e,i){var t,l,n=i.toLowerCase();return!(_.isUndefined(e.slug)||!e.slug.toLowerCase().includes(n))||(!(_.isUndefined(e.name)||!e.name.toLowerCase().includes(n))||(!(!_.isString(e.category)||!e.category.toLowerCase().includes(n))||(!(_.isUndefined(e.description)||!e.description.toLowerCase().includes(n))||(!(_.isUndefined(e.id_base)||!e.id_base.includes(i))||(!(!e.isWidget||(t="widget",!t.includes(n)))||!(_.isUndefined(e.editor_export)||(l="module",!l.includes(n))))))))},formatResults:function(e,i){if(i.categorized)for(type in e){var t=e[type].items;e[type].categorized=this.groupBy(t,"category")}return e},groupBy:function(e,i){var t,l,n={};return _.forEach(e,function(e,s,o){t=e[i],_.isNull(t)||_.isUndefined(t)||_.isString(t)&&""===e[t]||(_.isString(t)&&(n[t]=n[t]||[],n[t].push(e)),_.isArray(t)&&(l=t,_.forEach(l,function(i,t,l){n[i]=n[i]||[],n[i].push(e)})),_.isObject(t)&&(l=t,_.forEach(l,function(i,t,l){n[i]=n[i]||[],n[i].push(e)})))}),n},search:function(e){var i={searchTerm:e},t=this.query(i),l={total:0,term:e,sections:{}};if(!_.isUndefined(t.library.module.items)){var n={};for(var s in t.library.module.items){var o=t.library.module.items[s],r=o.group[0],a=o.category;o.name;_.isUndefined(n[r])&&(n[r]={}),_.isUndefined(n[r][a])&&(n[r][a]=[]),n[r][a].push(o)}l.grouped=n}for(var s in t.library){var d=t.library[s];!_.isUndefined(d.items)&&d.items.length>0&&(l.sections[s]={name:FLBuilderStrings.typeLabels[s],handle:s,type:"",items:d.items},l.total+=d.items.length)}return l}};FLBuilder.Search={byQuery:function(e){return i.query(e)},byTerm:function(e){var t=i.search(e);return t}}}(jQuery),function(e,i){var t={layoutNeedsPublish:!1,defaultIndicatorMessage:"",defaultTooltipMessage:"",messages:null,init:function(){this.messages=FLBuilderStrings.savedStatus,this.$savingIndicator=e(".fl-builder--saving-indicator"),i.addHook("didBeginAJAX",this.onLayoutSaving.bind(this)),i.addHook("didCompleteAJAX",this.onLayoutSaved.bind(this)),i.addHook("didPublishLayout",this.onLayoutPublished.bind(this)),i.addHook("publishAndRemain",this.onPublishAndRemain.bind(this)),i.addHook("didShowLightbox",this.setLayoutNeedsPublish.bind(this)),!FLBuilderConfig.layoutHasDraftedChanges&&FLBuilderConfig.builderEnabledd||(this.setLayoutNeedsPublish(),this.resetStatusMessage())},setLayoutNeedsPublish:function(){this.layoutNeedsPublish||(this.layoutNeedsPublish=!0,e("body").addClass("fl-builder--layout-has-drafted-changes"))},onLayoutSaving:function(e,i){this.isPublishingLayout(i.action)?this.showStatusMessage(this.messages.publishing,this.messages.publishingTooltip):this.isUpdatingLayout(i.action)&&(this.setLayoutNeedsPublish(),this.showStatusMessage(this.messages.saving,this.messages.savingTooltip))},isPublishingLayout:function(e){return"save_layout"==e},isUpdatingLayout:function(e){return!this.isPublishingLayout()&&(e.startsWith("render")?!!e.startsWith("render_new"):!e.startsWith("duplicate")&&(!e.startsWith("refresh")&&("save_ui_skin"!=e&&("save_lightbox_position"!=e&&("save_pinned_ui_position"!=e&&"fl_builder_notifications"!=e)))))},onLayoutSaved:function(e,i){if(this.isUpdatingLayout(i.fl_builder_data.action)){this.showStatusMessage(this.messages.saved,this.messages.savedTooltip);var t=this;setTimeout(function(){t.resetStatusMessage()},2e3)}},onLayoutPublished:function(){this.layoutNeedsPublish=!1,e("body").removeClass("fl-builder--layout-has-drafted-changes"),this.resetStatusMessage()},showStatusMessage:function(t,l){this.$savingIndicator.html(t),i.isUndefined(l)||(this.$savingIndicator.attr("title",l),e(".fl-builder--saving-indicator").tipTip({defaultPosition:"bottom",edgeOffset:14}))},resetStatusMessage:function(){this.layoutNeedsPublish?(this.defaultIndicatorMessage=this.messages.edited+'<i class="fas fa-question-circle"></i>',this.defaultTooltipMessage=this.messages.editedTooltip):(this.defaultIndicatorMessage="",this.defaultTooltipMessage=""),this.showStatusMessage(this.defaultIndicatorMessage,this.defaultTooltipMessage)},onPublishAndRemain:function(){if(i.MainMenu.hide(),this.layoutNeedsPublish)i._publishLayout(!1);else{this.showStatusMessage(this.messages.noChanges);var e=this;setTimeout(function(){e.resetStatusMessage()},2e3)}}};i.SaveManager={layoutNeedsPublish:function(){return t.layoutNeedsPublish},showStatusMessage:function(e,i){t.showStatusMessage(e,i)},resetStatusMessage:function(){t.resetStatusMessage()}},e(function(){t.init()})}(jQuery,FLBuilder);
|
1 |
var FLBuilderColorPicker;!function(e,i){function t(){var i,t,l="backgroundImage";f?h="filter":(i=e('<div id="iris-gradtest" />'),t="linear-gradient(top,#fff,#000)",e.each(g,function(e,n){if(i.css(l,n+t),i.css(l).match("gradient"))return h=e,!1}),h===!1&&(i.css("background","-webkit-gradient(linear,0% 0%,0% 100%,from(#fff),to(#000))"),i.css(this.bgImageString).match("gradient")&&(h="webkit")),i.remove())}function l(i,t){return i="top"===i?"top":"left",t=e.isArray(t)?t:Array.prototype.slice.call(arguments,1),"webkit"===h?s(i,t):g[h]+"linear-gradient("+i+", "+t.join(", ")+")"}function n(i,t){var l,n,s,r,a,d,u,c,f;i="top"===i?"top":"left",t=e.isArray(t)?t:Array.prototype.slice.call(arguments,1),l="top"===i?0:1,n=e(this),s=t.length-1,r="filter",a=1===l?"left":"top",d=1===l?"right":"bottom",u=1===l?"height":"width",c='<div class="iris-ie-gradient-shim" style="position:absolute;'+u+":100%;"+a+":%start%;"+d+":%end%;"+r+':%filter%;" data-color:"%color%"></div>',f="","static"===n.css("position")&&n.css({position:"relative"}),t=o(t),e.each(t,function(e,i){var n,o,r;return e!==s&&(n=t[e+1],void(i.stop!==n.stop&&(o=100-parseFloat(n.stop)+"%",i.octoHex=new FLBuilderColor(i.color).toIEOctoHex(),n.octoHex=new FLBuilderColor(n.color).toIEOctoHex(),r="progid:DXImageTransform.Microsoft.Gradient(GradientType="+l+", StartColorStr='"+i.octoHex+"', EndColorStr='"+n.octoHex+"')",f+=c.replace("%start%",i.stop).replace("%end%",o).replace("%filter%",r))))}),n.find(".iris-ie-gradient-shim").remove(),e(f).prependTo(n)}function s(i,t){var l=[];return i="top"===i?"0% 0%,0% 100%,":"0% 100%,100% 100%,",t=o(t),e.each(t,function(e,i){l.push("color-stop("+parseFloat(i.stop)/100+", "+i.color+")")}),"-webkit-gradient(linear,"+i+l.join(",")+")"}function o(i){var t=[],l=[],n=[],s=i.length-1;return e.each(i,function(e,i){var n=i,s=!1,o=i.match(/1?[0-9]{1,2}%$/);o&&(n=i.replace(/\s?1?[0-9]{1,2}%$/,""),s=o.shift()),t.push(n),l.push(s)}),l[0]===!1&&(l[0]="0%"),l[s]===!1&&(l[s]="100%"),l=r(l),e.each(l,function(e){n[e]={color:t[e],stop:l[e]}}),n}function r(i){var t,l,n,s,o=0,a=i.length-1,d=0,u=!1;if(i.length<=2||e.inArray(!1,i)<0)return i;for(;d<i.length-1;)u||i[d]!==!1?u&&i[d]!==!1&&(a=d,d=i.length):(o=d-1,u=!0),d++;for(l=a-o,s=parseInt(i[o].replace("%"),10),t=(parseFloat(i[a].replace("%"))-s)/l,d=o+1,n=1;d<a;)i[d]=s+n*t+"%",n++,d++;return r(i)}var a=[],d=navigator.userAgent.toLowerCase(),u="Microsoft Internet Explorer"===navigator.appName,c=u?parseFloat(d.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,f=u&&c<10,h=!1,g=["-moz-","-webkit-","-o-","-ms-"];flBuilderParseColorValue=function(e){var i=e.replace(/\s+/g,""),t=i.indexOf("rgba")!==-1?parseFloat(100*i.replace(/^.*,(.+)\)/,"$1")):100,l=t<100;return{value:i,alpha:t,rgba:l}},e.fn.flBuilderColorPickerGradient=function(){var i=arguments;return this.each(function(){f?n.apply(this,i):e(this).css("backgroundImage",l.apply(this,i))})},e.fn.flBuilderColorPickerRaninbowGradient=function(i,t){var l,n,s,o;for(i=i||"top",l=e.extend({},{s:100,l:50},t),n="hsl(%h%,"+l.s+"%,"+l.l+"%)",s=0,o=[];s<=360;)o.push(n.replace("%h%",s)),s+=30;return this.each(function(){e(this).flBuilderColorPickerGradient(i,o)})},FLBuilderColorPicker=function(i){this._html='<div class="fl-color-picker-ui"><div class="iris-picker"><div class="iris-picker-inner"><div class="iris-square"><a class="iris-square-value" href="javascript:void(0);"><span class="iris-square-handle ui-slider-handle"></span></a><div class="iris-square-inner iris-square-horiz"></div><div class="iris-square-inner iris-square-vert"></div></div><div class="iris-slider iris-strip"><div class="iris-slider-offset"></div></div></div></div></div>';var t={elements:null,color:"",mode:"hsl",controls:{horiz:"s",vert:"l",strip:"h"},target:!1,width:200,presets:[],labels:{colorPresets:"Color Presets",colorPicker:"Color Picker",placeholder:"Paste color here...",removePresetConfirm:"Are you sure?",noneColorSelected:"None color selected.",alreadySaved:"%s is already a saved preset.",noPresets:"Add a color preset first.",presetAdded:"%s added to presets!"}};this.options=e.extend({},t,i),(f===!1||f===!0&&c>7)&&this._init()},FLBuilderColorPicker.prototype={_html:"",_color:"",_currentElement:"",_inited:!1,_defaultHSLControls:{horiz:"s",vert:"l",strip:"h"},_defaultHSVControls:{horiz:"h",vert:"v",strip:"s"},_scale:{h:360,s:100,l:100,v:100},_init:function(){var i=this;e(i.options.elements);return e("html").hasClass("fl-color-picker-init")?void this._prepareColorFields():(this._color=new FLBuilderColor("#ff0000").setHSpace(i.options.mode),a=this.options.presets,h===!1&&t(),i.picker=e(this._html).appendTo("body"),u?9===c?i.picker.addClass("iris-ie-9"):c<=8&&i.picker.addClass("iris-ie-lt9"):d.indexOf("compatible")<0&&d.indexOf("khtml")<0&&d.match(/mozilla/)&&i.picker.addClass("iris-mozilla"),i.controls={square:i.picker.find(".iris-square"),squareDrag:i.picker.find(".iris-square-value"),horiz:i.picker.find(".iris-square-horiz"),vert:i.picker.find(".iris-square-vert"),strip:i.picker.find(".iris-strip"),stripSlider:i.picker.find(".iris-strip .iris-slider-offset")},"hsv"===i.options.mode&&i._has("l",i.options.controls)?i.options.controls=i._defaultHSVControls:"hsl"===i.options.mode&&i._has("v",i.options.controls)&&(i.options.controls=i._defaultHSLControls),i.hue=i._color.h(),this._setTemplates(),this._ui=e(".fl-color-picker-ui"),this._iris=e(".iris-picker"),this._wrapper=e("body"),this._ui.prepend(this._hexHtml).append(this._presetsHtml),i.element=this._ui.find(".fl-color-picker-input"),i._initControls(),i.active="external",i._change(),i._addInputListeners(i.element),this._buildUI(),this._prepareColorFields(),this._pickerControls(),this._presetsControls(),this._buildAlphaUI(),void e("html").addClass("fl-color-picker-init"))},_prepareColorFields:function(){var i=this;e(".fl-color-picker-value").each(function(){var t=e(this),l=t.val(),n=t.parent().find(".fl-color-picker-color"),s=flBuilderParseColorValue(l),o="";if(l){if(n.hasClass("fl-color-picker-alpha-enabled")&&s.rgba)o=t.val().toString();else if(!n.hasClass("fl-color-picker-alpha-enabled")&&s.rgba){var r=l.replace("rgba","rgb");r=r.substr(0,r.lastIndexOf(","))+")",i._color._alpha=1,o=r,t.val(r)}else o="#"+t.val().toString();n.css({backgroundColor:o})}})},_setTemplates:function(){this._alphaHtml='<div class="fl-alpha-wrap"><div class="fl-alpha-slider"></div><div class="fl-alpha-slider-offset"></div><div class="fl-alpha-text"></div></div>',this._presetsHtml='<div class="fl-color-picker-presets"><div class="fl-color-picker-presets-toggle"><div class="fl-color-picker-presets-open-label fl-color-picker-active">'+this.options.labels.colorPresets+' <span class="fl-color-picker-icon-arrow-up"></span></div><div class="fl-color-picker-presets-close-label">'+this.options.labels.colorPicker+' <span class="fl-color-picker-icon-arrow-down"></span></div></div><ul class="fl-color-picker-presets-list"></ul></div>',this._hexHtml='<input type="text" class="fl-color-picker-input" placeholder="'+this.options.labels.placeholder+'"><div class="fl-color-picker-preset-add"></div>',this._presetsTpl='<li class="fl-color-picker-preset"><span class="fl-color-picker-preset-color"></span> <span class="fl-color-picker-preset-label"></span> <span class="fl-color-picker-preset-remove fl-color-picker-icon-remove"></span></li>',this._noPresetsTpl='<li class="fl-color-picker-no-preset"><span class="fl-color-picker-preset-label">'+this.options.labels.noPresets+"</span></li>"},_has:function(i,t){var l=!1;return e.each(t,function(e,t){if(i===t)return l=!0,!1}),l},_buildUI:function(){var i=this;i._presetsList=this._ui.find(".fl-color-picker-presets-list"),i._presetsList.html(""),this.options.presets.length>0?e.each(this.options.presets,function(e,t){i._addPresetView(t)}):i._presetsList.append(this._noPresetsTpl)},_addPresetView:function(i){var t=this._presetsList.find(".fl-color-picker-no-preset");t.length>0&&t.remove();var l=e(this._presetsTpl),n=FLBuilderColor(i);l.attr("data-color",i).find(".fl-color-picker-preset-color").css({backgroundColor:n.toString()}).end().find(".fl-color-picker-preset-label").html(n.toString()),this._presetsList.append(l)},_addPresetFeedback:function(){this._ui.append('<div class="fl-color-picker-added"><div class="fl-color-picker-added-text"><div class="fl-color-picker-icon-check"></div> "'+this.options.labels.presetAdded.replace("%s",this._color.toString())+'"</div></div>'),this._ui.find(".fl-color-picker-added").hide().fadeIn(200).delay(2e3).fadeOut(200,function(){e(this).remove()})},_pickerControls:function(){var i=this;this._wrapper.on("click",".fl-color-picker-color",function(){var t=e(this);i._currentElement=t.parent().find(".fl-color-picker-value"),i._ui.position({my:"left top",at:"left bottom",of:t,collision:"flip",using:function(e,t){i._togglePicker(e)}})}).on("click",".fl-color-picker-clear",function(){var t=e(this);i._currentElement=t.parent().find(".fl-color-picker-value"),t.prev(".fl-color-picker-color").css({backgroundColor:"transparent"}).addClass("fl-color-picker-empty"),i._setColor(""),i.element.val(""),i._currentElement.val("").trigger("change")}),e(document).on("mousedown",function(i){0===e(i.target).closest(".fl-color-picker-ui").length&&e(".fl-color-picker-ui.fl-color-picker-active").removeClass("fl-color-picker-active")})},_presetsControls:function(){var i=this,t=i._ui.find(".fl-color-picker-preset-add"),l=i._ui.find(".fl-color-picker-presets"),n=l.find(".fl-color-picker-presets-open-label"),s=l.find(".fl-color-picker-presets-close-label"),o=l.find(".fl-color-picker-presets-list");t.off("click").on("click",function(){i._addPreset(i.element.val())}),o.css({height:i.element.innerHeight()+i._iris.innerHeight()+14+"px"}).hide(),l.off("click").on("click",".fl-color-picker-presets-toggle",function(){n.toggleClass("fl-color-picker-active"),s.toggleClass("fl-color-picker-active"),o.slideToggle(500)}).on("click",".fl-color-picker-preset",function(t){var l=new FLBuilderColor(e(this).data("color").toString());i._setColor(l),i._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:l.toString()}).removeClass("fl-color-picker-empty"),n.toggleClass("fl-color-picker-active"),s.toggleClass("fl-color-picker-active"),o.slideToggle(500)}).on("click",".fl-color-picker-preset-remove",function(t){t.stopPropagation(),i._removePreset(e(this).parent().data("color"))})},_removePreset:function(i){if(confirm(this.options.labels.removePresetConfirm)){var t=i.toString(),l=a.indexOf(t);l>-1&&(a.splice(l,1),this.options.presets=a,this._presetsList.find('.fl-color-picker-preset[data-color="'+t+'"]').slideUp(function(){e(this).remove()})),a.length<1&&this._presetsList.append(this._noPresetsTpl),e(this).trigger("presetRemoved",{presets:a})}},_addPreset:function(i){if(!this._CheckValidColor(i))return alert(this.options.labels.noneColorSelected),!1;var t=i.toString().replace(/^#/,"");""===t?alert(this.options.labels.noneColorSelected):a.indexOf(t)>-1?alert(this.options.labels.alreadySaved.replace("%s","#"+t)):(this._addPresetView(t),this._addPresetFeedback(),a.push(t),this.options.presets=a,e(this).trigger("presetAdded",{presets:a}))},_CheckValidColor:function(e){if(!e.match(/^#/)&&!e.match(/^rgb/)&&!e.match(/^hsl/))return!1;var i=document.getElementById("divValidColor");i||(i=document.createElement("div"),i.id="divValidColor"),i.style.borderColor="",i.style.borderColor=e;var t=i.style.borderColor;return 0!=t.length},_togglePicker:function(e){var i=this;this._ui.hasClass("fl-color-picker-active")?(this._ui.removeClass("fl-color-picker-active"),e&&setTimeout(function(){i._ui.css(e),i._ui.addClass("fl-color-picker-active"),i._setColor(i._currentElement.val())},200)):(e&&i._ui.css(e),setTimeout(function(){i._ui.addClass("fl-color-picker-active"),i._setColor(i._currentElement.val())},200))},_paint:function(){var e=this;e._paintDimension("right","strip"),e._paintDimension("top","vert"),e._paintDimension("left","horiz")},_paintDimension:function(e,i){var t,l=this,n=l._color,s=l.options.mode,o=l._getHSpaceColor(),r=l.controls[i],a=l.options.controls;if(i!==l.active&&("square"!==l.active||"strip"===i))switch(a[i]){case"h":if("hsv"===s){switch(o=n.clone(),i){case"horiz":o[a.vert](100);break;case"vert":o[a.horiz](100);break;case"strip":o.setHSpace("hsl")}t=o.toHsl()}else t="strip"===i?{s:o.s,l:o.l}:{s:100,l:o.l};r.flBuilderColorPickerRaninbowGradient(e,t);break;case"s":"hsv"===s?"vert"===i?t=[n.clone().a(0).s(0).toCSS("rgba"),n.clone().a(1).s(0).toCSS("rgba")]:"strip"===i?t=[n.clone().s(100).toCSS("hsl"),n.clone().s(0).toCSS("hsl")]:"horiz"===i&&(t=["#fff","hsl("+o.h+",100%,50%)"]):t="vert"===i&&"h"===l.options.controls.horiz?["hsla(0, 0%, "+o.l+"%, 0)","hsla(0, 0%, "+o.l+"%, 1)"]:["hsl("+o.h+",0%,50%)","hsl("+o.h+",100%,50%)"],r.flBuilderColorPickerGradient(e,t);break;case"l":t="strip"===i?["hsl("+o.h+",100%,100%)","hsl("+o.h+", "+o.s+"%,50%)","hsl("+o.h+",100%,0%)"]:["#fff","rgba(255,255,255,0) 50%","rgba(0,0,0,0) 50%","rgba(0,0,0,1)"],r.flBuilderColorPickerGradient(e,t);break;case"v":t="strip"===i?[n.clone().v(100).toCSS(),n.clone().v(0).toCSS()]:["rgba(0,0,0,0)","#000"],r.flBuilderColorPickerGradient(e,t)}},_getHSpaceColor:function(){return"hsv"===this.options.mode?this._color.toHsv():this._color.toHsl()},_dimensions:function(e){var i,t=this,l=t.options,n=t.controls,s=n.square,o=t.picker.find(".iris-strip"),r="77.5%",a="12%",d=20,u=l.border?l.width-d:l.width;if(e&&(s.css("width",""),o.css("width",""),t.picker.css({width:"",height:""})),r=u*(parseFloat(r)/100),a=u*(parseFloat(a)/100),i=l.border?r+d:r,s.width(r).height(r),o.height(r).width(a),t.picker.css({width:l.width,height:i}),!l.palettes)return t.picker.css("paddingBottom","")},_addInputListeners:function(e){var i=this,t=100,l=function(t){var l=new FLBuilderColor(e.val()),n=e.val().replace(/^#/,""),s=i._currentElement.hasClass("fl-color-picker-empty");if(e.removeClass("iris-error"),l.error)""!==n&&e.addClass("iris-error");else if(l.toString()!==i._color.toString()||""!==i._color.toString()&&s)if("keyup"===t.type){if(n.match(/^[0-9a-fA-F]{3}$/))return;i._setColor(n),i._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:FLBuilderColor(n).toString()}).removeClass("fl-color-picker-empty"),i._currentElement.val(n).trigger("change")}else if("paste"===t.type)return n=t.originalEvent.clipboardData.getData("text").replace(/^#/,""),hex=FLBuilderColor(n).toString(),i._setColor(n),e.val(hex),i._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:hex}).removeClass("fl-color-picker-empty"),i._currentElement.val(n).trigger("change"),!1};e.on("change",l).on("keyup",i._debounce(l,t))},_initControls:function(){var i=this,t=i.controls,l=t.square,n=i.options.controls,s=i._scale[n.strip];t.stripSlider.slider({orientation:"horizontal",max:s,slide:function(e,t){i.active="strip","h"===n.strip&&(t.value=s-t.value),i._color[n.strip](t.value),i._change.apply(i,arguments)}}),t.squareDrag.draggable({containment:t.square.find(".iris-square-inner"),zIndex:1e3,cursor:"move",drag:function(e,t){i._squareDrag(e,t)},start:function(){l.addClass("iris-dragging"),e(this).addClass("ui-state-focus")},stop:function(){l.removeClass("iris-dragging"),e(this).removeClass("ui-state-focus")}}).on("mousedown mouseup",function(t){var l="ui-state-focus";t.preventDefault(),"mousedown"===t.type?(i.picker.find("."+l).removeClass(l).blur(),e(this).addClass(l).focus()):e(this).removeClass(l)}).on("keydown",function(e){var l=t.square,n=t.squareDrag,s=n.position(),o=2;switch(e.altKey&&(o*=10),e.keyCode){case 37:s.left-=o;break;case 38:s.top-=o;break;case 39:s.left+=o;break;case 40:s.top+=o;break;default:return!0}s.left=Math.max(0,Math.min(s.left,l.width())),s.top=Math.max(0,Math.min(s.top,l.height())),n.css(s),i._squareDrag(e,{position:s}),e.preventDefault()}),l.mousedown(function(t){var l,n;1===t.which&&e(t.target).is("div")&&(l=i.controls.square.offset(),n={top:t.pageY-l.top,left:t.pageX-l.left},t.preventDefault(),i._squareDrag(t,{position:n}),t.target=i.controls.squareDrag.get(0),i.controls.squareDrag.css(n).trigger(t))})},_squareDrag:function(e,i){var t=this,l=t.options.controls,n=t._squareDimensions(),s=Math.round((n.h-i.position.top)/n.h*t._scale[l.vert]),o=t._scale[l.horiz]-Math.round((n.w-i.position.left)/n.w*t._scale[l.horiz]);t._color[l.horiz](o)[l.vert](s),t.active="square",t._change.apply(t,arguments)},_setColor:function(e){var i,t,l=this,n=l.options.color,s="#ff0000";""===e?(e=s,l["default"]=!0):l["default"]=!1,l.options.color=e,e=""+e,i=e.replace(/^#/,""),t=new FLBuilderColor(e).setHSpace(l.options.mode),t.error?l.options.color=n:(l._color=t,l.options.color=l._color.toString(),l.active="external",l._change())},_squareDimensions:function(e){var t,l,n=this.controls.square;return e!==i&&n.data("dimensions")?n.data("dimensions"):(l=this.controls.squareDrag,t={w:n.width(),h:n.height()},n.data("dimensions",t),t)},_isNonHueControl:function(e,i){return"square"===e&&"h"===this.options.controls.strip||"external"!==i&&("h"!==i||"strip"!==e)},_change:function(){var i=this,t=i.controls,l=i._getHSpaceColor(),n=["square","strip"],s=i.options.controls,o=s[i.active]||"external",r=i.hue;"strip"===i.active?n=[]:"external"!==i.active&&n.pop(),e.each(n,function(e,n){var o,r,a;if(n!==i.active)switch(n){case"strip":o="h"===s.strip?i._scale[s.strip]-l[s.strip]:l[s.strip],t.stripSlider.slider("value",o);break;case"square":r=i._squareDimensions(),a={left:l[s.horiz]/i._scale[s.horiz]*r.w,top:r.h-l[s.vert]/i._scale[s.vert]*r.h},i.controls.squareDrag.css(a)}}),l.h!==r&&i._isNonHueControl(i.active,o)&&i._color.h(r),i.hue=i._color.h(),i.options.color=i._color.toString(),i.element.is(":input")&&!i._color.error&&(i.element.removeClass("iris-error"),i.element.val()!==i._color.toString()&&(i.element.val(i._color.toString()),this._currentElement&&(!i["default"]||i["default"]&&"external"!==i.active?this._currentElement.val(i._color.toString().replace(/^#/,"")).parent().find(".fl-color-picker-color").css({backgroundColor:i._color.toString()}).removeClass("fl-color-picker-empty"):this._currentElement.val(""),i._wrapper.find(".fl-alpha-slider-offset").css("background-color",i._color.toString()),this._currentElement.trigger("change")))),i._paint(),i._inited=!0,i.active=!1},_debounce:function(e,i,t){var l,n;return function(){var s,o,r=this,a=arguments;return s=function(){l=null,t||(n=e.apply(r,a))},o=t&&!l,clearTimeout(l),l=setTimeout(s,i),o&&(n=e.apply(r,a)),n}},_buildAlphaUI:function(){var i=this;i._wrapper.on("click",".fl-color-picker-color",function(){var t=e(this);i._currentElement.val();t.hasClass("fl-color-picker-alpha-enabled")?(i._ui.find(".fl-alpha-wrap").length<=0&&e(i._alphaHtml).insertAfter(i._iris),i.picker.addClass("fl-color-alpha-enabled"),i._pickerAlphaControls()):(i.picker.removeClass("fl-color-alpha-enabled"),i._ui.find(".fl-alpha-wrap").remove())})},_pickerAlphaControls:function(){var e=this,i=e._currentElement,t=flBuilderParseColorValue(i.val()),l=parseFloat(t.alpha/100),n=e._wrapper,s=e._ui,o=s.find(".fl-alpha-wrap"),r=o.find(".fl-alpha-slider"),a=o.find(".fl-alpha-text"),d=o.find(".fl-alpha-slider-offset");alphaHandle=o.find(".ui-slider-handle"),a.text(l<1?l:""),r.slider({orientation:"vertical",slide:function(i,t){var l=parseFloat(t.value/100);e._color._alpha=l,a.text(l<1?l:""),e._change.apply(e,arguments)},create:function(){d.css({backgroundColor:t.value}),n.on("click",".fl-color-picker-clear",function(){e._color._alpha=1,a.text(""),r.slider("value",100).trigger("slide")})},value:t.alpha,step:1,min:0,max:100})}}}(jQuery),function(e,i){var t=function(e,i){return this instanceof t?this._init(e,i):new t(e,i)};t.fn=t.prototype={_color:0,_alpha:1,error:!1,_hsl:{h:0,s:0,l:0},_hsv:{h:0,s:0,v:0},_hSpace:"hsl",_init:function(e){var t="noop";switch(typeof e){case"object":return e.a!==i&&this.a(e.a),t=e.r!==i?"fromRgb":e.l!==i?"fromHsl":e.v!==i?"fromHsv":t,this[t](e);case"string":return this.fromCSS(e);case"number":return this.fromInt(parseInt(e,10))}return this},_error:function(){return this.error=!0,this},clone:function(){for(var e=new t(this.toInt()),i=["_alpha","_hSpace","_hsl","_hsv","error"],l=i.length-1;l>=0;l--)e[i[l]]=this[i[l]];return e},setHSpace:function(e){return this._hSpace="hsv"===e?e:"hsl",this},noop:function(){return this},fromCSS:function(e){var i,t=/^(rgb|hs(l|v))a?\(/;if(this.error=!1,e=e.replace(/^\s+/,"").replace(/\s+$/,"").replace(/;$/,""),e.match(t)&&e.match(/\)$/)){if(i=e.replace(/(\s|%)/g,"").replace(t,"").replace(/,?\);?$/,"").split(","),i.length<3)return this._error();if(4===i.length&&(this.a(parseFloat(i.pop())),this.error))return this;for(var l=i.length-1;l>=0;l--)if(i[l]=parseInt(i[l],10),isNaN(i[l]))return this._error();return e.match(/^rgb/)?this.fromRgb({r:i[0],g:i[1],b:i[2]}):e.match(/^hsv/)?this.fromHsv({h:i[0],s:i[1],v:i[2]}):this.fromHsl({h:i[0],s:i[1],l:i[2]})}return this.fromHex(e)},fromRgb:function(e,t){return"object"!=typeof e||e.r===i||e.g===i||e.b===i?this._error():(this.error=!1,this.fromInt(parseInt((e.r<<16)+(e.g<<8)+e.b,10),t))},fromHex:function(e){return e=e.replace(/^#/,"").replace(/^0x/,""),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),this.error=!/^[0-9A-F]{6}$/i.test(e),this.fromInt(parseInt(e,16))},fromHsl:function(e){var t,l,n,s,o,r,a,d;return"object"!=typeof e||e.h===i||e.s===i||e.l===i?this._error():(this._hsl=e,this._hSpace="hsl",r=e.h/360,a=e.s/100,d=e.l/100,0===a?t=l=n=d:(s=d<.5?d*(1+a):d+a-d*a,o=2*d-s,t=this.hue2rgb(o,s,r+1/3),l=this.hue2rgb(o,s,r),n=this.hue2rgb(o,s,r-1/3)),this.fromRgb({r:255*t,g:255*l,b:255*n},!0))},fromHsv:function(e){var t,l,n,s,o,r,a,d,u,c,f;if("object"!=typeof e||e.h===i||e.s===i||e.v===i)return this._error();switch(this._hsv=e,this._hSpace="hsv",t=e.h/360,l=e.s/100,n=e.v/100,a=Math.floor(6*t),d=6*t-a,u=n*(1-l),c=n*(1-d*l),f=n*(1-(1-d)*l),a%6){case 0:s=n,o=f,r=u;break;case 1:s=c,o=n,r=u;break;case 2:s=u,o=n,r=f;break;case 3:s=u,o=c,r=n;break;case 4:s=f,o=u,r=n;break;case 5:s=n,o=u,r=c}return this.fromRgb({r:255*s,g:255*o,b:255*r},!0)},fromInt:function(e,t){return this._color=parseInt(e,10),isNaN(this._color)&&(this._color=0),this._color>16777215?this._color=16777215:this._color<0&&(this._color=0),t===i&&(this._hsv.h=this._hsv.s=this._hsl.h=this._hsl.s=0),this},hue2rgb:function(e,i,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(i-e)*t:t<.5?i:t<2/3?e+(i-e)*(2/3-t)*6:e},toString:function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);if(this.error)return"";if(e.length<6)for(var i=6-e.length-1;i>=0;i--)e="0"+e;return"#"+e},toCSS:function(e,i){switch(e=e||"hex",i=parseFloat(i||this._alpha),e){case"rgb":case"rgba":var t=this.toRgb();return i<1?"rgba( "+t.r+", "+t.g+", "+t.b+", "+i+" )":"rgb( "+t.r+", "+t.g+", "+t.b+" )";case"hsl":case"hsla":var l=this.toHsl();return i<1?"hsla( "+l.h+", "+l.s+"%, "+l.l+"%, "+i+" )":"hsl( "+l.h+", "+l.s+"%, "+l.l+"% )";default:return this.toString()}},toRgb:function(){return{r:255&this._color>>16,g:255&this._color>>8,b:255&this._color}},toHsl:function(){var e,i,t=this.toRgb(),l=t.r/255,n=t.g/255,s=t.b/255,o=Math.max(l,n,s),r=Math.min(l,n,s),a=(o+r)/2;if(o===r)e=i=0;else{var d=o-r;switch(i=a>.5?d/(2-o-r):d/(o+r),o){case l:e=(n-s)/d+(n<s?6:0);break;case n:e=(s-l)/d+2;break;case s:e=(l-n)/d+4}e/=6}return e=Math.round(360*e),0===e&&this._hsl.h!==e&&(e=this._hsl.h),i=Math.round(100*i),0===i&&this._hsl.s&&(i=this._hsl.s),{h:e,s:i,l:Math.round(100*a)}},toHsv:function(){var e,i,t=this.toRgb(),l=t.r/255,n=t.g/255,s=t.b/255,o=Math.max(l,n,s),r=Math.min(l,n,s),a=o,d=o-r;if(i=0===o?0:d/o,o===r)e=i=0;else{switch(o){case l:e=(n-s)/d+(n<s?6:0);break;case n:e=(s-l)/d+2;break;case s:e=(l-n)/d+4}e/=6}return e=Math.round(360*e),0===e&&this._hsv.h!==e&&(e=this._hsv.h),i=Math.round(100*i),0===i&&this._hsv.s&&(i=this._hsv.s),{h:e,s:i,v:Math.round(100*a)}},toInt:function(){return this._color},toIEOctoHex:function(){var e=this.toString(),i=parseInt(255*this._alpha,10).toString(16);return 1===i.length&&(i="0"+i),"#"+i+e.replace(/^#/,"")},toLuminosity:function(){var e=this.toRgb();return.2126*Math.pow(e.r/255,2.2)+.7152*Math.pow(e.g/255,2.2)+.0722*Math.pow(e.b/255,2.2)},getDistanceLuminosityFrom:function(e){if(!(e instanceof t))throw"getDistanceLuminosityFrom requires a Color object";var i=this.toLuminosity(),l=e.toLuminosity();return i>l?(i+.05)/(l+.05):(l+.05)/(i+.05)},getMaxContrastColor:function(){var e=this.toLuminosity(),i=e>=.5?"000000":"ffffff";return new t(i)},getReadableContrastingColor:function(e,l){if(!(e instanceof t))return this;var n=l===i?5:l,s=e.getDistanceLuminosityFrom(this),o=e.getMaxContrastColor(),r=o.getDistanceLuminosityFrom(e);if(r<=n)return o;if(s>=n)return this;for(var a=0===o.toInt()?-1:1;s<n&&(this.l(a,!0),s=this.getDistanceLuminosityFrom(e),0!==this._color&&16777215!==this._color););return this},a:function(e){if(e===i)return this._alpha;var t=parseFloat(e);return isNaN(t)?this._error():(this._alpha=t,this)},darken:function(e){return e=e||5,this.l(-e,!0)},lighten:function(e){return e=e||5,this.l(e,!0)},saturate:function(e){return e=e||15,this.s(e,!0)},desaturate:function(e){return e=e||15,this.s(-e,!0)},toGrayscale:function(){return this.setHSpace("hsl").s(0)},getComplement:function(){return this.h(180,!0)},getSplitComplement:function(e){e=e||1;var i=180+30*e;return this.h(i,!0)},getAnalog:function(e){e=e||1;var i=30*e;return this.h(i,!0)},getTetrad:function(e){e=e||1;var i=60*e;return this.h(i,!0)},getTriad:function(e){e=e||1;var i=120*e;return this.h(i,!0)},_partial:function(e){var t=l[e];return function(l,n){var s=this._spaceFunc("to",t.space);return l===i?s[e]:(n===!0&&(l=s[e]+l),t.mod&&(l%=t.mod),t.range&&(l=l<t.range[0]?t.range[0]:l>t.range[1]?t.range[1]:l),s[e]=l,this._spaceFunc("from",t.space,s))}},_spaceFunc:function(e,i,t){var l=i||this._hSpace,n=e+l.charAt(0).toUpperCase()+l.substr(1);return this[n](t)}};var l={h:{mod:360},s:{range:[0,100]},l:{space:"hsl",range:[0,100]},v:{space:"hsv",range:[0,100]},r:{space:"rgb",range:[0,255]},g:{space:"rgb",range:[0,255]},b:{space:"rgb",range:[0,255]}};for(var n in l)l.hasOwnProperty(n)&&(t.fn[n]=t.fn._partial(n));"object"==typeof exports?module.exports=t:(e.FLBuilderColor=t,e.Color=t)}(this),function(e){FLLightbox=function(e){this._init(e)},FLLightbox.closeParent=function(i){var t=e(i).closest(".fl-lightbox-wrap").attr("data-instance-id");_.isUndefined(t)||FLLightbox._instances[t].close()},FLLightbox.getResizableControlClass=function(){var i=e(".fl-lightbox-resizable").eq(0),t="far fa-window-maximize";return i.length&&i.hasClass("fl-lightbox-width-full")&&(t="far fa-window-minimize"),t},FLLightbox.unbindAll=function(){var e;for(e in FLLightbox._instances)FLLightbox._instances[e]._unbind()},FLLightbox.bindAll=function(){var e;for(e in FLLightbox._instances)FLLightbox._instances[e]._bind()},FLLightbox.closeAll=function(){var e;for(e in FLLightbox._instances)FLLightbox._instances[e].close()},FLLightbox._instances={},FLLightbox.prototype={_id:null,_node:null,_visible:!1,_allowClosing:!0,_resizeTimer:null,_defaults:{className:"",destroyOnClose:!1,resizable:!1},open:function(e){var i=this._node.find(".fl-lightbox"),t=i.closest(".fl-builder-ui-pinned").length,l=this._getPositionSettings();!t&&l&&this._defaults.resizable&&i.css(l),this._bind(),this._node.show(),this._visible=!0,"undefined"!=typeof e?this.setContent(e):this._resize(),this.trigger("open"),FLBuilder.triggerHook("didShowLightbox",this)},close:function(){var e=this._node.data("parent");this._allowClosing&&(this.trigger("beforeCloseLightbox"),this._unbind(),this._node.hide(),this._visible=!1,this.trigger("close"),FLBuilder.triggerHook("didHideLightbox"),this._defaults.resizable&&_.isUndefined(e)&&FLBuilder.triggerHook("didHideAllLightboxes"),this._defaults.destroyOnClose&&this.destroy())},disableClose:function(){this._allowClosing=!1},enableClose:function(){this._allowClosing=!0},setContent:function(e){this._node.find(".fl-lightbox-content").html(e),this._resize()},empty:function(){this._node.find(".fl-lightbox-content").empty()},on:function(e,i){this._node.on(e,i)},off:function(e,i){this._node.off(e,i)},trigger:function(e,i){this._node.trigger(e,i)},destroy:function(){this._node.empty(),this._node.remove(),FLLightbox._instances[this._id]="undefined";try{delete FLLightbox._instances[this._id]}catch(e){}},_init:function(i){var t=0,l=null;for(l in FLLightbox._instances)t++;this._defaults=e.extend({},this._defaults,i),this._id=(new Date).getTime()+t,FLLightbox._instances[this._id]=this,this._render(),this._resizable()},_render:function(){this._node=e('<div class="fl-lightbox-wrap" data-instance-id="'+this._id+'"><div class="fl-lightbox-mask"></div><div class="fl-lightbox"><div class="fl-lightbox-content-wrap"><div class="fl-lightbox-content"></div></div></div></div>'),this._node.addClass(this._defaults.className),e("body").append(this._node)},_bind:function(){e(window).on("resize.fl-lightbox-"+this._id,this._delayedResize.bind(this))},_unbind:function(){e(window).off("resize.fl-lightbox-"+this._id)},_resizable:function(){var i=(e("body"),this._node.find(".fl-lightbox-mask")),t=this._node.find(".fl-lightbox"),l=e(".fl-lightbox-resizable").eq(0);this._defaults.resizable?(i.hide(),t.addClass("fl-lightbox-resizable"),t.delegate(".fl-lightbox-resize-toggle","click",this._resizeClicked.bind(this)),t.draggable({cursor:"move",handle:".fl-lightbox-header"}).resizable({handles:"all",minHeight:500,minWidth:380,start:this._resizeStart.bind(this),stop:this._resizeStop.bind(this)}),l.length&&l.hasClass("fl-lightbox-width-full")?(t.addClass("fl-lightbox-width-full"),t.draggable("disable")):this._restorePosition()):i.show(),this._resize()},_delayedResize:function(){clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(this._resize.bind(this),250)},_resize:function(){var i=this._node.find(".fl-lightbox"),t=parseInt(this._node.css("padding-top")),l=parseInt(this._node.css("padding-bottom")),n=parseInt(this._node.css("padding-left")),s=parseInt(this._node.css("padding-right")),o=i.height(),r=i.width(),a=e(window),d=a.height()-t-l,u=(a.width()-n-s,"0px");this._defaults.resizable?(r<600?i.addClass("fl-lightbox-width-slim"):i.removeClass("fl-lightbox-width-slim"),r<450?i.addClass("fl-lightbox-width-micro"):i.removeClass("fl-lightbox-width-micro"),this._resizeEditors()):(d>o&&(u=(d-o-46)/2+"px"),i.attr("style","").css("margin",u+" auto 0")),this.trigger("resized")},_resizeStart:function(){e("body").addClass("fl-builder-resizable-is-resizing"),e(".fl-builder-lightbox:visible").append('<div class="fl-builder-resizable-iframe-fix"></div>'),FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays()},_resizeStop:function(i,t){var l=e(".fl-lightbox-resizable:visible");parseInt(l.css("top"))<0&&l.css("top","0"),this._savePosition(),e("body").removeClass("fl-builder-resizable-is-resizing"),e(".fl-builder-resizable-iframe-fix").remove(),FLBuilder._bindOverlayEvents()},_resizeClicked:function(){var i=e(".fl-lightbox-resizable"),t=(i.find(".fl-lightbox-resize-toggle"),this._node.find(".fl-lightbox"));t.hasClass("fl-lightbox-width-full")?this._resizeExitFull():this._resizeEnterFull(),this._resize()},_resizeEnterFull:function(){var i=e(".fl-lightbox-resizable"),t=i.find(".fl-lightbox-resize-toggle");this._node.find(".fl-lightbox");t.removeClass("fa-window-maximize").addClass("fa-window-minimize"),i.addClass("fl-lightbox-width-full"),i.draggable("disable"),i.resizable("disable")},_resizeExitFull:function(){var i=e(".fl-lightbox-resizable"),t=i.find(".fl-lightbox-resize-toggle");this._node.find(".fl-lightbox");t.removeClass("fa-window-minimize").addClass("fa-window-maximize"),i.removeClass("fl-lightbox-width-full"),i.draggable("enable"),i.resizable("enable")},_resizeEditors:function(){e(".fl-lightbox-resizable").each(function(){var i=e(this),t=i.find(".fl-builder-settings-fields").height(),l=i.find(".mce-edit-area > iframe, textarea.wp-editor-area, .ace_editor"),n=null;t<350&&(t=350),l.each(function(){n=e(this),n.hasClass("ace_editor")?(n.height(t-60),n.closest(".fl-field").data("editor").resize()):n.closest(".mce-container-body").find(".mce-toolbar-grp .mce-toolbar.mce-last").is(":visible")?n.height(t-175):n.height(t-150);
|
2 |
+
})})},_savePosition:function(){var e=this._node.find(".fl-lightbox"),i={width:e.width(),height:e.height(),top:parseInt(e.css("top"))<0?"0px":e.css("top"),left:e.css("left")};e.closest(".fl-builder-ui-pinned").length||(FLBuilderConfig.userSettings.lightbox=i,FLBuilder.ajax({action:"save_lightbox_position",data:i}))},_restorePosition:function(){var e=this._node.find(".fl-lightbox"),i=this._getPositionSettings();i?(wleft=parseInt(i.left),wtop=parseInt(i.top),wleft>screen.width&&(i.left="100px"),wtop>screen.height&&(i.top="100px"),e.css(i)):e.css({top:25,left:FLBuilderConfig.isRtl?"-25":25})},_getPositionSettings:function(){var e=FLBuilderConfig.userSettings.lightbox;if(!e)return!1;var i=window.innerHeight,t=parseInt(e.height);return t>i&&i>546&&(e.height=i-50,e.top=0),e}}}(jQuery),function(e){FLIconSelector={_content:null,_lightbox:null,_rendered:!1,_filterText:"",open:function(e){FLIconSelector._rendered||FLIconSelector._render(),null===FLIconSelector._content?(FLIconSelector._lightbox.open('<div class="fl-builder-lightbox-loading"></div>'),FLBuilder.ajax({action:"render_icon_selector"},FLIconSelector._getContentComplete)):FLIconSelector._lightbox.open(),FLIconSelector._lightbox.on("icon-selected",function(i,t){FLIconSelector._lightbox.off("icon-selected"),FLIconSelector._lightbox.close(),e(t)})},_render:function(){FLIconSelector._lightbox=new FLLightbox({className:"fl-icon-selector"}),FLIconSelector._rendered=!0,FLBuilder.addHook("endEditingSession",function(){FLIconSelector._lightbox.close()})},_getContentComplete:function(i){var t=FLBuilder._jsonParse(i);FLIconSelector._content=t.html,FLIconSelector._lightbox.setContent(t.html),e(".fl-icons-filter-select").on("change",FLIconSelector._filter),e(".fl-icons-filter-text").on("keyup",FLIconSelector._filter),e(".fl-icons-list i").on("click",FLIconSelector._select),e(".fl-icon-selector-cancel").on("click",e.proxy(FLIconSelector._lightbox.close,FLIconSelector._lightbox))},_filter:function(){var i=e(".fl-icons-filter-select").val(),t=e(".fl-icons-filter-text").val();"all"==i?e(".fl-icons-section").show():(e(".fl-icons-section").hide(),e(".fl-"+i).show()),FLIconSelector._filterText=t,""!==t?e(".fl-icons-list i").each(FLIconSelector._filterIcon):e(".fl-icons-list i").show()},_filterIcon:function(){var i=e(this);-1==i.attr("class").indexOf(FLIconSelector._filterText)?i.hide():i.show()},_select:function(){var i=e(this).attr("class");FLIconSelector._lightbox.trigger("icon-selected",i)}}}(jQuery),function(e){FLStyleSheet=function(i){"object"==typeof i&&e.extend(this,i),this._createSheet()},FLStyleSheet.prototype={id:null,_sheet:null,_sheetElement:null,updateRule:function(e,i,t){for(var l=this._sheet.cssRules?this._sheet.cssRules:this._sheet.rules,n=null,s=0;s<l.length;s++)l[s].selectorText.toLowerCase().replace(/\s/g,"")==e.toLowerCase().replace(/\s/g,"")&&(n=l[s]);if(n)if("object"==typeof i)for(s in i)this.setProperty(n,s,i[s]);else this.setProperty(n,i,t);else this.addRule(e,i,t)},setProperty:function(e,i,t){var l="";e.style.setProperty?(t.indexOf("!important")>-1&&(l="important",t=t.replace("!important","").trim()),e.style.setProperty(i,t,l)):e.style[this._toCamelCase(i)]=t},addRule:function(e,i,t){var l="",n="";if("object"==typeof i)for(n in i)l+=n+":"+i[n]+";";else l=i+":"+t+";";this._sheet.insertRule?this._sheet.insertRule(e+" { "+l+" }",this._sheet.cssRules.length):this._sheet.addRule(e,l)},destroy:function(){this._sheetElement&&(this._sheetElement.remove(),this._sheetElement=null),this._sheet&&(this._sheet=null)},disable:function(){this._sheet.disabled=!0},enable:function(){this._sheet.disabled=!1},_createSheet:function(){var i=this.id?' id="'+this.id+'"':"",t=this.className?' class="'+this.className+'"':"";this._sheet||(this._sheetElement=e('<style type="text/css"'+i+t+"></style>"),e("body").append(this._sheetElement),this._sheet=this._sheetElement[0].sheet)},_toCamelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()})}}}(jQuery),function(e){FLBuilder={preview:null,_actionsLightbox:null,_ajaxQueue:[],_ajaxRequest:null,_colResizeData:null,_colResizing:!1,_contentClass:!1,_dragEnabled:!1,_dragging:!1,_dragInitialScrollTop:0,_exitUrl:null,_layout:null,_layoutQueue:[],_layoutSettingsCSSCache:null,_layoutSettingsCSSTimeout:null,_lightbox:null,_lightboxScrollbarTimeout:null,_loadedModuleAssets:[],_moduleHelpers:{},_multiplePhotoSelector:null,_newColParent:null,_newColPosition:0,_newColGroupParent:null,_newColGroupPosition:0,_newModuleParent:null,_newModulePosition:0,_newRowPosition:0,_selectedTemplateId:null,_selectedTemplateType:null,_singlePhotoSelector:null,_singleVideoSelector:null,_multipleAudiosSelector:null,_init:function(){FLBuilder._initJQueryReadyFix(),FLBuilder._initGlobalErrorHandling(),FLBuilder._initPostLock(),FLBuilder._initClassNames(),FLBuilder._initMediaUploader(),FLBuilder._initOverflowFix(),FLBuilder._initScrollbars(),FLBuilder._initLightboxes(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._initStrings(),FLBuilder._initTipTips(),FLBuilder._initTinyMCE(),FLBuilder._bindEvents(),FLBuilder._bindOverlayEvents(),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder.addHook("didInitUI",FLBuilder._showTourOrTemplates.bind(FLBuilder)),FLBuilder.addHook("endEditingSession",FLBuilder._doStats.bind(this)),FLBuilder.triggerHook("init")},_initJQueryReadyFix:function(){FLBuilderConfig.debug||(jQuery.fn.oldReady=jQuery.fn.ready,jQuery.fn.ready=function(i){return jQuery.fn.oldReady(function(){try{"function"==typeof i&&i(e)}catch(t){FLBuilder.logError(t)}})})},_initGlobalErrorHandling:function(){FLBuilderConfig.debug||(window.onerror=function(e,i,t,l,n){return FLBuilder.logGlobalError(e,i,t,l,n),!0})},_initPostLock:function(){"undefined"!=typeof wp.heartbeat&&(wp.heartbeat.interval(30),wp.heartbeat.enqueue("fl_builder_post_lock",{post_id:FLBuilderConfig.postId}))},_initClassNames:function(){e("html").addClass("fl-builder-edit"),e("body").addClass("fl-builder"),FLBuilderConfig.simpleUi&&e("body").addClass("fl-builder-simple"),FLBuilder._contentClass=".fl-builder-content-"+FLBuilderConfig.postId,e(FLBuilder._contentClass).addClass("fl-builder-content-editing")},_initMediaUploader:function(){wp.media.model.settings.post.id=FLBuilderConfig.postId},_initOverflowFix:function(){e(FLBuilder._contentClass).parents().css("overflow","visible")},_initScrollbars:function(){var i=e(".fl-nanoscroller").nanoScroller({alwaysVisible:!0,preventPageScrolling:!0,paneClass:"fl-nanoscroller-pane",sliderClass:"fl-nanoscroller-slider",contentClass:"fl-nanoscroller-content"}),t=i.filter(".fl-builder-settings-fields"),l=t.find(".fl-nanoscroller-pane");if(l.length){var n=l.get(0).style.display,s=t.find(".fl-nanoscroller-content");"none"===n?s.removeClass("has-scrollbar"):s.addClass("has-scrollbar")}},_initSortables:function(){var i={appendTo:"body",cursor:"move",cursorAt:{left:85,top:20},distance:1,helper:FLBuilder._blockDragHelper,start:FLBuilder._blockDragStart,sort:FLBuilder._blockDragSort,change:FLBuilder._blockDragChange,stop:FLBuilder._blockDragStop,placeholder:"fl-builder-drop-zone",tolerance:"intersect"},t="",l="",n="";n="row"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-content":"column"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-col-drop-target, "+FLBuilder._contentClass+" .fl-col-content":FLBuilder._contentClass+" .fl-row-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col:not(.fl-builder-node-loading):not(.fl-node-global) .fl-col-content",l="row"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target":FLBuilder._contentClass+" .fl-row-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target",t=FLBuilderConfig.nestedColumns?n:"row"==FLBuilderConfig.userTemplateType?FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target":FLBuilder._contentClass+" .fl-row-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-group-drop-target, "+FLBuilder._contentClass+" .fl-row:not(.fl-builder-node-loading) .fl-col-drop-target",e(".fl-builder-rows").sortable(e.extend({},i,{connectWith:t,items:".fl-builder-block-row",stop:FLBuilder._rowDragStop})),e(".fl-builder-row-templates").sortable(e.extend({},i,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",items:".fl-builder-block-row-template",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-saved-rows").sortable(e.extend({},i,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:FLBuilder._contentClass+" .fl-row-drop-target",items:".fl-builder-block-saved-row",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-saved-columns").sortable(e.extend({},i,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:l,items:".fl-builder-block-saved-column",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-modules, .fl-builder-widgets").sortable(e.extend({},i,{connectWith:n,items:".fl-builder-block-module",stop:FLBuilder._moduleDragStop})),e(".fl-builder-module-templates").sortable(e.extend({},i,{connectWith:n,items:".fl-builder-block-module-template",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-builder-saved-modules").sortable(e.extend({},i,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:n,items:".fl-builder-block-saved-module",stop:FLBuilder._nodeTemplateDragStop})),e(".fl-row-sortable-proxy").sortable(e.extend({},i,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",helper:FLBuilder._rowDragHelper,start:FLBuilder._rowDragStart,stop:FLBuilder._rowDragStop})),e(".fl-col-sortable-proxy").sortable(e.extend({},i,{connectWith:n,helper:FLBuilder._colDragHelper,start:FLBuilder._colDragStart,stop:FLBuilder._colDragStop})),e(FLBuilder._contentClass+" .fl-col-content").sortable(e.extend({},i,{connectWith:n,handle:".fl-module-overlay .fl-block-overlay-actions .fl-block-move",helper:FLBuilder._moduleDragHelper,items:".fl-module, .fl-col-group",start:FLBuilder._moduleDragStart,stop:FLBuilder._moduleDragStop})),e(FLBuilder._contentClass+" .fl-row-drop-target").sortable(i),e(FLBuilder._contentClass+" .fl-col-group-drop-target").sortable(i),e(FLBuilder._contentClass+" .fl-col-drop-target").sortable(i)},_refreshSortables:function(){e(".ui-sortable").sortable("refresh")},_initStrings:function(){e.validator.messages.required=FLBuilderStrings.validateRequiredMessage},_bindEvents:function(){$excludedLinks=e(".fl-builder-bar a, .fl-builder--content-library-panel a, .fl-page-nav .nav a"),e("a").not($excludedLinks).on("click",FLBuilder._preventDefault),e(".fl-page-nav .nav a").on("click",FLBuilder._headerLinkClicked),e("body").delegate(".fl-builder-content a","click",FLBuilder._preventDefault),e("body").delegate("button.fl-builder-button","mouseup",this._buttonMouseUp.bind(this)),e(document).on("heartbeat-tick",FLBuilder._initPostLock),e(window).on("beforeunload",FLBuilder._warnBeforeUnload),e("body").delegate(".fl-builder-has-submenu","click",FLBuilder._submenuParentClicked),e("body").delegate(".fl-builder-has-submenu a","click",FLBuilder._submenuChildClicked),e("body").delegate(".fl-builder-submenu","mouseenter",FLBuilder._submenuMouseenter),e("body").delegate(".fl-builder-submenu","mouseleave",FLBuilder._submenuMouseleave),e("body").delegate(".fl-builder-submenu .fl-builder-has-submenu","mouseenter",FLBuilder._submenuNestedParentMouseenter),e(".fl-builder-panel-actions .fl-builder-panel-close").on("click",FLBuilder._closePanel),e(".fl-builder-blocks-section-title").on("click",FLBuilder._blockSectionTitleClicked),e("body").delegate(".fl-builder-node-template-actions","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-edit","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-delete","mousedown",FLBuilder._stopPropagation),e("body").delegate(".fl-builder-node-template-edit","click",FLBuilder._editNodeTemplateClicked),e("body").delegate(".fl-builder-node-template-delete","click",FLBuilder._deleteNodeTemplateClicked),e("body").delegate(".fl-builder-block","mousedown",FLBuilder._blockDragInit),e("body").on("mouseup",FLBuilder._blockDragCancel),e("body").delegate(".fl-builder-actions .fl-builder-cancel-button","click",FLBuilder._cancelButtonClicked),e("body").delegate(".fl-builder-save-user-template-button","click",FLBuilder._saveUserTemplateClicked),e("body").delegate(".fl-builder-duplicate-layout-button","click",FLBuilder._duplicateLayoutClicked),e("body").delegate(".fl-builder-layout-settings-button","click",FLBuilder._layoutSettingsClicked),e("body").delegate(".fl-builder-layout-settings .fl-builder-settings-save","click",FLBuilder._saveLayoutSettingsClicked),e("body").delegate(".fl-builder-layout-settings .fl-builder-settings-cancel","click",FLBuilder._cancelLayoutSettingsClicked),e("body").delegate(".fl-builder-global-settings-button","click",FLBuilder._globalSettingsClicked),e("body").delegate(".fl-builder-global-settings .fl-builder-settings-save","click",FLBuilder._saveGlobalSettingsClicked),e("body").delegate(".fl-builder-global-settings .fl-builder-settings-cancel","click",FLBuilder._cancelLayoutSettingsClicked),e("body").delegate(".fl-user-template","click",FLBuilder._userTemplateClicked),e("body").delegate(".fl-user-template-edit","click",FLBuilder._editUserTemplateClicked),e("body").delegate(".fl-user-template-delete","click",FLBuilder._deleteUserTemplateClicked),e("body").delegate(".fl-builder-template-replace-button","click",FLBuilder._templateReplaceClicked),e("body").delegate(".fl-builder-template-append-button","click",FLBuilder._templateAppendClicked),e("body").delegate(".fl-builder-template-actions .fl-builder-cancel-button","click",FLBuilder._templateCancelClicked),e("body").delegate(".fl-builder-user-template-settings .fl-builder-settings-save","click",FLBuilder._saveUserTemplateSettings),e("body").delegate(".fl-builder-help-tour-button","click",FLBuilder._startHelpTour),e("body").delegate(".fl-builder-knowledge-base-button","click",FLBuilder._viewKnowledgeBaseClicked),e("body").delegate(".fl-builder-forums-button","click",FLBuilder._visitForumsClicked),e("body").delegate(".fl-builder-no-tour-button","click",FLBuilder._noTourButtonClicked),e("body").delegate(".fl-builder-yes-tour-button","click",FLBuilder._yesTourButtonClicked),e("body").delegate(".fl-builder-alert-close","click",FLBuilder._alertClose),e("body").delegate(".fl-block-overlay","contextmenu",FLBuilder._onContextmenu),e("body").delegate(".fl-row-overlay .fl-block-remove","click",FLBuilder._deleteRowClicked),e("body").delegate(".fl-row-overlay .fl-block-copy","click",FLBuilder._rowCopyClicked),e("body").delegate(".fl-row-overlay .fl-block-move","mousedown",FLBuilder._rowDragInit),e("body").delegate(".fl-row-overlay .fl-block-settings","click",FLBuilder._rowSettingsClicked),e("body").delegate(".fl-row-overlay","click",FLBuilder._rowSettingsClicked),e("body").delegate(".fl-builder-row-settings .fl-builder-settings-save","click",FLBuilder._saveSettings),e("body").delegate(".fl-block-col-submenu .fl-block-row-reset","click",FLBuilder._resetRowWidthClicked),e("body").delegate(".fl-col-overlay .fl-block-move","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-block-col-copy","click",FLBuilder._copyColClicked),e("body").delegate(".fl-col-overlay .fl-block-remove","click",FLBuilder._deleteColClicked),e("body").delegate(".fl-col-overlay .fl-block-settings","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-col-overlay","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-builder-col-settings .fl-builder-settings-save","click",FLBuilder._saveSettings),e("body").delegate(".fl-block-col-submenu .fl-block-col-move","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-block-col-submenu .fl-block-col-edit","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-block-col-submenu .fl-block-col-delete","click",FLBuilder._deleteColClicked),e("body").delegate(".fl-block-col-submenu .fl-block-col-reset","click",FLBuilder._resetColumnWidthsClicked),e("body").delegate(".fl-block-col-submenu li","mouseenter",FLBuilder._showColHighlightGuide),e("body").delegate(".fl-block-col-submenu li","mouseleave",FLBuilder._removeColHighlightGuides),e("body").delegate(".fl-block-col-submenu .fl-block-col-move-parent","mousedown",FLBuilder._colDragInit),e("body").delegate(".fl-block-col-submenu .fl-block-col-edit-parent","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-module-overlay .fl-block-remove","click",FLBuilder._deleteModuleClicked),e("body").delegate(".fl-module-overlay .fl-block-copy","click",FLBuilder._moduleCopyClicked),e("body").delegate(".fl-module-overlay .fl-block-move","mousedown",FLBuilder._blockDragInit),e("body").delegate(".fl-module-overlay .fl-block-settings","click",FLBuilder._moduleSettingsClicked),e("body").delegate(".fl-module-overlay","click",FLBuilder._moduleSettingsClicked),e("body").delegate(".fl-builder-module-settings .fl-builder-settings-save","click",FLBuilder._saveModuleClicked),e("body").delegate(".fl-module-overlay .fl-block-col-settings","click",FLBuilder._colSettingsClicked),e("body").delegate(".fl-builder-settings-save-as","click",FLBuilder._showNodeTemplateSettings),e("body").delegate(".fl-builder-node-template-settings .fl-builder-settings-save","click",FLBuilder._saveNodeTemplate),e("body").delegate(".fl-builder-settings-tabs a","click",FLBuilder._settingsTabClicked),e("body").delegate(".fl-builder-settings-tabs a","show",FLBuilder._calculateSettingsTabsOverflow),e("body").delegate(".fl-builder-settings-tabs a","hide",FLBuilder._calculateSettingsTabsOverflow),e("body").delegate(".fl-builder-settings-cancel","click",FLBuilder._settingsCancelClicked),e("body").delegate(".fl-builder-settings-tabs-overflow-menu > a","click",FLBuilder._settingsTabsToOverflowMenuItemClicked.bind(this)),e("body").delegate(".fl-builder-settings-tabs-more","click",FLBuilder._toggleTabsOverflowMenu.bind(this)),e("body").delegate(".fl-builder-settings-tabs-overflow-click-mask","click",FLBuilder._hideTabsOverflowMenu.bind(this)),e("body").delegate(".fl-help-tooltip-icon","mouseover",FLBuilder._showHelpTooltip),e("body").delegate(".fl-help-tooltip-icon","mouseout",FLBuilder._hideHelpTooltip),e("body").delegate(".fl-builder-field-add","click",FLBuilder._addFieldClicked),e("body").delegate(".fl-builder-field-copy","click",FLBuilder._copyFieldClicked),e("body").delegate(".fl-builder-field-delete","click",FLBuilder._deleteFieldClicked),e("body").delegate(".fl-photo-field .fl-photo-select","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-edit","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-replace","click",FLBuilder._selectSinglePhoto),e("body").delegate(".fl-photo-field .fl-photo-remove","click",FLBuilder._singlePhotoRemoved),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-select","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-edit","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-multiple-photos-field .fl-multiple-photos-add","click",FLBuilder._selectMultiplePhotos),e("body").delegate(".fl-video-field .fl-video-select","click",FLBuilder._selectSingleVideo),e("body").delegate(".fl-video-field .fl-video-replace","click",FLBuilder._selectSingleVideo),e("body").delegate(".fl-video-field .fl-video-remove","click",FLBuilder._singleVideoRemoved),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-select","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-edit","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-multiple-audios-field .fl-multiple-audios-add","click",FLBuilder._selectMultipleAudios),e("body").delegate(".fl-icon-field .fl-icon-select","click",FLBuilder._selectIcon),e("body").delegate(".fl-icon-field .fl-icon-replace","click",FLBuilder._selectIcon),e("body").delegate(".fl-icon-field .fl-icon-remove","click",FLBuilder._removeIcon),e("body").delegate(".fl-form-field .fl-form-field-edit","click",FLBuilder._formFieldClicked),e("body").delegate(".fl-form-field-settings .fl-builder-settings-save","click",FLBuilder._saveFormFieldClicked),e("body").delegate(".fl-layout-field-option","click",FLBuilder._layoutFieldClicked),e("body").delegate(".fl-link-field-select","click",FLBuilder._linkFieldSelectClicked),e("body").delegate(".fl-link-field-search-cancel","click",FLBuilder._linkFieldSelectCancelClicked),e("body").delegate(".fl-loop-data-source-select select[name=data_source]","change",FLBuilder._loopDataSourceChange),e("body").delegate(".fl-custom-query select[name=post_type]","change",FLBuilder._customQueryPostTypeChange),e("body").delegate(".fl-text-field-add-value","change",FLBuilder._textFieldAddValueSelectChange),e("body").delegate(".fl-field input[type=number]","focus",FLBuilder._onNumberFieldFocus),e("body").delegate(".fl-field input[type=number]","blur",FLBuilder._onNumberFieldBlur),FLBuilder.addHook("didCompleteAJAX",FLBuilder._refreshSettingsPreviewReference),FLBuilder.addHook("didRenderLayoutComplete",FLBuilder._refreshSettingsPreviewReference)},_unbindEvents:function(){e("a").off("click",FLBuilder._preventDefault),e(".fl-page-nav .nav a").off("click",FLBuilder._headerLinkClicked),e("body").undelegate(".fl-builder-content a","click",FLBuilder._preventDefault)},_rebindEvents:function(){e("a").on("click",FLBuilder._preventDefault),e(".fl-page-nav .nav a").on("click",FLBuilder._headerLinkClicked),e("body").delegate(".fl-builder-content a","click",FLBuilder._preventDefault)},_bindOverlayEvents:function(){var i=e(FLBuilder._contentClass);i.delegate(".fl-row","mouseenter",FLBuilder._rowMouseenter),i.delegate(".fl-row","mouseleave",FLBuilder._rowMouseleave),i.delegate(".fl-row-overlay","mouseleave",FLBuilder._rowMouseleave),i.delegate(".fl-col","mouseenter",FLBuilder._colMouseenter),i.delegate(".fl-col","mouseleave",FLBuilder._colMouseleave),i.delegate(".fl-module","mouseenter",FLBuilder._moduleMouseenter),i.delegate(".fl-module","mouseleave",FLBuilder._moduleMouseleave)},_destroyOverlayEvents:function(){var i=e(FLBuilder._contentClass);i.undelegate(".fl-row","mouseenter",FLBuilder._rowMouseenter),i.undelegate(".fl-row","mouseleave",FLBuilder._rowMouseleave),i.undelegate(".fl-row-overlay","mouseleave",FLBuilder._rowMouseleave),i.undelegate(".fl-col","mouseenter",FLBuilder._colMouseenter),i.undelegate(".fl-col","mouseleave",FLBuilder._colMouseleave),i.undelegate(".fl-module","mouseenter",FLBuilder._moduleMouseenter),i.undelegate(".fl-module","mouseleave",FLBuilder._moduleMouseleave)},_onContextmenu:function(i){e(this).hide()},_preventDefault:function(e){e.preventDefault()},_stopPropagation:function(e){e.stopPropagation()},_headerLinkClicked:function(i){var t=e(this),l=t.attr("href");this.hash||(i.preventDefault(),FLBuilderConfig.isUserTemplate||(FLBuilder._exitUrl=l.indexOf("?")>-1?l:l+"?fl_builder",FLBuilder.triggerHook("triggerDone")))},_warnBeforeUnload:function(){var i=e(".fl-builder-row-settings").length>0,t=e(".fl-builder-col-settings").length>0,l=e(".fl-builder-module-settings").length>0;if(i||t||l)return FLBuilderStrings.unloadWarning},_initTipTips:function(){e(".fl-tip:not(.fl-has-tip)").each(function(){var i=e(this);i.addClass("fl-has-tip"),void 0==i.attr("data-title")&&i.attr("data-title",i.attr("title"))}).tipTip({defaultPosition:"top",delay:1e3})},_hideTipTips:function(){e("#tiptip_holder").stop().hide()},_submenuParentClicked:function(i){var t=e("body"),l=e(this),n=l.find(".fl-builder-submenu");l.hasClass("fl-builder-submenu-open")?(t.removeClass("fl-builder-submenu-open"),l.removeClass("fl-builder-submenu-open"),l.removeClass("fl-builder-submenu-right")):(l.offset().left+n.width()>e(window).width()&&l.addClass("fl-builder-submenu-right"),t.addClass("fl-builder-submenu-open"),l.addClass("fl-builder-submenu-open")),n.closest(".fl-row-overlay").addClass("fl-row-menu-active"),FLBuilder._hideTipTips(),i.preventDefault(),i.stopPropagation()},_submenuChildClicked:function(i){var t=e("body"),l=e(this).parents(".fl-builder-has-submenu");l.parents(".fl-builder-has-submenu").length||(t.removeClass("fl-builder-submenu-open"),l.removeClass("fl-builder-submenu-open"))},_submenuMouseenter:function(i){var t=e(this),l=t.data("timeout");"undefined"!=typeof l&&clearTimeout(l)},_submenuMouseleave:function(i){var t=e("body"),l=e(this),n=setTimeout(function(){t.removeClass("fl-builder-submenu-open"),l.closest(".fl-builder-has-submenu").removeClass("fl-builder-submenu-open")},500);l.closest(".fl-row-overlay").removeClass("fl-row-menu-active"),l.data("timeout",n)},_submenuNestedParentMouseenter:function(i){var t=e(this),l=t.find(".fl-builder-submenu");t.width()+t.offset().left+l.width()>e(window).width()&&t.addClass("fl-builder-submenu-right")},_closeAllSubmenus:function(){e(".fl-builder-submenu-open").removeClass("fl-builder-submenu-open")},_upgradeClicked:function(){window.open(FLBuilderConfig.upgradeUrl)},_buttonMouseUp:function(i){e(i.currentTarget).blur()},_closePanel:function(){FLBuilder.triggerHook("hideContentPanel")},_showPanel:function(){FLBuilder.triggerHook("showContentPanel")},_togglePanel:function(){FLBuilder.triggerHook("toggleContentPanel")},_blockSectionTitleClicked:function(){var i=e(this),t=i.parent();t.hasClass("fl-active")?t.removeClass("fl-active"):(e(".fl-builder-blocks-section").removeClass("fl-active"),t.addClass("fl-active")),FLBuilder._initScrollbars()},_publishLayout:function(e){if(FLBuilder._triggerSettingsSave(!1,!0)){if(_.isUndefined(e))var e=!0;FLBuilder.ajax({action:"save_layout"},this._onPublishComplete.bind(this,e))}},_publishButtonClicked:function(e){FLBuilder._publishLayout(e)},_onPublishComplete:function(i){i&&(FLBuilderConfig.shouldRefreshOnPublish?FLBuilder._exit():FLBuilder._exitWithoutRefresh()),e("#wp-admin-bar-fl-builder-frontend-edit-link .fl-builder-admin-bar-status-dot").css("color","#6bc373"),FLBuilder.triggerHook("didPublishLayout")},_draftButtonClicked:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"save_draft"},FLBuilder._exit)},_discardButtonClicked:function(){var e=confirm(FLBuilderStrings.discardMessage);e?(FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"clear_draft_layout"},FLBuilder._exit)):FLBuilder.triggerHook("didCancelDiscard")},_cancelButtonClicked:function(){FLBuilder._exitUrl=null,FLBuilder._actionsLightbox.close()},_exit:function(){var e=window.location.href;try{var i="undefined"!=typeof window.opener.FLBuilder}catch(t){var i=!1}FLBuilderConfig.isUserTemplate&&"undefined"!=typeof window.opener&&window.opener?(i&&("undefined"==typeof FLBuilderGlobalNodeId?window.opener.FLBuilder._updateLayout():window.opener.FLBuilder._updateNode(FLBuilderGlobalNodeId)),window.close()):(FLBuilder._exitUrl?e=FLBuilder._exitUrl:(e=e.replace("?fl_builder&","?"),e=e.replace("?fl_builder",""),e=e.replace("&fl_builder","")),window.location.href=e)},_exitWithoutRefresh:function(){window.location.href;try{var e="undefined"!=typeof window.opener.FLBuilder}catch(i){var e=!1}FLBuilderConfig.isUserTemplate&&e&&window.opener?(e&&("undefined"==typeof FLBuilderGlobalNodeId?window.opener.FLBuilder._updateLayout():window.opener.FLBuilder._updateNode(FLBuilderGlobalNodeId)),window.close()):FLBuilder.triggerHook("endEditingSession")},_duplicateLayoutClicked:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"duplicate_post"},FLBuilder._duplicateLayoutComplete)},_duplicateLayoutComplete:function(e){var i=FLBuilderConfig.adminUrl;window.location.href=i+"post.php?post="+e+"&action=edit"},_layoutSettingsClicked:function(){FLBuilderSettingsForms.render({id:"layout",className:"fl-builder-layout-settings",settings:FLBuilderSettingsConfig.settings.layout},function(){FLBuilder._layoutSettingsInitCSS()})},_layoutSettingsInitCSS:function(){var i=e(".fl-builder-settings #fl-field-css textarea:not(.ace_text-input)");i.on("change",FLBuilder._layoutSettingsCSSChanged),FLBuilder._layoutSettingsCSSCache=i.val()},_layoutSettingsCSSChanged:function(){FLBuilder._layoutSettingsCSSTimeout&&clearTimeout(FLBuilder._layoutSettingsCSSTimeout),FLBuilder._layoutSettingsCSSTimeout=setTimeout(e.proxy(FLBuilder._layoutSettingsCSSDoChange,this),600)},_layoutSettingsCSSDoChange:function(){var i=e(".fl-builder-settings"),t=e(this),l=t.parents("#fl-field-css");l.find(".ace_error").length>0||(i.hasClass("fl-builder-layout-settings")?e("#fl-builder-layout-css").html(t.val()):e("#fl-builder-global-css").html(t.val()),FLBuilder._layoutSettingsCSSTimeout=null)},_saveLayoutSettingsClicked:function(){for(var i=e(this).closest(".fl-builder-settings"),t=i.serializeArray(),l={},n=0;n<t.length;n++)l[t[n].name]=t[n].value;FLBuilder.showAjaxLoader(),FLBuilder._lightbox.close(),FLBuilder._layoutSettingsCSSCache=null,FLBuilder.ajax({action:"save_layout_settings",settings:l},function(){FLBuilder.triggerHook("didSaveLayoutSettingsComplete",l),FLBuilder._updateLayout()})},_cancelLayoutSettingsClicked:function(){var i=e(".fl-builder-settings");i.hasClass("fl-builder-layout-settings")?e("#fl-builder-layout-css").html(FLBuilder._layoutSettingsCSSCache):e("#fl-builder-global-css").html(FLBuilder._layoutSettingsCSSCache),FLBuilder._layoutSettingsCSSCache=null},_globalSettingsClicked:function(){FLBuilderSettingsForms.render({id:"global",className:"fl-builder-global-settings",settings:FLBuilderSettingsConfig.settings.global},function(){FLBuilder._layoutSettingsInitCSS()})},_saveGlobalSettingsClicked:function(){var i=e(this).closest(".fl-builder-settings"),t=i.validate().form(),l=FLBuilder._getSettings(i);t&&(FLBuilder.showAjaxLoader(),FLBuilder._layoutSettingsCSSCache=null,FLBuilder.ajax({action:"save_global_settings",settings:l},FLBuilder._saveGlobalSettingsComplete),FLBuilder._lightbox.close())},_saveGlobalSettingsComplete:function(e){FLBuilderConfig.global=FLBuilder._jsonParse(e),FLBuilder.triggerHook("didSaveGlobalSettingsComplete",FLBuilderConfig.global),FLBuilder._updateLayout()},_initTemplateSelector:function(){var i=e(FLBuilder._contentClass).find(".fl-row"),t=i.length>0;t||FLBuilder.ContentPanel.show("modules")},_requestTemplateInsert:function(e,i){FLBuilder.layoutHasContent()?0==e?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate(0,!1,i)):(FLBuilder._selectedTemplateId=e,FLBuilder._selectedTemplateType=i,FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(e,!1,i)},_showTemplateActions:function(){var e=[];e[10]={key:"template-replace",label:FLBuilderStrings.templateReplace},e[20]={key:"template-append",label:FLBuilderStrings.templateAppend},FLBuilder._showActionsLightbox({className:"fl-builder-template-actions",title:FLBuilderStrings.actionsLightboxTitle,buttons:e})},_templateReplaceClicked:function(){confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._actionsLightbox.close(),FLBuilder._applyTemplate(FLBuilder._selectedTemplateId,!1,FLBuilder._selectedTemplateType));
|
3 |
+
},_templateAppendClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._applyTemplate(FLBuilder._selectedTemplateId,!0,FLBuilder._selectedTemplateType)},_templateCancelClicked:function(){FLBuilder.triggerHook("showContentPanel")},_applyTemplate:function(e,i,t){i="undefined"!=typeof i&&i?"1":"0",t="undefined"==typeof t?"core":t,FLBuilder._lightbox.close(),FLBuilder.showAjaxLoader(),"core"==t?FLBuilder.ajax({action:"apply_template",template_id:e,append:i},FLBuilder._applyTemplateComplete):FLBuilder.ajax({action:"apply_user_template",template_id:e,append:i},FLBuilder._applyUserTemplateComplete),FLBuilder.triggerHook("didApplyTemplate")},_applyTemplateComplete:function(e){var i=FLBuilder._jsonParse(e);FLBuilder._renderLayout(i.layout),FLBuilder.triggerHook("didApplyTemplateComplete",i.config)},_applyUserTemplateComplete:function(i){var t=FLBuilder._jsonParse(i);null!==t.layout_css&&e("#fl-builder-layout-css").html(t.layout_css),FLBuilder._renderLayout(t.layout),FLBuilder.triggerHook("didApplyTemplateComplete",t.config)},_saveUserTemplateClicked:function(){FLBuilderSettingsForms.render({id:"user_template",className:"fl-builder-user-template-settings",rules:{name:{required:!0}}})},_saveUserTemplateSettings:function(){var i=e(this).closest(".fl-builder-settings"),t=i.validate().form(),l=FLBuilder._getSettings(i);t&&(FLBuilder.ajax({action:"save_user_template",settings:l},FLBuilder._saveUserTemplateSettingsComplete),FLBuilder._lightbox.close())},_saveUserTemplateSettingsComplete:function(e){if(e){var e=FLBuilder._jsonParse(e);FLBuilderConfig.contentItems.template.push(e),FLBuilder.triggerHook("contentItemsChanged")}},_userTemplateClicked:function(){var i=e(this).attr("data-id");e(FLBuilder._contentClass).children(".fl-row").length>0?"blank"==i?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate("blank",!1,"user")):(FLBuilder._selectedTemplateId=i,FLBuilder._selectedTemplateType="user",FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(i,!1,"user")},_editUserTemplateClicked:function(i){i.preventDefault(),i.stopPropagation(),window.open(e(this).attr("href"))},_deleteUserTemplateClicked:function(i){var t=e(this).closest(".fl-user-template"),l=t.attr("data-id"),n=(e(".fl-user-template[data-id="+l+"]"),null),s=null,o=null;if(confirm(FLBuilderStrings.deleteTemplate)){FLBuilder.ajax({action:"delete_user_template",template_id:l});for(s in FLBuilderConfig.contentItems.template)o=FLBuilderConfig.contentItems.template[s],o.postId==l&&(n=s);_.isNull(n)||(FLBuilderConfig.contentItems.template.splice(n,1),FLBuilder.triggerHook("contentItemsChanged"))}i.stopPropagation()},_viewKnowledgeBaseClicked:function(){window.open(FLBuilderConfig.help.knowledge_base_url)},_visitForumsClicked:function(){window.open(FLBuilderConfig.help.forums_url)},_showTourOrTemplates:function(){FLBuilderConfig.simpleUi||FLBuilderConfig.isUserTemplate||(FLBuilderConfig.help.tour&&FLBuilderConfig.newUser?FLBuilder._showTourLightbox():FLBuilder._initTemplateSelector())},_doStats:function(){1==FLBuilderConfig.statsEnabled&&(args={"screen-width":screen.width,"screen-height":screen.height,"pixel-ratio":window.devicePixelRatio,"user-agent":window.navigator.userAgent,isrtl:FLBuilderConfig.isRtl},FLBuilder.ajax({action:"save_browser_stats",browser_data:args}))},_showTourLightbox:function(){var e=wp.template("fl-tour-lightbox");FLBuilder._actionsLightbox.open(e())},_noTourButtonClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilder._initTemplateSelector()},_yesTourButtonClicked:function(){FLBuilder._actionsLightbox.close(),FLBuilderTour.start()},_startHelpTour:function(){FLBuilder._actionsLightbox.close(),FLBuilderTour.start()},_setupEmptyLayout:function(){var i=e(FLBuilder._contentClass);FLBuilderConfig.isUserTemplate&&"module"==FLBuilderConfig.userTemplateType||FLBuilderConfig.isUserTemplate&&"column"==FLBuilderConfig.userTemplateType||(i.removeClass("fl-builder-empty"),i.find(".fl-builder-empty-message").remove(),i.find(".fl-row, .fl-builder-block").length||(i.addClass("fl-builder-empty"),i.append('<span class="fl-builder-empty-message">'+FLBuilderStrings.emptyMessage+"</span>"),FLBuilder._initSortables()))},_updateNode:function(i,t){e(".fl-node-"+i).length&&(FLBuilder._showNodeLoading(i),FLBuilder.ajax({action:"render_node",node_id:i},function(e){FLBuilder._renderLayout(FLBuilder._jsonParse(e),t)}.bind(this)))},_updateLayout:function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"render_layout"},FLBuilder._renderLayout)},_renderLayout:function(e,i){FLBuilder._layout?FLBuilder._layoutQueue.push({data:e,callback:i}):FLBuilder._layout=new FLBuilderAJAXLayout(e,i)},_renderLayoutComplete:function(){if(FLBuilder._layout&&(FLBuilder._layout._complete(),FLBuilder._layout=null),FLBuilder._layoutQueue.length){var e=FLBuilder._layoutQueue.shift();FLBuilder._layout=new FLBuilderAJAXLayout(e.data,e.callback)}},_resizeLayout:function(){e(window).trigger("resize"),"undefined"!=typeof YUI&&YUI().use("node-event-simulate",function(e){e.one(window).simulate("resize")})},layoutHasContent:function(){return e(FLBuilder._contentClass).children(".fl-row").length>0},_initMediaElements:function(){var i={};"undefined"!=typeof e.fn.mediaelementplayer&&("undefined"!=typeof _wpmejsSettings&&(i.pluginPath=_wpmejsSettings.pluginPath),e(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").mediaelementplayer(i))},_initDropTargets:function(){var i="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",t=e(FLBuilder._contentClass+" .fl-row"),l=null,n=e(FLBuilder._contentClass+" .fl-row"+i).find(".fl-col-group"),s=null,o=null,r="column"==FLBuilderConfig.userTemplateType?e(FLBuilder._contentClass+"> .fl-col").eq(0):null,a=0;for(e(".fl-col-drop-target").remove(),e(".fl-col-group-drop-target").remove(),e(".fl-row-drop-target").remove(),e(FLBuilder._contentClass).append('<div class="fl-drop-target fl-row-drop-target"></div>'),t.prepend('<div class="fl-drop-target fl-row-drop-target"></div>'),t.append('<div class="fl-drop-target fl-drop-target-last fl-row-drop-target fl-row-drop-target-last"></div>');a<t.length;a++)l=t.eq(a),0===l.find(".fl-col-group").length&&l.find(".fl-row-content").prepend('<div class="fl-drop-target fl-col-group-drop-target"></div>');for(r&&0===n.length&&(n=r.find(".fl-col-group"),r.append('<div class="fl-drop-target fl-col-drop-target"></div>'),r.append('<div class="fl-drop-target fl-drop-target-last fl-col-drop-target fl-col-drop-target-last"></div>')),a=0;a<n.length;a++)s=n.eq(a),o=s.find("> .fl-col"),s.hasClass("fl-col-group-nested")||(s.append('<div class="fl-drop-target fl-col-group-drop-target"></div>'),s.append('<div class="fl-drop-target fl-drop-target-last fl-col-group-drop-target fl-col-group-drop-target-last"></div>')),o.append('<div class="fl-drop-target fl-col-drop-target"></div>'),o.append('<div class="fl-drop-target fl-drop-target-last fl-col-drop-target fl-col-drop-target-last"></div>')},_blockDragHelper:function(e,i){var t=i.clone();return i.clone().insertAfter(i),t.addClass("fl-builder-block-drag-helper"),t},_blockDragInit:function(i){var t=e(i.currentTarget),l=null,n=e(window).scrollTop(),s=0;FLBuilder._dragEnabled=!0,FLBuilder._dragInitialScrollTop=n,t.closest("[data-node]").length>0?(l=t.closest("[data-node]"),l.addClass("fl-node-drag-init")):t.hasClass("fl-builder-block")&&e(".fl-row").each(function(){null===l&&e(this).offset().top-n>0&&(l=e(this))}),null!==l&&(s=l.offset().top-n),FLBuilder._highlightRowsAndColsForDrag(t),FLBuilder._adjustColHeightsForDrag(),FLBuilder._disableGlobalRows(),FLBuilder._disableGlobalCols(),FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays(),FLBuilder._initSortables(),e("body").addClass("fl-builder-dragging"),e(".fl-builder-empty-message").hide(),e(".fl-sortable-disabled").removeClass("fl-sortable-disabled"),s>0&&scrollTo(0,l.offset().top-s),FLBuilder.triggerHook("didInitDrag")},_blockDragStart:function(i,t){FLBuilder._dragging=!0,e(".fl-node-drag-init").removeClass("fl-node-drag-init"),FLBuilder.triggerHook("didStartDrag")},_blockDragSort:function(i,t){var l=t.placeholder.parent(),n=FLBuilderStrings.insert;FLBuilder._blockPreventSort(t.item,l)||(l.hasClass("fl-col-content")?n=t.item.hasClass("fl-builder-block-row")?t.item.find(".fl-builder-block-title").text():t.item.hasClass("fl-col-sortable-proxy-item")?FLBuilderStrings.column:t.item.hasClass("fl-builder-block-module")?t.item.find(".fl-builder-block-title").text():t.item.hasClass("fl-builder-block-saved-module")||t.item.hasClass("fl-builder-block-module-template")?t.item.find(".fl-builder-block-title").text():t.item.attr("data-name"):l.hasClass("fl-col-drop-target")?n="":l.hasClass("fl-col-group-drop-target")?n="":l.hasClass("fl-row-drop-target")&&(n=t.item.hasClass("fl-builder-block-row")?t.item.find(".fl-builder-block-title").text():t.item.hasClass("fl-builder-block-saved-row")?t.item.find(".fl-builder-block-title").text():t.item.hasClass("fl-builder-block-saved-column")?t.item.find(".fl-builder-block-title").text():t.item.hasClass("fl-row-sortable-proxy-item")?FLBuilderStrings.row:FLBuilderStrings.newRow),t.placeholder.html(n),t.item.hasClass("fl-node-global")||t.item.hasClass("fl-builder-block-global")||e(".fl-node-dragging").hasClass("fl-node-global")?t.placeholder.addClass("fl-builder-drop-zone-global"):t.placeholder.removeClass("fl-builder-drop-zone-global"))},_blockDragChange:function(e,i){i.placeholder.css("opacity","0"),i.placeholder.animate({opacity:"1"},100)},_blockPreventSort:function(i,t){var l=!1,n=i.hasClass("fl-builder-block-row"),s=i.hasClass("fl-col-sortable-proxy-item"),o=t.hasClass("fl-col-content"),r=t.hasClass("fl-col-drop-target"),a=t.parents(".fl-col-group:not(.fl-col-group-nested)"),d=t.parents(".fl-col-group-nested");return(n||s)&&o&&d.length>0&&(l=!0),o&&!t.find(".fl-module, .fl-col").length&&(n&&"1-col"==i.data("cols")?l=!0:s&&(l=!0)),n&&o&&e.inArray(i.data("cols"),["5-cols","6-cols"])>-1&&(l=!0),s&&e(".fl-node-dragging").find(".fl-col-group-nested").length>0&&(o||r&&d.length>0)&&(l=!0),r&&a.length>0&&0===d.length&&a.find("> .fl-col:visible").length>11&&(l=!0),r&&d.length>0&&d.find(".fl-col:visible").length>3&&(l=!0),l&&t.addClass("fl-sortable-disabled"),l},_blockDragStop:function(i,t){var l=e(window).scrollTop(),n=t.item.parent(),s=null;n.hasClass("fl-drop-target")&&n.closest("[data-node]").length?(n=n.closest("[data-node]"),s=n.offset().top-l):s=n.offset().top-l,n.hasClass("fl-builder-blocks-section-content")&&FLBuilder._showPanel(),FLBuilder._dragEnabled=!1,FLBuilder._dragging=!1,FLBuilder._bindOverlayEvents(),FLBuilder._removeEmptyRowAndColHighlights(),FLBuilder._highlightEmptyCols(),FLBuilder._enableGlobalRows(),FLBuilder._enableGlobalCols(),FLBuilder._setupEmptyLayout(),e("body").removeClass("fl-builder-dragging"),scrollTo(0,n.offset().top-s),FLBuilder.triggerHook("didStopDrag")},_blockDragCancel:function(){FLBuilder._dragEnabled&&!FLBuilder._dragging&&(FLBuilder._dragEnabled=!1,FLBuilder._dragging=!1,FLBuilder._bindOverlayEvents(),FLBuilder._removeEmptyRowAndColHighlights(),FLBuilder._highlightEmptyCols(),FLBuilder._enableGlobalRows(),FLBuilder._setupEmptyLayout(),e("body").removeClass("fl-builder-dragging"),e(".fl-node-drag-init").removeClass("fl-node-drag-init"),e(".fl-node-dragging").removeClass("fl-node-dragging"),scrollTo(0,FLBuilder._dragInitialScrollTop))},_reorderNode:function(e,i){FLBuilder.ajax({action:"reorder_node",node_id:e,position:i})},_moveNode:function(e,i,t){FLBuilder.ajax({action:"move_node",new_parent:e,node_id:i,position:t})},_removeAllOverlays:function(){FLBuilder._removeRowOverlays(),FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides(),FLBuilder._removeModuleOverlays(),FLBuilder._hideTipTips(),FLBuilder._closeAllSubmenus()},_appendOverlay:function(e,i){var t=0,l=null,n=e.hasClass("fl-row"),s=n?e.find("> .fl-row-content-wrap"):e.find("> .fl-node-content"),o={top:parseInt(s.css("margin-top"),10),bottom:parseInt(s.css("margin-bottom"),10)};return e.append(i),e.addClass("fl-block-overlay-active"),FLBuilder._initTipTips(),l=e.find("> .fl-block-overlay"),o.top<0&&(t=parseInt(l.css("top"),10),t=isNaN(t)?0:t,l.css("top",o.top+t+"px")),o.bottom<0&&(t=parseInt(l.css("bottom"),10),t=isNaN(t)?0:t,l.css("bottom",o.bottom+t+"px")),l},_buildOverlayOverflowMenu:function(e){var i=e.find(".fl-block-overlay-header"),t=e.find(".fl-block-overlay-actions"),l=e.find(".fl-block-has-rules"),n=t.data("original"),s=0,o=null,r=0,a=null,d=0,u=[],c=[],f=[],h=wp.template("fl-overlay-overflow-menu");for(void 0!=n&&(t.after(n),t.remove(),t=n),t.data("original",t.clone()),s=Math.floor(t[0].getBoundingClientRect().width)-8,o=t.find(" > i, > span.fl-builder-has-submenu"),l.length&&s+l.outerWidth()>i.outerWidth()&&(r+=l.outerWidth());d<o.length;d++)a=o.eq(d),r+=Math.floor(a[0].getBoundingClientRect().width),r>s?(c.push(a),a.remove()):u.push(a);if(c.length>0){for(u.length>0&&c.unshift(u.pop().remove()),d=0;d<c.length;d++)c[d].is(".fl-builder-has-submenu")?f.push({type:"submenu",label:c[d].find(".fa, .fas, .far").data("title"),submenu:c[d].find(".fl-builder-submenu")[0].outerHTML}):f.push({type:"action",label:c[d].data("title"),className:c[d].removeClass(function(e,i){return i.replace(/fl-block-([^\s]+)/,"")}).attr("class")});t.append(h(f)),FLBuilder._initTipTips()}},_removeRowOverlays:function(){e(".fl-row").removeClass("fl-block-overlay-active"),e(".fl-row-overlay").remove(),e(".fl-module").removeClass("fl-module-adjust-height"),e("body").removeClass("fl-builder-row-resizing"),FLBuilder._closeAllSubmenus()},_disableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&e(".fl-row.fl-node-global").addClass("fl-node-disabled")},_disableGlobalCols:function(){"column"!=FLBuilderConfig.userTemplateType&&e(".fl-row:not(.fl-node-global) .fl-col.fl-node-global").addClass("fl-node-disabled")},_enableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&e(".fl-node-disabled").removeClass("fl-node-disabled")},_enableGlobalCols:function(){"column"!=FLBuilderConfig.userTemplateType&&e(".fl-node-disabled").removeClass("fl-node-disabled")},_rowMouseenter:function(){var i=e(this),t=i.offset().top,l=null,n=null,s=wp.template("fl-row-overlay"),o=FLBuilderResponsiveEditing._mode;i.closest(".fl-builder-node-loading").length||i.hasClass("fl-block-overlay-active")||(n=FLBuilder._appendOverlay(i,s({node:i.attr("data-node"),global:i.hasClass("fl-node-global"),hasRules:i.hasClass("fl-node-has-rules")})),i.find(".fl-node-content:visible").each(function(){var i=e(this).offset().top;l=null===l||l>i?i:l}),null!==l&&l<t&&n.css("top",l-t-30+"px"),("default"===o&&n.offset().top<43||"default"!==o&&0===i.index())&&n.addClass("fl-row-overlay-header-bottom"),i.find(".fl-module").each(function(){var i=e(this);i.outerHeight(!0)<20&&i.addClass("fl-module-adjust-height")}),FLBuilder._buildOverlayOverflowMenu(n))},_rowMouseleave:function(i){var t=e(i.toElement)||e(i.relatedTarget),l=t.hasClass("fl-row-overlay"),n=t.closest(".fl-row-overlay").length>0,s=t.is("#tiptip_holder"),o=t.closest("#tiptip_holder").length>0;l||n||s||o||FLBuilder._removeRowOverlays()},_rowDragHelper:function(){return e('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.row+"</div>")},_rowDragInit:function(i){var t=e(i.target),l=e(".fl-row-sortable-proxy-item"),n=t.closest(".fl-row");n.addClass("fl-node-dragging"),FLBuilder._blockDragInit(i),i.target=l[0],l.trigger(i)},_rowDragStart:function(i,t){var l=e(FLBuilder._contentClass+" .fl-row"),n=e(".fl-node-dragging");1===l.length&&e(FLBuilder._contentClass).addClass("fl-builder-empty"),n.hide(),FLBuilder._blockDragStart(i,t)},_rowDragStop:function(i,t){var l=t.item,n=l.parent(),s=null,o=null,r=0;if(FLBuilder._blockDragStop(i,t),n.hasClass("fl-builder-rows"))return void l.remove();if(n.hasClass("fl-row-sortable-proxy"))return void e(".fl-node-dragging").removeClass("fl-node-dragging").show();if(l.hasClass("fl-builder-block")){if(n.hasClass("fl-sortable-disabled"))return l.remove(),void FLBuilder._showPanel();n.hasClass("fl-col-content")?FLBuilder._addColGroup(l.closest(".fl-col").attr("data-node"),l.attr("data-cols"),n.find("> .fl-module, .fl-col-group, .fl-builder-block").index(l)):n.hasClass("fl-col-drop-target")?FLBuilder._addCols(n.closest(".fl-col"),n.hasClass("fl-col-drop-target-last")?"after":"before",l.attr("data-cols"),n.closest(".fl-col-group-nested").length>0):n.hasClass("fl-col-group-drop-target")?(o=l.closest(".fl-col-group"),r=l.closest(".fl-row").find(".fl-row-content > .fl-col-group").index(o),FLBuilder._addColGroup(l.closest(".fl-row").attr("data-node"),l.attr("data-cols"),n.hasClass("fl-drop-target-last")?r+1:r)):(s=l.closest(".fl-row"),r=s.length?e(FLBuilder._contentClass+" > .fl-row").index(s):0,FLBuilder._addRow(l.attr("data-cols"),n.hasClass("fl-drop-target-last")?r+1:r)),l.remove(),FLBuilder._showPanel(),e(".fl-builder-modules").siblings(".fl-builder-blocks-section-title").eq(0).trigger("click")}else s=e(".fl-node-dragging").removeClass("fl-node-dragging").show(),n.parent().hasClass("fl-builder-content")||(n.hasClass("fl-drop-target-last")?n.parent().after(s):n.parent().before(s),FLBuilder._reorderNode(s.attr("data-node"),s.index())),e(".fl-row-sortable-proxy").append(t.item)},_addRow:function(i,t,l){FLBuilder._showNodeLoadingPlaceholder(e(FLBuilder._contentClass),t),FLBuilder._newRowPosition=t,FLBuilder.ajax({action:"render_new_row",cols:i,position:t,module:l},FLBuilder._addRowComplete)},_addRowComplete:function(i){var t="object"==typeof i?i:FLBuilder._jsonParse(i),l=e(FLBuilder._contentClass),n=e(t.html).data("node");t.nodeParent=l,t.nodePosition=FLBuilder._newRowPosition,FLBuilder._renderLayout(t,function(){FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+n)),FLBuilder.triggerHook("didAddRow",n)})},_deleteRowClicked:function(i){var t=e(this).closest(".fl-row"),l=null;t.find(".fl-module").length?(l=confirm(FLBuilderStrings.deleteRowMessage),l&&FLBuilder._deleteRow(t)):FLBuilder._deleteRow(t),FLBuilder._removeAllOverlays(),i.stopPropagation()},_deleteRow:function(e){var i=e.attr("data-node");FLBuilder.ajax({action:"delete_node",node_id:i}),e.empty(),e.remove(),FLBuilder._setupEmptyLayout(),FLBuilder._removeRowOverlays(),FLBuilder.triggerHook("didDeleteRow",i)},_rowCopyClicked:function(i){var t=e(window),l=e(this).closest(".fl-row"),n=l.attr("data-node"),s=l.clone(),o=e(".fl-builder-settings[data-node]"),r=o.attr("data-node"),a=r===n?l:l.find('[data-node="'+r+'"]'),d=null;o.length&&a.length&&(d=FLBuilder._getSettings(o),FLBuilderSettingsConfig.nodes[r]=d),s.addClass("fl-node-"+n+"-clone fl-builder-node-clone"),s.find(".fl-block-overlay").remove(),l.after(s),FLBuilder._showNodeLoading(n+"-clone"),t.scrollTop()+t.height()<s.offset().top&&e("html, body").animate({scrollTop:s.offset().top+s.height()-t.height()},500),FLBuilder.ajax({action:"copy_row",node_id:n,settings:d,settings_id:r},function(i){var t=FLBuilder._jsonParse(i);t.nodeParent=e(FLBuilder._contentClass),t.nodePosition=e(FLBuilder._contentClass+" > .fl-row").index(s),t.duplicatedRow=n,t.onAddNewHTML=function(){s.remove()},FLBuilder._rowCopyComplete(t)}),i.stopPropagation()},_rowCopyComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder.triggerHook("didDuplicateRow",{newNodeId:e.nodeId,oldNodeId:e.duplicatedRow})})},_rowSettingsClicked:function(i){var t=e(this),l=t.closest(".fl-row").attr("data-node"),n=t.closest(".fl-block-overlay-global").length>0,s=null;n&&"row"!=FLBuilderConfig.userTemplateType?FLBuilderConfig.userCanEditGlobalTemplates&&(s=window.open(e('.fl-row[data-node="'+l+'"]').attr("data-template-url")),s.FLBuilderGlobalNodeId=l):t.hasClass("fl-block-settings")&&FLBuilderSettingsForms.render({id:"row",nodeId:l,className:"fl-builder-row-settings",attrs:'data-node="'+l+'"',buttons:n||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:n?[FLBuilderStrings.global]:[],settings:FLBuilderSettingsConfig.nodes[l],preview:{type:"row"}},function(){e("#fl-field-width select").on("change",FLBuilder._rowWidthChanged),e("#fl-field-content_width select").on("change",FLBuilder._rowWidthChanged)}),i.stopPropagation()},_rowWidthChanged:function(){var i=e("#fl-field-width select").val(),t=e("#fl-field-content_width select").val(),l=e("#fl-field-max_content_width");"fixed"==i||"full"==i&&"fixed"==t?l.show():l.hide()},_resetRowWidthClicked:function(i){var t=e(this),l=t.closest(".fl-row"),n=l.attr("data-node"),s=l.find(".fl-row-content"),o=FLBuilderConfig.global.row_width+"px",r=e(".fl-builder-row-settings");l.hasClass("fl-row-fixed-width")&&l.css("max-width",o),s.css("max-width",o),r.length&&r.find("[name=max_content_width]").val(""),FLBuilder.ajax({action:"resize_row_content",node:n,width:""}),FLBuilder._closeAllSubmenus(),FLBuilder.triggerHook("didResetRowWidth",n),i.stopPropagation()},_highlightEmptyCols:function(){var i="row"==FLBuilderConfig.userTemplateType||"column"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",t=(e(FLBuilder._contentClass+" .fl-row"+i),e(FLBuilder._contentClass+" .fl-col"+i));t.removeClass("fl-col-highlight").find(".fl-col-content").css("height",""),t.each(function(){var i=e(this);0===i.find(".fl-module, .fl-col").length&&i.addClass("fl-col-highlight")})},_highlightRowsAndColsForDrag:function(i){var t="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)";"column"==FLBuilderConfig.userTemplateType&&(t=":not(:first)"),e(FLBuilder._contentClass+" .fl-row").addClass("fl-row-highlight"),i&&i.closest(".fl-row-overlay").length||e(FLBuilder._contentClass+" .fl-col"+t).addClass("fl-col-highlight")},_removeEmptyRowAndColHighlights:function(){e(".fl-row-highlight").removeClass("fl-row-highlight"),e(".fl-col-highlight").removeClass("fl-col-highlight")},_adjustColHeightsForDrag:function(){var i="row"==FLBuilderConfig.userTemplateType?"":".fl-row:not(.fl-node-global) ",t="column"==FLBuilderConfig.userTemplateType?"":".fl-col:not(.fl-node-global) ",l=e(FLBuilder._contentClass),n=l.find(i+".fl-col-group:not(.fl-col-group-nested) > "+t+"> .fl-col-content"),s=l.find(i+".fl-col-group-nested "+t+".fl-col-content"),o=0;for(e(".fl-node-drag-init").hide();o<s.length;o++)FLBuilder._adjustColHeightForDrag(s.eq(o));for(o=0;o<n.length;o++)FLBuilder._adjustColHeightForDrag(n.eq(o));e(".fl-node-drag-init").show()},_adjustColHeightForDrag:function(e){e.find(".fl-module:visible, .fl-col:visible").length&&e.height(e.height()+45)},_showColHighlightGuide:function(){var i=e(this),t=i.find("a"),l=i.closest(".fl-col"),n=l.parents(".fl-col"),s=e('<div class="fl-col-highlight-guide"></div>'),o=null,r=i.closest(".fl-block-overlay").offset().top;(t.hasClass("fl-block-col-move-parent")||t.hasClass("fl-block-col-edit-parent"))&&(l=n),l.hasClass("fl-col-highlight")||(l.find("> .fl-col-content").append(s),l.addClass("fl-col-has-highlight-guide"),o=s.offset().top,o>r&&s.css("top",r-o+4+"px"))},_removeColHighlightGuides:function(){e(".fl-col-has-highlight-guide").removeClass("fl-col-has-highlight-guide"),e(".fl-col-highlight-guide").remove()},_colMouseenter:function(){var i=e(this),t=i.closest(".fl-col-group"),l=t.hasClass("fl-col-group-has-child-loading"),n=i.hasClass("fl-node-global"),s=i.parents(".fl-node-global").length>0,o=i.closest(".fl-col-group").find("> .fl-col").length,r=t.find("> .fl-col").index(i),a=0===r,d=o===r+1,u=i.find(".fl-col").length>0,c=i.find(".fl-module").length>0,f=i.parents(".fl-col"),h=f.closest(".fl-col-group"),g=f.length>0,p="undefined"!=typeof i.data("template-url"),b="column"==FLBuilderConfig.userTemplateType&&!g;numParentCols=g?h.find("> .fl-col").length:0,parentIndex=h.find("> .fl-col").index(f),parentFirst=!!g&&0===parentIndex,parentLast=!!g&&numParentCols===parentIndex+1,row=i.closest(".fl-row"),rowIsFixedWidth=!!row.find(".fl-row-fixed-width").addBack(".fl-row-fixed-width").length,userCanResizeRows=FLBuilderConfig.rowResize.userCanResizeRows,hasRules=i.hasClass("fl-node-has-rules"),template=wp.template("fl-col-overlay"),overlay=null,FLBuilderConfig.simpleUi||n&&s&&c&&!p||n&&"column"==FLBuilderConfig.userTemplateType&&c||!n&&i.find(".fl-module").length>0||i.find(".fl-builder-node-loading-placeholder").length>0||!c&&u||s&&u&&!p||i.closest(".fl-builder-node-loading").length||(i.hasClass("fl-block-overlay-active")||(FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),overlay=FLBuilder._appendOverlay(i,template({global:n,groupLoading:l,numCols:o,first:a,last:d,isRootCol:b,hasChildCols:u,hasParentCol:g,parentFirst:parentFirst,parentLast:parentLast,numParentCols:numParentCols,rowIsFixedWidth:rowIsFixedWidth,userCanResizeRows:userCanResizeRows,hasRules:hasRules})),FLBuilder._buildOverlayOverflowMenu(overlay),FLBuilder._initColDragResizing()),e("body").addClass("fl-block-overlay-muted"))},_colMouseleave:function(i){var t=e(this),l=e(i.toElement)||e(i.relatedTarget),n=t.find(".fl-module").length>0,s=(t.hasClass("fl-node-global"),"undefined"!=typeof t.data("template-url")),o=l.is("#tiptip_holder"),r=l.closest("#tiptip_holder").length>0;o||r||n&&!s||(FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides(),FLBuilder._closeAllSubmenus())},_removeColOverlays:function(){var i=e(".fl-col");i.removeClass("fl-block-overlay-active"),i.find(".fl-col-overlay").remove(),e("body").removeClass("fl-block-overlay-muted"),FLBuilder._closeAllSubmenus()},_colDragHelper:function(){return e('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.column+"</div>")},_colDragInit:function(i){var t=e(i.target),l=e(".fl-col-sortable-proxy-item"),n=t.closest(".fl-col");t.hasClass("fl-block-col-move-parent")&&(n=n.parents(".fl-col")),n.addClass("fl-node-dragging"),FLBuilder._blockDragInit(i),FLBuilder._removeColHighlightGuides(),i.target=l[0],l.trigger(i)},_colDragStart:function(i,t){var l=e(".fl-node-dragging");l.hide(),FLBuilder._resetColumnWidths(l.parent()),FLBuilder._blockDragStart(i,t)},_colDragStop:function(i,t){FLBuilder._blockDragStop(i,t);var l=e(".fl-node-dragging").removeClass("fl-node-dragging").show(),n=l.attr("data-node"),s=t.item.parent(),o=l.parent(),r=o.attr("data-node");newGroup=s.closest(".fl-col-group"),newGroupId=newGroup.attr("data-node"),newRow=s.closest(".fl-row"),position=0,s.closest('[data-node="'+n+'"]').length?FLBuilder._resetColumnWidths(o):s.hasClass("fl-sortable-disabled")?FLBuilder._resetColumnWidths(o):s.hasClass("fl-col-sortable-proxy")?FLBuilder._resetColumnWidths(o):s.hasClass("fl-col-content")?(l.remove(),0===o.find(".fl-col").length&&o.remove(),position=s.find("> .fl-module, .fl-col-group, .fl-col-sortable-proxy-item").index(t.item),FLBuilder._addColGroup(s.closest(".fl-col").attr("data-node"),n,position)):s.hasClass("fl-col-drop-target")?(s.hasClass("fl-col-drop-target-last")?s.parent().after(l):s.parent().before(l),FLBuilder._resetColumnWidths(newGroup),r==newGroupId?FLBuilder.ajax({action:"reorder_col",node_id:n,position:l.index()}):FLBuilder.ajax({action:"move_col",node_id:n,new_parent:newGroupId,position:l.index(),resize:[r,newGroupId]}),FLBuilder._resizeLayout()):s.hasClass("fl-col-group-drop-target")?(l.remove(),0===o.find(".fl-col").length&&o.remove(),position=newRow.find(".fl-row-content > .fl-col-group").index(newGroup),position=s.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addColGroup(newRow.attr("data-node"),n,position)):s.hasClass("fl-row-drop-target")&&(l.remove(),position=s.closest(".fl-builder-content").find(".fl-row").index(newRow),position=s.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addRow(n,position)),0===o.find(".fl-col").length&&o.remove(),e(".fl-col-sortable-proxy").append(t.item),FLBuilder._highlightEmptyCols(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._closeAllSubmenus()},_colSettingsClicked:function(i){var t=e(this),l=t.closest(".fl-col"),n=(l.find("> .fl-col-content"),t.parent().find("ul.fl-builder-submenu").length>0),s=t.closest(".fl-block-overlay-global").length>0,o=t.closest(".fl-block-overlay-global").hasClass("fl-col-overlay"),r="column"!=FLBuilderConfig.userTemplateType&&"undefined"!=typeof l.attr("data-template-url"),a=null;FLBuilder._colResizing||s&&!FLBuilderConfig.userCanEditGlobalTemplates||n&&!t.hasClass("fl-col-overlay")||(t.hasClass("fl-block-col-edit-parent")&&(l=l.parents(".fl-col")),a=l.attr("data-node"),s&&o&&r?FLBuilderConfig.userCanEditGlobalTemplates&&(win=window.open(e('.fl-col[data-node="'+a+'"]').attr("data-template-url")),win.FLBuilderGlobalNodeId=a):FLBuilderSettingsForms.render({id:"col",nodeId:a,className:"fl-builder-col-settings",attrs:'data-node="'+a+'"',buttons:s||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:s?[FLBuilderStrings.global]:[],settings:FLBuilderSettingsConfig.nodes[a],preview:{type:"col"}},function(){0===l.siblings(".fl-col").length&&e("#fl-field-size, #fl-field-equal_height, #fl-field-content_alignment").hide()}),i.stopPropagation())},_copyColClicked:function(i){var t=e(this).closest(".fl-col"),l=t.attr("data-node"),n=t.clone(),s=t.parent(),o=e(".fl-builder-settings[data-node]"),r=o.attr("data-node"),a=r===l?t:t.find('[data-node="'+r+'"]'),d=null;o.length&&a.length&&(d=FLBuilder._getSettings(o),FLBuilderSettingsConfig.nodes[r]=d),n.addClass("fl-node-"+l+"-clone fl-builder-node-clone"),n.find(".fl-block-overlay").remove(),t.after(n),FLBuilder._showNodeLoading(l+"-clone"),FLBuilder._resetColumnWidths(s),FLBuilder.ajax({action:"copy_col",node_id:l,settings:d,settings_id:r},function(e){var i=FLBuilder._jsonParse(e);i.nodeParent=s,i.nodePosition=n.index(),i.duplicatedColumn=l,i.onAddNewHTML=function(){n.remove()},FLBuilder._copyColComplete(i)}),i.stopPropagation()},_copyColComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder._resetColumnWidths(e.nodeParent),FLBuilder.triggerHook("didDuplicateColumn",{newNodeId:e.nodeId,oldNodeId:e.duplicatedColumn})})},_deleteColClicked:function(i){var t=e(this),l=t.closest(".fl-col"),n=l.closest(".fl-col-group"),s=l.parents(".fl-col"),o=s.length>0,r=s.find("> .fl-col-content > .fl-module, > .fl-col-content > .fl-col-group"),a=l.siblings(".fl-col"),d=!0;l.find(".fl-module").length>0&&(d=confirm(FLBuilderStrings.deleteColumnMessage)),o&&1===r.length&&(0===a.length?l=s:1!==a.length||a.find(".fl-module").length||(l=n)),d&&(FLBuilder._deleteCol(l),FLBuilder._removeAllOverlays(),FLBuilder._highlightEmptyCols(),FLBuilder._resizeLayout()),i.stopPropagation()},_deleteCol:function(e){var i=e.attr("data-node"),t=e.closest(".fl-row"),l=e.closest(".fl-col-group"),n=0;e.remove(),rowCols=t.find(".fl-row-content > .fl-col-group > .fl-col"),groupCols=l.find(" > .fl-col"),0===rowCols.length&&"row"!=FLBuilderConfig.userTemplateType&&"column"!=FLBuilderConfig.userTemplateType?FLBuilder._deleteRow(t):(0===groupCols.length?l.remove():(n=6===groupCols.length?16.65:7===groupCols.length?14.28:Math.round(100/groupCols.length*100)/100,groupCols.css("width",n+"%"),FLBuilder.triggerHook("didResetColumnWidths",{cols:groupCols})),FLBuilder.ajax({action:"delete_col",node_id:i,new_width:n}),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder.triggerHook("didDeleteColumn",i))},_addCols:function(e,i,t,l,n){var s=e.closest(".fl-col-group"),o=s.find(".fl-col").index(e);t="undefined"==typeof t?"1-col":t,l="undefined"!=typeof l&&l,"after"==i&&o++,FLBuilder._showNodeLoadingPlaceholder(s,o),FLBuilder._removeAllOverlays(),FLBuilder.ajax({action:"render_new_columns",node_id:e.attr("data-node"),insert:i,type:t,nested:l?1:0,module:n},FLBuilder._addColsComplete)},_addColsComplete:function(i){var t="object"==typeof i?i:FLBuilder._jsonParse(i);t.nodeParent=FLBuilder._newColParent,t.nodePosition=FLBuilder._newColPosition,FLBuilder._renderLayout(t,function(){FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+t.nodeId)),FLBuilder.triggerHook("didAddColumn",t.nodeId),FLBuilder.triggerHook("didResetColumnWidths",{cols:e(".fl-node-"+t.nodeId).find("> .fl-col")})})},_addColGroup:function(i,t,l,n){var s=e(".fl-node-"+i);FLBuilder._newColGroupPosition=l,s.hasClass("fl-col")?FLBuilder._newColGroupParent=s.find(" > .fl-col-content"):FLBuilder._newColGroupParent=s.find(".fl-row-content"),
|
4 |
+
FLBuilder._showNodeLoadingPlaceholder(FLBuilder._newColGroupParent,l),FLBuilder.ajax({action:"render_new_column_group",cols:t,node_id:i,position:l,module:n},FLBuilder._addColGroupComplete)},_addColGroupComplete:function(i){var t=FLBuilder._jsonParse(i),l=e(t.html),n=l.data("node");l.find(".fl-col").data("node");t.nodeParent=FLBuilder._newColGroupParent,t.nodePosition=FLBuilder._newColGroupPosition,FLBuilder._renderLayout(t,function(){t.nodeParent.hasClass("fl-col-content")&&t.nodeParent.parents(".fl-col").addClass("fl-col-has-cols"),FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+n)),FLBuilder.triggerHook("didAddColumnGroup",n)})},_initColDragResizing:function(){e(".fl-block-col-resize").not(".fl-block-row-resize").draggable({axis:"x",start:FLBuilder._colDragResizeStart,drag:FLBuilder._colDragResize,stop:FLBuilder._colDragResizeStop})},_colDragResizeStart:function(i,t){var l=e(t.helper),n="",s=l.hasClass("fl-block-col-resize-parent"),o=s?l.closest(".fl-col").parents(".fl-col"):null,r=s?o.parents(".fl-col-group"):l.closest(".fl-col-group"),a=r.find("> .fl-col"),d=s?o:l.closest(".fl-col"),u=d.attr("data-node"),c=e("[data-node="+u+"] #fl-field-size input"),f=null,h=null,g=null,p=100,b=0,m=null,v=null;for(l.hasClass("fl-block-col-resize-e")?(n="e",f=d.nextAll(".fl-col").first()):(n="w",f=d.prevAll(".fl-col").first()),h=f.attr("data-node"),g=e("[data-node="+h+"] #fl-field-size input");b<a.length;b++)a.eq(b).data("node")!=d.data("node")&&a.eq(b).data("node")!=f.data("node")&&(p-=parseFloat(a.eq(b)[0].style.width));c.length?(m=c,v="col"):g.length&&(m=g,v="sibling"),FLBuilder._colResizeData={handle:l,feedbackLeft:l.find(".fl-block-col-resize-feedback-left"),feedbackRight:l.find(".fl-block-col-resize-feedback-right"),direction:n,groupWidth:r.outerWidth(),col:d,colWidth:parseFloat(d[0].style.width)/100,sibling:f,offset:t.position.left,availWidth:p,setting:m,settingType:v},FLBuilder._colResizing=!0,e("body").addClass("fl-builder-col-resizing"),FLBuilder._closePanel(),FLBuilder._destroyOverlayEvents(),FLBuilder.triggerHook("col-resize-start")},_colDragResize:function(e,i){var t=FLBuilder._colResizeData,l=FLBuilderConfig.isRtl?"w":"e",n=t.handle.closest(".fl-block-overlay"),s=(t.offset-i.position.left)/t.groupWidth,o=l==t.direction?100*(t.colWidth-s):100*(t.colWidth+s),r=Math.round(100*o)/100,a=t.availWidth-o,d=Math.round(100*a)/100,u=8,c=Math.round(100*(t.availWidth-u))/100;r<u?(r=u,d=c):d<u&&(r=c,d=u),l==t.direction?(t.feedbackLeft.html(r.toFixed(1)+"%").show(),t.feedbackRight.html(d.toFixed(1)+"%").show()):(t.feedbackLeft.html(d.toFixed(1)+"%").show(),t.feedbackRight.html(r.toFixed(1)+"%").show()),t.col.css("width",r+"%"),t.sibling.css("width",d+"%"),t.setting&&("col"===t.settingType?t.setting.val(parseFloat(t.col[0].style.width)):"sibling"===t.settingType&&t.setting.val(parseFloat(t.sibling[0].style.width))),FLBuilder._buildOverlayOverflowMenu(n),FLBuilder.triggerHook("col-resize-drag")},_colDragResizeStop:function(i,t){var l=FLBuilder._colResizeData,n=FLBuilder._colResizeData.handle.closest(".fl-block-overlay"),s=l.col.data("node"),o=parseFloat(l.col[0].style.width),r=l.sibling.data("node"),a=parseFloat(l.sibling[0].style.width);FLBuilder._colResizeData.feedbackLeft.hide(),FLBuilder._colResizeData.feedbackRight.hide(),FLBuilder.ajax({action:"resize_cols",col_id:s,col_width:o,sibling_id:r,sibling_width:a}),FLBuilder._buildOverlayOverflowMenu(n),FLBuilder._colResizeData=null,e("body").removeClass("fl-builder-col-resizing"),FLBuilder._bindOverlayEvents(),setTimeout(function(){FLBuilder._colResizing=!1},50),FLBuilder.triggerHook("col-resize-stop"),FLBuilder.triggerHook("didResizeColumn",{colId:s,colWidth:o,siblingId:r,siblingWidth:a})},_resetColumnWidthsClicked:function(i){var t=e(this),l=!!t.closest(".fl-row-overlay").length,n=null,s=null,o=[],r=null,a=0,d=e(".fl-builder-col-settings"),u=null;s=l?t.closest(".fl-row").find(".fl-row-content > .fl-col-group"):t.parents(".fl-col-group").last(),s.each(function(){for(n=e(this),r=n.find(".fl-col-group"),o.push(n.data("node")),FLBuilder._resetColumnWidths(n),a=0;a<r.length;a++)FLBuilder._resetColumnWidths(r.eq(a)),o.push(r.eq(a).data("node"))}),d.length&&(u=e(".fl-node-"+d.attr("data-node")),d.find("#fl-field-size input").val(parseFloat(u[0].style.width))),FLBuilder.ajax({action:"reset_col_widths",group_id:o}),FLBuilder.triggerHook("col-reset-widths"),FLBuilder._closeAllSubmenus(),i.stopPropagation()},_resetColumnWidths:function(e){var i=e.find(" > .fl-col:visible"),t=0;t=6===i.length?16.65:7===i.length?14.28:Math.round(100/i.length*100)/100,i.css("width",t+"%"),FLBuilder.triggerHook("didResetColumnWidths",{cols:i})},_moduleMouseenter:function(){var i=e(this),t=i.attr("data-name"),l=i.hasClass("fl-node-global"),n=i.parents(".fl-node-global").length>0,s=i.parents(".fl-col-group").last(),o=s.hasClass("fl-col-group-has-child-loading"),r=i.closest(".fl-col-group").find("> .fl-col").length,a=i.closest(".fl-col"),d=0===a.index(),u=r===a.index()+1,c=a.parents(".fl-col"),f=c.length>0,h=f?c.closest(".fl-col-group").find("> .fl-col").length:0,g=!!f&&0===c.index(),p=!!f&&h===c.index()+1,b="column"==FLBuilderConfig.userTemplateType&&!f,m=i.closest(".fl-row"),v=m.hasClass("fl-node-global"),_=!!m.find(".fl-row-fixed-width").addBack(".fl-row-fixed-width").length,w=FLBuilderConfig.rowResize.userCanResizeRows,L=i.hasClass("fl-node-has-rules"),F=a.hasClass("fl-node-has-rules"),C=wp.template("fl-module-overlay"),y=null;FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),l&&n&&"row"!=FLBuilderConfig.userTemplateType&&v||l&&n&&"column"!=FLBuilderConfig.userTemplateType&&!v||i.closest(".fl-builder-node-loading").length||i.find(".fl-inline-editor:visible").length||(i.hasClass("fl-block-overlay-active")||(y=FLBuilder._appendOverlay(i,C({global:l,moduleName:t,groupLoading:o,numCols:r,colFirst:d,colLast:u,isRootCol:b,hasParentCol:f,numParentCols:h,parentFirst:g,parentLast:p,rowIsFixedWidth:_,userCanResizeRows:w,hasRules:L,colHasRules:F})),FLBuilder._buildOverlayOverflowMenu(y),FLBuilder._initColDragResizing()),e("body").addClass("fl-block-overlay-muted"))},_moduleMouseleave:function(i){var t=(e(this),e(i.toElement)||e(i.relatedTarget)),l=t.is("#tiptip_holder"),n=t.closest("#tiptip_holder").length>0;l||n||(FLBuilder._removeModuleOverlays(),FLBuilder._removeColHighlightGuides())},_removeModuleOverlays:function(){var i=e(".fl-module");i.removeClass("fl-block-overlay-active"),i.find(".fl-module-overlay").remove(),e("body").removeClass("fl-block-overlay-muted"),FLBuilder._closeAllSubmenus()},_moduleDragHelper:function(i,t){return e('<div class="fl-builder-block-drag-helper">'+t.attr("data-name")+"</div>")},_moduleDragStart:function(i,t){e(t.item).data("original-position",t.item.index()),FLBuilder._blockDragStart(i,t)},_moduleDragStop:function(i,t){FLBuilder._blockDragStop(i,t);var l=t.item,n=l.parent(),s=null,o=0,r=0;if(n.hasClass("fl-builder-modules")||n.hasClass("fl-builder-widgets"))return void l.remove();if(l.hasClass("fl-builder-block")){if(n.hasClass("fl-sortable-disabled"))return l.remove(),void FLBuilder._showPanel();n.hasClass("fl-row-drop-target")?(n=l.closest(".fl-builder-content"),r=0,s=l.closest(".fl-row"),o=n.find(".fl-row").index(s)):n.hasClass("fl-col-group-drop-target")?(n=l.closest(".fl-row-content"),r=n.closest(".fl-row").attr("data-node"),s=l.closest(".fl-col-group"),o=n.find(" > .fl-col-group").index(s)):n.hasClass("fl-col-drop-target")?(n=l.closest(".fl-col-group"),r=n.attr("data-node"),s=l.closest(".fl-col"),o=n.find(" > .fl-col").index(s)):(o=n.find("> .fl-module, .fl-col-group, .fl-builder-block").index(l),r=l.closest(".fl-col").attr("data-node")),l.closest(".fl-drop-target-last").length&&(o+=1),FLBuilder._addModule(n,r,l.attr("data-type"),o,l.attr("data-widget"),l.attr("data-alias")),l.remove()}else{if(n.hasClass("fl-sortable-disabled"))return e(i.target).append(t.item),e(i.target).children().eq(t.item.data("original-position")).before(t.item),void FLBuilder._highlightEmptyCols();n.hasClass("fl-row-drop-target")?(s=l.closest(".fl-row"),o=l.closest(".fl-builder-content").children(".fl-row").index(s),o=l.closest(".fl-drop-target-last").length?o+1:o,FLBuilder._addRow("1-col",o,l.attr("data-node")),l.remove()):n.hasClass("fl-col-group-drop-target")?(s=l.closest(".fl-col-group"),o=l.closest(".fl-row-content ").find(" > .fl-col-group").index(s),o=l.closest(".fl-drop-target-last").length?o+1:o,FLBuilder._addColGroup(l.closest(".fl-row").attr("data-node"),"1-col",o,l.attr("data-node")),l.remove()):n.hasClass("fl-col-drop-target")?(s=l.closest(".fl-col"),o=l.closest(".fl-col-drop-target-last").length?"after":"before",FLBuilder._addCols(s,o,"1-col",l.closest(".fl-col-group-nested").length>0,l.attr("data-node")),l.remove()):FLBuilder._reorderModule(l)}FLBuilder._resizeLayout()},_reorderModule:function(e){var i=e.closest(".fl-col").attr("data-node"),t=e.attr("data-parent"),l=e.attr("data-node"),n=e.index();i==t?FLBuilder._reorderNode(l,n):(e.attr("data-parent",i),FLBuilder._moveNode(i,l,n))},_deleteModuleClicked:function(i){var t=e(this).closest(".fl-module"),l=confirm(FLBuilderStrings.deleteModuleMessage);l&&(FLBuilder._deleteModule(t),FLBuilder._removeAllOverlays()),i.stopPropagation()},_deleteModule:function(e){var i=e.closest(".fl-row"),t=e.attr("data-node");FLBuilder.ajax({action:"delete_node",node_id:t}),e.empty(),e.remove(),i.removeClass("fl-block-overlay-muted"),FLBuilder._highlightEmptyCols(),FLBuilder._removeAllOverlays(),FLBuilder.triggerHook("didDeleteModule",t)},_moduleCopyClicked:function(i){var t=e(window),l=e(this).closest(".fl-module"),n=l.attr("data-node"),s=l.parent(),o=l.clone(),r=e(".fl-builder-module-settings[data-node="+n+"]"),a=null;r.length&&(a=FLBuilder._getSettings(r),FLBuilderSettingsConfig.nodes[n]=a),o.addClass("fl-node-"+n+"-clone fl-builder-node-clone"),o.find(".fl-block-overlay").remove(),l.after(o),FLBuilder._showNodeLoading(n+"-clone"),t.scrollTop()+t.height()<o.offset().top&&e("html, body").animate({scrollTop:o.offset().top+o.height()-t.height()},500),FLBuilder.ajax({action:"copy_module",node_id:n,settings:a},function(e){var i=FLBuilder._jsonParse(e);i.nodeParent=s,i.nodePosition=s.find(" > .fl-col-group, > .fl-module").index(o),i.duplicatedModule=n,i.onAddNewHTML=function(){o.remove()},FLBuilder._moduleCopyComplete(i)}),i.stopPropagation()},_moduleCopyComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder.triggerHook("didDuplicateModule",{newNodeId:e.nodeId,oldNodeId:e.duplicatedModule})})},_moduleSettingsClicked:function(i){var t=e(this),l=t.closest(".fl-module").attr("data-type"),n=t.closest(".fl-module").attr("data-node"),s=t.closest(".fl-col").attr("data-node"),o=t.closest(".fl-block-overlay-global").length>0;i.stopPropagation(),FLBuilder._colResizing||o&&!FLBuilderConfig.userCanEditGlobalTemplates||FLBuilder._showModuleSettings({type:l,nodeId:n,parentId:s,global:o})},_showModuleSettings:function(i,t){if(FLBuilderSettingsConfig.modules){var l=FLBuilderSettingsConfig.modules[i.type],n=i.settings?i.settings:FLBuilderSettingsConfig.nodes[i.nodeId],s=e("head");-1===e.inArray(i.type,FLBuilder._loadedModuleAssets)&&(""!==l.assets.css&&s.append(l.assets.css),""!==l.assets.js&&s.append(l.assets.js),FLBuilder._loadedModuleAssets.push(i.type)),FLBuilderSettingsForms.render({type:"module",id:i.type,nodeId:i.nodeId,className:"fl-builder-module-settings fl-builder-"+i.type+"-settings",attrs:'data-node="'+i.nodeId+'" data-parent="'+i.parentId+'" data-type="'+i.type+'"',buttons:i.global||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:i.global?[FLBuilderStrings.global]:[],settings:n,legacy:i.legacy,helper:FLBuilder._moduleHelpers[i.type],rules:FLBuilder._moduleHelpers[i.type]?FLBuilder._moduleHelpers[i.type].rules:null,messages:FLBuilder._moduleHelpers[i.type]?FLBuilder._moduleHelpers[i.type].messages:null,preview:{type:"module",layout:i.layout,callback:function(){FLBuilder.triggerHook("didAddModule",i.nodeId)}}},t)}},_saveModuleClicked:function(){var i=e(this).closest(".fl-builder-settings"),t=i.attr("data-type"),l=(i.attr("data-node"),FLBuilder._moduleHelpers[t]),n=!0;"undefined"!=typeof l&&(i.find("label.error").remove(),i.validate().hideErrors(),n=i.validate().form(),n&&(n=l.submit())),n?FLBuilder._saveSettings():FLBuilder._toggleSettingsTabErrors()},_addModule:function(e,i,t,l,n,s){FLBuilder._showNodeLoadingPlaceholder(e,l),e.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=e,FLBuilder._newModulePosition=l),FLBuilder.ajax({action:"render_new_module",parent_id:i,type:t,position:l,node_preview:1,widget:"undefined"==typeof n?"":n,alias:"undefined"==typeof s?"":s},FLBuilder._addModuleComplete)},_addModuleComplete:function(i){var t=FLBuilder._jsonParse(i);t.layout&&(FLBuilder._newModuleParent&&FLBuilder._newModuleParent.find(".fl-builder-node-loading-placeholder").hide(),t.layout.nodeParent=FLBuilder._newModuleParent,t.layout.nodePosition=FLBuilder._newModulePosition),t.settings||(t.settings=FLBuilderSettingsConfig.defaults.modules[t.type]),e("form.fl-builder-settings").length?t.layout&&FLBuilder._renderLayout(t.layout):FLBuilder._showModuleSettings(t,function(){e(".fl-builder-module-settings").data("new-module","1")})},registerModuleHelper:function(i,t){var l={rules:{},init:function(){},submit:function(){return!0},preview:function(){}};FLBuilder._moduleHelpers[i]=e.extend({},l,t)},_registerModuleHelper:function(e,i){FLBuilder.registerModuleHelper(e,i)},_showNodeTemplateSettings:function(i){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=t.attr("data-node"),n=FLBuilderStrings.saveModule;return t.hasClass("fl-builder-row-settings")?n=FLBuilderStrings.saveRow:t.hasClass("fl-builder-col-settings")&&(n=FLBuilderStrings.saveColumn),!!FLBuilder._triggerSettingsSave(!1,!1,!1)&&void FLBuilderSettingsForms.render({id:"node_template",nodeId:l,title:n,attrs:'data-node="'+l+'"',className:"fl-builder-node-template-settings",rules:{name:{required:!0}}},function(){FLBuilderConfig.userCanEditGlobalTemplates||e("#fl-field-global").hide()})},_saveNodeTemplate:function(){var i=e(".fl-builder-node-template-settings"),t=i.attr("data-node"),l=i.validate().form();l&&(FLBuilder._showNodeLoading(t),FLBuilder.ajax({action:"save_node_template",node_id:t,settings:FLBuilder._getSettings(i)},function(e){FLBuilder._saveNodeTemplateComplete(e),FLBuilder._hideNodeLoading(t)}),FLBuilder._lightbox.close())},_saveNodeTemplateComplete:function(i){var t=FLBuilder._jsonParse(i),l=e(".fl-builder-saved-"+t.type+"s"),n=l.find(".fl-builder-block"),s=null,o="",r=t.name.toLowerCase(),a=0,d=wp.template("fl-node-template-block"),u={name:t.name,isGlobal:t.global,content:t.type,id:t.id,postID:t.postID,kind:"template",type:"user",link:t.link,category:{uncategorized:FLBuilderStrings.uncategorized}};if(FLBuilderConfig.contentItems.template.push(u),FLBuilder.triggerHook("contentItemsChanged"),t.layout&&(FLBuilder._renderLayout(t.layout),FLBuilder.triggerHook("didSaveGlobalNodeTemplate",t.config)),0===n.length)l.append(d(t));else for(;a<n.length;a++){if(s=n.eq(a),o=s.text().toLowerCase().trim(),0===a&&r<o){l.prepend(d(t));break}if(r<o){s.before(d(t));break}if(n.length-1===a){l.append(d(t));break}}l.find(".fl-builder-block-no-node-templates").remove()},_nodeTemplateDragStop:function(i,t){FLBuilder._blockDragStop(i,t);var l=t.item,n=l.parent(),s=null,o=0,r=null,a="",d=null;if(n.hasClass("fl-builder-blocks-section-content"))return void l.remove();if(l.hasClass("fl-builder-block-saved-row")||l.hasClass("fl-builder-block-row-template"))r=l.closest(".fl-row"),o=r.length?e(FLBuilder._contentClass+" .fl-row").index(r):0,o=n.hasClass("fl-drop-target-last")?o+1:o,s=null,a="render_new_row_template",d=FLBuilder._addRowComplete,FLBuilder._newRowPosition=o,FLBuilder._showNodeLoadingPlaceholder(e(FLBuilder._contentClass),o);else if(l.hasClass("fl-builder-block-saved-column")){if(r=l.closest(".fl-col"),colGroup=n.closest(".fl-col-group"),colGroupId=colGroup.attr("data-node"),a="render_new_col_template",d=FLBuilder._addColsComplete,n.hasClass("fl-sortable-disabled"))return l.remove(),void FLBuilder._showPanel();n.hasClass("fl-row-drop-target")?(r=l.closest(".fl-row"),s=0,n=e(FLBuilder._contentClass),o=r.length?n.find(".fl-row").index(r):0):n.hasClass("fl-col-group-drop-target")?(n=l.closest(".fl-row-content"),s=l.closest(".fl-row").attr("data-node"),o=l.closest(".fl-row").find(".fl-row-content > .fl-col-group").index(l.closest(".fl-col-group"))):n.hasClass("fl-col-drop-target")&&(n=l.closest(".fl-col-group"),o=n.children(".fl-col").index(l.closest(".fl-col")),s=n.attr("data-node")),l.closest(".fl-drop-target-last").length&&(o+=1),n.hasClass("fl-col-group")?FLBuilder._newColParent=null:FLBuilder._newColParent=n,FLBuilder._newColPosition=o,FLBuilder._showNodeLoadingPlaceholder(n,o)}else if(l.hasClass("fl-builder-block-saved-module")||l.hasClass("fl-builder-block-module-template")){if(a="render_new_module",d=FLBuilder._addModuleComplete,n.hasClass("fl-sortable-disabled"))return l.remove(),void FLBuilder._showPanel();n.hasClass("fl-row-drop-target")?(n=l.closest(".fl-builder-content"),s=0,o=n.find(".fl-row").index(l.closest(".fl-row"))):n.hasClass("fl-col-group-drop-target")?(n=l.closest(".fl-row-content"),s=n.closest(".fl-row").attr("data-node"),o=n.find(" > .fl-col-group").index(l.closest(".fl-col-group"))):n.hasClass("fl-col-drop-target")?(n=l.closest(".fl-col-group"),o=n.children(".fl-col").index(l.closest(".fl-col")),s=n.attr("data-node")):(o=n.children(".fl-module, .fl-builder-block").index(l),s=l.closest(".fl-col").attr("data-node")),l.closest(".fl-drop-target-last").length&&(o+=1),n.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=n,FLBuilder._newModulePosition=o),FLBuilder._showNodeLoadingPlaceholder(n,o)}FLBuilder.ajax({action:a,template_id:l.attr("data-id"),template_type:l.attr("data-type"),parent_id:s,position:o},function(e){if(a.indexOf("row")>-1){var i=FLBuilder._jsonParse(e);FLBuilder.triggerHook("didApplyRowTemplateComplete",i.config),d(i.layout)}else if(a.indexOf("col")>-1){var i=FLBuilder._jsonParse(e);FLBuilder.triggerHook("didApplyColTemplateComplete",i.config),d(i.layout)}else d(e)}),l.remove()},_editNodeTemplateClicked:function(i){i.preventDefault(),i.stopPropagation(),window.open(e(this).attr("href"))},_deleteNodeTemplateClicked:function(i){var t=e(i.target),l=t.closest(".fl-builder-blocks-section"),n=l.find(".fl-builder-blocks-section-content"),s=n.find(".fl-builder-block"),o=t.closest(".fl-builder-block"),r=o.hasClass("fl-builder-block-global"),a=r?FLBuilder._updateLayout:void 0,d=r?FLBuilderStrings.deleteGlobalTemplate:FLBuilderStrings.deleteTemplate,u=null;confirm(d)&&(o.remove(),1===s.length&&(o.hasClass("fl-builder-block-saved-row")?n.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedRows+"</span>"):n.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedModules+"</span>")),o.hasClass("fl-builder-block-global")&&FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"delete_node_template",template_id:o.attr("data-id")},a),u=_.findIndex(FLBuilderConfig.contentItems.template,{id:o.attr("data-id"),type:"user"}),FLBuilderConfig.contentItems.template.splice(u,1),FLBuilder.triggerHook("contentItemsChanged"))},_initSettingsForms:function(){FLBuilder._initSections(),FLBuilder._initButtonGroupFields(),FLBuilder._initCompoundFields(),FLBuilder._initCodeFields(),FLBuilder._initColorPickers(),FLBuilder._initGradientPickers(),FLBuilder._initIconFields(),FLBuilder._initPhotoFields(),FLBuilder._initSelectFields(),FLBuilder._initEditorFields(),FLBuilder._initMultipleFields(),FLBuilder._initAutoSuggestFields(),FLBuilder._initLinkFields(),FLBuilder._initFontFields(),FLBuilder._initOrderingFields(),FLBuilder._initTimezoneFields(),FLBuilder._initDimensionFields(),FLBuilder._initFieldPopupSliders(),FLBuilder._initPresetFields(),FLBuilder._focusFirstSettingsControl(),FLBuilder._calculateSettingsTabsOverflow(),FLBuilder._lightbox._resizeEditors(),e(".fl-builder-settings-fields").css("visibility","visible"),e(".fl-builder-settings button").on("click",function(e){e.preventDefault()}),FLBuilder.triggerHook("settings-form-init")},_destroySettingsForms:function(){FLBuilder._destroyEditorFields()},_setSettingsFormContent:function(i){e(".fl-legacy-settings").remove(),e("body").append(i)},_settingsTabClicked:function(i){var t=e(this),l=t.closest(".fl-builder-settings"),n=t.attr("href").split("#").pop();FLBuilder._resetSettingsTabsState(),l.find(".fl-builder-settings-tab").removeClass("fl-active"),l.find("#"+n).addClass("fl-active"),l.find(".fl-builder-settings-tabs .fl-active").removeClass("fl-active"),l.find("a[href*="+n+"]").addClass("fl-active"),FLBuilder._focusFirstSettingsControl(),i.preventDefault()},_resetSettingsTabsState:function(){var i=e(".fl-lightbox:visible");FLBuilder._hideTabsOverflowMenu(),i.find(".fl-builder-settings-tabs .fl-active").removeClass("fl-active"),i.find(".fl-builder-settings-tabs-overflow-menu .fl-active").removeClass("fl-active"),i.find(".fl-contains-active").removeClass("fl-contains-active")},_calculateSettingsTabsOverflow:function(){var i=e(".fl-lightbox:visible"),t=i.outerWidth(),l=i.hasClass("fl-lightbox-width-slim"),n=i.find(".fl-builder-settings-tabs"),s=i.find(".fl-builder-settings-tabs-overflow-menu"),o=i.find(".fl-builder-settings-tabs-more"),r=n.find("a"),a=!1,d=t-60,u=0,c=l?16:30;s.html(""),FLBuilder._hideTabsOverflowMenu(),r.removeClass("fl-overflowed"),r.each(function(){if(!e(this).is(":visible"))return!0;if(!a){var i=e(this).textWidth()+c+12;u+=i,u>=d&&(a=!0)}if(a){var t=e(this).html(),l=e(this).attr("href"),n="";e(this).hasClass("fl-active")&&(n="fl-active"),e(this).hasClass("error")&&(n+=" error"),""!==n&&(n='class="'+n+'"');var o=e('<a href="'+l+'" '+n+">"+t+"</a>");s.append(o),e(this).addClass("fl-overflowed")}else e(this).removeClass("fl-overflowed")}),a?i.addClass("fl-lightbox-has-tab-overflow"):i.removeClass("fl-lightbox-has-tab-overflow"),s.find(".fl-active").length>0?o.addClass("fl-contains-active"):o.removeClass("fl-contains-active"),s.find(".error").length>0?o.addClass("fl-contains-errors"):o.removeClass("fl-contains-errors")},_settingsTabsToOverflowMenuItemClicked:function(i){var t=e(i.currentTarget),l=t.attr("href"),n=t.closest(".fl-lightbox-header-wrap").find(".fl-builder-settings-tabs"),s=n.find('a[href="'+l+'"]'),o=n.find(".fl-builder-settings-tabs-more");FLBuilder._resetSettingsTabsState(),s.trigger("click"),t.addClass("fl-active"),o.addClass("fl-contains-active"),FLBuilder._hideTabsOverflowMenu(),i.preventDefault()},_hasOverflowTabs:function(){var i=e(".fl-lightbox:visible"),t=i.find(".fl-builder-settings-tabs-overflow-menu a");return t.length>0},_showTabsOverflowMenu:function(){if(FLBuilder._hasOverflowTabs()){var i=e(".fl-lightbox:visible");i.find(".fl-builder-settings-tabs-overflow-menu").css("display","flex"),i.find(".fl-builder-settings-tabs-overflow-click-mask").show(),this.isShowingSettingsTabsOverflowMenu=!0}},_hideTabsOverflowMenu:function(){var i=e(".fl-lightbox:visible");i.find(".fl-builder-settings-tabs-overflow-menu").css("display","none"),i.find(".fl-builder-settings-tabs-overflow-click-mask").hide(),this.isShowingSettingsTabsOverflowMenu=!1},_toggleTabsOverflowMenu:function(e){FLBuilder.isShowingSettingsTabsOverflowMenu?FLBuilder._hideTabsOverflowMenu():FLBuilder._showTabsOverflowMenu(),e.stopPropagation()},_settingsCancelClicked:function(i){var t=e(".fl-builder-lightbox[data-parent]"),l=e(".fl-builder-module-settings"),n=null,s=null,o=null,r=null,a="column"==FLBuilderConfig.userTemplateType;return t.length>0?void FLBuilder._closeNestedSettings():(l.length>0&&"undefined"!=typeof l.data("new-module")?(n=e(FLBuilder.preview.state.html),s=e(".fl-node-"+l.data("node")),o=s.closest(".fl-col"),r=n.find(".fl-node-"+o.data("node")),r.length>0||a?FLBuilder._deleteModule(s):FLBuilder._deleteCol(o)):FLBuilder.preview&&FLBuilder.preview.revert(),FLBuilder.preview=null,void FLLightbox.closeParent(this))},_focusFirstSettingsControl:function(){var i=e(".fl-builder-settings:visible"),t=i.find(".fl-builder-settings-tab.fl-active"),l=i.data("node"),n=t.find(".fl-field").first(),s=n.find('input:not([type="hidden"]), textarea, select, button, a, .fl-editor-field').first();if(!l||!e(".fl-node-"+l+" .fl-inline-editor").length){if("undefined"!=typeof tinyMCE&&s.hasClass("fl-editor-field")){var o=s.find("textarea.wp-editor-area").attr("id");tinyMCE.get(o).focus()}else setTimeout(function(){s.focus().css("animation-name","fl-grab-attention")},300);n.css("animation-name","fl-grab-attention"),n.on("animationend",function(){n.css("animation-name","")})}},_initSettingsValidation:function(i,t){var l=e(".fl-builder-settings").last();l.validate({ignore:".fl-ignore-validation",rules:i,messages:t,errorPlacement:FLBuilder._settingsErrorPlacement})},_settingsErrorPlacement:function(e,i){e.appendTo(i.parent())},_toggleSettingsTabErrors:function(){for(var i=e(".fl-builder-settings:visible"),t=i.find(".fl-builder-settings-tab"),l=null,n=null,s=0;s<t.length;s++)l=t.eq(s),n=l.find("label.error"),tabLink=i.find(".fl-builder-settings-tabs a[href*="+l.attr("id")+"]"),tabLink.find(".fl-error-icon").remove(),tabLink.removeClass("error"),n.length>0&&(tabLink.append('<span class="fl-error-icon"></span>'),tabLink.addClass("error"));FLBuilder._calculateSettingsTabsOverflow()},_getSettings:function(i){FLBuilder._updateEditorFields();var t=i.serializeArray(),l=0,n=0,s="",o="",r="",a=[],d=[],u={};for(l=0;l<t.length;l++)if(s=t[l].value.replace(/\r/gm,"").replace(/'/g,"'"),!(t[l].name.indexOf("flrich")>-1))if(t[l].name.indexOf("[")>-1){for(o=t[l].name.replace(/\[(.*)\]/,""),r=t[l].name.replace(o,""),a=[],d=r.match(/\[[^\]]*\]/g),n=0;n<d.length;n++)"[]"!=d[n]&&a.push(d[n].replace(/\[|\]/g,""));r.match(/\[\]\[[^\]]*\]\[[^\]]+\]/)||r.match(/\[\]\[[^\]]*\]\[\]\[[^\]]+\]/)?("undefined"==typeof u[o]&&(u[o]={}),"undefined"==typeof u[o][a[0]]&&(u[o][a[0]]={}),u[o][a[0]][a[1]]=s):r.match(/\[\]\[[^\]]*\]\[\]/)?("undefined"==typeof u[o]&&(u[o]={}),"undefined"==typeof u[o][a[0]]&&(u[o][a[0]]=[]),u[o][a[0]].push(s)):r.match(/\[\]\[[^\]]*\]/)?("undefined"==typeof u[o]&&(u[o]={}),u[o][a[0]]=s):r.match(/\[\]/)&&("undefined"==typeof u[o]&&(u[o]=[]),u[o].push(s))}else u[t[l].name]=s;for(r in u)if("undefined"!=typeof u["as_values_"+r]){u[r]=e.grep(u["as_values_"+r].split(","),function(e){return""!==e}).join(",");try{delete u["as_values_"+r]}catch(c){}}return e.each(i.find("[name]"),function(i,t){var l=e(t).attr("name").replace(/\[(.*)\]/,"");l in u||(u[l]="")}),u=e.extend({},FLBuilder._getOriginalSettings(i),u)},_getSettingsJSONForHTML:function(e){return JSON.stringify(e).replace(/\'/g,"'").replace("<wbr />","<wbr>")},_getOriginalSettings:function(i,t){var l=i.find(".fl-builder-settings-json"),n=i.data("node"),s=FLBuilderSettingsConfig.nodes,o=null,r={};if(n&&s[n]?o=s[n]:l.length&&(o=FLBuilder._jsonParse(l.val().replace(/'/g,"'"))),o)for(key in o)(e("#fl-field-"+key).length||t)&&(r[key]=o[key]);return r},_getSettingsForChangedCheck:function(i,t){var l=FLBuilder._getSettings(t);if(i){var n=e(".fl-node-"+i);if(n.hasClass("fl-module")){var s=n.data("type"),o=FLBuilderSettingsConfig.editables[s];if(o&&FLBuilderSettingsConfig.nodes[i])for(var r in o)l[r]=FLBuilderSettingsConfig.nodes[i][r]}}return l},_saveSettings:function(i){var t=e(".fl-builder-settings-lightbox .fl-builder-settings"),l=t.data("new-module"),n=t.attr("data-node"),s=FLBuilder._getSettings(t),o=FLBuilder.preview;return!FLBuilder.isUndefined(i)&&FLBuilder.isBoolean(i)||(i=!0),o&&!o._settingsHaveChanged()&&FLBuilder.isUndefined(l)?void FLBuilder._lightbox.close():(FLBuilder._showNodeLoading(n),FLBuilderSettingsConfig.nodes[n]=s,FLBuilder.ajax({action:"save_settings",node_id:n,settings:s},FLBuilder._saveSettingsComplete.bind(this,i,o)),FLBuilder.triggerHook("didSaveNodeSettings",{nodeId:n,settings:s}),void FLBuilder._lightbox.close())},_saveSettingsComplete:function(e,i,t){var l=FLBuilder._jsonParse(t),n=function(){i&&l.layout.partial&&l.layout.nodeId===i.nodeId&&(i.clear(),i=null)};!0===e?FLBuilder._renderLayout(l.layout,n):n(),FLBuilder.triggerHook("didSaveNodeSettingsComplete",{nodeId:l.node_id,settings:l.settings})},_triggerSettingsSave:function(i,t,l){var n=FLBuilder._lightbox._node.find("form.fl-builder-settings"),s=FLBuilder._lightbox._node.data("instance-id"),o=FLLightbox._instances[s],r=e(".fl-lightbox-wrap[data-parent]:visible"),a=!1,d=!0;return i=!_.isUndefined(i)&&i,t=!_.isUndefined(t)&&t,l=!!_.isUndefined(l)||l,n.length&&(r.length&&(r.find(".fl-builder-settings-save").trigger("click"),(r.find("label.error").length||e(".fl-builder-alert-lightbox:visible").length)&&(d=!1)),d&&!n.validate().form()&&(d=!1),a=FLBuilderSettingsForms.settingsHaveChanged(),d&&a&&(i&&o.disableClose(),n.find(".fl-builder-settings-save").trigger("click"),i&&o.enableClose(),(n.find("label.error").length||e(".fl-builder-alert-lightbox:visible").length)&&(d=!1)),l&&(FLBuilder._destroySettingsForms(),!a&&FLBuilder.preview&&(FLBuilder.preview.clear(),FLBuilder.preview=null)),a||i||o.close()),d||(FLBuilder.triggerHook("didFailSettingsSave"),FLBuilder._toggleSettingsTabErrors(),t&&!e(".fl-builder-alert-lightbox:visible").length&&FLBuilder.alert(FLBuilderStrings.settingsHaveErrors)),d},_refreshSettingsPreviewReference:function(){FLBuilder.preview&&FLBuilder.preview._initElementsAndClasses()},_openNestedSettings:function(i){i.className&&-1===i.className.indexOf("fl-builder-settings-lightbox")&&(i.className+=" fl-builder-settings-lightbox"),i=e.extend({className:"fl-builder-lightbox fl-builder-settings-lightbox",destroyOnClose:!0,resizable:!0},i);var t=e(".fl-lightbox-wrap:visible"),l=t.find(".fl-lightbox"),n=new FLLightbox(i),s=n._node,o=s.find(".fl-lightbox");return t.hide(),s.attr("data-parent",t.attr("data-instance-id")),o.attr("style",l.attr("style")),n.on("resized",FLBuilder._calculateSettingsTabsOverflow),n.open('<div class="fl-builder-lightbox-loading"></div>'),n},_closeNestedSettings:function(){var i=e(".fl-builder-lightbox[data-parent]:visible"),t=i.find(".fl-lightbox"),l=i.attr("data-instance-id"),n=FLLightbox._instances[l],s=i.attr("data-parent"),o=e('[data-instance-id="'+s+'"]'),r=o.find(".fl-lightbox"),a=o.find("form"),d=FLLightbox._instances[s];n.on("close",function(){r.attr("style",t.attr("style")),o.show(),d._resize(),o.find("label.error").remove(),a.validate().hideErrors(),FLBuilder._toggleSettingsTabErrors()}),n.close()},_showHelpTooltip:function(){e(this).siblings(".fl-help-tooltip-text").fadeIn()},_hideHelpTooltip:function(){e(this).siblings(".fl-help-tooltip-text").fadeOut()},_initSections:function(){e(".fl-builder-settings:visible").find(".fl-builder-settings-section").each(FLBuilder._initSection)},_initSection:function(){var i=e(this),t=i.find(".fl-builder-settings-section-header");t.on("click",function(){i.toggleClass("fl-builder-settings-section-collapsed")})},_initButtonGroupFields:function(){e(".fl-builder-settings:visible").find(".fl-button-group-field").each(FLBuilder._initButtonGroupField)},_initButtonGroupField:function(){var i=e(this),t=i.find(".fl-button-group-field-option"),l=i.find("input");t.on("click",function(){var i=e(this);"1"==i.attr("data-selected")?(i.attr("data-selected","0"),l.val("").trigger("change")):(t.attr("data-selected","0"),i.attr("data-selected","1"),l.val(i.data("value")).trigger("change"))}),l.on("change",function(e){var i=l.val(),n=t.filter('[data-value="'+i+'"]');t.attr("data-selected","0"),n.attr("data-selected","1")})},_initCompoundFields:function(){e(".fl-builder-settings:visible").find(".fl-compound-field").each(FLBuilder._initCompoundField)},_initCompoundField:function(){var i=e(this),t=i.find(".fl-compound-field-section"),l=i.find(".fl-compound-field-section-toggle"),n=i.find(".fl-compound-field-setting").has(".fl-dimension-field-units");t.each(function(){var i=e(this);i.find(".fl-compound-field-section-toggle").length||i.addClass("fl-compound-field-section-visible");
|
5 |
+
}),l.on("click",function(){var i=e(this),t=i.closest(".fl-field"),l=i.closest(".fl-compound-field-section"),n="."+l.attr("class").split(" ").join(".");t.find(n).toggleClass("fl-compound-field-section-visible")}),n.each(function(){var i=e(this),t=i.find(".fl-compound-field-label"),l='<i class="fl-dimension-field-link fl-tip dashicons dashicons-admin-links" title="Link Values"></i>';t.length&&!i.find(".fl-shadow-field").length&&t.append(l)})},_initAutoSuggestFields:function(){var i=e(".fl-builder-settings:visible .fl-suggest-field"),t=null,l=null,n=null,s=[];i.each(function(){t=e(this),""!==t.attr("data-value")&&(FLBuilderSettingsForms.showFieldLoader(t),s.push({name:t.attr("name"),value:t.attr("data-value"),action:t.attr("data-action"),data:t.attr("data-action-data")}))}),s.length?FLBuilder.ajax({action:"get_autosuggest_values",fields:s},function(t){l=FLBuilder._jsonParse(t);for(n in l)e('.fl-suggest-field[name="'+n+'"]').attr("data-value",l[n]);i.each(FLBuilder._initAutoSuggestField)}):i.each(FLBuilder._initAutoSuggestField)},_initAutoSuggestField:function(){var i=e(this);i.autoSuggest(FLBuilder._ajaxUrl({fl_action:"fl_builder_autosuggest",fl_as_action:i.data("action"),fl_as_action_data:i.data("action-data"),_wpnonce:FLBuilderConfig.ajaxNonce}),e.extend({},{asHtmlID:i.attr("name"),selectedItemProp:"name",searchObjProps:"name",minChars:2,keyDelay:1e3,fadeOut:!1,usePlaceholder:!0,emptyText:FLBuilderStrings.noResultsFound,showResultListWhenNoMatch:!0,preFill:i.data("value"),queryParam:"fl_as_query",afterSelectionAdd:FLBuilder._updateAutoSuggestField,afterSelectionRemove:FLBuilder._updateAutoSuggestField,selectionLimit:i.data("limit"),canGenerateNewSelections:!1},i.data("args"))),FLBuilderSettingsForms.hideFieldLoader(i)},_updateAutoSuggestField:function(i,t,l){e(this).siblings(".as-values").val(l.join(",")).trigger("change")},_initCodeFields:function(){e(".fl-builder-settings:visible").find(".fl-code-field").each(FLBuilder._initCodeField)},_initCodeField:function(){var i=e(this),t=i.closest(".fl-builder-settings"),l=i.find("textarea"),n=(l.attr("id"),l.data("editor")),s=l.data("wrap"),o=e("<div>",{position:"absolute",height:20*parseInt(l.attr("rows"),10)}),r=null;o.insertBefore(l),l.css("display","none"),ace.require("ace/ext/language_tools"),r=ace.edit(o[0]),r.$blockScrolling=1/0,r.getSession().setValue(l.val()),r.getSession().setMode("ace/mode/"+n),s&&r.getSession().setUseWrapMode(!0),r.setOptions(FLBuilderConfig.AceEditorSettings),r.getSession().on("change",function(e){l.val(r.getSession().getValue()).trigger("change")}),r.getSession().on("changeAnnotation",function(){for(var e=r.getSession().getAnnotations(),i=t.find(".fl-builder-settings-save"),l=t.find(".fl-builder-settings-error"),n=!1,s=0;s<e.length;s++)if(!(e[s].text.indexOf("DOCTYPE")>-1||e[s].text.indexOf("Named entity expected")>-1||e[s].text.indexOf("@supports")>-1||"error"!==e[s].type)){n=!0;break}n&&!l.length&&FLBuilderConfig.CheckCodeErrors?(i.addClass("fl-builder-settings-error"),i.on("click",FLBuilder._showCodeFieldError)):!n&&l.length&&(l.removeClass("fl-builder-settings-error"),l.off("click",FLBuilder._showCodeFieldError))}),l.closest(".fl-field").data("editor",r)},_showCodeFieldError:function(i){i.stopImmediatePropagation(),FLBuilder.confirm({message:FLBuilderStrings.codeError,cancel:function(){var i=e(".fl-builder-settings:visible .fl-builder-settings-save");i.removeClass("fl-builder-settings-error"),i.off("click",FLBuilder._showCodeFieldError),i.trigger("click")},strings:{ok:FLBuilderStrings.codeErrorFix,cancel:FLBuilderStrings.codeErrorIgnore}})},_initMultipleFields:function(){var i=e(".fl-builder-settings:visible .fl-builder-field-multiples"),t=null,l=null,n=0,s=FLBuilderConfig.isRtl?{left:10}:{right:10},o=e("#fl-field-testimonials").attr("data-limit")||0,r=e("tbody.fl-builder-field-multiples").find("tr").length||0;for(parseInt(o)>0&&r-1>=parseInt(o)?(e(".fl-builder-field-copy").hide(),e(".fl-builder-field-add").fadeOut()):e(".fl-builder-field-copy, .fl-builder-field-add").show();n<i.length;n++)t=i.eq(n),l=t.find(".fl-builder-field-multiple"),1===l.length?l.eq(0).find(".fl-builder-field-actions").addClass("fl-builder-field-actions-single"):l.find(".fl-builder-field-actions").removeClass("fl-builder-field-actions-single");e(".fl-builder-field-multiples").sortable({items:".fl-builder-field-multiple",cursor:"move",cursorAt:s,distance:5,opacity:.5,placeholder:"fl-builder-field-dd-zone",stop:FLBuilder._fieldDragStop,tolerance:"pointer",axis:"y"})},_addFieldClicked:function(){var i=e(this),t=i.attr("data-field"),l=i.closest("tr").siblings("tr[data-field="+t+"]").last(),n=l.clone(),s=n.find(".fl-form-field"),o=null,r=null,a=parseInt(l.find("label span.fl-builder-field-index").html(),10)+1;n.find("th label span.fl-builder-field-index").html(a),n.find(".fl-form-field-preview-text").html(""),n.find(".fl-form-field-before").remove(),n.find(".fl-form-field-after").remove(),n.find("input, textarea, select").val(""),l.after(n),FLBuilder._initMultipleFields(),s.length?(o=s.find(".fl-form-field-edit").data("type"),s.find("input").val(JSON.stringify(FLBuilderSettingsConfig.defaults.forms[o]))):(s=i.closest("form.fl-builder-settings"),o=s.data("type"),o&&s.hasClass("fl-builder-module-settings")&&(r=FLBuilderSettingsConfig.defaults.modules[o][t][0],n.find("input, textarea, select").val(r)))},_copyFieldClicked:function(){var i=e(this),t=i.closest("tr"),l=t.clone(),n=parseInt(t.find("label span.fl-builder-field-index").html(),10)+1;l.find("th label span.fl-builder-field-index").html(n),t.after(l),FLBuilder._renumberFields(t.parent()),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview()},_deleteFieldClicked:function(){var i=e(this).closest("tr"),t=i.parent(),l=confirm(FLBuilderStrings.deleteFieldMessage);l&&(i.remove(),FLBuilder._renumberFields(t),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview())},_renumberFields:function(e){for(var i=e.find(".fl-builder-field-multiple"),t=0;t<i.length;t++)i.eq(t).find("th label span.fl-builder-field-index").html(t+1)},_fieldDragHelper:function(){return e('<div class="fl-builder-field-dd-helper"></div>')},_fieldDragStop:function(e,i){FLBuilder._renumberFields(i.item.parent()),FLBuilder.preview.delayPreview()},_initSelectFields:function(){var i=e(".fl-builder-settings:visible").find("select");i.on("change",FLBuilder._settingsSelectChanged),i.trigger("change"),i.on("change",FLBuilder._calculateSettingsTabsOverflow);var t=e(".fl-builder-settings:visible").find(".fl-button-group-field input[type=hidden]");t.on("change",FLBuilder._settingsSelectChanged),t.trigger("change"),t.on("change",FLBuilder._calculateSettingsTabsOverflow)},_settingsSelectChanged:function(){var i=e(this),t=i.attr("data-toggle"),l=i.attr("data-hide"),n=i.attr("data-trigger"),s=i.val(),o=0;if("undefined"!=typeof t){t=FLBuilder._jsonParse(t);for(o in t)FLBuilder._settingsSelectToggle(t[o].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(t[o].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(t[o].tabs,"hide","a[href*=fl-builder-settings-tab-","]");"undefined"!=typeof t[s]&&(FLBuilder._settingsSelectToggle(t[s].fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(t[s].sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(t[s].tabs,"show","a[href*=fl-builder-settings-tab-","]"))}if("undefined"!=typeof l){l=FLBuilder._jsonParse(l);for(o in l)FLBuilder._settingsSelectToggle(l[o].fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(l[o].sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l[o].tabs,"show","a[href*=fl-builder-settings-tab-","]");"undefined"!=typeof l[s]&&(FLBuilder._settingsSelectToggle(l[s].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(l[s].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l[s].tabs,"hide","a[href*=fl-builder-settings-tab-","]"))}if("undefined"!=typeof n&&(n=FLBuilder._jsonParse(n),"undefined"!=typeof n[s]&&"undefined"!=typeof n[s].fields))for(o=0;o<n[s].fields.length;o++)e("#fl-field-"+n[s].fields[o]).find("select").trigger("change")},_settingsSelectToggle:function(i,t,l,n){var s=0;if(n="undefined"==typeof n?"":n,"undefined"!=typeof i)for(;s<i.length;s++)e(".fl-builder-settings:visible").find(l+i[s]+n)[t](),e(l+i[s]+n).parent().find('.fl-field[data-type="code"]').each(function(){e(this).data("editor").resize()})},_initColorPickers:function(){var i=FLBuilderConfig.colorPresets?FLBuilderConfig.colorPresets:[];FLBuilder.colorPicker=new FLBuilderColorPicker({mode:"hsv",elements:".fl-color-picker .fl-color-picker-value",presets:i,labels:{colorPresets:FLBuilderStrings.colorPresets,colorPicker:FLBuilderStrings.colorPicker,placeholder:FLBuilderStrings.placeholder,removePresetConfirm:FLBuilderStrings.removePresetConfirm,noneColorSelected:FLBuilderStrings.noneColorSelected,alreadySaved:FLBuilderStrings.alreadySaved,noPresets:FLBuilderStrings.noPresets,presetAdded:FLBuilderStrings.presetAdded}}),e(FLBuilder.colorPicker).on("presetRemoved presetAdded",function(e,i){FLBuilder.ajax({action:"save_color_presets",presets:i.presets})})},_initGradientPickers:function(){e(".fl-builder-settings:visible .fl-gradient-picker").each(FLBuilder._initGradientPicker)},_initGradientPicker:function(){var i=e(this),t=i.find(".fl-gradient-picker-type-select"),l=i.find(".fl-gradient-picker-angle-wrap"),n=i.find(".fl-gradient-picker-position");t.on("change",function(){"linear"===e(this).val()?(l.show(),n.hide()):(l.hide(),n.show())})},_initPhotoFields:function(){var i=e(".fl-builder-settings:visible").find(".fl-photo-field select");i.on("change",FLBuilder._toggleSettingsOnIconChange),i.trigger("change")},_initSinglePhotoSelector:function(){null===FLBuilder._singlePhotoSelector&&(FLBuilder._singlePhotoSelector=wp.media({title:FLBuilderStrings.selectPhoto,button:{text:FLBuilderStrings.selectPhoto},library:{type:"image"},multiple:!1}),FLBuilder._singlePhotoSelector.on("open",FLBuilder._wpmedia_reset_errors),_wpPluploadSettings.defaults.multipart_params.fl_upload_type="photo")},_selectSinglePhoto:function(){FLBuilder._initSinglePhotoSelector(),FLBuilder._singlePhotoSelector.once("open",e.proxy(FLBuilder._singlePhotoOpened,this)),FLBuilder._singlePhotoSelector.once("select",e.proxy(FLBuilder._singlePhotoSelected,this)),FLBuilder._singlePhotoSelector.open()},_singlePhotoOpened:function(){var i=FLBuilder._singlePhotoSelector.state().get("selection"),t=e(this).closest(".fl-photo-field"),l=t.find("input[type=hidden]"),n=l.val(),s=null;e(this).hasClass("fl-photo-replace")?(i.reset(),t.addClass("fl-photo-empty"),l.val("")):""!==n?(s=wp.media.attachment(n),s.fetch(),i.add(s?[s]:[])):i.reset()},_singlePhotoSelected:function(){var i=FLBuilder._singlePhotoSelector.state().get("selection").first().toJSON(),t=e(this).closest(".fl-photo-field"),l=t.find("input[type=hidden]"),n=t.find(".fl-photo-preview img"),s=t.find("select");l.val(i.id),n.attr("src",FLBuilder._getPhotoSrc(i)),t.removeClass("fl-photo-empty").removeClass("fl-photo-no-attachment"),t.find("label.error").remove(),s.show(),s.html(FLBuilder._getPhotoSizeOptions(i)),s.trigger("change"),FLBuilderSettingsConfig.attachments[i.id]=i},_singlePhotoRemoved:function(){FLBuilder._initSinglePhotoSelector();var i=FLBuilder._singlePhotoSelector.state(),t="undefined"!=typeof i?i.get("selection"):null,l=e(this).closest(".fl-photo-field"),n=l.find("input[type=hidden]"),s=l.find("select");t&&t.reset(),l.addClass("fl-photo-empty"),n.val(""),s.html('<option value="" selected></option>'),s.trigger("change")},_getPhotoSrc:function(e){return"undefined"==typeof e.sizes?e.url:"undefined"!=typeof e.sizes.thumbnail?e.sizes.thumbnail.url:e.sizes.full.url},_getPhotoSizeOptions:function(e,i){var t="",l=null,n=null,s="",o={full:FLBuilderStrings.fullSize,large:FLBuilderStrings.large,medium:FLBuilderStrings.medium,thumbnail:FLBuilderStrings.thumbnail};if("undefined"==typeof e.sizes||0===e.sizes.length)t+='<option value="'+e.url+'">'+FLBuilderStrings.fullSize+"</option>";else{i&&(i=i.split(/[\\\/]/).pop());for(l in e.sizes)s="undefined"!=typeof o[l]?o[l]+" - ":"undefined"!=typeof FLBuilderConfig.customImageSizeTitles[l]?FLBuilderConfig.customImageSizeTitles[l]+" - ":"",n="",i?i===e.sizes[l].url.split(/[\\\/]/).pop()&&(n=' selected="selected"'):n="full"==l?' selected="selected"':"",t+='<option value="'+e.sizes[l].url+'"'+n+">"+s+e.sizes[l].width+" x "+e.sizes[l].height+"</option>"}return t},_selectMultiplePhotos:function(){var i=e(this).closest(".fl-multiple-photos-field"),t=i.find("input[type=hidden]"),l=t.val(),n=""===l?"":FLBuilder._jsonParse(l),s=wp.media.gallery.defaults.id,o='[gallery ids="-1"]',r=null,a=null,d=null,u=null,c=[];if("object"==typeof n){for(u in n)c.push(n[u]);o='[gallery ids="'+c.join()+'"]'}r=wp.shortcode.next("gallery",o).shortcode,_.isUndefined(r.get("id"))&&!_.isUndefined(s)&&r.set("id",s),a=wp.media.gallery.attachments(r),d=new wp.media.model.Selection(a.models,{props:a.props.toJSON(),multiple:!0}),d.gallery=a.gallery,d.more().done(function(){d.length||FLBuilder._multiplePhotoSelector.setState("gallery-library"),d.props.set({query:!1}),d.unmirror(),d.props.unset("orderby")}),FLBuilder._multiplePhotoSelector&&FLBuilder._multiplePhotoSelector.dispose(),FLBuilder._multiplePhotoSelector=wp.media({frame:"post",state:e(this).hasClass("fl-multiple-photos-edit")?"gallery-edit":"gallery-library",title:wp.media.view.l10n.editGalleryTitle,editing:!0,multiple:!0,selection:d}).open(),e(FLBuilder._multiplePhotoSelector.views.view.el).addClass("fl-multiple-photos-lightbox"),FLBuilder._multiplePhotoSelector.once("update",e.proxy(FLBuilder._multiplePhotosSelected,this))},_multiplePhotosSelected:function(i){for(var t=e(this).closest(".fl-multiple-photos-field"),l=t.find("input[type=hidden]"),n=t.find(".fl-multiple-photos-count"),s=[],o=0;o<i.models.length;o++)s.push(i.models[o].id);1==s.length?n.html("1 "+FLBuilderStrings.photoSelected):n.html(s.length+" "+FLBuilderStrings.photosSelected),t.removeClass("fl-multiple-photos-empty"),t.find("label.error").remove(),l.val(JSON.stringify(s)).trigger("change")},_initSingleVideoSelector:function(){null===FLBuilder._singleVideoSelector&&(FLBuilder._singleVideoSelector=wp.media({title:FLBuilderStrings.selectVideo,button:{text:FLBuilderStrings.selectVideo},library:{type:"video"},multiple:!1}),FLBuilder._singleVideoSelector.on("open",FLBuilder._wpmedia_reset_errors),_wpPluploadSettings.defaults.multipart_params.fl_upload_type="video")},_selectSingleVideo:function(){FLBuilder._initSingleVideoSelector(),FLBuilder._singleVideoSelector.once("select",e.proxy(FLBuilder._singleVideoSelected,this)),FLBuilder._singleVideoSelector.open()},_singleVideoSelected:function(){var i=FLBuilder._singleVideoSelector.state().get("selection").first().toJSON(),t=e(this).closest(".fl-video-field"),l=t.find(".fl-video-preview-img"),n=t.find(".fl-video-preview-filename"),s=t.find("input[type=hidden]");l.html('<span class="dashicons dashicons-media-video"></span>'),n.html(i.filename),t.removeClass("fl-video-empty"),t.find("label.error").remove(),s.val(i.id).trigger("change"),FLBuilderSettingsConfig.attachments[i.id]=i},_singleVideoRemoved:function(){FLBuilder._initSingleVideoSelector();var i=FLBuilder._singleVideoSelector.state(),t="undefined"!=typeof i?i.get("selection"):null,l=e(this).closest(".fl-video-field"),n=l.find(".fl-video-preview-img img"),s=l.find(".fl-video-preview-filename"),o=l.find("input[type=hidden]");t&&t.reset(),n.attr("src",""),s.html(""),l.addClass("fl-video-empty"),o.val("").trigger("change")},_selectMultipleAudios:function(){var i=e(this).closest(".fl-multiple-audios-field"),t=i.find("input[type=hidden]"),l=t.val(),n=""==l?'[playlist ids="-1"]':'[playlist ids="'+FLBuilder._jsonParse(l).join()+'"]',s=wp.shortcode.next("playlist",n).shortcode,o=wp.media.playlist.defaults.id,r=null,a=null;_.isUndefined(s.get("id"))&&!_.isUndefined(o)&&s.set("id",o),r=wp.media.playlist.attachments(s),a=new wp.media.model.Selection(r.models,{props:r.props.toJSON(),multiple:!0}),a.playlist=r.playlist,a.more().done(function(){a.props.set({query:!1}),a.unmirror(),a.props.unset("orderby")}),FLBuilder._multipleAudiosSelector&&FLBuilder._multipleAudiosSelector.dispose(),FLBuilder._multipleAudiosSelector=wp.media({frame:"post",state:e(this).hasClass("fl-multiple-audios-edit")?"playlist-edit":"playlist-library",title:wp.media.view.l10n.editPlaylistTitle,editing:!0,multiple:!0,selection:a}).open(),FLBuilder._multipleAudiosSelector.content.get("view").sidebar.unset("playlist"),FLBuilder._multipleAudiosSelector.on("content:render:browse",function(e){e&&e.sidebar.on("ready",function(){e.sidebar.unset("playlist")})}),FLBuilder._multipleAudiosSelector.once("update",e.proxy(FLBuilder._multipleAudiosSelected,this))},_multipleAudiosSelected:function(i){for(var t=e(this).closest(".fl-multiple-audios-field"),l=t.find(".fl-multiple-audios-count"),n=t.find("input[type=hidden]"),s=[],o=0;o<i.models.length;o++)s.push(i.models[o].id);1==s.length?l.html("1 "+FLBuilderStrings.audioSelected):l.html(s.length+" "+FLBuilderStrings.audiosSelected),n.val(JSON.stringify(s)).trigger("change"),t.removeClass("fl-multiple-audios-empty"),t.find("label.error").remove()},_initIconFields:function(){var i=e(".fl-builder-settings:visible").find(".fl-icon-field input");i.on("change",FLBuilder._toggleSettingsOnIconChange),i.trigger("change")},_toggleSettingsOnIconChange:function(){var i=e(this),t=i.val(),l=i.attr("data-show");"undefined"!=typeof l&&(l=FLBuilder._jsonParse(l),FLBuilder._settingsSelectToggle(l.fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(l.sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l.tabs,"hide","a[href*=fl-builder-settings-tab-","]"),t&&(FLBuilder._settingsSelectToggle(l.fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(l.sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(l.tabs,"show","a[href*=fl-builder-settings-tab-","]"),FLBuilder._calculateSettingsTabsOverflow()))},_selectIcon:function(){var e=this;FLIconSelector.open(function(i){FLBuilder._iconSelected.apply(e,[i])})},_iconSelected:function(i){var t=e(this).closest(".fl-icon-field"),l=t.find("input[type=hidden]"),n=t.find("i"),s=n.attr("data-icon");l.val(i).trigger("change"),n.removeClass(s),n.addClass(i),n.attr("data-icon",i),t.removeClass("fl-icon-empty"),t.find("label.error").remove()},_removeIcon:function(){var i=e(this).closest(".fl-icon-field"),t=i.find("input[type=hidden]"),l=i.find("i");t.val("").trigger("change"),l.removeClass(),l.attr("data-icon",""),i.addClass("fl-icon-empty")},_formFieldClicked:function(){var i=e(this),t=i.closest(".fl-builder-settings"),l=i.attr("data-type"),n=i.siblings("input").val(),s=FLBuilder._moduleHelpers[l],o=(FLBuilderSettingsConfig.forms[l],FLBuilder._openNestedSettings({className:"fl-builder-lightbox fl-form-field-settings"}));""===n&&(n=JSON.stringify(FLBuilderSettingsConfig.forms[l])),FLBuilderSettingsForms.render({id:l,nodeId:t.attr("data-node"),nodeSettings:FLBuilder._getSettings(t),settings:FLBuilder._jsonParse(n.replace(/'/g,"'")),lightbox:o,helper:s,rules:s?s.rules:null},function(){i.attr("id","fl-"+o._node.attr("data-instance-id")),o._node.find("form.fl-builder-settings").attr("data-type",l)})},_saveFormFieldClicked:function(){var i=e(this).closest(".fl-builder-settings"),t=e(this).closest(".fl-lightbox-wrap").attr("data-instance-id"),l=i.attr("data-type"),n=FLBuilder._getSettings(i),s={},o=FLBuilder._moduleHelpers[l],r=e(".fl-builder-settings #fl-"+t),a=r.parent().attr("data-preview-text"),d=i.find("#fl-field-"+a),u=n[a],c=e('select[name="'+a+'"]'),f=document.createElement("div"),h=!0;return c.length>0&&(u=c.find('option[value="'+n[a]+'"]').text()),"undefined"!=typeof o&&(i.find("label.error").remove(),i.validate().hideErrors(),h=i.validate().form(),h&&(h=o.submit())),h?("undefined"!=typeof a&&"undefined"!=typeof u&&("icon"===d.data("type")?u='<i class="'+u+'"></i>':u.length>35&&(f.innerHTML=u,u=(f.textContent||f.innerText||"").replace(/^(.{35}[^\s]*).*/,"$1")+"..."),r.siblings(".fl-form-field-preview-text").html(u)),s=r.siblings("input").val().replace(/'/g,"'"),""!=s&&(n=e.extend(FLBuilder._jsonParse(s),n)),r.siblings("input").val(JSON.stringify(n)).trigger("change"),FLBuilder._closeNestedSettings(),!0):(FLBuilder._toggleSettingsTabErrors(),!1)},_layoutFieldClicked:function(){var i=e(this);i.siblings().removeClass("fl-layout-field-option-selected"),i.addClass("fl-layout-field-option-selected"),i.siblings("input").val(i.attr("data-value"))},_initLinkFields:function(){e(".fl-builder-settings:visible .fl-link-field").each(FLBuilder._initLinkField)},_initLinkField:function(){var i=e(this),t=i.find(".fl-link-field-search-input"),l=i.find(".fl-link-field-options-wrap input[type=checkbox]");t.autoSuggest(FLBuilder._ajaxUrl({fl_action:"fl_builder_autosuggest",fl_as_action:"fl_as_links",_wpnonce:FLBuilderConfig.ajaxNonce}),{asHtmlID:t.attr("name"),selectedItemProp:"name",searchObjProps:"name",minChars:3,keyDelay:1e3,fadeOut:!1,usePlaceholder:!0,emptyText:FLBuilderStrings.noResultsFound,showResultListWhenNoMatch:!0,queryParam:"fl_as_query",selectionLimit:1,afterSelectionAdd:FLBuilder._updateLinkField}),l.on("click",FLBuilder._linkFieldCheckboxClicked)},_updateLinkField:function(e,i,t){var l=e.closest(".fl-link-field"),n=l.find(".fl-link-field-search"),s=l.find(".fl-link-field-search-input"),o=l.find(".fl-link-field-input");o.val(i.value).trigger("keyup"),s.autoSuggest("remove",i.value),n.hide()},_linkFieldSelectClicked:function(){var i=e(this).closest(".fl-link-field").find(".fl-link-field-search");i.show(),i.find("input").focus()},_linkFieldSelectCancelClicked:function(){var i=e(this);i.parent().hide(),i.closest(".fl-link-field").find("input.fl-link-field-input").focus()},_linkFieldCheckboxClicked:function(){var i=e(this),t=i.is(":checked"),l=i.siblings("input[type=hidden]"),n="";n=i.hasClass("fl-link-field-target-cb")?t?"_blank":"_self":t?"yes":"no",l.val(n)},_initFontFields:function(){e(".fl-builder-settings:visible .fl-font-field").each(FLBuilder._initFontField)},_initFontField:function(){var i=e(this),t=i.attr("data-value"),l=i.find(".fl-font-field-font"),n=i.find(".fl-font-field-weight");l.on("change",function(){FLBuilder._getFontWeights(l)}),t.indexOf("family")>-1&&(t=FLBuilder._jsonParse(t),l.val(t.family),l.trigger("change"),n.find("option[value="+t.weight+"]").length&&n.val(t.weight))},_getFontWeights:function(i){var t=i.closest(".fl-font-field").find(".fl-font-field-weight"),l=i.val(),n=t.val(),s=FLBuilderConfig.FontWeights,o={},r=i.closest(".fl-font-field").find(".recent-fonts option");if(t.html(""),r.length>0){var a=e(r).filter(function(e,i){return i.value===l}).length>0;!1===a&&i.closest(".fl-font-field").find(".recent-fonts").append(e("<option>",{value:l,text:l}))}o="undefined"!=typeof FLBuilderFontFamilies.system[l]?FLBuilderFontFamilies.system[l].weights:"undefined"!=typeof FLBuilderFontFamilies.google[l]?FLBuilderFontFamilies.google[l]:FLBuilderFontFamilies["default"][l],e.each(o,function(e,i){var l=n===i?" selected":"";t.append('<option value="'+i+'"'+l+">"+s[i]+"</option>")})},_initTinyMCE:function(){"object"==typeof tinymce&&"undefined"!=typeof tinymce.ui.FloatPanel&&(tinymce.ui.FloatPanel.zIndex=100100),e(".fl-builder-hidden-editor").each(FLBuilder._initEditorField)},_initEditorFields:function(){e(".fl-builder-settings:visible .fl-editor-field").each(FLBuilder._initEditorField)},_initEditorField:function(){var i=e(this),t=i.find("textarea"),l=i.attr("data-name"),n="flrich"+(new Date).getTime()+"_"+l,s=FLBuilderConfig.wp_editor,o=tinyMCEPreInit,r=Number(i.attr("data-buttons")),a=i.attr("data-rows"),d=null,u=null;s=s.replace(/flbuildereditor/g,n),o=FLBuilder._jsonParse(JSON.stringify(o).replace(/flbuildereditor/g,n)),o=JSONfn.parse(JSONfn.stringify(o).replace(/flbuildereditor/g,n)),t.after(s).remove(),e("textarea#"+n).val(t.val()),void 0!==typeof tinymce&&void 0!==o.mceInit[n]&&(d=o.mceInit[n],d.setup=function(e){e.on("SaveContent",function(e){e.content=e.content.replace(/src="(\.\.\/){1,2}/g,'src="'+FLBuilderConfig.homeUrl+"/")})},u=tinymce.$("#wp-"+n+"-wrap"),u.find("textarea").attr("rows",a),r||u.find(".wp-media-buttons").remove(),!u.hasClass("tmce-active")&&o.qtInit.hasOwnProperty(n)||d.wp_skip_init||tinymce.init(d)),void 0!==typeof quicktags&&quicktags(o.qtInit[n]),window.wpActiveEditor=n},_reinitEditorFields:function(){e(".fl-lightbox-resizable:visible").length&&setTimeout(function(){var i,t;if("undefined"!=typeof tinymce){for(i=tinymce.editors.length-1;i>-1;i--)tinymce.editors[i].inline||(t=tinymce.editors[i].id,tinyMCE.execCommand("mceRemoveEditor",!0,t),tinyMCE.execCommand("mceAddEditor",!0,t));FLBuilder.preview&&FLBuilder.preview._initDefaultFieldPreviews(e('.fl-field[data-type="editor"]'))}},1)},_destroyEditorFields:function(){var i;if("undefined"!=typeof tinymce){for(i=tinymce.editors.length-1;i>-1;i--)tinymce.editors[i].inline||tinyMCE.execCommand("mceRemoveEditor",!0,tinymce.editors[i].id);e(".wplink-autocomplete").remove(),e(".ui-helper-hidden-accessible").remove()}},_updateEditorFields:function(){var i=e(".fl-builder-settings:visible textarea.wp-editor-area");i.each(FLBuilder._updateEditorField)},_updateEditorField:function(){var i=e(this),t=i.closest(".fl-editor-field"),l=(i.closest(".fl-builder-settings"),i.closest(".wp-editor-wrap")),n=i.attr("id"),s=t.attr("data-name"),o="undefined"!=typeof tinymce&&tinymce.get(n),r=i.siblings('textarea[name="'+s+'"]'),a=t.data("wpautop");0===r.length&&(r=e('<textarea name="'+s+'"></textarea>').hide(),i.after(r)),a?o&&l.hasClass("tmce-active")?r.val(o.getContent()):"undefined"!=typeof switchEditors?r.val(switchEditors.wpautop(i.val())):r.val(i.val()):(o&&l.hasClass("tmce-active")&&o.save(),r.val(i.val()))},_loopDataSourceChange:function(){var i=e(this).val();e(".fl-loop-data-source").hide(),e('.fl-loop-data-source[data-source="'+i+'"]').show()},_customQueryPostTypeChange:function(){var i=e(this).val();e(".fl-custom-query-filter").hide(),e(".fl-custom-query-"+i+"-filter").show()},_initOrderingFields:function(){e(".fl-builder-settings:visible .fl-ordering-field-options").each(FLBuilder._initOrderingField)},_initOrderingField:function(){e(this).sortable({items:".fl-ordering-field-option",containment:"parent",tolerance:"pointer",stop:FLBuilder._updateOrderingField})},_updateOrderingField:function(i){var t=e(i.target),l=t.siblings("input[type=hidden]"),n=[];t.find(".fl-ordering-field-option").each(function(){n.push(e(this).attr("data-key"))}),l.val(JSON.stringify(n)).trigger("change")},_textFieldAddValueSelectChange:function(){var i=e(this),t=e('input[name="'+i.data("target")+'"]'),l=t.val(),n=i.val(),s="";-1==l.indexOf(n)&&(s=(l.trim()+" "+n.trim()).trim(),t.val(s).trigger("change").trigger("keyup")),i.val("")},_onNumberFieldFocus:function(i){var t=e(i.currentTarget);t.addClass("mousetrap"),Mousetrap.bind("up",function(){t.attr("step",1)}),Mousetrap.bind("down",function(){t.attr("step",1)}),Mousetrap.bind("shift+up",function(){t.attr("step",10)}),Mousetrap.bind("shift+down",function(){t.attr("step",10)})},_onNumberFieldBlur:function(i){var t=e(i.currentTarget);t.attr("step","any").removeClass("mousetrap")},_initTimezoneFields:function(){e(".fl-builder-settings:visible .fl-field[data-type=timezone]").each(FLBuilder._initTimezoneField)},_initTimezoneField:function(){var i=e(this).find("select"),t=i.attr("data-value");i.find('option[value="'+t+'"]').prop("selected",!0)},_initDimensionFields:function(){var i=e(".fl-builder-settings:visible");i.find(".fl-field[data-type=dimension]").each(FLBuilder._initDimensionField),i.find(".fl-dimension-field-link").on("click",FLBuilder._dimensionFieldLinkClicked),FLBuilder.addHook("responsive-editing-switched",this._initResponsiveDimensionFieldLinking),i.find(".fl-compound-field-setting").has(".fl-dimension-field-link").each(FLBuilder._initDimensionFieldLinking)},_initDimensionField:function(){var i=e(this),t=i.find(".fl-field-label label"),l=i.find(".fl-field-control-wrapper"),n='<i class="fl-dimension-field-link fl-tip dashicons dashicons-admin-links" title="Link Values"></i>';t.append(n),l.prepend(n),FLBuilder._initTipTips(),FLBuilder._initDimensionFieldLinking.apply(this)},_initDimensionFieldLinking:function(){var i=e(this),t=i.find(".fl-dimension-field-link"),l=FLBuilder._getDimensionFieldLinkingInputs(i),n=FLBuilder._dimensionFieldInputsAreEqual(l);n?(t.removeClass("dashicons-admin-links"),t.addClass("dashicons-editor-unlink"),l.off("input",FLBuilder._dimensionFieldLinkedValueChange),l.on("input",FLBuilder._dimensionFieldLinkedValueChange)):(t.addClass("dashicons-admin-links"),t.removeClass("dashicons-editor-unlink"))},_initResponsiveDimensionFieldLinking:function(){var i=e(".fl-builder-settings:visible");i.find(".fl-field[data-type=dimension]").each(FLBuilder._initDimensionFieldLinking)},_dimensionFieldLinkClicked:function(){var i=e(this),t=i.closest(".fl-compound-field-setting"),l=t.length?t:i.closest(".fl-field"),n=l.find(".fl-dimension-field-link"),s=n.hasClass("dashicons-editor-unlink"),o=FLBuilder._getDimensionFieldLinkingInputs(l);n.toggleClass("dashicons-admin-links"),n.toggleClass("dashicons-editor-unlink"),s?o.off("input",FLBuilder._dimensionFieldLinkedValueChange):(o.val(o.eq(0).val()).trigger("input"),o.on("input",FLBuilder._dimensionFieldLinkedValueChange))},_dimensionFieldLinkedValueChange:function(){var i=e(this),t=i.attr("name"),l=i.closest(".fl-dimension-field-units"),n=l.find('input:not([name="'+t+'"])');n.off("input",FLBuilder._dimensionFieldLinkedValueChange),n.val(i.val()).trigger("input"),n.on("input",FLBuilder._dimensionFieldLinkedValueChange)},_getDimensionFieldLinkingInputs:function(e){var i=!!e.find(".fl-field-responsive-setting").length,t=FLBuilderResponsiveEditing._mode,l=null;return l=i?e.find(".fl-field-responsive-setting-"+t+" input"):e.find(".fl-dimension-field-unit input")},_dimensionFieldInputsAreEqual:function(e){var i=e.eq(0).val();if(""===i)return!1;for(var t=1;t<4;t++)if(e.eq(t).val()!==i)return!1;return!0},_initFieldPopupSliders:function(){var i=e(".fl-builder-settings:visible"),t=i.find(".fl-field-popup-slider");t.each(FLBuilder._initFieldPopupSlider)},_initFieldPopupSlider:function(){var i=e("body"),t=e(this),l=t.find(".fl-field-popup-slider-input"),n=t.find(".fl-field-popup-slider-arrow"),s=t.data("input"),o=e('input[name="'+s+'"]');o.on("click",function(){l.hasClass("fl-field-popup-slider-init")||(l.slider({value:o.val(),slide:function(e,i){o.val(i.value).trigger("input")}}),o.on("input",function(){l.slider("value",e(this).val())}),l.addClass("fl-field-popup-slider-init"),l.find(".ui-slider-handle").removeAttr("tabindex")),FLBuilder._setFieldPopupSliderMinMax(l),FLBuilder._hideFieldPopupSliders(),i.on("mousedown",FLBuilder._hideFieldPopupSliders),o.addClass("fl-field-popup-slider-focus"),t.show();var s=e(".fl-builder-settings:visible .fl-builder-settings-tab.fl-active"),r=s.offset(),a=o.offset(),d=o.width(),u=t.offset();u.top+t.outerHeight()>r.top+s.outerHeight()&&t.addClass("fl-field-popup-slider-top"),n.css("left",2+a.left-u.left+d/2+"px")}),o.on("focus",function(){FLBuilder._hideFieldPopupSliders()})},_hideFieldPopupSliders:function(i){var t=i?e(i.target):null,l=e("body"),n=e(".fl-field-popup-slider:visible"),s=e(".fl-field-popup-slider-focus");if(t){if(t.closest(".fl-field-popup-slider").length)return;if(t.closest(".fl-field-popup-slider-focus").length)return}l.off("mousedown",FLBuilder._hideFieldPopupSliders),s.removeClass("fl-field-popup-slider-focus"),n.hide()},_setFieldPopupSliderMinMax:function(e){var i=e.parent(),t=i.parent().parent(),l=t.find("select.fl-field-unit-select"),n=l.val(),s=i.data("slider"),o=0,r=100,a=1;""!==n&&"em"!==n&&"rem"!==n||(r=10,a=.1),"object"==typeof s&&(o=s.min?parseFloat(s.min):o,r=s.max?parseFloat(s.max):r,a=s.step?parseFloat(s.step):a,l.length&&s[n]&&(o=s[n].min?parseFloat(s[n].min):o,r=s[n].max?parseFloat(s[n].max):r,a=s[n].step?parseFloat(s[n].step):a)),e.slider({min:o,max:r,
|
6 |
+
step:a})},_initPresetFields:function(){var i=e(".fl-builder-settings:visible"),t=i.find(".fl-preset-select-controls");t.each(FLBuilder._initPresetField)},_initPresetField:function(){var i=e(this),t=i.find("select"),l=i.data("presets"),n=i.data("prefix");t.on("change",FLBuilder._setFormPreset.bind(this,l,n))},_setFormPreset:function(i,t,l){var n=e(l.currentTarget).val();if(presetLists=FLBuilderConfig.presets,presets=presetLists[i],form=e(".fl-builder-settings:visible"),"undefined"!==presets&&"undefined"!==presets[n]){var s=presets[n].settings;for(var o in s){var r,n=s[o];r="undefined"!=typeof t&&""!==t?form.find('[name="'+t+o+'"]'):form.find('[name="'+o+'"]'),r.val(n).trigger("change").trigger("input")}}},ajax:function(i,t){var l;if(FLBuilder._ajaxRequest)return void FLBuilder._ajaxQueue.push({data:i,callback:t});FLBuilder.triggerHook("didBeginAJAX",i);for(l in i)"undefined"==typeof i[l]&&(i[l]=null);return i._wpnonce=FLBuilderConfig.ajaxNonce,i.post_id=FLBuilderConfig.postId,i.fl_builder=1,i.fl_action=i.action,"undefined"!=typeof i.settings&&(i.settings=FLBuilder._ajaxModSecFix(e.extend(!0,{},i.settings))),"undefined"!=typeof i.node_settings&&(i.node_settings=FLBuilder._ajaxModSecFix(e.extend(!0,{},i.node_settings))),i={fl_builder_data:i},FLBuilder._ajaxRequest=e.post(FLBuilder._ajaxUrl(),i,function(e){"undefined"!=typeof t&&t.call(this,e),FLBuilder.triggerHook("didCompleteAJAX",i)}).always(FLBuilder._ajaxComplete),FLBuilder._ajaxRequest},_ajaxComplete:function(){if(FLBuilder._ajaxRequest=null,FLBuilder.hideAjaxLoader(),FLBuilder._ajaxQueue.length){var e=FLBuilder._ajaxQueue.shift();FLBuilder.ajax(e.data,e.callback)}},_ajaxUrl:function(e){var i=window.location.href.split("#").shift(),t=null;if("undefined"!=typeof e)for(t in e)i+=i.indexOf("?")>-1?"&":"?",i+=t+"="+e[t];return i},showAjaxLoader:function(){0===e(".fl-builder-lightbox-loading").length&&e(".fl-builder-loading").show()},hideAjaxLoader:function(){e(".fl-builder-loading").hide()},_showNodeLoading:function(i){var t=e(".fl-node-"+i);t.addClass("fl-builder-node-loading"),FLBuilder._removeAllOverlays(),FLBuilder.triggerHook("didStartNodeLoading",t)},_hideNodeLoading:function(i){var t=e(".fl-node-"+i);t.removeClass("fl-builder-node-loading")},_showNodeLoadingPlaceholder:function(i,t){var l=e('<div class="fl-builder-node-loading-placeholder"></div>');e(".fl-builder-node-loading-placeholder").remove(),i.hasClass("fl-builder-content")?siblings=i.find(" > .fl-row"):i.hasClass("fl-row-content")?siblings=i.find(" > .fl-col-group"):i.hasClass("fl-col-group")?(i.addClass("fl-col-group-has-child-loading"),siblings=i.find(" > .fl-col")):siblings=i.find(" > .fl-col-group, > .fl-module"),0===siblings.length||siblings.length==t?i.append(l):siblings.eq(t).before(l)},_removeNodeLoadingPlaceholder:function(e){var i=e.prev(".fl-builder-node-loading-placeholder"),t=e.next(".fl-builder-node-loading-placeholder");i.length?i.remove():t.remove()},_ajaxModSecFix:function(e){var i;if(FLBuilderConfig.modSecFix&&"undefined"!=typeof btoa)if("string"==typeof e)e=FLBuilder._btoa(e);else for(i in e)"string"==typeof e[i]?e[i]=FLBuilder._btoa(e[i]):"object"==typeof e[i]&&(e[i]=FLBuilder._ajaxModSecFix(e[i]));return e},_btoa:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,i){return String.fromCharCode("0x"+i)}))},_wpmedia_reset_errors:function(){e(".upload-error").remove(),e(".media-uploader-status").removeClass("errors").hide()},_initLightboxes:function(){FLBuilder._lightbox=new FLLightbox({className:"fl-builder-lightbox fl-builder-settings-lightbox",resizable:!0}),FLBuilder._lightbox.on("resized",FLBuilder._calculateSettingsTabsOverflow),FLBuilder._lightbox.on("close",FLBuilder._lightboxClosed),FLBuilder._lightbox.on("beforeCloseLightbox",FLBuilder._destroyEditorFields),FLBuilder._actionsLightbox=new FLLightbox({className:"fl-builder-actions-lightbox"})},_showLightbox:function(e){e||(e='<div class="fl-builder-lightbox-loading"></div>'),FLBuilder._lightbox.open(e),FLBuilder._initLightboxScrollbars()},_setLightboxContent:function(e){FLBuilder._lightbox.setContent(e)},_initLightboxScrollbars:function(){FLBuilder._initScrollbars(),clearTimeout(FLBuilder._lightboxScrollbarTimeout),FLBuilder._lightboxScrollbarTimeout=setTimeout(FLBuilder._initLightboxScrollbars,500)},_lightboxClosed:function(){FLBuilder.triggerHook("settings-lightbox-closed"),FLBuilder._lightbox.empty(),clearTimeout(FLBuilder._lightboxScrollbarTimeout),FLBuilder._lightboxScrollbarTimeout=null},_showActionsLightbox:function(e){var i=wp.template("fl-actions-lightbox");FLBuilder.triggerHook("actions-lightbox-settings",e),FLBuilder._actionsLightbox.open(i(e))},alert:function(e){var i=new FLLightbox({className:"fl-builder-alert-lightbox",destroyOnClose:!0}),t=wp.template("fl-alert-lightbox");i.open(t({message:e}))},crashMessage:function(e){var i=new FLLightbox({className:"fl-builder-alert-lightbox fl-builder-crash-lightbox",destroyOnClose:!0}),t=wp.template("fl-crash-lightbox");message="Beaver Builder has detected a plugin conflict that is preventing the page from saving.<p>( In technical terms there’s probably a PHP error in Ajax. )</p>",info="If you contact Beaver Builder Support, we need to know what the error is in the JavaScript console in your browser.<p>To open the JavaScript console:<br />Chrome: View > Developer > JavaScript Console<br />Firefox: Tools > Web Developer > Browser Console<br />Safari: Develop > Show JavaScript console</p>Copy the errors you find there and submit them with your Support ticket. It saves us having to ask you that as a second step.<br /><br />If you want to troubleshoot further, you can check our <a class='link' target='_blank' href='https://kb.wpbeaverbuilder.com/article/42-known-beaver-builder-incompatibilities'>Knowledge Base</a> for plugins we know to be incompatible. Then deactivate your plugins one by one while you try to save the page in the Beaver Builder editor. When the page saves normally, you have identified the plugin causing the conflict. <a class='link' target='_blank' href='https://www.wpbeaverbuilder.com/beaver-builder-support/'>Contact Support</a> if you need further help.",e=!1,i.open(t({message:message,info:info,debug:e}))},_alertClose:function(){FLLightbox.closeParent(this)},confirm:function(i){var t={message:"",ok:function(){},cancel:function(){},strings:{ok:FLBuilderStrings.ok,cancel:FLBuilderStrings.cancel}},l=e.extend({},t,"undefined"==typeof i?{}:i);lightbox=new FLLightbox({className:"fl-builder-confirm-lightbox fl-builder-alert-lightbox",destroyOnClose:!0}),template=wp.template("fl-confirm-lightbox"),lightbox.open(template(l)),lightbox._node.find(".fl-builder-confirm-ok").on("click",l.ok),lightbox._node.find(".fl-builder-confirm-cancel").on("click",l.cancel)},triggerHook:function(i,t){e("body").trigger("fl-builder."+i,t)},addHook:function(i,t){e("body").on("fl-builder."+i,t)},removeHook:function(i,t){e("body").off("fl-builder."+i,t)},log:function(e){"undefined"!=typeof window.console&&"undefined"!=typeof window.console.log&&console.log(e)},logError:function(e,i){var t=null;"undefined"!=typeof e&&("undefined"!=typeof e.stack?t=e.stack:"undefined"!=typeof e.message&&(t=e.message),t&&(FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(t),"undefined"!=typeof i&&i&&(FLBuilder.log("Debug Info"),console.log(i)),FLBuilder.log("************************************************************************"),"undefined"!=typeof i&&i&&(t=i+"\n"+t),FLBuilder.crashMessage(t)))},logGlobalError:function(e,i,t,l,n){FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(FLBuilderStrings.globalErrorMessage.replace("{message}",e).replace("{line}",t).replace("{file}",i)),"undefined"!=typeof n&&"undefined"!=typeof n.stack&&FLBuilder.log(n.stack),FLBuilder.log("************************************************************************")},_jsonParse:function(e){try{e=JSON.parse(e)}catch(i){FLBuilder.logError(i,FLBuilder._parseError(e))}return e},_parseError:function(i){if(php=i.match(/^<.*/gm)||!1,php&&php.length>0){var t="";return e.each(php,function(e,i){t+=i}),e(t).text()}return!1},isUndefined:function(e){return void 0===e},isBoolean:function(e){return e===!0||e===!1}},e(function(){FLBuilder._init()})}(jQuery),function(e){FLBuilderAJAXLayout=function(i,t){this._data=e.extend({},this._defaults,"string"==typeof i?FLBuilder._jsonParse(i):i),this._callback=t,this._post=FLBuilderConfig.postId,this._head=e("head").eq(0),this._body=e("body").eq(0),this._data.css&&("inline"===FLBuilderConfig.enqueueMethod?(this._oldCss=e("#fl-builder-layout-"+this._post+"-inline-css"),this._newCss=e('<style id="fl-builder-layout-'+this._post+'-inline-css" type="text/css">'+this._data.css+"</style>")):(this._loader=e('<img src="'+this._data.css+'" />'),this._oldCss=e('link[href*="/cache/'+this._post+'-layout"]'),this._newCss=e('<link rel="stylesheet" id="fl-builder-layout-'+this._post+'-css" href="'+this._data.css+'" />'))),this._data.partial?(this._data.js&&(this._oldJs=e("#fl-builder-partial-refresh-js"),this._newJs=e('<script type="text/javascript" id="fl-builder-partial-refresh-js">'+this._data.js+"</script>")),this._data.nodeId&&(this._data.oldNodeId?(this._oldScriptsStyles=e('.fl-builder-node-scripts-styles[data-node="'+this._data.oldNodeId+'"]'),this._content=e(".fl-node-"+this._data.oldNodeId)):(this._oldScriptsStyles=e('.fl-builder-node-scripts-styles[data-node="'+this._data.nodeId+'"]'),this._content=e(".fl-node-"+this._data.nodeId).eq(0)))):("inline"===FLBuilderConfig.enqueueMethod?(this._oldJs=e("#fl-builder-layout-"+this._post+"-inline-js"),this._newJs=e('<script id="fl-builder-layout-'+this._post+'-inline-js">'+this._data.js+"</script>")):(this._oldJs=e('script[src*="/cache/'+this._post+'"]'),this._newJs=e('<script src="'+this._data.js+'"></script>')),this._oldScriptsStyles=e(".fl-builder-layout-scripts-styles"),this._content=e(FLBuilder._contentClass)),this._init()},FLBuilderAJAXLayout.prototype={_defaults:{partial:!1,nodeId:null,nodeType:null,nodeParent:null,nodePosition:null,oldNodeId:null,html:null,scriptsStyles:null,css:null,js:null},_data:null,_callback:function(){},_post:null,_head:null,_body:null,_loader:null,_oldCss:null,_newCss:null,_oldJs:null,_newJs:null,_oldScriptsStyles:null,_content:null,_init:function(){this._body.height(this._body.height()),this._data.css?"inline"===FLBuilderConfig.enqueueMethod?(this._addNewCSS(),this._finish()):"onload"in document.createElement("link")?(this._newCss.on("load",e.proxy(this._finish,this)),this._addNewCSS()):(this._loader.on("error",e.proxy(this._loadNewCSSFallbackComplete,this)),this._body.append(this._loader)):this._finish()},_loadNewCSSFallbackComplete:function(){this._loader.remove(),this._addNewCSS(),setTimeout(e.proxy(this._finish,this),250)},_addNewCSS:function(){this._oldCss.length>0?this._oldCss.after(this._newCss):this._head.append(this._newCss)},_finish:function(){this._removeOldContentAndAssets(),this._cleanNewHTML(),this._cleanNewAssets(),this._addNewHTML(),this._addNewScriptsStyles(),this._addNewJS(),e(FLBuilder._contentClass).trigger("fl-builder.layout-rendered"),FLBuilder.hideAjaxLoader()},_removeOldContentAndAssets:function(){this._content&&this._content.empty(),this._oldCss&&this._oldCss.remove(),this._oldJs&&this._oldJs.remove(),this._oldScriptsStyles&&this._oldScriptsStyles.remove()},_cleanNewHTML:function(){if(this._data.scriptsStyles){var i=e("<div>"+this._data.html+"</div>"),t="fl-row",l=this._data.scriptsStyles,n="";this._data.partial&&(t="column-group"==this._data.nodeType?"fl-col-group":"column"==this._data.nodeType?"fl-col":"fl-"+this._data.nodeType),i.find("> *, script").each(function(){e(this).hasClass(t)||"application/json"==e(this).attr("type")||(n=e(this).remove(),l+=n[0].outerHTML)}),""!==l&&(l=this._data.partial?'<div class="fl-builder-node-scripts-styles" data-node="'+this._data.nodeId+'">'+l+"<div>":'<div class="fl-builder-node-scripts-styles">'+l+"<div>"),this._data.html=i.html(),this._data.scriptsStyles=l}},_addNewHTML:function(){var i;if(this._data.partial?this._data.nodeParent?(i=this._data.nodeParent.hasClass("fl-builder-content")?this._data.nodeParent.find(" > .fl-row"):this._data.nodeParent.hasClass("fl-row-content")?this._data.nodeParent.find(" > .fl-col-group"):this._data.nodeParent.hasClass("fl-col-group")?this._data.nodeParent.find(" > .fl-col"):this._data.nodeParent.find(" > .fl-col-group, > .fl-module"),i=i.filter(":not(.fl-builder-node-clone)"),0===i.length||this._data.nodePosition>=i.length?this._data.nodeParent.append(this._data.html):i.eq(this._data.nodePosition).before(this._data.html),this._data.nodeId&&FLBuilder._removeNodeLoadingPlaceholder(e(".fl-node-"+this._data.nodeId))):(this._content.after(this._data.html),this._content.remove()):this._content.append(this._data.html),FLBuilder.preview&&this._data.nodeId&&this._data.nodeId!=FLBuilder.preview.nodeId){var t=e(FLBuilder.preview.classes.node),l=t.closest(".fl-node-"+this._data.nodeId).length;l&&t.html(FLBuilder.preview.elements.node.html())}this._data.onAddNewHTML&&this._data.onAddNewHTML()},_cleanNewAssets:function(){var i=this;this._data.html=this._removeDuplicateAssets(this._data.html),this._data.scriptsStyles&&""!==this._data.scriptsStyles&&(this._data.scriptsStyles=this._removeDuplicateAssets(this._data.scriptsStyles)),this._data.partial?e(".fl-builder-node-scripts-styles").each(function(){i._data.html.indexOf("fl-node-"+e(this).data("node"))>-1&&e(this).remove()}):(e("#fl-builder-partial-refresh-js").remove(),e(".fl-builder-node-scripts-styles").remove())},_removeDuplicateAssets:function(i){var t=e("<div>"+i+"</div>"),l="",n=null,s="",o=null,r=window.location,a=r.protocol+"//"+r.hostname+(r.port?":"+r.port:"");return t.find("script").each(function(){l=e(this).attr("src"),"undefined"!=typeof l&&(l=l.replace(a,""),n=e('script[src*="'+l+'"]'),n.length>0&&e(this).remove())}),t.find("link").each(function(){s=e(this).attr("href"),"undefined"!=typeof s&&(s=s.replace(a,""),o=e('link[href*="'+s+'"]'),o.length>0&&e(this).remove())}),t.html()},_addNewScriptsStyles:function(){this._data.scriptsStyles&&""!==this._data.scriptsStyles&&this._body.append(this._data.scriptsStyles)},_addNewJS:function(){setTimeout(e.proxy(function(){this._newJs&&this._head.append(this._newJs),FLBuilder.triggerHook("didRenderLayoutJSComplete")},this),50)},_complete:function(){FLBuilder._dragging?(FLBuilder._highlightRowsAndColsForDrag(),FLBuilder._refreshSortables()):(FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._resizeLayout()),FLBuilder._initMediaElements(),FLBuilderLayout.init(),FLBuilderResponsiveEditing.refreshPreview(this._callback),FLBuilder.triggerHook("didRenderLayoutComplete"),this._body.height("auto")}}}(jQuery),function(e){FLBuilderPreview=function(e){this.id=(new Date).getTime(),this.type=e.type,this._saveState(),e.layout?FLBuilder._renderLayout(e.layout,function(){this._init(),e.callback&&e.callback()}.bind(this)):this._init()},FLBuilderPreview._fontsList={},FLBuilderPreview.getFormattedSelector=function(e,i){for(var t="",l=i.split(","),n=0;n<l.length;n++)t+=l[n].indexOf("{node}")>-1?l[n].replace("{node}",e):l[n].indexOf("{node_id}")>-1?l[n].replace(/{node_id}/g,this.nodeId):e+" "+l[n],n!=l.length-1&&(t+=", ");return t},FLBuilderPreview.prototype={id:"",type:"",nodeId:null,classes:{},elements:{},state:null,_savedSettings:null,_styleSheet:null,_styleSheetMedium:null,_styleSheetResponsive:null,_timeout:null,_loaderTimeout:null,_lastClassName:null,_xhr:null,_init:function(){switch(this.nodeId=e(".fl-builder-settings").data("node"),this._saveSettings(),this._initElementsAndClasses(),this._createSheets(),this._initResponsivePreviews(),this._initDefaultFieldPreviews(),this.type){case"row":this._initRow();break;case"col":this._initColumn();break;case"module":this._initModule()}FLBuilder.triggerHook("preview-init",this)},_saveSettings:function(){var i=e(".fl-builder-settings-lightbox .fl-builder-settings");this._savedSettings=FLBuilder._getSettingsForChangedCheck(this.nodeId,i)},_settingsHaveChanged:function(){var i=e(".fl-builder-settings-lightbox .fl-builder-settings"),t=FLBuilder._getSettings(i);return JSON.stringify(this._savedSettings)!=JSON.stringify(t)},_initElementsAndClasses:function(){var i;i="row"==this.type?".fl-row-content-wrap":".fl-"+this.type+"-content",e.extend(this.classes,{settings:".fl-builder-"+this.type+"-settings",settingsHeader:".fl-builder-"+this.type+"-settings .fl-lightbox-header",node:FLBuilder._contentClass+" .fl-node-"+this.nodeId,content:FLBuilder._contentClass+" .fl-node-"+this.nodeId+" > "+i}),e.extend(this.elements,{settings:e(this.classes.settings),settingsHeader:e(this.classes.settingsHeader),node:e(this.classes.node),content:e(this.classes.content)})},_createSheets:function(){this._destroySheets(),this._styleSheet||(this._styleSheet=new FLStyleSheet({id:"fl-builder-preview",className:"fl-builder-preview-style"})),this._styleSheetMedium||(this._styleSheetMedium=new FLStyleSheet({id:"fl-builder-preview-medium",className:"fl-builder-preview-style"}),this._styleSheetMedium.disable()),this._styleSheetResponsive||(this._styleSheetResponsive=new FLStyleSheet({id:"fl-builder-preview-responsive",className:"fl-builder-preview-style"}),this._styleSheetResponsive.disable())},_destroySheets:function(){this._styleSheet&&(this._styleSheet.destroy(),this._styleSheet=null),this._styleSheetMedium&&(this._styleSheetMedium.destroy(),this._styleSheetMedium=null),this._styleSheetResponsive&&(this._styleSheetResponsive.destroy(),this._styleSheetResponsive=null)},_disableStyles:function(){var e=FLBuilderResponsiveEditing._mode,i=FLBuilderConfig.global,t=this.elements.node;"responsive"===e?(FLBuilderSimulateMediaQuery.disableStyles(i.responsive_breakpoint),this._styleSheetResponsive.disable()):"medium"===e?(FLBuilderSimulateMediaQuery.disableStyles(i.medium_breakpoint),this._styleSheetMedium.disable()):t.removeClass(function(e,i){return(i.match(/fl-node-[^\s]*/g)||[]).join(" ")})},_enableStyles:function(){var e=FLBuilderResponsiveEditing._mode,i=this.elements.node;"responsive"===e?(FLBuilderSimulateMediaQuery.enableStyles(),this._styleSheetResponsive.enable()):"medium"===e?(FLBuilderSimulateMediaQuery.enableStyles(),this._styleSheetMedium.enable()):i.addClass("fl-node-"+i.data("node"))},_getDefaultValue:function(i,t){var l="",n=e(i),s=n.closest("[data-node]"),o=["line-height","font-weight"];return"width"===t?l="auto":-1===e.inArray(t,o)&&s.length&&(this._disableStyles(),l=n.css(t),this._enableStyles()),l},updateCSSRule:function(e,i,t,l){var n=FLBuilderResponsiveEditing._mode,s="";""!==t&&"null"!==t||(t=this._getDefaultValue(e,i)),l?(s="string"==typeof l?this.toUpperCaseWords(l):"default"===n?"":this.toUpperCaseWords(n),this["_styleSheet"+s].updateRule(e,i,t)):this._styleSheet.updateRule(e,i,t)},delay:function(e,i){this._cancelDelay(),this._timeout=setTimeout(i,e)},_cancelDelay:function(){null!==this._timeout&&clearTimeout(this._timeout)},hexToRgb:function(e){var i=parseInt(e,16),t=i>>16&255,l=i>>8&255,n=255&i;return[t,l,n]},hexOrRgb:function(e){return e.indexOf("rgb")<0&&e.indexOf("#")<0&&(e="#"+e),e},parseFloat:function(e){return isNaN(parseFloat(e))?0:parseFloat(e)},_initResponsivePreviews:function(){var i=".preview-"+this.id;FLBuilder.addHook("responsive-editing-switched"+i,e.proxy(this._responsiveEditingSwitched,this)),FLBuilder.addHook("responsive-editing-before-preview-fields"+i,e.proxy(this._responsiveEditingPreviewFields,this))},_destroyResponsivePreviews:function(){var e=".preview-"+this.id;FLBuilder.removeHook("responsive-editing-switched"+e),FLBuilder.removeHook("responsive-editing-before-preview-fields"+e)},_responsiveEditingSwitched:function(e,i){"default"==i?(this._styleSheetMedium.disable(),this._styleSheetResponsive.disable()):"medium"==i?(this._styleSheetMedium.enable(),this._styleSheetResponsive.disable()):"responsive"==i&&(this._styleSheetMedium.enable(),this._styleSheetResponsive.enable())},_responsiveEditingPreviewFields:function(e,i){"medium"===i&&"col"===this.type&&this.elements.node[0].style.width&&(size=parseFloat(this.elements.node[0].style.width),this.elements.size.val(size))},updateResponsiveCSSRule:function(e,i,t){this.updateCSSRule(e,i,t,!0)},_saveState:function(){var i=FLBuilderConfig.postId,t=e('link[href*="/cache/'+i+'"]').attr("href"),l=e('script[src*="/cache/'+i+'"]').attr("src"),n=e(FLBuilder._contentClass).html();this.state={css:t,js:l,html:n}},preview:function(){var i=e(".fl-builder-settings-lightbox .fl-builder-settings"),t=i.attr("data-node"),l=FLBuilder._getSettings(i);FLBuilder._showNodeLoading(t),this._cancelPreview(),this._xhr=FLBuilder.ajax({action:"render_layout",node_id:t,node_preview:l},e.proxy(this._renderPreview,this))},delayPreview:function(i){var t="undefined"==typeof i?[]:e(i.target).closest("tr").find("th"),l=e(".fl-builder-widget-settings .fl-builder-settings-title"),n=e(".fl-builder-settings .fl-lightbox-header"),s=FLBuilderLayoutConfig.paths.pluginUrl+"img/ajax-loader-small.svg",o=e('<img class="fl-builder-preview-loader" src="'+s+'" />');this.delay(1e3,e.proxy(this.preview,this)),this._loaderTimeout=setTimeout(function(){e(".fl-builder-preview-loader").remove(),t.length>0?t.append(o):l.length>0?l.append(o):n.length>0&&n.append(o)},1500)},_cancelPreview:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)},_renderPreview:function(i){this._xhr=null,FLBuilder._renderLayout(i,e.proxy(this._renderPreviewComplete,this))},_renderPreviewComplete:function(){this._createSheets(),this._initElementsAndClasses(),this._initDefaultFieldPreviews(),null!==this._loaderTimeout&&clearTimeout(this._loaderTimeout),e(".fl-builder-preview-loader").remove(),e(FLBuilder._contentClass).trigger("fl-builder.preview-rendered")},revert:function(){var e=this.nodeId;return this._settingsHaveChanged()?("col"===this.type&&(e=this.elements.node.closest(".fl-col-group").data("node")),void FLBuilder._updateNode(e,function(){this.clear()}.bind(this))):void this.clear()},cancel:function(){this._cancelDelay(),this._cancelPreview()},clear:function(){this.cancel(),this._destroySheets(),this._destroyResponsivePreviews()},_initNodeTextColor:function(){e.extend(this.elements,{textColor:e(this.classes.settings+" input[name=text_color]"),linkColor:e(this.classes.settings+" input[name=link_color]"),hoverColor:e(this.classes.settings+" input[name=hover_color]"),headingColor:e(this.classes.settings+" input[name=heading_color]")}),this.elements.textColor.on("change",e.proxy(this._textColorChange,this)),this.elements.linkColor.on("change",e.proxy(this._textColorChange,this)),this.elements.hoverColor.on("change",e.proxy(this._textColorChange,this)),this.elements.headingColor.on("change",e.proxy(this._textColorChange,this))},_textColorChange:function(i){var t=this.elements.textColor.val(),l=this.elements.linkColor.val(),n=this.elements.hoverColor.val(),s=this.elements.headingColor.val();l=""===l?t:l,n=""===n?t:n,s=""===s?t:s,t&&t.indexOf("rgb")<0&&(t="#"+t),l&&l.indexOf("rgb")<0&&(l="#"+l),n&&n.indexOf("rgb")<0&&(n="#"+n),s&&s.indexOf("rgb")<0&&(s="#"+s),this.delay(50,e.proxy(function(){""===t?this.updateCSSRule(this.classes.node,"color",""):this.updateCSSRule(this.classes.node,"color",t),""===l?this.updateCSSRule(this.classes.node+" a","color",""):this.updateCSSRule(this.classes.node+" a","color",l),""===n?this.updateCSSRule(this.classes.node+" a:hover","color",""):this.updateCSSRule(this.classes.node+" a:hover","color",n),""===s?(this.updateCSSRule(this.classes.node+" h1","color",""),this.updateCSSRule(this.classes.node+" h2","color",""),this.updateCSSRule(this.classes.node+" h3","color",""),this.updateCSSRule(this.classes.node+" h4","color",""),this.updateCSSRule(this.classes.node+" h5","color",""),this.updateCSSRule(this.classes.node+" h6","color",""),this.updateCSSRule(this.classes.node+" h1 a","color",""),this.updateCSSRule(this.classes.node+" h2 a","color",""),this.updateCSSRule(this.classes.node+" h3 a","color",""),this.updateCSSRule(this.classes.node+" h4 a","color",""),this.updateCSSRule(this.classes.node+" h5 a","color",""),this.updateCSSRule(this.classes.node+" h6 a","color","")):(this.updateCSSRule(this.classes.node+" h1","color",s),this.updateCSSRule(this.classes.node+" h2","color",s),this.updateCSSRule(this.classes.node+" h3","color",s),this.updateCSSRule(this.classes.node+" h4","color",s),this.updateCSSRule(this.classes.node+" h5","color",s),this.updateCSSRule(this.classes.node+" h6","color",s),this.updateCSSRule(this.classes.node+" h1 a","color",s),this.updateCSSRule(this.classes.node+" h2 a","color",s),this.updateCSSRule(this.classes.node+" h3 a","color",s),this.updateCSSRule(this.classes.node+" h4 a","color",s),this.updateCSSRule(this.classes.node+" h5 a","color",s),this.updateCSSRule(this.classes.node+" h6 a","color",s))},this))},_initNodeBg:function(){e.extend(this.elements,{bgType:e(this.classes.settings+" select[name=bg_type]"),bgColor:e(this.classes.settings+" input[name=bg_color]"),bgColorPicker:e(this.classes.settings+" .fl-picker-bg_color"),bgGradientType:e(this.classes.settings+" select.fl-gradient-picker-type-select"),bgVideoSource:e(this.classes.settings+" select[name=bg_video_source]"),bgVideo:e(this.classes.settings+" input[name=bg_video]"),bgVideoServiceUrl:e(this.classes.settings+" input[name=bg_video_service_url]"),bgVideoFallbackSrc:e(this.classes.settings+" select[name=bg_video_fallback_src]"),bgSlideshowSource:e(this.classes.settings+" select[name=ss_source]"),bgSlideshowPhotos:e(this.classes.settings+" input[name=ss_photos]"),bgSlideshowFeedUrl:e(this.classes.settings+" input[name=ss_feed_url]"),bgSlideshowSpeed:e(this.classes.settings+" input[name=ss_speed]"),bgSlideshowTrans:e(this.classes.settings+" select[name=ss_transition]"),bgSlideshowTransSpeed:e(this.classes.settings+" input[name=ss_transitionDuration]"),bgParallaxImageSrc:e(this.classes.settings+" select[name=bg_parallax_image_src]"),bgOverlayType:e(this.classes.settings+" select[name=bg_overlay_type]"),bgOverlayColor:e(this.classes.settings+" input[name=bg_overlay_color]"),bgOverlayGradient:e(this.classes.settings+" #fl-field-bg_overlay_gradient select")}),this.elements.bgType.on("change",e.proxy(this._bgTypeChange,this)),this.elements.bgColor.on("change",e.proxy(this._bgColorChange,this)),this.elements.bgVideoServiceUrl.on("change",e.proxy(this._bgVideoChange,this)),this.elements.bgSlideshowSource.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowPhotos.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowFeedUrl.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowSpeed.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowTrans.on("change",e.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowTransSpeed.on("keyup",e.proxy(this._bgSlideshowChange,this)),this.elements.bgParallaxImageSrc.on("change",e.proxy(this._bgParallaxChange,this)),this.elements.bgOverlayType.on("change",e.proxy(this._bgOverlayChange,this)),this.elements.bgOverlayColor.on("change",e.proxy(this._bgOverlayChange,this))},_bgTypeChange:function(e){var i=this.elements.bgType.val(),t=FLBuilderResponsiveEditing._mode;this.elements.node.removeClass("fl-row-bg-video"),this.elements.node.removeClass("fl-row-bg-slideshow"),this.elements.node.removeClass("fl-row-bg-parallax"),this.elements.node.find(".fl-bg-video").remove(),this.elements.node.find(".fl-bg-slideshow").remove(),this.elements.content.css("background-image",""),this.updateCSSRule(this.classes.content,"background-color","transparent"),this.updateCSSRule(this.classes.content,"background-image","none"),this.updateCSSRule(this.classes.content,"background-image","none","medium"),this.updateCSSRule(this.classes.content,"background-image","none","responsive"),"none"==i?this._bgOverlayClear():"color"==i?(this.elements.bgColor.trigger("change"),this._bgOverlayClear()):"gradient"==i?(this.elements.bgGradientType.trigger("change"),this._bgOverlayClear()):"photo"==i?(this.elements.bgColor.trigger("change"),this.elements.settings.find('[data-device="'+t+'"] select[name*="bg_"]').trigger("change")):"video"==i?(this.elements.bgColor.trigger("change"),this._bgVideoChange()):"slideshow"==i?(this.elements.bgColor.trigger("change"),this._bgSlideshowChange()):"parallax"==i&&(this.elements.bgColor.trigger("change"),this.elements.bgParallaxImageSrc.trigger("change"))},_bgColorChange:function(i){var t;""===this.elements.bgColor.val()?this.updateCSSRule(this.classes.content,"background-color","transparent"):(t=this.hexOrRgb(this.elements.bgColor.val()),this.delay(100,e.proxy(function(){this.updateCSSRule(this.classes.content,"background-color",t)},this)))},_bgVideoChange:function(i){var t=this.elements,l=t.bgVideoSource.val(),n=t.bgVideo.val(),s=t.bgVideoServiceUrl.val(),o="https://www.youtube.com/iframe_api",r="https://player.vimeo.com/api/player.js",a=e("<script>");"video_service"==l&&""!=s?(/^(?:(?:(?:https?:)?\/\/)?(?:www.)?(?:youtu(?:be.com|.be))\/(?:watch\?v\=|v\/|embed\/)?([\w\-]+))/i.test(s)&&e('script[src*="youtube.com"').length<1?a.attr("src",o):/^(http\:\/\/|https\:\/\/)?(www\.)?(vimeo\.com\/)([0-9]+)$/.test(s)&&e('script[src*="vimeo.com"').length<1&&a.attr("src",r),a.attr("type","text/javascript").appendTo("head"),this.delay(500,e.proxy(this.preview,this))):""!=n&&this.preview()},_bgSlideshowChange:function(i){var t=this.elements,l=t.bgSlideshowSource.val(),n=t.bgSlideshowPhotos.val(),s=t.bgSlideshowFeedUrl.val(),o=t.bgSlideshowSpeed.val(),r=t.bgSlideshowTransSpeed.val();"wordpress"==l&&""===n||"smugmug"==l&&""===s||isNaN(parseInt(o))||isNaN(parseInt(r))||this.delay(500,e.proxy(this.preview,this))},_bgParallaxChange:function(e){this.elements.bgParallaxImageSrc.val()&&this.updateCSSRule(this.classes.content,{"background-image":"url("+this.elements.bgParallaxImageSrc.val()+")","background-repeat":"no-repeat","background-position":"center center","background-attachment":"fixed","background-size":"cover"})},_bgOverlayChange:function(i){var t,l=this.elements.bgOverlayType.val(),n=this.elements.bgOverlayColor.val();"color"===l?(""===n?(this.elements.node.removeClass("fl-row-bg-overlay"),this.elements.node.removeClass("fl-col-bg-overlay"),this.updateCSSRule(this.classes.content+"::after","background-color","transparent")):(t=this.hexOrRgb(this.elements.bgOverlayColor.val()),this.delay(100,e.proxy(function(){this._bgOverlayAddClasses(),this.updateCSSRule(this.classes.content+"::after","background-color",t)},this))),this.updateCSSRule(this.classes.content+"::after","background-image","none")):"gradient"===l?(this._bgOverlayAddClasses(),this.updateCSSRule(this.classes.content+"::after","background-color","transparent"),this.elements.bgOverlayGradient.trigger("change")):(this.elements.node.removeClass("fl-row-bg-overlay"),this.elements.node.removeClass("fl-col-bg-overlay"),this.updateCSSRule(this.classes.content+"::after","background-color","transparent"),this.updateCSSRule(this.classes.content+"::after","background-image","none"))},_bgOverlayAddClasses:function(){this.elements.node.hasClass("fl-col")?this.elements.node.addClass("fl-col-bg-overlay"):this.elements.node.addClass("fl-row-bg-overlay")},_bgOverlayClear:function(e){this.elements.bgOverlayColor.prev(".fl-color-picker-clear").trigger("click"),this.elements.bgOverlayType.val("color").trigger("change")},_initNodeClassName:function(){e.extend(this.elements,{className:e(this.classes.settings+" input[name=class]")}),this.elements.className.on("keyup",e.proxy(this._classNameChange,this)),this._lastClassName=this.elements.className.val()},_classNameChange:function(e){var i=this.elements.className.val();null!==this._lastClassName&&this.elements.node.removeClass(this._lastClassName),this.elements.node.addClass(i),this._lastClassName=i},_initNodeDimensions:function(i){var t={},l=["Top","Bottom","Left","Right"],n=["","Medium","Responsive"],s=this.classes.settings,o="",r="",a=null,d=null;
|
7 |
+
for(a=0;a<l.length;a++)for(d=0;d<n.length;d++)o=i+l[a]+n[d],r=i+"_"+l[a].toLowerCase(),""!=n[d]&&(r+="_"+n[d].toLowerCase()),t[o]=e(s+" input[name="+r+"]");e.extend(this.elements,t)},_initRow:function(){e.extend(this.elements,{width:e(this.classes.settings+" select[name=width]"),contentWidth:e(this.classes.settings+" select[name=content_width]"),maxContentWidth:e(this.classes.settings+" input[name=max_content_width]"),maxContentWidthUnit:e(this.classes.settings+" select[name=max_content_width_unit]"),height:e(this.classes.settings+" select[name=full_height]"),minHeight:e(this.classes.settings+" input[name=min_height]"),align:e(this.classes.settings+" select[name=content_alignment]")}),this.elements.width.on("change",e.proxy(this._rowWidthChange,this)),this.elements.contentWidth.on("change",e.proxy(this._rowContentWidthChange,this)),this.elements.maxContentWidth.on("input",e.proxy(this._rowMaxContentWidthChange,this)),this.elements.maxContentWidthUnit.on("change",e.proxy(this._rowMaxContentWidthChange,this)),this.elements.height.on("change",e.proxy(this._rowHeightChange,this)),this.elements.align.on("change",e.proxy(this._rowHeightChange,this)),this._initNodeTextColor(),this._initNodeBg(),this._initNodeClassName(),this._initNodeDimensions("border"),this._initNodeDimensions("margin"),this._initNodeDimensions("padding")},_rowWidthChange:function(e){var i=(FLBuilderConfig.global,this.elements.node),t=this.elements.content.find(".fl-row-content");this.elements.maxContentWidth.val(),this.elements.maxContentWidthUnit.val();i.css("max-width","none"),t.css("max-width","none"),"full"==this.elements.width.val()?(i.removeClass("fl-row-fixed-width"),i.addClass("fl-row-full-width")):(i.removeClass("fl-row-full-width"),i.addClass("fl-row-fixed-width")),this._rowMaxContentWidthChange()},_rowContentWidthChange:function(e){var i=(FLBuilderConfig.global,this.elements.node),t=this.elements.content.find(".fl-row-content");this.elements.maxContentWidth.val(),this.elements.maxContentWidthUnit.val();i.css("max-width","none"),t.css("max-width","none"),"full"==this.elements.contentWidth.val()?(t.removeClass("fl-row-fixed-width"),t.addClass("fl-row-full-width")):(t.removeClass("fl-row-full-width"),t.addClass("fl-row-fixed-width"),this._rowMaxContentWidthChange())},_rowMaxContentWidthChange:function(e){var i=FLBuilderConfig.global,t=this.elements.node,l=this.elements.content.find(".fl-row-content"),n=this.elements.maxContentWidth.val(),s=this.elements.maxContentWidthUnit.val();""==n?n=i.row_width+i.row_width_unit:n+=s,"fixed"===this.elements.width.val()&&t.css("max-width",n),l.css("max-width",n)},_rowHeightChange:function(e){var i=this.elements.node;this.elements.content;i.removeClass("fl-row-align-top"),i.removeClass("fl-row-align-center"),i.removeClass("fl-row-align-bottom"),i.removeClass("fl-row-full-height"),i.removeClass("fl-row-custom-height"),"full"==this.elements.height.val()?(i.addClass("fl-row-full-height"),i.addClass("fl-row-align-"+this.elements.align.val()),this.elements.minHeight.val("").trigger("input")):"custom"==this.elements.height.val()?(i.addClass("fl-row-custom-height"),i.addClass("fl-row-align-"+this.elements.align.val()),this.elements.minHeight.trigger("input")):this.elements.minHeight.val("").trigger("input")},_initColumn:function(){e.extend(this.elements,{size:e(this.classes.settings+" input[name=size]"),sizeMedium:e(this.classes.settings+" input[name=size_medium]"),sizeResponsive:e(this.classes.settings+" input[name=size_responsive]"),columnHeight:e(this.classes.settings+" select[name=equal_height]"),columnAlign:e(this.classes.settings+" select[name=content_alignment]"),responsiveOrder:e(this.classes.settings+" select[name=responsive_order]")}),this.elements.size.on("input",e.proxy(this._colSizeChange,this)),this.elements.sizeMedium.on("input",e.proxy(this._colSizeChange,this)),this.elements.sizeResponsive.on("input",e.proxy(this._colSizeChange,this)),this.elements.columnHeight.on("change",e.proxy(this._colHeightChange,this)),this.elements.columnAlign.on("change",e.proxy(this._colHeightChange,this)),this.elements.responsiveOrder.on("change",e.proxy(this._colResponsiveOrder,this)),this._initNodeTextColor(),this._initNodeBg(),this._initNodeClassName(),this._initNodeDimensions("border"),this._initNodeDimensions("margin"),this._initNodeDimensions("padding")},_colSizeChange:function(i){var t=e(i.target),l=8,n=100-l,s=parseFloat(t.val()),o=this.elements.node.closest(".fl-col-group"),r=this.elements.node.prev(".fl-col"),a=this.elements.node.next(".fl-col"),d=0===a.length?r:a,u=this.elements.node.siblings(".fl-col"),c=0,f=FLBuilderResponsiveEditing._mode;0!==u.length&&(isNaN(s)&&("medium"===f?s=this.elements.size.val():"responsive"===f&&(s=this.elements.sizeMedium.val()?this.elements.sizeMedium.val():"auto"),"auto"!==s&&isNaN(s)&&(s=l)),"default"===f?(u.each(function(){e(this).data("node")!=d.data("node")&&(n-=parseFloat(e(this)[0].style.width),c+=parseFloat(e(this)[0].style.width))}),s<l&&(s=l),s>n&&(s=n),this.elements.node.css("width",s+"%"),d.css("width",100-c-s+"%")):(s>100&&(s=100,t.val(100)),this.updateCSSRule(this.classes.node,{"max-width":("auto"===s?100:s)+"% !important",width:("auto"===s?s:s+"%")+" !important"},void 0,!0),"responsive"===f&&(t.val()?(this.updateCSSRule(this.classes.node,"float",FLBuilderConfig.isRtl?"right":"left",!0),this.updateCSSRule(this.classes.node,"clear","none",!0)):(this.updateCSSRule(this.classes.node,"float","none",!0),this.updateCSSRule(this.classes.node,"clear","both",!0)),t.val()||this._colsHaveCustomResponsiveWidth(u)?o.addClass("fl-col-group-custom-width"):o.removeClass("fl-col-group-custom-width"))))},_colsHaveCustomResponsiveWidth:function(i){var t=FLBuilderSettingsConfig.nodes,l=!1;return i.each(function(){var i=e(this).data("node");t[i]&&t[i].size_responsive&&(l=!0)}),l},_colHeightChange:function(){var e=this.elements.node.parent(".fl-col-group");e.removeClass("fl-col-group-align-top"),e.removeClass("fl-col-group-align-center"),e.removeClass("fl-col-group-align-bottom"),"yes"==this.elements.columnHeight.val()?(e.addClass("fl-col-group-equal-height"),e.addClass("fl-col-group-align-"+this.elements.columnAlign.val())):e.removeClass("fl-col-group-equal-height")},_colResponsiveOrder:function(){var e=this.elements.node.parent(".fl-col-group");"reversed"==this.elements.responsiveOrder.val()?e.addClass("fl-col-group-responsive-reversed"):e.removeClass("fl-col-group-responsive-reversed")},_initModule:function(){this._initNodeClassName(),this._initNodeDimensions("margin")},_initDefaultFieldPreviews:function(e){for(var e=FLBuilder.isUndefined(e)?this.elements.settings.find(".fl-field"):e,i=null,t=null,l=null,n=0;n<e.length;n++)i=e.eq(n),t=i.data("type"),l=i.data("preview"),"refresh"==l.type&&this._initFieldRefreshPreview(i),"text"==l.type&&this._initFieldTextPreview(i),"css"==l.type&&this._initFieldCSSPreview(i),"widget"==l.type&&this._initFieldWidgetPreview(i),"font"==l.type&&this._initFieldFontPreview(i),"attribute"==l.type&&this._initFieldAttributePreview(i),"animation"==l.type&&this._initFieldAnimationPreview(l,i),"callback"==l.type&&this._initFieldCallbackPreview(l,i,t,e),this._initFieldUnitSelect(i)},_initFieldCallbackPreview:function(i,t,l,n){var s,o=i.callback,r=e(".fl-builder-settings:visible"),a=r.data("node"),d=e(".fl-builder-content .fl-node-"+a);if("undefined"!=typeof FLBuilderPreviewCallbacks[o]?s=FLBuilderPreviewCallbacks[o]:"undefined"!=typeof window[o]&&(s=window[o]),"function"==typeof s){var u={field:t,fields:n,type:l,preview:i,form:r,nodeID:a,node:d};switch(l){case"align":case"button-group":case"text":case"multiple-photos":case"video":case"icon":case"ordering":u.input=t.find("input"),u.getValue=function(){return u.input.val()};break;case"color":u.input=t.find("input.fl-color-picker-value"),u.getValues=function(){var e=u.input.val();({value:e,formattedValue:FLBuilderPreview.formatColor(e)})};break;case"textarea":case"code":u.textarea=t.find("textarea"),u.getValue=function(){return u.textarea.val()};break;case"select":case"photo-sizes":case"post-type":u.select=t.find("select"),u.getValue=function(){return u.select.val()};break;case"photo":u.input=t.find("input[type=hidden]"),u.sizeSelect=t.find("select"),u.getValues=function(){return{value:u.input.val(),size:u.sizeSelect.val()}};break;case"unit":u.input=t.find("input[type=number]"),u.unitSelect=t.find(".fl-field-unit-select"),u.getValues=function(){var e=u.input.val(),i=u.unitSelect.val(),t={value:e,unit:i,formattedValue:e+i};return t};break;case"dimension":u.inputs=t.find("input[type=number]"),u.unitSelect=t.find(".fl-field-unit-select"),u.getValues=function(){var i={inputs:[],props:{},unit:u.unitSelect.val()};return u.inputs.each(function(t,l){var l=e(l),n=l.val(),s=l.data("unit");i.inputs.push(n),i.props[s]=n}),i};break;case"animation":u.input=t.find("input"),u.select=t.find("select"),u.getValues=function(){return{delay:u.input.val(),style:u.select.val()}};break;case"link":u.input=t.find(".fl-link-field-input-wrap input"),u.targetInput=t.find("input[name$=_target]"),u.noFollowInput=t.find("input[name$=_nofollow]"),u.getValues=function(){return{url:u.input.val(),target:u.targetInput.val(),noFollow:u.noFollowInput.val()}};break;case"shadow":u.colorInput=t.find("input.fl-color-picker-value"),u.inputs=t.find("input[type=number]"),u.getValues=function(){({color:u.colorInput.val(),x:u.inputs[0].val(),y:u.inputs[1].val(),blur:u.inputs[2].val(),spread:u.inputs[3].val()})};break;case"gradient":u.inputs=t.find("input"),u.select=t.find("select"),u.gradientInputs={},u.gradientInputs.type=t.find('select[name$="[type]"]'),u.gradientInputs.angle=t.find('input[name$="[angle]"]'),u.gradientInputs.position=t.find('select[name$="[position]"]'),u.gradientInputs.stops=[],t.find(".fl-gradient-picker-colors .fl-gradient-picker-color-row").each(function(i,t){t=e(t),u.gradientInputs.stops.push({color:t.find(".fl-gradient-picker-color input"),stop:t.find(".fl-gradient-picker-stop input")})}),u.getValues=function(){var e={type:u.gradientInputs.type.val(),angle:u.gradientInputs.angle.val(),position:u.gradientInputs.position.val(),stops:[]};for(var i in u.gradientInputs.stops){var t=u.gradientInputs.stops[i];e.stops[i]={color:t.color.val(),stop:t.stop.val()}}return e};break;case"shape-transform":u.inputs=t.find("input"),u.getValues=function(){return{scaleXSign:u.inputs.eq(0).val(),scaleYSign:u.inputs.eq(1).val(),skewX:u.inputs.eq(2).val(),skewY:u.inputs.eq(3).val(),scaleX:u.inputs.eq(4).val(),rotate:u.inputs.eq(5).val(),scaleY:u.inputs.eq(6).val()}};break;default:u.input=t.find("input"),u.getValue=function(){return u.input.val()}}var c=t.find(".fl-field-responsive-toggle");u.responsiveToggle=!!c.length&&c,s=s.bind(this,u);var f={input:"change keyup input",inputs:"change keyup input",targetInput:"change keyup input",noFollowInput:"change keyup input",colorInput:"change input",textarea:"change keyup input",select:"change",sizeSelect:"change",unitSelect:"change"};for(var h in f)"undefined"!=typeof u[h]&&u[h].on(f[h],s)}},_initFieldRefreshPreview:function(i){var t=i.data("type"),l=i.data("preview"),n=e.proxy(this.delayPreview,this);switch(t){case"align":i.find("input").on("change",n);break;case"text":i.find("input[type=text]").on("keyup",n);break;case"textarea":i.find("textarea").on("keyup",n);break;case"select":i.find("select").on("change",n);break;case"color":i.find(".fl-color-picker-value").on("change",n);break;case"photo":i.find("select").on("change",n);break;case"multiple-photos":i.find("input").on("change",n);break;case"photo-sizes":i.find("select").on("change",n);break;case"video":i.find("input").on("change",n);break;case"multiple-audios":i.find("input").on("change",n);break;case"icon":i.find("input").on("change",n);break;case"form":i.delegate("input","change",n);break;case"editor":this._addTextEditorCallback(i,l);break;case"code":i.find("textarea").on("change",n);break;case"post-type":i.find("select").on("change",n);break;case"suggest":i.find(".as-values").on("change",n),i.find("select").on("change",n);break;case"unit":case"dimension":i.find("input[type=number]").on("input",n);break;case"ordering":i.find("input[type=hidden]").on("change",n);break;default:i.on("change",n)}},_initFieldTextPreview:function(i){var t=i.data("type"),l=i.data("preview"),n=e.proxy(this._previewText,this,l);switch(t){case"text":i.find("input[type=text]").on("keyup",n);break;case"unit":i.find("input[type=number]").on("keyup",n);break;case"textarea":i.find("textarea").on("keyup",n);break;case"code":i.find("textarea").on("change",n);break;case"editor":this._addTextEditorCallback(i,l)}},_previewText:function(i,t){var l=this._getPreviewSelector(this.classes.node,i.selector),n=e(l),s=e("<div>"+e(t.target).val()+"</div>");n.length>0?(s.find("script").remove(),n.html(s.html())):this.delayPreview(t)},_previewTextEditor:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=e(n),o="undefined"!=typeof tinyMCE?tinyMCE.get(t):null,r=e("#"+t),a="";s.length>0&&(a=e(o&&"none"==r.css("display")?"<div>"+o.getContent()+"</div>":"undefined"==typeof switchEditors||"undefined"==typeof switchEditors.wpautop?"<div>"+r.val()+"</div>":"<div>"+switchEditors.wpautop(r.val())+"</div>"),a.find("script").remove(),s.html(a.html()))},_addTextEditorCallback:function(i,t){var l=i.find("textarea.wp-editor-area").attr("id"),n=null;if("refresh"==t.type)n=e.proxy(this.delayPreview,this);else{if("text"!=t.type)return;n=e.proxy(this._previewTextEditor,this,t,l)}e("#"+l).on("keyup",n),"undefined"!=typeof tinyMCE&&(editor=tinyMCE.get(l),editor.on("change",n),editor.on("keyup",n))},_initFieldFontPreview:function(i){var t=i.data("type"),l=i.data("preview");l.id=i.attr("id");var n=e.proxy(this._previewFont,this,l);"font"==t&&i.find(".fl-font-field").on("change","select",n)},_previewFont:function(i,t){var l=e(t.delegateTarget),n=l.find(".fl-font-field-font"),s=e(n).find(":selected"),o=s.parent().attr("label"),r=l.find(".fl-font-field-weight"),a=i.id+"-"+this.nodeId,d=this._getPreviewSelector(this.classes.node,i.selector),u=i.important?" !important":"",c="";"Google"==o&&this._buildFontStylesheet(a,n.val(),r.val()),c=n.val();var f=new RegExp("[0-9]");f.test(n.val())&&(c='"'+n.val()+'"'),this.updateCSSRule(d,"font-family","Default"===n.val()?"":c+u),this.updateCSSRule(d,"font-weight","default"===r.val()?"":r.val()+u)},_buildFontStylesheet:function(i,t,l){var n=FLBuilderConfig.googleFontsUrl,s="",o={},r={};o[t]=[l],FLBuilderPreview._fontsList[i]=o,Object.keys(FLBuilderPreview._fontsList).forEach(function(e){var i=FLBuilderPreview._fontsList[e];Object.keys(i).forEach(function(e){var t=i[e];r[e]=r[e]||[],t=t.filter(function(i){return r[e].indexOf(i)<0}),r[e]=r[e].concat(t)})}),e.each(r,function(e,i){s+=e+":"+i.join()+"|"}),s=n+s.slice(0,-1).replace(" ","+"),e("#fl-builder-google-fonts-preview").length<1?e("<link>").attr("id","fl-builder-google-fonts-preview").attr("type","text/css").attr("rel","stylesheet").attr("href",s).appendTo("head"):e("#fl-builder-google-fonts-preview").attr("href",s)},_initFieldCSSPreview:function(e){var i=e.data("preview"),t=null;if("undefined"!=typeof i.rules)for(t in i.rules)this._initFieldCSSPreviewCallback(e,i.rules[t]);else this._initFieldCSSPreviewCallback(e,i)},_initFieldCSSPreviewCallback:function(i,t){switch(i.data("type")){case"align":i.find("input").on("change",e.proxy(this._previewCSS,this,t,i));break;case"border":i.find("select").on("change",e.proxy(this._previewBorderCSS,this,t,i)),i.find("input[type=number]").on("input",e.proxy(this._previewBorderCSS,this,t,i)),i.find("input[type=hidden]").on("change",e.proxy(this._previewBorderCSS,this,t,i));break;case"color":i.find(".fl-color-picker-value").on("change",e.proxy(this._previewColorCSS,this,t,i));break;case"dimension":i.find("input[type=number]").on("input",e.proxy(this._previewDimensionCSS,this,t,i));break;case"gradient":i.find("select").on("change",e.proxy(this._previewGradientCSS,this,t,i)),i.find(".fl-gradient-picker-angle").on("input",e.proxy(this._previewGradientCSS,this,t,i)),i.find(".fl-color-picker-value").on("change",e.proxy(this._previewGradientCSS,this,t,i)),i.find(".fl-gradient-picker-stop").on("input",e.proxy(this._previewGradientCSS,this,t,i));break;case"photo":i.find("select").on("change",e.proxy(this._previewCSS,this,t,i));break;case"select":i.find("select").on("change",e.proxy(this._previewCSS,this,t,i));break;case"shadow":i.find("input").on("input",e.proxy(this._previewShadowCSS,this,t,i)),i.find(".fl-color-picker-value").on("change",e.proxy(this._previewShadowCSS,this,t,i));break;case"text":i.find("input[type=text]").on("keyup",e.proxy(this._previewCSS,this,t,i));break;case"typography":i.find("select").on("change",e.proxy(this._previewTypographyCSS,this,t,i)),i.find("input[type=number]").on("input",e.proxy(this._previewTypographyCSS,this,t,i)),i.find("input[type=hidden]").on("change",e.proxy(this._previewTypographyCSS,this,t,i));break;case"unit":i.find("input[type=number]").on("input",e.proxy(this._previewCSS,this,t,i))}},_previewCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=i.property,o=this._getPreviewCSSUnit(i,t,l),r=e(l.target),a=r.val(),d=!!r.closest(".fl-field-responsive-setting").length,u=i.important&&""!==a?" !important":"";s.indexOf("image")>-1&&a?a="url("+a+")":"%"===o&&"opacity"===s?a=parseInt(a)/100:""!==a&&(a+=o),this.updateCSSRule(n,s,a+u,d)},_previewBorderCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=e(l.target),t=s.closest(".fl-field"),o=s.closest(".fl-compound-field-setting"),r=o.data("property"),a=s.val(),d=(o.find(".fl-field-unit-select"),!!s.closest(".fl-field-responsive-setting").length),u=i.important&&""!==a?" !important":"";i.property=r,"border-color"===r?this._previewColorCSS(i,t,l):"border-width"===r||"border-radius"===r?this._previewDimensionCSS(i,t,l):"box-shadow"===r?this._previewShadowCSS(i,o,l):("border-style"===r&&t.find(".fl-border-field-width input:visible").trigger("input"),this.updateCSSRule(n,r,a+u,d))},_previewColorCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=e(l.target),o=s.val(),r=!!s.closest(".fl-field-responsive-setting").length,a=i.important&&""!==o?" !important":"";""!==o&&o.indexOf("rgb")<0&&(o="#"+o),this.updateCSSRule(n,i.property,o+a,r)},_previewDimensionCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=i.property,o=t.attr("id").replace("fl-field-",""),r=e(l.target).data("unit"),a=this._getDimensionValue(i,t,r,l),d=!!t.find(".fl-field-responsive-setting").length,u=i.important&&""!==a?" !important":"";s="border-radius"===s?"border-"+r.replace("_","-")+"-radius":"border-width"===s?"border-"+r+"-width":s+"-"+r,this.updateCSSRule(n,s,a+u,d),"margin"!==o&&"padding"!==o&&"border"!==o||this.elements.node.find(".fl-bg-slideshow").length&&FLBuilder._resizeLayout()},_getDimensionValue:function(i,t,l,n){var s=e(n.target).val(),o="";return s=s.toLowerCase().replace(/[^a-z0-9%.\-]/g,""),null===s||""===s||isNaN(s)||(o=this._getPreviewCSSUnit(i,t,n),s=parseFloat(s)+(o?o:"px")),s},_getPreviewCSSUnit:function(i,t,l){var n=e(l.target),s=(FLBuilderResponsiveEditing._mode,!!n.closest(".fl-compound-field-setting").length),o=!!n.closest(".fl-field-responsive-setting").length,r=null;return r=s?n.closest(".fl-compound-field-setting").find(".fl-field-unit-select"):o?n.closest(".fl-field-responsive-setting").find(".fl-field-unit-select"):t.find(".fl-field-unit-select"),r&&r.length?"SELECT"===r.prop("tagName")?r.val():r.text():i.unit?i.unit:""},_initFieldUnitSelect:function(i){i.find(".fl-field-unit-select").on("change",function(){var i=e(this),t=i.closest(".fl-field-responsive-setting"),l=i.closest(".fl-field");t.length?t.find("input").trigger("input"):l.find("input").trigger("input")})},_previewGradientCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=t.find(".fl-gradient-picker-type-select").val(),o=t.find(".fl-gradient-picker-angle").val(),r=t.find(".fl-gradient-picker-position").val(),a=t.find(".fl-color-picker-value"),d=t.find(".fl-gradient-picker-stop input"),u=[],c="",f="";a.each(function(i){var t=e(this).val(),l=d.eq(i).val();""===t&&(t="rgba(255,255,255,0)"),t.indexOf("rgb")<0&&(t="#"+t),isNaN(l)&&(l=0),u.push(t+" "+l+"%")}),u=u.join(", "),"linear"===s?(isNaN(o)&&(o=0),c="linear-gradient("+o+"deg, "+u+")"):c="radial-gradient(at "+r+", "+u+")",f=i.important&&""!==c?" !important":"",this.updateCSSRule(n,i.property,c+f)},_previewShadowCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=t.find(".fl-shadow-field-color input").val(),o=t.find(".fl-shadow-field-horizontal input").val(),r=t.find(".fl-shadow-field-vertical input").val(),a=t.find(".fl-shadow-field-blur input").val(),d=t.find(".fl-shadow-field-spread input").val(),u=!!t.find(".fl-shadow-field-spread input").length,c=!!e(l.target).closest(".fl-field-responsive-setting").length,f="",h="";""!==s&&(""===o&&(o=0),""===r&&(r=0),""===a&&(a=0),""===d&&(d=0),s.indexOf("rgb")<0&&(s="#"+s),f=o+"px ",f+=r+"px ",f+=a+"px ",u&&(f+=d+"px "),f+=s,f+=h),h=i.important&&""!==f?" !important":"",this.updateCSSRule(n,i.property,f,c)},_previewTypographyCSS:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=e(l.target),t=s.closest(".fl-field"),o=s.closest(".fl-compound-field-setting"),r=o.data("property"),a=s.val(),d=o.find(".fl-field-unit-select"),u=!!s.closest(".fl-field-responsive-setting").length,c=i.important&&""!==a?" !important":"";"font-family"===r?(i.id=t.attr("id"),this._previewFont(i,{delegateTarget:o})):"text-shadow"===r?(i.property="text-shadow",this._previewShadowCSS(i,o,l)):(d.length&&""!==a&&(a+="SELECT"===d.prop("tagName")?d.val():"px"),this.updateCSSRule(n,r,a+c,u))},_initFieldAttributePreview:function(i){var t=i.data("preview"),l=t.attribute,n=i.find("input"),s=(i.val(),window[t.format_callback]),o=this._getPreviewSelector(this.classes.node,t.selector),r=e(o),a=this._previewAttribute.bind(this,n,r,l,s);n.on("change",a),n.on("keyup",a),n.on("input",a)},_previewAttribute:function(e,i,t,l){var n=e.val();"function"==typeof l&&(n=l(n)),i[0].setAttribute(t,n)},_initFieldWidgetPreview:function(i){var t=e.proxy(this.delayPreview,this);i.find("input").on("keyup",t),i.find("input[type=checkbox]").on("click",t),i.find("textarea").on("keyup",t),i.find("select").on("change",t)},_initFieldAnimationPreview:function(i,t){t.find(".fl-animation-field-style select").on("change",e.proxy(this._previewAnimationField,this,i,t)),t.find(".fl-animation-field-duration input").on("input",e.proxy(this._previewAnimationField,this,i,t))},_previewAnimationField:function(i,t,l){var n=this._getPreviewSelector(this.classes.node,i.selector),s=e(n),o=t.find(".fl-animation-field-style select"),r=t.find(".fl-animation-field-duration input"),a=o[0].options;s.removeClass("fl-animated"),s.removeClass("fl-animation"),s.css("animation-duration","");for(var d=0;d<a.length;d++)s.removeClass("fl-"+a[d].value);""!==o.val()&&(s.addClass("fl-animation"),s.addClass("fl-"+o.val()),s.data("animation-delay",0),s.data("animation-duration",r.val())),FLBuilderLayout._doModuleAnimation.apply(s)},_getPreviewSelector:function(e,i){return FLBuilderPreview.getFormattedSelector.call(this,e,i)},toUpperCaseWords:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},FLBuilderPreview.formatColor=function(e){return""!==e&&e.indexOf("rgb")<0&&e.indexOf("url")<0&&(e="#"+e),e},FLBuilderPreviewCallbacks={previewShape:function(e,i){var t=e.preview.position,l=e.preview.prefix,n=e.form,s=l+"transform[][scaleYSign]";yOrientation=n.find('input[name="'+s+'"]'),"bottom"===t?yOrientation.val("invert"):yOrientation.val(""),yOrientation.trigger("change"),this.delayPreview()},previewShapeLayerSize:function(e,i){var t=e.getValues(),l=t.unit,n=t.props.width,s=t.props.height,o=t.props.top,r=e.preview.prefix,a=e.preview.position,d=this._getPreviewSelector(this.classes.node,".fl-builder-"+a+"-edge-layer"),u=d+" > *",c=e.form.find('[name="'+r+'align"]'),f=c.val(),h=f.split(" "),g=h[0],p=h[1],b=e.form.find('[name="'+r+'shape"]'),m=b.val(),v=FLBuilderConfig.presets.shape[m];if(shapeProps={},shapeProps.width="100%",shapeProps.left="auto",shapeProps.right="auto",shapeProps.height="auto",shapeProps.top="auto",shapeProps.bottom="auto",n){shapeProps.width=n+l;var _=n/2+l;switch(p){case"left":shapeProps.left="0",shapeProps.right="auto";break;case"right":shapeProps.left="auto",shapeProps.right="0";break;case"center":shapeProps.left="calc( 50% - "+_+")",shapeProps.right="auto"}}this.updateCSSRule(u,"width",shapeProps.width),this.updateCSSRule(u,"left",shapeProps.left),this.updateCSSRule(u,"right",shapeProps.right);var w;if(s)w=s/2+l;else if(n){var L=v.data.viewBox.width,F=n/L*100;w=F/2+l}else w="";switch(s&&(shapeProps.height=s+l),g){case"top":shapeProps.top="0",shapeProps.bottom="auto";break;case"bottom":shapeProps.top="auto",shapeProps.bottom="0";break;case"center":shapeProps.top="calc( 50% - "+w+")",shapeProps.bottom="auto"}this.updateCSSRule(u,"height",shapeProps.height),this.updateCSSRule(u,"top",shapeProps.top),this.updateCSSRule(u,"bottom",shapeProps.bottom),""===o?this.updateCSSRule(d,a,"0"):this.updateCSSRule(d,a,o+l)},previewShapeAlign:function(e,i){var t=e.preview.prefix,l=e.form.find('[name="'+t+'size_width"]');l.trigger("input")},previewShapeFillStyle:function(e,i){var t=e.input.val(),l=e.preview,n=e.preview.prefix,s="fl-row-"+e.nodeID+"-"+n+"-linear-gradient",o="fl-row-"+e.nodeID+"-"+n+"-radial-gradient",r="fl-row-"+e.nodeID+"-"+n+"-pattern",a=e.form;if("undefined"!=typeof t){var d=this._getPreviewSelector(this.classes.node,l.selector);switch(t){case"color":var u=a.find("[name="+n+"fill_color]").val();this.updateCSSRule(d,"fill",FLBuilderPreview.formatColor(u));break;case"gradient":var c=a.find("#fl-field-"+n+"fill_gradient"),f=c.find('select[name$="[type]"]').val(),h="radial"===f?o:s;this.updateCSSRule(d,"fill","url(#"+h+")");break;case"pattern":var g="url(#"+r+")";this.updateCSSRule(d,"fill",g)}}},previewShapeGradientFill:function(e,i){var t=e.getValues(),l=e.node,n=e.preview,s=".fl-builder-"+n.position+"-edge-layer",o=l.find(s+" "+t.type+"Gradient"),r="url(#"+o.attr("id")+")",a=this._getPreviewSelector(this.classes.node,s+" .fl-shape");this.updateCSSRule(a,"fill",r);var d=o.find("stop");for(var u in t.stops){var c=t.stops[u],f=d.eq(u),h=c.color,g=c.stop,p=1;if(0===h.indexOf("rgba")){var b=h.substring(h.indexOf("(")+1,h.lastIndexOf(")")).split(/,\s*/);p=b.pop(),h="rgb("+b.join(",")+")"}f.attr("stop-color",FLBuilderPreview.formatColor(h)),f.attr("stop-opacity",p),f.attr("offset",g+"%")}if("linear"===t.type&&"undefined"!=typeof o[0]&&o[0].setAttribute("gradientTransform","rotate("+t.angle+" .5 .5 )"),"radial"===t.type){parts=t.position.split(" ");var m,v,_,w=parts[0],L=parts[1];switch(w){case"top":case"left":m=0;break;case"center":m=.5;break;case"bottom":case"right":m=1}switch(L){case"top":case"left":v=0;break;case"center":v=.5;break;case"bottom":case"right":v=1}_=.5,.5===m&&.5===v||(_=1),o.attr("cx",m),o.attr("cy",v),o.attr("r",_)}},previewShapeTransform:function(e,i){var t=(e.form,e.preview),l=(t.prefix,this._getPreviewSelector(this.classes.node,t.selector)),n=l+" > *",s=e.getValues(),o=[];Object.keys(s).map(function(e){var i=s[e],t="",l="";switch(e){case"scaleXSign":case"scaleYSign":return;case"scaleX":case"scaleY":i&&""!==i&&0!==i||(i="1"),l="scaleX"===e?s.scaleXSign:s.scaleYSign,i="invert"===l?-Math.abs(i):Math.abs(i),o.push(e+"("+i+")");break;case"translateX":case"translateY":i&&(t="px",o.push(e+"("+i+t+")"));break;case"skewX":case"skewY":i&&(t="deg",o.push(e+"("+i+t+")"));break;case"rotate":t="deg",""!==i&&"0"!==i&&o.push("rotate("+i+t+")")}}),this.updateCSSRule(n,"transform",o.join(" "))}}}(jQuery),function(e){var i={ignored:[],reparsed:[],width:null,callback:null,sheets:{},styles:[],queue:[],emPxValue:null,regex:{media:/@media[^{]*{([\s\S]+?})\s*}/gi,empty:/@media[^{]*{([^{}]*?)}/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^\/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)\}$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},ignore:function(e){Array.prototype.push.apply(this.ignored,e)},reparse:function(e){Array.prototype.push.apply(this.reparsed,e)},update:function(e,i){this.width=void 0===e?null:e,this.callback=void 0===i?null:i,t.update(),this.queueSheets()?this.runQueue():this.applyStyles()},queueSheets:function(){for(var i=e("link, style"),t=null,l=null,n=null,s=null,o=null,r=null,a=null,d=!1,u=0,c=0;u<i.length;u++)if(element=i[u],t=element.href,l=element.id,n=element.tagName.toLowerCase(),s=element.rel,o=element.media,r=t?t.split("?").shift():l?l:"style-"+u,a=!0,d=!1,"style"===n||t&&s&&"stylesheet"===s.toLowerCase()){for(c=0;c<this.ignored.length;c++)if(r.indexOf(this.ignored[c])>-1){d=!0;break}if(d)continue;for(c=0;c<this.reparsed.length;c++)if(r.indexOf(this.reparsed[c])>-1){this.sheets[r]=null;break}void 0!==this.sheets[r]&&this.sheets[r]||this.queue.push({element:i.eq(u),key:r,tagName:n,href:t,id:l,media:o})}return this.queue.length},runQueue:function(){var i;this.queue.length?(i=this.queue.shift(),"style"===i.tagName?(this.parse(i.element.html(),i),this.runQueue()):e.get(i.href,e.proxy(function(e){this.parse(e,i),this.runQueue()},this)).fail(this.runQueue.bind(this))):this.applyStyles()},parse:function(e,i){var t=this.regex,l=this.cleanStyles(e),n=l.match(t.media),s=n&&n.length||0,o=!s&&i.media,r=null,a=null,d=null,u="",c=0,f=0;for(n?u=l.replace(t.media,""):o&&"all"!=i.media?s=1:u=l,this.sheets[i.key]={element:i.element,key:i.key,tagName:i.tagName,href:i.href,id:i.id,all:u,queries:[]},c=0;c<s;c++)for(o?(r=i.media,l=this.convertURLs(l,i.href)):(r=n[c].match(t.findStyles)&&RegExp.$1,l=RegExp.$2&&this.convertURLs(RegExp.$2,i.href)),a=r.split(","),f=0;f<a.length;f++)r=a[f],d=r.split("(")[0].match(t.only)&&RegExp.$2,"print"!=d&&(r.replace(t.minmaxwh,"").match(t.other)||this.sheets[i.key].queries.push({minw:r.match(t.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(t.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),styles:l}))},applyStyles:function(){var i=e("head"),t={all:"",queries:[]},l=null,n=null,s=null,o=null,r=null,a=null,d=null,u=!1;this.clearStyles();for(s in this.sheets)if(n=this.sheets[s],n.queries.length&&this.width){for(t.all+=n.all,r=0;r<n.queries.length;r++)o=n.queries[r],a=o.minw,d=o.maxw,u=!1,a&&(a=parseFloat(a)*(a.indexOf("em")>-1?this.getEmPxValue():1),this.width>=a&&(t.queries.push({media:"min",width:a,styles:o.styles}),u=!0)),d&&!u&&(d=parseFloat(d)*(d.indexOf("em")>-1?this.getEmPxValue():1),this.width<=d&&t.queries.push({media:"max",width:d,styles:o.styles}));n.element[0].disabled=!0}for(""!==t.all&&(l=e('<style class="fl-builder-media-query" data-query="all"></style>'),this.styles.push(l),i.append(l),l.html(t.all)),r=0;r<t.queries.length;r++)o=t.queries[r],l=e('<style class="fl-builder-media-query" data-query="'+o.media+'" data-value="'+o.width+'"></style>'),this.styles.push(l),i.append(l),l.html(o.styles);this.callback&&(this.callback(),this.callback=null)},clearStyles:function(){var e=null,i=this.styles.slice(0);this.styles=[];for(e in this.sheets)this.sheets[e].element[0].disabled=!1;for(var t=0;t<i.length;t++)i[t].empty(),i[t].remove()},disableStyles:function(e){for(var i,t,l,n=0;n<this.styles.length;n++)i=this.styles[n],t=i.attr("data-query"),l=parseInt(i.attr("data-value")),"max"===t&&!isNaN(l)&&l<=e&&(this.styles[n][0].sheet.disabled=!0)},enableStyles:function(){for(var e=0;e<this.styles.length;e++)this.styles[e][0].sheet.disabled=!1},cleanStyles:function(e){var i=this.regex;return e.replace(i.comments,"").replace(i.keyframes,"").replace(i.empty,"")},convertURLs:function(e,i){return i?(i=i.substring(0,i.lastIndexOf("/")),i.length&&(i+="/"),e.replace(this.regex.urls,"$1"+i+"$2$3")):e;
|
8 |
+
},getEmPxValue:function(){if(this.emPxValue)return this.emPxValue;var e=null,i=window.document,t=i.documentElement,l=i.body,n=i.createElement("div"),s=t.style.fontSize,o=l&&l.style.fontSize,r=!1;return n.style.cssText="position:absolute;font-size:1em;width:1em",l||(l=r=i.createElement("body"),l.style.background="none"),t.style.fontSize="100%",l.style.fontSize="100%",l.appendChild(n),r&&t.insertBefore(l,t.firstChild),e=parseFloat(n.offsetWidth),r?t.removeChild(l):l.removeChild(n),t.style.fontSize=s,o?l.style.fontSize=o:l.style.fontSize="",this.emPxValue=e,e}},t={_functions:null,update:function(){var e;if(!this._functions){this._functions={};for(e in l)this._functions[e]=jQuery.fn[e]}if(i.width)for(e in l)jQuery.fn[e]=l[e];else for(e in this._functions)jQuery.fn[e]=this._functions[e]}},l={width:function(l){return void 0!=l?t._functions.width.call(this,l):e.isWindow(this[0])?i.width:t._functions.width.call(this)}};FLBuilderSimulateMediaQuery={ignore:function(e){i.ignore(e)},reparse:function(e){i.reparse(e)},update:function(e,t){i.update(e,t)},disableStyles:function(e){i.disableStyles(e)},enableStyles:function(){i.enableStyles()}}}(jQuery),function(e){FLBuilderResponsiveEditing={_mode:"default",refreshPreview:function(i){var t;e(".fl-responsive-preview").length&&"default"!==this._mode?("responsive"==this._mode?(t=FLBuilderConfig.global.responsive_breakpoint>=320?320:FLBuilderConfig.global.responsive_breakpoint,FLBuilderSimulateMediaQuery.update(t,i)):"medium"==this._mode&&(t=FLBuilderConfig.global.medium_breakpoint>=769?769:FLBuilderConfig.global.medium_breakpoint,FLBuilderSimulateMediaQuery.update(t,i)),FLBuilder._resizeLayout()):i&&i()},_init:function(){this._bind(),this._initMediaQueries()},_bind:function(){FLBuilder.addHook("endEditingSession",this._clearPreview),FLBuilder.addHook("didEnterRevisionPreview",this._clearPreview),FLBuilder.addHook("responsiveEditing",this._menuToggleClicked),FLBuilder.addHook("preview-init",this._switchAllSettingsToCurrentMode),e("body").delegate(".fl-field-responsive-toggle","click",this._settingToggleClicked),e("body").delegate(".fl-responsive-preview-message button","click",this._previewToggleClicked)},_initMediaQueries:function(){FLBuilderSimulateMediaQuery.ignore([FLBuilderConfig.pluginUrl,"fl-builder-preview","fl-theme-builder","/wp-includes/","/wp-admin/","admin-bar-inline-css","ace-tm","ace_editor.css"]),FLBuilderSimulateMediaQuery.reparse([FLBuilderConfig.postId+"-layout-draft.css",FLBuilderConfig.postId+"-layout-draft-partial.css",FLBuilderConfig.postId+"-layout-preview.css",FLBuilderConfig.postId+"-layout-preview-partial.css","fl-builder-global-css","fl-builder-layout-css"])},_switchTo:function(i,t){var l=e("html"),n=e("body"),s=e(FLBuilder._contentClass),o=e(".fl-responsive-preview"),r=e(".fl-responsive-preview-mask"),a=e(".fl-content-placeholder"),d=null;if(FLBuilderResponsiveEditing._mode=i,"default"==i){if(0===a.length)return;l.removeClass("fl-responsive-preview-enabled"),a.after(s),a.remove(),o.remove(),r.remove()}else 0===o.length?(l.addClass("fl-responsive-preview-enabled"),s.after('<div class="fl-content-placeholder"></div>'),n.prepend(wp.template("fl-responsive-preview")()),e(".fl-responsive-preview").addClass("fl-preview-"+i),e(".fl-responsive-preview-content").append(s)):(o.removeClass("fl-preview-responsive fl-preview-medium"),o.addClass("fl-preview-"+i));"responsive"==i?(d=FLBuilderConfig.global.responsive_breakpoint>=360?360:FLBuilderConfig.global.responsive_breakpoint,s.width(d),FLBuilderSimulateMediaQuery.update(d,t)):"medium"==i?(d=FLBuilderConfig.global.medium_breakpoint>=769?769:FLBuilderConfig.global.medium_breakpoint,s.width(d),FLBuilderSimulateMediaQuery.update(d,t)):(s.width(""),FLBuilderSimulateMediaQuery.update(null,t)),this._setContentBackgroundColor(),FLBuilder._resizeLayout(),this._previewFields(),FLBuilder.triggerHook("responsive-editing-switched",i)},_setContentBackgroundColor:function(){var i=e(FLBuilder._contentClass),t=e(".fl-responsive-preview"),l=e(".fl-content-placeholder"),n=l.parents(),s="#fff",o=0;if(0===t.length)i.css("background-color","");else{for(;o<n.length&&(s=n.eq(o).css("background-color"),"rgba(0, 0, 0, 0)"==s);o++);i.css("background-color",s)}},_switchToAndScroll:function(i){var t=e(".fl-builder-settings").data("node"),l=void 0===t?void 0:e(".fl-node-"+t);FLBuilderResponsiveEditing._switchTo(i,function(){if(void 0!==l&&l){var i=(e(window),e(".fl-responsive-preview-content"));i.length?(i.scrollTop(0),i.scrollTop(l.offset().top-150)):e("html, body").scrollTop(l.offset().top-100)}})},_switchAllSettingsTo:function(i){var t="dashicons-desktop dashicons-tablet dashicons-smartphone";e(".fl-field-responsive-toggle").removeClass(t),e(".fl-field-responsive-setting").hide(),t="default"==i?"dashicons-desktop":"medium"==i?"dashicons-tablet":"dashicons-smartphone",e(".fl-field-responsive-toggle").addClass(t).data("mode",i),e(".fl-field-responsive-setting-"+i).css("display","inline-block")},_switchAllSettingsToCurrentMode:function(){var e=FLBuilderResponsiveEditing;e._switchAllSettingsTo(e._mode),FLBuilder.triggerHook("responsive-editing-switched",e._mode)},_settingToggleClicked:function(){var i=e(this),t=i.data("mode");t="default"==t?"medium":"medium"==t?"responsive":"default",FLBuilderResponsiveEditing._switchAllSettingsTo(t),FLBuilderResponsiveEditing._switchToAndScroll(t),i.siblings(".fl-field-responsive-setting:visible").find("input").focus()},_menuToggleClicked:function(){var e=FLBuilderResponsiveEditing._mode;e="default"==e?"medium":"medium"==e?"responsive":"default",FLBuilder.MainMenu.hide(),FLBuilderResponsiveEditing._switchAllSettingsTo(e),FLBuilderResponsiveEditing._switchToAndScroll(e)},_previewToggleClicked:function(){var i=e(this).data("mode");FLBuilderResponsiveEditing._switchAllSettingsTo(i),FLBuilderResponsiveEditing._switchToAndScroll(i)},_clearPreview:function(){FLBuilderResponsiveEditing._switchToAndScroll("default")},_previewFields:function(){var i=FLBuilderResponsiveEditing._mode,t=e(".fl-builder-settings:visible");0!==t.length&&void 0!==t.attr("data-node")&&(FLBuilder.triggerHook("responsive-editing-before-preview-fields",i),t.find(".fl-builder-settings-tab").each(function(){var t=e(this);t.css("display","block"),t.find(".fl-field-responsive-setting-"+i+":visible").each(function(){var t=e(this),l=t.closest(".fl-field"),n=l.data("type"),s=l.data("preview"),o=l.find(".fl-field-connection-visible").length;"refresh"!=s.type&&(o?"photo"===n&&"default"!==i&&t.find(".fl-photo-remove").trigger("click"):(t.find("input").trigger("keyup"),t.find("select").trigger("change")))}),t.css("display","")}),FLBuilder.triggerHook("responsive-editing-after-preview-fields",i))}},e(function(){FLBuilderResponsiveEditing._init()})}(jQuery),function(e){FLBuilderResponsivePreview={enter:function(){this.render()},exit:function(){this.destroy()},switchTo:function(i){var t=FLBuilderConfig.global,l=e("#fl-builder-preview-frame"),n="100%";"responsive"==i?(n=t.responsive_breakpoint>=360?360:t.responsive_breakpoint,l.width(n)):"medium"==i&&(n=t.medium_breakpoint>=769?769:t.medium_breakpoint,l.width(n)),l.width(n)},render:function(){var i=e("body"),t=FLBuilderConfig.previewUrl,l=e("#fl-builder-preview-mask, #fl-builder-preview-frame"),n=e('<div id="fl-builder-preview-mask"></div>'),s=e('<iframe id="fl-builder-preview-frame" src="'+t+'"></iframe>');l.remove(),i.append(n),i.append(s),i.css("overflow","hidden")},destroy:function(){e("#fl-builder-preview-mask, #fl-builder-preview-frame").remove(),e("body").css("overflow","visible")}}}(jQuery),function(e){var i={init:function(){var i=e("body");i.delegate(".fl-builder-service-select","change",this._serviceChange),i.delegate(".fl-builder-service-connect-button","click",this._connectClicked),i.delegate(".fl-builder-service-account-select","change",this._accountChange),i.delegate(".fl-builder-service-account-delete","click",this._accountDeleteClicked),i.delegate(".fl-builder-campaign-monitor-client-select","change",this._campaignMonitorClientChange),i.delegate(".fl-builder-mailchimp-list-select","change",this._mailChimpListChange),i.delegate(".fl-builder-activecampaign-list_type-select","change",this._activeCampaignChange)},_startSettingsLoading:function(i){var t=e(".fl-builder-settings"),l=i.closest(".fl-builder-service-settings"),n=e(".fl-builder-service-error");t.append('<div class="fl-builder-loading"></div>'),l.addClass("fl-builder-service-settings-loading"),n.remove()},_finishSettingsLoading:function(){var i=e(".fl-builder-settings"),t=e(".fl-builder-service-settings-loading");i.find(".fl-builder-loading").remove(),t.removeClass("fl-builder-service-settings-loading")},_serviceChange:function(){var t=e(".fl-builder-settings").data("node"),l=e(this),n=l.closest("tr"),s=l.val();n.siblings("tr.fl-builder-service-account-row").remove(),n.siblings("tr.fl-builder-service-connect-row").remove(),n.siblings("tr.fl-builder-service-field-row").remove(),e(".fl-builder-service-error").remove(),""!==s&&(i._startSettingsLoading(l),FLBuilder.ajax({action:"render_service_settings",node_id:t,service:s},i._serviceChangeComplete))},_serviceChangeComplete:function(t){var l=FLBuilder._jsonParse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-service-select-row");s.after(l.html),i._addAccountDelete(n),i._finishSettingsLoading()},_connectClicked:function(){for(var t=e(".fl-builder-settings").data("node"),l=e(this).closest(".fl-builder-service-settings"),n=l.find(".fl-builder-service-select"),s=l.find(".fl-builder-service-connect-row"),o=l.find(".fl-builder-service-connect-input"),r=null,a=null,d=0,u={action:"connect_service",node_id:t,service:n.val(),fields:{}};d<o.length;d++)r=o.eq(d),a=r.attr("name"),u.fields[a]=r.val();s.hide(),i._startSettingsLoading(n),FLBuilder.ajax(u,i._connectComplete)},_connectComplete:function(t){var l=FLBuilder._jsonParse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-service-select-row"),o=n.find(".fl-builder-service-select"),r=n.find(".fl-builder-service-account-row"),a=n.find(".fl-builder-service-account-select"),d=n.find(".fl-builder-service-connect-row");l.error?(d.show(),0===a.length?o.after('<div class="fl-builder-service-error">'+l.error+"</div>"):a.after('<div class="fl-builder-service-error">'+l.error+"</div>")):(d.remove(),r.remove(),s.after(l.html)),i._addAccountDelete(n),i._finishSettingsLoading()},_accountChange:function(){var t=e(".fl-builder-settings").data("node"),l=e(this).closest(".fl-builder-service-settings"),n=l.find(".fl-builder-service-select"),s=l.find(".fl-builder-service-account-select"),o=l.find(".fl-builder-service-connect-row"),r=l.find("tr.fl-builder-service-field-row"),a=e(".fl-builder-service-error"),d=s.val(),u=null;o.remove(),r.remove(),a.remove(),"add_new_account"==d?u={action:"render_service_settings",node_id:t,service:n.val(),add_new:!0}:""!==d&&(u={action:"render_service_fields",node_id:t,service:n.val(),account:d}),u&&(i._startSettingsLoading(n),FLBuilder.ajax(u,i._accountChangeComplete)),i._addAccountDelete(l)},_accountChangeComplete:function(t){var l=FLBuilder._jsonParse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-service-account-row");s.after(l.html),i._finishSettingsLoading()},_addAccountDelete:function(e){var i=e.find(".fl-builder-service-account-select");i.length>0&&(e.find(".fl-builder-service-account-delete").remove(),""!==i.val()&&"add_new_account"!=i.val()&&i.after('<a href="javascript:void(0);" class="fl-builder-service-account-delete">'+FLBuilderStrings.deleteAccount+"</a>"))},_accountDeleteClicked:function(){var t=e(this).closest(".fl-builder-service-settings"),l=t.find(".fl-builder-service-select"),n=t.find(".fl-builder-service-account-select");confirm(FLBuilderStrings.deleteAccountWarning)&&(FLBuilder.ajax({action:"delete_service_account",service:l.val(),account:n.val()},i._accountDeleteComplete),i._startSettingsLoading(n))},_accountDeleteComplete:function(){var t=e(".fl-builder-service-settings-loading"),l=t.find(".fl-builder-service-select");i._finishSettingsLoading(),l.trigger("change")},_campaignMonitorClientChange:function(){var t=e(".fl-builder-settings").data("node"),l=e(this).closest(".fl-builder-service-settings"),n=l.find(".fl-builder-service-select"),s=l.find(".fl-builder-service-account-select"),o=e(this),r=l.find(".fl-builder-service-list-select"),a=o.val();0!==r.length&&r.closest("tr").remove(),""!==a&&(i._startSettingsLoading(n),FLBuilder.ajax({action:"render_service_fields",node_id:t,service:n.val(),account:s.val(),client:a},i._campaignMonitorClientChangeComplete))},_campaignMonitorClientChangeComplete:function(t){var l=FLBuilder._jsonParse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-campaign-monitor-client-select");s.closest("tr").after(l.html),i._finishSettingsLoading()},_mailChimpListChange:function(){var t=e(".fl-builder-settings").data("node"),l=e(this).closest(".fl-builder-service-settings"),n=l.find(".fl-builder-service-select"),s=l.find(".fl-builder-service-account-select"),o=l.find(".fl-builder-service-list-select");e(".fl-builder-mailchimp-group-select").closest("tr").remove(),""!==o.val()&&(i._startSettingsLoading(n),FLBuilder.ajax({action:"render_service_fields",node_id:t,service:n.val(),account:s.val(),list_id:o.val()},i._mailChimpListChangeComplete))},_mailChimpListChangeComplete:function(t){var l=FLBuilder._jsonParse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-service-list-select");s.closest("tr").after(l.html),i._finishSettingsLoading()},_activeCampaignChange:function(){var t=e(".fl-builder-settings").data("node"),l=e(this).closest(".fl-builder-service-settings"),n=l.find(".fl-builder-service-select"),s=l.find(".fl-builder-service-account-select"),o=l.find(".fl-builder-service-list-select");list_type=l.find('select[name="list_type"]'),0!==o.length&&o.closest("tr").remove(),""!==list_type.val()&&(i._startSettingsLoading(n),FLBuilder.ajax({action:"render_service_fields",node_id:t,service:n.val(),account:s.val(),list_type:list_type.val()},i._activeCampaignTypeChangeComplete))},_activeCampaignTypeChangeComplete:function(t){var l=FLBuilder._jsonParse(t),n=e(".fl-builder-service-settings-loading"),s=n.find(".fl-builder-service-field-row");s.after(l.html),i._finishSettingsLoading()}};e(function(){i.init()})}(jQuery),function(e){FLBuilderTour={_tour:null,start:function(){FLBuilderTour._tour?FLBuilderTour._tour.restart():(FLBuilderTour._tour=new Tour(FLBuilderTour._config()),FLBuilderTour._tour.init()),FLBuilder._triggerSettingsSave(!1,!0)&&FLBuilderTour._tour.start()},_config:function(){var i={storage:!1,onStart:FLBuilderTour._onStart,onPrev:FLBuilderTour._onPrev,onNext:FLBuilderTour._onNext,onEnd:FLBuilderTour._onEnd,template:'<div class="popover" role="tooltip"> <i class="fas fa-times" data-role="end"></i> <div class="arrow"></div> <h3 class="popover-title"></h3> <div class="popover-content"></div> <div class="popover-navigation clearfix"> <button class="fl-builder-button fl-builder-button-primary fl-builder-tour-next" data-role="next">'+FLBuilderStrings.tourNext+"</button> </div> </div>",steps:[{animation:!1,element:".fl-builder--content-library-panel",placement:"left",title:FLBuilderStrings.tourTemplatesTitle,content:FLBuilderStrings.tourTemplates,onShow:function(){FLBuilder.ContentPanel.show("templates")}},{animation:!1,element:".fl-builder--content-library-panel",placement:"left",title:FLBuilderStrings.tourAddRowsTitle,content:FLBuilderStrings.tourAddRows,onShow:function(){FLBuilder.ContentPanel.show("rows")}},{animation:!1,element:".fl-builder--content-library-panel",placement:"left",title:FLBuilderStrings.tourAddContentTitle,content:FLBuilderStrings.tourAddContent,onShow:function(){FLBuilder.ContentPanel.show("modules")}},{animation:!1,element:".fl-row:first-of-type",placement:"top",title:FLBuilderStrings.tourEditContentTitle,content:FLBuilderStrings.tourEditContent,onShow:function(){FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._closePanel(),e(".fl-row").eq(0).trigger("mouseenter"),e(".fl-module").eq(0).trigger("mouseenter")}},{animation:!1,element:".fl-row:first-of-type .fl-module-overlay .fl-block-overlay-actions",placement:"top",title:FLBuilderStrings.tourEditContentTitle,content:FLBuilderStrings.tourEditContent2,onShow:function(){FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._closePanel(),e(".fl-row").eq(0).trigger("mouseenter"),e(".fl-module").eq(0).trigger("mouseenter")}},{animation:!1,element:".fl-builder-content-panel-button",placement:"bottom",title:FLBuilderStrings.tourAddContentButtonTitle,content:FLBuilderStrings.tourAddContentButton,onShow:function(){FLBuilderTour._dimSection("body"),e(".fl-row").eq(0).trigger("mouseleave"),e(".fl-module").eq(0).trigger("mouseleave")}},{animation:!1,element:".fl-builder-templates-button",placement:"bottom",title:FLBuilderStrings.tourTemplatesButtonTitle,content:FLBuilderStrings.tourTemplatesButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,element:".fl-builder-tools-button",placement:"bottom",title:FLBuilderStrings.tourToolsButtonTitle,content:FLBuilderStrings.tourToolsButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,element:".fl-builder-done-button",placement:"bottom",title:FLBuilderStrings.tourDoneButtonTitle,content:FLBuilderStrings.tourDoneButton,onShow:function(){FLBuilderTour._dimSection("body")}},{animation:!1,orphan:!0,backdrop:!0,title:FLBuilderStrings.tourFinishedTitle,content:FLBuilderStrings.tourFinished,template:'<div class="popover" role="tooltip"> <div class="arrow"></div> <i class="fas fa-times" data-role="end"></i> <h3 class="popover-title"></h3> <div class="popover-content"></div> <div class="popover-navigation clearfix"> <button class="fl-builder-button fl-builder-button-primary fl-builder-tour-next" data-role="end">'+FLBuilderStrings.tourEnd+"</button> </div> </div>"}]};return FLBuilderConfig.lite?i.steps.shift():"disabled"==FLBuilderConfig.enabledTemplates?i.steps.shift():"fl-builder-template"==FLBuilderConfig.postType&&i.steps.shift(),i},_onStart:function(){var i=e("body");i.scrollTop(0),i.append('<div class="fl-builder-tour-mask"></div>'),0===e(".fl-row").length&&"module"!=FLBuilderConfig.userTemplateType&&(e(".fl-builder-content").append('<div class="fl-builder-tour-demo-content fl-row fl-row-fixed-width fl-row-bg-none"> <div class="fl-row-content-wrap"> <div class="fl-row-content fl-row-fixed-width fl-node-content"> <div class="fl-col-group"> <div class="fl-col" style="width:100%"> <div class="fl-col-content fl-node-content"> <div class="fl-module fl-module-rich-text" data-type="rich-text" data-name="Text Editor"> <div class="fl-module-content fl-node-content"> <div class="fl-rich-text"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus pellentesque ut lorem non cursus. Sed mauris nunc, porttitor iaculis lorem a, sollicitudin lacinia sapien. Proin euismod orci lacus, et sollicitudin leo posuere ac. In hac habitasse platea dictumst. Maecenas elit magna, consequat in turpis suscipit, ultrices rhoncus arcu. Phasellus finibus sapien nec elit tempus venenatis. Maecenas tincidunt sapien non libero maximus, in aliquam felis tincidunt. Mauris mollis ultricies facilisis. Duis condimentum dignissim tortor sit amet facilisis. Aenean gravida lacus eu risus molestie egestas. Donec ut dolor dictum, fringilla metus malesuada, viverra nunc. Maecenas ut purus ac justo aliquet lacinia. Cras vestibulum elementum tincidunt. Maecenas mattis tortor neque, consectetur dignissim neque tempor nec.</p></div> </div> </div> </div> </div> </div> </div> </div> </div>'),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols())},_onPrev:function(){e(".fl-builder-tour-dimmed").remove()},_onNext:function(){e(".fl-builder-tour-dimmed").remove()},_onEnd:function(){e("body").off("fl-builder.template-selector-loaded"),e(".fl-builder-tour-mask").remove(),e(".fl-builder-tour-dimmed").remove(),e(".fl-builder-tour-demo-content").remove(),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._showPanel(),FLBuilder._initTemplateSelector()},_dimSection:function(i){e(i).find(".fl-builder-tour-dimmed").remove(),e(i).append('<div class="fl-builder-tour-dimmed"></div>')}}}(jQuery),function(e,i){String.prototype.startsWith||(String.prototype.startsWith=function(e,i){return i=i||0,this.substr(i,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,i){var t=this.toString();("number"!=typeof i||!isFinite(i)||Math.floor(i)!==i||i>t.length)&&(i=t.length),i-=e.length;var l=t.indexOf(e,i);return l!==-1&&l===i}),e.fn.textWidth=function(i,t){return e.fn.textWidth.fakeEl||(e.fn.textWidth.fakeEl=e("<span>").hide().appendTo(document.body)),e.fn.textWidth.fakeEl.text(i||this.val()||this.text()).css("font",t||this.css("font")),e.fn.textWidth.fakeEl.width()},FLExtendableObject={create:function(i){var t=Object.create(this);return t=e.extend(t,i),e(this).trigger("onCreate"),t}},e.fn.switchClass=function(i,t){return this.each(function(){return e(this).removeClass(function(e,t){var l=[],n=t.split(" ");for(var e in n)n[e].startsWith(i)&&l.push(n[e]);return l.join(" ")}),e(this).addClass(i+t)})};var t={init:function(){i.addHook("cancelTask",this.onCancelTask.bind(this)),i.addHook("showSavedMessage",this.onSaveShortcut.bind(this)),i.addHook("goToNextTab",this.onNextPrevTabShortcut.bind(this,"next")),i.addHook("goToPrevTab",this.onNextPrevTabShortcut.bind(this,"prev")),i.addHook("endEditingSession",this.onEndEditingSession.bind(this)),i.addHook("restartEditingSession",this.onRestartEditingSession.bind(this)),this.setDefaultKeyboardShortcuts()},addShortcut:function(i,t,l){var n=e.proxy(this,"onTriggerKey",i);l?Mousetrap.bindGlobal(t,n):Mousetrap.bind(t,n)},reset:function(){Mousetrap.reset()},setDefaultKeyboardShortcuts:function(){this.reset();for(var e in FLBuilderConfig.keyboardShortcuts){var i=FLBuilderConfig.keyboardShortcuts[e].keyCode,t=FLBuilderConfig.keyboardShortcuts[e].isGlobal;this.addShortcut(e,i,t)}},onTriggerKey:function(e,t){i.triggerHook(e),t.preventDefault?t.preventDefault():t.returnValue=!1},onCancelTask:function(){return s.isPreviewing?void s.endPreview():n.isShowing?void n.hide():i.ContentPanel.isShowing?void i.ContentPanel.hide():void 0},pause:function(){Mousetrap.pause()},unpause:function(){Mousetrap.unpause()},onEndEditingSession:function(){this.reset(),this.addShortcut("restartEditingSession","mod+e")},onRestartEditingSession:function(){this.reset(),this.setDefaultKeyboardShortcuts()},onSaveShortcut:function(){if(i.SaveManager.layoutNeedsPublish()){var e=FLBuilderStrings.savedStatus.hasAlreadySaved;i.SaveManager.showStatusMessage(e),setTimeout(function(){i.SaveManager.resetStatusMessage()},2e3)}else{var e=FLBuilderStrings.savedStatus.nothingToSave;i.SaveManager.showStatusMessage(e),setTimeout(function(){i.SaveManager.resetStatusMessage()},2e3)}},onNextPrevTabShortcut:function(t,l){var n,s,o=e(".fl-lightbox:visible"),r=o.find(".fl-builder-settings-tabs a");o.length>0&&(n=r.filter("a.fl-active"),s="next"==t?n.is(r.last())?r.first():n.next("a"):n.is(r.first())?r.last():n.prev("a"),s.trigger("click")),i._calculateSettingsTabsOverflow(),l.preventDefault()}},l={isShowing:!1,init:function(){this.render(),i.addHook("showKeyboardShortcuts",this.show.bind(this))},render:function(){var i=wp.template("fl-keyboard-shortcuts"),t=FLBuilderConfig.keyboardShortcuts;this.$el=e(i(t)),e("body").append(this.$el),this.$el.find(".dismiss-shortcut-ui").on("click",this.hide.bind(this)),this.$el.on("click",this.hide.bind(this))},show:function(){this.isShowing||(this.$el.addClass("is-showing"),this.isShowing=!0)},hide:function(){this.isShowing&&(this.$el.removeClass("is-showing"),this.isShowing=!1)},toggle:function(){this.isShowing?this.hide():this.show()}},n=FLExtendableObject.create({isShowing:!1,init:function(){this.$el=e(".fl-builder-publish-actions"),this.$defaultBarButtons=e(".fl-builder-bar-actions"),this.$clickAwayMask=e(".fl-builder-publish-actions-click-away-mask"),this.$doneBtn=this.$defaultBarButtons.find(".fl-builder-done-button"),this.$doneBtn.on("click",this.onDoneTriggered.bind(this)),this.$actions=this.$el.find(".fl-builder-button"),this.$actions.on("click",this.onActionClicked.bind(this)),i.addHook("triggerDone",this.onDoneTriggered.bind(this));var t=this.hide.bind(this);i.addHook("cancelPublishActions",t),i.addHook("endEditingSession",t),this.$clickAwayMask.on("click",t)},onDoneTriggered:function(){i.SaveManager.layoutNeedsPublish()?this.show():FLBuilderConfig.shouldRefreshOnPublish?i._exit():i._exitWithoutRefresh()},show:function(){this.isShowing||i._triggerSettingsSave(!1,!0)&&(this.$el.removeClass("is-hidden"),this.$defaultBarButtons.css("opacity","0"),this.$clickAwayMask.show(),this.isShowing=!0,i.triggerHook("didShowPublishActions"))},hide:function(){this.isShowing&&(this.$el.addClass("is-hidden"),this.$defaultBarButtons.css("opacity","1"),this.$clickAwayMask.hide(),this.isShowing=!1)},onActionClicked:function(t){var l=e(t.currentTarget).data("action");switch(l){case"dismiss":this.hide();break;case"discard":this.hide(),s.muteToolbar(),i._discardButtonClicked();break;case"publish":this.hide(),s.muteToolbar(),i._publishButtonClicked(),i._destroyOverlayEvents();break;case"draft":this.hide(),s.muteToolbar(),i._draftButtonClicked();break;default:this.hide(),s.muteToolbar(),i._draftButtonClicked()}i.triggerHook(l+"ButtonClicked")}}),s={isPreviewing:!1,init:function(){this.$el=e("body"),this.$mainToolbar=e(".fl-builder-bar"),this.$mainToolbarContent=this.$mainToolbar.find(".fl-builder-bar-content"),this.$wpAdminBar=e("#wpadminbar"),this.$endPreviewBtn=e(".fl-builder--preview-actions .end-preview-btn"),i.addHook("endEditingSession",this.endEditingSession.bind(this)),i.addHook("previewLayout",this.togglePreview.bind(this)),this.$endPreviewBtn.on("click",this.endPreview.bind(this)),this.$deviceIcons=e(".fl-builder--preview-actions i"),this.$deviceIcons.on("click",this.onDeviceIconClick.bind(this));var t=this.$wpAdminBar.find("#wp-admin-bar-fl-builder-frontend-edit-link > a, #wp-admin-bar-fl-theme-builder-frontend-edit-link > a");t.on("click",this.onClickPageBuilderToolbarLink.bind(this)),e("#wpadminbar a").attr("tabindex","-1");var l=this.restartEditingSession.bind(this);i.addHook("restartEditingSession",l),i.addHook("didHideAllLightboxes",this.unmuteToolbar.bind(this)),i.addHook("didCancelDiscard",this.unmuteToolbar.bind(this)),i.addHook("didEnterRevisionPreview",this.hide.bind(this)),i.addHook("didExitRevisionPreview",this.show.bind(this)),i.addHook("didPublishLayout",this.onPublish.bind(this))},endEditingSession:function(){i._destroyOverlayEvents(),i._removeAllOverlays(),i._removeEmptyRowAndColHighlights(),i._removeColHighlightGuides(),i._unbindEvents(),e("html").removeClass("fl-builder-edit").addClass("fl-builder-show-admin-bar"),e("body").removeClass("fl-builder-edit"),e("#wpadminbar a").attr("tabindex",null),e(i._contentClass).removeClass("fl-builder-content-editing"),this.hideMainToolbar(),i.ContentPanel.hide(),FLBuilderLayout.init()},restartEditingSession:function(t){i._initTemplateSelector(),i._bindOverlayEvents(),i._highlightEmptyCols(),i._rebindEvents(),e("html").addClass("fl-builder-edit").removeClass("fl-builder-show-admin-bar"),e("body").addClass("fl-builder-edit"),e("#wpadminbar a").attr("tabindex","-1"),e(i._contentClass).addClass("fl-builder-content-editing"),this.showMainToolbar(),t.preventDefault()},onClickPageBuilderToolbarLink:function(e){i.triggerHook("restartEditingSession"),e.preventDefault()},onPublish:function(){var e=this.$wpAdminBar.find("#wp-admin-bar-fl-builder-frontend-edit-link > a span");e.css("color","#6bc373")},hide:function(){e("html").hasClass("fl-builder-edit")&&(i._unbindEvents(),i._destroyOverlayEvents(),i._removeAllOverlays(),e("html").removeClass("fl-builder-edit"),e("body").removeClass("admin-bar"),this.hideMainToolbar(),i.ContentPanel.hide(),FLBuilderLayout.init(),i.triggerHook("didHideEditingUI"))},show:function(){e("html").hasClass("fl-builder-edit")||(i._rebindEvents(),i._bindOverlayEvents(),this.showMainToolbar(),FLBuilderResponsiveEditing._switchTo("default"),e("html").addClass("fl-builder-edit"),e("body").addClass("admin-bar"),i.triggerHook("didShowEditingUI"))},beginPreview:function(){i._triggerSettingsSave(!1,!0)&&(this.isPreviewing=!0,this.hide(),e("html").addClass("fl-builder-preview"),e("html, body").removeClass("fl-builder-edit"),i._removeEmptyRowAndColHighlights(),i._removeColHighlightGuides(),i.triggerHook("didBeginPreview"),FLBuilderResponsivePreview.enter())},endPreview:function(){this.isPreviewing=!1,this.show(),i._highlightEmptyCols(),FLBuilderResponsivePreview.exit(),e("html").removeClass("fl-builder-preview"),e("html, body").addClass("fl-builder-edit")},togglePreview:function(){this.isPreviewing?this.endPreview():this.beginPreview()},hideMainToolbar:function(){this.$mainToolbar.addClass("is-hidden"),e("html").removeClass("fl-builder-is-showing-toolbar")},showMainToolbar:function(){this.unmuteToolbar(),this.$mainToolbar.removeClass("is-hidden"),e("html").addClass("fl-builder-is-showing-toolbar")},onDeviceIconClick:function(i){var t=e(i.target).data("mode");FLBuilderResponsivePreview.switchTo(t)},muteToolbar:function(){this.$mainToolbarContent.addClass("is-muted"),i._hideTipTips()},unmuteToolbar:function(){this.$mainToolbarContent.removeClass("is-muted")}},o={isEditing:!0,init:function(){history.pushState&&(i.addHook("endEditingSession",this.onLeaveBuilder.bind(this)),i.addHook("restartEditingSession",this.onEnterBuilder.bind(this)))},onEnterBuilder:function(){history.replaceState({},document.title,FLBuilderConfig.editUrl),this.isEditing=!0},onLeaveBuilder:function(){history.replaceState({},document.title,FLBuilderConfig.url),this.isEditing=!1}},r={$row:null,$rowContent:null,row:null,drag:{},init:function(){if(this.userCanResize()){var t=e(i._contentClass);t.delegate(".fl-block-row-resize","mouseenter",this.onDragHandleHover.bind(this)),t.delegate(".fl-block-row-resize","mousedown",this.onDragHandleDown.bind(this))}},userCanResize:function(){return FLBuilderConfig.rowResize.userCanResizeRows},onDragHandleHover:function(i){if(!this.drag.isDragging){var t=e(i.target),l=t.closest(".fl-row"),n=l.data("node"),s=FLBuilderSettingsConfig.nodes[n],o=e(".fl-builder-row-settings[data-node="+n+"]"),r=o.find("[name=max_content_width_unit]"),a=r.length?r.val():s.max_content_width_unit;this.$row=l,this.$rowContent=this.$row.find(".fl-row-content"),this.row={node:n,form:o,unit:a,isFixedWidth:this.$row.hasClass("fl-row-fixed-width"),parentWidth:"vw"===a?e(window).width():this.$row.parent().width()},this.drag={edge:null,isDragging:!1,originalPosition:null,originalWidth:null,calculatedWidth:null,operation:null},this.row.isFixedWidth?this.drag.originalWidth=this.$row.width():this.drag.originalWidth=this.$rowContent.width(),this.dragInit()}},onDragHandleDown:function(){e("body").addClass("fl-builder-row-resizing")},dragInit:function(e){this.$row.find(".fl-block-row-resize").draggable({axis:"x",start:this.dragStart.bind(this),drag:this.dragging.bind(this),stop:this.dragStop.bind(this)})},dragStart:function(t,l){var n=e("body"),s=e(l.helper);this.drag.isDragging=!0,this.row.isFixedWidth?this.drag.originalWidth=this.$row.width():this.drag.originalWidth=this.$rowContent.width(),s.hasClass("fl-block-col-resize-e")&&(this.drag.edge="e",this.$feedback=s.find(".fl-block-col-resize-feedback-left")),s.hasClass("fl-block-col-resize-w")&&(this.drag.edge="w",this.$feedback=s.find(".fl-block-col-resize-feedback-right")),n.addClass("fl-builder-row-resizing"),i._colResizing=!0,i._destroyOverlayEvents(),i._closePanel()},dragging:function(e,i){var t=i.position.left,l=i.originalPosition.left,n=this.drag.originalWidth,s=0,o=this.drag.edge,r=FLBuilderConfig.rowResize.minAllowedWidth,a=FLBuilderConfig.rowResize.maxAllowedWidth;l!==t&&(FLBuilderConfig.isRtl&&(o="w"==o?"e":"w"),l>t?"w"===o?this.drag.operation="+":this.drag.operation="-":"e"===o?this.drag.operation="+":this.drag.operation="-",s=Math.abs(l-t),
|
9 |
+
"+"===this.drag.operation?this.drag.calculatedWidth=n+2*s:this.drag.calculatedWidth=n-2*s,!1!==r&&this.drag.calculatedWidth<r&&(this.drag.calculatedWidth=r),!1!==a&&this.drag.calculatedWidth>a&&(this.drag.calculatedWidth=a),this.row.isFixedWidth&&this.$row.css("max-width",this.drag.calculatedWidth+"px"),this.$rowContent.css("max-width",this.drag.calculatedWidth+"px"),"px"!==this.row.unit&&(this.drag.calculatedWidth=Math.round(this.drag.calculatedWidth/this.row.parentWidth*100)),_.isUndefined(this.$feedback)||this.$feedback.html(this.drag.calculatedWidth+this.row.unit).show(),this.row.form.length&&this.row.form.find("[name=max_content_width]").val(this.drag.calculatedWidth))},dragStop:function(t,l){this.drag.isDragging=!1,_.isUndefined(this.$feedback)||this.$feedback.hide();var n={action:"resize_row_content",node:this.row.node,width:this.drag.calculatedWidth},s=e("body");i.ajax(n),i._bindOverlayEvents(),s.removeClass("fl-builder-row-resizing"),e(".fl-block-overlay").each(function(){i._buildOverlayOverflowMenu(e(this))}),e("body").removeClass("fl-builder-row-resizing"),setTimeout(function(){i._colResizing=!1},50),i.triggerHook("didResizeRow",{rowId:this.row.node,rowWidth:this.drag.calculatedWidth})}},a={templateName:"fl-toolbar",init:function(){this.template=wp.template(this.templateName),this.render(),this.initTipTips();var e=this.$el.find(".fl-builder-content-panel-button");e.on("click",i._togglePanel),this.$el.find(".fl-builder-buy-button").on("cl
|
|