WordPress Page Builder – Beaver Builder - Version 2.5.4.2

Version Description

Download this release

Release Info

Developer pross
Plugin Icon 128x128 WordPress Page Builder – Beaver Builder
Version 2.5.4.2
Comparing to
See all releases

Code changes from version 2.5.3.1 to 2.5.4.2

changelog.txt CHANGED
@@ -1,3 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <h4>2.5.3.1 - 04/07/2022</h4>
2
  <p><strong>Hotfix</strong></p>
3
  <ul>
1
+ <h4>2.5.4.2 - 05/19/2022</h4>
2
+ <p><strong>Hot Fix</strong></p>
3
+ <ul>
4
+ <li>Outline Panel: Fix items showing multiple times in some cases</li>
5
+ <li>TEC: Tweak our fix for TEC added in previous release to make sure it does not affect other post types</li>
6
+ </ul>
7
+
8
+ <h4>2.5.4.1 - 05/12/2022</h4>
9
+ <p><strong>Bug Fixes</strong></p>
10
+ <ul>
11
+ <li>Fix Saved templates not appearing after import when overriding Templates on a Multi-Site/Network Setup</li>
12
+ <li>Fix Outline Panel showing empty when you save a module for re-use on a layout and then open it up for editing from the content panel</li>
13
+ <li>TEC: Fix the BB UI not working on Events when the Block Editor is enabled for Events and the Default Events Template is used in TEC settings</li>
14
+ </ul>
15
+
16
+ <h4>2.5.4 - 05/05/2022</h4>
17
+ <p><strong>Enhancements</strong></p>
18
+ <ul>
19
+ <li>Accessibility: Fix Pricing Table Module toggle button missing form label</li>
20
+ <li>Menu Module: Make sure sub-menu item indicators are off by default for backwards compatibility</li>
21
+ <li>Tabs Module: Add options so users can style the accordion buttons/labels</li>
22
+ <li>Add new hook to target all nodes <code>fl_builder_node_attributes</code></li>
23
+ <li>Post Carousel Module: Add before and after content hooks <code>fl_builder_post_carousel_grid_before_content</code> and <code>fl_builder_post_carousel_grid_after_content</code></li>
24
+ <li>Menu Module: Add filter for replacing the hamburger icon/SVG <code>fl_builder_mobile_menu_icon</code></li>
25
+ <li>Suggest Field: Add hook <code>fl_builder_auto_suggest_lookup</code></li>
26
+ <li>Exclude history from exported items</li>
27
+ <li>Fix conflict with RankMath so it doesn't prevent the Launch BB button from working</li>
28
+ </ul>
29
+
30
+ <p><strong>Bug Fixes</strong></p>
31
+ <ul>
32
+ <li>Don't overwrite the existing post_type templates array. This will fix Block Templates not showing up for the post type if in use</li>
33
+ <li>Login Form Module: Fix redirect not working</li>
34
+ <li>Fix extra space above/below row and column settings menu</li>
35
+ <li>Product Module: Fix PHP Warning</li>
36
+ <li>Button Module: Fix background over/focus color issue</li>
37
+ <li>Button Group: Fix preview issues, PHP notice about BG gradient hover, and missing field connection for individual buttons</li>
38
+ <li>Global Settings: If Responsive layout is disabled, hide appropriate responsive setting options</li>
39
+ <li>Fix PHP notices relating to colors/gradients after upgrading from 2.4 to 2.5</li>
40
+ <li>Safe Mode: Disable preview</li>
41
+ <li>Fix Parent column vertical alignment overriding child/nested column settings</li>
42
+ </ul>
43
+
44
  <h4>2.5.3.1 - 04/07/2022</h4>
45
  <p><strong>Hotfix</strong></p>
46
  <ul>
classes/class-fl-builder-auto-suggest.php CHANGED
@@ -37,6 +37,7 @@ final class FLBuilderAutoSuggest {
37
  }
38
 
39
  if ( isset( $data ) ) {
 
40
  return $data;
41
  }
42
  }
@@ -140,7 +141,7 @@ final class FLBuilderAutoSuggest {
140
  );
141
  }
142
 
143
- return $data;
144
  }
145
 
146
  /**
37
  }
38
 
39
  if ( isset( $data ) ) {
40
+ $data = apply_filters( 'fl_builder_auto_suggest_lookup', $data, $_REQUEST['fl_as_action'] );
41
  return $data;
42
  }
43
  }
141
  );
142
  }
143
 
144
+ return apply_filters( 'fl_builder_auto_suggest_posts_lookup', $data );
145
  }
146
 
147
  /**
classes/class-fl-builder-color.php CHANGED
@@ -131,6 +131,16 @@ final class FLBuilderColor {
131
  return $gradient;
132
  }
133
 
 
 
 
 
 
 
 
 
 
 
134
  foreach ( $setting['colors'] as $i => $color ) {
135
  $stop = $setting['stops'][ $i ];
136
 
131
  return $gradient;
132
  }
133
 
134
+ $is_gradient_field_ok = isset( $setting['type'] )
135
+ && isset( $setting['angle'] )
136
+ && isset( $setting['position'] )
137
+ && isset( $setting['colors'] )
138
+ && isset( $setting['stops'] );
139
+
140
+ if ( ! $is_gradient_field_ok ) {
141
+ return $gradient;
142
+ }
143
+
144
  foreach ( $setting['colors'] as $i => $color ) {
145
  $stop = $setting['stops'][ $i ];
146
 
classes/class-fl-builder-compatibility.php CHANGED
@@ -93,6 +93,7 @@ final class FLBuilderCompatibility {
93
  add_filter( 'woocommerce_tab_manager_tab_panel_content', array( __CLASS__, 'fix_woo_tab_manager_missing_content' ), 10, 3 );
94
  add_filter( 'fl_builder_loop_query_args', array( __CLASS__, 'hide_tribe_child_recurring_events_custom_query' ) );
95
  add_filter( 'fl_builder_render_assets_inline', array( __CLASS__, 'fix_ultimate_dashboard_pro' ), 11 );
 
96
  }
97
 
98
  /**
@@ -619,7 +620,8 @@ final class FLBuilderCompatibility {
619
  * @since 1.10.7
620
  */
621
  public static function render_module_content_filter( $contents, $module ) {
622
- if ( isset( $_GET['safemode'] ) && FLBuilderModel::is_builder_active() ) {
 
623
  return sprintf( '<h3>[%1$s] %2$s %3$s</h3>', __( 'SAFEMODE', 'fl-builder' ), $module->name, __( 'module', 'fl-builder' ) );
624
  } else {
625
  return $contents;
@@ -1060,6 +1062,35 @@ final class FLBuilderCompatibility {
1060
  }
1061
  }
1062
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1063
  /**
1064
  * Fix nodes below Posts module not editable when it's set to the Products post type.
1065
  * @since 2.4.1
93
  add_filter( 'woocommerce_tab_manager_tab_panel_content', array( __CLASS__, 'fix_woo_tab_manager_missing_content' ), 10, 3 );
94
  add_filter( 'fl_builder_loop_query_args', array( __CLASS__, 'hide_tribe_child_recurring_events_custom_query' ) );
95
  add_filter( 'fl_builder_render_assets_inline', array( __CLASS__, 'fix_ultimate_dashboard_pro' ), 11 );
96
+ add_filter( 'the_content', __CLASS__ . '::render_tribe_event_template', 11 );
97
  }
98
 
99
  /**
620
  * @since 1.10.7
621
  */
622
  public static function render_module_content_filter( $contents, $module ) {
623
+ $postdata = FLBuilderModel::get_post_data();
624
+ if ( isset( $_GET['safemode'] ) && FLBuilderModel::is_builder_active() || ( isset( $postdata['safemode'] ) && 'true' === $postdata['safemode'] ) ) {
625
  return sprintf( '<h3>[%1$s] %2$s %3$s</h3>', __( 'SAFEMODE', 'fl-builder' ), $module->name, __( 'module', 'fl-builder' ) );
626
  } else {
627
  return $contents;
1062
  }
1063
  }
1064
 
1065
+ public static function render_tribe_event_template( $content ) {
1066
+
1067
+ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
1068
+ return $content;
1069
+ }
1070
+
1071
+ if ( function_exists( 'tribe_get_option' ) && '' == tribe_get_option( 'tribeEventsTemplate', 'default' ) && 'tribe_events' === get_post_type() ) {
1072
+ $post_id = FLBuilderModel::get_post_id( true );
1073
+ $enabled = FLBuilderModel::is_builder_enabled( $post_id );
1074
+ $rendering = FLBuilder::$post_rendering === $post_id;
1075
+ if ( $enabled && ! $rendering ) {
1076
+ // Set the post rendering ID.
1077
+ FLBuilder::$post_rendering = $post_id;
1078
+
1079
+ // Try to enqueue here in case it didn't happen in the head for this layout.
1080
+ FLBuilder::enqueue_layout_styles_scripts();
1081
+
1082
+ // Render the content.
1083
+ ob_start();
1084
+ FLBuilder::render_content_by_id( $post_id );
1085
+ $content = ob_get_clean();
1086
+
1087
+ // Clear the post rendering ID.
1088
+ FLBuilder::$post_rendering = null;
1089
+ }
1090
+ }
1091
+ return $content;
1092
+ }
1093
+
1094
  /**
1095
  * Fix nodes below Posts module not editable when it's set to the Products post type.
1096
  * @since 2.4.1
classes/class-fl-builder-debug.php CHANGED
@@ -243,7 +243,7 @@ final class FL_Debug {
243
  if ( ! empty( $modules ) ) {
244
  $args = array(
245
  'name' => 'Child Theme builder modules folder detected.',
246
- 'data' => implode( '<br>', $modules ),
247
  );
248
  self::register( 'child_bb_modules', $args );
249
  }
243
  if ( ! empty( $modules ) ) {
244
  $args = array(
245
  'name' => 'Child Theme builder modules folder detected.',
246
+ 'data' => implode( "\n", $modules ),
247
  );
248
  self::register( 'child_bb_modules', $args );
249
  }
classes/class-fl-builder-loader.php CHANGED
@@ -48,7 +48,7 @@ if ( ! class_exists( 'FLBuilderLoader' ) ) {
48
  * @return void
49
  */
50
  static private function define_constants() {
51
- define( 'FL_BUILDER_VERSION', '2.5.3.1' );
52
  define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
53
  define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
54
  define( 'FL_BUILDER_URL', esc_url( plugins_url( '/', FL_BUILDER_FILE ) ) );
48
  * @return void
49
  */
50
  static private function define_constants() {
51
+ define( 'FL_BUILDER_VERSION', '2.5.4.2' );
52
  define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
53
  define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
54
  define( 'FL_BUILDER_URL', esc_url( plugins_url( '/', FL_BUILDER_FILE ) ) );
classes/class-fl-builder-model.php CHANGED
@@ -5089,7 +5089,7 @@ final class FLBuilderModel {
5089
  */
5090
  static public function get_user_templates( $type = 'layout' ) {
5091
 
5092
- if ( isset( self::$get_user_templates_cache[ $type ] ) ) {
5093
  return self::$get_user_templates_cache[ $type ];
5094
  }
5095
  $categorized = array(
5089
  */
5090
  static public function get_user_templates( $type = 'layout' ) {
5091
 
5092
+ if ( isset( self::$get_user_templates_cache[ $type ] ) && ! is_multisite() ) {
5093
  return self::$get_user_templates_cache[ $type ];
5094
  }
5095
  $categorized = array(
classes/class-fl-builder-wp-blocks-layout.php CHANGED
@@ -52,9 +52,15 @@ final class FLBuilderWPBlocksLayout {
52
  $post_type = get_post_type_object( $screen->post_type );
53
 
54
  if ( $post_type && ( $enabled || ( $user_access && $unrestricted ) ) ) {
55
- $post_type->template = array(
56
- array( 'fl-builder/layout' ),
57
- );
 
 
 
 
 
 
58
 
59
  if ( ! $user_access || ! $unrestricted ) {
60
  $post_type->template_lock = 'all';
52
  $post_type = get_post_type_object( $screen->post_type );
53
 
54
  if ( $post_type && ( $enabled || ( $user_access && $unrestricted ) ) ) {
55
+ if ( empty( $post_type->template ) ) {
56
+ $post_type->template = array(
57
+ array( 'fl-builder/layout' ),
58
+ );
59
+ } else {
60
+ if ( is_array( $post_type->template ) ) {
61
+ array_unshift( $post_type->template, array( 'fl-builder/layout' ) );
62
+ }
63
+ }
64
 
65
  if ( ! $user_access || ! $unrestricted ) {
66
  $post_type->template_lock = 'all';
classes/class-fl-builder.php CHANGED
@@ -2397,6 +2397,9 @@ final class FLBuilder {
2397
  $attrs['data-parallax-image-responsive'] = $row->settings->bg_parallax_image_responsive_src;
2398
  }
2399
  }
 
 
 
2400
  self::render_node_attributes( apply_filters( 'fl_builder_row_attributes', $attrs, $row ) );
2401
  }
2402
 
@@ -2531,6 +2534,9 @@ final class FLBuilder {
2531
  }
2532
  }
2533
 
 
 
 
2534
  self::render_node_attributes( apply_filters( 'fl_builder_column_group_attributes', $attrs, $group ) );
2535
  }
2536
 
@@ -2636,6 +2642,9 @@ final class FLBuilder {
2636
  $attrs['style'][] = 'width: ' . $col->settings->size . '%;';
2637
  }
2638
 
 
 
 
2639
  /**
2640
  * Column attributes.
2641
  * @see fl_builder_column_attributes
@@ -2831,6 +2840,9 @@ final class FLBuilder {
2831
  $attrs['data-name'] = $module->name;
2832
  }
2833
 
 
 
 
2834
  /**
2835
  * Module attributes.
2836
  * @see fl_builder_module_attributes
@@ -3819,7 +3831,7 @@ final class FLBuilder {
3819
  * @return void
3820
  */
3821
  static public function should_refresh_on_publish() {
3822
- $refresh = ! is_admin_bar_showing();
3823
  return apply_filters( 'fl_builder_should_refresh_on_publish', $refresh );
3824
  }
3825
 
2397
  $attrs['data-parallax-image-responsive'] = $row->settings->bg_parallax_image_responsive_src;
2398
  }
2399
  }
2400
+ // filter node attrs first to make sure specific node has highest priority
2401
+ $attrs = apply_filters( 'fl_builder_node_attributes', $attrs, $row );
2402
+
2403
  self::render_node_attributes( apply_filters( 'fl_builder_row_attributes', $attrs, $row ) );
2404
  }
2405
 
2534
  }
2535
  }
2536
 
2537
+ // filter node attrs first to make sure specific node has highest priority
2538
+ $attrs = apply_filters( 'fl_builder_node_attributes', $attrs, $group );
2539
+
2540
  self::render_node_attributes( apply_filters( 'fl_builder_column_group_attributes', $attrs, $group ) );
2541
  }
2542
 
2642
  $attrs['style'][] = 'width: ' . $col->settings->size . '%;';
2643
  }
2644
 
2645
+ // filter node attrs first to make sure specific node has highest priority
2646
+ $attrs = apply_filters( 'fl_builder_node_attributes', $attrs, $col );
2647
+
2648
  /**
2649
  * Column attributes.
2650
  * @see fl_builder_column_attributes
2840
  $attrs['data-name'] = $module->name;
2841
  }
2842
 
2843
+ // filter node attrs first to make sure specific node has highest priority
2844
+ $attrs = apply_filters( 'fl_builder_node_attributes', $attrs, $module );
2845
+
2846
  /**
2847
  * Module attributes.
2848
  * @see fl_builder_module_attributes
3831
  * @return void
3832
  */
3833
  static public function should_refresh_on_publish() {
3834
+ $refresh = ! is_admin_bar_showing() || isset( $_GET['safemode'] );
3835
  return apply_filters( 'fl_builder_should_refresh_on_publish', $refresh );
3836
  }
3837
 
css/fl-builder-layout.css CHANGED
@@ -337,7 +337,15 @@
337
  content: none;
338
  }
339
 
 
 
 
 
 
 
 
340
  /* Equal height align center */
 
341
  .fl-col-group-equal-height.fl-col-group-align-center .fl-col-content {
342
  align-items: center;
343
  justify-content: center;
@@ -350,6 +358,7 @@
350
  }
351
 
352
  /* Equal height align bottom */
 
353
  .fl-col-group-equal-height.fl-col-group-align-bottom .fl-col-content {
354
  justify-content: flex-end;
355
  -webkit-justify-content: flex-end;
337
  content: none;
338
  }
339
 
340
+ /* Equal height align top */
341
+ .fl-col-group-nested.fl-col-group-equal-height.fl-col-group-align-top .fl-col-content,
342
+ .fl-col-group-equal-height.fl-col-group-align-top .fl-col-content {
343
+ justify-content: flex-start;
344
+ -webkit-justify-content: flex-start;
345
+ }
346
+
347
  /* Equal height align center */
348
+ .fl-col-group-nested.fl-col-group-equal-height.fl-col-group-align-center .fl-col-content,
349
  .fl-col-group-equal-height.fl-col-group-align-center .fl-col-content {
350
  align-items: center;
351
  justify-content: center;
358
  }
359
 
360
  /* Equal height align bottom */
361
+ .fl-col-group-nested.fl-col-group-equal-height.fl-col-group-align-bottom .fl-col-content,
362
  .fl-col-group-equal-height.fl-col-group-align-bottom .fl-col-content {
363
  justify-content: flex-end;
364
  -webkit-justify-content: flex-end;
css/fl-builder.css CHANGED
@@ -2920,7 +2920,7 @@ button.fl-builder-button.fl-builder-bar-title-caret:focus {
2920
  display: none;
2921
  left: 0;
2922
  list-style: none;
2923
- margin: 0;
2924
  padding: 6px 0;
2925
  position: absolute;
2926
  text-align: left;
2920
  display: none;
2921
  left: 0;
2922
  list-style: none;
2923
+ margin: 0 !important;
2924
  padding: 6px 0;
2925
  position: absolute;
2926
  text-align: left;
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-picker *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.fl-color-picker-ui .iris-error{background-color:#ffafaf}.fl-color-picker-ui .iris-picker-inner{position:absolute;top:0;right:0;left:0;bottom:0}.fl-color-picker-ui .iris-picker .iris-square-inner{position:absolute;left:0;right:0;top:0;bottom:0}.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:1px solid rgba(0,0,0,.1)}.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:1px solid #999}.fl-color-picker-ui .iris-ie-lt9 .iris-square .ui-slider-handle{outline:1px solid #999;background-color:#fff}.fl-color-picker-ui .iris-ie-lt9 .iris-square .iris-square-handle{background:0 0;border:3px solid #fff}.fl-color-picker-ui .iris-picker .iris-strip{box-sizing:border-box;width:calc(300px - 12px);margin:6px 6px;margin-top:5px;border-radius:4px;position:relative;height:22px;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);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:2px solid #00a0d2}.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;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);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:#fff;background-image:url(../img/transp_bg.png);border-radius:4px;width:120px;height:36px;display:flex;flex-direction:row}.fl-color-picker-color{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;justify-content:center;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;background-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:flex!important;flex:0 0 36px;justify-content:center;padding:0;border:2px solid transparent;border-top-right-radius:4px;border-bottom-right-radius:4px;border-top-left-radius:0;border-bottom-left-radius:0;fill:#a2aabe;background-color:#e7ebef!important;border-color:transparent;cursor:pointer;align-items:center}.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;-webkit-box-shadow:0 9px 20px rgba(0,0,0,.17);box-shadow:0 9px 20px rgba(0,0,0,.17);-webkit-transition:opacity .2s,visibility .2s;-moz-transition:opacity .2s,visibility .2s;-ms-transition:opacity .2s,visibility .2s;-o-transition:opacity .2s,visibility .2s;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;-webkit-box-shadow:none;box-shadow:none}.fl-color-picker-ui .iris-square-value{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;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;-webkit-transition:all .2s;-moz-transition:all .2s;-ms-transition:all .2s;-o-transition:all .2s;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-toggle{position:relative;overflow:hidden;width:100%;height:35px;text-align:center;line-height:35px;font-size:12px;font-weight:700;cursor:pointer;-webkit-transition:all .1s;-moz-transition:all .1s;-ms-transition:all .1s;-o-transition:all .1s;transition:all .1s}.fl-color-picker-presets-toggle:hover{background-color:#ededed}.fl-color-picker-presets-close-label,.fl-color-picker-presets-open-label{position:absolute;top:50%;left:50%;visibility:hidden;color:#999;-webkit-transition:all .5s;-moz-transition:all .5s;-ms-transition:all .5s;-o-transition:all .5s;transition:all .5s;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);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);-webkit-transition:all .1s;-moz-transition:all .1s;-ms-transition:all .1s;-o-transition:all .1s;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:hover{background-color:#ededed}.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;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);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;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);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;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);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;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.fl-color-picker-icon-arrow-up{top:2px;-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);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;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.fl-color-picker-icon-remove:after{left:6px;width:2px;height:10px;margin-top:-10px;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);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) none repeat scroll 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-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);background-position: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;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);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}@keyframes fl-lightbox-zoom{from{transform:scale(.4)}to{transform:scale(1)}}.fl-lightbox-wrap{bottom:0;display:none;left:0;overflow:auto;padding:0;position:fixed;right:0;top:43px;z-index:100010;-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);pointer-events:none}.fl-lightbox-mask{background:#000;bottom:0;left:0;opacity:.7;position:fixed;right:0;top:0;z-index:100010;pointer-events:auto}.fl-lightbox{background:#f5f7f9;border-radius:5px;box-shadow:#000 0 4px 30px;-moz-box-shadow:#000 0 4px 30px;-webkit-box-shadow:#000 0 4px 30px;position:relative;display:flex;z-index:100011;transform-origin:center;animation-name:fl-lightbox-zoom;animation-duration:.25s;pointer-events:auto}.fl-form-field-settings .fl-lightbox,.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:system-ui,-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{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;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}.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}.fl-builder-draggable-is-dragging .fl-lightbox-wrap,.fl-builder-resizable-is-resizing .fl-lightbox-wrap{pointer-events:auto}.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-builder-settings-lightbox .fl-lightbox-header h1:before{content:none!important}.fl-lightbox-header h1{color:#333!important;font-size:16px!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;font-weight:400!important;margin:0!important;padding:14px 28px 15px!important;padding-right:34px!important;text-align:left!important;display:flex;flex-direction:row;align-items:center;line-height:1;letter-spacing:0}.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:flex;flex-direction:column;flex:1 100%;max-width:100%}.fl-lightbox-footer{box-sizing:border-box;display:flex;flex-direction:row;justify-content:flex-end;flex:0 0;flex-basis:44px;padding:10px;text-align:right}.fl-lightbox-footer .fl-builder-button{height:36px;margin-left:5px!important;flex:0 0 0%;justify-content:center}.fl-lightbox-width-slim .fl-lightbox-footer{justify-content:stretch}.fl-lightbox-width-slim .fl-lightbox-footer .fl-builder-button{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:75%;width:50%}.fl-icons-filter{height:auto!important;margin:0!important;position:absolute!important;right:0;top:0;padding:10px 16px;display:flex;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:#fff url(../img/svg/select-arrow-down-alt2.svg) no-repeat center right 10px!important;flex:1 1 195px;border-radius:0}.fl-icons-filter input[type=text]{line-height:18px;vertical-align:middle;width: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{color:#333!important;font-family:Helvetica,Verdana,sans-serif!important;font-size:20px!important;font-weight:700!important;padding:0 0 10px 0!important}.fl-icons-list i{cursor:pointer;display:inline-block;font-size:40px;height:60px;line-height:60px;width:60px;background:0 0}.fl-icons-list .dashicons-before:before{font-size:40px;vertical-align:unset;width:40px}.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;transition-duration:.35s}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;transition-duration:.35s;transform-origin:bottom;transform-style:preserve-3d;transform:rotateX(89deg) translateY(46px);opacity:0;pointer-events:none;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:rgba(240,240,240,.8) url(../img/ajax-loader.svg) center center no-repeat;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:rgba(255,255,255,.8) url(../img/ajax-loader.svg) center center no-repeat;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:-webkit-box;display:-webkit-flex;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: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}body.fl-builder-ui-skin--dark .fl-responsive-preview-mask{background:#2c333a}.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:system-ui,-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}body.fl-builder-ui-skin--dark .fl-responsive-preview-message{background:#23282d}.fl-responsive-preview-message span{display:inline-block;margin-right:8px}.fl-responsive-preview-message .size{position:absolute;right:30px;font-size:16px}.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-responsive-preview .fl-block-col-resize{display:none}#fl-builder-preview-mask{background:#f7f7f7 url(../img/ajax-loader.svg) center center no-repeat;bottom:0;height:100%;left:0;position:fixed;right:0;top:0;width:100%;z-index:999999}#fl-builder-preview-frame{bottom:0;height:100%;left:50%;position:fixed;right:0;top:0;transform:translateX(-50%);-moz-transform:translateX(-50%);-webkit-transform:translateX(-50%);width:100%;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;letter-spacing:normal}.fl-builder-button,a.fl-builder-button,button.fl-builder-button{-webkit-appearance:none;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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!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;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select: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-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}button.fl-builder-content-panel-button,button.fl-builder-content-panel-button:hover{fill:#00a0d2!important;font-size:30px!important;padding:2px 4px!important}.fl-builder-button-silent,.fl-builder-button-silent:hover{min-width:40px;padding:0 4px!important;background:0 0!important;border:2px solid transparent!important;box-shadow:none!important;display:inline-flex;flex-direction:row;justify-content:center}.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-button svg{max-width:none}.fl-builder-edit .media-modal-content button,.fl-builder-settings-fields button{letter-spacing:normal}.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}.fl-builder-blocks-node-template .fl-builder-badge-global{position:absolute;right:0;top:0}.fl-builder-badge-global{transform:translateY(0);transition-duration:.25s;transition-property:transform}.fl-builder-block:hover .fl-builder-badge-global{display:none}.fl-builder-blocks-section-content .fl-builder-node-template-actions{bottom:0;cursor:default}.fl-builder-bar{left:0;position:fixed;right:0;top:0;z-index:999999;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition-property:transform opacity;transition-duration:.35s;transform-style:preserve-3d;-webkit-perspective:1100px;-moz-perspective:1100px;perspective:1100px}.fl-builder-bar.is-hidden{pointer-events:none}.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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;font-size:14px!important;height:calc(44px + 1px);transition-property:background-color,opacity,transform;transition-duration:.35s;pointer-events:auto;letter-spacing:normal}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:flex;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;flex:0 0 46px;display:flex;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;flex:1 1 100%;display:flex;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;margin-left:auto!important;flex:0 0 46px}.fl-theme-builder-preview-select-title i{padding:12px 12px}.fl-theme-builder-preview-select-title i:before{content:"\f078"}.fl-theme-builder-preview-select.fl-builder-button{position:relative;border-radius:0;background:0 0;max-width:none;min-width:0;display:flex;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:flex;flex:1;justify-content:flex-end;flex-direction:row-reverse}.fl-theme-builder-preview-select-title div{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:none;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-y:scroll;height:auto!important;max-height:calc(100vh - 66px);min-height:300px;display:flex!important;flex-direction:column}.fl-theme-builder-preview-select-open .fl-theme-builder-preview-select-items:before{right:18px}.fl-theme-builder-preview-select-item{padding:4px 0!important;border-bottom:none!important;display:flex;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 .fa-caret-down i:before,body .fl-theme-builder-preview-select-item-title i:before{content:"\f078"}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;color:#6b6b6b;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:flex;flex-direction:row-reverse;flex:1 1 100%;padding:4px}.fl-builder-bar .fl-builder-button{height:auto;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{align-items:center!important;font-weight:400}.fl-builder--saving-indicator{flex:0 1 auto;cursor:pointer;display:flex;align-self:center;padding:0 10px;font-size:12px;font-style:italic;color:#676f7a;align-items:center;line-height:1.2;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-button.fl-builder-buy-button,.fl-builder-button.fl-builder-feedback-button,.fl-builder-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:focus,.fl-builder-buy-button:hover,.fl-builder-feedback-button:focus,.fl-builder-feedback-button:hover,.fl-builder-upgrade-button:focus,.fl-builder-upgrade-button:hover{background:#ee8e0d!important;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{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--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--panel-arrow{display:none}.fl-builder-bar-title{flex:0 0 80px!important}.fl-builder-bar-title-area{display:none}.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-toggle-notifications{display:none}.fl-builder--main-menu-panel:before{display:none}.fl-builder--panel-header{border-radius:0!important;cursor:default!important}.fl-builder--panel-header .fl-builder--tabs{cursor:default!important}.fl-builder-panel:before{display:none}.fl-builder-panel-drag-handle{display:none}.fl-builder-publish-actions{width:100%!important;padding-left:4px!important}.fl-builder-bar-actions .fl-builder-button{padding:0 8px!important}}.fl-notifications-panel .fl-builder-ui-post .wp-block-image,.fl-notifications-panel .fl-builder-ui-post .wp-block-image figure{margin-top:10px!important;margin-bottom:10px!important}.fl-builder--preview-actions{display:none;position:fixed;top:4px;left:4px;z-index:10000001;padding:4px;justify-content:center;background:#fff;border-radius:4px}.fl-builder-preview .fl-builder--preview-actions{display:flex}.fl-builder--preview-actions .device-icons{color:#555;background:#e4e4e4;border:none!important;align-items:center;display:flex;text-decoration:none;font-size:14px!important;line-height:1!important;margin:0;margin-right:4px;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}.fl-builder--preview-actions .size{position:absolute;left:5px;top:40px;font-size:16px}@keyframes fl-builder-ui-pin-zone-pulse{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}.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-pin-zone-left{left:0}.fl-builder-ui-show-pin-zone-left .fl-builder-ui-pin-zone-left{width:75px}.fl-builder-ui-pin-zone-right{right:0}.fl-builder-ui-show-pin-zone-right .fl-builder-ui-pin-zone-right{width:75px}.fl-builder-content-panel-pin-zone .fl-builder-content-panel-button{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-content-panel-pin-zone .fl-builder-done-button{filter:grayscale(100%)}.fl-builder-ui-is-pinned .fl-builder-content-panel-button{display:none}.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-container .fl-lightbox-controls{display:none}.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!important;width:36px;height:36px;border-radius:4px;fill:#778794;flex-direction:row;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:flex;left:-40px}.fl-builder-ui-is-pinned-left .fl-builder-ui-pinned-left-collapse{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-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-ui-pinned-is-collapsed .fl-builder--panel-header{display:none}.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{pointer-events: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-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{display:none}.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--panel-no-settings{display:none}.fl-builder-simple-pinned .fl-builder--panel-no-settings{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;right:0;bottom:0}.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--content-library-panel .fl-builder--panel-arrow svg{vertical-align:inherit}@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:system-ui,-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;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fl-builder-panel{transform-origin:top right;animation-name:fl-builder-show-panel;animation-duration:.15s;animation-fill-mode:both;flex:1}.fl-builder--search-results-panel{display:none;position:absolute;right:0;top:85px;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-panel{display:none}.fl-builder-content-panel-is-showing .fl-builder-panel,.fl-builder-search-results-panel-is-showing .fl-builder--search-results-panel{display:flex;flex-direction:column}.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-ui-is-pinned .fl-builder--panel-arrow,body.fl-builder-draggable-is-dragging .fl-builder--panel-arrow{display:none}.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 .fl-lightbox .fl-builder-panel-drag-handle,.fl-lightbox-width-full .fl-builder-panel-drag-handle{display:none}.fl-builder--panel-header .fl-builder--panel-controls{display:flex;flex-direction:row;position:relative}.fl-builder--panel-header .fl-builder--panel-controls .fl-builder-content-group-select{flex:1 1}.fl-builder--panel-header .fl-builder--panel-controls .fl-builder-panel-search{flex:0 0;padding:0 10px 6px;padding-left:0;margin-left:-4px}.fl-builder--panel-controls .fl-builder-panel-search button{display:flex;flex-direction:row;align-items: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:flex;flex-direction:row;padding:0 10px 6px}.fl-builder-panel-search-input input{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;user-select:none;background-color:#e7ebef;border-top:4px solid #e7ebef;height:30px;display:flex;flex-direction:row}.fl-builder-blocks-section .fl-builder-blocks-section-title{background:#f5f7f9;color:#353535;padding:2px 16px;display:flex;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:flex;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{flex:1 1 50%;width:50%;box-sizing:border-box}.fl-builder--search-results-panel .fl-builder-blocks-section-content .fl-builder-block-module{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-disabled,.fl-builder-block-disabled .fl-builder-block-content{cursor:pointer!important}.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-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:flex;flex-direction:row;height:30px}.fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col{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-sidebar .fl-cols-visual-col:first-child{flex-basis:60px}.fl-cols-visual.right-sidebar .fl-cols-visual-col:last-child{flex-basis:60px}.fl-cols-visual.left-right-sidebar .fl-cols-visual-col:first-child,.fl-cols-visual.left-right-sidebar .fl-cols-visual-col:last-child{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,.fl-builder-touch .fl-builder-block-saved-column .fl-builder-block-title,.fl-builder-touch .fl-builder-block-saved-module .fl-builder-block-title,.fl-builder-touch .fl-builder-block-saved-row .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;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-section-content .fl-builder-block .fl-builder-block-details{position:relative}.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-blocks-pro{border-bottom:4px solid #e7ebef;position:relative}#fl-builder-blocks-pro.fl-builder-blocks-section .fl-builder-block{cursor:pointer!important;padding-right:50px}#fl-builder-blocks-pro .fl-builder-block:hover .fl-builder-block-content{cursor:pointer!important;padding-right:60px}.fl-builder-blocks-pro-closed{height:240px;overflow:hidden}.fl-builder-blocks-pro-overlay{background:linear-gradient(to top,#f5f7f9 0,rgba(255,255,255,0) 100%);position:absolute;top:0;right:0;bottom:0;left:0}.fl-builder-blocks-pro-open .fl-builder-blocks-pro-overlay{display:none}.fl-builder-blocks-pro-expand.fl-builder-button{display:inline-block!important;font-size:12px!important;margin-bottom:10px!important;opacity:.4;width:100%!important}.fl-builder-blocks-pro-expand:hover{opacity:1}.fl-builder-blocks-pro-expand-rotate svg{transform:rotate(180deg)}.fl-builder--panel-cta{margin:0 20px 20px 20px!important;padding:10px 30px 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--panel-cta img{display:block;max-width:70px;margin:0 auto 20px;position:relative;right:8px}.fl-builder--panel-cta button{display:inline;margin-top:25px}.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-pro-badge{background:rgba(0,0,0,.4);color:#fff;font-size:10px;font-weight:700;padding:2px 4px}.fl-builder--menu-item .fl-builder-pro-badge{margin-left:10px}.fl-builder-block-module .fl-builder-pro-badge{padding:2px;position:absolute;right:20px}.fl-builder-block-module:hover .fl-builder-pro-badge{background:#f7a407}.fl-builder--template-thumbnail .fl-builder-pro-badge{background:#f7a407;position:absolute;right:8px;top:8px;z-index:1}.fl-builder-block-row-template .fl-builder-pro-badge{position:absolute;top:auto;bottom:10px;right:10px}.fl-builder-lite .fl-builder--menu-item[data-event=launchThemerLayouts],.fl-builder-lite .fl-builder--menu-item[data-event=saveTemplate]{opacity:.5}.fl-builder-pro-lightbox .fl-lightbox{max-width:450px;padding:30px;text-align:center}.fl-builder-pro-lightbox .dashicons-no{cursor:pointer;position:absolute;right:10px;top:14px;font-size:20px;opacity:.3}.fl-builder-pro-lightbox .dashicons-no:hover{opacity:1}.fl-pro-message-badge{margin-bottom:15px}.fl-pro-message-badge span{background:rgba(0,0,0,.3);color:#fff;font-size:10px!important;font-weight:700;padding:2px 4px}.fl-pro-message-title{font-size:20px!important;font-weight:700;margin-bottom:20px}.fl-pro-message-content{font-size:16px!important;line-height:24px!important;margin-bottom:20px}.fl-pro-message-button button{display:inline}.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;position:relative}.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;position:relative}.fl-builder--template-collection-item .fl-builder--template-thumbnail{border-color:#e4e7ea}.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-node-template .fl-builder-block{position:relative}.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-actions a:hover{text-decoration:none}.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{color:#676f7a;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,.fl-builder-touch .fl-builder-blocks-section-content .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:flex;flex-direction:row;position:relative;justify-content:flex-start;align-items:center}.fl-builder-panel .fl-builder--panel-header{cursor:move}.fl-builder-panel .fl-builder--tabs{justify-content:space-around;padding:4px 24px;cursor:pointer}.fl-builder--tab-wrap{flex:1 1 100%;display:flex;flex-direction:row;align-items:stretch;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{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:system-ui,-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{flex:1}.fl-builder--panel-view{display:none;overflow:hidden}.fl-builder--panel-view.is-showing{display:block;letter-spacing:normal}.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:flex;flex-direction:column;position:relative}.fl-builder--selector-display{display:flex;flex-direction:row;position:relative;justify-content:space-between;align-items:center;color:#161b20;background:#fff url(../img/svg/select-arrow-down-alt2.svg) no-repeat center right 10px!important;cursor:pointer;font-size:13px;font-weight:700;line-height:16px;border-radius:4px;align-items:stretch}.fl-builder--selector-display-label{display:flex;flex-direction:row;align-items:stretch;font-size:inherit;line-height:inherit;width:100%;margin:0!important;padding:0!important;color:#6d6d6d;background:0 0!important;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!important;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;flex:0 0 auto;padding:4px 10px;padding-right:12px;background:#e7ebef;border-radius:3px;display:flex;flex-direction:row;align-items:center}.fl-builder--current-view-name{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;overflow:auto;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:flex;max-height:calc(100vh - 150px)}.fl-builder--category-select.is-showing .fl-builder--selector-menu .fl-builder--menu{margin:10px 0;flex:1 100%;overflow:auto}button.fl-builder-button.fl-builder-bar-title-caret{margin:4px;padding:0 12px!important}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{padding:4px;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:hover,.fl-builder--menu>button:active,.fl-builder--menu>button:hover{top:0;background:#e6eaed!important;border:2px solid transparent!important}.fl-builder--menu>a:focus,.fl-builder--menu>button:focus{top:0;outline:0;color:inherit;background:#e6eaed!important;border:2px solid transparent!important;text-decoration:none}.fl-builder--menu .fl-has-children>svg{float:right;margin:0;height:16px;width:9px;margin-right:7px;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 hr{margin:4px 30px}.fl-builder--menu hr::after,.fl-builder--menu hr::before{display:none!important;content:none!important;height:auto}.fl-builder--menu .fl-builder-video-wrap iframe{display:block;margin:4px 0;width:100%}.fl-builder-publish-actions{display:flex;box-sizing:border-box;position:absolute;top:0;right:0;width:380px;max-width:100%;height:44px;padding:4px;padding-left:0;flex-direction:row;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:flex;flex-basis:100%}.fl-builder-bar .fl-builder-button-group>.fl-builder-button{border-radius:0;margin-left:0;flex:1 0 auto;text-align:center;justify-content:space-around}.fl-builder-bar .fl-builder-button-group>.fl-builder-button{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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:20px;font-weight:700;margin:10px;padding:250px 20px;position:relative;text-align:center;text-transform:uppercase}.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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px!important;height:47px!important;line-height:40px!important;overflow:hidden;padding:0 20px;position:absolute!important;text-overflow:ellipsis;white-space:nowrap;width:180px!important;z-index:100010!important;display:flex;flex-direction:row;align-content:center;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-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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:400;font-size:12px;letter-spacing:1px;line-height:14px;margin:10px;padding:6px 8px 5px;position:relative;text-align:left;text-overflow:ellipsis;text-shadow:none;text-transform:none;white-space:nowrap;overflow:hidden;z-index:10}@keyframes fl-builder-drop-zone-pulse{0%{background-color:#00a2d7}50%{background-color:#79deff}100%{background-color:#00a2d7}}.fl-builder-drop-zone-global{animation:fl-builder-drop-zone-global-pulse 2s infinite;background:#ff9600}@keyframes fl-builder-drop-zone-global-pulse{0%{background-color:#ffbc5c}50%{background-color:#ff9600}100%{background-color:#ffbc5c}}.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-row-highlight .fl-col-group{position:relative}.fl-col-highlight{padding:8px;position:relative}.fl-col-highlight .fl-col-content{border-style:dashed!important;border-color:#00a0d2!important;border-top-width:2px!important;border-bottom-width:2px!important;border-left-width:2px!important;border-right-width:2px!important;border-radius:4px;min-height:100px;overflow-x:hidden}.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-has-highlight-guide .fl-col-content{position:relative}.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:0;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;border-top-right-radius:5px;border-bottom-left-radius: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;text-align:center;width:32px!important}.fl-block-overlay-actions i:hover{opacity:1}.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-has-rules.logic{color:red!important}.fl-block-overlay-title{color:#fff!important;float:left;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px;height:30px;line-height:29px;margin-right:2px;padding:0 12px 0 8px}.fl-builder-touch .fl-block-overlay-actions{height:32px}.fl-builder-touch .fl-block-overlay-actions i{font-size:20px!important;height:32px!important;line-height:32px!important;width:38px!important}.fl-row-overlay{background:rgba(190,239,255,0);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;color:#fff;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{background:rgba(190,239,255,0);border:2px solid #00a0d2;border-radius:4px;bottom:8px;cursor:pointer;color:#fff;left:8px;position:absolute;right:8px;top:8px;z-index:100008}.fl-module-overlay{background:rgba(190,239,255,0);border:2px solid #00a0d2;border-radius:4px;bottom:4px;cursor:pointer;color:#fff;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:system-ui,-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:4px;border-top-left-radius:0;display:none;left:0;list-style:none;margin:0;padding:6px 0;position:absolute;text-align:left;letter-spacing:normal;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;color:#fff!important;display:block;line-height:13px;font-size:13px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:400;opacity:.8;overflow:hidden;padding:6px 12px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fl-builder-has-submenu>ul.fl-builder-submenu li a:hover{background:#0197c6;color:#fff;opacity:1;text-decoration:none}.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:flex;flex-direction:column;padding:25px;text-align:center;letter-spacing:normal}.fl-builder-actions-title{color:#333!important;display:block;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px!important;margin-bottom:20px}.fl-builder-actions .fl-builder-button{display:flex;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{color:#333!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px!important;letter-spacing:normal;line-height:24px;padding:30px}.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox{max-width:60%}.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{padding-top:10px;padding-left:10px;padding-right:10px;padding-bottom:10px;border-bottom:2px solid #e6eaed}.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;padding-top:30px;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:flex;flex-direction:row;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;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:flex;flex-direction:row;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{flex:0;margin-right:20px}.fl-user-template-thumbnail .fl-builder--template-thumbnail{background-size:cover;background-position:center top}.fl-user-template-thumbnail .fl-builder--template-thumbnail:hover{box-shadow:none;transform:scale(1);transition-property:none}.fl-user-template-thumbnail .fl-builder--template-thumbnail{width:45px}.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:flex;flex-direction:row;flex:1}.fl-builder--save-new-user-template .fl-save-control input{background:0 0;border:none!important;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}.single-fl-builder-template .fl-content{width:100%!important}form.fl-builder-settings{height:100%;margin:0;padding:0;display:flex;flex-direction:column;letter-spacing:normal}.fl-builder-settings-message{font-size:15px!important;line-height:23px!important;padding:20px 25px!important;background:#f2f2f2!important}.fl-builder-settings-message *{font-size:15px!important;line-height:23px!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%{transform:scale(1)}50%{transform:scale(1.05)}100%{transform:scale(1)}}.fl-lightbox-width-slim .fl-form-table{margin:10px 12px 10px 10px!important;width:calc(100% - 40px)}.fl-lightbox-width-slim.fl-lightbox .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 td:first-child{padding-left:0!important}.fl-lightbox-width-slim .fl-form-table .fl-field[data-type=editor] td:first-child{padding-left:0!important}.fl-field-label .fl-field-responsive-toggle{display:none}.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-compound-field{max-width:none}.fl-lightbox-width-slim .fl-color-picker{display:flex;width:auto}.fl-lightbox-width-slim .fl-color-picker-clear{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-units{max-width:none}.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{width:100%}.fl-lightbox-width-slim .fl-typography-field-align .fl-button-group-field-options{float:none}.fl-lightbox-width-slim .fl-typography-field-align .fl-button-group-field-option{width:100%}.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=Blockquote],.fl-lightbox-width-micro .mce-btn[aria-label=Fullscreen]{display:none}.fl-lightbox-width-micro .mce-toolbar i.mce-ico{width:18px}.fl-lightbox-width-slim .fl-field[data-type=code] .fl-field-control-wrapper,.fl-lightbox-width-slim .fl-field[data-type=editor] .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{border:none}.fl-lightbox .wp-editor-container{border:none}.fl-lightbox .mce-toolbar .mce-container-body{display:flex;flex-direction:row}.fl-lightbox-width-slim .mce-toolbar .mce-container-body{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-multiples{display:block}.fl-lightbox-width-slim .fl-builder-field-multiple{display:block;position:relative}.fl-lightbox-width-slim .fl-builder-field-multiple .fl-field-label{width:100%!important}.fl-lightbox-width-slim .fl-builder-field-multiple .fl-field-control{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:flex;flex-direction:row;align-items:stretch;overflow:hidden;min-height:36px;background:#e7ebef}.fl-builder-content-group-select{padding:0 10px 6px}.fl-builder-content-group-select{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:#fff url(../img/svg/select-arrow-down-alt2.svg) no-repeat center right 10px!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 10px;text-decoration:none!important;font-size:13px;font-weight:400!important;flex:0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center}body .fl-lightbox-width-slim .fl-builder-settings-tabs>*{flex:1 1 auto}body .fl-builder-settings-tabs>.fl-builder-settings-tabs-more{flex:0 0 60px;display:none;margin-left:auto;justify-content:center}.fl-builder-settings-tabs-more svg{width:16px;height:auto;fill:inherit;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: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 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;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-lightbox .fl-form-table{display:table;background:none transparent;border:none;overflow:inherit;width:calc(100% - 35px)}.fl-lightbox .fl-form-table tbody{border:none}.fl-form-table tr:nth-child(even),.fl-lightbox .fl-form-table tr{background:0 0}.fl-lightbox .fl-form-table th{border:none!important;font-weight:400!important;padding:10px 15px 10px 10px!important;padding-left:30px!important;text-align:left!important;vertical-align:top!important;width:200px!important;background:0 0!important}.fl-lightbox .fl-form-table td:first-child{padding-left:30px!important}.fl-lightbox .fl-form-table th label{color:#333;width:auto;max-width:100%}.fl-lightbox .fl-form-table th label i{color:grey}.fl-lightbox .fl-form-table th label i:hover{color:#555}.fl-lightbox .fl-form-table td{background:0 0!important;border:none!important;font-weight:400!important;padding:8px 10px;text-align:left!important}.fl-lightbox-width-slim .fl-form-table td{padding:4px 0 5px}.fl-builder-settings-fields{margin:0;overflow:hidden;position:relative;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:0;padding-top:4px}.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}.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;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;margin-bottom:2px;padding:2px 10px;padding-right:30px!important;background:#fff url(../img/svg/select-arrow-down-alt2.svg) no-repeat center right 10px!important}.fl-builder-settings-fields select[multiple]{height:60px;background-image:none!important}.fl-builder-custom-field select,.fl-photo-field select{-webkit-box-shadow:none;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:flex;flex-direction:row}.fl-builder-settings-description{padding:10px;padding-top:0;margin:0;font-style:italic;opacity:.75}.fl-builder-settings-fields table{margin:20px 0 20px}.fl-builder-settings-fields .fl-builder-settings-title{display:flex;align-items:center;background:#f5f7f9;color:#353535;padding:2px 10px;margin:0;font-size:13px!important;font-weight:400;user-select:none;border:2px solid transparent;border-radius:0}.fl-builder-settings-fields .fl-builder-settings-title:hover{top:0}.fl-builder-settings-fields .fl-builder-settings-title:active{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;flex:1 1 100%}.fl-builder-settings-section-collapsed .fl-builder-settings-title>svg{transform:rotate(-90deg)}.fl-builder-settings-fields .fl-dimension-field-unit label.icon{border:2px solid #888;margin-left:auto;margin-right:auto;width:8px;height:2px;margin-top:6px}.fl-builder-settings-fields .fl-dimension-field-unit label.icon.top{border-top-width:4px}.fl-builder-settings-fields .fl-dimension-field-unit label.icon.right{border-right-width:4px;height:4px}.fl-builder-settings-fields .fl-dimension-field-unit label.icon.bottom{border-bottom-width:4px}.fl-builder-settings-fields .fl-dimension-field-unit label.icon.left{border-left-width:4px;height:4px}.fl-builder-settings-fields .fl-border-field-radius .fl-dimension-field-unit label.icon.top_left{border-radius:10px 0 0 0;border-top-width:4px;border-left-width:4px}.fl-builder-settings-fields .fl-border-field-radius .fl-dimension-field-unit label.icon.top_right{border-radius:0 10px 0 0;border-top-width:4px;border-right-width:4px}.fl-builder-settings-fields .fl-border-field-radius .fl-dimension-field-unit label.icon.bottom_left{border-radius:0 0 0 10px;border-bottom-width:4px;border-left-width:4px}.fl-builder-settings-fields .fl-border-field-radius .fl-dimension-field-unit label.icon.bottom_right{border-radius:0 0 10px 0;border-bottom-width:4px;border-right-width:4px}.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:auto}.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 0;position:absolute;left:-25px}i.fl-field-responsive-toggle{color:grey;cursor:pointer;display:inline-block;font-size:15px!important;height:auto;line-height:18px!important;text-align:left;vertical-align:middle;width:20px}i.fl-field-responsive-toggle:hover{color:#000}.fl-builder-settings-fields input.text-full{width:100%}.fl-builder-settings-fields .fl-text-field-add-value{min-width:50%;margin-top:.62em}.fl-builder-settings-fields textarea{width:100%}.fl-field[data-type=shadow] .fl-field-control-wrapper{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: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:flex}.fl-gradient-picker-color-row{display:flex;margin-right:15px}.fl-gradient-picker-color-row:last-child{margin-right:0}.fl-color-picker.fl-gradient-picker-color{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: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:flex;height:36px;margin:1px 1px 20px 1px;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>input{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 input[type=number]{-moz-appearance:textfield}.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;cursor:pointer;font-size:15px!important;height:auto;line-height:18px!important;text-align:left;vertical-align:middle;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 0;left:-50px;position:absolute}.fl-dimension-field-unit-select{display:flex;width:auto!important}.fl-field[data-type=unit] .fl-field-control-wrapper{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: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:flex;justify-content: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-inputs input[type=number]{-moz-appearance:textfield}.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: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;flex:1 0 auto}.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;border-style:solid;border-width:8px;border-top-width:0;border-bottom-color:#fff;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: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;align-items:center;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: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:auto;padding:0 7px}.fl-typography-field .fl-shadow-field{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-border-field .fl-shadow-field{display:flex}.fl-border-field .fl-shadow-field .fl-color-picker{margin:0 8px 0 0;width:calc(25% - 8px)}.fl-border-field .fl-shadow-field .fl-dimension-field-units{margin-left:0;margin-top:0;margin-right:0;width:75%}.fl-button-group-field-options{background:#e7ebef;border-radius:4px;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);display:flex;float:left;height:36px;overflow:hidden}.fl-button-group-field-option{cursor:pointer;display:flex;flex:1 1 auto;align-items:center;justify-content:center;padding:0 5px;border-radius:0;border:2px solid transparent;background:0 0!important}.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!important;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:flex;flex-direction:row}.fl-shape-transform-field .fl-compound-field-row>*{width:auto;flex:1 1 auto}.fl-shape-transform-field .fl-compound-field-row>:first-child{flex:0 0 auto}.fl-shape-transform-field .fl-shape-orientation-controls{display:flex;flex-direction:row}.fl-shape-transform-field .fl-shape-orientation-controls>*{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: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{background:#f5f7f9;line-height:0;margin:5px 0}.fl-photo-field .fl-photo-preview-img img{min-width:60px;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-photo-field .fl-photo-edit{margin:0 0 0 11px}.fl-photo-field.fl-photo-no-attachment .fl-photo-edit{display:none}.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{letter-spacing:normal}.fl-builder-edit .media-modal-content h1{font-family:inherit}.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}.fl-builder-edit .media-modal .media-frame-router .media-router *{color:grey}.fl-builder-edit .media-modal .media-frame-content *{color:grey}span.select2-container.select2-container--open{z-index:9999999}.fl-multiple-photos-field .fl-multiple-photos-select,.fl-multiple-photos-lightbox .gallery-settings{display:none}.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{display:none}.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 10px;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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;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:flex;flex-direction:row}.fl-link-field-input{width:auto!important;flex:1 1 100%}.fl-link-field .fl-link-field-input-wrap button{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 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{align-items:flex-start}.fl-field[data-type=link] .fl-field-connections-toggle{height:24px;margin-top:1px;align-items:flex-start}.fl-field[data-type=link] .fl-field-connection{bottom:20px}.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:flex;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 10px!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;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;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;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;background-color:#fff;background-color:rgba(255,255,255,.95);z-index:2;-webkit-box-shadow:0 0 10px rgba(0,0,0,.1);-moz-box-shadow:0 0 10px rgba(0,0,0,.1);box-shadow:0 0 10px rgba(0,0,0,.1);-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}ul.as-list{border:none;border:1px solid #dfdfdf;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}ul.as-list span.type{float:right}li.as-message,li.as-result-item{border:none}li.as-result-item.active{background:#e5e5e5;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;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 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 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:10000001;pointer-events:none}#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;letter-spacing:normal}.fl-builder-row-settings .fl-field-responsive-setting input[name=bg_position_custom_left],.fl-builder-row-settings .fl-field-responsive-setting input[name=bg_position_custom_right]{display:none!important}.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;-webkit-box-shadow:0 0 30px rgba(0,0,0,.3);box-shadow:0 0 40px rgba(0,0,0,.3);color:#666;font-size:13px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;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-edit .fl-builder-shortcode-mask-wrap{position:relative;pointer-events:none}.fl-builder-edit .fl-builder-shortcode-mask{bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fl-row-content.fl-row-full-width .fl-builder-shortcode-mask-wrap{overflow:hidden}.fl-row-content.fl-row-full-width .fl-builder-shortcode-mask{left:0;right:0}.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:flex;position:absolute;top:0;left:0;align-items: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--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:hover .search-clear{color:#888;background-color:#eff1f2;background:linear-gradient(to left,#dadfe5,#dadfe5 75%,rgba(218,223,229,0))}.fl-builder--search.has-text .search-clear{display:inline-block}.fl-builder--search.is-expanded{width:246px}.fl-builder--search.is-expanded input{display:inline-block}@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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;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: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{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;padding-right: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--main-menu-panel-view-title button{float:right}.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: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;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--main-menu-panel-view[data-name=history] .fl-builder--menu-item,.fl-builder--main-menu-panel-view[data-name=history] .fl-builder--menu-item:focus{border:none!important;padding:0;margin-bottom:2px}.fl-history-list-item{border:1px solid transparent;border-radius:4px;padding:10px 12px 12px}.fl-history-list-item i.fa-check-circle{display:none}.fl-history-list-item[data-current="1"]{border-color:#d3dadf;display:flex;align-items:center}.fl-history-list-item[data-current="1"] .fl-history-list-item-label{width:100%}.fl-history-list-item[data-current="1"] i.fa-check-circle{display:block}.fl-builder-module-placeholder-message{border:1px dashed #ccc;overflow:hidden;padding:20px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.module-import-wrap{display:flex}.module-import-input{width:100%!important}.module-import-apply{height:35px;margin:1px 1px 1px 5px}.module-import-error{color:red!important;display:none;padding:5px 12px}.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-se{cursor:se-resize;width:12px;height:12px;right:-4px;bottom:-4px}.ui-resizable-sw{cursor:sw-resize;width:12px;height:12px;left:-4px;bottom:-4px}.ui-resizable-nw{cursor:nw-resize;width:12px;height:12px;left:-4px;top:-4px}.ui-resizable-ne{cursor:ne-resize;width:12px;height:12px;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;justify-content:center;align-items:center;background:rgba(50,50,50,.88);font-size:15px;line-height:1.3;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;user-select:none}.fl-builder-ui-keyboard-shortcuts.is-showing{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:flex;flex-direction:row;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:flex;flex-direction:row;justify-content:center;padding:10px}.dismiss-shortcut-ui{padding:10px;border-radius:4px;background:#fff;color:#000;border:none;font-size:14px;border:2px solid #fff}.dismiss-shortcut-ui:hover{top:0;color:#000;background:#eef2f5;border:2px solid #eef2f5}.dismiss-shortcut-ui:focus{top:0;color:#000;background:#eef2f5;border:2px solid #eef2f5}.fl-lightbox .select2-container--default .selection .select2-selection--single{border-color:transparent!important;border-style:solid!important;border-width:2px!important;border-radius:4px!important;height:36px!important;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);font-size:13px!important;line-height:15px!important;outline:0}.select2-dropdown{top:12px;border-color:transparent!important;border-style:solid!important;border-radius:4px!important;box-shadow:0 2px 4px 0 rgba(0,0,0,.12)}.fl-lightbox .select2-selection--single .select2-selection__rendered{line-height:32px!important;font-size:13px}.fl-lightbox .select2-selection--single .select2-selection__arrow{height:32px}.fl-builder-ui-skin--light .fl-lightbox .select2-selection__rendered{color:grey!important}.fl-builder-ui-skin--light .select2-dropdown{color:grey!important}.fl-builder-ui-skin--light .select2-search__field{color:grey!important}.fl-builder-ui-skin--light .select2-search__field::placeholder{color:grey!important}.fl-builder-ui-skin--light .select2-search__field::-webkit-input-placeholder{color:grey!important}.fl-builder-ui-skin--light .select2-search__field::-moz-placeholder{color:grey!important}.fl-builder-ui-skin--light .select2-search__field:-ms-input-placeholder{color:grey!important}.fl-builder-ui-skin--light .select2-search__field:-moz-placeholder{color:grey!important}.fl-builder-ui-skin--dark .fl-lightbox .select2-selection__rendered{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-dropdown{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field::placeholder{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field::-webkit-input-placeholder{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field::-moz-placeholder{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field:-ms-input-placeholder{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field:-moz-placeholder{color:#a7b1bb!important}.fl-diff td.diff-addedline,.fl-diff td.diff-context,.fl-diff td.diff-deletedline span{display:none}.fl-diff table.diff{width:100%}.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{color:#7d8690}.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:#1a1b22 url(../img/svg/select-arrow-down-alt2-light.svg) no-repeat center right 10px!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}.fl-builder-ui-skin--dark .fl-builder-panel-search-input input{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):not([class^=ace_]){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{color:#00a0d2!important;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,.fl-builder-ui-skin--dark .fl-color-picker-color.fl-color-picker-empty{background:#1a1b22!important}.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!important}.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-lightbox .select2-selection__rendered{background-color:#181b20!important}.fl-builder-ui-skin--dark .fl-lightbox .select2-container--default .selection .select2-selection--single{border-color:#181b20!important}.fl-builder-ui-skin--dark .select2-dropdown{background-color:#181b20!important}.fl-builder-ui-skin--dark .select2-search__field{background-color:#2c333a!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-field i.fl-field-responsive-toggle:hover{color:#a8b3bf}.fl-builder-ui-skin--dark .fl-builder--main-menu-panel-view-title{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:#131a22;border-top-color:#353c43}.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!important;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-picker *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.fl-color-picker-ui .iris-error{background-color:#ffafaf}.fl-color-picker-ui .iris-picker-inner{position:absolute;top:0;right:0;left:0;bottom:0}.fl-color-picker-ui .iris-picker .iris-square-inner{position:absolute;left:0;right:0;top:0;bottom:0}.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:1px solid rgba(0,0,0,.1)}.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:1px solid #999}.fl-color-picker-ui .iris-ie-lt9 .iris-square .ui-slider-handle{outline:1px solid #999;background-color:#fff}.fl-color-picker-ui .iris-ie-lt9 .iris-square .iris-square-handle{background:0 0;border:3px solid #fff}.fl-color-picker-ui .iris-picker .iris-strip{box-sizing:border-box;width:calc(300px - 12px);margin:6px 6px;margin-top:5px;border-radius:4px;position:relative;height:22px;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);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:2px solid #00a0d2}.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;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);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:#fff;background-image:url(../img/transp_bg.png);border-radius:4px;width:120px;height:36px;display:flex;flex-direction:row}.fl-color-picker-color{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;justify-content:center;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;background-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:flex!important;flex:0 0 36px;justify-content:center;padding:0;border:2px solid transparent;border-top-right-radius:4px;border-bottom-right-radius:4px;border-top-left-radius:0;border-bottom-left-radius:0;fill:#a2aabe;background-color:#e7ebef!important;border-color:transparent;cursor:pointer;align-items:center}.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;-webkit-box-shadow:0 9px 20px rgba(0,0,0,.17);box-shadow:0 9px 20px rgba(0,0,0,.17);-webkit-transition:opacity .2s,visibility .2s;-moz-transition:opacity .2s,visibility .2s;-ms-transition:opacity .2s,visibility .2s;-o-transition:opacity .2s,visibility .2s;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;-webkit-box-shadow:none;box-shadow:none}.fl-color-picker-ui .iris-square-value{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;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;-webkit-transition:all .2s;-moz-transition:all .2s;-ms-transition:all .2s;-o-transition:all .2s;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-toggle{position:relative;overflow:hidden;width:100%;height:35px;text-align:center;line-height:35px;font-size:12px;font-weight:700;cursor:pointer;-webkit-transition:all .1s;-moz-transition:all .1s;-ms-transition:all .1s;-o-transition:all .1s;transition:all .1s}.fl-color-picker-presets-toggle:hover{background-color:#ededed}.fl-color-picker-presets-close-label,.fl-color-picker-presets-open-label{position:absolute;top:50%;left:50%;visibility:hidden;color:#999;-webkit-transition:all .5s;-moz-transition:all .5s;-ms-transition:all .5s;-o-transition:all .5s;transition:all .5s;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);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);-webkit-transition:all .1s;-moz-transition:all .1s;-ms-transition:all .1s;-o-transition:all .1s;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:hover{background-color:#ededed}.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;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);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;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);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;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);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;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.fl-color-picker-icon-arrow-up{top:2px;-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);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;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.fl-color-picker-icon-remove:after{left:6px;width:2px;height:10px;margin-top:-10px;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);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) none repeat scroll 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-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);background-position: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;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);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}@keyframes fl-lightbox-zoom{from{transform:scale(.4)}to{transform:scale(1)}}.fl-lightbox-wrap{bottom:0;display:none;left:0;overflow:auto;padding:0;position:fixed;right:0;top:43px;z-index:100010;-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);pointer-events:none}.fl-lightbox-mask{background:#000;bottom:0;left:0;opacity:.7;position:fixed;right:0;top:0;z-index:100010;pointer-events:auto}.fl-lightbox{background:#f5f7f9;border-radius:5px;box-shadow:#000 0 4px 30px;-moz-box-shadow:#000 0 4px 30px;-webkit-box-shadow:#000 0 4px 30px;position:relative;display:flex;z-index:100011;transform-origin:center;animation-name:fl-lightbox-zoom;animation-duration:.25s;pointer-events:auto}.fl-form-field-settings .fl-lightbox,.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:system-ui,-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{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;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}.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}.fl-builder-draggable-is-dragging .fl-lightbox-wrap,.fl-builder-resizable-is-resizing .fl-lightbox-wrap{pointer-events:auto}.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-builder-settings-lightbox .fl-lightbox-header h1:before{content:none!important}.fl-lightbox-header h1{color:#333!important;font-size:16px!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;font-weight:400!important;margin:0!important;padding:14px 28px 15px!important;padding-right:34px!important;text-align:left!important;display:flex;flex-direction:row;align-items:center;line-height:1;letter-spacing:0}.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:flex;flex-direction:column;flex:1 100%;max-width:100%}.fl-lightbox-footer{box-sizing:border-box;display:flex;flex-direction:row;justify-content:flex-end;flex:0 0;flex-basis:44px;padding:10px;text-align:right}.fl-lightbox-footer .fl-builder-button{height:36px;margin-left:5px!important;flex:0 0 0%;justify-content:center}.fl-lightbox-width-slim .fl-lightbox-footer{justify-content:stretch}.fl-lightbox-width-slim .fl-lightbox-footer .fl-builder-button{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:75%;width:50%}.fl-icons-filter{height:auto!important;margin:0!important;position:absolute!important;right:0;top:0;padding:10px 16px;display:flex;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:#fff url(../img/svg/select-arrow-down-alt2.svg) no-repeat center right 10px!important;flex:1 1 195px;border-radius:0}.fl-icons-filter input[type=text]{line-height:18px;vertical-align:middle;width: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{color:#333!important;font-family:Helvetica,Verdana,sans-serif!important;font-size:20px!important;font-weight:700!important;padding:0 0 10px 0!important}.fl-icons-list i{cursor:pointer;display:inline-block;font-size:40px;height:60px;line-height:60px;width:60px;background:0 0}.fl-icons-list .dashicons-before:before{font-size:40px;vertical-align:unset;width:40px}.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;transition-duration:.35s}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;transition-duration:.35s;transform-origin:bottom;transform-style:preserve-3d;transform:rotateX(89deg) translateY(46px);opacity:0;pointer-events:none;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:rgba(240,240,240,.8) url(../img/ajax-loader.svg) center center no-repeat;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:rgba(255,255,255,.8) url(../img/ajax-loader.svg) center center no-repeat;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:-webkit-box;display:-webkit-flex;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: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}body.fl-builder-ui-skin--dark .fl-responsive-preview-mask{background:#2c333a}.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:system-ui,-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}body.fl-builder-ui-skin--dark .fl-responsive-preview-message{background:#23282d}.fl-responsive-preview-message span{display:inline-block;margin-right:8px}.fl-responsive-preview-message .size{position:absolute;right:30px;font-size:16px}.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-responsive-preview .fl-block-col-resize{display:none}#fl-builder-preview-mask{background:#f7f7f7 url(../img/ajax-loader.svg) center center no-repeat;bottom:0;height:100%;left:0;position:fixed;right:0;top:0;width:100%;z-index:999999}#fl-builder-preview-frame{bottom:0;height:100%;left:50%;position:fixed;right:0;top:0;transform:translateX(-50%);-moz-transform:translateX(-50%);-webkit-transform:translateX(-50%);width:100%;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;letter-spacing:normal}.fl-builder-button,a.fl-builder-button,button.fl-builder-button{-webkit-appearance:none;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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!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;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select: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-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}button.fl-builder-content-panel-button,button.fl-builder-content-panel-button:hover{fill:#00a0d2!important;font-size:30px!important;padding:2px 4px!important}.fl-builder-button-silent,.fl-builder-button-silent:hover{min-width:40px;padding:0 4px!important;background:0 0!important;border:2px solid transparent!important;box-shadow:none!important;display:inline-flex;flex-direction:row;justify-content:center}.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-button svg{max-width:none}.fl-builder-edit .media-modal-content button,.fl-builder-settings-fields button{letter-spacing:normal}.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}.fl-builder-blocks-node-template .fl-builder-badge-global{position:absolute;right:0;top:0}.fl-builder-badge-global{transform:translateY(0);transition-duration:.25s;transition-property:transform}.fl-builder-block:hover .fl-builder-badge-global{display:none}.fl-builder-blocks-section-content .fl-builder-node-template-actions{bottom:0;cursor:default}.fl-builder-bar{left:0;position:fixed;right:0;top:0;z-index:999999;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition-property:transform opacity;transition-duration:.35s;transform-style:preserve-3d;-webkit-perspective:1100px;-moz-perspective:1100px;perspective:1100px}.fl-builder-bar.is-hidden{pointer-events:none}.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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;font-size:14px!important;height:calc(44px + 1px);transition-property:background-color,opacity,transform;transition-duration:.35s;pointer-events:auto;letter-spacing:normal}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:flex;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;flex:0 0 46px;display:flex;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;flex:1 1 100%;display:flex;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;margin-left:auto!important;flex:0 0 46px}.fl-theme-builder-preview-select-title i{padding:12px 12px}.fl-theme-builder-preview-select-title i:before{content:"\f078"}.fl-theme-builder-preview-select.fl-builder-button{position:relative;border-radius:0;background:0 0;max-width:none;min-width:0;display:flex;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:flex;flex:1;justify-content:flex-end;flex-direction:row-reverse}.fl-theme-builder-preview-select-title div{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:none;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-y:scroll;height:auto!important;max-height:calc(100vh - 66px);min-height:300px;display:flex!important;flex-direction:column}.fl-theme-builder-preview-select-open .fl-theme-builder-preview-select-items:before{right:18px}.fl-theme-builder-preview-select-item{padding:4px 0!important;border-bottom:none!important;display:flex;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 .fa-caret-down i:before,body .fl-theme-builder-preview-select-item-title i:before{content:"\f078"}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;color:#6b6b6b;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:flex;flex-direction:row-reverse;flex:1 1 100%;padding:4px}.fl-builder-bar .fl-builder-button{height:auto;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{align-items:center!important;font-weight:400}.fl-builder--saving-indicator{flex:0 1 auto;cursor:pointer;display:flex;align-self:center;padding:0 10px;font-size:12px;font-style:italic;color:#676f7a;align-items:center;line-height:1.2;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-button.fl-builder-buy-button,.fl-builder-button.fl-builder-feedback-button,.fl-builder-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:focus,.fl-builder-buy-button:hover,.fl-builder-feedback-button:focus,.fl-builder-feedback-button:hover,.fl-builder-upgrade-button:focus,.fl-builder-upgrade-button:hover{background:#ee8e0d!important;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{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--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--panel-arrow{display:none}.fl-builder-bar-title{flex:0 0 80px!important}.fl-builder-bar-title-area{display:none}.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-toggle-notifications{display:none}.fl-builder--main-menu-panel:before{display:none}.fl-builder--panel-header{border-radius:0!important;cursor:default!important}.fl-builder--panel-header .fl-builder--tabs{cursor:default!important}.fl-builder-panel:before{display:none}.fl-builder-panel-drag-handle{display:none}.fl-builder-publish-actions{width:100%!important;padding-left:4px!important}.fl-builder-bar-actions .fl-builder-button{padding:0 8px!important}}.fl-notifications-panel .fl-builder-ui-post .wp-block-image,.fl-notifications-panel .fl-builder-ui-post .wp-block-image figure{margin-top:10px!important;margin-bottom:10px!important}.fl-builder--preview-actions{display:none;position:fixed;top:4px;left:4px;z-index:10000001;padding:4px;justify-content:center;background:#fff;border-radius:4px}.fl-builder-preview .fl-builder--preview-actions{display:flex}.fl-builder--preview-actions .device-icons{color:#555;background:#e4e4e4;border:none!important;align-items:center;display:flex;text-decoration:none;font-size:14px!important;line-height:1!important;margin:0;margin-right:4px;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}.fl-builder--preview-actions .size{position:absolute;left:5px;top:40px;font-size:16px}@keyframes fl-builder-ui-pin-zone-pulse{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}.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-pin-zone-left{left:0}.fl-builder-ui-show-pin-zone-left .fl-builder-ui-pin-zone-left{width:75px}.fl-builder-ui-pin-zone-right{right:0}.fl-builder-ui-show-pin-zone-right .fl-builder-ui-pin-zone-right{width:75px}.fl-builder-content-panel-pin-zone .fl-builder-content-panel-button{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-content-panel-pin-zone .fl-builder-done-button{filter:grayscale(100%)}.fl-builder-ui-is-pinned .fl-builder-content-panel-button{display:none}.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-container .fl-lightbox-controls{display:none}.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!important;width:36px;height:36px;border-radius:4px;fill:#778794;flex-direction:row;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:flex;left:-40px}.fl-builder-ui-is-pinned-left .fl-builder-ui-pinned-left-collapse{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-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-ui-pinned-is-collapsed .fl-builder--panel-header{display:none}.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{pointer-events: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-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{display:none}.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--panel-no-settings{display:none}.fl-builder-simple-pinned .fl-builder--panel-no-settings{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;right:0;bottom:0}.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--content-library-panel .fl-builder--panel-arrow svg{vertical-align:inherit}@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:system-ui,-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;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fl-builder-panel{transform-origin:top right;animation-name:fl-builder-show-panel;animation-duration:.15s;animation-fill-mode:both;flex:1}.fl-builder--search-results-panel{display:none;position:absolute;right:0;top:85px;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-panel{display:none}.fl-builder-content-panel-is-showing .fl-builder-panel,.fl-builder-search-results-panel-is-showing .fl-builder--search-results-panel{display:flex;flex-direction:column}.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-ui-is-pinned .fl-builder--panel-arrow,body.fl-builder-draggable-is-dragging .fl-builder--panel-arrow{display:none}.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 .fl-lightbox .fl-builder-panel-drag-handle,.fl-lightbox-width-full .fl-builder-panel-drag-handle{display:none}.fl-builder--panel-header .fl-builder--panel-controls{display:flex;flex-direction:row;position:relative}.fl-builder--panel-header .fl-builder--panel-controls .fl-builder-content-group-select{flex:1 1}.fl-builder--panel-header .fl-builder--panel-controls .fl-builder-panel-search{flex:0 0;padding:0 10px 6px;padding-left:0;margin-left:-4px}.fl-builder--panel-controls .fl-builder-panel-search button{display:flex;flex-direction:row;align-items: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:flex;flex-direction:row;padding:0 10px 6px}.fl-builder-panel-search-input input{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;user-select:none;background-color:#e7ebef;border-top:4px solid #e7ebef;height:30px;display:flex;flex-direction:row}.fl-builder-blocks-section .fl-builder-blocks-section-title{background:#f5f7f9;color:#353535;padding:2px 16px;display:flex;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:flex;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{flex:1 1 50%;width:50%;box-sizing:border-box}.fl-builder--search-results-panel .fl-builder-blocks-section-content .fl-builder-block-module{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-disabled,.fl-builder-block-disabled .fl-builder-block-content{cursor:pointer!important}.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-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:flex;flex-direction:row;height:30px}.fl-builder-block-visual.fl-cols-visual .fl-cols-visual-col{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-sidebar .fl-cols-visual-col:first-child{flex-basis:60px}.fl-cols-visual.right-sidebar .fl-cols-visual-col:last-child{flex-basis:60px}.fl-cols-visual.left-right-sidebar .fl-cols-visual-col:first-child,.fl-cols-visual.left-right-sidebar .fl-cols-visual-col:last-child{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,.fl-builder-touch .fl-builder-block-saved-column .fl-builder-block-title,.fl-builder-touch .fl-builder-block-saved-module .fl-builder-block-title,.fl-builder-touch .fl-builder-block-saved-row .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;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-section-content .fl-builder-block .fl-builder-block-details{position:relative}.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-blocks-pro{border-bottom:4px solid #e7ebef;position:relative}#fl-builder-blocks-pro.fl-builder-blocks-section .fl-builder-block{cursor:pointer!important;padding-right:50px}#fl-builder-blocks-pro .fl-builder-block:hover .fl-builder-block-content{cursor:pointer!important;padding-right:60px}.fl-builder-blocks-pro-closed{height:240px;overflow:hidden}.fl-builder-blocks-pro-overlay{background:linear-gradient(to top,#f5f7f9 0,rgba(255,255,255,0) 100%);position:absolute;top:0;right:0;bottom:0;left:0}.fl-builder-blocks-pro-open .fl-builder-blocks-pro-overlay{display:none}.fl-builder-blocks-pro-expand.fl-builder-button{display:inline-block!important;font-size:12px!important;margin-bottom:10px!important;opacity:.4;width:100%!important}.fl-builder-blocks-pro-expand:hover{opacity:1}.fl-builder-blocks-pro-expand-rotate svg{transform:rotate(180deg)}.fl-builder--panel-cta{margin:0 20px 20px 20px!important;padding:10px 30px 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--panel-cta img{display:block;max-width:70px;margin:0 auto 20px;position:relative;right:8px}.fl-builder--panel-cta button{display:inline;margin-top:25px}.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-pro-badge{background:rgba(0,0,0,.4);color:#fff;font-size:10px;font-weight:700;padding:2px 4px}.fl-builder--menu-item .fl-builder-pro-badge{margin-left:10px}.fl-builder-block-module .fl-builder-pro-badge{padding:2px;position:absolute;right:20px}.fl-builder-block-module:hover .fl-builder-pro-badge{background:#f7a407}.fl-builder--template-thumbnail .fl-builder-pro-badge{background:#f7a407;position:absolute;right:8px;top:8px;z-index:1}.fl-builder-block-row-template .fl-builder-pro-badge{position:absolute;top:auto;bottom:10px;right:10px}.fl-builder-lite .fl-builder--menu-item[data-event=launchThemerLayouts],.fl-builder-lite .fl-builder--menu-item[data-event=saveTemplate]{opacity:.5}.fl-builder-pro-lightbox .fl-lightbox{max-width:450px;padding:30px;text-align:center}.fl-builder-pro-lightbox .dashicons-no{cursor:pointer;position:absolute;right:10px;top:14px;font-size:20px;opacity:.3}.fl-builder-pro-lightbox .dashicons-no:hover{opacity:1}.fl-pro-message-badge{margin-bottom:15px}.fl-pro-message-badge span{background:rgba(0,0,0,.3);color:#fff;font-size:10px!important;font-weight:700;padding:2px 4px}.fl-pro-message-title{font-size:20px!important;font-weight:700;margin-bottom:20px}.fl-pro-message-content{font-size:16px!important;line-height:24px!important;margin-bottom:20px}.fl-pro-message-button button{display:inline}.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;position:relative}.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;position:relative}.fl-builder--template-collection-item .fl-builder--template-thumbnail{border-color:#e4e7ea}.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-node-template .fl-builder-block{position:relative}.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-actions a:hover{text-decoration:none}.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{color:#676f7a;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,.fl-builder-touch .fl-builder-blocks-section-content .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:flex;flex-direction:row;position:relative;justify-content:flex-start;align-items:center}.fl-builder-panel .fl-builder--panel-header{cursor:move}.fl-builder-panel .fl-builder--tabs{justify-content:space-around;padding:4px 24px;cursor:pointer}.fl-builder--tab-wrap{flex:1 1 100%;display:flex;flex-direction:row;align-items:stretch;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{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:system-ui,-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{flex:1}.fl-builder--panel-view{display:none;overflow:hidden}.fl-builder--panel-view.is-showing{display:block;letter-spacing:normal}.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:flex;flex-direction:column;position:relative}.fl-builder--selector-display{display:flex;flex-direction:row;position:relative;justify-content:space-between;align-items:center;color:#161b20;background:#fff url(../img/svg/select-arrow-down-alt2.svg) no-repeat center right 10px!important;cursor:pointer;font-size:13px;font-weight:700;line-height:16px;border-radius:4px;align-items:stretch}.fl-builder--selector-display-label{display:flex;flex-direction:row;align-items:stretch;font-size:inherit;line-height:inherit;width:100%;margin:0!important;padding:0!important;color:#6d6d6d;background:0 0!important;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!important;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;flex:0 0 auto;padding:4px 10px;padding-right:12px;background:#e7ebef;border-radius:3px;display:flex;flex-direction:row;align-items:center}.fl-builder--current-view-name{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;overflow:auto;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:flex;max-height:calc(100vh - 150px)}.fl-builder--category-select.is-showing .fl-builder--selector-menu .fl-builder--menu{margin:10px 0;flex:1 100%;overflow:auto}button.fl-builder-button.fl-builder-bar-title-caret{margin:4px;padding:0 12px!important}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{padding:4px;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:hover,.fl-builder--menu>button:active,.fl-builder--menu>button:hover{top:0;background:#e6eaed!important;border:2px solid transparent!important}.fl-builder--menu>a:focus,.fl-builder--menu>button:focus{top:0;outline:0;color:inherit;background:#e6eaed!important;border:2px solid transparent!important;text-decoration:none}.fl-builder--menu .fl-has-children>svg{float:right;margin:0;height:16px;width:9px;margin-right:7px;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 hr{margin:4px 30px}.fl-builder--menu hr::after,.fl-builder--menu hr::before{display:none!important;content:none!important;height:auto}.fl-builder--menu .fl-builder-video-wrap iframe{display:block;margin:4px 0;width:100%}.fl-builder-publish-actions{display:flex;box-sizing:border-box;position:absolute;top:0;right:0;width:380px;max-width:100%;height:44px;padding:4px;padding-left:0;flex-direction:row;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:flex;flex-basis:100%}.fl-builder-bar .fl-builder-button-group>.fl-builder-button{border-radius:0;margin-left:0;flex:1 0 auto;text-align:center;justify-content:space-around}.fl-builder-bar .fl-builder-button-group>.fl-builder-button{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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:20px;font-weight:700;margin:10px;padding:250px 20px;position:relative;text-align:center;text-transform:uppercase}.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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px!important;height:47px!important;line-height:40px!important;overflow:hidden;padding:0 20px;position:absolute!important;text-overflow:ellipsis;white-space:nowrap;width:180px!important;z-index:100010!important;display:flex;flex-direction:row;align-content:center;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-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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:400;font-size:12px;letter-spacing:1px;line-height:14px;margin:10px;padding:6px 8px 5px;position:relative;text-align:left;text-overflow:ellipsis;text-shadow:none;text-transform:none;white-space:nowrap;overflow:hidden;z-index:10}@keyframes fl-builder-drop-zone-pulse{0%{background-color:#00a2d7}50%{background-color:#79deff}100%{background-color:#00a2d7}}.fl-builder-drop-zone-global{animation:fl-builder-drop-zone-global-pulse 2s infinite;background:#ff9600}@keyframes fl-builder-drop-zone-global-pulse{0%{background-color:#ffbc5c}50%{background-color:#ff9600}100%{background-color:#ffbc5c}}.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-row-highlight .fl-col-group{position:relative}.fl-col-highlight{padding:8px;position:relative}.fl-col-highlight .fl-col-content{border-style:dashed!important;border-color:#00a0d2!important;border-top-width:2px!important;border-bottom-width:2px!important;border-left-width:2px!important;border-right-width:2px!important;border-radius:4px;min-height:100px;overflow-x:hidden}.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-has-highlight-guide .fl-col-content{position:relative}.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:0;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;border-top-right-radius:5px;border-bottom-left-radius: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;text-align:center;width:32px!important}.fl-block-overlay-actions i:hover{opacity:1}.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-has-rules.logic{color:red!important}.fl-block-overlay-title{color:#fff!important;float:left;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px;height:30px;line-height:29px;margin-right:2px;padding:0 12px 0 8px}.fl-builder-touch .fl-block-overlay-actions{height:32px}.fl-builder-touch .fl-block-overlay-actions i{font-size:20px!important;height:32px!important;line-height:32px!important;width:38px!important}.fl-row-overlay{background:rgba(190,239,255,0);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;color:#fff;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{background:rgba(190,239,255,0);border:2px solid #00a0d2;border-radius:4px;bottom:8px;cursor:pointer;color:#fff;left:8px;position:absolute;right:8px;top:8px;z-index:100008}.fl-module-overlay{background:rgba(190,239,255,0);border:2px solid #00a0d2;border-radius:4px;bottom:4px;cursor:pointer;color:#fff;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:system-ui,-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:4px;border-top-left-radius:0;display:none;left:0;list-style:none;margin:0!important;padding:6px 0;position:absolute;text-align:left;letter-spacing:normal;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;color:#fff!important;display:block;line-height:13px;font-size:13px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:400;opacity:.8;overflow:hidden;padding:6px 12px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fl-builder-has-submenu>ul.fl-builder-submenu li a:hover{background:#0197c6;color:#fff;opacity:1;text-decoration:none}.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:flex;flex-direction:column;padding:25px;text-align:center;letter-spacing:normal}.fl-builder-actions-title{color:#333!important;display:block;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px!important;margin-bottom:20px}.fl-builder-actions .fl-builder-button{display:flex;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{color:#333!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px!important;letter-spacing:normal;line-height:24px;padding:30px}.fl-builder-alert-lightbox.fl-builder-crash-lightbox .fl-lightbox{max-width:60%}.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{padding-top:10px;padding-left:10px;padding-right:10px;padding-bottom:10px;border-bottom:2px solid #e6eaed}.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;padding-top:30px;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:flex;flex-direction:row;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;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:flex;flex-direction:row;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{flex:0;margin-right:20px}.fl-user-template-thumbnail .fl-builder--template-thumbnail{background-size:cover;background-position:center top}.fl-user-template-thumbnail .fl-builder--template-thumbnail:hover{box-shadow:none;transform:scale(1);transition-property:none}.fl-user-template-thumbnail .fl-builder--template-thumbnail{width:45px}.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:flex;flex-direction:row;flex:1}.fl-builder--save-new-user-template .fl-save-control input{background:0 0;border:none!important;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}.single-fl-builder-template .fl-content{width:100%!important}form.fl-builder-settings{height:100%;margin:0;padding:0;display:flex;flex-direction:column;letter-spacing:normal}.fl-builder-settings-message{font-size:15px!important;line-height:23px!important;padding:20px 25px!important;background:#f2f2f2!important}.fl-builder-settings-message *{font-size:15px!important;line-height:23px!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%{transform:scale(1)}50%{transform:scale(1.05)}100%{transform:scale(1)}}.fl-lightbox-width-slim .fl-form-table{margin:10px 12px 10px 10px!important;width:calc(100% - 40px)}.fl-lightbox-width-slim.fl-lightbox .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 td:first-child{padding-left:0!important}.fl-lightbox-width-slim .fl-form-table .fl-field[data-type=editor] td:first-child{padding-left:0!important}.fl-field-label .fl-field-responsive-toggle{display:none}.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-compound-field{max-width:none}.fl-lightbox-width-slim .fl-color-picker{display:flex;width:auto}.fl-lightbox-width-slim .fl-color-picker-clear{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-units{max-width:none}.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{width:100%}.fl-lightbox-width-slim .fl-typography-field-align .fl-button-group-field-options{float:none}.fl-lightbox-width-slim .fl-typography-field-align .fl-button-group-field-option{width:100%}.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=Blockquote],.fl-lightbox-width-micro .mce-btn[aria-label=Fullscreen]{display:none}.fl-lightbox-width-micro .mce-toolbar i.mce-ico{width:18px}.fl-lightbox-width-slim .fl-field[data-type=code] .fl-field-control-wrapper,.fl-lightbox-width-slim .fl-field[data-type=editor] .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{border:none}.fl-lightbox .wp-editor-container{border:none}.fl-lightbox .mce-toolbar .mce-container-body{display:flex;flex-direction:row}.fl-lightbox-width-slim .mce-toolbar .mce-container-body{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-multiples{display:block}.fl-lightbox-width-slim .fl-builder-field-multiple{display:block;position:relative}.fl-lightbox-width-slim .fl-builder-field-multiple .fl-field-label{width:100%!important}.fl-lightbox-width-slim .fl-builder-field-multiple .fl-field-control{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:flex;flex-direction:row;align-items:stretch;overflow:hidden;min-height:36px;background:#e7ebef}.fl-builder-content-group-select{padding:0 10px 6px}.fl-builder-content-group-select{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:#fff url(../img/svg/select-arrow-down-alt2.svg) no-repeat center right 10px!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 10px;text-decoration:none!important;font-size:13px;font-weight:400!important;flex:0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center}body .fl-lightbox-width-slim .fl-builder-settings-tabs>*{flex:1 1 auto}body .fl-builder-settings-tabs>.fl-builder-settings-tabs-more{flex:0 0 60px;display:none;margin-left:auto;justify-content:center}.fl-builder-settings-tabs-more svg{width:16px;height:auto;fill:inherit;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: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 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;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-lightbox .fl-form-table{display:table;background:none transparent;border:none;overflow:inherit;width:calc(100% - 35px)}.fl-lightbox .fl-form-table tbody{border:none}.fl-form-table tr:nth-child(even),.fl-lightbox .fl-form-table tr{background:0 0}.fl-lightbox .fl-form-table th{border:none!important;font-weight:400!important;padding:10px 15px 10px 10px!important;padding-left:30px!important;text-align:left!important;vertical-align:top!important;width:200px!important;background:0 0!important}.fl-lightbox .fl-form-table td:first-child{padding-left:30px!important}.fl-lightbox .fl-form-table th label{color:#333;width:auto;max-width:100%}.fl-lightbox .fl-form-table th label i{color:grey}.fl-lightbox .fl-form-table th label i:hover{color:#555}.fl-lightbox .fl-form-table td{background:0 0!important;border:none!important;font-weight:400!important;padding:8px 10px;text-align:left!important}.fl-lightbox-width-slim .fl-form-table td{padding:4px 0 5px}.fl-builder-settings-fields{margin:0;overflow:hidden;position:relative;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:0;padding-top:4px}.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}.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;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;margin-bottom:2px;padding:2px 10px;padding-right:30px!important;background:#fff url(../img/svg/select-arrow-down-alt2.svg) no-repeat center right 10px!important}.fl-builder-settings-fields select[multiple]{height:60px;background-image:none!important}.fl-builder-custom-field select,.fl-photo-field select{-webkit-box-shadow:none;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:flex;flex-direction:row}.fl-builder-settings-description{padding:10px;padding-top:0;margin:0;font-style:italic;opacity:.75}.fl-builder-settings-fields table{margin:20px 0 20px}.fl-builder-settings-fields .fl-builder-settings-title{display:flex;align-items:center;background:#f5f7f9;color:#353535;padding:2px 10px;margin:0;font-size:13px!important;font-weight:400;user-select:none;border:2px solid transparent;border-radius:0}.fl-builder-settings-fields .fl-builder-settings-title:hover{top:0}.fl-builder-settings-fields .fl-builder-settings-title:active{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;flex:1 1 100%}.fl-builder-settings-section-collapsed .fl-builder-settings-title>svg{transform:rotate(-90deg)}.fl-builder-settings-fields .fl-dimension-field-unit label.icon{border:2px solid #888;margin-left:auto;margin-right:auto;width:8px;height:2px;margin-top:6px}.fl-builder-settings-fields .fl-dimension-field-unit label.icon.top{border-top-width:4px}.fl-builder-settings-fields .fl-dimension-field-unit label.icon.right{border-right-width:4px;height:4px}.fl-builder-settings-fields .fl-dimension-field-unit label.icon.bottom{border-bottom-width:4px}.fl-builder-settings-fields .fl-dimension-field-unit label.icon.left{border-left-width:4px;height:4px}.fl-builder-settings-fields .fl-border-field-radius .fl-dimension-field-unit label.icon.top_left{border-radius:10px 0 0 0;border-top-width:4px;border-left-width:4px}.fl-builder-settings-fields .fl-border-field-radius .fl-dimension-field-unit label.icon.top_right{border-radius:0 10px 0 0;border-top-width:4px;border-right-width:4px}.fl-builder-settings-fields .fl-border-field-radius .fl-dimension-field-unit label.icon.bottom_left{border-radius:0 0 0 10px;border-bottom-width:4px;border-left-width:4px}.fl-builder-settings-fields .fl-border-field-radius .fl-dimension-field-unit label.icon.bottom_right{border-radius:0 0 10px 0;border-bottom-width:4px;border-right-width:4px}.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:auto}.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 0;position:absolute;left:-25px}i.fl-field-responsive-toggle{color:grey;cursor:pointer;display:inline-block;font-size:15px!important;height:auto;line-height:18px!important;text-align:left;vertical-align:middle;width:20px}i.fl-field-responsive-toggle:hover{color:#000}.fl-builder-settings-fields input.text-full{width:100%}.fl-builder-settings-fields .fl-text-field-add-value{min-width:50%;margin-top:.62em}.fl-builder-settings-fields textarea{width:100%}.fl-field[data-type=shadow] .fl-field-control-wrapper{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: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:flex}.fl-gradient-picker-color-row{display:flex;margin-right:15px}.fl-gradient-picker-color-row:last-child{margin-right:0}.fl-color-picker.fl-gradient-picker-color{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: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:flex;height:36px;margin:1px 1px 20px 1px;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>input{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 input[type=number]{-moz-appearance:textfield}.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;cursor:pointer;font-size:15px!important;height:auto;line-height:18px!important;text-align:left;vertical-align:middle;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 0;left:-50px;position:absolute}.fl-dimension-field-unit-select{display:flex;width:auto!important}.fl-field[data-type=unit] .fl-field-control-wrapper{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: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:flex;justify-content: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-inputs input[type=number]{-moz-appearance:textfield}.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: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;flex:1 0 auto}.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;border-style:solid;border-width:8px;border-top-width:0;border-bottom-color:#fff;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: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;align-items:center;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: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:auto;padding:0 7px}.fl-typography-field .fl-shadow-field{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-border-field .fl-shadow-field{display:flex}.fl-border-field .fl-shadow-field .fl-color-picker{margin:0 8px 0 0;width:calc(25% - 8px)}.fl-border-field .fl-shadow-field .fl-dimension-field-units{margin-left:0;margin-top:0;margin-right:0;width:75%}.fl-button-group-field-options{background:#e7ebef;border-radius:4px;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);display:flex;float:left;height:36px;overflow:hidden}.fl-button-group-field-option{cursor:pointer;display:flex;flex:1 1 auto;align-items:center;justify-content:center;padding:0 5px;border-radius:0;border:2px solid transparent;background:0 0!important}.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!important;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:flex;flex-direction:row}.fl-shape-transform-field .fl-compound-field-row>*{width:auto;flex:1 1 auto}.fl-shape-transform-field .fl-compound-field-row>:first-child{flex:0 0 auto}.fl-shape-transform-field .fl-shape-orientation-controls{display:flex;flex-direction:row}.fl-shape-transform-field .fl-shape-orientation-controls>*{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: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{background:#f5f7f9;line-height:0;margin:5px 0}.fl-photo-field .fl-photo-preview-img img{min-width:60px;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-photo-field .fl-photo-edit{margin:0 0 0 11px}.fl-photo-field.fl-photo-no-attachment .fl-photo-edit{display:none}.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{letter-spacing:normal}.fl-builder-edit .media-modal-content h1{font-family:inherit}.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}.fl-builder-edit .media-modal .media-frame-router .media-router *{color:grey}.fl-builder-edit .media-modal .media-frame-content *{color:grey}span.select2-container.select2-container--open{z-index:9999999}.fl-multiple-photos-field .fl-multiple-photos-select,.fl-multiple-photos-lightbox .gallery-settings{display:none}.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{display:none}.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 10px;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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;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:flex;flex-direction:row}.fl-link-field-input{width:auto!important;flex:1 1 100%}.fl-link-field .fl-link-field-input-wrap button{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 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{align-items:flex-start}.fl-field[data-type=link] .fl-field-connections-toggle{height:24px;margin-top:1px;align-items:flex-start}.fl-field[data-type=link] .fl-field-connection{bottom:20px}.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:flex;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 10px!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;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;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;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;background-color:#fff;background-color:rgba(255,255,255,.95);z-index:2;-webkit-box-shadow:0 0 10px rgba(0,0,0,.1);-moz-box-shadow:0 0 10px rgba(0,0,0,.1);box-shadow:0 0 10px rgba(0,0,0,.1);-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}ul.as-list{border:none;border:1px solid #dfdfdf;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}ul.as-list span.type{float:right}li.as-message,li.as-result-item{border:none}li.as-result-item.active{background:#e5e5e5;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;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 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 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:10000001;pointer-events:none}#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;letter-spacing:normal}.fl-builder-row-settings .fl-field-responsive-setting input[name=bg_position_custom_left],.fl-builder-row-settings .fl-field-responsive-setting input[name=bg_position_custom_right]{display:none!important}.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;-webkit-box-shadow:0 0 30px rgba(0,0,0,.3);box-shadow:0 0 40px rgba(0,0,0,.3);color:#666;font-size:13px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;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-edit .fl-builder-shortcode-mask-wrap{position:relative;pointer-events:none}.fl-builder-edit .fl-builder-shortcode-mask{bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fl-row-content.fl-row-full-width .fl-builder-shortcode-mask-wrap{overflow:hidden}.fl-row-content.fl-row-full-width .fl-builder-shortcode-mask{left:0;right:0}.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:flex;position:absolute;top:0;left:0;align-items: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--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:hover .search-clear{color:#888;background-color:#eff1f2;background:linear-gradient(to left,#dadfe5,#dadfe5 75%,rgba(218,223,229,0))}.fl-builder--search.has-text .search-clear{display:inline-block}.fl-builder--search.is-expanded{width:246px}.fl-builder--search.is-expanded input{display:inline-block}@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-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;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: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{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;padding-right: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--main-menu-panel-view-title button{float:right}.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: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;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--main-menu-panel-view[data-name=history] .fl-builder--menu-item,.fl-builder--main-menu-panel-view[data-name=history] .fl-builder--menu-item:focus{border:none!important;padding:0;margin-bottom:2px}.fl-history-list-item{border:1px solid transparent;border-radius:4px;padding:10px 12px 12px}.fl-history-list-item i.fa-check-circle{display:none}.fl-history-list-item[data-current="1"]{border-color:#d3dadf;display:flex;align-items:center}.fl-history-list-item[data-current="1"] .fl-history-list-item-label{width:100%}.fl-history-list-item[data-current="1"] i.fa-check-circle{display:block}.fl-builder-module-placeholder-message{border:1px dashed #ccc;overflow:hidden;padding:20px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.module-import-wrap{display:flex}.module-import-input{width:100%!important}.module-import-apply{height:35px;margin:1px 1px 1px 5px}.module-import-error{color:red!important;display:none;padding:5px 12px}.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-se{cursor:se-resize;width:12px;height:12px;right:-4px;bottom:-4px}.ui-resizable-sw{cursor:sw-resize;width:12px;height:12px;left:-4px;bottom:-4px}.ui-resizable-nw{cursor:nw-resize;width:12px;height:12px;left:-4px;top:-4px}.ui-resizable-ne{cursor:ne-resize;width:12px;height:12px;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;justify-content:center;align-items:center;background:rgba(50,50,50,.88);font-size:15px;line-height:1.3;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif!important;user-select:none}.fl-builder-ui-keyboard-shortcuts.is-showing{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:flex;flex-direction:row;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:flex;flex-direction:row;justify-content:center;padding:10px}.dismiss-shortcut-ui{padding:10px;border-radius:4px;background:#fff;color:#000;border:none;font-size:14px;border:2px solid #fff}.dismiss-shortcut-ui:hover{top:0;color:#000;background:#eef2f5;border:2px solid #eef2f5}.dismiss-shortcut-ui:focus{top:0;color:#000;background:#eef2f5;border:2px solid #eef2f5}.fl-lightbox .select2-container--default .selection .select2-selection--single{border-color:transparent!important;border-style:solid!important;border-width:2px!important;border-radius:4px!important;height:36px!important;box-shadow:0 2px 4px 0 rgba(0,0,0,.12);font-size:13px!important;line-height:15px!important;outline:0}.select2-dropdown{top:12px;border-color:transparent!important;border-style:solid!important;border-radius:4px!important;box-shadow:0 2px 4px 0 rgba(0,0,0,.12)}.fl-lightbox .select2-selection--single .select2-selection__rendered{line-height:32px!important;font-size:13px}.fl-lightbox .select2-selection--single .select2-selection__arrow{height:32px}.fl-builder-ui-skin--light .fl-lightbox .select2-selection__rendered{color:grey!important}.fl-builder-ui-skin--light .select2-dropdown{color:grey!important}.fl-builder-ui-skin--light .select2-search__field{color:grey!important}.fl-builder-ui-skin--light .select2-search__field::placeholder{color:grey!important}.fl-builder-ui-skin--light .select2-search__field::-webkit-input-placeholder{color:grey!important}.fl-builder-ui-skin--light .select2-search__field::-moz-placeholder{color:grey!important}.fl-builder-ui-skin--light .select2-search__field:-ms-input-placeholder{color:grey!important}.fl-builder-ui-skin--light .select2-search__field:-moz-placeholder{color:grey!important}.fl-builder-ui-skin--dark .fl-lightbox .select2-selection__rendered{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-dropdown{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field::placeholder{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field::-webkit-input-placeholder{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field::-moz-placeholder{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field:-ms-input-placeholder{color:#a7b1bb!important}.fl-builder-ui-skin--dark .select2-search__field:-moz-placeholder{color:#a7b1bb!important}.fl-diff td.diff-addedline,.fl-diff td.diff-context,.fl-diff td.diff-deletedline span{display:none}.fl-diff table.diff{width:100%}.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{color:#7d8690}.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:#1a1b22 url(../img/svg/select-arrow-down-alt2-light.svg) no-repeat center right 10px!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}.fl-builder-ui-skin--dark .fl-builder-panel-search-input input{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):not([class^=ace_]){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{color:#00a0d2!important;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,.fl-builder-ui-skin--dark .fl-color-picker-color.fl-color-picker-empty{background:#1a1b22!important}.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!important}.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-lightbox .select2-selection__rendered{background-color:#181b20!important}.fl-builder-ui-skin--dark .fl-lightbox .select2-container--default .selection .select2-selection--single{border-color:#181b20!important}.fl-builder-ui-skin--dark .select2-dropdown{background-color:#181b20!important}.fl-builder-ui-skin--dark .select2-search__field{background-color:#2c333a!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-field i.fl-field-responsive-toggle:hover{color:#a8b3bf}.fl-builder-ui-skin--dark .fl-builder--main-menu-panel-view-title{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:#131a22;border-top-color:#353c43}.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!important;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}
extensions/fl-builder-cache-helper/classes/class-fl-builder-cache-helper.php CHANGED
@@ -33,7 +33,7 @@ class Plugin {
33
 
34
  if ( $current !== $saved ) {
35
  \FLBuilderUtils::update_option( 'fl_site_url', base64_encode( $current ) );
36
- if ( '' !== $saved ) {
37
  \FLBuilderModel::delete_asset_cache_for_all_posts();
38
  if ( class_exists( '\FLCustomizer' ) && method_exists( '\FLCustomizer', 'clear_all_css_cache' ) ) {
39
  \FLCustomizer::clear_all_css_cache();
33
 
34
  if ( $current !== $saved ) {
35
  \FLBuilderUtils::update_option( 'fl_site_url', base64_encode( $current ) );
36
+ if ( '' !== $saved ) {
37
  \FLBuilderModel::delete_asset_cache_for_all_posts();
38
  if ( class_exists( '\FLCustomizer' ) && method_exists( '\FLCustomizer', 'clear_all_css_cache' ) ) {
39
  \FLCustomizer::clear_all_css_cache();
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.5.3.1
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.5.4.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
includes/column-css.php CHANGED
@@ -2,7 +2,7 @@
2
  .fl-node-<?php echo $col->node; ?> {
3
  color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->text_color ); ?>;
4
  }
5
- .fl-builder-content .fl-node-<?php echo $col->node; ?> *:not(input):not(textarea):not(select):not(a):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.fl-menu-mobile-toggle) {
6
  color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->text_color ); ?>;
7
  }
8
  <?php endif; ?>
2
  .fl-node-<?php echo $col->node; ?> {
3
  color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->text_color ); ?>;
4
  }
5
+ .fl-builder-content .fl-node-<?php echo $col->node; ?> *:not(span):not(input):not(textarea):not(select):not(a):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.fl-menu-mobile-toggle) {
6
  color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->text_color ); ?>;
7
  }
8
  <?php endif; ?>
includes/export.php CHANGED
@@ -260,6 +260,9 @@ function fl_export_wp( $post_ids = array() ) {
260
  if ( '_edit_lock' == $meta_key ) {
261
  $return_me = true;
262
  }
 
 
 
263
  return $return_me;
264
  }
265
  add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta', 10, 2 );
260
  if ( '_edit_lock' == $meta_key ) {
261
  $return_me = true;
262
  }
263
+ if ( false !== strpos( $meta_key, '_fl_builder_history' ) ) {
264
+ $return_me = true;
265
+ }
266
  return $return_me;
267
  }
268
  add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta', 10, 2 );
includes/global-settings.php CHANGED
@@ -185,7 +185,7 @@ FLBuilder::register_settings_form('global', array(
185
  ),
186
  'toggle' => array(
187
  '1' => array(
188
- 'fields' => array( 'auto_spacing', 'responsive_breakpoint', 'medium_breakpoint', 'responsive_col_max_width' ),
189
  ),
190
  ),
191
  ),
185
  ),
186
  'toggle' => array(
187
  '1' => array(
188
+ 'fields' => array( 'auto_spacing', 'responsive_breakpoint', 'medium_breakpoint', 'responsive_col_max_width', 'responsive_preview' ),
189
  ),
190
  ),
191
  ),
includes/ui-js-config.php CHANGED
@@ -30,6 +30,7 @@ echo 'FLBuilderConfig = ' . FLBuilderUtils::json_encode( apply_filt
30
  'postStatus' => get_post_status(),
31
  'postType' => get_post_type(),
32
  'services' => FLBuilderServices::get_services_data(),
 
33
  'simpleUi' => $simple_ui ? true : false,
34
  'upgradeUrl' => FLBuilderModel::get_upgrade_url( array(
35
  'utm_medium' => ( true === FL_BUILDER_LITE ? 'bb-lite' : 'bb-demo' ),
30
  'postStatus' => get_post_status(),
31
  'postType' => get_post_type(),
32
  'services' => FLBuilderServices::get_services_data(),
33
+ 'safemode' => isset( $_GET['safemode'] ) ? true : false,
34
  'simpleUi' => $simple_ui ? true : false,
35
  'upgradeUrl' => FLBuilderModel::get_upgrade_url( array(
36
  'utm_medium' => ( true === FL_BUILDER_LITE ? 'bb-lite' : 'bb-demo' ),
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.5.3.1',
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.5.4.2',
7
  'slug' => 'bb-plugin',
8
  'type' => 'plugin',
9
  ));
js/build/builder.bundle.js CHANGED
@@ -1933,8 +1933,14 @@ var createStoreHooks = function createStoreHooks(store) {
1933
  var parent = arguments.length > 1 ? arguments[1] : undefined;
1934
  var nodes = state.layout.present.nodes;
1935
 
1936
- if (undefined !== parent) {
1937
- nodes = getChildNodes(nodes, parent);
 
 
 
 
 
 
1938
  }
1939
 
1940
  return stripNodeSettings(nodes);
1933
  var parent = arguments.length > 1 ? arguments[1] : undefined;
1934
  var nodes = state.layout.present.nodes;
1935
 
1936
+ if (1 === Object.keys(nodes).length) {
1937
+ if (undefined !== parent && null !== parent) {
1938
+ nodes = getChildNodes(nodes, parent);
1939
+ }
1940
+ } else {
1941
+ if (undefined !== parent) {
1942
+ nodes = getChildNodes(nodes, parent);
1943
+ }
1944
  }
1945
 
1946
  return stripNodeSettings(nodes);
js/build/builder.bundle.min.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see builder.bundle.min.js.LICENSE.txt */
2
- (()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var l in n)r.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},856:function(e){e.exports=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,l=Object.seal,u=Object.create,c="undefined"!=typeof Reflect&&Reflect,s=c.apply,d=c.construct;s||(s=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),l||(l=function(e){return e}),d||(d=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var f=_(Array.prototype.forEach),p=_(Array.prototype.pop),m=_(Array.prototype.push),g=_(String.prototype.toLowerCase),y=_(String.prototype.match),v=_(String.prototype.replace),h=_(String.prototype.indexOf),b=_(String.prototype.trim),E=_(RegExp.prototype.test),O=w(TypeError);function _(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s(e,t,r)}}function w(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(e,n)}}function S(e,t){n&&n(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=g(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function C(e){var n=u(null),r=void 0;for(r in e)s(t,e,[r])&&(n[r]=e[r]);return n}function L(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var T=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),j=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=a(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),k=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=a(["#text"]),x=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),R=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=l(/\{\{[\s\S]*|[\s\S]*\}\}/gm),I=l(/<%[\s\S]*|[\s\S]*%>/gm),H=l(/^data-[\-\w.\u00B7-\uFFFF]/),U=l(/^aria-[\-\w]+$/),z=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=l(/^(?:\w+script|data):/i),W=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=l(/^html$/i),Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function V(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Q=function(){return"undefined"==typeof window?null:window},q=function(e,t){if("object"!==(void 0===e?"undefined":Z(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),t=function(e){return X(e)};if(t.version="2.3.6",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,l=e.Node,u=e.Element,c=e.NodeFilter,s=e.NamedNodeMap,d=void 0===s?e.NamedNodeMap||e.MozNamedAttrMap:s,_=e.HTMLFormElement,w=e.DOMParser,$=e.trustedTypes,K=u.prototype,J=L(K,"cloneNode"),ee=L(K,"nextSibling"),te=L(K,"childNodes"),ne=L(K,"parentNode");if("function"==typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=q($,n),ie=oe?oe.createHTML(""):"",ae=r,le=ae.implementation,ue=ae.createNodeIterator,ce=ae.createDocumentFragment,se=ae.getElementsByTagName,de=n.importNode,fe={};try{fe=C(r).documentMode?r.documentMode:{}}catch(e){}var pe={};t.isSupported="function"==typeof ne&&le&&void 0!==le.createHTMLDocument&&9!==fe;var me=B,ge=I,ye=H,ve=U,he=G,be=W,Ee=z,Oe=null,_e=S({},[].concat(V(T),V(N),V(j),V(A),V(P))),we=null,Se=S({},[].concat(V(x),V(R),V(M),V(F))),Ce=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Te=null,Ne=!0,je=!0,De=!1,Ae=!1,ke=!1,Pe=!1,xe=!1,Re=!1,Me=!1,Fe=!1,Be=!0,Ie=!0,He=!1,Ue={},ze=null,Ge=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,Ye=S({},["audio","video","img","source","image","track"]),Ze=null,Ve=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",qe="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml",$e=Xe,Ke=!1,Je=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":Z(e))||(e={}),e=C(e),Oe="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS):_e,we="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR):Se,Ze="ADD_URI_SAFE_ATTR"in e?S(C(Ve),e.ADD_URI_SAFE_ATTR):Ve,We="ADD_DATA_URI_TAGS"in e?S(C(Ye),e.ADD_DATA_URI_TAGS):Ye,ze="FORBID_CONTENTS"in e?S({},e.FORBID_CONTENTS):Ge,Le="FORBID_TAGS"in e?S({},e.FORBID_TAGS):{},Te="FORBID_ATTR"in e?S({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,je=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=e.SAFE_FOR_TEMPLATES||!1,ke=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,xe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,Ie=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,Ee=e.ALLOWED_URI_REGEXP||Ee,$e=e.NAMESPACE||Xe,e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Je=Je=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Je?function(e){return e}:g,Ae&&(je=!1),Me&&(Re=!0),Ue&&(Oe=S({},[].concat(V(P))),we=[],!0===Ue.html&&(S(Oe,T),S(we,x)),!0===Ue.svg&&(S(Oe,N),S(we,R),S(we,F)),!0===Ue.svgFilters&&(S(Oe,j),S(we,R),S(we,F)),!0===Ue.mathMl&&(S(Oe,A),S(we,M),S(we,F))),e.ADD_TAGS&&(Oe===_e&&(Oe=C(Oe)),S(Oe,e.ADD_TAGS)),e.ADD_ATTR&&(we===Se&&(we=C(we)),S(we,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&S(Ze,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ze===Ge&&(ze=C(ze)),S(ze,e.FORBID_CONTENTS)),Ie&&(Oe["#text"]=!0),ke&&S(Oe,["html","head","body"]),Oe.table&&(S(Oe,["tbody"]),delete Le.tbody),a&&a(e),rt=e)},lt=S({},["mi","mo","mn","ms","mtext"]),ut=S({},["foreignobject","desc","title","annotation-xml"]),ct=S({},N);S(ct,j),S(ct,D);var st=S({},A);S(st,k);var dt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});var n=g(e.tagName),r=g(t.tagName);if(e.namespaceURI===qe)return t.namespaceURI===Xe?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===r||lt[r]):Boolean(ct[n]);if(e.namespaceURI===Qe)return t.namespaceURI===Xe?"math"===n:t.namespaceURI===qe?"math"===n&&ut[r]:Boolean(st[n]);if(e.namespaceURI===Xe){if(t.namespaceURI===qe&&!ut[r])return!1;if(t.namespaceURI===Qe&&!lt[r])return!1;var o=S({},["title","style","font","a","script"]);return!st[n]&&(o[n]||!ct[n])}return!1},ft=function(e){m(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},pt=function(e,n){try{m(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){m(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!we[e])if(Re||Me)try{ft(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},mt=function(e){var t=void 0,n=void 0;if(xe)e="<remove></remove>"+e;else{var o=y(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=oe?oe.createHTML(e):e;if($e===Xe)try{t=(new w).parseFromString(i,Je)}catch(e){}if(!t||!t.documentElement){t=le.createDocument($e,"template",null);try{t.documentElement.innerHTML=Ke?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),$e===Xe?se.call(t,ke?"html":"body")[0]:ke?t.documentElement:a},gt=function(e){return ue.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof _&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(e){return"object"===(void 0===l?"undefined":Z(l))?e instanceof l:e&&"object"===(void 0===e?"undefined":Z(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ht=function(e,n,r){pe[e]&&f(pe[e],(function(e){e.call(t,n,r,rt)}))},bt=function(e){var n=void 0;if(ht("beforeSanitizeElements",e,null),yt(e))return ft(e),!0;if(y(e.nodeName,/[\u0080-\uFFFF]/))return ft(e),!0;var r=nt(e.nodeName);if(ht("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===r&&E(/<template/i,e.innerHTML))return ft(e),!0;if(!Oe[r]||Le[r]){if(!Le[r]&&Ot(r)){if(Ce.tagNameCheck instanceof RegExp&&E(Ce.tagNameCheck,r))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))return!1}if(Ie&&!ze[r]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(J(i[a],!0),ee(e))}return ft(e),!0}return e instanceof u&&!dt(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r||!E(/<\/no(script|embed)/i,e.innerHTML)?(Ae&&3===e.nodeType&&(n=e.textContent,n=v(n,me," "),n=v(n,ge," "),e.textContent!==n&&(m(t.removed,{element:e.cloneNode()}),e.textContent=n)),ht("afterSanitizeElements",e,null),!1):(ft(e),!0)},Et=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in r||n in ot))return!1;if(je&&!Te[t]&&E(ye,t));else if(Ne&&E(ve,t));else if(!we[t]||Te[t]){if(!(Ot(e)&&(Ce.tagNameCheck instanceof RegExp&&E(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&E(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&E(Ce.tagNameCheck,n)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(n))))return!1}else if(Ze[t]);else if(E(Ee,v(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(n,"data:")||!We[e])if(De&&!E(he,v(n,be,"")));else if(n)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},_t=function(e){var n=void 0,r=void 0,o=void 0,i=void 0;ht("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};for(i=a.length;i--;){var u=n=a[i],c=u.name,s=u.namespaceURI;if(r=b(n.value),o=nt(c),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,ht("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(pt(c,e),l.keepAttr))if(E(/\/>/i,r))pt(c,e);else{Ae&&(r=v(r,me," "),r=v(r,ge," "));var d=nt(e.nodeName);if(Et(d,o,r))try{s?e.setAttributeNS(s,c,r):e.setAttribute(c,r),p(t.removed)}catch(e){}}}ht("afterSanitizeAttributes",e,null)}},wt=function e(t){var n=void 0,r=gt(t);for(ht("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ht("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof o&&e(n.content),_t(n));ht("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,u=void 0,c=void 0,s=void 0,d=void 0;if((Ke=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!vt(r)){if("function"!=typeof r.toString)throw O("toString is not a function");if("string"!=typeof(r=r.toString()))throw O("dirty is not a string, aborting")}if(!t.isSupported){if("object"===Z(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(vt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Pe||at(i),t.removed=[],"string"==typeof r&&(He=!1),He){if(r.nodeName){var f=nt(r.nodeName);if(!Oe[f]||Le[f])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof l)1===(u=(a=mt("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?a=u:a.appendChild(u);else{if(!Re&&!Ae&&!ke&&-1===r.indexOf("<"))return oe&&Fe?oe.createHTML(r):r;if(!(a=mt(r)))return Re?null:Fe?ie:""}a&&xe&&ft(a.firstChild);for(var p=gt(He?r:a);c=p.nextNode();)3===c.nodeType&&c===s||bt(c)||(c.content instanceof o&&wt(c.content),_t(c),s=c);if(s=null,He)return r;if(Re){if(Me)for(d=ce.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return we.shadowroot&&(d=de.call(n,d,!0)),d}var m=ke?a.outerHTML:a.innerHTML;return ke&&Oe["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&E(Y,a.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m),Ae&&(m=v(m,me," "),m=v(m,ge," ")),oe&&Fe?oe.createHTML(m):m},t.setConfig=function(e){at(e),Pe=!0},t.clearConfig=function(){rt=null,Pe=!1},t.isValidAttribute=function(e,t,n){rt||at({});var r=nt(e),o=nt(t);return Et(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],m(pe[e],t))},t.removeHook=function(e){pe[e]&&p(pe[e])},t.removeHooks=function(e){pe[e]&&(pe[e]=[])},t.removeAllHooks=function(){pe={}},t}return X()}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{displayPanel:()=>L,hideCurrentPanel:()=>N,registerPanel:()=>C,setColorScheme:()=>D,setIsEditing:()=>j,setShouldShowShortcuts:()=>S,togglePanel:()=>T});var t={};n.r(t),n.d(t,{colorScheme:()=>B,currentPanel:()=>M,isEditing:()=>F,panels:()=>R,shouldShowShortcuts:()=>x});var r={};n.r(r),n.d(r,{after:()=>H,before:()=>I});var o={};n.r(o),n.d(o,{editing:()=>Re,layout:()=>xe,resizing:()=>Me});var i={};n.r(i),n.d(i,{addColumnGroup:()=>lt,addColumnTemplate:()=>ht,addColumns:()=>et,addModule:()=>Ke,addNodeTemplate:()=>pt,addRow:()=>ut,addRowTemplate:()=>bt,applyTemplate:()=>ft,cancelDisplaySettings:()=>kt,clearHistoryStates:()=>jt,copyColumn:()=>rt,copyModule:()=>Je,copyRow:()=>ct,deleteColumn:()=>it,deleteNode:()=>$e,deleteNodeTemplate:()=>gt,deleteUserTemplate:()=>vt,discardDraft:()=>Tt,displaySettings:()=>At,fetchLayout:()=>Et,insertFreeformNode:()=>Ge,insertNode:()=>ze,insertNodes:()=>We,moveColumn:()=>nt,moveNode:()=>Ze,redo:()=>Ue,renderHistoryState:()=>Dt,renderLayout:()=>_t,renderNode:()=>Ve,reorderColumn:()=>tt,reorderNode:()=>Ye,resetColWidths:()=>at,resetRowWidth:()=>dt,resizeColumn:()=>ot,resizeRowContent:()=>st,resizingComplete:()=>Pt,saveDraft:()=>Lt,saveGlobalSettings:()=>St,saveHistoryState:()=>Nt,saveLayout:()=>Ct,saveLayoutSettings:()=>wt,saveNodeTemplate:()=>mt,saveUserTemplateSettings:()=>yt,setLayout:()=>Ot,undo:()=>He,updateNode:()=>Qe,updateNodeSetting:()=>Xe,updateNodeSettings:()=>qe});var a={};n.r(a),n.d(a,{after:()=>Bt,before:()=>Ft});var l={};n.r(l),n.d(l,{getChildren:()=>$t,getLayoutActions:()=>Vt,getLayoutHooks:()=>Qt,getLayoutState:()=>Zt,getLayoutStore:()=>Yt,getNode:()=>Xt,getSystemActions:()=>Y,getSystemConfig:()=>V,getSystemSelectors:()=>Z,getSystemState:()=>W,getSystemStore:()=>G,nodeExists:()=>Kt,useLayoutState:()=>qt,useSystemState:()=>z});var u={};n.r(u),n.d(u,{copyNode:()=>Qn,deleteNode:()=>Vn,moveNode:()=>Xn,scrollToNode:()=>qn});var c={};n.r(c),n.d(c,{openSettings:()=>$n});var s={};n.r(s),n.d(s,{getActions:()=>tr,getConfig:()=>nr,getStrings:()=>rr});const d=React;var f=n.n(d);const p=ReactDOM,m=FL.vendors.BBAppCore;var g=(0,m.createStoreRegistry)(),y=g.registerStore,v=g.useStore,h=g.getStore,b=g.getDispatch,E=g.getSelectors;function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){return{type:"SET_SHOULD_SHOW_SHORTCUTS",value:e}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fl/untitled",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={label:"",root:null,render:function(){return null},className:null,routerProps:{},onHistoryChanged:function(){}};return{type:"REGISTER_PANEL",handle:e,options:_(_({},n),t)}},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:"SET_CURRENT_PANEL",name:e}},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:"TOGGLE_PANEL",name:e}},N=function(){return{type:"HIDE_CURRENT_PANEL"}},j=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"SET_IS_EDITING",value:e}},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return{type:"SET_COLOR_SCHEME",value:e}};function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SHOULD_SHOW_SHORTCUTS"===t.type?!!t.value:e},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"REGISTER_PANEL"===t.type?k(k({},e),{},P({},t.handle,t.options)):e},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CURRENT_PANEL":return t.name;case"HIDE_CURRENT_PANEL":return null;case"TOGGLE_PANEL":return t.name===e?null:t.name;default:return e}},F=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_IS_EDITING"===t.type?!!t.value:e},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",t=arguments.length>1?arguments[1]:void 0;return"SET_COLOR_SCHEME"===t.type?"dark"===t.value?"dark":"light":e},I={},H={TOGGLE_PANEL:function(e,t){var n=t.getState().currentPanel,r=document.querySelector("html");n&&FLBuilder._closePanel(),"assistant"===n?r.classList.add("fl-builder-assistant-visible"):r.classList.remove("fl-builder-assistant-visible")},HIDE_CURRENT_PANEL:function(){document.querySelector("html").classList.remove("fl-builder-assistant-visible")}},U="fl-builder/system";y(U,{actions:e,reducers:t,effects:r,state:{isEditing:!0,currentPanel:null,shouldShowShortcuts:!1,colorScheme:FLBuilderConfig.userSettings.skin,panels:{}}});var z=function(){return v(U)},G=function(){return h(U)},W=function(){return h(U).getState()},Y=function(){return b(U)},Z=function(){return E(U)},V=function(){return window.FLBuilderConfig};const Q=Redux;var q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.getState;return function(t){return function(r){var o=t(r),i=n();return void 0!==e[r.type]&&e[r.type](i,r),o}}}},X=function(e){var t=e.before,n=e.after;return function(e){return function(r){return function(o){t&&t[o.type]&&t[o.type](o,e);var i=r(o);return n&&n[o.type]&&n[o.type](o,e),i}}}};const $=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,o=r?r({name:e}):Q.compose;return o((0,Q.applyMiddleware)(q(n),X(t)))};function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re=function(e){var t={};return Object.values(e).map((function(e){var n=te({},e);delete n.settings,t[e.node]=n})),t},oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={},r=Object.values(e).filter((function(e){return t===e.parent}));return r.map((function(e){return n[e.node]=e})),n},ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.layout.present.nodes;return void 0===n[t]?{}:n[t].settings},ae=function(e,t){return Object.keys(e).length!==Object.keys(t).length||Object.values(e).some((function(e){var n=t[e.node];return void 0===e||void 0===n||(e.type!==n.type||e.parent!==n.parent||e.position!==n.position||e.global!==n.global)}))},le=function(e,t){return Object.keys(e).length!==Object.keys(t).length||Object.keys(e).some((function(n){return e[n]!==t[n]}))};const ue=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.layout.present.nodes;return void 0!==t&&(n=oe(n,t)),re(n)};return{useLayoutStore:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0},n=e.getState(),r=(0,d.useRef)(n),o=(0,d.useState)(n),i=K(o,2),a=i[0],l=i[1];return(0,d.useEffect)((function(){return l(e.getState()),e.subscribe((function(){var n=e.getState();t(r.current,n)&&l(te({},n)),r.current=n}))}),[]),a},useNodeSettings:function(t){var n=ie(e.getState(),t),r=(0,d.useRef)(n),o=K((0,d.useState)(n),2),i=o[0],a=o[1];return(0,d.useEffect)((function(){var n=ie(e.getState(),t);return le(n,r.current)&&a(n),r.current=n,e.subscribe((function(){var n=ie(e.getState(),t);le(n,r.current)&&a(n),r.current=n}))}),[t]),i},useNodesWithoutSettings:function(n){var r=t(e.getState(),n),o=(0,d.useRef)(r),i=K((0,d.useState)(r),2),a=i[0],l=i[1];return(0,d.useEffect)((function(){var r=t(e.getState(),n);return ae(r,o.current)&&l(r),o.current=r,e.subscribe((function(){var r=t(e.getState(),n);ae(r,o.current)&&l(r),o.current=r}))}),[]),a}}};function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fe={layout:{past:[],present:{attachments:[],nodes:{}},future:[]}},pe={state:{},reducers:{},actions:{},effects:{},tests:{}};const me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fl-builder/layout",n=se(se({},pe),e),r=se(se({},fe),n.state),o=(0,Q.combineReducers)(n.reducers),i=$(t,n.effects,n.tests),a=(0,Q.createStore)(o,r,i);return{store:a,actions:(0,Q.bindActionCreators)(se({},n.actions),a.dispatch),hooks:ue(a)}};const ge=function(e){var t={past:[],present:e(void 0,{}),future:[]};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=arguments.length>1?arguments[1]:void 0,o=n.past,i=void 0===o?[]:o,a=n.present,l=n.future,u=void 0===l?[]:l;return"RESIZE_COLUMN"===r.type?(r.persist,{past:i,present:e(a,r),future:u}):{past:i,present:e(a,r),future:u}}};function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be={node:"",type:"",parent:"",position:0,global:!1,settings:{}},Ee=function(e,t){return e.position>t.position?1:e.position<t.position?-1:0},Oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return void 0!==t[e]},_e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object.values(e).filter((function(e){return t===e.parent})).sort(Ee)},we=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ve(ve(ve({},be),e),t);return"module"===n.type&&void 0===n.settings.type&&(n.settings.type=e.settings.type),n},Se=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};if(void 0===r[e])return console.error("Undefined node",e),o;var i=_e(r,t).filter((function(t){return e!==t.node})),a=i.map((function(e){return e.node}));return a.splice(n,0,e),a.map((function(e,n){o[e]=we(r[e],{position:n,parent:t})})),o},Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ve(ve({},e),{},he({},t,we(e[t],n)));return Se(n.node,n.parent,n.position,r)},Le=function(e,t){var n={};if(void 0===t[e])return console.warn("Node to be deleted is undefined",e),t;var r=t[e].parent,o=t[e].type,i=ve({},t);delete i[e],"column"===o&&Ne(r,i)&&delete i[r],function(e,t){var n=[],r=ve({},t);Object.values(r).map((function(t){e===t.parent&&n.push(t.node)})),n.map((function(e){delete r[e]}))}(e,i);var a=_e(i,r);return a.map((function(e,t){if(e.position=t,"column"===e.type){var r=100/a.length;r=r.toPrecision(5),e.settings.size=r}n[e.node]=e})),ve({},i)},Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n={};return e.map((function(e){var r=Object.values(t).filter((function(t){return e===t.parent})),o=(100/r.length).toPrecision(5);r.map((function(e){n[e.node]=we(e,{settings:ve(ve({},e.settings),{},{size:o})})}))})),n},Ne=function(e,t){return 0===Object.values(t).filter((function(t){return t.parent===e})).length},je=function(e){void 0!==e&&(console.assert("node"in e,"Node has no id property"),console.assert("type"in e,"Node has no type property"),console.assert("parent"in e,"Node has no parent property"),console.assert("position"in e,"Node has no position property"),console.assert("settings"in e,"Node has no settings property"),console.assert("global"in e,"Node has no global property"),"module"===e.type&&console.assert("type"in e.settings,"Module settings should contain type property."),"row"!==e.type&&console.assert(null!==e.parent,"Only rows should have a null parent property"))},De=function(e){var t=function(e){var t=Object.keys(e);return Object.values(e).filter((function(e){return null!==e.parent&&!t.includes(e.node)}))}(e);console.assert(0===t.length,"There should be no orphaned nodes",t)};function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){Pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xe=ge((0,Q.combineReducers)({attachments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"SET_LAYOUT"===t.type&&void 0!==t.attachments?t.attachments:e},nodes:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_NODE":return ke(ke({},t),Ce(t,n.id,{node:n.id,parent:n.parent,type:n.nodeType,position:n.position,settings:n.settings,global:n.global}));case"INSERT_FREEFORM_NODE":return ke(ke({},t),Ce(t,n.id,n.node));case"INSERT_NODES":return ke(ke({},t),n.nodes);case"REORDER_NODE":case"REORDER_COLUMN":return ke(ke({},t),Se(n.id,t[n.id].parent,n.position,t));case"REPARENT_NODE":case"REPARENT_COLUMN":return ke(ke({},t),Se(n.id,n.parent,n.position,t));case"UPDATE_NODE":return ke(ke({},t),{},Pe({},n.id,we(t[n.id],n.node)));case"UPDATE_NODE_SETTING":return ke(ke({},t),{},Pe({},n.id,we(t[n.id],{settings:ke(ke({},t[n.id].settings),{},Pe({},n.key,n.value))})));case"UPDATE_NODE_SETTINGS":return void 0===t[n.id]?t:ke(ke({},t),{},Pe({},n.id,we(t[n.id],{settings:ke(ke(ke({},t[n.id].settings),n.settings),{},{type:"module"===t[n.id].type?t[n.id].settings.type:void 0})})));case"DELETE_NODE":case"DELETE_COLUMN":return Le(n.id,t);case"RESIZE_COLUMN":return ke(ke({},t),{},(Pe(e={},n.id,we(t[n.id],{settings:ke(ke({},t[n.id].settings),{},{size:n.width})})),Pe(e,n.siblingId,we(t[n.siblingId],{settings:ke(ke({},t[n.siblingId].settings),{},{size:n.siblingWidth})})),e));case"RESET_COLUMN_WIDTHS":return ke(ke({},t),Te(n.groupIds,t));case"RESIZE_ROW_CONTENT":return ke(ke({},t),{},Pe({},n.id,we(t[n.id],{settings:ke(ke({},t[n.id].settings),{},{max_content_width:n.width})})));case"RESET_ROW_WIDTH":return ke(ke({},t),{},Pe({},n.id,we(t[n.id],{settings:ke(ke({},t[n.id].settings),{},{max_content_width:""})})));case"ADD_COLUMN_TEMPLATE":case"ADD_ROW_TEMPLATE":return console.log(n.type,"Needs node reducer implementation?"),t;case"SET_LAYOUT":return n.nodes;default:return t}},globalSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SAVE_GLOBAL_SETTINGS"===t.type?t.settings:e}})),Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISPLAY_SETTINGS":return t.id;case"UPDATE_NODE_SETTINGS":case"CANCEL_DISPLAY_SETTINGS":return null;default:return e}},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESIZING_COMPLETE":return!1;case"RESIZE_ROW_CONTENT":return[t.id];case"RESIZE_COLUMN":return[t.id,t.siblingId];default:return e}};function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){Ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He=function(){return{type:"UNDO"}},Ue=function(){return{type:"REDO"}},ze=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length,l=new Array(a>6?a-6:0),u=6;u<a;u++)l[u-6]=arguments[u];return Be({type:"INSERT_NODE",id:e,parent:t,position:r,nodeType:n,settings:o,global:i},l)},Ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"INSERT_FREEFORM_NODE",id:e,node:t}},We=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"INSERT_NODES",nodes:e}},Ye=function(e,t){return{type:"REORDER_NODE",id:e,position:t}},Ze=function(e,t,n){return{type:"REPARENT_NODE",id:e,parent:t,position:n}},Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{type:"RENDER_NODE",id:e,callback:t}},Qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"UPDATE_NODE",id:e,node:t}},qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return{type:"UPDATE_NODE_SETTINGS",id:e,settings:t,callback:n}},Xe=function(e,t,n){return{type:"UPDATE_NODE_SETTING",id:e,key:t,value:n}},$e=function(e){return{type:"DELETE_NODE",id:e}},Ke=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{type:"ADD_MODULE",moduleType:e,parent:t,position:n,config:r}},Je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return{type:"COPY_MODULE",id:e,settings:t,callback:n}},et=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1-col",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return{type:"ADD_COLUMNS",id:e,insert:t,colType:n,nested:r,module:o}},tt=function(e,t){return{type:"REORDER_COLUMN",id:e,position:t}},nt=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return{type:"REPARENT_COLUMN",id:e,parent:t,position:n,resize:r}},rt=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};return{type:"COPY_COLUMN",id:e,settings:t,settingsId:n,callback:r}},ot=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return{type:"RESIZE_COLUMN",id:e,width:parseInt(t),siblingId:n,siblingWidth:parseInt(r),shouldPersist:o}},it=function(e,t){return{type:"DELETE_COLUMN",id:e,width:t}},at=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"RESET_COLUMN_WIDTHS",groupIds:e}},lt=function(e,t,n,r){return{type:"ADD_COLUMN_GROUP",id:e,cols:t,position:n,module:r}},ut=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return{type:"ADD_ROW",cols:e,position:t,module:n}},ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};return{type:"COPY_ROW",id:e,settings:t,settingsId:n,callback:r}},st=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"RESIZE_ROW_CONTENT",id:e,width:t,shouldPersist:n}},dt=function(e){return{type:"RESET_ROW_WIDTH",id:e}},ft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";return{type:"APPLY_TEMPLATE",id:e,append:t,templateType:n}},pt=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){};return{type:"ADD_NODE_TEMPLATE",nodeType:e,templateId:t,templateType:n,parent:r,position:o,callback:i}},mt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"SAVE_NODE_TEMPLATE",id:e,settings:t}},gt=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:"DELETE_NODE_TEMPLATE",id:e,global:t}},yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"SAVE_USER_TEMPLATE_SETTINGS",settings:e}},vt=function(e){return{type:"DELETE_USER_TEMPLATE",id:e}},ht=function(){return{type:"ADD_COLUMN_TEMPLATE"}},bt=function(){return{type:"ADD_ROW_TEMPLATE"}},Et=function(){return{type:"FETCH_LAYOUT"}},Ot=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{type:"SET_LAYOUT",nodes:e,attachments:t}},_t=function(){return{type:"RENDER_LAYOUT"}},wt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"SAVE_LAYOUT_SETTINGS",settings:e}},St=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"SAVE_GLOBAL_SETTINGS",settings:e}},Ct=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return{type:"SAVE_LAYOUT",shouldPublish:e,shouldExit:t,callback:n}},Lt=function(){return{type:"SAVE_DRAFT"}},Tt=function(){return{type:"DISCARD_DRAFT"}},Nt=function(e,t){return{type:"SAVE_HISTORY_STATE",label:e,moduleType:t}},jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:"CLEAR_HISTORY_STATES",postId:e,shouldExit:t}},Dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{type:"RENDER_HISTORY_STATE",position:e,callback:t}},At=function(e){return{type:"DISPLAY_SETTINGS",id:e}},kt=function(){return{type:"CANCEL_DISPLAY_SETTINGS"}},Pt=function(){return{type:"RESIZING_COMPLETE"}};function xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Mt=function(e,t){var n=FLBuilder._jsonParse(e),r=n.newNodes,o=void 0===r?{}:r,i=n.updatedNodes,a=void 0===i?{}:i;0<Object.keys(o).length&&t.dispatch(We(o)),Object.entries(a).map((function(e){var n=xt(e,2),r=n[0],o=n[1];t.dispatch(Qe(r,o))}))},Ft={},Bt={UNDO:function(){window.FLBuilderHistoryManager.renderState("prev")},REDO:function(){window.FLBuilderHistoryManager.renderState("next")},UPDATE_NODE_SETTINGS:function(e){var t=e.id,n=e.settings,r=e.callback;FLBuilder.ajax({action:"save_settings",node_id:t,settings:n},r)},REORDER_NODE:function(e,t){var n=e.id,r=e.position;(0,FL.Builder.__canvas.getActions().moveNode)(n,r),FLBuilder.ajax({action:"reorder_node",node_id:n,position:r},(function(e){Mt(e,t),FLBuilder._reorderNodeComplete(e)}))},REPARENT_NODE:function(e,t){var n=e.id,r=e.parent,o=e.position;(0,FL.Builder.__canvas.getActions().moveNode)(n,o,r),FLBuilder.ajax({action:"move_node",new_parent:r,node_id:n,position:o},(function(e){Mt(e,t),FLBuilder._moveNodeComplete(e)}))},RENDER_NODE:function(e){var t=e.id,n=e.callback;FLBuilder.ajax({action:"render_node",node_id:t},(function(e){var t=FLBuilder._jsonParse(e);FLBuilder._renderLayout(t,n)}))},DELETE_NODE:function(e){var t=e.id;FLBuilder.ajax({action:"delete_node",node_id:t})},ADD_MODULE:function(e,t){var n=e.moduleType,r=e.parent,o=e.position,i=e.config;FLBuilder.ajax({action:"render_new_module",parent_id:r,type:n,position:o,node_preview:i.nodePreview,widget:i.widget,alias:i.alias},(function(e){Mt(e,t),FLBuilder._addModuleComplete(e)}))},COPY_MODULE:function(e,t){var n=e.id,r=e.settings,o=e.callback;FLBuilder.ajax({action:"copy_module",node_id:n,settings:r},(function(e){Mt(e,t),o(e)}))},ADD_COLUMNS:function(e,t){var n=e.id,r=e.insert,o=e.colType,i=e.nested,a=e.module;FLBuilder.ajax({action:"render_new_columns",node_id:n,insert:r,type:o,nested:i,module:a},(function(e){Mt(e,t),FLBuilder._addColsComplete(e)}))},RESIZE_COLUMN:function(e,t){var n=e.id,r=e.width,o=e.siblingId,i=e.siblingWidth;e.shouldPersist&&(t.dispatch(Pt()),FLBuilder.ajax({action:"resize_cols",col_id:n,col_width:r,sibling_id:o,sibling_width:i},(function(e){return Mt(e,t)})))},RESET_COLUMN_WIDTHS:function(e){var t=e.groupIds;FLBuilder.ajax({action:"reset_col_widths",group_id:t},(function(){return FLBuilder.triggerHook("didResetColumnWidthsComplete")}))},DELETE_COLUMN:function(e){var t=e.id,n=e.width;FLBuilder.ajax({action:"delete_col",node_id:t,new_width:n})},REORDER_COLUMN:function(e){var t=e.id,n=e.position;(0,FL.Builder.__canvas.getActions().moveNode)(t,n),FLBuilder.ajax({action:"reorder_col",node_id:t,position:n},(function(){return FLBuilder.triggerHook("didMoveColumn")}))},REPARENT_COLUMN:function(e){var t=e.id,n=e.parent,r=e.position,o=e.resize;(0,FL.Builder.__canvas.getActions().moveNode)(t,r,n),FLBuilder.ajax({action:"move_col",node_id:t,new_parent:n,position:r,resize:o},(function(){return FLBuilder.triggerHook("didMoveColumn")}))},COPY_COLUMN:function(e,t){var n=e.id,r=e.settings,o=e.settingsId,i=e.callback;FLBuilder.ajax({action:"copy_col",node_id:n,settings:r,settings_id:o},(function(e){Mt(e,t),i(e)}))},ADD_COLUMN_GROUP:function(e,t){var n=e.id,r=e.cols,o=e.position,i=e.module;FLBuilder.ajax({action:"render_new_column_group",node_id:n,cols:r,position:o,module:i},(function(e){Mt(e,t),FLBuilder._addColGroupComplete(e)}))},ADD_ROW:function(e,t){var n=e.cols,r=e.position,o=e.module;FLBuilder.ajax({action:"render_new_row",cols:n,position:r,module:o},(function(e){Mt(e,t),FLBuilder._addRowComplete(e)}))},COPY_ROW:function(e,t){var n=e.id,r=e.settings,o=e.settingsId,i=e.callback;FLBuilder.ajax({action:"copy_row",node_id:n,settings:r,settings_id:o},(function(e){Mt(e,t),i(e)}))},RESIZE_ROW_CONTENT:function(e,t){var n=e.id,r=e.width;e.shouldPersist&&(FLBuilder.ajax({action:"resize_row_content",node:n,width:r}),t.dispatch(Pt()))},RESET_ROW_WIDTH:function(e){var t=e.id;FLBuilder.ajax({action:"resize_row_content",node:t,width:""})},APPLY_TEMPLATE:function(e,t){var n=e.id,r=e.append,o=e.templateType,i="core"===o?FLBuilder._applyTemplateComplete:FLBuilder._applyUserTemplateComplete;FLBuilder.ajax({action:"core"===o?"apply_template":"apply_user_template",template_id:n,append:r},(function(e){var n=FLBuilder._jsonParse(e);t.dispatch(Ot(n.newNodes,[])),i(e)}))},ADD_NODE_TEMPLATE:function(e,t){var n=e.nodeType,r=e.templateId,o=e.templateType,i=e.parent,a=e.position,l=e.callback,u="";switch(n){case"row":u="render_new_row_template";break;case"column":u="render_new_col_template";break;default:u="render_new_module"}FLBuilder.ajax({action:u,template_id:r,template_type:o,parent_id:i,position:a},(function(e){Mt(e,t),l(e)}))},SAVE_NODE_TEMPLATE:function(e,t){var n=e.id,r=e.settings;FLBuilder.ajax({action:"save_node_template",node_id:n,settings:r},(function(e){t.dispatch(Et()),FLBuilder._saveNodeTemplateComplete(e),FLBuilder._hideNodeLoading(n)}))},DELETE_NODE_TEMPLATE:function(e){var t=e.id,n=e.global;FLBuilder.ajax({action:"delete_node_template",template_id:t},(function(){n&&FLBuilder._updateLayout()}))},SAVE_USER_TEMPLATE_SETTINGS:function(e){var t=e.settings;FLBuilder.ajax({action:"save_user_template",settings:t},FLBuilder._saveUserTemplateSettingsComplete)},DELETE_USER_TEMPLATE:function(e){var t=e.id;FLBuilder.ajax({action:"delete_user_template",template_id:t})},RENDER_LAYOUT:function(){FLBuilder.ajax({action:"render_layout"},FLBuilder._renderLayout)},FETCH_LAYOUT:function(e,t){FLBuilder.ajax({action:"get_layout"},(function(e){var n=FLBuilder._jsonParse(e),r=n.nodes,o=n.attachments;t.dispatch(Ot(r,o))}))},SAVE_LAYOUT:function(e){var t=e.shouldPublish,n=e.shouldExit,r=e.callback;FLBuilder.ajax({action:"save_layout",publish:t,exit:n?1:0},r)},SAVE_DRAFT:function(){FLBuilder.ajax({action:"save_draft"},FLBuilder._exit)},DISCARD_DRAFT:function(){FLBuilder.ajax({action:"clear_draft_layout"},(function(){FLBuilder.triggerHook("didDiscardChanges"),FLBuilder._exit()}))},SAVE_LAYOUT_SETTINGS:function(e){var t=e.settings;FLBuilder.ajax({action:"save_layout_settings",settings:t},(function(){return FLBuilder._saveLayoutSettingsComplete(t)}))},SAVE_GLOBAL_SETTINGS:function(e){var t=e.settings;FLBuilder.ajax({action:"save_global_settings",settings:t},FLBuilder._saveGlobalSettingsComplete)},SAVE_HISTORY_STATE:function(e){var t=e.label,n=e.moduleType;FLBuilder.ajax({action:"save_history_state",label:t,module_type:n},(function(e){var t=FLBuilder._jsonParse(e);FLBuilderHistoryManager.states=t.states,FLBuilderHistoryManager.position=parseInt(t.position),FLBuilderHistoryManager.setupMainMenuData()}))},CLEAR_HISTORY_STATES:function(e){var t=e.postId,n=e.shouldExit;FLBuilder.ajax({action:"clear_history_states",post_id:t},(function(){n||FLBuilderHistoryManager.saveCurrentState("draft_created")}))},RENDER_HISTORY_STATE:function(e,t){var n=e.position,r=e.callback;FLBuilder.ajax({action:"render_history_state",position:n},(function(e){var n=FLBuilder._jsonParse(e),o=n.newNodes,i=n.config;t.dispatch(Ot(o,i.attachments)),r(e)}))},DISPLAY_SETTINGS:function(e,t){var n=e.id,r=t.getState().layout.present.nodes;if("global"!==n)if("layout"!==n){if(void 0!==r[n]){var o=r[n],i=o.type,a=o.settings,l=o.parent,u=o.global,c=o.template_id;switch(i){case"column-group":break;case"row":FLBuilder._showRowSettings(n,u);break;case"column":var s="column"!==FLBuilderConfig.userTemplateType&&void 0!==c;FLBuilder._showColSettings(n,u,s);break;default:FLBuilder._showModuleSettings({nodeId:n,parentId:l,type:a.type,global:u})}}}else FLBuilder._layoutSettingsClicked();else FLBuilder._globalSettingsClicked()}},It={SET_LAYOUT:function(e){!function(e){Object.values(e).map(je)}(e.layout.present.nodes)},INSERT_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(Oe(t.id,n),"Node should exist after insert."),je(n[t.id]),console.assert(n[t.id].position===t.position,"Node position should be consistent after insert."),De(n)},REORDER_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(Oe(t.id,n),"Node no longer exists after reorder."),je(n[t.id]);var r=n[t.id];console.assert(t.position===r.position,"Node position should match action.position")},REPARENT_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(Oe(t.id,n),"Node should not exist after reparent"),je(n[t.id]),console.assert(t.parent===n[t.id].parent,"Node should have correct parent after reparent")},DELETE_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(!Oe(t.id,n),"Node should not exist after delete"),De(n)},COPY_MODULE:function(e,t){var n=e.layout.present.nodes,r=Oe(t.id,n);console.assert(r,"Node no longer exists after duplicate."),r&&je(n[t.id])},DELETE_COLUMN:function(e){var t=e.layout.present.nodes;De(t)},REPARENT_COLUMN:function(){console.warn("REPARENT_COLUMN needs a test.")},RESET_COLUMN_WIDTHS:function(e,t){var n=e.layout.present.nodes;t.groupIds.map((function(e){var t=_e(n,e),r=100/t.length,o=t.every((function(e){return e.settings.size===r.toPrecision(5)}));console.assert(o,"Column sizes should match after reset")}))}};const Ht=It;var Ut=me({state:{layout:{present:{nodes:{},globalSettings:FLBuilderConfig.global}}},reducers:o,effects:a,actions:i,tests:Ht}),zt=Ut.store,Gt=Ut.actions,Wt=Ut.hooks,Yt=function(){return zt},Zt=function(){return zt.getState()},Vt=function(){return Gt},Qt=function(){return Wt},qt=Wt.useLayoutStore,Xt=function(e){var t=Zt().layout.present.nodes;return e&&e in t?t[e]:t},$t=function(e){var t=Zt().layout.present.nodes;return Object.values(t).filter((function(t){return e===t.parent}))},Kt=function(e){return"undefined"!==Zt().layout.present.nodes[e]};zt.dispatch(Et());var Jt=n(184),en=n.n(Jt),tn={},nn=(0,d.createContext)(tn),rn=function(){return(0,d.useContext)(nn)};const on=FL.vendors.BBFluid;var an=["onClick","label"];function ln(){return ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ln.apply(this,arguments)}function un(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const dn=function(e){var t=e.x,n=e.y,r=e.items,o=void 0===r?{}:r,i=e.clear,a=void 0===i?function(){}:i,l=window.innerWidth-190,u={};return Object.entries(o).map((function(e){var t=cn(e,2),n=t[0],r=t[1];!1!==r.isEnabled&&(u[n]=r)})),f().createElement("div",{className:"fl-builder-context-menu",style:{top:n,left:t<l?t:l,width:180}},f().createElement("ul",null,Object.keys(u).map((function(e){var t=o[e],n=t.onClick,r=t.label,i=un(t,an);return f().createElement("li",{key:e},f().createElement(on.Button,ln({onClick:function(e){n(e),a(),e.stopPropagation()},size:"sm"},i),r))}))))};function fn(){return fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fn.apply(this,arguments)}function pn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gn=function(e){var t=e.children,n=pn((0,d.useState)(!1),2),r=n[0],o=n[1],i=function(){return o(!1)},a={setContextMenu:o,clearContextMenu:i,showContextMenu:!1!==r,contextMenu:r};return f().createElement(nn.Provider,{value:a},f().createElement(yn,null),t,!1!==r&&f().createElement(dn,fn({},r,{clear:i})))},yn=function(){var e=rn().clearContextMenu,t=function(t){document.querySelector(".fl-builder-context-menu")&&!t.target.closest(".fl-builder-context-menu")&&(e(),t.stopPropagation())},n=function(){document.querySelector(".fl-builder-context-menu")&&e()};return(0,d.useEffect)((function(){return window.addEventListener("click",t,{capture:!0}),window.addEventListener("scroll",n,{capture:!0}),function(){window.removeEventListener("click",t,{capture:!0}),window.removeEventListener("scroll",n,{capture:!0})}}),[]),null};function vn(e){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vn(e)}function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function En(e,t,n){return t&&bn(e.prototype,t),n&&bn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function On(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_n(e,t)}function _n(e,t){return _n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_n(e,t)}function wn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ln(e);if(t){var o=Ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sn(this,n)}}function Sn(e,t){if(t&&("object"===vn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Cn(e)}function Cn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ln(e){return Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ln(e)}var Tn=FLBuilderConfig.lite,Nn=function(e){var t,n={__html:e.children},r=new Date(e.date).toDateString();if("string"==typeof e.url&&""!==e.url){var o=Tn?e.url+"?utm_medium=bb-lite&utm_source=builder-ui&utm_campaign=notification-center":e.url+"?utm_medium=bb-pro&utm_source=builder-ui&utm_campaign=notification-center";t=f().createElement("a",{className:"fl-builder-ui-post",href:o,target:"_blank",rel:"noopener noreferrer"},f().createElement("div",{className:"fl-builder-ui-post-date"},r),f().createElement("div",{className:"fl-builder-ui-post-title"},e.title),f().createElement("div",{className:"fl-builder-ui-post-content",dangerouslySetInnerHTML:n}))}else t=f().createElement("span",{className:"fl-builder-ui-post"},f().createElement("div",{className:"fl-builder-ui-post-date"},r),f().createElement("div",{className:"fl-builder-ui-post-title"},e.title),f().createElement("div",{className:"fl-builder-ui-post-content",dangerouslySetInnerHTML:n}));return t},jn=function(e){On(n,e);var t=wn(n);function n(){return hn(this,n),t.apply(this,arguments)}return En(n,[{key:"getPosts",value:function(e){var t,n,r=FLBuilderStrings.notifications;return 0<e.length?(n=e.map((function(e){return f().createElement(Nn,{key:e.id,title:(t=e.title.rendered,f().createElement("div",{dangerouslySetInnerHTML:{__html:t}})),date:e.date,url:e.meta._fl_notification[0]},e.content.rendered);var t})),t=f().createElement(f().Fragment,null,n)):t=f().createElement("div",{className:"fl-panel-no-message"},r.none),t}},{key:"componentDidMount",value:function(){FLBuilder._initScrollbars()}},{key:"componentDidUpdate",value:function(){FLBuilder._initScrollbars()}},{key:"render",value:function(){var e=this.getPosts(this.props.posts),t=FLBuilderStrings.notifications;return f().createElement("div",{className:"fl-notifications-panel"},f().createElement("div",{className:"fl-panel-title"},t.title),f().createElement("div",{className:"fl-nanoscroller",ref:this.setupScroller},f().createElement("div",{className:"fl-nanoscroller-content"},e)))}}]),n}(d.Component),Dn=function(e){On(n,e);var t=wn(n);function n(e){var r;hn(this,n),r=t.call(this,e);var o={},i=FLBuilderConfig.notifications.data;try{o=JSON.parse(i)}catch(e){o={}}return r.state={shouldShowNotifications:!1,posts:o},FLBuilder.addHook("toggleNotifications",r.onToggleNotifications.bind(Cn(r))),r}return En(n,[{key:"onToggleNotifications",value:function(){var e=Y().hideCurrentPanel;this.setState({shouldShowNotifications:!this.state.shouldShowNotifications}),e(),!0===this.state.shouldShowNotifications&&FLBuilder.triggerHook("notificationsLoaded")}},{key:"render",value:function(){var e=this.state,t=e.shouldShowNotifications,n=e.posts;return t&&f().createElement(jn,{posts:n})}}]),n}(d.Component);function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(e)}function kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pn(e,t){return Pn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pn(e,t)}function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mn(e);if(t){var o=Mn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rn(this,n)}}function Rn(e,t){if(t&&("object"===An(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mn(e){return Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mn(e)}var Fn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pn(e,t)}(i,e);var t,n,r,o=xn(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=(t=o.call(this,e)).props.postId;return t.layoutClass=".fl-builder-content-".concat(n||FLBuilderConfig.postId),t}return t=i,n=[{key:"componentDidMount",value:function(){this.setupHooks=this.setupHooks.bind(this),this.hooked=!1,jQuery(document).on("tinymce-editor-init",this.setupHooks),this.setupHooks()}},{key:"setupHooks",value:function(){if(!("ontouchstart"in document)&&window.tinymce&&!this.hooked&&FLBuilderConfig.inlineEnabled){var e=this.initEditables.bind(this),t=this.refreshEditables.bind(this),n=this.destroyAllEditables.bind(this),r=this.destroyLoadingEditables.bind(this);FLBuilder&&(FLBuilder.addHook("settingsConfigLoaded",e),FLBuilder.addHook("restartEditingSession",e),FLBuilder.addHook("endEditingSession",n),FLBuilder.addHook("didStartNodeLoading",r),FLBuilder.addHook("didRenderLayoutComplete",t),FLBuilder.addHook("didDeleteRow",t),FLBuilder.addHook("didDeleteColumn",t),FLBuilder.addHook("didDeleteModule",t)),this.initEditables(),this.hooked=!0}}},{key:"initEditables",value:function(){var e=this,t=FLBuilderSettingsConfig.editables,n=jQuery(this.layoutClass);if(n.length)for(var r in t){var o='.fl-module[data-type="'.concat(r,'"]:not(.fl-editable):not(.fl-node-global)');n.find(o).each((function(t,n){(n=jQuery(n)).addClass("fl-editable"),n.delegate(".fl-block-overlay","click.fl-inline-editing-init",(function(t){return e.initEditable(t,n)}))}))}}},{key:"initEditable",value:function(e,t){var n=this,r=FLBuilder.preview;r&&t.parents(".fl-node-".concat(r.nodeId)).length&&r._settingsHaveChanged()||(this.setupEditable(t,(function(){n.onModuleOverlayClick(e)})),t.undelegate(".fl-block-overlay","click.fl-inline-editing-init"))}},{key:"setupEditable",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=e.data("node"),o=FLBuilderSettingsConfig.nodes[r];if(void 0===o)return!1;var i=e.data("type"),a=FLBuilderSettingsConfig.editables[i],l=".fl-node-".concat(r," "),u="fl-inline-editor-".concat(r),c=jQuery('<div id="'.concat(u,'" class="fl-inline-editor"></div>')),s=jQuery(".fl-builder-settings[data-node=".concat(r,"]")),d=o.connections;e.append(c),e.on("click",".fl-block-overlay",this.onModuleOverlayClick.bind(this)),e.on("mouseleave",this.onModuleMouseleave.bind(this));var f=function(e){var r=a[e],o=FLBuilderPreview.getFormattedSelector(l,r.selector),i=jQuery(o),c=i.html(),f=s.find("#fl-field-".concat(e," .fl-field-connection-value"));return i.length?f.length&&""!==f.val()||!f.length&&d&&d[e]?"continue":(i.hasClass("mce-content-body")?tinymce.execCommand("mceRemoveEditor",!0,i.attr("id")):(i.data("field",r.field),i.on("drop",t.onEditorDrop.bind(t))),void tinymce.init({selector:o,inline:!0,menubar:!1,paste_as_text:!0,relative_urls:!1,convert_urls:!1,skin:!FLBuilder&&"lightgray",skin_url:!FLBuilder&&"".concat(tinyMCEPreInit.baseURL,"/skins/lightgray/"),theme:"modern",theme_url:"".concat(tinyMCEPreInit.baseURL,"/themes/modern/"),fixed_toolbar_container:"#".concat(u),plugins:t.getEditorPluginConfig(r.field.type),toolbar:"string"==typeof r.field.toolbar?r.field.toolbar:t.getEditorToolbarConfig(r.field.type),init_instance_callback:function(e){t.onEditorInit(e),i.html(c),n()}})):"continue"};for(var p in a)f(p)}},{key:"getEditorPluginConfig",value:function(e){return"editor"===e?"wordpress, wplink, lists, paste":"paste"}},{key:"getEditorToolbarConfig",value:function(e){switch(e){case"editor":return"bold italic strikethrough link underline | alignleft aligncenter alignright";case"unit":return!1;default:return"bold italic strikethrough underline"}}},{key:"destroyEditables",value:function(e){var t=e.find(".mce-content-body"),n=e.find(".fl-inline-editor"),r=jQuery(".wplink-autocomplete, .ui-helper-hidden-accessible");t.removeAttr("contenteditable"),e.undelegate(".fl-block-overlay","click"),e.off("mouseleave"),e.removeClass("fl-editable"),n.remove(),r.remove()}},{key:"destroyAllEditables",value:function(){var e=jQuery(this.layoutClass).find(".fl-editable");this.destroyEditables(e)}},{key:"destroyLoadingEditables",value:function(e,t){var n=jQuery(t);n.hasClass("fl-module")||(n=n.find(".fl-module")),this.destroyEditables(n)}},{key:"refreshEditables",value:function(){this.initEditables(),tinymce.editors.map((function(e){e.inline&&!jQuery("#".concat(e.id)).length&&setTimeout((function(){return tinymce.execCommand("mceRemoveEditor",!0,e.id)}),1)}))}},{key:"getEditorEventVars",value:function(e){var t=jQuery(e).closest(".mce-content-body"),n=tinymce.get(t.attr("id")),r=t.data("field"),o=t.closest(".fl-module"),i=o.data("node");return{editable:t,module:o,editor:n,field:r,nodeId:i}}},{key:"onEditorInit",value:function(e){e.on("change",this.onEditorChange.bind(this)),e.on("keyup",this.onEditorChange.bind(this)),e.on("undo",this.onEditorChange.bind(this)),e.on("redo",this.onEditorChange.bind(this)),e.on("focus",this.onEditorFocus.bind(this)),e.on("blur",this.onEditorBlur.bind(this)),e.on("mousedown",this.onEditorMousedown.bind(this))}},{key:"onEditorChange",value:function(e){var t=e.target.bodyElement?e.target.bodyElement:e.target,n=this.getEditorEventVars(t),r=n.editor,o=n.field,i=n.nodeId,a=jQuery('.fl-builder-settings[data-node="'.concat(i,'"]')),l=r.getContent();if(a.length&&o)if("editor"===o.type){var u=a.find("#fl-field-".concat(o.name," textarea.wp-editor-area")),c=u.attr("id");u.closest(".tmce-active").length?tinymce.get(c).setContent(l):u.val(l)}else{var s=document.createElement("textarea");s.innerHTML=l,a.find('[name="'.concat(o.name,'"]')).val(s.value)}}},{key:"onEditorFocus",value:function(e){var t=this.getEditorEventVars(e.target.bodyElement),n=t.editable,r=t.editor,o=t.module,i=t.field,a=t.nodeId,l=o.find(".fl-inline-editor"),u=this.getSettingHTML(a,i);this.matchHTML(r.getContent(),u)||(n.data("original",{settingHTML:u,editableHTML:n.html()}),n.css("min-height",n.height()),r.setContent(u),r.selection.select(r.getBody(),!0),r.selection.collapse(!1)),r.settings.toolbar?l.removeClass("fl-inline-editor-no-toolbar"):l.addClass("fl-inline-editor-no-toolbar"),o.addClass("fl-editable-focused"),this.showEditorOverlay(o),this.showModuleSettings(o)}},{key:"onEditorBlur",value:function(e){var t=this.getEditorEventVars(e.target.bodyElement),n=t.editable,r=t.editor,o=t.module,i=o.find(".fl-inline-editor"),a=n.data("original");i.removeClass("fl-inline-editor-no-toolbar"),o.removeClass("fl-editable-focused"),a&&this.matchHTML(r.getContent(),a.settingHTML)&&(n.html(a.editableHTML),n.css("min-height",""))}},{key:"onEditorMousedown",value:function(e){var t=this.getEditorEventVars(e.target).module;this.showEditorOverlay(t)}},{key:"onEditorDrop",value:function(e){return e.preventDefault(),!1}},{key:"onModuleOverlayClick",value:function(e){var t=jQuery(e.target).closest(".fl-block-overlay-actions"),n=jQuery(e.currentTarget).closest(".fl-module"),r=n.find(".mce-content-body").first().attr("id");t.length||FLBuilder._colResizing||r&&(tinymce.get(r).focus(),n.addClass("fl-editable-focused"))}},{key:"onModuleMouseleave",value:function(){jQuery(".mce-inline-toolbar-grp:visible, .mce-floatpanel:visible").length||(this.hideEditorOverlays(),this.showNodeOverlays())}},{key:"showEditorOverlay",value:function(e){var t=e.find(".fl-inline-editor");this.hideNodeOverlays(),this.hideEditorOverlays(),t.show(),jQuery(".fl-inline-editor-active-toolbar").removeClass("fl-inline-editor-active-toolbar"),t.find("> .mce-panel:visible").addClass("fl-inline-editor-active-toolbar")}},{key:"hideEditorOverlays",value:function(){jQuery(".fl-inline-editor, .mce-floatpanel").hide()}},{key:"showNodeOverlays",value:function(){jQuery(".fl-block-overlay").show()}},{key:"hideNodeOverlays",value:function(){jQuery(".fl-block-overlay").hide()}},{key:"showModuleSettings",value:function(e){var t=e.data("type"),n=e.data("node"),r=e.closest(".fl-col").data("node"),o=e.hasClass("fl-node-global");jQuery('.fl-builder-settings[data-node="'.concat(n,'"]')).length||FLBuilder._showModuleSettings({type:t,nodeId:n,parentId:r,global:o})}},{key:"getSettingValue",value:function(e,t){var n=jQuery('.fl-builder-settings[data-node="'.concat(e,'"]'));return(n.length?FLBuilder._getSettings(n):FLBuilderSettingsConfig.nodes[e])[t]}},{key:"getSettingHTML",value:function(e,t){var n=this.getSettingValue(e,t.name);return"editor"===t.type&&""!==n?wp.editor.autop(n):n}},{key:"matchHTML",value:function(e,t){return this.cleanHTML(e)===this.cleanHTML(t)}},{key:"cleanHTML",value:function(e){return jQuery("<div>".concat(e,"</div>")).html().trim().replace(/(\r\n|\n|\r)/gm,"")}},{key:"render",value:function(){return null}}],n&&kn(t.prototype,n),r&&kn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);const Bn=Fn;var In=function(){return f().createElement("svg",{id:"fl-symbol-container",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f().createElement("symbol",{id:"fl-down-caret",viewBox:"0 0 11 6"},f().createElement("polygon",{points:"0 0 2.05697559 0 5.49235478 3.74058411 8.93443824 0 11 0 5.5 6"})))},Hn=function(){};Hn.Close=function(){return f().createElement("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f().createElement("g",{stroke:"currentColor",strokeWidth:"2",fill:"none",fillRule:"evenodd",strokeLinecap:"round"},f().createElement("path",{d:"M13,1 L1,13"}),f().createElement("path",{d:"M1,1 L13,13"})))};var Un=["className","children","title","actions","showCloseButton","onClose"];function zn(){return zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zn.apply(this,arguments)}function Gn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wn=function(e){var t=e.className,n=e.children,r=e.title,o=e.actions,i=e.showCloseButton,a=void 0===i||i,l=e.onClose,u=void 0===l?function(){}:l,c=Gn(e,Un),s=en()({"fl-ui-panel-area":!0},t),d=function(){return o||a?f().createElement("div",{className:"fl-ui-panel-trailing-actions"},o,f().createElement("button",{onClick:u,className:"fl-ui-button"},f().createElement(Hn.Close,null))):null};return f().createElement("div",{className:s,onClick:u},f().createElement("div",zn({className:"fl-ui-panel"},c,{onClick:function(e){return e.stopPropagation()}}),f().createElement("div",{className:"fl-ui-panel-topbar"},r&&f().createElement("div",{className:"fl-ui-panel-title"},r),f().createElement(d,null)),f().createElement("div",{className:"fl-ui-panel-content"},n)))},Yn=function(e){var t=e.shortcuts;return 0===Object.keys(t).length?null:f().createElement("ul",{className:"fl-ui-shortcut-list"},Object.values(t).map((function(e,t){var n=e.label,r={__html:e.keyLabel};return f().createElement("li",{key:t},f().createElement("span",null,n),f().createElement("span",{className:"fl-ui-shortcut-item-keycode",dangerouslySetInnerHTML:r}))})))};const Zn=function(){var e=Y().setShouldShowShortcuts;return f().createElement(Wn,{title:"Keyboard Shortcuts",onClose:function(){return e(!1)},className:"fl-ui-help",style:{width:360,maxWidth:"95vw"}},f().createElement(Yn,{shortcuts:FLBuilderConfig.keyboardShortcuts}))};wp.i18n;var Vn=function(e){var t=Vt().deleteNode;if(e){var n=!0,r=Xt(e);if(FLBuilder._needsDeleteConfirmation(r)){var o=function(e){var t=window.FLBuilderStrings,n=t.deleteRowMessage,r=t.deleteColumnMessage,o=t.deleteModuleMessage;switch(e){case"row":return n;case"column":return r;default:return o}}(r.type);n=confirm(o)}if(n){var i=FLBuilder._getJQueryElement(e);if(!i.length&&Kt(e))t(e);else if("module"===r.type)FLBuilder._deleteModule(i);else if("column"===r.type){var a=FLBuilder._getColToDelete(i);FLBuilder._deleteCol(a)}else"row"===r.type&&FLBuilder._deleteRow(i);FLBuilder._highlightEmptyCols(),FLBuilder._resizeLayout(),FLBuilder._removeAllOverlays()}}},Qn=function(e){if(e){var t=Xt(e);t&&void 0!==t.type&&("module"===t.type?FLBuilder._copyModule(e):"column"===t.type?FLBuilder._copyColumn(e):"row"===t.type&&FLBuilder._copyRow(e))}},qn=function(e){var t=document.querySelector("".concat(FLBuilder._contentClass,' [data-node="').concat(e,'"]'));t&&t.scrollIntoView({behavior:"smooth",block:"center"})},Xn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=Vt(),i=o.reorderNode,a=o.moveNode,l=o.reorderColumn,u=o.moveColumn,c=Xt(e),s=c.type,d=c.parent,f=c.position,p="column"===s;if(n===d||null===n){if(t===f)return;p?l(e,t):i(e,t)}else p?u(e,n,t,r):a(e,n,t)},$n=function(e){var t=Vt().displaySettings,n=Y().hideCurrentPanel;t(e),document.body.classList.contains("fl-builder-ui-is-pinned-right")&&n()};function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tr=function(){var e=Y();return Jn(Jn(Jn({},{registerPanel:e.registerPanel,displayPanel:e.displayPanel,togglePanel:e.togglePanel}),u),c)},nr=function(){return window.FLBuilderConfig},rr=function(){return window.FLBuilderStrings},or=(0,d.createContext)({});or.use=function(){return(0,d.useContext)(or)};const ir=or;var ar=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("rect",{x:"2.5",y:"2.5",width:"11",height:"11",rx:"1.5",stroke:"currentColor"}))},lr=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("rect",{x:"9.5",y:"13.5",width:"11",height:"4",rx:"0.5",transform:"rotate(-90 9.5 13.5)",stroke:"currentColor"}),f().createElement("rect",{x:"2.5",y:"13.5",width:"11",height:"4",rx:"0.5",transform:"rotate(-90 2.5 13.5)",stroke:"currentColor"}))},ur=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("rect",{x:"2.5",y:"9.5",width:"11",height:"4",rx:"0.5",stroke:"currentColor"}),f().createElement("rect",{x:"2.5",y:"2.5",width:"11",height:"4",rx:"0.5",stroke:"currentColor"}))},cr=function(){return f().createElement("svg",{className:"svg",width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},f().createElement("path",{d:"M12 6c0 1.105-.895 2-2 2-1.105 0-2-.895-2-2 0-1.105.895-2 2-2 1.105 0 2 .895 2 2zm-1 0c0 .552-.448 1-1 1-.552 0-1-.448-1-1 0-.552.448-1 1-1 .552 0 1 .448 1 1zM3 2c-.552 0-1 .448-1 1v10c0 .552.448 1 1 1h10c.552 0 1-.448 1-1V3c0-.552-.448-1-1-1H3zm10 1H3v6.293l2.5-2.5L11.707 13H13V3zM3 13v-2.293l2.5-2.5L10.293 13H3z",fillRule:"evenodd",fillOpacity:"1",fill:"currentCOlor",stroke:"none"}))},sr=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("path",{d:"M3.48254 7.83023L3.05006 9.22531H5.78441L5.35194 7.83023C5.19383 7.31871 5.03572 6.81183 4.87761 6.3096C4.72881 5.79807 4.58465 5.27724 4.44514 4.74711H4.38934C4.24053 5.27724 4.09172 5.79807 3.94291 6.3096C3.7941 6.81183 3.64065 7.31871 3.48254 7.83023ZM0.692383 12.9502L3.7755 3.79846H5.08688L8.17 12.9502H6.94233L6.07738 10.16H2.7571L1.8782 12.9502H0.692383Z",fill:"currentColor"}),f().createElement("path",{d:"M11.5546 13.1176C11.2384 13.1176 10.9407 13.0711 10.6617 12.9781C10.3827 12.8944 10.1363 12.7735 9.92234 12.6153C9.71773 12.4479 9.55497 12.248 9.43407 12.0155C9.31316 11.7737 9.25271 11.4993 9.25271 11.1924C9.25271 10.811 9.34106 10.4809 9.51777 10.2019C9.70378 9.91355 9.9921 9.66709 10.3827 9.46247C10.7826 9.25786 11.2942 9.09045 11.9173 8.96025C12.5404 8.83004 13.2891 8.72773 14.1634 8.65333C14.1541 8.42082 14.1169 8.20225 14.0518 7.99764C13.9867 7.79303 13.8844 7.61632 13.7449 7.46751C13.6053 7.30941 13.4193 7.18385 13.1868 7.09084C12.9636 6.99784 12.6892 6.95134 12.3637 6.95134C11.9173 6.95134 11.4895 7.03969 11.0803 7.2164C10.671 7.38381 10.3083 7.56517 9.9921 7.76048L9.54567 6.97924C9.71308 6.86763 9.90839 6.75603 10.1316 6.64442C10.3641 6.52351 10.6059 6.41656 10.857 6.32355C11.1175 6.23055 11.3918 6.15614 11.6801 6.10034C11.9685 6.03523 12.2614 6.00268 12.559 6.00268C13.4891 6.00268 14.1773 6.25845 14.6238 6.76998C15.0795 7.2722 15.3073 7.94649 15.3073 8.79284V12.9502H14.3726L14.275 12.0294H14.2331C13.8518 12.327 13.4286 12.5828 12.9636 12.7967C12.5079 13.0106 12.0382 13.1176 11.5546 13.1176ZM11.8615 12.1968C12.2521 12.1968 12.6334 12.1131 13.0055 11.9457C13.3868 11.769 13.7728 11.5179 14.1634 11.1924V9.40667C13.4379 9.46248 12.8288 9.54153 12.3358 9.64383C11.8522 9.74614 11.4616 9.8717 11.164 10.0205C10.8756 10.16 10.671 10.3228 10.5501 10.5088C10.4292 10.6855 10.3688 10.8855 10.3688 11.1087C10.3688 11.304 10.4106 11.4714 10.4943 11.6109C10.578 11.7411 10.685 11.8527 10.8152 11.9457C10.9547 12.0294 11.1128 12.0945 11.2895 12.141C11.4755 12.1782 11.6662 12.1968 11.8615 12.1968Z",fill:"currentColor"}))},dr=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("path",{d:"M2.375 15.0203H13.625C14.9067 15.0203 15.7271 14.0754 15.7271 12.9109C15.7271 12.5593 15.6392 12.2004 15.4487 11.8708L9.80908 2.04175C9.41357 1.33862 8.71045 0.979736 8 0.979736C7.28955 0.979736 6.5791 1.34595 6.18359 2.04175L0.543945 11.8782C0.353516 12.2078 0.265625 12.5593 0.265625 12.9109C0.265625 14.0754 1.09326 15.0203 2.375 15.0203ZM2.51416 13.614C2.06006 13.614 1.75977 13.2405 1.75977 12.8376C1.75977 12.7205 1.77441 12.574 1.84766 12.4421L7.34082 2.82544C7.4873 2.57642 7.74365 2.45923 8 2.45923C8.25635 2.45923 8.50537 2.57642 8.64453 2.82544L14.145 12.4568C14.2109 12.5813 14.2402 12.7205 14.2402 12.8376C14.2402 13.2405 13.9326 13.614 13.4785 13.614H2.51416ZM8 9.93726C8.40283 9.93726 8.63721 9.71021 8.64453 9.2854L8.75439 5.76245C8.76904 5.33032 8.44678 5.02271 7.99268 5.02271C7.53857 5.02271 7.22363 5.323 7.23828 5.75513L7.34082 9.29272C7.35547 9.71021 7.58984 9.93726 8 9.93726ZM8 12.3689C8.47607 12.3689 8.86426 12.0247 8.86426 11.5632C8.86426 11.0945 8.4834 10.7576 8 10.7576C7.52393 10.7576 7.13574 11.1018 7.13574 11.5632C7.13574 12.0247 7.53125 12.3689 8 12.3689Z",fill:"currentColor"}))},fr=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("path",{d:"M7.99634 15.5732C12.1492 15.5732 15.5769 12.1455 15.5769 8C15.5769 3.85449 12.1418 0.426758 7.98901 0.426758C3.84351 0.426758 0.423096 3.85449 0.423096 8C0.423096 12.1455 3.85083 15.5732 7.99634 15.5732ZM7.99634 14.0645C4.63452 14.0645 1.94653 11.3618 1.94653 8C1.94653 4.63818 4.63452 1.94287 7.98901 1.94287C11.3508 1.94287 14.0535 4.63818 14.0608 8C14.0681 11.3618 11.3582 14.0645 7.99634 14.0645ZM7.99634 11.1787C10.9919 11.1787 13.0281 8.76172 13.0281 8.00732C13.0281 7.26025 10.9919 4.83594 7.99634 4.83594C5.00806 4.83594 2.94995 7.26025 2.94995 8.00732C2.94995 8.76172 5.02271 11.1787 7.99634 11.1787ZM7.99634 10.0654C6.85376 10.0654 5.93091 9.12793 5.92358 8.00732C5.92358 6.86475 6.85376 5.94922 7.99634 5.94922C9.13159 5.94922 10.0544 6.86475 10.0544 8.00732C10.0544 9.12793 9.13159 10.0654 7.99634 10.0654ZM8.00366 8.9082C8.48706 8.9082 8.89722 8.49072 8.89722 8.00732C8.89722 7.52393 8.48706 7.10645 8.00366 7.10645C7.49829 7.10645 7.08813 7.52393 7.08813 8.00732C7.08813 8.49072 7.49829 8.9082 8.00366 8.9082Z",fill:"currentColor"}))},pr=n(856);function mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yr=function(){};const vr=function(e){var t,n,r=e.onClick,o=e.onDoubleClick,i=e.delay,a=void 0===i?300:i,l=mr((t=(0,d.useRef)(yr),n=function(){return t.current()},(0,d.useEffect)((function(){return n}),[]),[function(e){return t.current=e},n]),2),u=l[0],c=l[1];return[function(){c(),function(e,t,n){var r=(new Date).getTime(),o=requestAnimationFrame((function o(){if((new Date).getTime()-r>=t)return e(),void n(yr);var i=requestAnimationFrame(o);n((function(){return cancelAnimationFrame(i)}))}));n((function(){return cancelAnimationFrame(o)}))}(r,a,u)},function(){c(),o()}]};function hr(e){return hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hr(e)}var br=function(e){var t=function(e){var t=nr().contentItems.module.find((function(t){return t.slug===e}));return"object"===hr(t)&&t}(e);return t?t.name:e},Er=function(e,t,n){return e<=t+n/2},Or=["module","row","column"],_r=function(e){return!nr().simpleUi&&Or.includes(e)},wr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!!Or.includes(t)&&!(t!==e&&!e.includes(t))},Sr=[],Cr=function(e){return function(){if(0>=Sr.length){var e=nr().contentItems;Sr=e.module.map((function(e){return e.slug}))}return Sr}().includes(e)},Lr=["id","type"],Tr=["children","style"];function Nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(n),!0).forEach((function(t){kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ar(){return Ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ar.apply(this,arguments)}function kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rr=function e(t){var n,r=t.node,o=t.index,i=t.level,a=t.type,l=t.global,u=void 0!==l&&l,c=t.parent,s=tr().moveNode,p=(0,Qt().useNodesWithoutSettings)(r),m=0<Object.keys(p).length,g=ir.use(),y=g.draggingItem,v=g.setDraggingItem,h=g.clearDraggingItem,b=Pr((0,d.useState)(!1),2),E=b[0],O=b[1],_=Pr((0,d.useState)(!0),2),w=_[0],S=_[1],C=en()("fl-builder-node-outline-item",(kr(n={},"fl-builder-node-type-".concat(a),a),kr(n,"show-drop-before","before"===E),kr(n,"show-drop-after","after"===E),kr(n,"is-dragging-self",r===(null==y?void 0:y.id)),n));return f().createElement("li",{className:C,style:{"--level":i},draggable:_r(a),onDragStart:function(e){var t;e.stopPropagation(),e.dataTransfer.setDragImage(((t=new Image).src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",t.style.opacity=0,t),0,0),e.dataTransfer.setData(a,r),e.dataTransfer.setData("node-id",r),e.dataTransfer.setData("node-type",a),v({id:r,type:a})},onDragEnd:function(){return h()},onDragOver:function(e){if(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="move",e.currentTarget.classList.contains("fl-builder-node-outline-item")){if(wr(e.dataTransfer.types,a)){var t=e.currentTarget.getBoundingClientRect(),n=t.y,r=t.height;Er(e.clientY,n,r)&&"before"!==E?O("before"):Er(e.clientY,n,r)||"after"===E||O("after")}}else console.warn("Problem: Something other than fl-builder-node-outline-item-content")},onDragLeave:function(){E&&O(!1)},onDrop:function(e){if(E&&O(!1),h(),wr(e.dataTransfer.types,a)){var t=e.currentTarget.getBoundingClientRect(),n=t.y,r=t.height,i=Er(e.clientY,n,r)?"before":"after",l=e.dataTransfer.getData("node-id"),u=Xt(l),d=u.position,f=u.parent,p=o;if(c===f){if("before"===i){if(d===o-1)return;p=d>o?o:Math.max(0,o-1)}else if("after"===i){if(d===o+1)return;p=d>o?o+1:o}}else p="after"===i?o+1:o;s(l,p,c,[c,f])}}},"column-group"!==a&&f().createElement(Fr,{id:r,type:a,global:u,position:o,level:i,toggleContent:function(){return S(!w)},isShowingContent:w}),"module"!==a&&!m&&!u&&f().createElement(Mr,{id:r,type:a}),0<Object.keys(p).length&&w&&f().createElement("ul",null,Object.values(p).sort(Ee).map((function(t,n){return f().createElement(e,Ar({key:t.node,level:"column-group"===a?i:i+1,index:n},t))}))))},Mr=function(e){var t=e.id,n=e.type,r=Dr(e,Lr),o=Pr((0,d.useState)(!1),2),i=o[0],a=o[1],l=tr().moveNode,u=ir.use().clearDraggingItem,c=en()("fl-builder-node-empty-drop-area",{"is-over":i});return f().createElement("div",Ar({className:c,onDragOver:function(e){"column"===n&&wr(e.dataTransfer.types,"module")&&a(!0)},onDragLeave:function(){return i&&a(!1)},onDrop:function(e){if(a(!1),u(),"column"===n&&wr(e.dataTransfer.types,"module")){var r=e.dataTransfer.getData("node-id");l(r,0,t)}}},r),f().createElement("div",{className:"drop-area"}))},Fr=(0,d.memo)((function(e){var t=e.id,n=e.type,r=e.global,o=e.level,i=e.toggleContent,a=e.isShowingContent,l=void 0===a||a,u=(0,Qt().useNodeSettings)(t),c=rn(),s=c.setContextMenu,d=c.contextMenu,p=c.clearContextMenu,m=tr(),g=m.openSettings,y=m.deleteNode,v=m.copyNode,h=m.scrollToNode,b=nr().simpleUi,E=function(e){var t=e.responsive_display,n=void 0===t?"":t,r=e.visibility_display;return""!==n||""!==(void 0===r?"":r)}(u),O="row"===n&&!r,_=!0;"module"===n&&(_=Cr(u.type));var w=en()("fl-builder-node-outline-item-content",{"has-context-menu":!1!==d&&t===d.id,"is-global-node":r,"is-missing-definition":!_}),S=Pr(vr({onClick:function(){_&&h(t)},onDoubleClick:function(){_&&(h(t),g(t))}}),2),C=S[0],L=S[1];return f().createElement("div",{className:w,onClick:C,onDoubleClick:L,onPointerEnter:function(){var e=document.querySelector(".fl-node-".concat(t));e&&(e.style.boxShadow="inset 0 0 0 2px var(--fl-builder-".concat(r?"orange":"blue"," ), 0 0 0 1px hsla( 210, 0%, 0%, .5 )"))},onPointerLeave:function(){var e=document.querySelector(".fl-node-".concat(t));e&&(e.style.boxShadow="")},onContextMenu:function(e){if(!1===d||t!==d.id){var o={settings:{label:"Open Settings",isEnabled:_,onClick:function(){h(t),g(t)}},clone:{label:"Duplicate",isEnabled:_&&!b,onClick:function(){return v(t)}},delete:{label:FLBuilderStrings.remove,isEnabled:!b,status:"destructive",onClick:function(){return y(t)}}};s({id:t,items:o,type:n,global:r,x:e.clientX,y:e.clientY}),e.preventDefault()}else p()}},O&&f().createElement("span",{className:"fl-builder-outline-item-gutter"},f().createElement("button",{className:!l&&"is-hiding-content",onClick:function(e){i(e),e.preventDefault(),e.stopPropagation()}},f().createElement(zr,null))),f().createElement("span",{className:"fl-builder-outline-item-icon-wrap"},f().createElement(Hr,{type:n,moduleType:u.type,settings:u,hasDefinition:_})),f().createElement("span",{className:"fl-builder-outline-item-label-wrap"},f().createElement(Br,{type:n,settings:u,level:o})),f().createElement(Ur,{id:t,type:n,size:parseFloat(u.size),width:u.max_content_width,widthUnit:u.max_content_width_unit}),E&&f().createElement("span",{className:"fl-builder-outline-item-icon-wrap"},f().createElement(fr,null)))})),Br=function(e){var t=e.type,n=e.settings,r=void 0===n?{}:n,o=e.level,i=void 0!==r.type?br(r.type):t,a="";if("column"===t&&3<=o&&(i=FLBuilderStrings.childColumn),"row"===i&&(i=FLBuilderStrings.row),"column"===i&&(i=FLBuilderStrings.column),"module"===t&&"type"in r)switch(r.type){case"heading":i=r.tag,a=r.heading;break;case"html":a=r.html;break;case"rich-text":case"icon":case"button":a=r.text;break;case"callout":a=r.title}if("node_label"in r&&""!==r.node_label){var l=r.node_label;a=a&&""!==a?l+" - "+a:l}return f().createElement(f().Fragment,null,i,a&&f().createElement("span",{style:{opacity:.6}},": "+function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,pr.sanitize)(e,{ALLOWED_TAGS:[]}).substring(0,48)}(a)))},Ir=function(e){var t=e.children,n=e.style,r=Dr(e,Tr);return f().createElement("span",Ar({style:jr({textTransform:"lowercase",background:"rgba(0,0,0,.05)",color:"#828282",fontSize:11,flex:"0 0 auto",display:"inline-flex",padding:"2px 6px",borderRadius:25,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:"monospace"},n),title:t},r),t)},Hr=(0,d.memo)((function(e){var t=e.type,n=e.moduleType,r=e.settings,o=e.hasDefinition;switch(t){case"row":return f().createElement(ur,null);case"column":return f().createElement(lr,null);case"module":var i=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=FLBuilderConfig.contentItems.module;if(!n)return dr;switch(e){case"rich-text":return sr;case"photo":return cr;case"icon":if("icon"in t)return function(){return f().createElement("i",{className:t.icon,"aria-hidden":"true"})};break;default:var o=r.find((function(t){return e===t.slug}));return o&&"icon"in o?function(){return f().createElement("div",{style:{flexShrink:0,width:16,height:16,fill:"currentColor"},dangerouslySetInnerHTML:{__html:o.icon}})}:ar}}(n,r,o);return f().createElement(i,null)}})),Ur=function(e){var t=e.id,n=e.type,r=e.size,o=e.width,i=e.widthUnit,a=qt().resizing,l="";return a&&a.includes(t)&&("column"===n?l+=" ".concat(r,"% "):"row"===n&&(l+="Max: ".concat(o+i))),""===l?null:f().createElement(Ir,{style:{background:"var(--fl-builder-blue)",color:"white"}},l)},zr=function(){return f().createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.79289 1.29289C3.18342 0.902369 3.81658 0.902369 4.20711 1.29289L7.20711 4.29289C7.59763 4.68342 7.59763 5.31658 7.20711 5.70711L4.20711 8.70711C3.81658 9.09763 3.18342 9.09763 2.79289 8.70711C2.40237 8.31658 2.40237 7.68342 2.79289 7.29289L5.08579 5L2.79289 2.70711C2.40237 2.31658 2.40237 1.68342 2.79289 1.29289Z",fill:"currentColor"}))};const Gr=function(){var e=(0,Qt().useNodesWithoutSettings)(null),t=Object.values(e).sort(Ee),n=Pr((0,d.useState)(!1),2),r=n[0],o=n[1],i=!1!==r,a={draggingItem:r,isDraggingItem:i,clearDraggingItem:function(){return o(!1)},setDraggingItem:function(e){return o(e)}},l=en()("fl-builder-node-outline",kr({"is-dragging":i},"is-dragging-type-".concat(r.type),r));return f().createElement(ir.Provider,{value:a},f().createElement("ul",{className:l},t.map((function(e,t){return f().createElement(Rr,Ar({key:e.node,level:1,index:t},e))}))))};var Wr=["className"];function Yr(){return Yr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yr.apply(this,arguments)}function Zr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Vr=function(e){var t=e.className,n=Zr(e,Wr),r=en()("fl-builder-workspace-panel",t);return f().createElement("div",Yr({className:r},n))};const Qr=function(){var e=z(),t=e.currentPanel,n=e.panels;if(!(t in n))return null;var r,o=n[t],i=o.routerProps,a=o.onHistoryChanged,l=o.root,u=o.render,c=o.frame,s=void 0===c?Vr:c,p=o.className,g=o.wrapClassName,y=!1===s?d.Fragment:s,v=l||u;return f().createElement("div",{className:g},f().createElement(y,{className:!1!==s&&p},f().createElement(m.Root,{routerProps:(r=i,"function"==typeof r?r():r),onHistoryChanged:a},f().createElement(v,null))))};!function(){FLBuilder.addHook("didInitUI",(function(){var t=document.querySelector(".fl-builder-bar-actions"),n=t.querySelector(".fl-builder--saving-indicator"),r=document.createElement("button");r.classList.add("fl-builder-button","fl-builder-button-silent"),r.innerHTML='<svg width="20px" x="0px" y="0px" viewBox="0 0 238 238" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><g id="EMF-by-Xara-X" serif:id="EMF by Xara X"><path d="M170.734,183.655l-32.623,-35.483c-19.089,5.332 -40.624,6.6 -61.992,2.707c-54.118,-9.858 -86.793,-49.103 -72.935,-87.598c13.859,-38.494 69.029,-61.737 123.148,-51.878c7.553,1.375 14.687,3.324 21.334,5.762l-6.462,12.195c-5.266,-1.731 -10.922,-3.111 -16.913,-4.082c-42.267,-6.842 -85.356,9.291 -96.18,36.014c-10.824,26.722 14.695,53.963 56.963,60.808c41.535,6.724 83.865,-8.739 95.589,-34.637l13.176,22.511l0.064,0.113c-4.574,7.429 -10.792,14.102 -18.26,19.85l27.897,25.151c15.605,14.906 -15.073,47.906 -32.806,28.567Zm9.595,-26.401l-34.191,-30.641c-36.604,14.182 -70.685,6.876 -98.296,-5.59c23.399,17.456 58.534,24.774 94.542,14.959l30.526,29.179c1.989,-3.304 4.559,-6.305 7.419,-7.907Z"/><path d="M42.292,90.276l27.528,0l16.45,-26.827l34.049,52.376l44.83,-68.557l34.474,58.905l37.878,0l-29.225,-7.239l-43.694,-98.934l-43.696,82.469l-33.055,-51.241l-24.826,54.79l-20.713,4.258Z" style="fill:#1195d0;"/></g></svg>',r.onclick=function(){return e()},r.title="Query Monitor",jQuery("#query-monitor-main").length>0&&t.insertBefore(r,n)}));var e=function(){var e=document.getElementById("query-monitor-main");if(t(e)){(n=document.getElementById("wp-admin-bar-query-monitor").getElementsByTagName("a"))[0].click()}else{var n=document.getElementsByClassName("qm-button-container-close");n[0].click()}},t=function(e){return"none"===window.getComputedStyle(e).display}}();const qr=function(){var e=z(),t=e.isEditing,n=e.shouldShowShortcuts,r=e.colorScheme,o=en()(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"fluid-color-scheme-".concat(r),r));return f().createElement("div",{className:o},f().createElement(gn,null,f().createElement(Bn,null),t&&f().createElement(f().Fragment,null,f().createElement(In,null),f().createElement(Dn,null),n&&f().createElement(Zn,null),f().createElement(Qr,null))))};function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){Kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jr,eo=tr(),to=eo.registerPanel,no=eo.displayPanel,ro=eo.togglePanel,oo=window.FL||{},io=$r($r($r({},oo.Builder||{}),s),{},{data:l,registerPanel:to,displayPanel:no,togglePanel:ro});window.FL=$r($r({},oo),{},{Builder:io}),(void 0===(Jr=V().showOutlinePanel)||Jr)&&function(){var e=window.FL.Builder,t=e.registerPanel,n=e.togglePanel;t("outline",{label:"Outline",render:Gr,root:Gr}),FLBuilder.addHook("didInitUI",(function(){var e=document.querySelector(".fl-builder-bar-actions"),t=e.querySelector(".fl-builder--saving-indicator"),r=document.createElement("button");r.classList.add("fl-builder-button","fl-builder-button-silent"),r.innerHTML='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.38672 5.33984C2.1582 5.33984 2.77344 4.72461 2.77344 3.95312C2.77344 3.19141 2.1582 2.56641 1.38672 2.56641C0.625 2.56641 0 3.19141 0 3.95312C0 4.72461 0.625 5.33984 1.38672 5.33984ZM5.97656 4.89062H14.0565C14.5838 4.89062 15.0038 4.48047 15.0038 3.95312C15.0038 3.42578 14.5936 3.01562 14.0565 3.01562H5.97656C5.45898 3.01562 5.03906 3.42578 5.03906 3.95312C5.03906 4.48047 5.44922 4.89062 5.97656 4.89062ZM3.88672 11.3457C4.64844 11.3457 5.27344 10.7305 5.27344 9.95898C5.27344 9.19727 4.64844 8.57227 3.88672 8.57227C3.11523 8.57227 2.49023 9.19727 2.49023 9.95898C2.49023 10.7305 3.11523 11.3457 3.88672 11.3457ZM8.47656 10.8965H16.5794C17.1068 10.8965 17.5169 10.4863 17.5169 9.95898C17.5169 9.43164 17.1068 9.02148 16.5794 9.02148H8.47656C7.94922 9.02148 7.53906 9.43164 7.53906 9.95898C7.53906 10.4863 7.94922 10.8965 8.47656 10.8965ZM6.37695 17.3516C7.14844 17.3516 7.76367 16.7363 7.76367 15.9648C7.76367 15.2031 7.14844 14.5781 6.37695 14.5781C5.61523 14.5781 4.99023 15.2031 4.99023 15.9648C4.99023 16.7363 5.61523 17.3516 6.37695 17.3516ZM10.9668 16.9023H19.0251C19.5524 16.9023 19.9626 16.4922 19.9626 15.9648C19.9626 15.4375 19.5524 15.0273 19.0251 15.0273H10.9668C10.4395 15.0273 10.0293 15.4375 10.0293 15.9648C10.0293 16.4922 10.4395 16.9023 10.9668 16.9023Z" fill="currentColor"/></svg>',r.onclick=function(){return n("outline")},r.title="Outline",e.insertBefore(r,t)}))}();var ao=document.getElementById("fl-ui-root");ao.classList.add("fluid","fl","uid"),(0,p.render)(f().createElement(qr,null),ao)})()})();
1
  /*! For license information please see builder.bundle.min.js.LICENSE.txt */
2
+ (()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var l in n)r.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},856:function(e){e.exports=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,l=Object.seal,u=Object.create,c="undefined"!=typeof Reflect&&Reflect,s=c.apply,d=c.construct;s||(s=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),l||(l=function(e){return e}),d||(d=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var f=_(Array.prototype.forEach),p=_(Array.prototype.pop),m=_(Array.prototype.push),g=_(String.prototype.toLowerCase),y=_(String.prototype.match),v=_(String.prototype.replace),h=_(String.prototype.indexOf),b=_(String.prototype.trim),E=_(RegExp.prototype.test),O=w(TypeError);function _(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s(e,t,r)}}function w(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(e,n)}}function S(e,t){n&&n(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=g(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function C(e){var n=u(null),r=void 0;for(r in e)s(t,e,[r])&&(n[r]=e[r]);return n}function L(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var T=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),j=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=a(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),k=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=a(["#text"]),x=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),R=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=l(/\{\{[\s\S]*|[\s\S]*\}\}/gm),I=l(/<%[\s\S]*|[\s\S]*%>/gm),H=l(/^data-[\-\w.\u00B7-\uFFFF]/),U=l(/^aria-[\-\w]+$/),z=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=l(/^(?:\w+script|data):/i),W=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=l(/^html$/i),Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function V(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Q=function(){return"undefined"==typeof window?null:window},q=function(e,t){if("object"!==(void 0===e?"undefined":Z(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),t=function(e){return X(e)};if(t.version="2.3.6",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,l=e.Node,u=e.Element,c=e.NodeFilter,s=e.NamedNodeMap,d=void 0===s?e.NamedNodeMap||e.MozNamedAttrMap:s,_=e.HTMLFormElement,w=e.DOMParser,$=e.trustedTypes,K=u.prototype,J=L(K,"cloneNode"),ee=L(K,"nextSibling"),te=L(K,"childNodes"),ne=L(K,"parentNode");if("function"==typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=q($,n),ie=oe?oe.createHTML(""):"",ae=r,le=ae.implementation,ue=ae.createNodeIterator,ce=ae.createDocumentFragment,se=ae.getElementsByTagName,de=n.importNode,fe={};try{fe=C(r).documentMode?r.documentMode:{}}catch(e){}var pe={};t.isSupported="function"==typeof ne&&le&&void 0!==le.createHTMLDocument&&9!==fe;var me=B,ge=I,ye=H,ve=U,he=G,be=W,Ee=z,Oe=null,_e=S({},[].concat(V(T),V(N),V(j),V(A),V(P))),we=null,Se=S({},[].concat(V(x),V(R),V(M),V(F))),Ce=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Te=null,Ne=!0,je=!0,De=!1,Ae=!1,ke=!1,Pe=!1,xe=!1,Re=!1,Me=!1,Fe=!1,Be=!0,Ie=!0,He=!1,Ue={},ze=null,Ge=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,Ye=S({},["audio","video","img","source","image","track"]),Ze=null,Ve=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",qe="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml",$e=Xe,Ke=!1,Je=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":Z(e))||(e={}),e=C(e),Oe="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS):_e,we="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR):Se,Ze="ADD_URI_SAFE_ATTR"in e?S(C(Ve),e.ADD_URI_SAFE_ATTR):Ve,We="ADD_DATA_URI_TAGS"in e?S(C(Ye),e.ADD_DATA_URI_TAGS):Ye,ze="FORBID_CONTENTS"in e?S({},e.FORBID_CONTENTS):Ge,Le="FORBID_TAGS"in e?S({},e.FORBID_TAGS):{},Te="FORBID_ATTR"in e?S({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,je=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=e.SAFE_FOR_TEMPLATES||!1,ke=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,xe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,Ie=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,Ee=e.ALLOWED_URI_REGEXP||Ee,$e=e.NAMESPACE||Xe,e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Je=Je=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Je?function(e){return e}:g,Ae&&(je=!1),Me&&(Re=!0),Ue&&(Oe=S({},[].concat(V(P))),we=[],!0===Ue.html&&(S(Oe,T),S(we,x)),!0===Ue.svg&&(S(Oe,N),S(we,R),S(we,F)),!0===Ue.svgFilters&&(S(Oe,j),S(we,R),S(we,F)),!0===Ue.mathMl&&(S(Oe,A),S(we,M),S(we,F))),e.ADD_TAGS&&(Oe===_e&&(Oe=C(Oe)),S(Oe,e.ADD_TAGS)),e.ADD_ATTR&&(we===Se&&(we=C(we)),S(we,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&S(Ze,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ze===Ge&&(ze=C(ze)),S(ze,e.FORBID_CONTENTS)),Ie&&(Oe["#text"]=!0),ke&&S(Oe,["html","head","body"]),Oe.table&&(S(Oe,["tbody"]),delete Le.tbody),a&&a(e),rt=e)},lt=S({},["mi","mo","mn","ms","mtext"]),ut=S({},["foreignobject","desc","title","annotation-xml"]),ct=S({},N);S(ct,j),S(ct,D);var st=S({},A);S(st,k);var dt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});var n=g(e.tagName),r=g(t.tagName);if(e.namespaceURI===qe)return t.namespaceURI===Xe?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===r||lt[r]):Boolean(ct[n]);if(e.namespaceURI===Qe)return t.namespaceURI===Xe?"math"===n:t.namespaceURI===qe?"math"===n&&ut[r]:Boolean(st[n]);if(e.namespaceURI===Xe){if(t.namespaceURI===qe&&!ut[r])return!1;if(t.namespaceURI===Qe&&!lt[r])return!1;var o=S({},["title","style","font","a","script"]);return!st[n]&&(o[n]||!ct[n])}return!1},ft=function(e){m(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},pt=function(e,n){try{m(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){m(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!we[e])if(Re||Me)try{ft(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},mt=function(e){var t=void 0,n=void 0;if(xe)e="<remove></remove>"+e;else{var o=y(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=oe?oe.createHTML(e):e;if($e===Xe)try{t=(new w).parseFromString(i,Je)}catch(e){}if(!t||!t.documentElement){t=le.createDocument($e,"template",null);try{t.documentElement.innerHTML=Ke?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),$e===Xe?se.call(t,ke?"html":"body")[0]:ke?t.documentElement:a},gt=function(e){return ue.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof _&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(e){return"object"===(void 0===l?"undefined":Z(l))?e instanceof l:e&&"object"===(void 0===e?"undefined":Z(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ht=function(e,n,r){pe[e]&&f(pe[e],(function(e){e.call(t,n,r,rt)}))},bt=function(e){var n=void 0;if(ht("beforeSanitizeElements",e,null),yt(e))return ft(e),!0;if(y(e.nodeName,/[\u0080-\uFFFF]/))return ft(e),!0;var r=nt(e.nodeName);if(ht("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===r&&E(/<template/i,e.innerHTML))return ft(e),!0;if(!Oe[r]||Le[r]){if(!Le[r]&&Ot(r)){if(Ce.tagNameCheck instanceof RegExp&&E(Ce.tagNameCheck,r))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))return!1}if(Ie&&!ze[r]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(J(i[a],!0),ee(e))}return ft(e),!0}return e instanceof u&&!dt(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r||!E(/<\/no(script|embed)/i,e.innerHTML)?(Ae&&3===e.nodeType&&(n=e.textContent,n=v(n,me," "),n=v(n,ge," "),e.textContent!==n&&(m(t.removed,{element:e.cloneNode()}),e.textContent=n)),ht("afterSanitizeElements",e,null),!1):(ft(e),!0)},Et=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in r||n in ot))return!1;if(je&&!Te[t]&&E(ye,t));else if(Ne&&E(ve,t));else if(!we[t]||Te[t]){if(!(Ot(e)&&(Ce.tagNameCheck instanceof RegExp&&E(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&E(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&E(Ce.tagNameCheck,n)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(n))))return!1}else if(Ze[t]);else if(E(Ee,v(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(n,"data:")||!We[e])if(De&&!E(he,v(n,be,"")));else if(n)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},_t=function(e){var n=void 0,r=void 0,o=void 0,i=void 0;ht("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};for(i=a.length;i--;){var u=n=a[i],c=u.name,s=u.namespaceURI;if(r=b(n.value),o=nt(c),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,ht("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(pt(c,e),l.keepAttr))if(E(/\/>/i,r))pt(c,e);else{Ae&&(r=v(r,me," "),r=v(r,ge," "));var d=nt(e.nodeName);if(Et(d,o,r))try{s?e.setAttributeNS(s,c,r):e.setAttribute(c,r),p(t.removed)}catch(e){}}}ht("afterSanitizeAttributes",e,null)}},wt=function e(t){var n=void 0,r=gt(t);for(ht("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ht("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof o&&e(n.content),_t(n));ht("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,u=void 0,c=void 0,s=void 0,d=void 0;if((Ke=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!vt(r)){if("function"!=typeof r.toString)throw O("toString is not a function");if("string"!=typeof(r=r.toString()))throw O("dirty is not a string, aborting")}if(!t.isSupported){if("object"===Z(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(vt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Pe||at(i),t.removed=[],"string"==typeof r&&(He=!1),He){if(r.nodeName){var f=nt(r.nodeName);if(!Oe[f]||Le[f])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof l)1===(u=(a=mt("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?a=u:a.appendChild(u);else{if(!Re&&!Ae&&!ke&&-1===r.indexOf("<"))return oe&&Fe?oe.createHTML(r):r;if(!(a=mt(r)))return Re?null:Fe?ie:""}a&&xe&&ft(a.firstChild);for(var p=gt(He?r:a);c=p.nextNode();)3===c.nodeType&&c===s||bt(c)||(c.content instanceof o&&wt(c.content),_t(c),s=c);if(s=null,He)return r;if(Re){if(Me)for(d=ce.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return we.shadowroot&&(d=de.call(n,d,!0)),d}var m=ke?a.outerHTML:a.innerHTML;return ke&&Oe["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&E(Y,a.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m),Ae&&(m=v(m,me," "),m=v(m,ge," ")),oe&&Fe?oe.createHTML(m):m},t.setConfig=function(e){at(e),Pe=!0},t.clearConfig=function(){rt=null,Pe=!1},t.isValidAttribute=function(e,t,n){rt||at({});var r=nt(e),o=nt(t);return Et(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],m(pe[e],t))},t.removeHook=function(e){pe[e]&&p(pe[e])},t.removeHooks=function(e){pe[e]&&(pe[e]=[])},t.removeAllHooks=function(){pe={}},t}return X()}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{displayPanel:()=>L,hideCurrentPanel:()=>N,registerPanel:()=>C,setColorScheme:()=>D,setIsEditing:()=>j,setShouldShowShortcuts:()=>S,togglePanel:()=>T});var t={};n.r(t),n.d(t,{colorScheme:()=>B,currentPanel:()=>M,isEditing:()=>F,panels:()=>R,shouldShowShortcuts:()=>x});var r={};n.r(r),n.d(r,{after:()=>H,before:()=>I});var o={};n.r(o),n.d(o,{editing:()=>Re,layout:()=>xe,resizing:()=>Me});var i={};n.r(i),n.d(i,{addColumnGroup:()=>lt,addColumnTemplate:()=>ht,addColumns:()=>et,addModule:()=>Ke,addNodeTemplate:()=>pt,addRow:()=>ut,addRowTemplate:()=>bt,applyTemplate:()=>ft,cancelDisplaySettings:()=>kt,clearHistoryStates:()=>jt,copyColumn:()=>rt,copyModule:()=>Je,copyRow:()=>ct,deleteColumn:()=>it,deleteNode:()=>$e,deleteNodeTemplate:()=>gt,deleteUserTemplate:()=>vt,discardDraft:()=>Tt,displaySettings:()=>At,fetchLayout:()=>Et,insertFreeformNode:()=>Ge,insertNode:()=>ze,insertNodes:()=>We,moveColumn:()=>nt,moveNode:()=>Ze,redo:()=>Ue,renderHistoryState:()=>Dt,renderLayout:()=>_t,renderNode:()=>Ve,reorderColumn:()=>tt,reorderNode:()=>Ye,resetColWidths:()=>at,resetRowWidth:()=>dt,resizeColumn:()=>ot,resizeRowContent:()=>st,resizingComplete:()=>Pt,saveDraft:()=>Lt,saveGlobalSettings:()=>St,saveHistoryState:()=>Nt,saveLayout:()=>Ct,saveLayoutSettings:()=>wt,saveNodeTemplate:()=>mt,saveUserTemplateSettings:()=>yt,setLayout:()=>Ot,undo:()=>He,updateNode:()=>Qe,updateNodeSetting:()=>Xe,updateNodeSettings:()=>qe});var a={};n.r(a),n.d(a,{after:()=>Bt,before:()=>Ft});var l={};n.r(l),n.d(l,{getChildren:()=>$t,getLayoutActions:()=>Vt,getLayoutHooks:()=>Qt,getLayoutState:()=>Zt,getLayoutStore:()=>Yt,getNode:()=>Xt,getSystemActions:()=>Y,getSystemConfig:()=>V,getSystemSelectors:()=>Z,getSystemState:()=>W,getSystemStore:()=>G,nodeExists:()=>Kt,useLayoutState:()=>qt,useSystemState:()=>z});var u={};n.r(u),n.d(u,{copyNode:()=>Qn,deleteNode:()=>Vn,moveNode:()=>Xn,scrollToNode:()=>qn});var c={};n.r(c),n.d(c,{openSettings:()=>$n});var s={};n.r(s),n.d(s,{getActions:()=>tr,getConfig:()=>nr,getStrings:()=>rr});const d=React;var f=n.n(d);const p=ReactDOM,m=FL.vendors.BBAppCore;var g=(0,m.createStoreRegistry)(),y=g.registerStore,v=g.useStore,h=g.getStore,b=g.getDispatch,E=g.getSelectors;function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){return{type:"SET_SHOULD_SHOW_SHORTCUTS",value:e}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fl/untitled",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={label:"",root:null,render:function(){return null},className:null,routerProps:{},onHistoryChanged:function(){}};return{type:"REGISTER_PANEL",handle:e,options:_(_({},n),t)}},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:"SET_CURRENT_PANEL",name:e}},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:"TOGGLE_PANEL",name:e}},N=function(){return{type:"HIDE_CURRENT_PANEL"}},j=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"SET_IS_EDITING",value:e}},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return{type:"SET_COLOR_SCHEME",value:e}};function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SHOULD_SHOW_SHORTCUTS"===t.type?!!t.value:e},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"REGISTER_PANEL"===t.type?k(k({},e),{},P({},t.handle,t.options)):e},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CURRENT_PANEL":return t.name;case"HIDE_CURRENT_PANEL":return null;case"TOGGLE_PANEL":return t.name===e?null:t.name;default:return e}},F=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_IS_EDITING"===t.type?!!t.value:e},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",t=arguments.length>1?arguments[1]:void 0;return"SET_COLOR_SCHEME"===t.type?"dark"===t.value?"dark":"light":e},I={},H={TOGGLE_PANEL:function(e,t){var n=t.getState().currentPanel,r=document.querySelector("html");n&&FLBuilder._closePanel(),"assistant"===n?r.classList.add("fl-builder-assistant-visible"):r.classList.remove("fl-builder-assistant-visible")},HIDE_CURRENT_PANEL:function(){document.querySelector("html").classList.remove("fl-builder-assistant-visible")}},U="fl-builder/system";y(U,{actions:e,reducers:t,effects:r,state:{isEditing:!0,currentPanel:null,shouldShowShortcuts:!1,colorScheme:FLBuilderConfig.userSettings.skin,panels:{}}});var z=function(){return v(U)},G=function(){return h(U)},W=function(){return h(U).getState()},Y=function(){return b(U)},Z=function(){return E(U)},V=function(){return window.FLBuilderConfig};const Q=Redux;var q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.getState;return function(t){return function(r){var o=t(r),i=n();return void 0!==e[r.type]&&e[r.type](i,r),o}}}},X=function(e){var t=e.before,n=e.after;return function(e){return function(r){return function(o){t&&t[o.type]&&t[o.type](o,e);var i=r(o);return n&&n[o.type]&&n[o.type](o,e),i}}}};const $=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,o=r?r({name:e}):Q.compose;return o((0,Q.applyMiddleware)(q(n),X(t)))};function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re=function(e){var t={};return Object.values(e).map((function(e){var n=te({},e);delete n.settings,t[e.node]=n})),t},oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={},r=Object.values(e).filter((function(e){return t===e.parent}));return r.map((function(e){return n[e.node]=e})),n},ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.layout.present.nodes;return void 0===n[t]?{}:n[t].settings},ae=function(e,t){return Object.keys(e).length!==Object.keys(t).length||Object.values(e).some((function(e){var n=t[e.node];return void 0===e||void 0===n||(e.type!==n.type||e.parent!==n.parent||e.position!==n.position||e.global!==n.global)}))},le=function(e,t){return Object.keys(e).length!==Object.keys(t).length||Object.keys(e).some((function(n){return e[n]!==t[n]}))};const ue=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.layout.present.nodes;return 1===Object.keys(n).length?null!=t&&(n=oe(n,t)):void 0!==t&&(n=oe(n,t)),re(n)};return{useLayoutStore:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0},n=e.getState(),r=(0,d.useRef)(n),o=(0,d.useState)(n),i=K(o,2),a=i[0],l=i[1];return(0,d.useEffect)((function(){return l(e.getState()),e.subscribe((function(){var n=e.getState();t(r.current,n)&&l(te({},n)),r.current=n}))}),[]),a},useNodeSettings:function(t){var n=ie(e.getState(),t),r=(0,d.useRef)(n),o=K((0,d.useState)(n),2),i=o[0],a=o[1];return(0,d.useEffect)((function(){var n=ie(e.getState(),t);return le(n,r.current)&&a(n),r.current=n,e.subscribe((function(){var n=ie(e.getState(),t);le(n,r.current)&&a(n),r.current=n}))}),[t]),i},useNodesWithoutSettings:function(n){var r=t(e.getState(),n),o=(0,d.useRef)(r),i=K((0,d.useState)(r),2),a=i[0],l=i[1];return(0,d.useEffect)((function(){var r=t(e.getState(),n);return ae(r,o.current)&&l(r),o.current=r,e.subscribe((function(){var r=t(e.getState(),n);ae(r,o.current)&&l(r),o.current=r}))}),[]),a}}};function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fe={layout:{past:[],present:{attachments:[],nodes:{}},future:[]}},pe={state:{},reducers:{},actions:{},effects:{},tests:{}};const me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fl-builder/layout",n=se(se({},pe),e),r=se(se({},fe),n.state),o=(0,Q.combineReducers)(n.reducers),i=$(t,n.effects,n.tests),a=(0,Q.createStore)(o,r,i);return{store:a,actions:(0,Q.bindActionCreators)(se({},n.actions),a.dispatch),hooks:ue(a)}};const ge=function(e){var t={past:[],present:e(void 0,{}),future:[]};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=arguments.length>1?arguments[1]:void 0,o=n.past,i=void 0===o?[]:o,a=n.present,l=n.future,u=void 0===l?[]:l;return"RESIZE_COLUMN"===r.type?(r.persist,{past:i,present:e(a,r),future:u}):{past:i,present:e(a,r),future:u}}};function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be={node:"",type:"",parent:"",position:0,global:!1,settings:{}},Ee=function(e,t){return e.position>t.position?1:e.position<t.position?-1:0},Oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return void 0!==t[e]},_e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object.values(e).filter((function(e){return t===e.parent})).sort(Ee)},we=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ve(ve(ve({},be),e),t);return"module"===n.type&&void 0===n.settings.type&&(n.settings.type=e.settings.type),n},Se=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};if(void 0===r[e])return console.error("Undefined node",e),o;var i=_e(r,t).filter((function(t){return e!==t.node})),a=i.map((function(e){return e.node}));return a.splice(n,0,e),a.map((function(e,n){o[e]=we(r[e],{position:n,parent:t})})),o},Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ve(ve({},e),{},he({},t,we(e[t],n)));return Se(n.node,n.parent,n.position,r)},Le=function(e,t){var n={};if(void 0===t[e])return console.warn("Node to be deleted is undefined",e),t;var r=t[e].parent,o=t[e].type,i=ve({},t);delete i[e],"column"===o&&Ne(r,i)&&delete i[r],function(e,t){var n=[],r=ve({},t);Object.values(r).map((function(t){e===t.parent&&n.push(t.node)})),n.map((function(e){delete r[e]}))}(e,i);var a=_e(i,r);return a.map((function(e,t){if(e.position=t,"column"===e.type){var r=100/a.length;r=r.toPrecision(5),e.settings.size=r}n[e.node]=e})),ve({},i)},Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n={};return e.map((function(e){var r=Object.values(t).filter((function(t){return e===t.parent})),o=(100/r.length).toPrecision(5);r.map((function(e){n[e.node]=we(e,{settings:ve(ve({},e.settings),{},{size:o})})}))})),n},Ne=function(e,t){return 0===Object.values(t).filter((function(t){return t.parent===e})).length},je=function(e){void 0!==e&&(console.assert("node"in e,"Node has no id property"),console.assert("type"in e,"Node has no type property"),console.assert("parent"in e,"Node has no parent property"),console.assert("position"in e,"Node has no position property"),console.assert("settings"in e,"Node has no settings property"),console.assert("global"in e,"Node has no global property"),"module"===e.type&&console.assert("type"in e.settings,"Module settings should contain type property."),"row"!==e.type&&console.assert(null!==e.parent,"Only rows should have a null parent property"))},De=function(e){var t=function(e){var t=Object.keys(e);return Object.values(e).filter((function(e){return null!==e.parent&&!t.includes(e.node)}))}(e);console.assert(0===t.length,"There should be no orphaned nodes",t)};function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){Pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xe=ge((0,Q.combineReducers)({attachments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"SET_LAYOUT"===t.type&&void 0!==t.attachments?t.attachments:e},nodes:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_NODE":return ke(ke({},t),Ce(t,n.id,{node:n.id,parent:n.parent,type:n.nodeType,position:n.position,settings:n.settings,global:n.global}));case"INSERT_FREEFORM_NODE":return ke(ke({},t),Ce(t,n.id,n.node));case"INSERT_NODES":return ke(ke({},t),n.nodes);case"REORDER_NODE":case"REORDER_COLUMN":return ke(ke({},t),Se(n.id,t[n.id].parent,n.position,t));case"REPARENT_NODE":case"REPARENT_COLUMN":return ke(ke({},t),Se(n.id,n.parent,n.position,t));case"UPDATE_NODE":return ke(ke({},t),{},Pe({},n.id,we(t[n.id],n.node)));case"UPDATE_NODE_SETTING":return ke(ke({},t),{},Pe({},n.id,we(t[n.id],{settings:ke(ke({},t[n.id].settings),{},Pe({},n.key,n.value))})));case"UPDATE_NODE_SETTINGS":return void 0===t[n.id]?t:ke(ke({},t),{},Pe({},n.id,we(t[n.id],{settings:ke(ke(ke({},t[n.id].settings),n.settings),{},{type:"module"===t[n.id].type?t[n.id].settings.type:void 0})})));case"DELETE_NODE":case"DELETE_COLUMN":return Le(n.id,t);case"RESIZE_COLUMN":return ke(ke({},t),{},(Pe(e={},n.id,we(t[n.id],{settings:ke(ke({},t[n.id].settings),{},{size:n.width})})),Pe(e,n.siblingId,we(t[n.siblingId],{settings:ke(ke({},t[n.siblingId].settings),{},{size:n.siblingWidth})})),e));case"RESET_COLUMN_WIDTHS":return ke(ke({},t),Te(n.groupIds,t));case"RESIZE_ROW_CONTENT":return ke(ke({},t),{},Pe({},n.id,we(t[n.id],{settings:ke(ke({},t[n.id].settings),{},{max_content_width:n.width})})));case"RESET_ROW_WIDTH":return ke(ke({},t),{},Pe({},n.id,we(t[n.id],{settings:ke(ke({},t[n.id].settings),{},{max_content_width:""})})));case"ADD_COLUMN_TEMPLATE":case"ADD_ROW_TEMPLATE":return console.log(n.type,"Needs node reducer implementation?"),t;case"SET_LAYOUT":return n.nodes;default:return t}},globalSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SAVE_GLOBAL_SETTINGS"===t.type?t.settings:e}})),Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISPLAY_SETTINGS":return t.id;case"UPDATE_NODE_SETTINGS":case"CANCEL_DISPLAY_SETTINGS":return null;default:return e}},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESIZING_COMPLETE":return!1;case"RESIZE_ROW_CONTENT":return[t.id];case"RESIZE_COLUMN":return[t.id,t.siblingId];default:return e}};function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){Ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He=function(){return{type:"UNDO"}},Ue=function(){return{type:"REDO"}},ze=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length,l=new Array(a>6?a-6:0),u=6;u<a;u++)l[u-6]=arguments[u];return Be({type:"INSERT_NODE",id:e,parent:t,position:r,nodeType:n,settings:o,global:i},l)},Ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"INSERT_FREEFORM_NODE",id:e,node:t}},We=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"INSERT_NODES",nodes:e}},Ye=function(e,t){return{type:"REORDER_NODE",id:e,position:t}},Ze=function(e,t,n){return{type:"REPARENT_NODE",id:e,parent:t,position:n}},Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{type:"RENDER_NODE",id:e,callback:t}},Qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"UPDATE_NODE",id:e,node:t}},qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return{type:"UPDATE_NODE_SETTINGS",id:e,settings:t,callback:n}},Xe=function(e,t,n){return{type:"UPDATE_NODE_SETTING",id:e,key:t,value:n}},$e=function(e){return{type:"DELETE_NODE",id:e}},Ke=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{type:"ADD_MODULE",moduleType:e,parent:t,position:n,config:r}},Je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return{type:"COPY_MODULE",id:e,settings:t,callback:n}},et=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1-col",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return{type:"ADD_COLUMNS",id:e,insert:t,colType:n,nested:r,module:o}},tt=function(e,t){return{type:"REORDER_COLUMN",id:e,position:t}},nt=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return{type:"REPARENT_COLUMN",id:e,parent:t,position:n,resize:r}},rt=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};return{type:"COPY_COLUMN",id:e,settings:t,settingsId:n,callback:r}},ot=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return{type:"RESIZE_COLUMN",id:e,width:parseInt(t),siblingId:n,siblingWidth:parseInt(r),shouldPersist:o}},it=function(e,t){return{type:"DELETE_COLUMN",id:e,width:t}},at=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"RESET_COLUMN_WIDTHS",groupIds:e}},lt=function(e,t,n,r){return{type:"ADD_COLUMN_GROUP",id:e,cols:t,position:n,module:r}},ut=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return{type:"ADD_ROW",cols:e,position:t,module:n}},ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};return{type:"COPY_ROW",id:e,settings:t,settingsId:n,callback:r}},st=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"RESIZE_ROW_CONTENT",id:e,width:t,shouldPersist:n}},dt=function(e){return{type:"RESET_ROW_WIDTH",id:e}},ft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";return{type:"APPLY_TEMPLATE",id:e,append:t,templateType:n}},pt=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){};return{type:"ADD_NODE_TEMPLATE",nodeType:e,templateId:t,templateType:n,parent:r,position:o,callback:i}},mt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"SAVE_NODE_TEMPLATE",id:e,settings:t}},gt=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:"DELETE_NODE_TEMPLATE",id:e,global:t}},yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"SAVE_USER_TEMPLATE_SETTINGS",settings:e}},vt=function(e){return{type:"DELETE_USER_TEMPLATE",id:e}},ht=function(){return{type:"ADD_COLUMN_TEMPLATE"}},bt=function(){return{type:"ADD_ROW_TEMPLATE"}},Et=function(){return{type:"FETCH_LAYOUT"}},Ot=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{type:"SET_LAYOUT",nodes:e,attachments:t}},_t=function(){return{type:"RENDER_LAYOUT"}},wt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"SAVE_LAYOUT_SETTINGS",settings:e}},St=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"SAVE_GLOBAL_SETTINGS",settings:e}},Ct=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return{type:"SAVE_LAYOUT",shouldPublish:e,shouldExit:t,callback:n}},Lt=function(){return{type:"SAVE_DRAFT"}},Tt=function(){return{type:"DISCARD_DRAFT"}},Nt=function(e,t){return{type:"SAVE_HISTORY_STATE",label:e,moduleType:t}},jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:"CLEAR_HISTORY_STATES",postId:e,shouldExit:t}},Dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{type:"RENDER_HISTORY_STATE",position:e,callback:t}},At=function(e){return{type:"DISPLAY_SETTINGS",id:e}},kt=function(){return{type:"CANCEL_DISPLAY_SETTINGS"}},Pt=function(){return{type:"RESIZING_COMPLETE"}};function xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Mt=function(e,t){var n=FLBuilder._jsonParse(e),r=n.newNodes,o=void 0===r?{}:r,i=n.updatedNodes,a=void 0===i?{}:i;0<Object.keys(o).length&&t.dispatch(We(o)),Object.entries(a).map((function(e){var n=xt(e,2),r=n[0],o=n[1];t.dispatch(Qe(r,o))}))},Ft={},Bt={UNDO:function(){window.FLBuilderHistoryManager.renderState("prev")},REDO:function(){window.FLBuilderHistoryManager.renderState("next")},UPDATE_NODE_SETTINGS:function(e){var t=e.id,n=e.settings,r=e.callback;FLBuilder.ajax({action:"save_settings",node_id:t,settings:n},r)},REORDER_NODE:function(e,t){var n=e.id,r=e.position;(0,FL.Builder.__canvas.getActions().moveNode)(n,r),FLBuilder.ajax({action:"reorder_node",node_id:n,position:r},(function(e){Mt(e,t),FLBuilder._reorderNodeComplete(e)}))},REPARENT_NODE:function(e,t){var n=e.id,r=e.parent,o=e.position;(0,FL.Builder.__canvas.getActions().moveNode)(n,o,r),FLBuilder.ajax({action:"move_node",new_parent:r,node_id:n,position:o},(function(e){Mt(e,t),FLBuilder._moveNodeComplete(e)}))},RENDER_NODE:function(e){var t=e.id,n=e.callback;FLBuilder.ajax({action:"render_node",node_id:t},(function(e){var t=FLBuilder._jsonParse(e);FLBuilder._renderLayout(t,n)}))},DELETE_NODE:function(e){var t=e.id;FLBuilder.ajax({action:"delete_node",node_id:t})},ADD_MODULE:function(e,t){var n=e.moduleType,r=e.parent,o=e.position,i=e.config;FLBuilder.ajax({action:"render_new_module",parent_id:r,type:n,position:o,node_preview:i.nodePreview,widget:i.widget,alias:i.alias},(function(e){Mt(e,t),FLBuilder._addModuleComplete(e)}))},COPY_MODULE:function(e,t){var n=e.id,r=e.settings,o=e.callback;FLBuilder.ajax({action:"copy_module",node_id:n,settings:r},(function(e){Mt(e,t),o(e)}))},ADD_COLUMNS:function(e,t){var n=e.id,r=e.insert,o=e.colType,i=e.nested,a=e.module;FLBuilder.ajax({action:"render_new_columns",node_id:n,insert:r,type:o,nested:i,module:a},(function(e){Mt(e,t),FLBuilder._addColsComplete(e)}))},RESIZE_COLUMN:function(e,t){var n=e.id,r=e.width,o=e.siblingId,i=e.siblingWidth;e.shouldPersist&&(t.dispatch(Pt()),FLBuilder.ajax({action:"resize_cols",col_id:n,col_width:r,sibling_id:o,sibling_width:i},(function(e){return Mt(e,t)})))},RESET_COLUMN_WIDTHS:function(e){var t=e.groupIds;FLBuilder.ajax({action:"reset_col_widths",group_id:t},(function(){return FLBuilder.triggerHook("didResetColumnWidthsComplete")}))},DELETE_COLUMN:function(e){var t=e.id,n=e.width;FLBuilder.ajax({action:"delete_col",node_id:t,new_width:n})},REORDER_COLUMN:function(e){var t=e.id,n=e.position;(0,FL.Builder.__canvas.getActions().moveNode)(t,n),FLBuilder.ajax({action:"reorder_col",node_id:t,position:n},(function(){return FLBuilder.triggerHook("didMoveColumn")}))},REPARENT_COLUMN:function(e){var t=e.id,n=e.parent,r=e.position,o=e.resize;(0,FL.Builder.__canvas.getActions().moveNode)(t,r,n),FLBuilder.ajax({action:"move_col",node_id:t,new_parent:n,position:r,resize:o},(function(){return FLBuilder.triggerHook("didMoveColumn")}))},COPY_COLUMN:function(e,t){var n=e.id,r=e.settings,o=e.settingsId,i=e.callback;FLBuilder.ajax({action:"copy_col",node_id:n,settings:r,settings_id:o},(function(e){Mt(e,t),i(e)}))},ADD_COLUMN_GROUP:function(e,t){var n=e.id,r=e.cols,o=e.position,i=e.module;FLBuilder.ajax({action:"render_new_column_group",node_id:n,cols:r,position:o,module:i},(function(e){Mt(e,t),FLBuilder._addColGroupComplete(e)}))},ADD_ROW:function(e,t){var n=e.cols,r=e.position,o=e.module;FLBuilder.ajax({action:"render_new_row",cols:n,position:r,module:o},(function(e){Mt(e,t),FLBuilder._addRowComplete(e)}))},COPY_ROW:function(e,t){var n=e.id,r=e.settings,o=e.settingsId,i=e.callback;FLBuilder.ajax({action:"copy_row",node_id:n,settings:r,settings_id:o},(function(e){Mt(e,t),i(e)}))},RESIZE_ROW_CONTENT:function(e,t){var n=e.id,r=e.width;e.shouldPersist&&(FLBuilder.ajax({action:"resize_row_content",node:n,width:r}),t.dispatch(Pt()))},RESET_ROW_WIDTH:function(e){var t=e.id;FLBuilder.ajax({action:"resize_row_content",node:t,width:""})},APPLY_TEMPLATE:function(e,t){var n=e.id,r=e.append,o=e.templateType,i="core"===o?FLBuilder._applyTemplateComplete:FLBuilder._applyUserTemplateComplete;FLBuilder.ajax({action:"core"===o?"apply_template":"apply_user_template",template_id:n,append:r},(function(e){var n=FLBuilder._jsonParse(e);t.dispatch(Ot(n.newNodes,[])),i(e)}))},ADD_NODE_TEMPLATE:function(e,t){var n=e.nodeType,r=e.templateId,o=e.templateType,i=e.parent,a=e.position,l=e.callback,u="";switch(n){case"row":u="render_new_row_template";break;case"column":u="render_new_col_template";break;default:u="render_new_module"}FLBuilder.ajax({action:u,template_id:r,template_type:o,parent_id:i,position:a},(function(e){Mt(e,t),l(e)}))},SAVE_NODE_TEMPLATE:function(e,t){var n=e.id,r=e.settings;FLBuilder.ajax({action:"save_node_template",node_id:n,settings:r},(function(e){t.dispatch(Et()),FLBuilder._saveNodeTemplateComplete(e),FLBuilder._hideNodeLoading(n)}))},DELETE_NODE_TEMPLATE:function(e){var t=e.id,n=e.global;FLBuilder.ajax({action:"delete_node_template",template_id:t},(function(){n&&FLBuilder._updateLayout()}))},SAVE_USER_TEMPLATE_SETTINGS:function(e){var t=e.settings;FLBuilder.ajax({action:"save_user_template",settings:t},FLBuilder._saveUserTemplateSettingsComplete)},DELETE_USER_TEMPLATE:function(e){var t=e.id;FLBuilder.ajax({action:"delete_user_template",template_id:t})},RENDER_LAYOUT:function(){FLBuilder.ajax({action:"render_layout"},FLBuilder._renderLayout)},FETCH_LAYOUT:function(e,t){FLBuilder.ajax({action:"get_layout"},(function(e){var n=FLBuilder._jsonParse(e),r=n.nodes,o=n.attachments;t.dispatch(Ot(r,o))}))},SAVE_LAYOUT:function(e){var t=e.shouldPublish,n=e.shouldExit,r=e.callback;FLBuilder.ajax({action:"save_layout",publish:t,exit:n?1:0},r)},SAVE_DRAFT:function(){FLBuilder.ajax({action:"save_draft"},FLBuilder._exit)},DISCARD_DRAFT:function(){FLBuilder.ajax({action:"clear_draft_layout"},(function(){FLBuilder.triggerHook("didDiscardChanges"),FLBuilder._exit()}))},SAVE_LAYOUT_SETTINGS:function(e){var t=e.settings;FLBuilder.ajax({action:"save_layout_settings",settings:t},(function(){return FLBuilder._saveLayoutSettingsComplete(t)}))},SAVE_GLOBAL_SETTINGS:function(e){var t=e.settings;FLBuilder.ajax({action:"save_global_settings",settings:t},FLBuilder._saveGlobalSettingsComplete)},SAVE_HISTORY_STATE:function(e){var t=e.label,n=e.moduleType;FLBuilder.ajax({action:"save_history_state",label:t,module_type:n},(function(e){var t=FLBuilder._jsonParse(e);FLBuilderHistoryManager.states=t.states,FLBuilderHistoryManager.position=parseInt(t.position),FLBuilderHistoryManager.setupMainMenuData()}))},CLEAR_HISTORY_STATES:function(e){var t=e.postId,n=e.shouldExit;FLBuilder.ajax({action:"clear_history_states",post_id:t},(function(){n||FLBuilderHistoryManager.saveCurrentState("draft_created")}))},RENDER_HISTORY_STATE:function(e,t){var n=e.position,r=e.callback;FLBuilder.ajax({action:"render_history_state",position:n},(function(e){var n=FLBuilder._jsonParse(e),o=n.newNodes,i=n.config;t.dispatch(Ot(o,i.attachments)),r(e)}))},DISPLAY_SETTINGS:function(e,t){var n=e.id,r=t.getState().layout.present.nodes;if("global"!==n)if("layout"!==n){if(void 0!==r[n]){var o=r[n],i=o.type,a=o.settings,l=o.parent,u=o.global,c=o.template_id;switch(i){case"column-group":break;case"row":FLBuilder._showRowSettings(n,u);break;case"column":var s="column"!==FLBuilderConfig.userTemplateType&&void 0!==c;FLBuilder._showColSettings(n,u,s);break;default:FLBuilder._showModuleSettings({nodeId:n,parentId:l,type:a.type,global:u})}}}else FLBuilder._layoutSettingsClicked();else FLBuilder._globalSettingsClicked()}},It={SET_LAYOUT:function(e){!function(e){Object.values(e).map(je)}(e.layout.present.nodes)},INSERT_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(Oe(t.id,n),"Node should exist after insert."),je(n[t.id]),console.assert(n[t.id].position===t.position,"Node position should be consistent after insert."),De(n)},REORDER_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(Oe(t.id,n),"Node no longer exists after reorder."),je(n[t.id]);var r=n[t.id];console.assert(t.position===r.position,"Node position should match action.position")},REPARENT_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(Oe(t.id,n),"Node should not exist after reparent"),je(n[t.id]),console.assert(t.parent===n[t.id].parent,"Node should have correct parent after reparent")},DELETE_NODE:function(e,t){var n=e.layout.present.nodes;console.assert(!Oe(t.id,n),"Node should not exist after delete"),De(n)},COPY_MODULE:function(e,t){var n=e.layout.present.nodes,r=Oe(t.id,n);console.assert(r,"Node no longer exists after duplicate."),r&&je(n[t.id])},DELETE_COLUMN:function(e){var t=e.layout.present.nodes;De(t)},REPARENT_COLUMN:function(){console.warn("REPARENT_COLUMN needs a test.")},RESET_COLUMN_WIDTHS:function(e,t){var n=e.layout.present.nodes;t.groupIds.map((function(e){var t=_e(n,e),r=100/t.length,o=t.every((function(e){return e.settings.size===r.toPrecision(5)}));console.assert(o,"Column sizes should match after reset")}))}};const Ht=It;var Ut=me({state:{layout:{present:{nodes:{},globalSettings:FLBuilderConfig.global}}},reducers:o,effects:a,actions:i,tests:Ht}),zt=Ut.store,Gt=Ut.actions,Wt=Ut.hooks,Yt=function(){return zt},Zt=function(){return zt.getState()},Vt=function(){return Gt},Qt=function(){return Wt},qt=Wt.useLayoutStore,Xt=function(e){var t=Zt().layout.present.nodes;return e&&e in t?t[e]:t},$t=function(e){var t=Zt().layout.present.nodes;return Object.values(t).filter((function(t){return e===t.parent}))},Kt=function(e){return"undefined"!==Zt().layout.present.nodes[e]};zt.dispatch(Et());var Jt=n(184),en=n.n(Jt),tn={},nn=(0,d.createContext)(tn),rn=function(){return(0,d.useContext)(nn)};const on=FL.vendors.BBFluid;var an=["onClick","label"];function ln(){return ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ln.apply(this,arguments)}function un(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const dn=function(e){var t=e.x,n=e.y,r=e.items,o=void 0===r?{}:r,i=e.clear,a=void 0===i?function(){}:i,l=window.innerWidth-190,u={};return Object.entries(o).map((function(e){var t=cn(e,2),n=t[0],r=t[1];!1!==r.isEnabled&&(u[n]=r)})),f().createElement("div",{className:"fl-builder-context-menu",style:{top:n,left:t<l?t:l,width:180}},f().createElement("ul",null,Object.keys(u).map((function(e){var t=o[e],n=t.onClick,r=t.label,i=un(t,an);return f().createElement("li",{key:e},f().createElement(on.Button,ln({onClick:function(e){n(e),a(),e.stopPropagation()},size:"sm"},i),r))}))))};function fn(){return fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fn.apply(this,arguments)}function pn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gn=function(e){var t=e.children,n=pn((0,d.useState)(!1),2),r=n[0],o=n[1],i=function(){return o(!1)},a={setContextMenu:o,clearContextMenu:i,showContextMenu:!1!==r,contextMenu:r};return f().createElement(nn.Provider,{value:a},f().createElement(yn,null),t,!1!==r&&f().createElement(dn,fn({},r,{clear:i})))},yn=function(){var e=rn().clearContextMenu,t=function(t){document.querySelector(".fl-builder-context-menu")&&!t.target.closest(".fl-builder-context-menu")&&(e(),t.stopPropagation())},n=function(){document.querySelector(".fl-builder-context-menu")&&e()};return(0,d.useEffect)((function(){return window.addEventListener("click",t,{capture:!0}),window.addEventListener("scroll",n,{capture:!0}),function(){window.removeEventListener("click",t,{capture:!0}),window.removeEventListener("scroll",n,{capture:!0})}}),[]),null};function vn(e){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vn(e)}function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function En(e,t,n){return t&&bn(e.prototype,t),n&&bn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function On(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_n(e,t)}function _n(e,t){return _n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_n(e,t)}function wn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ln(e);if(t){var o=Ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sn(this,n)}}function Sn(e,t){if(t&&("object"===vn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Cn(e)}function Cn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ln(e){return Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ln(e)}var Tn=FLBuilderConfig.lite,Nn=function(e){var t,n={__html:e.children},r=new Date(e.date).toDateString();if("string"==typeof e.url&&""!==e.url){var o=Tn?e.url+"?utm_medium=bb-lite&utm_source=builder-ui&utm_campaign=notification-center":e.url+"?utm_medium=bb-pro&utm_source=builder-ui&utm_campaign=notification-center";t=f().createElement("a",{className:"fl-builder-ui-post",href:o,target:"_blank",rel:"noopener noreferrer"},f().createElement("div",{className:"fl-builder-ui-post-date"},r),f().createElement("div",{className:"fl-builder-ui-post-title"},e.title),f().createElement("div",{className:"fl-builder-ui-post-content",dangerouslySetInnerHTML:n}))}else t=f().createElement("span",{className:"fl-builder-ui-post"},f().createElement("div",{className:"fl-builder-ui-post-date"},r),f().createElement("div",{className:"fl-builder-ui-post-title"},e.title),f().createElement("div",{className:"fl-builder-ui-post-content",dangerouslySetInnerHTML:n}));return t},jn=function(e){On(n,e);var t=wn(n);function n(){return hn(this,n),t.apply(this,arguments)}return En(n,[{key:"getPosts",value:function(e){var t,n,r=FLBuilderStrings.notifications;return 0<e.length?(n=e.map((function(e){return f().createElement(Nn,{key:e.id,title:(t=e.title.rendered,f().createElement("div",{dangerouslySetInnerHTML:{__html:t}})),date:e.date,url:e.meta._fl_notification[0]},e.content.rendered);var t})),t=f().createElement(f().Fragment,null,n)):t=f().createElement("div",{className:"fl-panel-no-message"},r.none),t}},{key:"componentDidMount",value:function(){FLBuilder._initScrollbars()}},{key:"componentDidUpdate",value:function(){FLBuilder._initScrollbars()}},{key:"render",value:function(){var e=this.getPosts(this.props.posts),t=FLBuilderStrings.notifications;return f().createElement("div",{className:"fl-notifications-panel"},f().createElement("div",{className:"fl-panel-title"},t.title),f().createElement("div",{className:"fl-nanoscroller",ref:this.setupScroller},f().createElement("div",{className:"fl-nanoscroller-content"},e)))}}]),n}(d.Component),Dn=function(e){On(n,e);var t=wn(n);function n(e){var r;hn(this,n),r=t.call(this,e);var o={},i=FLBuilderConfig.notifications.data;try{o=JSON.parse(i)}catch(e){o={}}return r.state={shouldShowNotifications:!1,posts:o},FLBuilder.addHook("toggleNotifications",r.onToggleNotifications.bind(Cn(r))),r}return En(n,[{key:"onToggleNotifications",value:function(){var e=Y().hideCurrentPanel;this.setState({shouldShowNotifications:!this.state.shouldShowNotifications}),e(),!0===this.state.shouldShowNotifications&&FLBuilder.triggerHook("notificationsLoaded")}},{key:"render",value:function(){var e=this.state,t=e.shouldShowNotifications,n=e.posts;return t&&f().createElement(jn,{posts:n})}}]),n}(d.Component);function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(e)}function kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pn(e,t){return Pn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pn(e,t)}function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mn(e);if(t){var o=Mn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rn(this,n)}}function Rn(e,t){if(t&&("object"===An(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mn(e){return Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mn(e)}var Fn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pn(e,t)}(i,e);var t,n,r,o=xn(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=(t=o.call(this,e)).props.postId;return t.layoutClass=".fl-builder-content-".concat(n||FLBuilderConfig.postId),t}return t=i,n=[{key:"componentDidMount",value:function(){this.setupHooks=this.setupHooks.bind(this),this.hooked=!1,jQuery(document).on("tinymce-editor-init",this.setupHooks),this.setupHooks()}},{key:"setupHooks",value:function(){if(!("ontouchstart"in document)&&window.tinymce&&!this.hooked&&FLBuilderConfig.inlineEnabled){var e=this.initEditables.bind(this),t=this.refreshEditables.bind(this),n=this.destroyAllEditables.bind(this),r=this.destroyLoadingEditables.bind(this);FLBuilder&&(FLBuilder.addHook("settingsConfigLoaded",e),FLBuilder.addHook("restartEditingSession",e),FLBuilder.addHook("endEditingSession",n),FLBuilder.addHook("didStartNodeLoading",r),FLBuilder.addHook("didRenderLayoutComplete",t),FLBuilder.addHook("didDeleteRow",t),FLBuilder.addHook("didDeleteColumn",t),FLBuilder.addHook("didDeleteModule",t)),this.initEditables(),this.hooked=!0}}},{key:"initEditables",value:function(){var e=this,t=FLBuilderSettingsConfig.editables,n=jQuery(this.layoutClass);if(n.length)for(var r in t){var o='.fl-module[data-type="'.concat(r,'"]:not(.fl-editable):not(.fl-node-global)');n.find(o).each((function(t,n){(n=jQuery(n)).addClass("fl-editable"),n.delegate(".fl-block-overlay","click.fl-inline-editing-init",(function(t){return e.initEditable(t,n)}))}))}}},{key:"initEditable",value:function(e,t){var n=this,r=FLBuilder.preview;r&&t.parents(".fl-node-".concat(r.nodeId)).length&&r._settingsHaveChanged()||(this.setupEditable(t,(function(){n.onModuleOverlayClick(e)})),t.undelegate(".fl-block-overlay","click.fl-inline-editing-init"))}},{key:"setupEditable",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=e.data("node"),o=FLBuilderSettingsConfig.nodes[r];if(void 0===o)return!1;var i=e.data("type"),a=FLBuilderSettingsConfig.editables[i],l=".fl-node-".concat(r," "),u="fl-inline-editor-".concat(r),c=jQuery('<div id="'.concat(u,'" class="fl-inline-editor"></div>')),s=jQuery(".fl-builder-settings[data-node=".concat(r,"]")),d=o.connections;e.append(c),e.on("click",".fl-block-overlay",this.onModuleOverlayClick.bind(this)),e.on("mouseleave",this.onModuleMouseleave.bind(this));var f=function(e){var r=a[e],o=FLBuilderPreview.getFormattedSelector(l,r.selector),i=jQuery(o),c=i.html(),f=s.find("#fl-field-".concat(e," .fl-field-connection-value"));return i.length?f.length&&""!==f.val()||!f.length&&d&&d[e]?"continue":(i.hasClass("mce-content-body")?tinymce.execCommand("mceRemoveEditor",!0,i.attr("id")):(i.data("field",r.field),i.on("drop",t.onEditorDrop.bind(t))),void tinymce.init({selector:o,inline:!0,menubar:!1,paste_as_text:!0,relative_urls:!1,convert_urls:!1,skin:!FLBuilder&&"lightgray",skin_url:!FLBuilder&&"".concat(tinyMCEPreInit.baseURL,"/skins/lightgray/"),theme:"modern",theme_url:"".concat(tinyMCEPreInit.baseURL,"/themes/modern/"),fixed_toolbar_container:"#".concat(u),plugins:t.getEditorPluginConfig(r.field.type),toolbar:"string"==typeof r.field.toolbar?r.field.toolbar:t.getEditorToolbarConfig(r.field.type),init_instance_callback:function(e){t.onEditorInit(e),i.html(c),n()}})):"continue"};for(var p in a)f(p)}},{key:"getEditorPluginConfig",value:function(e){return"editor"===e?"wordpress, wplink, lists, paste":"paste"}},{key:"getEditorToolbarConfig",value:function(e){switch(e){case"editor":return"bold italic strikethrough link underline | alignleft aligncenter alignright";case"unit":return!1;default:return"bold italic strikethrough underline"}}},{key:"destroyEditables",value:function(e){var t=e.find(".mce-content-body"),n=e.find(".fl-inline-editor"),r=jQuery(".wplink-autocomplete, .ui-helper-hidden-accessible");t.removeAttr("contenteditable"),e.undelegate(".fl-block-overlay","click"),e.off("mouseleave"),e.removeClass("fl-editable"),n.remove(),r.remove()}},{key:"destroyAllEditables",value:function(){var e=jQuery(this.layoutClass).find(".fl-editable");this.destroyEditables(e)}},{key:"destroyLoadingEditables",value:function(e,t){var n=jQuery(t);n.hasClass("fl-module")||(n=n.find(".fl-module")),this.destroyEditables(n)}},{key:"refreshEditables",value:function(){this.initEditables(),tinymce.editors.map((function(e){e.inline&&!jQuery("#".concat(e.id)).length&&setTimeout((function(){return tinymce.execCommand("mceRemoveEditor",!0,e.id)}),1)}))}},{key:"getEditorEventVars",value:function(e){var t=jQuery(e).closest(".mce-content-body"),n=tinymce.get(t.attr("id")),r=t.data("field"),o=t.closest(".fl-module"),i=o.data("node");return{editable:t,module:o,editor:n,field:r,nodeId:i}}},{key:"onEditorInit",value:function(e){e.on("change",this.onEditorChange.bind(this)),e.on("keyup",this.onEditorChange.bind(this)),e.on("undo",this.onEditorChange.bind(this)),e.on("redo",this.onEditorChange.bind(this)),e.on("focus",this.onEditorFocus.bind(this)),e.on("blur",this.onEditorBlur.bind(this)),e.on("mousedown",this.onEditorMousedown.bind(this))}},{key:"onEditorChange",value:function(e){var t=e.target.bodyElement?e.target.bodyElement:e.target,n=this.getEditorEventVars(t),r=n.editor,o=n.field,i=n.nodeId,a=jQuery('.fl-builder-settings[data-node="'.concat(i,'"]')),l=r.getContent();if(a.length&&o)if("editor"===o.type){var u=a.find("#fl-field-".concat(o.name," textarea.wp-editor-area")),c=u.attr("id");u.closest(".tmce-active").length?tinymce.get(c).setContent(l):u.val(l)}else{var s=document.createElement("textarea");s.innerHTML=l,a.find('[name="'.concat(o.name,'"]')).val(s.value)}}},{key:"onEditorFocus",value:function(e){var t=this.getEditorEventVars(e.target.bodyElement),n=t.editable,r=t.editor,o=t.module,i=t.field,a=t.nodeId,l=o.find(".fl-inline-editor"),u=this.getSettingHTML(a,i);this.matchHTML(r.getContent(),u)||(n.data("original",{settingHTML:u,editableHTML:n.html()}),n.css("min-height",n.height()),r.setContent(u),r.selection.select(r.getBody(),!0),r.selection.collapse(!1)),r.settings.toolbar?l.removeClass("fl-inline-editor-no-toolbar"):l.addClass("fl-inline-editor-no-toolbar"),o.addClass("fl-editable-focused"),this.showEditorOverlay(o),this.showModuleSettings(o)}},{key:"onEditorBlur",value:function(e){var t=this.getEditorEventVars(e.target.bodyElement),n=t.editable,r=t.editor,o=t.module,i=o.find(".fl-inline-editor"),a=n.data("original");i.removeClass("fl-inline-editor-no-toolbar"),o.removeClass("fl-editable-focused"),a&&this.matchHTML(r.getContent(),a.settingHTML)&&(n.html(a.editableHTML),n.css("min-height",""))}},{key:"onEditorMousedown",value:function(e){var t=this.getEditorEventVars(e.target).module;this.showEditorOverlay(t)}},{key:"onEditorDrop",value:function(e){return e.preventDefault(),!1}},{key:"onModuleOverlayClick",value:function(e){var t=jQuery(e.target).closest(".fl-block-overlay-actions"),n=jQuery(e.currentTarget).closest(".fl-module"),r=n.find(".mce-content-body").first().attr("id");t.length||FLBuilder._colResizing||r&&(tinymce.get(r).focus(),n.addClass("fl-editable-focused"))}},{key:"onModuleMouseleave",value:function(){jQuery(".mce-inline-toolbar-grp:visible, .mce-floatpanel:visible").length||(this.hideEditorOverlays(),this.showNodeOverlays())}},{key:"showEditorOverlay",value:function(e){var t=e.find(".fl-inline-editor");this.hideNodeOverlays(),this.hideEditorOverlays(),t.show(),jQuery(".fl-inline-editor-active-toolbar").removeClass("fl-inline-editor-active-toolbar"),t.find("> .mce-panel:visible").addClass("fl-inline-editor-active-toolbar")}},{key:"hideEditorOverlays",value:function(){jQuery(".fl-inline-editor, .mce-floatpanel").hide()}},{key:"showNodeOverlays",value:function(){jQuery(".fl-block-overlay").show()}},{key:"hideNodeOverlays",value:function(){jQuery(".fl-block-overlay").hide()}},{key:"showModuleSettings",value:function(e){var t=e.data("type"),n=e.data("node"),r=e.closest(".fl-col").data("node"),o=e.hasClass("fl-node-global");jQuery('.fl-builder-settings[data-node="'.concat(n,'"]')).length||FLBuilder._showModuleSettings({type:t,nodeId:n,parentId:r,global:o})}},{key:"getSettingValue",value:function(e,t){var n=jQuery('.fl-builder-settings[data-node="'.concat(e,'"]'));return(n.length?FLBuilder._getSettings(n):FLBuilderSettingsConfig.nodes[e])[t]}},{key:"getSettingHTML",value:function(e,t){var n=this.getSettingValue(e,t.name);return"editor"===t.type&&""!==n?wp.editor.autop(n):n}},{key:"matchHTML",value:function(e,t){return this.cleanHTML(e)===this.cleanHTML(t)}},{key:"cleanHTML",value:function(e){return jQuery("<div>".concat(e,"</div>")).html().trim().replace(/(\r\n|\n|\r)/gm,"")}},{key:"render",value:function(){return null}}],n&&kn(t.prototype,n),r&&kn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);const Bn=Fn;var In=function(){return f().createElement("svg",{id:"fl-symbol-container",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f().createElement("symbol",{id:"fl-down-caret",viewBox:"0 0 11 6"},f().createElement("polygon",{points:"0 0 2.05697559 0 5.49235478 3.74058411 8.93443824 0 11 0 5.5 6"})))},Hn=function(){};Hn.Close=function(){return f().createElement("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f().createElement("g",{stroke:"currentColor",strokeWidth:"2",fill:"none",fillRule:"evenodd",strokeLinecap:"round"},f().createElement("path",{d:"M13,1 L1,13"}),f().createElement("path",{d:"M1,1 L13,13"})))};var Un=["className","children","title","actions","showCloseButton","onClose"];function zn(){return zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zn.apply(this,arguments)}function Gn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wn=function(e){var t=e.className,n=e.children,r=e.title,o=e.actions,i=e.showCloseButton,a=void 0===i||i,l=e.onClose,u=void 0===l?function(){}:l,c=Gn(e,Un),s=en()({"fl-ui-panel-area":!0},t),d=function(){return o||a?f().createElement("div",{className:"fl-ui-panel-trailing-actions"},o,f().createElement("button",{onClick:u,className:"fl-ui-button"},f().createElement(Hn.Close,null))):null};return f().createElement("div",{className:s,onClick:u},f().createElement("div",zn({className:"fl-ui-panel"},c,{onClick:function(e){return e.stopPropagation()}}),f().createElement("div",{className:"fl-ui-panel-topbar"},r&&f().createElement("div",{className:"fl-ui-panel-title"},r),f().createElement(d,null)),f().createElement("div",{className:"fl-ui-panel-content"},n)))},Yn=function(e){var t=e.shortcuts;return 0===Object.keys(t).length?null:f().createElement("ul",{className:"fl-ui-shortcut-list"},Object.values(t).map((function(e,t){var n=e.label,r={__html:e.keyLabel};return f().createElement("li",{key:t},f().createElement("span",null,n),f().createElement("span",{className:"fl-ui-shortcut-item-keycode",dangerouslySetInnerHTML:r}))})))};const Zn=function(){var e=Y().setShouldShowShortcuts;return f().createElement(Wn,{title:"Keyboard Shortcuts",onClose:function(){return e(!1)},className:"fl-ui-help",style:{width:360,maxWidth:"95vw"}},f().createElement(Yn,{shortcuts:FLBuilderConfig.keyboardShortcuts}))};wp.i18n;var Vn=function(e){var t=Vt().deleteNode;if(e){var n=!0,r=Xt(e);if(FLBuilder._needsDeleteConfirmation(r)){var o=function(e){var t=window.FLBuilderStrings,n=t.deleteRowMessage,r=t.deleteColumnMessage,o=t.deleteModuleMessage;switch(e){case"row":return n;case"column":return r;default:return o}}(r.type);n=confirm(o)}if(n){var i=FLBuilder._getJQueryElement(e);if(!i.length&&Kt(e))t(e);else if("module"===r.type)FLBuilder._deleteModule(i);else if("column"===r.type){var a=FLBuilder._getColToDelete(i);FLBuilder._deleteCol(a)}else"row"===r.type&&FLBuilder._deleteRow(i);FLBuilder._highlightEmptyCols(),FLBuilder._resizeLayout(),FLBuilder._removeAllOverlays()}}},Qn=function(e){if(e){var t=Xt(e);t&&void 0!==t.type&&("module"===t.type?FLBuilder._copyModule(e):"column"===t.type?FLBuilder._copyColumn(e):"row"===t.type&&FLBuilder._copyRow(e))}},qn=function(e){var t=document.querySelector("".concat(FLBuilder._contentClass,' [data-node="').concat(e,'"]'));t&&t.scrollIntoView({behavior:"smooth",block:"center"})},Xn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=Vt(),i=o.reorderNode,a=o.moveNode,l=o.reorderColumn,u=o.moveColumn,c=Xt(e),s=c.type,d=c.parent,f=c.position,p="column"===s;if(n===d||null===n){if(t===f)return;p?l(e,t):i(e,t)}else p?u(e,n,t,r):a(e,n,t)},$n=function(e){var t=Vt().displaySettings,n=Y().hideCurrentPanel;t(e),document.body.classList.contains("fl-builder-ui-is-pinned-right")&&n()};function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tr=function(){var e=Y();return Jn(Jn(Jn({},{registerPanel:e.registerPanel,displayPanel:e.displayPanel,togglePanel:e.togglePanel}),u),c)},nr=function(){return window.FLBuilderConfig},rr=function(){return window.FLBuilderStrings},or=(0,d.createContext)({});or.use=function(){return(0,d.useContext)(or)};const ir=or;var ar=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("rect",{x:"2.5",y:"2.5",width:"11",height:"11",rx:"1.5",stroke:"currentColor"}))},lr=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("rect",{x:"9.5",y:"13.5",width:"11",height:"4",rx:"0.5",transform:"rotate(-90 9.5 13.5)",stroke:"currentColor"}),f().createElement("rect",{x:"2.5",y:"13.5",width:"11",height:"4",rx:"0.5",transform:"rotate(-90 2.5 13.5)",stroke:"currentColor"}))},ur=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("rect",{x:"2.5",y:"9.5",width:"11",height:"4",rx:"0.5",stroke:"currentColor"}),f().createElement("rect",{x:"2.5",y:"2.5",width:"11",height:"4",rx:"0.5",stroke:"currentColor"}))},cr=function(){return f().createElement("svg",{className:"svg",width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},f().createElement("path",{d:"M12 6c0 1.105-.895 2-2 2-1.105 0-2-.895-2-2 0-1.105.895-2 2-2 1.105 0 2 .895 2 2zm-1 0c0 .552-.448 1-1 1-.552 0-1-.448-1-1 0-.552.448-1 1-1 .552 0 1 .448 1 1zM3 2c-.552 0-1 .448-1 1v10c0 .552.448 1 1 1h10c.552 0 1-.448 1-1V3c0-.552-.448-1-1-1H3zm10 1H3v6.293l2.5-2.5L11.707 13H13V3zM3 13v-2.293l2.5-2.5L10.293 13H3z",fillRule:"evenodd",fillOpacity:"1",fill:"currentCOlor",stroke:"none"}))},sr=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("path",{d:"M3.48254 7.83023L3.05006 9.22531H5.78441L5.35194 7.83023C5.19383 7.31871 5.03572 6.81183 4.87761 6.3096C4.72881 5.79807 4.58465 5.27724 4.44514 4.74711H4.38934C4.24053 5.27724 4.09172 5.79807 3.94291 6.3096C3.7941 6.81183 3.64065 7.31871 3.48254 7.83023ZM0.692383 12.9502L3.7755 3.79846H5.08688L8.17 12.9502H6.94233L6.07738 10.16H2.7571L1.8782 12.9502H0.692383Z",fill:"currentColor"}),f().createElement("path",{d:"M11.5546 13.1176C11.2384 13.1176 10.9407 13.0711 10.6617 12.9781C10.3827 12.8944 10.1363 12.7735 9.92234 12.6153C9.71773 12.4479 9.55497 12.248 9.43407 12.0155C9.31316 11.7737 9.25271 11.4993 9.25271 11.1924C9.25271 10.811 9.34106 10.4809 9.51777 10.2019C9.70378 9.91355 9.9921 9.66709 10.3827 9.46247C10.7826 9.25786 11.2942 9.09045 11.9173 8.96025C12.5404 8.83004 13.2891 8.72773 14.1634 8.65333C14.1541 8.42082 14.1169 8.20225 14.0518 7.99764C13.9867 7.79303 13.8844 7.61632 13.7449 7.46751C13.6053 7.30941 13.4193 7.18385 13.1868 7.09084C12.9636 6.99784 12.6892 6.95134 12.3637 6.95134C11.9173 6.95134 11.4895 7.03969 11.0803 7.2164C10.671 7.38381 10.3083 7.56517 9.9921 7.76048L9.54567 6.97924C9.71308 6.86763 9.90839 6.75603 10.1316 6.64442C10.3641 6.52351 10.6059 6.41656 10.857 6.32355C11.1175 6.23055 11.3918 6.15614 11.6801 6.10034C11.9685 6.03523 12.2614 6.00268 12.559 6.00268C13.4891 6.00268 14.1773 6.25845 14.6238 6.76998C15.0795 7.2722 15.3073 7.94649 15.3073 8.79284V12.9502H14.3726L14.275 12.0294H14.2331C13.8518 12.327 13.4286 12.5828 12.9636 12.7967C12.5079 13.0106 12.0382 13.1176 11.5546 13.1176ZM11.8615 12.1968C12.2521 12.1968 12.6334 12.1131 13.0055 11.9457C13.3868 11.769 13.7728 11.5179 14.1634 11.1924V9.40667C13.4379 9.46248 12.8288 9.54153 12.3358 9.64383C11.8522 9.74614 11.4616 9.8717 11.164 10.0205C10.8756 10.16 10.671 10.3228 10.5501 10.5088C10.4292 10.6855 10.3688 10.8855 10.3688 11.1087C10.3688 11.304 10.4106 11.4714 10.4943 11.6109C10.578 11.7411 10.685 11.8527 10.8152 11.9457C10.9547 12.0294 11.1128 12.0945 11.2895 12.141C11.4755 12.1782 11.6662 12.1968 11.8615 12.1968Z",fill:"currentColor"}))},dr=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("path",{d:"M2.375 15.0203H13.625C14.9067 15.0203 15.7271 14.0754 15.7271 12.9109C15.7271 12.5593 15.6392 12.2004 15.4487 11.8708L9.80908 2.04175C9.41357 1.33862 8.71045 0.979736 8 0.979736C7.28955 0.979736 6.5791 1.34595 6.18359 2.04175L0.543945 11.8782C0.353516 12.2078 0.265625 12.5593 0.265625 12.9109C0.265625 14.0754 1.09326 15.0203 2.375 15.0203ZM2.51416 13.614C2.06006 13.614 1.75977 13.2405 1.75977 12.8376C1.75977 12.7205 1.77441 12.574 1.84766 12.4421L7.34082 2.82544C7.4873 2.57642 7.74365 2.45923 8 2.45923C8.25635 2.45923 8.50537 2.57642 8.64453 2.82544L14.145 12.4568C14.2109 12.5813 14.2402 12.7205 14.2402 12.8376C14.2402 13.2405 13.9326 13.614 13.4785 13.614H2.51416ZM8 9.93726C8.40283 9.93726 8.63721 9.71021 8.64453 9.2854L8.75439 5.76245C8.76904 5.33032 8.44678 5.02271 7.99268 5.02271C7.53857 5.02271 7.22363 5.323 7.23828 5.75513L7.34082 9.29272C7.35547 9.71021 7.58984 9.93726 8 9.93726ZM8 12.3689C8.47607 12.3689 8.86426 12.0247 8.86426 11.5632C8.86426 11.0945 8.4834 10.7576 8 10.7576C7.52393 10.7576 7.13574 11.1018 7.13574 11.5632C7.13574 12.0247 7.53125 12.3689 8 12.3689Z",fill:"currentColor"}))},fr=function(){return f().createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("path",{d:"M7.99634 15.5732C12.1492 15.5732 15.5769 12.1455 15.5769 8C15.5769 3.85449 12.1418 0.426758 7.98901 0.426758C3.84351 0.426758 0.423096 3.85449 0.423096 8C0.423096 12.1455 3.85083 15.5732 7.99634 15.5732ZM7.99634 14.0645C4.63452 14.0645 1.94653 11.3618 1.94653 8C1.94653 4.63818 4.63452 1.94287 7.98901 1.94287C11.3508 1.94287 14.0535 4.63818 14.0608 8C14.0681 11.3618 11.3582 14.0645 7.99634 14.0645ZM7.99634 11.1787C10.9919 11.1787 13.0281 8.76172 13.0281 8.00732C13.0281 7.26025 10.9919 4.83594 7.99634 4.83594C5.00806 4.83594 2.94995 7.26025 2.94995 8.00732C2.94995 8.76172 5.02271 11.1787 7.99634 11.1787ZM7.99634 10.0654C6.85376 10.0654 5.93091 9.12793 5.92358 8.00732C5.92358 6.86475 6.85376 5.94922 7.99634 5.94922C9.13159 5.94922 10.0544 6.86475 10.0544 8.00732C10.0544 9.12793 9.13159 10.0654 7.99634 10.0654ZM8.00366 8.9082C8.48706 8.9082 8.89722 8.49072 8.89722 8.00732C8.89722 7.52393 8.48706 7.10645 8.00366 7.10645C7.49829 7.10645 7.08813 7.52393 7.08813 8.00732C7.08813 8.49072 7.49829 8.9082 8.00366 8.9082Z",fill:"currentColor"}))},pr=n(856);function mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yr=function(){};const vr=function(e){var t,n,r=e.onClick,o=e.onDoubleClick,i=e.delay,a=void 0===i?300:i,l=mr((t=(0,d.useRef)(yr),n=function(){return t.current()},(0,d.useEffect)((function(){return n}),[]),[function(e){return t.current=e},n]),2),u=l[0],c=l[1];return[function(){c(),function(e,t,n){var r=(new Date).getTime(),o=requestAnimationFrame((function o(){if((new Date).getTime()-r>=t)return e(),void n(yr);var i=requestAnimationFrame(o);n((function(){return cancelAnimationFrame(i)}))}));n((function(){return cancelAnimationFrame(o)}))}(r,a,u)},function(){c(),o()}]};function hr(e){return hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hr(e)}var br=function(e){var t=function(e){var t=nr().contentItems.module.find((function(t){return t.slug===e}));return"object"===hr(t)&&t}(e);return t?t.name:e},Er=function(e,t,n){return e<=t+n/2},Or=["module","row","column"],_r=function(e){return!nr().simpleUi&&Or.includes(e)},wr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!!Or.includes(t)&&!(t!==e&&!e.includes(t))},Sr=[],Cr=function(e){return function(){if(0>=Sr.length){var e=nr().contentItems;Sr=e.module.map((function(e){return e.slug}))}return Sr}().includes(e)},Lr=["id","type"],Tr=["children","style"];function Nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(n),!0).forEach((function(t){kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ar(){return Ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ar.apply(this,arguments)}function kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rr=function e(t){var n,r=t.node,o=t.index,i=t.level,a=t.type,l=t.global,u=void 0!==l&&l,c=t.parent,s=tr().moveNode,p=(0,Qt().useNodesWithoutSettings)(r),m=0<Object.keys(p).length,g=ir.use(),y=g.draggingItem,v=g.setDraggingItem,h=g.clearDraggingItem,b=Pr((0,d.useState)(!1),2),E=b[0],O=b[1],_=Pr((0,d.useState)(!0),2),w=_[0],S=_[1],C=en()("fl-builder-node-outline-item",(kr(n={},"fl-builder-node-type-".concat(a),a),kr(n,"show-drop-before","before"===E),kr(n,"show-drop-after","after"===E),kr(n,"is-dragging-self",r===(null==y?void 0:y.id)),n));return f().createElement("li",{className:C,style:{"--level":i},draggable:_r(a),onDragStart:function(e){var t;e.stopPropagation(),e.dataTransfer.setDragImage(((t=new Image).src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",t.style.opacity=0,t),0,0),e.dataTransfer.setData(a,r),e.dataTransfer.setData("node-id",r),e.dataTransfer.setData("node-type",a),v({id:r,type:a})},onDragEnd:function(){return h()},onDragOver:function(e){if(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="move",e.currentTarget.classList.contains("fl-builder-node-outline-item")){if(wr(e.dataTransfer.types,a)){var t=e.currentTarget.getBoundingClientRect(),n=t.y,r=t.height;Er(e.clientY,n,r)&&"before"!==E?O("before"):Er(e.clientY,n,r)||"after"===E||O("after")}}else console.warn("Problem: Something other than fl-builder-node-outline-item-content")},onDragLeave:function(){E&&O(!1)},onDrop:function(e){if(E&&O(!1),h(),wr(e.dataTransfer.types,a)){var t=e.currentTarget.getBoundingClientRect(),n=t.y,r=t.height,i=Er(e.clientY,n,r)?"before":"after",l=e.dataTransfer.getData("node-id"),u=Xt(l),d=u.position,f=u.parent,p=o;if(c===f){if("before"===i){if(d===o-1)return;p=d>o?o:Math.max(0,o-1)}else if("after"===i){if(d===o+1)return;p=d>o?o+1:o}}else p="after"===i?o+1:o;s(l,p,c,[c,f])}}},"column-group"!==a&&f().createElement(Fr,{id:r,type:a,global:u,position:o,level:i,toggleContent:function(){return S(!w)},isShowingContent:w}),"module"!==a&&!m&&!u&&f().createElement(Mr,{id:r,type:a}),0<Object.keys(p).length&&w&&f().createElement("ul",null,Object.values(p).sort(Ee).map((function(t,n){return f().createElement(e,Ar({key:t.node,level:"column-group"===a?i:i+1,index:n},t))}))))},Mr=function(e){var t=e.id,n=e.type,r=Dr(e,Lr),o=Pr((0,d.useState)(!1),2),i=o[0],a=o[1],l=tr().moveNode,u=ir.use().clearDraggingItem,c=en()("fl-builder-node-empty-drop-area",{"is-over":i});return f().createElement("div",Ar({className:c,onDragOver:function(e){"column"===n&&wr(e.dataTransfer.types,"module")&&a(!0)},onDragLeave:function(){return i&&a(!1)},onDrop:function(e){if(a(!1),u(),"column"===n&&wr(e.dataTransfer.types,"module")){var r=e.dataTransfer.getData("node-id");l(r,0,t)}}},r),f().createElement("div",{className:"drop-area"}))},Fr=(0,d.memo)((function(e){var t=e.id,n=e.type,r=e.global,o=e.level,i=e.toggleContent,a=e.isShowingContent,l=void 0===a||a,u=(0,Qt().useNodeSettings)(t),c=rn(),s=c.setContextMenu,d=c.contextMenu,p=c.clearContextMenu,m=tr(),g=m.openSettings,y=m.deleteNode,v=m.copyNode,h=m.scrollToNode,b=nr().simpleUi,E=function(e){var t=e.responsive_display,n=void 0===t?"":t,r=e.visibility_display;return""!==n||""!==(void 0===r?"":r)}(u),O="row"===n&&!r,_=!0;"module"===n&&(_=Cr(u.type));var w=en()("fl-builder-node-outline-item-content",{"has-context-menu":!1!==d&&t===d.id,"is-global-node":r,"is-missing-definition":!_}),S=Pr(vr({onClick:function(){_&&h(t)},onDoubleClick:function(){_&&(h(t),g(t))}}),2),C=S[0],L=S[1];return f().createElement("div",{className:w,onClick:C,onDoubleClick:L,onPointerEnter:function(){var e=document.querySelector(".fl-node-".concat(t));e&&(e.style.boxShadow="inset 0 0 0 2px var(--fl-builder-".concat(r?"orange":"blue"," ), 0 0 0 1px hsla( 210, 0%, 0%, .5 )"))},onPointerLeave:function(){var e=document.querySelector(".fl-node-".concat(t));e&&(e.style.boxShadow="")},onContextMenu:function(e){if(!1===d||t!==d.id){var o={settings:{label:"Open Settings",isEnabled:_,onClick:function(){h(t),g(t)}},clone:{label:"Duplicate",isEnabled:_&&!b,onClick:function(){return v(t)}},delete:{label:FLBuilderStrings.remove,isEnabled:!b,status:"destructive",onClick:function(){return y(t)}}};s({id:t,items:o,type:n,global:r,x:e.clientX,y:e.clientY}),e.preventDefault()}else p()}},O&&f().createElement("span",{className:"fl-builder-outline-item-gutter"},f().createElement("button",{className:!l&&"is-hiding-content",onClick:function(e){i(e),e.preventDefault(),e.stopPropagation()}},f().createElement(zr,null))),f().createElement("span",{className:"fl-builder-outline-item-icon-wrap"},f().createElement(Hr,{type:n,moduleType:u.type,settings:u,hasDefinition:_})),f().createElement("span",{className:"fl-builder-outline-item-label-wrap"},f().createElement(Br,{type:n,settings:u,level:o})),f().createElement(Ur,{id:t,type:n,size:parseFloat(u.size),width:u.max_content_width,widthUnit:u.max_content_width_unit}),E&&f().createElement("span",{className:"fl-builder-outline-item-icon-wrap"},f().createElement(fr,null)))})),Br=function(e){var t=e.type,n=e.settings,r=void 0===n?{}:n,o=e.level,i=void 0!==r.type?br(r.type):t,a="";if("column"===t&&3<=o&&(i=FLBuilderStrings.childColumn),"row"===i&&(i=FLBuilderStrings.row),"column"===i&&(i=FLBuilderStrings.column),"module"===t&&"type"in r)switch(r.type){case"heading":i=r.tag,a=r.heading;break;case"html":a=r.html;break;case"rich-text":case"icon":case"button":a=r.text;break;case"callout":a=r.title}if("node_label"in r&&""!==r.node_label){var l=r.node_label;a=a&&""!==a?l+" - "+a:l}return f().createElement(f().Fragment,null,i,a&&f().createElement("span",{style:{opacity:.6}},": "+function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,pr.sanitize)(e,{ALLOWED_TAGS:[]}).substring(0,48)}(a)))},Ir=function(e){var t=e.children,n=e.style,r=Dr(e,Tr);return f().createElement("span",Ar({style:jr({textTransform:"lowercase",background:"rgba(0,0,0,.05)",color:"#828282",fontSize:11,flex:"0 0 auto",display:"inline-flex",padding:"2px 6px",borderRadius:25,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:"monospace"},n),title:t},r),t)},Hr=(0,d.memo)((function(e){var t=e.type,n=e.moduleType,r=e.settings,o=e.hasDefinition;switch(t){case"row":return f().createElement(ur,null);case"column":return f().createElement(lr,null);case"module":var i=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=FLBuilderConfig.contentItems.module;if(!n)return dr;switch(e){case"rich-text":return sr;case"photo":return cr;case"icon":if("icon"in t)return function(){return f().createElement("i",{className:t.icon,"aria-hidden":"true"})};break;default:var o=r.find((function(t){return e===t.slug}));return o&&"icon"in o?function(){return f().createElement("div",{style:{flexShrink:0,width:16,height:16,fill:"currentColor"},dangerouslySetInnerHTML:{__html:o.icon}})}:ar}}(n,r,o);return f().createElement(i,null)}})),Ur=function(e){var t=e.id,n=e.type,r=e.size,o=e.width,i=e.widthUnit,a=qt().resizing,l="";return a&&a.includes(t)&&("column"===n?l+=" ".concat(r,"% "):"row"===n&&(l+="Max: ".concat(o+i))),""===l?null:f().createElement(Ir,{style:{background:"var(--fl-builder-blue)",color:"white"}},l)},zr=function(){return f().createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.79289 1.29289C3.18342 0.902369 3.81658 0.902369 4.20711 1.29289L7.20711 4.29289C7.59763 4.68342 7.59763 5.31658 7.20711 5.70711L4.20711 8.70711C3.81658 9.09763 3.18342 9.09763 2.79289 8.70711C2.40237 8.31658 2.40237 7.68342 2.79289 7.29289L5.08579 5L2.79289 2.70711C2.40237 2.31658 2.40237 1.68342 2.79289 1.29289Z",fill:"currentColor"}))};const Gr=function(){var e=(0,Qt().useNodesWithoutSettings)(null),t=Object.values(e).sort(Ee),n=Pr((0,d.useState)(!1),2),r=n[0],o=n[1],i=!1!==r,a={draggingItem:r,isDraggingItem:i,clearDraggingItem:function(){return o(!1)},setDraggingItem:function(e){return o(e)}},l=en()("fl-builder-node-outline",kr({"is-dragging":i},"is-dragging-type-".concat(r.type),r));return f().createElement(ir.Provider,{value:a},f().createElement("ul",{className:l},t.map((function(e,t){return f().createElement(Rr,Ar({key:e.node,level:1,index:t},e))}))))};var Wr=["className"];function Yr(){return Yr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yr.apply(this,arguments)}function Zr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Vr=function(e){var t=e.className,n=Zr(e,Wr),r=en()("fl-builder-workspace-panel",t);return f().createElement("div",Yr({className:r},n))};const Qr=function(){var e=z(),t=e.currentPanel,n=e.panels;if(!(t in n))return null;var r,o=n[t],i=o.routerProps,a=o.onHistoryChanged,l=o.root,u=o.render,c=o.frame,s=void 0===c?Vr:c,p=o.className,g=o.wrapClassName,y=!1===s?d.Fragment:s,v=l||u;return f().createElement("div",{className:g},f().createElement(y,{className:!1!==s&&p},f().createElement(m.Root,{routerProps:(r=i,"function"==typeof r?r():r),onHistoryChanged:a},f().createElement(v,null))))};!function(){FLBuilder.addHook("didInitUI",(function(){var t=document.querySelector(".fl-builder-bar-actions"),n=t.querySelector(".fl-builder--saving-indicator"),r=document.createElement("button");r.classList.add("fl-builder-button","fl-builder-button-silent"),r.innerHTML='<svg width="20px" x="0px" y="0px" viewBox="0 0 238 238" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><g id="EMF-by-Xara-X" serif:id="EMF by Xara X"><path d="M170.734,183.655l-32.623,-35.483c-19.089,5.332 -40.624,6.6 -61.992,2.707c-54.118,-9.858 -86.793,-49.103 -72.935,-87.598c13.859,-38.494 69.029,-61.737 123.148,-51.878c7.553,1.375 14.687,3.324 21.334,5.762l-6.462,12.195c-5.266,-1.731 -10.922,-3.111 -16.913,-4.082c-42.267,-6.842 -85.356,9.291 -96.18,36.014c-10.824,26.722 14.695,53.963 56.963,60.808c41.535,6.724 83.865,-8.739 95.589,-34.637l13.176,22.511l0.064,0.113c-4.574,7.429 -10.792,14.102 -18.26,19.85l27.897,25.151c15.605,14.906 -15.073,47.906 -32.806,28.567Zm9.595,-26.401l-34.191,-30.641c-36.604,14.182 -70.685,6.876 -98.296,-5.59c23.399,17.456 58.534,24.774 94.542,14.959l30.526,29.179c1.989,-3.304 4.559,-6.305 7.419,-7.907Z"/><path d="M42.292,90.276l27.528,0l16.45,-26.827l34.049,52.376l44.83,-68.557l34.474,58.905l37.878,0l-29.225,-7.239l-43.694,-98.934l-43.696,82.469l-33.055,-51.241l-24.826,54.79l-20.713,4.258Z" style="fill:#1195d0;"/></g></svg>',r.onclick=function(){return e()},r.title="Query Monitor",jQuery("#query-monitor-main").length>0&&t.insertBefore(r,n)}));var e=function(){var e=document.getElementById("query-monitor-main");if(t(e)){(n=document.getElementById("wp-admin-bar-query-monitor").getElementsByTagName("a"))[0].click()}else{var n=document.getElementsByClassName("qm-button-container-close");n[0].click()}},t=function(e){return"none"===window.getComputedStyle(e).display}}();const qr=function(){var e=z(),t=e.isEditing,n=e.shouldShowShortcuts,r=e.colorScheme,o=en()(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"fluid-color-scheme-".concat(r),r));return f().createElement("div",{className:o},f().createElement(gn,null,f().createElement(Bn,null),t&&f().createElement(f().Fragment,null,f().createElement(In,null),f().createElement(Dn,null),n&&f().createElement(Zn,null),f().createElement(Qr,null))))};function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){Kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jr,eo=tr(),to=eo.registerPanel,no=eo.displayPanel,ro=eo.togglePanel,oo=window.FL||{},io=$r($r($r({},oo.Builder||{}),s),{},{data:l,registerPanel:to,displayPanel:no,togglePanel:ro});window.FL=$r($r({},oo),{},{Builder:io}),(void 0===(Jr=V().showOutlinePanel)||Jr)&&function(){var e=window.FL.Builder,t=e.registerPanel,n=e.togglePanel;t("outline",{label:"Outline",render:Gr,root:Gr}),FLBuilder.addHook("didInitUI",(function(){var e=document.querySelector(".fl-builder-bar-actions"),t=e.querySelector(".fl-builder--saving-indicator"),r=document.createElement("button");r.classList.add("fl-builder-button","fl-builder-button-silent"),r.innerHTML='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.38672 5.33984C2.1582 5.33984 2.77344 4.72461 2.77344 3.95312C2.77344 3.19141 2.1582 2.56641 1.38672 2.56641C0.625 2.56641 0 3.19141 0 3.95312C0 4.72461 0.625 5.33984 1.38672 5.33984ZM5.97656 4.89062H14.0565C14.5838 4.89062 15.0038 4.48047 15.0038 3.95312C15.0038 3.42578 14.5936 3.01562 14.0565 3.01562H5.97656C5.45898 3.01562 5.03906 3.42578 5.03906 3.95312C5.03906 4.48047 5.44922 4.89062 5.97656 4.89062ZM3.88672 11.3457C4.64844 11.3457 5.27344 10.7305 5.27344 9.95898C5.27344 9.19727 4.64844 8.57227 3.88672 8.57227C3.11523 8.57227 2.49023 9.19727 2.49023 9.95898C2.49023 10.7305 3.11523 11.3457 3.88672 11.3457ZM8.47656 10.8965H16.5794C17.1068 10.8965 17.5169 10.4863 17.5169 9.95898C17.5169 9.43164 17.1068 9.02148 16.5794 9.02148H8.47656C7.94922 9.02148 7.53906 9.43164 7.53906 9.95898C7.53906 10.4863 7.94922 10.8965 8.47656 10.8965ZM6.37695 17.3516C7.14844 17.3516 7.76367 16.7363 7.76367 15.9648C7.76367 15.2031 7.14844 14.5781 6.37695 14.5781C5.61523 14.5781 4.99023 15.2031 4.99023 15.9648C4.99023 16.7363 5.61523 17.3516 6.37695 17.3516ZM10.9668 16.9023H19.0251C19.5524 16.9023 19.9626 16.4922 19.9626 15.9648C19.9626 15.4375 19.5524 15.0273 19.0251 15.0273H10.9668C10.4395 15.0273 10.0293 15.4375 10.0293 15.9648C10.0293 16.4922 10.4395 16.9023 10.9668 16.9023Z" fill="currentColor"/></svg>',r.onclick=function(){return n("outline")},r.title="Outline",e.insertBefore(r,t)}))}();var ao=document.getElementById("fl-ui-root");ao.classList.add("fluid","fl","uid"),(0,p.render)(f().createElement(qr,null),ao)})()})();
js/fl-builder-preview.js CHANGED
@@ -1764,6 +1764,10 @@
1764
  preview = null,
1765
  i = 0;
1766
 
 
 
 
 
1767
  for( ; i < fields.length; i++) {
1768
 
1769
  field = fields.eq(i);
1764
  preview = null,
1765
  i = 0;
1766
 
1767
+ if ( FLBuilderConfig.safemode ) {
1768
+ return false;
1769
+ }
1770
+
1771
  for( ; i < fields.length; i++) {
1772
 
1773
  field = fields.eq(i);
js/fl-builder.js CHANGED
@@ -9888,6 +9888,8 @@
9888
  // Tell the server that the builder is active.
9889
  data.fl_builder = 1;
9890
 
 
 
9891
  // Append the builder namespace to the action.
9892
  data.fl_action = data.action;
9893
 
9888
  // Tell the server that the builder is active.
9889
  data.fl_builder = 1;
9890
 
9891
+ data.safemode = FLBuilderConfig.safemode
9892
+
9893
  // Append the builder namespace to the action.
9894
  data.fl_action = data.action;
9895
 
js/fl-builder.min.js CHANGED
@@ -1 +1 @@
1
- var FLBuilderColorPicker;!function(u){var i=[],t=navigator.userAgent.toLowerCase(),l="Microsoft Internet Explorer"===navigator.appName,o=l?parseFloat(t.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,n=l&&o<10,s=!1,r=["-moz-","-webkit-","-o-","-ms-"];function a(e,t){return e="top"===e?"top":"left",t=Array.isArray(t)?t:Array.prototype.slice.call(arguments,1),"webkit"===s?(o=[],i="top"===(i=e)?"0% 0%,0% 100%,":"0% 100%,100% 100%,",l=d(l=t),u.each(l,function(e,t){o.push("color-stop("+parseFloat(t.stop)/100+", "+t.color+")")}),"-webkit-gradient(linear,"+i+o.join(",")+")"):r[s]+"linear-gradient("+e+", "+t.join(", ")+")";var i,l,o}function d(e){var n=[],s=[],t=[],i=e.length-1;return u.each(e,function(e,t){var i=t,l=!1,o=t.match(/1?[0-9]{1,2}%$/);o&&(i=t.replace(/\s?1?[0-9]{1,2}%$/,""),l=o.shift()),n.push(i),s.push(l)}),!1===s[0]&&(s[0]="0%"),!1===s[i]&&(s[i]="100%"),s=function e(t){var i,l,o,n,s=0,r=t.length-1,a=0,d=!1;if(t.length<=2||u.inArray(!1,t)<0)return t;for(;a<t.length-1;)d||!1!==t[a]?d&&!1!==t[a]&&(r=a,a=t.length):(s=a-1,d=!0),a++;l=r-s;n=parseInt(t[s].replace("%"),10);i=(parseFloat(t[r].replace("%"))-n)/l;a=s+1;o=1;for(;a<r;)t[a]=n+o*i+"%",o++,a++;return e(t)}(s),u.each(s,function(e){t[e]={color:n[e],stop:s[e]}}),t}flBuilderParseColorValue=function(e){var e=e.replace(/\s+/g,""),t=-1!==e.indexOf("rgba")?parseFloat(100*e.replace(/^.*,(.+)\)/,"$1")):100;return{value:e,alpha:t,rgba:t<100}},u.fn.flBuilderColorPickerGradient=function(){var e=arguments;return this.each(function(){n?function(e,l){var o,t,n,s,r;e="top"===e?"top":"left",l=Array.isArray(l)?l:Array.prototype.slice.call(arguments,1),o="top"===e?0:1,t=u(this),n=l.length-1,s='<div class="iris-ie-gradient-shim" style="position:absolute;'+(1==o?"height":"width")+":100%;"+(1==o?"left":"top")+":%start%;"+(1==o?"right":"bottom")+':%end%;filter:%filter%;" data-color:"%color%"></div>',r="","static"===t.css("position")&&t.css({position:"relative"}),l=d(l),u.each(l,function(e,t){var i;if(e===n)return!1;e=l[e+1],t.stop!==e.stop&&(i=100-parseFloat(e.stop)+"%",t.octoHex=new FLBuilderColor(t.color).toIEOctoHex(),e.octoHex=new FLBuilderColor(e.color).toIEOctoHex(),e="progid:DXImageTransform.Microsoft.Gradient(GradientType="+o+", StartColorStr='"+t.octoHex+"', EndColorStr='"+e.octoHex+"')",r+=s.replace("%start%",t.stop).replace("%end%",i).replace("%filter%",e))}),t.find(".iris-ie-gradient-shim").remove(),u(r).prependTo(t)}.apply(this,e):u(this).css("backgroundImage",a.apply(this,e))})},u.fn.flBuilderColorPickerRaninbowGradient=function(e,t){var i,l,o;for(e=e||"top",i="hsl(%h%,"+(t=u.extend({},{s:100,l:50},t)).s+"%,"+t.l+"%)",l=0,o=[];l<=360;)o.push(i.replace("%h%",l)),l+=30;return this.each(function(){u(this).flBuilderColorPickerGradient(e,o)})},(FLBuilderColorPicker=function(e){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>';this.options=u.extend({},{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!"}},e),(!1==n||!0==n&&7<o)&&this._init()}).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 e=this;u(e.options.elements);u("html").hasClass("fl-color-picker-init")?this._prepareColorFields():(this._color=new FLBuilderColor("#ff0000").setHSpace(e.options.mode),i=this.options.presets,!1===s&&function(){var i,l="backgroundImage";n?s="filter":(i=u('<div id="iris-gradtest" />'),u.each(r,function(e,t){if(i.css(l,t+"linear-gradient(top,#fff,#000)"),i.css(l).match("gradient"))return s=e,!1}),!1===s&&(i.css("background","-webkit-gradient(linear,0% 0%,0% 100%,from(#fff),to(#000))"),i.css(this.bgImageString).match("gradient")&&(s="webkit")),i.remove())}(),e.picker=u(this._html).appendTo("body"),l?9===o?e.picker.addClass("iris-ie-9"):o<=8&&e.picker.addClass("iris-ie-lt9"):t.indexOf("compatible")<0&&t.indexOf("khtml")<0&&t.match(/mozilla/)&&e.picker.addClass("iris-mozilla"),e.controls={square:e.picker.find(".iris-square"),squareDrag:e.picker.find(".iris-square-value"),horiz:e.picker.find(".iris-square-horiz"),vert:e.picker.find(".iris-square-vert"),strip:e.picker.find(".iris-strip"),stripSlider:e.picker.find(".iris-strip .iris-slider-offset")},"hsv"===e.options.mode&&e._has("l",e.options.controls)?e.options.controls=e._defaultHSVControls:"hsl"===e.options.mode&&e._has("v",e.options.controls)&&(e.options.controls=e._defaultHSLControls),e.hue=e._color.h(),this._setTemplates(),this._ui=u(".fl-color-picker-ui"),this._iris=u(".iris-picker"),this._wrapper=u("body"),this._ui.prepend(this._hexHtml).append(this._presetsHtml),e.element=this._ui.find(".fl-color-picker-input"),e._initControls(),e.active="external",e._change(),e._addInputListeners(e.element),this._buildUI(),this._prepareColorFields(),this._pickerControls(),this._presetsControls(),this._buildAlphaUI(),u("html").addClass("fl-color-picker-init"))},_prepareColorFields:function(){var n=this;u(".fl-color-picker-value").each(function(){var e=u(this),t=e.val(),i=e.parent().find(".fl-color-picker-color"),l=flBuilderParseColorValue(t),o="";t&&(i.hasClass("fl-color-picker-alpha-enabled")&&l.rgba?o=e.val().toString():!i.hasClass("fl-color-picker-alpha-enabled")&&l.rgba?(l=(l=t.replace("rgba","rgb")).substr(0,l.lastIndexOf(","))+")",n._color._alpha=1,o=l,e.val(l)):o="#"+e.val().toString(),i.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,e){var l=!1;return u.each(e,function(e,t){if(i===t)return!(l=!0)}),l},_buildUI:function(){var i=this;i._presetsList=this._ui.find(".fl-color-picker-presets-list"),i._presetsList.html(""),0<this.options.presets.length?u.each(this.options.presets,function(e,t){i._addPresetView(t)}):i._presetsList.append(this._noPresetsTpl)},_addPresetView:function(e){var t=this._presetsList.find(".fl-color-picker-no-preset"),t=(0<t.length&&t.remove(),u(this._presetsTpl)),i=FLBuilderColor(e);t.attr("data-color",e).find(".fl-color-picker-preset-color").css({backgroundColor:i.toString()}).end().find(".fl-color-picker-preset-label").html(i.toString()),this._presetsList.append(t)},_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(){u(this).remove()})},_pickerControls:function(){var i=this;this._wrapper.on("click",".fl-color-picker-color",function(){var e=u(this);i._currentElement=e.parent().find(".fl-color-picker-value"),i._ui.position({my:"left top",at:"left bottom",of:e,collision:"flip",using:function(e,t){i._togglePicker(e)}})}).on("click",".fl-color-picker-clear",function(){var e=u(this);i._currentElement=e.parent().find(".fl-color-picker-value"),e.prev(".fl-color-picker-color").css({backgroundColor:"transparent"}).addClass("fl-color-picker-empty"),i._setColor(""),i.element.val(""),i._currentElement.val("").trigger("change")}),u(document).on("mousedown",function(e){0===u(e.target).closest(".fl-color-picker-ui").length&&(presets=i._ui.find(".fl-color-picker-presets"),presetsCloseLabel=presets.find(".fl-color-picker-presets-close-label"),presetsList=presets.find(".fl-color-picker-presets-list"),presetsCloseLabel.hasClass("fl-color-picker-active")&&0<(list=presetsList.find("li").find("span.fl-color-picker-preset-label")).length&&(presets=[],u.each(list,function(e,t){presets.push(u(t).text())}),u(FLBuilder.colorPicker).trigger("presetSorted",{presets:presets})),u(".fl-color-picker-ui.fl-color-picker-active").removeClass("fl-color-picker-active"))})},_presetsControls:function(){var i=this,e=i._ui.find(".fl-color-picker-preset-add"),l=i._ui.find(".fl-color-picker-presets"),o=l.find(".fl-color-picker-presets-open-label"),n=l.find(".fl-color-picker-presets-close-label"),s=l.find(".fl-color-picker-presets-list");e.off("click").on("click",function(){i._addPreset(i.element.val())}),s.css({height:i.element.innerHeight()+i._iris.innerHeight()+14+"px"}).hide(),s.sortable(),l.off("click").on("click",".fl-color-picker-presets-toggle",function(){n.hasClass("fl-color-picker-active")&&0<(list=s.find("li").find("span.fl-color-picker-preset-label")).length&&(l=[],u.each(list,function(e,t){l.push(u(t).text())}),u(FLBuilder.colorPicker).trigger("presetSorted",{presets:l})),o.toggleClass("fl-color-picker-active"),n.toggleClass("fl-color-picker-active"),s.slideToggle(500)}).on("click",".fl-color-picker-preset",function(e){var t=new FLBuilderColor(u(this).data("color").toString());i._setColor(t),i._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:t.toString()}).removeClass("fl-color-picker-empty"),o.toggleClass("fl-color-picker-active"),n.toggleClass("fl-color-picker-active"),s.slideToggle(500)}).on("click",".fl-color-picker-preset-remove",function(e){e.stopPropagation(),i._removePreset(u(this).parent().data("color"))})},_removePreset:function(e){var t;confirm(this.options.labels.removePresetConfirm)&&(e=e.toString(),-1<(t=i.indexOf(e))&&(i.splice(t,1),this.options.presets=i,this._presetsList.find('.fl-color-picker-preset[data-color="'+e+'"]').slideUp(function(){u(this).remove()})),i.length<1&&this._presetsList.append(this._noPresetsTpl),u(this).trigger("presetRemoved",{presets:i}))},_addPreset:function(e){if(!this._CheckValidColor(e))return alert(this.options.labels.noneColorSelected),!1;e=e.toString().replace(/^#/,"");""===e?alert(this.options.labels.noneColorSelected):-1<i.indexOf(e)?alert(this.options.labels.alreadySaved.replace("%s","#"+e)):(this._addPresetView(e),this._addPresetFeedback(),i.push(e),this.options.presets=i,u(this).trigger("presetAdded",{presets:i}))},_CheckValidColor:function(e){if(!e.match(/^#/)&&!e.match(/^rgb/)&&!e.match(/^hsl/))return!1;var t=document.getElementById("divValidColor");return t||((t=document.createElement("div")).id="divValidColor"),t.style.borderColor="",t.style.borderColor=e,0!=t.style.borderColor.length},_togglePicker:function(e){var t=this;this._ui.hasClass("fl-color-picker-active")?(this._ui.removeClass("fl-color-picker-active"),e&&setTimeout(function(){t._ui.css(e),t._ui.addClass("fl-color-picker-active"),t._setColor(t._currentElement.val())},200)):(e&&t._ui.css(e),setTimeout(function(){t._ui.addClass("fl-color-picker-active"),t._setColor(t._currentElement.val())},200))},_paint:function(){this._paintDimension("right","strip"),this._paintDimension("top","vert"),this._paintDimension("left","horiz")},_paintDimension:function(e,t){var i,l=this,o=l._color,n=l.options.mode,s=l._getHSpaceColor(),r=l.controls[t],a=l.options.controls;if(t!==l.active&&("square"!==l.active||"strip"===t))switch(a[t]){case"h":if("hsv"===n){switch(s=o.clone(),t){case"horiz":s[a.vert](100);break;case"vert":s[a.horiz](100);break;case"strip":s.setHSpace("hsl")}i=s.toHsl()}else i="strip"===t?{s:s.s,l:s.l}:{s:100,l:s.l};r.flBuilderColorPickerRaninbowGradient(e,i);break;case"s":"hsv"===n?"vert"===t?i=[o.clone().a(0).s(0).toCSS("rgba"),o.clone().a(1).s(0).toCSS("rgba")]:"strip"===t?i=[o.clone().s(100).toCSS("hsl"),o.clone().s(0).toCSS("hsl")]:"horiz"===t&&(i=["#fff","hsl("+s.h+",100%,50%)"]):i="vert"===t&&"h"===l.options.controls.horiz?["hsla(0, 0%, "+s.l+"%, 0)","hsla(0, 0%, "+s.l+"%, 1)"]:["hsl("+s.h+",0%,50%)","hsl("+s.h+",100%,50%)"],r.flBuilderColorPickerGradient(e,i);break;case"l":i="strip"===t?["hsl("+s.h+",100%,100%)","hsl("+s.h+", "+s.s+"%,50%)","hsl("+s.h+",100%,0%)"]:["#fff","rgba(255,255,255,0) 50%","rgba(0,0,0,0) 50%","rgba(0,0,0,1)"],r.flBuilderColorPickerGradient(e,i);break;case"v":i="strip"===t?[o.clone().v(100).toCSS(),o.clone().v(0).toCSS()]:["rgba(0,0,0,0)","#000"],r.flBuilderColorPickerGradient(e,i)}},_getHSpaceColor:function(){return"hsv"===this.options.mode?this._color.toHsv():this._color.toHsl()},_dimensions:function(e){var t,i=this,l=i.options,o=i.controls.square,n=i.picker.find(".iris-strip"),s=l.border?l.width-20:l.width;if(e&&(o.css("width",""),n.css("width",""),i.picker.css({width:"",height:""})),e=s*(parseFloat("77.5%")/100),s=s*(parseFloat("12%")/100),t=l.border?20+e:e,o.width(e).height(e),n.height(e).width(s),i.picker.css({width:l.width,height:t}),!l.palettes)return i.picker.css("paddingBottom","")},_addInputListeners:function(o){function e(e){var t=new FLBuilderColor(o.val()),i=o.val().replace(/^#/,""),l=n._currentElement.hasClass("fl-color-picker-empty");if(o.removeClass("iris-error"),t.error)""!==i&&o.addClass("iris-error");else if(t.toString()!==n._color.toString()||""!==n._color.toString()&&l)if("keyup"===e.type)i.match(/^[0-9a-fA-F]{3}$/)||(n._setColor(i),n._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:FLBuilderColor(i).toString()}).removeClass("fl-color-picker-empty"),n._currentElement.val(i).trigger("change"));else if("paste"===e.type)return i=e.originalEvent.clipboardData.getData("text").replace(/^#/,""),hex=FLBuilderColor(i).toString(),n._setColor(i),o.val(hex),n._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:hex}).removeClass("fl-color-picker-empty"),n._currentElement.val(i).trigger("change"),!1}var n=this;o.on("change",e).on("keyup",n._debounce(e,100))},_initControls:function(){var n=this,s=n.controls,e=s.square,i=n.options.controls,l=n._scale[i.strip];s.stripSlider.slider({orientation:"horizontal",max:l,slide:function(e,t){n.active="strip","h"===i.strip&&(t.value=l-t.value),n._color[i.strip](t.value),n._change.apply(n,arguments)}}),s.squareDrag.draggable({containment:s.square.find(".iris-square-inner"),zIndex:1e3,cursor:"move",drag:function(e,t){n._squareDrag(e,t)},start:function(){e.addClass("iris-dragging"),u(this).addClass("ui-state-focus")},stop:function(){e.removeClass("iris-dragging"),u(this).removeClass("ui-state-focus")}}).on("mousedown mouseup",function(e){var t="ui-state-focus";e.preventDefault(),"mousedown"===e.type?(n.picker.find("."+t).removeClass(t).blur(),u(this).addClass(t).focus()):u(this).removeClass(t)}).on("keydown",function(e){var t=s.square,i=s.squareDrag,l=i.position(),o=2;switch(e.altKey&&(o*=10),e.keyCode){case 37:l.left-=o;break;case 38:l.top-=o;break;case 39:l.left+=o;break;case 40:l.top+=o;break;default:return!0}l.left=Math.max(0,Math.min(l.left,t.width())),l.top=Math.max(0,Math.min(l.top,t.height())),i.css(l),n._squareDrag(e,{position:l}),e.preventDefault()}),e.mousedown(function(e){var t;1===e.which&&u(e.target).is("div")&&(t=n.controls.square.offset(),t={top:e.pageY-t.top,left:e.pageX-t.left},e.preventDefault(),n._squareDrag(e,{position:t}),e.target=n.controls.squareDrag.get(0),n.controls.squareDrag.css(t).trigger(e))})},_squareDrag:function(e,t){var i=this,l=i.options.controls,o=i._squareDimensions(),n=Math.round((o.h-t.position.top)/o.h*i._scale[l.vert]),o=i._scale[l.horiz]-Math.round((o.w-t.position.left)/o.w*i._scale[l.horiz]);i._color[l.horiz](o)[l.vert](n),i.active="square",i._change.apply(i,arguments)},_setColor:function(e){var t=this,i=t.options.color;""===e?(e="#ff0000",t.default=!0):t.default=!1,(e=""+(t.options.color=e)).replace(/^#/,""),(e=new FLBuilderColor(e).setHSpace(t.options.mode)).error?t.options.color=i:(t._color=e,t.options.color=t._color.toString(),t.active="external",t._change())},_squareDimensions:function(e){var t=this.controls.square;return void 0!==e&&t.data("dimensions")?t.data("dimensions"):(this.controls.squareDrag,e={w:t.width(),h:t.height()},t.data("dimensions",e),e)},_isNonHueControl:function(e,t){return"square"===e&&"h"===this.options.controls.strip||"external"!==t&&("h"!==t||"strip"!==e)},_change:function(){var l=this,o=l.controls,n=l._getHSpaceColor(),e=["square","strip"],s=l.options.controls,t=s[l.active]||"external",i=l.hue;"strip"===l.active?e=[]:"external"!==l.active&&e.pop(),u.each(e,function(e,t){var i;if(t!==l.active)switch(t){case"strip":i="h"===s.strip?l._scale[s.strip]-n[s.strip]:n[s.strip],o.stripSlider.slider("value",i);break;case"square":i=l._squareDimensions(),i={left:n[s.horiz]/l._scale[s.horiz]*i.w,top:i.h-n[s.vert]/l._scale[s.vert]*i.h},l.controls.squareDrag.css(i)}}),n.h!==i&&l._isNonHueControl(l.active,t)&&l._color.h(i),l.hue=l._color.h(),l.options.color=l._color.toString(),l.element.is(":input")&&!l._color.error&&(l.element.removeClass("iris-error"),l.element.val()!==l._color.toString()&&(l.element.val(l._color.toString()),this._currentElement&&(!l.default||l.default&&"external"!==l.active?this._currentElement.val(l._color.toString().replace(/^#/,"")).parent().find(".fl-color-picker-color").css({backgroundColor:l._color.toString()}).removeClass("fl-color-picker-empty"):this._currentElement.val(""),l._wrapper.find(".fl-alpha-slider-offset").css("background-color",l._color.toString()),this._currentElement.trigger("change")))),l._paint(),l._inited=!0,l.active=!1},_debounce:function(o,n,s){var r,a;return function(){var e=this,t=arguments,i=function(){r=null,s||(a=o.apply(e,t))},l=s&&!r;return clearTimeout(r),r=setTimeout(i,n),a=l?o.apply(e,t):a}},_buildAlphaUI:function(){var t=this;t._wrapper.on("click",".fl-color-picker-color",function(){var e=u(this);t._currentElement.val();e.hasClass("fl-color-picker-alpha-enabled")?(t._ui.find(".fl-alpha-wrap").length<=0&&u(t._alphaHtml).insertAfter(t._iris),t.picker.addClass("fl-color-alpha-enabled"),t._pickerAlphaControls()):(t.picker.removeClass("fl-color-alpha-enabled"),t._ui.find(".fl-alpha-wrap").remove())})},_pickerAlphaControls:function(){var l=this,e=l._currentElement,t=flBuilderParseColorValue(e.val()),e=parseFloat(t.alpha/100),i=l._wrapper,o=l._ui.find(".fl-alpha-wrap"),n=o.find(".fl-alpha-slider"),s=o.find(".fl-alpha-text"),r=o.find(".fl-alpha-slider-offset");alphaHandle=o.find(".ui-slider-handle"),s.text(e<1?e:""),n.slider({orientation:"vertical",slide:function(e,t){var i=parseFloat(t.value/100);l._color._alpha=i,s.text(i<1?i:""),l._change.apply(l,arguments)},create:function(){r.css({backgroundColor:t.value}),i.on("click",".fl-color-picker-clear",function(){l._color._alpha=1,s.text(""),n.slider("value",100).trigger("slide")})},value:t.alpha,step:1,min:0,max:100})}}}(jQuery),!function(e,u){function n(e,t){return this instanceof n?this._init(e,t):new n(e,t)}n.fn=n.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!==u&&this.a(e.a),this[t=e.r!==u?"fromRgb":e.l!==u?"fromHsl":e.v!==u?"fromHsv":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 n(this.toInt()),t=["_alpha","_hSpace","_hsl","_hsv","error"],i=t.length-1;0<=i;i--)e[t[i]]=this[t[i]];return e},setHSpace:function(e){return this._hSpace="hsv"===e?e:"hsl",this},noop:function(){return this},fromCSS:function(e){var t,i=/^(rgb|hs(l|v))a?\(/;if(this.error=!1,(e=e.replace(/^\s+/,"").replace(/\s+$/,"").replace(/;$/,"")).match(i)&&e.match(/\)$/)){if((t=e.replace(/(\s|%)/g,"").replace(i,"").replace(/,?\);?$/,"").split(",")).length<3)return this._error();if(4===t.length&&(this.a(parseFloat(t.pop())),this.error))return this;for(var l=t.length-1;0<=l;l--)if(t[l]=parseInt(t[l],10),isNaN(t[l]))return this._error();return e.match(/^rgb/)?this.fromRgb({r:t[0],g:t[1],b:t[2]}):e.match(/^hsv/)?this.fromHsv({h:t[0],s:t[1],v:t[2]}):this.fromHsl({h:t[0],s:t[1],l:t[2]})}return this.fromHex(e)},fromRgb:function(e,t){return"object"!=typeof e||e.r===u||e.g===u||e.b===u?this._error():(this.error=!1,this.fromInt(parseInt((e.r<<16)+(e.g<<8)+e.b,10),t))},fromHex:function(e){return 3===(e=e.replace(/^#/,"").replace(/^0x/,"")).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,i,l,o,n;return"object"!=typeof e||e.h===u||e.s===u||e.l===u?this._error():(this._hsl=e,this._hSpace="hsl",o=e.h/360,n=e.s/100,e=e.l/100,0==n?t=i=l=e:(t=this.hue2rgb(n=2*e-(e=e<.5?e*(1+n):e+n-e*n),e,o+1/3),i=this.hue2rgb(n,e,o),l=this.hue2rgb(n,e,o-1/3)),this.fromRgb({r:255*t,g:255*i,b:255*l},!0))},fromHsv:function(e){var t,i,l,o,n,s,r,a,d;if("object"!=typeof e||e.h===u||e.s===u||e.v===u)return this._error();switch(this._hsv=e,this._hSpace="hsv",s=e.h/360,t=e.s/100,r=(i=e.v/100)*(1-t),a=i*(1-(s=6*s-(e=Math.floor(6*s)))*t),d=i*(1-(1-s)*t),e%6){case 0:l=i,o=d,n=r;break;case 1:l=a,o=i,n=r;break;case 2:l=r,o=i,n=d;break;case 3:l=r,o=a,n=i;break;case 4:l=d,o=r,n=i;break;case 5:l=i,o=r,n=a}return this.fromRgb({r:255*l,g:255*o,b:255*n},!0)},fromInt:function(e,t){return this._color=parseInt(e,10),isNaN(this._color)&&(this._color=0),16777215<this._color?this._color=16777215:this._color<0&&(this._color=0),t===u&&(this._hsv.h=this._hsv.s=this._hsl.h=this._hsl.s=0),this},hue2rgb:function(e,t,i){return i<0&&(i+=1),1<i&&--i,i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*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 t=6-e.length-1;0<=t;t--)e="0"+e;return"#"+e},toCSS:function(e,t){switch(e=e||"hex",t=parseFloat(t||this._alpha),e){case"rgb":case"rgba":var i=this.toRgb();return t<1?"rgba( "+i.r+", "+i.g+", "+i.b+", "+t+" )":"rgb( "+i.r+", "+i.g+", "+i.b+" )";case"hsl":case"hsla":i=this.toHsl();return t<1?"hsla( "+i.h+", "+i.s+"%, "+i.l+"%, "+t+" )":"hsl( "+i.h+", "+i.s+"%, "+i.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,t=this.toRgb(),i=t.r/255,l=t.g/255,o=t.b/255,t=Math.max(i,l,o),n=Math.min(i,l,o),s=(t+n)/2;if(t===n)e=a=0;else{var r=t-n,a=.5<s?r/(2-t-n):r/(t+n);switch(t){case i:e=(l-o)/r+(l<o?6:0);break;case l:e=(o-i)/r+2;break;case o:e=(i-l)/r+4}e/=6}return{h:e=0===(e=Math.round(360*e))&&this._hsl.h!==e?this._hsl.h:e,s:a=0===(a=Math.round(100*a))&&this._hsl.s?this._hsl.s:a,l:Math.round(100*s)}},toHsv:function(){var e,t=this.toRgb(),i=t.r/255,l=t.g/255,o=t.b/255,t=Math.max(i,l,o),n=Math.min(i,l,o),s=t,r=t-n,a=0===t?0:r/t;if(t===n)e=a=0;else{switch(t){case i:e=(l-o)/r+(l<o?6:0);break;case l:e=(o-i)/r+2;break;case o:e=(i-l)/r+4}e/=6}return{h:e=0===(e=Math.round(360*e))&&this._hsv.h!==e?this._hsv.h:e,s:a=0===(a=Math.round(100*a))&&this._hsv.s?this._hsv.s:a,v:Math.round(100*s)}},toInt:function(){return this._color},toIEOctoHex:function(){var e=this.toString(),t=parseInt(255*this._alpha,10).toString(16);return"#"+(t=1===t.length?"0"+t:t)+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 n))throw"getDistanceLuminosityFrom requires a Color object";var t=this.toLuminosity(),e=e.toLuminosity();return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)},getMaxContrastColor:function(){var e=this.toLuminosity();return new n(.5<=e?"000000":"ffffff")},getReadableContrastingColor:function(e,t){if(!(e instanceof n))return this;var i=t===u?5:t,l=e.getDistanceLuminosityFrom(this),t=e.getMaxContrastColor();if(t.getDistanceLuminosityFrom(e)<=i)return t;if(i<=l)return this;for(var o=0===t.toInt()?-1:1;l<i&&(this.l(o,!0),l=this.getDistanceLuminosityFrom(e),0!==this._color&&16777215!==this._color););return this},a:function(e){if(e===u)return this._alpha;e=parseFloat(e);return isNaN(e)?this._error():(this._alpha=e,this)},darken:function(e){return this.l(-(e=e||5),!0)},lighten:function(e){return this.l(e=e||5,!0)},saturate:function(e){return this.s(e=e||15,!0)},desaturate:function(e){return this.s(-(e=e||15),!0)},toGrayscale:function(){return this.setHSpace("hsl").s(0)},getComplement:function(){return this.h(180,!0)},getSplitComplement:function(e){return this.h(180+30*(e=e||1),!0)},getAnalog:function(e){return this.h(30*(e=e||1),!0)},getTetrad:function(e){return this.h(60*(e=e||1),!0)},getTriad:function(e){return this.h(120*(e=e||1),!0)},_partial:function(l){var o=i[l];return function(e,t){var i=this._spaceFunc("to",o.space);return e===u?i[l]:(!0===t&&(e=i[l]+e),o.mod&&(e%=o.mod),o.range&&(e=e<o.range[0]?o.range[0]:e>o.range[1]?o.range[1]:e),i[l]=e,this._spaceFunc("from",o.space,i))}},_spaceFunc:function(e,t,i){t=t||this._hSpace;return this[e+t.charAt(0).toUpperCase()+t.substr(1)](i)}};var t,i={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(t in i)i.hasOwnProperty(t)&&(n.fn[t]=n.fn._partial(t));"object"==typeof exports?module.exports=n:(e.FLBuilderColor=n,e.Color=n)}(this),!function(s){(FLLightbox=function(e){this._init(e)}).closeParent=function(e){e=s(e).closest(".fl-lightbox-wrap").attr("data-instance-id");_.isUndefined(e)||FLLightbox._instances[e].close()},FLLightbox.getResizableControlClass=function(){var e=s(".fl-lightbox-resizable").eq(0),t="far fa-window-maximize";return t=e.length&&e.hasClass("fl-lightbox-width-full")?"far fa-window-minimize":t},FLLightbox.unbindAll=function(){for(var e in FLLightbox._instances)FLLightbox._instances[e]._unbind()},FLLightbox.bindAll=function(){for(var e in FLLightbox._instances)FLLightbox._instances[e]._bind()},FLLightbox.closeAll=function(){for(var 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 t=this._node.find(".fl-lightbox"),i=t.closest(".fl-builder-ui-pinned").length,l=this._getPositionSettings();!i&&l&&this._defaults.resizable&&t.css(l),this._bind(),this._node.show(),this._visible=!0,void 0!==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(),0==s(".fl-builder-content-panel-button").length&&s(".fl-builder-panel-drag-handle").show()},empty:function(){this._node.find(".fl-lightbox-content").empty()},on:function(e,t){this._node.on(e,t)},off:function(e,t){this._node.off(e,t)},trigger:function(e,t){this._node.trigger(e,t)},destroy:function(){this._node.empty(),this._node.remove(),FLLightbox._instances[this._id]="undefined";try{delete FLLightbox._instances[this._id]}catch(e){}},_init:function(e){var t=0,i=null;for(i in FLLightbox._instances)t++;this._defaults=s.extend({},this._defaults,e),this._id=(new Date).getTime()+t,(FLLightbox._instances[this._id]=this)._render(),this._resizable()},_render:function(){this._node=s('<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),s("body").append(this._node)},_bind:function(){s(window).on("resize.fl-lightbox-"+this._id,this._delayedResize.bind(this))},_unbind:function(){s(window).off("resize.fl-lightbox-"+this._id)},_resizable:function(){s("body");var e=this._node.find(".fl-lightbox-mask"),t=this._node.find(".fl-lightbox"),i=s(".fl-lightbox-resizable").eq(0);this._defaults.resizable?(e.hide(),t.addClass("fl-lightbox-resizable"),t.on("click",".fl-lightbox-resize-toggle",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)}),i.length&&i.hasClass("fl-lightbox-width-full")?(t.addClass("fl-lightbox-width-full"),t.draggable("disable")):this._restorePosition()):e.show(),this._resize()},_delayedResize:function(){clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(this._resize.bind(this),250)},_resize:function(){var e=this._node.find(".fl-lightbox"),t=parseInt(this._node.css("padding-top")),i=parseInt(this._node.css("padding-bottom")),l=(parseInt(this._node.css("padding-left")),parseInt(this._node.css("padding-right")),e.height()),o=e.width(),n=s(window),t=n.height()-t-i,i=(n.width(),"0px");this._defaults.resizable?(o<600?e.addClass("fl-lightbox-width-slim"):e.removeClass("fl-lightbox-width-slim"),o<450?e.addClass("fl-lightbox-width-micro"):e.removeClass("fl-lightbox-width-micro"),this._resizeEditors()):(l<t&&(i=(t-l-46)/2+"px"),e.attr("style","").css("margin",i+" auto 0")),this.trigger("resized")},_resizeStart:function(){s("body").addClass("fl-builder-resizable-is-resizing"),s(".fl-builder-lightbox:visible").append('<div class="fl-builder-resizable-iframe-fix"></div>'),FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays()},_resizeStop:function(e,t){var i=s(".fl-lightbox-resizable:visible");parseInt(i.css("top"))<0&&i.css("top","0"),this._savePosition(),s("body").removeClass("fl-builder-resizable-is-resizing"),s(".fl-builder-resizable-iframe-fix").remove(),FLBuilder._bindOverlayEvents()},_resizeClicked:function(){s(".fl-lightbox-resizable").find(".fl-lightbox-resize-toggle");this._node.find(".fl-lightbox").hasClass("fl-lightbox-width-full")?this._resizeExitFull():this._resizeEnterFull(),this._resize()},_resizeEnterFull:function(){var e=s(".fl-lightbox-resizable"),t=e.find(".fl-lightbox-resize-toggle");this._node.find(".fl-lightbox");t.removeClass("fa-window-maximize").addClass("fa-window-minimize"),e.addClass("fl-lightbox-width-full"),e.draggable("disable"),e.resizable("disable")},_resizeExitFull:function(){var e=s(".fl-lightbox-resizable"),t=e.find(".fl-lightbox-resize-toggle");this._node.find(".fl-lightbox");t.removeClass("fa-window-minimize").addClass("fa-window-maximize"),e.removeClass("fl-lightbox-width-full"),e.draggable("enable"),e.resizable("enable")},_resizeEditors:function(){s(".fl-lightbox-resizable").each(function(){var e=s(this),t=e.find(".fl-builder-settings-fields").height(),e=e.find(".mce-edit-area > iframe, textarea.wp-editor-area, .ace_editor"),i=null;t<350&&(t=350),e.each(function(){(i=s(this)).hasClass("ace_editor")?(i.height(t-60),i.closest(".fl-field").data("editor").resize()):i.closest(".mce-container-body").find(".mce-toolbar-grp .mce-toolbar.mce-last").is(":visible")?i.height(t-175):i.height(t-150)})})},_savePosition:function(){var e=this._node.find(".fl-lightbox"),t={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=t,FLBuilder.ajax({action:"save_lightbox_position",data:t}))},_restorePosition:function(){var e=this._node.find(".fl-lightbox"),t=this._getPositionSettings();t?e.css(t):e.css({top:25,left:FLBuilderConfig.isRtl?"-25":25})},_getPositionSettings:function(){var e=FLBuilderConfig.userSettings.lightbox;if(!e)return!1;var t=window.innerHeight,i=parseInt(e.height),l=parseInt(e.top),o=parseInt(e.left),n=(parseInt(e.top),parseInt(e.width));return o+n+100>screen.width&&(e.left=screen.width-n-250),o<0&&(e.left=50),(t<i&&546<t||t<l+i)&&(t<i&&(e.height=t-50),e.top=0),e}}}(jQuery),!function(s){FLIconSelector={_content:null,_lightbox:null,_rendered:!1,_filterText:"",_liveFilterText:"",open:function(i){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(),s(".fl-icons-filter-text-live").focus()),FLIconSelector._lightbox.on("icon-selected",function(e,t){FLIconSelector._lightbox.off("icon-selected"),FLIconSelector._lightbox.close(),i(t)})},_render:function(){FLIconSelector._lightbox=new FLLightbox({className:"fl-icon-selector"}),FLIconSelector._rendered=!0,FLBuilder.addHook("endEditingSession",function(){FLIconSelector._lightbox.close()})},_getContentComplete:function(e){e=FLBuilder._jsonParse(e);FLIconSelector._content=e.html,FLIconSelector._lightbox.setContent(e.html),s(".fl-icons-filter-text-live").on("keyup",s.debounce(1e3,FLIconSelector.livefilter)),s(".fl-icons-filter-text-live").focus(),s(".fl-icons-list i").on("click",FLIconSelector._select),s(".fl-icon-selector-cancel").on("click",s.proxy(FLIconSelector._lightbox.close,FLIconSelector._lightbox)),FLIconSelector.renderRecent()},renderRecent:function(){var e=FLBuilderConfig.recentIcons;if(e.length<1)return s(".fl-icons-section.recent h2.recent").hide(),!1;s(".fl-icons-section.recent h2.recent").show(),s(".fl-icons-section.recent").show(),s(".recent-icons").html(""),s.each(e,function(e,t){s(".recent-icons").append('<i class="'+t+'"></i>')}),s(".recent-icons").show(),s(".recent-icons i").on("click",FLIconSelector._select),recents=s(".recent-icons i"),s.each(recents,function(e,t){"none"==window.getComputedStyle(s(t)[0],":before").getPropertyValue("content")&&s(t).hide()})},livefilter:function(){var e=s(".fl-icons-filter-text-live").val();if(e===FLIconSelector._liveFilterText)return!1;s(".fl-icons-section.results").html(""),""===e?(FLIconSelector._liveFilterText="",s(".fl-icons-section").show(),FLIconSelector.renderRecent()):(s(".fl-icons-section.recent").hide(),s(".fl-icons-section.all-icons").hide(),s(".fl-icons-section.results").html('<i class="fas fa-spinner fa-spin"></i>'),FLIconSelector._liveFilterText=e,FLBuilder.ajax({action:"query_icons",text:e},FLIconSelector._query_result))},_query_result:function(e){var t=s(".fl-icons-section.results"),o="";if(!e||"[]"===e)return o="<h2>No Icons Found</h2>",FLIconSelector.renderRecent(),t.html(o),t.show(),!1;var e=FLBuilder._jsonParse(e),n="";s.each(e,function(e,l){o+="<h2>"+l.name+"</h2>",s.each(l.data,function(e,i){s.each(i.styles,function(e,t){switch(n="",t){case"solid":n="fas";break;case"regular":n="far";break;case"light":n="fal";break;case"duotone":n="fad";break;case"thin":n="fa-thin";break;case"brands":n="fa-brands fab";break;case"legacy":n=l.prefix}0<n.length&&(n+=" "),o+='<i class="'+n+i.tag+'" title="'+i.label+'"></i>'})})}),t.html(o),t.show(),s(".fl-icons-section.results i").on("click",FLIconSelector._select)},_filter:function(){var e=s(".fl-icons-filter-select").val(),t=s(".fl-icons-filter-text").val()||"";"all"==e?s(".fl-icons-section").show():(s(".fl-icons-section").hide(),s(".fl-"+e).show()),""!==(FLIconSelector._filterText=t)?s(".fl-icons-list i").each(FLIconSelector._filterIcon):s(".fl-icons-list i").show()},_filterIcon:function(){var e=s(this);-1==e.attr("class").indexOf(FLIconSelector._filterText)?e.hide():e.show()},_select:function(){var e=s(this).attr("class");FLBuilder.ajax({action:"recent_icons",icon:e},FLIconSelector._updateRecents),FLIconSelector._lightbox.trigger("icon-selected",e)},_updateRecents:function(e){FLBuilderConfig.recentIcons=FLBuilder._jsonParse(e)}}}(jQuery),!function(i){(FLStyleSheet=function(e){"object"==typeof e&&i.extend(this,e),this._createSheet()}).prototype={id:null,_sheet:null,_sheetElement:null,updateRule:function(e,t,i){for(var l=this._sheet.cssRules||this._sheet.rules,o=null,n=0;n<l.length;n++)l[n].selectorText.toLowerCase().replace(/\s/g,"")==e.toLowerCase().replace(/\s/g,"")&&(o=l[n]);if(o)if("object"==typeof t)for(n in t)this.setProperty(o,n,t[n]);else this.setProperty(o,t,i);else this.addRule(e,t,i)},setProperty:function(e,t,i){var l="";e.style.setProperty?(-1<i.indexOf("!important")&&(l="important",i=i.replace("!important","").trim()),e.style.setProperty(t,i,l)):e.style[this._toCamelCase(t)]=i},addRule:function(e,t,i){var l="",o="";if("object"==typeof t)for(o in t)l+=o+":"+t[o]+";";else l=t+":"+i+";";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 e=this.id?' id="'+this.id+'"':"",t=this.className?' class="'+this.className+'"':"";this._sheet||(this._sheetElement=i('<style type="text/css"'+e+t+"></style>"),i("body").append(this._sheetElement),this._sheet=this._sheetElement[0].sheet)},_toCamelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}}}(jQuery),!function(y){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,_codeDisabled:!1,_sandbox:{},_publishAndRemain:!1,_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._initSanityChecks(),FLBuilder._initTipTips(),FLBuilder._initTinyMCE(),FLBuilder._bindEvents(),FLBuilder._bindOverlayEvents(),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._checkEnv(),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(e){return jQuery.fn.oldReady(function(){try{"function"==typeof e&&e(y)}catch(e){FLBuilder.logError(e)}})})},_initSanityChecks:function(){FLBuilderConfig.uploadPath&&"undefined"==typeof FLBuilderLayout&&(url='<a href="'+FLBuilderConfig.uploadUrl+'">wp-admin -> Settings -> Media</a>',FLBuilder.alert('<strong>Critcal Error</strong><p style="font-size:15px;">Please go to '+url+" and make sure uploads folder settings is blank</p>"),y(".fl-builder-alert-close").hide())},_initGlobalErrorHandling:function(){FLBuilderConfig.debug||(window.onerror=function(e,t,i,l,o){return FLBuilder.logGlobalError(e,t,i,l,o),!0})},_initPostLock:function(){void 0!==wp.heartbeat&&(wp.heartbeat.interval(30),wp.heartbeat.enqueue("fl_builder_post_lock",{post_id:FLBuilderConfig.postId}))},_initClassNames:function(){var e=y("html"),t=y("body");e.addClass("fl-builder-edit"),t.addClass("fl-builder"),FLBuilderConfig.simpleUi&&t.addClass("fl-builder-simple"),FLBuilder._contentClass=".fl-builder-content-"+FLBuilderConfig.postId,y(FLBuilder._contentClass).addClass("fl-builder-content-editing")},_initMediaUploader:function(){wp.media.model.settings.post.id=FLBuilderConfig.postId},_initOverflowFix:function(){y(FLBuilder._contentClass).parents().css("overflow","visible")},_initScrollbars:function(){var e=y(".fl-nanoscroller").nanoScroller({alwaysVisible:!0,preventPageScrolling:!0,paneClass:"fl-nanoscroller-pane",sliderClass:"fl-nanoscroller-slider",contentClass:"fl-nanoscroller-content"}).filter(".fl-builder-settings-fields"),t=e.find(".fl-nanoscroller-pane");t.length&&(t=t.get(0).style.display,e=e.find(".fl-nanoscroller-content"),"none"===t?e.removeClass("has-scrollbar"):e.addClass("has-scrollbar"))},_initSortables:function(){var e={appendTo:FLBuilder._contentClass,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="",i="",l="",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: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",i="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?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";y(".fl-builder-rows").sortable(y.extend({},e,{connectWith:t,items:".fl-builder-block-row",stop:FLBuilder._rowDragStop})),y(".fl-builder-row-templates").sortable(y.extend({},e,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",items:".fl-builder-block-row-template:not(.fl-builder-block-disabled)",stop:FLBuilder._nodeTemplateDragStop})),y(".fl-builder-saved-rows").sortable(y.extend({},e,{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})),y(".fl-builder-saved-columns").sortable(y.extend({},e,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:i,items:".fl-builder-block-saved-column",stop:FLBuilder._nodeTemplateDragStop})),y(".fl-builder-modules, .fl-builder-widgets").sortable(y.extend({},e,{connectWith:l,items:".fl-builder-block-module:not(.fl-builder-block-disabled)",stop:FLBuilder._moduleDragStop})),y(".fl-builder-module-templates").sortable(y.extend({},e,{connectWith:l,items:".fl-builder-block-module-template",stop:FLBuilder._nodeTemplateDragStop})),y(".fl-builder-saved-modules").sortable(y.extend({},e,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:l,items:".fl-builder-block-saved-module",stop:FLBuilder._nodeTemplateDragStop})),y(".fl-row-sortable-proxy").sortable(y.extend({},e,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",helper:FLBuilder._rowDragHelper,start:FLBuilder._rowDragStart,stop:FLBuilder._rowDragStop})),y(".fl-col-sortable-proxy").sortable(y.extend({},e,{connectWith:l,helper:FLBuilder._colDragHelper,start:FLBuilder._colDragStart,stop:FLBuilder._colDragStop})),y(FLBuilder._contentClass+" .fl-col-content").sortable(y.extend({},e,{connectWith:l,handle:".fl-module-sortable-proxy",helper:FLBuilder._moduleDragHelper,items:".fl-module, .fl-col-group",start:FLBuilder._moduleDragStart,stop:FLBuilder._moduleDragStop})),y(FLBuilder._contentClass+" .fl-row-drop-target").sortable(e),y(FLBuilder._contentClass+" .fl-col-group-drop-target").sortable(e),y(FLBuilder._contentClass+" .fl-col-drop-target").sortable(e)},_refreshSortables:function(){y(".ui-sortable").sortable("refresh")},_initStrings:function(){y.validator.messages.required=FLBuilderStrings.validateRequiredMessage},_bindEvents:function(){var e=FLBuilderLayout._isTouch();$excludedLinks=y(".fl-builder-bar a, .fl-builder--content-library-panel a, .fl-page-nav .nav a"),y("a").not($excludedLinks).on("click",FLBuilder._preventDefault),y(".fl-page-nav .nav a").on("click",FLBuilder._headerLinkClicked),y("body").on("click",".fl-builder-content a",FLBuilder._preventDefault),y("body").on("mouseup","button.fl-builder-button",this._buttonMouseUp.bind(this)),y(document).on("heartbeat-tick",FLBuilder._initPostLock),y(window).on("beforeunload",FLBuilder._warnBeforeUnload),y("body").on("click touchend",".fl-builder-has-submenu",FLBuilder._submenuParentClicked),y("body").on("click touchend",".fl-builder-has-submenu a",FLBuilder._submenuChildClicked),y("body").on("mouseenter",".fl-builder-submenu",FLBuilder._submenuMouseenter),y("body").on("mouseleave",".fl-builder-submenu",FLBuilder._submenuMouseleave),y("body").on("mouseenter",".fl-builder-submenu .fl-builder-has-submenu",FLBuilder._submenuNestedParentMouseenter),y(".fl-builder-panel-actions .fl-builder-panel-close").on("click",FLBuilder._closePanel),y(".fl-builder-blocks-section-title").on("click",FLBuilder._blockSectionTitleClicked),y("body").on("mousedown",".fl-builder-node-template-actions",FLBuilder._stopPropagation),y("body").on("mousedown",".fl-builder-node-template-edit",FLBuilder._stopPropagation),y("body").on("mousedown",".fl-builder-node-template-delete",FLBuilder._stopPropagation),y("body").on("click",".fl-builder-node-template-edit",FLBuilder._editNodeTemplateClicked),y("body").on("click",".fl-builder-node-template-delete",FLBuilder._deleteNodeTemplateClicked),y("body").on("mousedown",".fl-builder-block:not(.fl-builder-block-disabled)",FLBuilder._blockDragInit),y("body").on("mouseup",FLBuilder._blockDragCancel),y("body").on("click",".fl-builder-actions .fl-builder-cancel-button",FLBuilder._cancelButtonClicked),y("body").on("click",".fl-builder-save-user-template-button",FLBuilder._saveUserTemplateClicked),y("body").on("click",".fl-builder-duplicate-layout-button",FLBuilder._duplicateLayoutClicked),y("body").on("click",".fl-builder-layout-settings-button",FLBuilder._layoutSettingsClicked),y("body").on("click",".fl-builder-layout-settings .fl-builder-settings-save",FLBuilder._saveLayoutSettingsClicked),y("body").on("click",".fl-builder-layout-settings .fl-builder-settings-cancel",FLBuilder._cancelLayoutSettingsClicked),y("body").on("click",".fl-builder-global-settings-button",FLBuilder._globalSettingsClicked),y("body").on("click",".fl-builder-global-settings .fl-builder-settings-save",FLBuilder._saveGlobalSettingsClicked),y("body").on("click",".fl-builder-global-settings .fl-builder-settings-cancel",FLBuilder._cancelLayoutSettingsClicked),y("body").on("click",".fl-user-template",FLBuilder._userTemplateClicked),y("body").on("click",".fl-user-template-edit",FLBuilder._editUserTemplateClicked),y("body").on("click",".fl-user-template-delete",FLBuilder._deleteUserTemplateClicked),y("body").on("click",".fl-builder-template-replace-button",FLBuilder._templateReplaceClicked),y("body").on("click",".fl-builder-template-append-button",FLBuilder._templateAppendClicked),y("body").on("click",".fl-builder-template-actions .fl-builder-cancel-button",FLBuilder._templateCancelClicked),y("body").on("click",".fl-builder-user-template-settings .fl-builder-settings-save",FLBuilder._saveUserTemplateSettings),y("body").on("click",".fl-builder-help-tour-button",FLBuilder._startHelpTour),y("body").on("click",".fl-builder-knowledge-base-button",FLBuilder._viewKnowledgeBaseClicked),y("body").on("click",".fl-builder-forums-button",FLBuilder._visitForumsClicked),y("body").on("click",".fl-builder-no-tour-button",FLBuilder._noTourButtonClicked),y("body").on("click",".fl-builder-yes-tour-button",FLBuilder._yesTourButtonClicked),y("body").on("click",".fl-builder-alert-close",FLBuilder._alertClose),y("body").on("contextmenu",".fl-block-overlay",FLBuilder._onContextmenu),y("body").on("click touchend",".fl-row-overlay .fl-block-remove",FLBuilder._deleteRowClicked),y("body").on("click touchend",".fl-row-overlay .fl-block-copy",FLBuilder._rowCopyClicked),y("body").on("mousedown",".fl-row-overlay .fl-block-move",FLBuilder._rowDragInit),y("body").on("touchstart",".fl-row-overlay .fl-block-move",FLBuilder._rowDragInitTouch),y("body").on("click touchend",".fl-row-overlay .fl-block-settings",FLBuilder._rowSettingsClicked),y("body").on("click",".fl-builder-row-settings .fl-builder-settings-save",FLBuilder._saveSettings),e?y("body").on("touchend",".fl-row-overlay",FLBuilder._rowSettingsClicked):y("body").on("click",".fl-row-overlay",FLBuilder._rowSettingsClicked),y("body").on("click touchend",".fl-block-col-submenu .fl-block-row-reset",FLBuilder._resetRowWidthClicked),y("body").on("mousedown",".fl-col-overlay .fl-block-move",FLBuilder._colDragInit),y("body").on("touchstart",".fl-col-overlay .fl-block-move",FLBuilder._colDragInitTouch),y("body").on("click touchend",".fl-block-col-copy",FLBuilder._copyColClicked),y("body").on("click touchend",".fl-col-overlay .fl-block-remove",FLBuilder._deleteColClicked),y("body").on("click touchend",".fl-col-overlay .fl-block-settings",FLBuilder._colSettingsClicked),y("body").on("click",".fl-builder-col-settings .fl-builder-settings-save",FLBuilder._saveSettings),e?y("body").on("touchend",".fl-col-overlay",FLBuilder._colSettingsClicked):y("body").on("click",".fl-col-overlay",FLBuilder._colSettingsClicked),y("body").on("mousedown",".fl-block-col-submenu .fl-block-col-move",FLBuilder._colDragInit),y("body").on("touchstart",".fl-block-col-submenu .fl-block-col-move",FLBuilder._colDragInitTouch),y("body").on("click touchend",".fl-block-col-submenu .fl-block-col-edit",FLBuilder._colSettingsClicked),y("body").on("click touchend",".fl-block-col-submenu .fl-block-col-delete",FLBuilder._deleteColClicked),y("body").on("click touchend",".fl-block-col-submenu .fl-block-col-reset",FLBuilder._resetColumnWidthsClicked),y("body").on("mouseenter",".fl-block-col-submenu li",FLBuilder._showColHighlightGuide),y("body").on("mouseleave",".fl-block-col-submenu li",FLBuilder._removeColHighlightGuides),y("body").on("mousedown",".fl-block-col-submenu .fl-block-col-move-parent",FLBuilder._colDragInit),y("body").on("touchstart",".fl-block-col-submenu .fl-block-col-move-parent",FLBuilder._colDragInitTouch),y("body").on("click touchend",".fl-block-col-submenu .fl-block-col-edit-parent",FLBuilder._colSettingsClicked),y("body").on("click touchend",".fl-module-overlay .fl-block-remove",FLBuilder._deleteModuleClicked),y("body").on("click touchend",".fl-module-overlay .fl-block-copy",FLBuilder._moduleCopyClicked),y("body").on("mousedown",".fl-module-overlay .fl-block-move",FLBuilder._moduleDragInit),y("body").on("touchstart",".fl-module-overlay .fl-block-move",FLBuilder._moduleDragInitTouch),y("body").on("click touchend",".fl-module-overlay .fl-block-settings",FLBuilder._moduleSettingsClicked),y("body").on("click",".fl-builder-module-settings .fl-builder-settings-save",FLBuilder._saveModuleClicked),y("body").on("click touchend",".fl-module-overlay .fl-block-col-settings",FLBuilder._colSettingsClicked),e?y("body").on("touchend",".fl-module-overlay",FLBuilder._moduleSettingsClicked):y("body").on("click",".fl-module-overlay",FLBuilder._moduleSettingsClicked),y("body").on("click",".fl-builder-settings-save-as",FLBuilder._showNodeTemplateSettings),y("body").on("click",".fl-builder-node-template-settings .fl-builder-settings-save",FLBuilder._saveNodeTemplate),y("body").on("click",".fl-builder-settings-tabs a",FLBuilder._settingsTabClicked),y("body").on("show",".fl-builder-settings-tabs a",FLBuilder._calculateSettingsTabsOverflow),y("body").on("hide",".fl-builder-settings-tabs a",FLBuilder._calculateSettingsTabsOverflow),y("body").on("click",".fl-builder-settings-cancel",FLBuilder._settingsCancelClicked),y("body").on("click",".fl-builder-settings-tabs-overflow-menu > a",FLBuilder._settingsTabsToOverflowMenuItemClicked.bind(this)),y("body").on("click",".fl-builder-settings-tabs-more",FLBuilder._toggleTabsOverflowMenu.bind(this)),y("body").on("click",".fl-builder-settings-tabs-overflow-click-mask",FLBuilder._hideTabsOverflowMenu.bind(this)),y("body").on("mouseover",".fl-help-tooltip-icon",FLBuilder._showHelpTooltip),y("body").on("mouseout",".fl-help-tooltip-icon",FLBuilder._hideHelpTooltip),y("body").on("click",".fl-builder-field-add",FLBuilder._addFieldClicked),y("body").on("click",".fl-builder-field-copy",FLBuilder._copyFieldClicked),y("body").on("click",".fl-builder-field-delete",FLBuilder._deleteFieldClicked),y("body").on("click",".fl-photo-field .fl-photo-select",FLBuilder._selectSinglePhoto),y("body").on("click",".fl-photo-field .fl-photo-edit",FLBuilder._selectSinglePhoto),y("body").on("click",".fl-photo-field .fl-photo-replace",FLBuilder._selectSinglePhoto),y("body").on("click",".fl-photo-field .fl-photo-remove",FLBuilder._singlePhotoRemoved),y("body").on("click",".fl-multiple-photos-field .fl-multiple-photos-select",FLBuilder._selectMultiplePhotos),y("body").on("click",".fl-multiple-photos-field .fl-multiple-photos-edit",FLBuilder._selectMultiplePhotos),y("body").on("click",".fl-multiple-photos-field .fl-multiple-photos-add",FLBuilder._selectMultiplePhotos),y("body").on("click",".fl-video-field .fl-video-select",FLBuilder._selectSingleVideo),y("body").on("click",".fl-video-field .fl-video-replace",FLBuilder._selectSingleVideo),y("body").on("click",".fl-video-field .fl-video-remove",FLBuilder._singleVideoRemoved),y("body").on("click",".fl-multiple-audios-field .fl-multiple-audios-select",FLBuilder._selectMultipleAudios),y("body").on("click",".fl-multiple-audios-field .fl-multiple-audios-edit",FLBuilder._selectMultipleAudios),y("body").on("click",".fl-multiple-audios-field .fl-multiple-audios-add",FLBuilder._selectMultipleAudios),y("body").on("click",".fl-icon-field .fl-icon-select",FLBuilder._selectIcon),y("body").on("click",".fl-icon-field .fl-icon-replace",FLBuilder._selectIcon),y("body").on("click",".fl-icon-field .fl-icon-remove",FLBuilder._removeIcon),y("body").on("click",".fl-form-field .fl-form-field-edit",FLBuilder._formFieldClicked),y("body").on("click",".fl-form-field-settings .fl-builder-settings-save",FLBuilder._saveFormFieldClicked),y("body").on("click",".fl-layout-field-option",FLBuilder._layoutFieldClicked),y("body").on("click",".fl-link-field-select",FLBuilder._linkFieldSelectClicked),y("body").on("click",".fl-link-field-search-cancel",FLBuilder._linkFieldSelectCancelClicked),y("body").on("change",".fl-loop-data-source-select select[name=data_source]",FLBuilder._loopDataSourceChange),y("body").on("change",".fl-custom-query select[name=post_type]",FLBuilder._customQueryPostTypeChange),y("body").on("change",".fl-text-field-add-value",FLBuilder._textFieldAddValueSelectChange),y("body").on("focus",".fl-field input[type=number]",FLBuilder._onNumberFieldFocus),y("body").on("blur",".fl-field input[type=number]",FLBuilder._onNumberFieldBlur),FLBuilder.addHook("didCompleteAJAX",FLBuilder._refreshSettingsPreviewReference),FLBuilder.addHook("didRenderLayoutComplete",FLBuilder._refreshSettingsPreviewReference)},_unbindEvents:function(){y("a").off("click",FLBuilder._preventDefault),y(".fl-page-nav .nav a").off("click",FLBuilder._headerLinkClicked),y("body").undelegate(".fl-builder-content a","click",FLBuilder._preventDefault)},_rebindEvents:function(){y("a").on("click",FLBuilder._preventDefault),y(".fl-page-nav .nav a").on("click",FLBuilder._headerLinkClicked),y("body").on("click",".fl-builder-content a",FLBuilder._preventDefault)},_bindOverlayEvents:function(){var e=y(FLBuilder._contentClass);e.on("mouseenter touchstart",".fl-row",FLBuilder._rowMouseenter),e.on("mouseleave",".fl-row",FLBuilder._rowMouseleave),e.on("mouseleave",".fl-row-overlay",FLBuilder._rowMouseleave),e.on("mouseenter touchstart",".fl-col",FLBuilder._colMouseenter),e.on("mouseleave",".fl-col",FLBuilder._colMouseleave),e.on("mouseenter touchstart",".fl-module",FLBuilder._moduleMouseenter),e.on("mouseleave",".fl-module",FLBuilder._moduleMouseleave)},_destroyOverlayEvents:function(){var e=y(FLBuilder._contentClass);e.undelegate(".fl-row","mouseenter touchstart",FLBuilder._rowMouseenter),e.undelegate(".fl-row","mouseleave",FLBuilder._rowMouseleave),e.undelegate(".fl-row-overlay","mouseleave",FLBuilder._rowMouseleave),e.undelegate(".fl-col","mouseenter touchstart",FLBuilder._colMouseenter),e.undelegate(".fl-col","mouseleave",FLBuilder._colMouseleave),e.undelegate(".fl-module","mouseenter touchstart",FLBuilder._moduleMouseenter),e.undelegate(".fl-module","mouseleave",FLBuilder._moduleMouseleave)},_onContextmenu:function(e){y(this).hide()},_preventDefault:function(e){e.preventDefault()},_stopPropagation:function(e){e.stopPropagation()},_headerLinkClicked:function(e){var t=y(this).attr("href");this.hash||(e.preventDefault(),FLBuilderConfig.isUserTemplate||(FLBuilder._exitUrl=-1<t.indexOf("?")?t:t+"?fl_builder",FLBuilder.triggerHook("triggerDone")))},_warnBeforeUnload:function(){var e=0<y(".fl-builder-row-settings").length,t=0<y(".fl-builder-col-settings").length,i=0<y(".fl-builder-module-settings").length;if(e||t||i)return FLBuilderStrings.unloadWarning},_upgradeClicked:function(){window.open(FLBuilderConfig.upgradeUrl)},_toggleProModules:function(){var e=y(".fl-builder-blocks-pro-expand"),t=y(".fl-builder-blocks-pro-closed"),i=y(".fl-builder-blocks-pro-open");e.toggleClass("fl-builder-blocks-pro-expand-rotate"),t.length?(t.removeClass("fl-builder-blocks-pro-closed"),t.addClass("fl-builder-blocks-pro-open")):(i.removeClass("fl-builder-blocks-pro-open"),i.addClass("fl-builder-blocks-pro-closed"))},_showProMessage:function(e){var t,i;FLBuilderConfig.lite&&(t=new FLLightbox({className:"fl-builder-pro-lightbox",destroyOnClose:!0}),i=wp.template("fl-pro-lightbox"),t.open(i({feature:e})))},_initTipTips:function(){var e=y(".fl-tip:not(.fl-has-tip)");e.each(function(){var e=y(this);e.addClass("fl-has-tip"),null==e.attr("data-title")&&e.attr("data-title",e.attr("title"))}),FLBuilderLayout._isTouch()||e.tipTip({defaultPosition:"top",delay:300,maxWidth:"auto"})},_hideTipTips:function(){y("#tiptip_holder").stop().hide()},_submenuParentClicked:function(e){var t=y("body"),i=y(this),l=i.find(".fl-builder-submenu");i.hasClass("fl-builder-submenu-open")?(t.removeClass("fl-builder-submenu-open"),i.removeClass("fl-builder-submenu-open"),i.removeClass("fl-builder-submenu-right")):(i.offset().left+l.width()>y(window).width()&&i.addClass("fl-builder-submenu-right"),t.addClass("fl-builder-submenu-open"),i.addClass("fl-builder-submenu-open")),l.closest(".fl-row-overlay").addClass("fl-row-menu-active"),FLBuilder._hideTipTips(),e.preventDefault(),e.stopPropagation()},_submenuChildClicked:function(e){var t=y("body"),i=y(this).parents(".fl-builder-has-submenu");i.parents(".fl-builder-has-submenu").length||(t.removeClass("fl-builder-submenu-open"),i.removeClass("fl-builder-submenu-open"))},_submenuMouseenter:function(e){var t=y(this).data("timeout");void 0!==t&&clearTimeout(t)},_submenuMouseleave:function(e){var t=y("body"),i=y(this),l=setTimeout(function(){t.removeClass("fl-builder-submenu-open"),i.closest(".fl-builder-has-submenu").removeClass("fl-builder-submenu-open")},500);i.closest(".fl-row-overlay").removeClass("fl-row-menu-active"),i.data("timeout",l)},_submenuNestedParentMouseenter:function(e){var t=y(this),i=t.find(".fl-builder-submenu");t.width()+t.offset().left+i.width()>y(window).width()&&t.addClass("fl-builder-submenu-right")},_closeAllSubmenus:function(){y(".fl-builder-submenu-open").removeClass("fl-builder-submenu-open")},_buttonMouseUp:function(e){y(e.currentTarget).blur()},_closePanel:function(){FLBuilder.triggerHook("hideContentPanel")},_showPanel:function(){FLBuilder.triggerHook("showContentPanel")},_togglePanel:function(){FLBuilder.triggerHook("toggleContentPanel")},_blockSectionTitleClicked:function(){var e=y(this).parent();e.hasClass("fl-active")?e.removeClass("fl-active"):(y(".fl-builder-blocks-section").removeClass("fl-active"),e.addClass("fl-active")),FLBuilder._initScrollbars()},_publishLayout:function(e,t){if(FLBuilder._triggerSettingsSave(t,!0)){_.isUndefined(e)&&(e=!0);const i=FL.Builder.data.getLayoutActions();t=FLBuilder._onPublishComplete.bind(FLBuilder,e);i.saveLayout(!0,e,t)}},_publishButtonClicked:function(e){FLBuilder._publishLayout(e)},_onPublishComplete:function(e){e&&(FLBuilderConfig.shouldRefreshOnPublish?FLBuilder._exit():FLBuilder._exitWithoutRefresh()),y("#wp-admin-bar-fl-builder-frontend-edit-link .fl-builder-admin-bar-status-dot").css("color","#6bc373"),FLBuilder.triggerHook("didPublishLayout",{shouldExit:e})},_draftButtonClicked:function(){FLBuilder.showAjaxLoader();const e=FL.Builder.data.getLayoutActions();e.saveDraft()},_discardButtonClicked:function(){if(confirm(FLBuilderStrings.discardMessage)){FLBuilder.showAjaxLoader();const e=FL.Builder.data.getLayoutActions();e.discardDraft()}else FLBuilder.triggerHook("didCancelDiscard")},_cancelButtonClicked:function(){FLBuilder._exitUrl=null,FLBuilder._actionsLightbox.close()},_exit:function(){var e=window.location.href;try{var t=void 0!==window.opener.FLBuilder}catch(e){t=!1}FLBuilderConfig.isUserTemplate&&void 0!==window.opener&&window.opener?(t&&("undefined"==typeof FLBuilderGlobalNodeId?window.opener.FLBuilder._updateLayout():window.opener.FLBuilder._updateNode(FLBuilderGlobalNodeId)),window.close()):(e=FLBuilder._exitUrl||(e=(e=e.replace("?fl_builder&","?")).replace("?fl_builder","")).replace("&fl_builder",""),window.location.href=e)},_exitWithoutRefresh:function(){window.location.href;try{var t=void 0!==window.opener.FLBuilder}catch(e){t=!1}FLBuilderConfig.isUserTemplate&&t&&window.opener?(t&&("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 t=FLBuilderConfig.adminUrl;window.location.href=t+"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 e=y(".fl-builder-settings #fl-field-css textarea:not(.ace_text-input)");e.on("change",FLBuilder._layoutSettingsCSSChanged),FLBuilder._layoutSettingsCSSCache=e.val()},_layoutSettingsCSSChanged:function(){FLBuilder._layoutSettingsCSSTimeout&&clearTimeout(FLBuilder._layoutSettingsCSSTimeout),FLBuilder._layoutSettingsCSSTimeout=setTimeout(y.proxy(FLBuilder._layoutSettingsCSSDoChange,this),600)},_layoutSettingsCSSDoChange:function(){var e=y(".fl-builder-settings"),t=y(this);0<t.parents("#fl-field-css").find(".ace_error").length||((e.hasClass("fl-builder-layout-settings")?y("#fl-builder-layout-css"):y("#fl-builder-global-css")).html(t.val()),FLBuilder._layoutSettingsCSSTimeout=null)},_saveLayoutSettingsClicked:function(){for(var e=y(this).closest(".fl-builder-settings").serializeArray(),t={},i=0;i<e.length;i++)t[e[i].name]=e[i].value;FLBuilder.showAjaxLoader(),FLBuilder._lightbox.close(),FLBuilder._layoutSettingsCSSCache=null;const l=FL.Builder.data.getLayoutActions();l.saveLayoutSettings(t)},_cancelLayoutSettingsClicked:function(){(y(".fl-builder-settings").hasClass("fl-builder-layout-settings")?y("#fl-builder-layout-css"):y("#fl-builder-global-css")).html(FLBuilder._layoutSettingsCSSCache),FLBuilder._layoutSettingsCSSCache=null},_saveLayoutSettingsComplete:function(e){FLBuilder.triggerHook("didSaveLayoutSettingsComplete",e),FLBuilder._updateLayout()},_globalSettingsClicked:function(){FLBuilderSettingsForms.render({id:"global",className:"fl-builder-global-settings",settings:FLBuilderSettingsConfig.settings.global},function(){FLBuilder._layoutSettingsInitCSS()})},_saveGlobalSettingsClicked:function(){var e=y(this).closest(".fl-builder-settings"),t=e.validate().form(),e=FLBuilder._getSettings(e);if(t){FLBuilder.showAjaxLoader(),FLBuilder._layoutSettingsCSSCache=null;const i=FL.Builder.data.getLayoutActions();i.saveGlobalSettings(e),FLBuilder._lightbox.close()}},_saveGlobalSettingsComplete:function(e){FLBuilder.triggerHook("didSaveGlobalSettingsComplete",FLBuilder._jsonParse(e)),FLBuilder._updateLayout()},_initTemplateSelector:function(){0<y(FLBuilder._contentClass).find(".fl-row").length||FLBuilder.ContentPanel.show("modules")},_requestTemplateInsert:function(e,t){FLBuilder.layoutHasContent()?0==e?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate(0,!1,t)):(FLBuilder._selectedTemplateId=e,FLBuilder._selectedTemplateType=t,FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(e,!1,t)},_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(){FLBuilder.triggerHook("showContentPanel")},_applyTemplate:function(e,t,i){t=void 0!==t&&t?"1":"0",i=void 0===i?"core":i,FLBuilder._lightbox.close(),FLBuilder.showAjaxLoader();const l=FL.Builder.data.getLayoutActions();l.applyTemplate(e,t,i),FLBuilder.triggerHook("didApplyTemplate")},_applyTemplateComplete:function(e){e=FLBuilder._jsonParse(e);FLBuilder._renderLayout(e.layout),FLBuilder.triggerHook("didApplyTemplateComplete",e.config)},_applyUserTemplateComplete:function(e){e=FLBuilder._jsonParse(e);null!==e.layout_css&&y("#fl-builder-layout-css").html(e.layout_css),FLBuilder._renderLayout(e.layout),FLBuilder.triggerHook("didApplyTemplateComplete",e.config)},_saveUserTemplateClicked:function(){FLBuilderConfig.lite?FLBuilder._showProMessage("Saving Templates"):FLBuilderSettingsForms.render({id:"user_template",className:"fl-builder-user-template-settings",rules:{name:{required:!0}}})},_saveUserTemplateSettings:function(){var e=y(this).closest(".fl-builder-settings"),t=e.validate().form(),e=FLBuilder._getSettings(e);if(t){const i=FL.Builder.data.getLayoutActions();i.saveUserTemplateSettings(e),FLBuilder._lightbox.close()}},_saveUserTemplateSettingsComplete:function(e){e&&(e=FLBuilder._jsonParse(e),FLBuilderConfig.contentItems.template.push(e),FLBuilder.triggerHook("contentItemsChanged"))},_userTemplateClicked:function(){var e=y(this).attr("data-id");0<y(FLBuilder._contentClass).children(".fl-row").length?"blank"==e?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate("blank",!1,"user")):(FLBuilder._selectedTemplateId=e,FLBuilder._selectedTemplateType="user",FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(e,!1,"user")},_editUserTemplateClicked:function(e){e.preventDefault(),e.stopPropagation(),window.open(y(this).attr("href"))},_deleteUserTemplateClicked:function(e){var t=y(this).closest(".fl-user-template").attr("data-id"),i=(y(".fl-user-template[data-id="+t+"]"),null),l=null;if(confirm(FLBuilderStrings.deleteTemplate)){const o=FL.Builder.data.getLayoutActions();for(l in o.deleteUserTemplate(t),FLBuilderConfig.contentItems.template)FLBuilderConfig.contentItems.template[l].postId==t&&(i=l);_.isNull(i)||(FLBuilderConfig.contentItems.template.splice(i,1),FLBuilder.triggerHook("contentItemsChanged"))}e.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 e=y(FLBuilder._contentClass);FLBuilderConfig.isUserTemplate&&"module"==FLBuilderConfig.userTemplateType||FLBuilderConfig.isUserTemplate&&"column"==FLBuilderConfig.userTemplateType||(e.removeClass("fl-builder-empty"),e.find(".fl-builder-empty-message").remove(),e.find(".fl-row, .fl-builder-block").length||(e.addClass("fl-builder-empty"),e.append('<span class="fl-builder-empty-message">'+FLBuilderStrings.emptyMessage+"</span>"),FLBuilder._initSortables()))},_updateNode:function(e,t){if(y(".fl-node-"+e).length){FLBuilder._showNodeLoading(e);const i=FL.Builder.data.getLayoutActions();i.renderNode(e,t)}},_updateLayout:function(){FLBuilder.showAjaxLoader();const e=FL.Builder.data.getLayoutActions();e.renderLayout(),e.fetchLayout()},_renderLayout:function(e,t){FLBuilder._layout?FLBuilder._layoutQueue.push({data:e,callback:t}):FLBuilder._layout=new FLBuilderAJAXLayout(e,t)},_renderLayoutComplete:function(){var e;FLBuilder._layout&&(FLBuilder._layout._complete(),FLBuilder._layout=null),FLBuilder._layoutQueue.length&&(e=FLBuilder._layoutQueue.shift(),FLBuilder._layout=new FLBuilderAJAXLayout(e.data,e.callback))},_resizeLayout:function(){y(window).trigger("resize"),"undefined"!=typeof YUI&&YUI().use("node-event-simulate",function(e){e.one(window).simulate("resize")})},layoutHasContent:function(){return 0<y(FLBuilder._contentClass).children(".fl-row").length},_initMediaElements:function(){var e={};void 0!==y.fn.mediaelementplayer&&("undefined"!=typeof _wpmejsSettings&&(e.pluginPath=_wpmejsSettings.pluginPath),y(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").mediaelementplayer(e))},_initDropTargets:function(){var e="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",t=y(FLBuilder._contentClass+" .fl-row"),i=null,l=y(FLBuilder._contentClass+" .fl-row"+e).find(".fl-col-group"),o=null,n=null,e="column"==FLBuilderConfig.userTemplateType?y(FLBuilder._contentClass+"> .fl-col").eq(0):null,s=0;for(y(".fl-col-drop-target").remove(),y(".fl-col-group-drop-target").remove(),y(".fl-row-drop-target").remove(),y(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>');s<t.length;s++)0===(i=t.eq(s)).find(".fl-col-group").length&&i.find(".fl-row-content").prepend('<div class="fl-drop-target fl-col-group-drop-target"></div>');for(e&&0===l.length&&(l=e.find(".fl-col-group"),e.append('<div class="fl-drop-target fl-col-drop-target"></div>'),e.append('<div class="fl-drop-target fl-drop-target-last fl-col-drop-target fl-col-drop-target-last"></div>')),s=0;s<l.length;s++)n=(o=l.eq(s)).find("> .fl-col"),o.hasClass("fl-col-group-nested")||(o.append('<div class="fl-drop-target fl-col-group-drop-target"></div>'),o.append('<div class="fl-drop-target fl-drop-target-last fl-col-group-drop-target fl-col-group-drop-target-last"></div>')),n.append('<div class="fl-drop-target fl-col-drop-target"></div>'),n.append('<div class="fl-drop-target fl-drop-target-last fl-col-drop-target fl-col-drop-target-last"></div>')},_blockDragHelper:function(e,t){var i=t.clone();return t.clone().insertAfter(t),i.addClass("fl-builder-block-drag-helper"),i},_blockDragInit:function(e){var t=y(e.currentTarget),i=null,l=y(window).scrollTop(),o=0;FLBuilder._dragEnabled=!0,FLBuilder._dragInitialScrollTop=l,0<t.closest("[data-node]").length?(i=t.closest("[data-node]")).addClass("fl-node-drag-init"):t.hasClass("fl-builder-block")&&y(".fl-row").each(function(){null===i&&0<y(this).offset().top-l&&(i=y(this))}),null!==i&&(o=i.offset().top-l),FLBuilder._highlightRowsAndColsForDrag(t),FLBuilder._adjustColHeightsForDrag(),FLBuilder._disableGlobalRows(),FLBuilder._disableGlobalCols(),FLBuilder._destroyOverlayEvents(),FLBuilder._initSortables(),y("body").addClass("fl-builder-dragging"),y(".fl-builder-empty-message").hide(),y(".fl-sortable-disabled").removeClass("fl-sortable-disabled"),"touchstart"===e.type||y(e.target).hasClass("fl-sortable-proxy-item ")||FLBuilder._removeAllOverlays(),0<o&&scrollTo(0,i.offset().top-o),FLBuilder.triggerHook("didInitDrag")},_blockDragStart:function(e,t){FLBuilder._dragging=!0,y(".fl-node-drag-init").removeClass("fl-node-drag-init"),FLBuilder.triggerHook("didStartDrag")},_blockDragSort:function(e,t){var i=t.placeholder.parent(),l=FLBuilderStrings.insert;FLBuilder._blockPreventSort(t.item,i)||(i.hasClass("fl-col-content")?l=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.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"):i.hasClass("fl-col-drop-target")||i.hasClass("fl-col-group-drop-target")?l="":i.hasClass("fl-row-drop-target")&&(l=t.item.hasClass("fl-builder-block-row")||t.item.hasClass("fl-builder-block-saved-row")||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(l),t.item.hasClass("fl-node-global")||t.item.hasClass("fl-builder-block-global")||y(".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,t){t.placeholder.css("opacity","0"),t.placeholder.animate({opacity:"1"},100)},_blockPreventSort:function(e,t){var i=!1,l=e.hasClass("fl-builder-block-row"),o=e.hasClass("fl-col-sortable-proxy-item"),n=t.hasClass("fl-col-content"),s=t.hasClass("fl-col-drop-target"),r=t.parents(".fl-col-group:not(.fl-col-group-nested)"),a=t.parents(".fl-col-group-nested");return(l||o)&&n&&0<a.length&&(i=!0),n&&!t.find(".fl-module, .fl-col").length&&(l&&"1-col"==e.data("cols")||o)&&(i=!0),l&&n&&-1<y.inArray(e.data("cols"),["5-cols","6-cols"])&&(i=!0),o&&0<y(".fl-node-dragging").find(".fl-col-group-nested").length&&(n||s&&0<a.length)&&(i=!0),s&&0<r.length&&0===a.length&&11<r.find("> .fl-col:visible").length&&(i=!0),(i=s&&0<a.length&&3<a.find(".fl-col:visible").length?!0:i)&&t.addClass("fl-sortable-disabled"),i},_blockDragStop:function(e,t){var i=y(window).scrollTop(),t=t.item.parent(),l=null,l=t.hasClass("fl-drop-target")&&t.closest("[data-node]").length?(t=t.closest("[data-node]")).offset().top-i:t.offset().top-i;t.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(),y("body").removeClass("fl-builder-dragging"),scrollTo(0,t.offset().top-l),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(),y("body").removeClass("fl-builder-dragging"),y(".fl-node-drag-init").removeClass("fl-node-drag-init"),y(".fl-node-dragging").removeClass("fl-node-dragging"),scrollTo(0,FLBuilder._dragInitialScrollTop))},_reorderNode:function(e,t){const i=FL.Builder.getActions();i.moveNode(e,t)},_reorderNodeComplete:function(e){var e=FLBuilder._jsonParse(e),t="didMove"+e.nodeType.charAt(0).toUpperCase()+e.nodeType.slice(1);FLBuilder.triggerHook("didMoveNode",e),FLBuilder.triggerHook(t,e)},_moveNode:function(e,t,i){const l=FL.Builder.getActions();l.moveNode(t,i,e)},_moveNodeComplete:function(e){const t=FLBuilder._jsonParse(e);e="didMove"+t.nodeType.charAt(0).toUpperCase()+t.nodeType.slice(1);FLBuilder.triggerHook("didMoveNode",t),FLBuilder.triggerHook(e,t)},_removeAllOverlays:function(){FLBuilder._removeRowOverlays(),FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides(),FLBuilder._removeModuleOverlays(),FLBuilder._hideTipTips(),FLBuilder._closeAllSubmenus()},_appendOverlay:function(e,t){var i=0,l=null,o=e.hasClass("fl-row")?e.find("> .fl-row-content-wrap"):e.find("> .fl-node-content"),n=parseInt(o.css("margin-top"),10),o=parseInt(o.css("margin-bottom"),10);return e.append(t),e.addClass("fl-block-overlay-active"),FLBuilder._initTipTips(),l=e.find("> .fl-block-overlay"),n<0&&(i=parseInt(l.css("top"),10),i=isNaN(i)?0:i,l.css("top",n+i+"px")),o<0&&(i=parseInt(l.css("bottom"),10),i=isNaN(i)?0:i,l.css("bottom",o+i+"px")),l},_buildOverlayOverflowMenu:function(e){var t,i=e.find(".fl-block-overlay-header"),l=e.find(".fl-block-overlay-actions"),e=e.find(".fl-block-has-rules"),o=l.data("original"),n=null,s=0,r=null,a=0,d=[],u=[],c=[],h=wp.template("fl-overlay-overflow-menu");for(null!=o&&(l.after(o),l.remove(),l=o),l.data("original",l.clone()),t=Math.floor(l[0].getBoundingClientRect().width)-8,n=l.find(" > i, > span.fl-builder-has-submenu"),e.length&&t+e.outerWidth()>i.outerWidth()&&(s+=e.outerWidth());a<n.length;a++)r=n.eq(a),t<(s+=Math.floor(r[0].getBoundingClientRect().width))?(u.push(r),r.remove()):d.push(r);if(0<u.length){for(0<d.length&&u.unshift(d.pop().remove()),a=0;a<u.length;a++)u[a].is(".fl-builder-has-submenu")?c.push({type:"submenu",label:u[a].find(".fa, .fas, .far").data("title"),submenu:u[a].find(".fl-builder-submenu")[0].outerHTML}):c.push({type:"action",label:u[a].data("title"),className:u[a].removeClass(function(e,t){return t.replace(/fl-block-([^\s]+)/,"")}).attr("class")});l.append(h(c)),FLBuilder._initTipTips()}},_removeRowOverlays:function(){y(".fl-row").removeClass("fl-block-overlay-active"),y(".fl-row-overlay").remove(),y(".fl-module").removeClass("fl-module-adjust-height"),y("body").removeClass("fl-builder-row-resizing"),FLBuilder._closeAllSubmenus()},_disableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&y(".fl-row.fl-node-global").addClass("fl-node-disabled")},_disableGlobalCols:function(){"column"!=FLBuilderConfig.userTemplateType&&y(".fl-row:not(.fl-node-global) .fl-col.fl-node-global").addClass("fl-node-disabled")},_enableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&y(".fl-node-disabled").removeClass("fl-node-disabled")},_enableGlobalCols:function(){"column"!=FLBuilderConfig.userTemplateType&&y(".fl-node-disabled").removeClass("fl-node-disabled")},_rowMouseenter:function(){var e=y(this),t=e.attr("data-node"),i=e.offset().top,l=null,o=null,n=wp.template("fl-row-overlay"),s=FLBuilderResponsiveEditing._mode;e.closest(".fl-builder-node-loading").length||e.hasClass("fl-block-overlay-active")||(FLBuilder._removeRowOverlays(),o=FLBuilder._appendOverlay(e,n({node:t,global:e.hasClass("fl-node-global"),hasRules:e.hasClass("fl-node-has-rules"),rulesTextRow:e.attr("data-rules-text"),rulesTypeRow:e.attr("data-rules-type")})),e.find(".fl-node-content:visible").each(function(){var e=y(this).offset().top;l=null===l||e<l?e:l}),null!==l&&l<i&&o.css("top",l-i-30+"px"),("default"===s&&o.offset().top<43||"default"!==s&&0===e.index())&&o.addClass("fl-row-overlay-header-bottom"),e.find(".fl-module").each(function(){var e=y(this);e.outerHeight(!0)<20&&e.addClass("fl-module-adjust-height")}),FLBuilder._buildOverlayOverflowMenu(o))},_rowMouseleave:function(e){var t=y(e.target),e=y(e.toElement)||y(e.relatedTarget),i=e.hasClass("fl-row-overlay"),l=0<e.closest(".fl-row-overlay").length,o=e.is("#tiptip_holder"),e=0<e.closest("#tiptip_holder").length;t.closest(".fl-block-col-resize").length||i||l||o||e||FLBuilder._removeRowOverlays()},_rowDragHelper:function(){return y('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.row+"</div>")},_rowDragInit:function(e){var t=y(e.target),i=y(".fl-row-sortable-proxy-item");t.closest(".fl-row").addClass("fl-node-dragging"),FLBuilder._blockDragInit(e),e.target=i[0],i.trigger(e)},_rowDragInitTouch:function(t){var e=y(t.target),i=y(".fl-row-sortable-proxy-item"),l=e.closest(".fl-row"),o=!1;e.on("touchmove",function(e){o||(t.currentTarget=l[0],FLBuilder._rowDragInit(t),o=!0),i.trigger(e)}),e.on("touchend",function(e){i.trigger(e)})},_rowDragStart:function(e,t){var i=y(FLBuilder._contentClass+" .fl-row"),l=y(".fl-node-dragging");1===i.length&&y(FLBuilder._contentClass).addClass("fl-builder-empty"),l.hide(),FLBuilder._blockDragStart(e,t)},_rowDragStop:function(e,t){var i=t.item,l=i.parent(),o=null,n=0;if(FLBuilder._blockDragStop(e,t),l.hasClass("fl-builder-rows"))i.remove();else if(l.hasClass("fl-row-sortable-proxy"))y(".fl-node-dragging").removeClass("fl-node-dragging").show();else if(i.hasClass("fl-builder-block")){if(l.hasClass("fl-sortable-disabled"))return i.remove(),void FLBuilder._showPanel();l.hasClass("fl-col-content")?FLBuilder._addColGroup(i.closest(".fl-col").attr("data-node"),i.attr("data-cols"),l.find("> .fl-module, .fl-col-group, .fl-builder-block").index(i)):l.hasClass("fl-col-drop-target")?FLBuilder._addCols(l.closest(".fl-col"),l.hasClass("fl-col-drop-target-last")?"after":"before",i.attr("data-cols"),0<l.closest(".fl-col-group-nested").length):l.hasClass("fl-col-group-drop-target")?(e=i.closest(".fl-col-group"),n=i.closest(".fl-row").find(".fl-row-content > .fl-col-group").index(e),FLBuilder._addColGroup(i.closest(".fl-row").attr("data-node"),i.attr("data-cols"),l.hasClass("fl-drop-target-last")?n+1:n)):(n=(o=i.closest(".fl-row")).length?y(FLBuilder._contentClass+" > .fl-row").index(o):0,FLBuilder._addRow(i.attr("data-cols"),l.hasClass("fl-drop-target-last")?n+1:n)),i.remove(),FLBuilder._showPanel(),y(".fl-builder-modules").siblings(".fl-builder-blocks-section-title").eq(0).trigger("click")}else o=y(".fl-node-dragging").removeClass("fl-node-dragging").show(),l.parent().hasClass("fl-builder-content")||(l.hasClass("fl-drop-target-last")?l.parent().after(o):l.parent().before(o),FLBuilder._reorderNode(o.attr("data-node"),o.index())),y(".fl-row-sortable-proxy").append(t.item)},_addRow:function(e,t,i){FLBuilder._showNodeLoadingPlaceholder(y(FLBuilder._contentClass),t),FLBuilder._newRowPosition=t;const l=FL.Builder.data.getLayoutActions();l.addRow(e,t,i)},_addRowComplete:function(e){var e="object"==typeof e?e:FLBuilder._jsonParse(e),t=y(FLBuilder._contentClass),i=y(e.html).data("node");e.nodeParent=t,e.nodePosition=FLBuilder._newRowPosition,FLBuilder._renderLayout(e,function(){FLBuilder._removeNodeLoadingPlaceholder(y(".fl-node-"+i)),FLBuilder.triggerHook("didAddRow",i)})},_deleteRowClicked:function(e){var t=y(e.target).closest(".fl-row").data("node");FL.Builder.getActions().deleteNode(t),e.stopPropagation()},_deleteRow:function(e){var t=e.attr("data-node");const i=FL.Builder.data.getLayoutActions();i.deleteNode(t),e.empty(),e.remove(),FLBuilder._setupEmptyLayout(),FLBuilder._removeRowOverlays(),FLBuilder.triggerHook("didDeleteRow",t)},_rowCopyClicked:function(e){var t=y(this).closest(".fl-row").attr("data-node");FLBuilder._copyRow(t),e.stopPropagation()},_copyRow:function(t){var e=FLBuilder._getJQueryElement(t),i=e.clone(),l=y(".fl-builder-settings[data-node]"),o=l.attr("data-node"),n=o===t?e:e.find('[data-node="'+o+'"]'),s=null;l.length&&n.length&&(s=FLBuilder._getSettings(l),FLBuilderSettingsConfig.nodes[o]=s),i.addClass("fl-node-"+t+"-clone fl-builder-node-clone"),i.find(".fl-block-overlay").remove(),e.after(i),FLBuilder._showNodeLoading(t+"-clone");const r=i.get(0),a=(r.scrollIntoView({behavior:"smooth",block:"center"}),FL.Builder.data.getLayoutActions());a.copyRow(t,s,o,function(e){e=FLBuilder._jsonParse(e);e.nodeParent=y(FLBuilder._contentClass),e.nodePosition=y(FLBuilder._contentClass+" > .fl-row").index(i),e.duplicatedRow=t,e.onAddNewHTML=function(){i.remove()},FLBuilder._rowCopyComplete(e)})},_rowCopyComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder.triggerHook("didDuplicateRow",{newNodeId:e.nodeId,oldNodeId:e.duplicatedRow})})},_rowSettingsClicked:function(e){var t=y(this),i=y(this).closest(".fl-row").attr("data-node"),l=0<t.closest(".fl-block-overlay-global").length;if(t.hasClass("fl-block-settings")||l&&"row"!=FLBuilderConfig.userTemplateType){const o=FL.Builder.data.getLayoutActions();o.displaySettings(i)}e.stopPropagation()},_showRowSettings:function(e,t){let i=null;t&&"row"!=FLBuilderConfig.userTemplateType?FLBuilderConfig.userCanEditGlobalTemplates&&((i=window.open(y('.fl-row[data-node="'+e+'"]').attr("data-template-url"))).FLBuilderGlobalNodeId=e):FLBuilderSettingsForms.render({id:"row",nodeId:e,className:"fl-builder-row-settings",attrs:'data-node="'+e+'"',buttons:t||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:t?[FLBuilderStrings.global]:[],settings:FLBuilderSettingsConfig.nodes[e],preview:{type:"row"}},function(){y("#fl-field-width select").on("change",FLBuilder._rowWidthChanged),y("#fl-field-content_width select").on("change",FLBuilder._rowWidthChanged)})},_rowWidthChanged:function(){var e=y("#fl-field-width select").val(),t=y("#fl-field-content_width select").val(),i=y("#fl-field-max_content_width");"fixed"==e||"full"==e&&"fixed"==t?i.show():i.hide()},_resetRowWidthClicked:function(e){var t=y(this).closest(".fl-row"),i=t.attr("data-node"),l=t.find(".fl-row-content"),o=FLBuilderConfig.global.row_width+"px",n=y(".fl-builder-row-settings");t.hasClass("fl-row-fixed-width")&&t.css("max-width",o),l.css("max-width",o),n.length&&n.find("[name=max_content_width]").val("");const s=FL.Builder.data.getLayoutActions();s.resetRowWidth(i),FLBuilder._closeAllSubmenus(),FLBuilder.triggerHook("didResetRowWidth",i),e.stopPropagation()},_highlightEmptyCols:function(){var e="row"==FLBuilderConfig.userTemplateType||"column"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",e=(y(FLBuilder._contentClass+" .fl-row"+e),y(FLBuilder._contentClass+" .fl-col"+e));e.removeClass("fl-col-highlight").find(".fl-col-content").css("height",""),e.each(function(){var e=y(this);0===e.find(".fl-module, .fl-col").length&&e.addClass("fl-col-highlight")})},_highlightRowsAndColsForDrag:function(e){var t="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)";"column"==FLBuilderConfig.userTemplateType&&(t=":not(:first)"),y(FLBuilder._contentClass+" .fl-row").addClass("fl-row-highlight"),e&&e.closest(".fl-row-overlay").length||y(FLBuilder._contentClass+" .fl-col"+t).addClass("fl-col-highlight")},_removeEmptyRowAndColHighlights:function(){y(".fl-row-highlight").removeClass("fl-row-highlight"),y(".fl-col-highlight").removeClass("fl-col-highlight")},_adjustColHeightsForDrag:function(){var e="row"==FLBuilderConfig.userTemplateType?"":".fl-row:not(.fl-node-global) ",t="column"==FLBuilderConfig.userTemplateType?"":".fl-col:not(.fl-node-global) ",i=y(FLBuilder._contentClass),l=i.find(e+".fl-col-group:not(.fl-col-group-nested) > "+t+"> .fl-col-content"),o=i.find(e+".fl-col-group-nested "+t+".fl-col-content"),n=0;for(y(".fl-node-drag-init").hide();n<o.length;n++)FLBuilder._adjustColHeightForDrag(o.eq(n));for(n=0;n<l.length;n++)FLBuilder._adjustColHeightForDrag(l.eq(n));y(".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 e=y(this),t=e.find("a"),i=e.closest(".fl-col"),l=i.parents(".fl-col"),o=y('<div class="fl-col-highlight-guide"></div>'),e=e.closest(".fl-block-overlay").offset().top;(i=t.hasClass("fl-block-col-move-parent")||t.hasClass("fl-block-col-edit-parent")?l:i).hasClass("fl-col-highlight")||(i.find("> .fl-col-content").append(o),i.addClass("fl-col-has-highlight-guide"),e<(t=o.offset().top)&&o.css("top",e-t+4+"px"))},_removeColHighlightGuides:function(){y(".fl-col-has-highlight-guide").removeClass("fl-col-has-highlight-guide"),y(".fl-col-highlight-guide").remove()},_colMouseenter:function(e){var t=y(this),i=t.closest(".fl-col-group"),l=(i.attr("data-node"),i.hasClass("fl-col-group-has-child-loading")),o=t.hasClass("fl-node-global"),n=0<t.parents(".fl-node-global").length,s=t.closest(".fl-col-group").find("> .fl-col").length,i=i.find("> .fl-col").index(t),r=0===i,i=s===i+1,a=0<t.find(".fl-col").length,d=0<t.find(".fl-module").length,u=t.parents(".fl-col"),c=u.closest(".fl-col-group"),h=0<u.length,f=void 0!==t.data("template-url"),g="column"==FLBuilderConfig.userTemplateType&&!h;numParentCols=h?c.find("> .fl-col").length:0,parentIndex=c.find("> .fl-col").index(u),parentFirst=h&&0===parentIndex,parentLast=h&&numParentCols===parentIndex+1,row=t.closest(".fl-row"),rowIsFixedWidth=!!row.find(".fl-row-fixed-width").addBack(".fl-row-fixed-width").length,userCanResizeRows=FLBuilderConfig.rowResize.userCanResizeRows,hasRules=t.hasClass("fl-node-has-rules"),template=wp.template("fl-col-overlay"),overlay=null,FLBuilderConfig.simpleUi&&!o||o&&n&&d&&!f||o&&"column"==FLBuilderConfig.userTemplateType&&d||!o&&0<t.find(".fl-module").length||0<t.find(".fl-builder-node-loading-placeholder").length||!d&&a||n&&a&&!f||t.closest(".fl-builder-node-loading").length||(t.hasClass("fl-block-overlay-active")||(FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),overlay=FLBuilder._appendOverlay(t,template({global:o,groupLoading:l,numCols:s,first:r,last:i,isRootCol:g,hasChildCols:a,hasParentCol:h,parentFirst:parentFirst,parentLast:parentLast,numParentCols:numParentCols,rowIsFixedWidth:rowIsFixedWidth,userCanResizeRows:userCanResizeRows,hasRules:hasRules})),FLBuilder._buildOverlayOverflowMenu(overlay),FLBuilder._initColDragResizing()),y("body").addClass("fl-block-overlay-muted"))},_colMouseleave:function(e){var t=y(this),i=y(e.target),e=y(e.toElement)||y(e.relatedTarget),l=0<t.find(".fl-module").length,t=(t.hasClass("fl-node-global"),void 0!==t.data("template-url")),o=e.is("#tiptip_holder"),e=0<e.closest("#tiptip_holder").length;i.closest(".fl-block-col-resize").length||o||e||l&&!t||(FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides(),FLBuilder._closeAllSubmenus())},_removeColOverlays:function(){var e=y(".fl-col");e.removeClass("fl-block-overlay-active"),e.find(".fl-col-overlay").remove(),y("body").removeClass("fl-block-overlay-muted"),FLBuilder._closeAllSubmenus()},_colDragHelper:function(){return y('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.column+"</div>")},_colDragInit:function(e){var t=y(e.target),i=y(".fl-col-sortable-proxy-item"),l=t.closest(".fl-col");(l=t.hasClass("fl-block-col-move-parent")?l.parents(".fl-col"):l).addClass("fl-node-dragging"),FLBuilder._blockDragInit(e),FLBuilder._removeColHighlightGuides(),e.target=i[0],i.trigger(e)},_colDragInitTouch:function(t){var e=y(t.target),i=y(".fl-col-sortable-proxy-item"),l=e.closest(".fl-col"),o=(e.closest(".fl-module"),!1);e.on("touchmove",function(e){o||(t.currentTarget=l[0],FLBuilder._colDragInit(t),o=!0),i.trigger(e)}),e.on("touchend",function(e){i.trigger(e)})},_colDragStart:function(e,t){var i=y(".fl-node-dragging");i.hide(),FLBuilder._resetColumnWidths(i.parent()),FLBuilder._blockDragStart(e,t)},_colDragStop:function(e,t){FLBuilder._blockDragStop(e,t);var e=y(".fl-node-dragging").removeClass("fl-node-dragging").show(),i=e.attr("data-node"),l=t.item.parent(),o=e.parent(),n=o.attr("data-node");newGroup=l.closest(".fl-col-group"),newGroupId=newGroup.attr("data-node"),newRow=l.closest(".fl-row"),position=0,l.closest('[data-node="'+i+'"]').length||l.hasClass("fl-sortable-disabled")||l.hasClass("fl-col-sortable-proxy")?FLBuilder._resetColumnWidths(o):l.hasClass("fl-col-content")?(e.remove(),0===o.find(".fl-col").length&&o.remove(),position=l.find("> .fl-module, .fl-col-group, .fl-col-sortable-proxy-item").index(t.item),FLBuilder._addColGroup(l.closest(".fl-col").attr("data-node"),i,position)):l.hasClass("fl-col-drop-target")?(l.hasClass("fl-col-drop-target-last")?l.parent().after(e):l.parent().before(e),FLBuilder._resetColumnWidths(newGroup),FL.Builder.data.getLayoutActions(),n==newGroupId?FL.Builder.getActions().moveNode(i,e.index()):FL.Builder.getActions().moveNode(i,e.index(),newGroupId,[n,newGroupId]),FLBuilder._resizeLayout()):l.hasClass("fl-col-group-drop-target")?(e.remove(),0===o.find(".fl-col").length&&o.remove(),position=newRow.find(".fl-row-content > .fl-col-group").index(newGroup),position=l.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addColGroup(newRow.attr("data-node"),i,position)):l.hasClass("fl-row-drop-target")&&(e.remove(),position=l.closest(".fl-builder-content").find(".fl-row").index(newRow),position=l.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addRow(i,position)),0===o.find(".fl-col").length&&o.remove(),y(".fl-col-sortable-proxy").append(t.item),FLBuilder._highlightEmptyCols(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._closeAllSubmenus()},_colSettingsClicked:function(e){var t=y(this),i=t.closest(".fl-col"),l=i.attr("data-node"),o=0<t.parent().find("ul.fl-builder-submenu").length,n=0<t.closest(".fl-block-overlay-global").length;t.closest(".fl-block-overlay-global").hasClass("fl-col-overlay"),"column"!=FLBuilderConfig.userTemplateType&&i.attr("data-template-url");if(!FLBuilder._colResizing&&(!n||FLBuilderConfig.userCanEditGlobalTemplates)&&(!o||t.hasClass("fl-col-overlay"))){t.hasClass("fl-block-col-edit-parent")&&(l=i.parents(".fl-col").attr("data-node"));const s=FL.Builder.data.getLayoutActions();s.displaySettings(l),e.stopPropagation()}},_showColSettings:function(t,e,i){if(e&&i&&"row"!==FLBuilderConfig.userTemplateType){if(FLBuilderConfig.userCanEditGlobalTemplates){let e=window.open(y('.fl-col[data-node="'+t+'"]').attr("data-template-url"));e.FLBuilderGlobalNodeId=t}}else FLBuilderSettingsForms.render({id:"col",nodeId:t,className:"fl-builder-col-settings",attrs:'data-node="'+t+'"',buttons:e||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:e?[FLBuilderStrings.global]:[],settings:FLBuilderSettingsConfig.nodes[t],preview:{type:"col"}},function(){0===y(".fl-col.fl-node-"+t).siblings(".fl-col").length&&y("#fl-field-equal_height, #fl-field-content_alignment").hide()})},_copyColClicked:function(e){var t=y(this).closest(".fl-col").attr("data-node");FLBuilder._copyColumn(t),e.stopPropagation()},_copyColumn:function(t){var e=FLBuilder._getJQueryElement(t),i=e.clone(),l=e.parent(),o=y(".fl-builder-settings[data-node]"),n=o.attr("data-node"),s=n===t?e:e.find('[data-node="'+n+'"]'),r=null;o.length&&s.length&&(r=FLBuilder._getSettings(o),FLBuilderSettingsConfig.nodes[n]=r),i.addClass("fl-node-"+t+"-clone fl-builder-node-clone"),i.find(".fl-block-overlay").remove(),e.after(i),FLBuilder._showNodeLoading(t+"-clone"),FLBuilder._resetColumnWidths(l);const a=FL.Builder.data.getLayoutActions();a.copyColumn(t,r,n,function(e){e=FLBuilder._jsonParse(e);e.nodeParent=l,e.nodePosition=i.index(),e.duplicatedColumn=t,e.onAddNewHTML=function(){i.remove()},FLBuilder._copyColComplete(e)})},_copyColComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder._resetColumnWidths(e.nodeParent),FLBuilder.triggerHook("didDuplicateColumn",{newNodeId:e.nodeId,oldNodeId:e.duplicatedColumn})})},_deleteColClicked:function(e){var t=y(e.target).closest(".fl-col").data("node");FL.Builder.getActions().deleteNode(t),e.stopPropagation()},_getColToDelete:function(e){var t=e.closest(".fl-col-group"),i=e.parents(".fl-col"),l=0<i.length,o=i.find("> .fl-col-content > .fl-module, > .fl-col-content > .fl-col-group"),n=e.siblings(".fl-col");return l&&1===o.length&&(0===n.length?e=i:1!==n.length||n.find(".fl-module").length||(e=t)),e},_deleteCol:function(e){var t=e.attr("data-node"),i=e.closest(".fl-row"),l=e.closest(".fl-col-group"),o=0;if(e.remove(),rowCols=i.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(i);else{0===groupCols.length?l.remove():(o=6===groupCols.length?16.65:7===groupCols.length?14.28:Math.round(100/groupCols.length*100)/100,groupCols.css("width",o+"%"),FLBuilder.triggerHook("didResetColumnWidths",{cols:groupCols}));const n=FL.Builder.data.getLayoutActions();n.deleteColumn(t,o),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder.triggerHook("didDeleteColumn",t)}},_addCols:function(e,t,i,l,o){var n=e.closest(".fl-col-group"),s=n.find(".fl-col").index(e),e=e.attr("data-node");i=void 0===i?"1-col":i,l=(l=void 0!==l&&l)?1:0,"after"==t&&s++,FLBuilder._showNodeLoadingPlaceholder(n,s),FLBuilder._removeAllOverlays();const r=FL.Builder.data.getLayoutActions();r.addColumns(e,t,i,l,o)},_addColsComplete:function(e){var t="object"==typeof e?e:FLBuilder._jsonParse(e);t.nodeParent=FLBuilder._newColParent,t.nodePosition=FLBuilder._newColPosition,FLBuilder._renderLayout(t,function(){FLBuilder._removeNodeLoadingPlaceholder(y(".fl-node-"+t.nodeId)),FLBuilder.triggerHook("didAddColumn",t.nodeId),FLBuilder.triggerHook("didResetColumnWidths",{cols:y(".fl-node-"+t.nodeId).find("> .fl-col")})})},_addColGroup:function(e,t,i,l){var o=y(".fl-node-"+e);FLBuilder._newColGroupPosition=i,o.hasClass("fl-col")?FLBuilder._newColGroupParent=o.find(" > .fl-col-content"):FLBuilder._newColGroupParent=o.find(".fl-row-content"),FLBuilder._showNodeLoadingPlaceholder(FLBuilder._newColGroupParent,i);const n=FL.Builder.data.getLayoutActions();n.addColumnGroup(e,t,i,l)},_addColGroupComplete:function(e){var t=FLBuilder._jsonParse(e),e=y(t.html),i=e.data("node");e.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(y(".fl-node-"+i)),FLBuilder.triggerHook("didAddColumnGroup",i)})},_initColDragResizing:function(){y(".fl-block-col-resize").not(".fl-block-row-resize").draggable({axis:"x",start:FLBuilder._colDragResizeStart,drag:FLBuilder._colDragResize,stop:FLBuilder._colDragResizeStop})},_colDragResizeStart:function(e,t){for(var i=y(t.helper),l="",o=i.hasClass("fl-block-col-resize-parent"),n=o?i.closest(".fl-col").parents(".fl-col"):null,s=o?n.parents(".fl-col-group"):i.closest(".fl-col-group"),r=s.find("> .fl-col"),a=o?n:i.closest(".fl-col"),o=a.attr("data-node"),n=y("[data-node="+o+"] #fl-field-size input"),d=null,u=100,c=0,o=null,h=null,f=(d=i.hasClass("fl-block-col-resize-e")?(l="e",a.nextAll(".fl-col").first()):(l="w",a.prevAll(".fl-col").first())).attr("data-node"),f=y("[data-node="+f+"] #fl-field-size input");c<r.length;c++)r.eq(c).data("node")!=a.data("node")&&r.eq(c).data("node")!=d.data("node")&&(u-=parseFloat(r.eq(c)[0].style.width));n.length?(o=n,h="col"):f.length&&(o=f,h="sibling"),FLBuilder._colResizeData={handle:i,feedbackLeft:i.find(".fl-block-col-resize-feedback-left"),feedbackRight:i.find(".fl-block-col-resize-feedback-right"),direction:l,groupWidth:s.outerWidth(),col:a,id:a.attr("data-node"),colWidth:parseFloat(a[0].style.width)/100,sibling:d,siblingId:d.attr("data-node"),offset:t.position.left,availWidth:u,setting:o,settingType:h,layoutActions:FL.Builder.data.getLayoutActions()},FLBuilder._colResizing=!0,y("body").addClass("fl-builder-col-resizing"),FLBuilder._closePanel(),FLBuilder._destroyOverlayEvents(),FLBuilder.triggerHook("col-resize-start")},_colDragResize:function(e,t){var i=FLBuilder._colResizeData,l=FLBuilderConfig.isRtl?"w":"e",o=i.handle.closest(".fl-block-overlay"),t=(i.offset-t.position.left)/i.groupWidth,t=l==i.direction?100*(i.colWidth-t):100*(i.colWidth+t),n=Math.round(100*t)/100,t=i.availWidth-t,s=Math.round(100*t)/100,t=Math.round(100*(i.availWidth-8))/100;n<8?(n=8,s=t):s<8&&(n=t,s=8),requestAnimationFrame(()=>{l==i.direction?(i.feedbackLeft.html(n.toFixed(1)+"%").show(),i.feedbackRight.html(s.toFixed(1)+"%").show()):(i.feedbackLeft.html(s.toFixed(1)+"%").show(),i.feedbackRight.html(n.toFixed(1)+"%").show()),i.col.css("width",n+"%"),i.sibling.css("width",s+"%"),i.setting&&("col"===i.settingType?i.setting.val(parseFloat(i.col[0].style.width)):"sibling"===i.settingType&&i.setting.val(parseFloat(i.sibling[0].style.width))),i.layoutActions.resizeColumn(i.id,n,i.siblingId,s,!1)}),FLBuilder._buildOverlayOverflowMenu(o),FLBuilder.triggerHook("col-resize-drag")},_colDragResizeStop:function(e,t){var i=FLBuilder._colResizeData,l=FLBuilder._colResizeData.handle.closest(".fl-block-overlay"),o=i.id,n=parseFloat(i.col[0].style.width),s=i.sibling.data("node"),i=parseFloat(i.sibling[0].style.width);FLBuilder._colResizeData.feedbackLeft.hide(),FLBuilder._colResizeData.feedbackRight.hide();const r=FL.Builder.data.getLayoutActions();r.resizeColumn(o,n,s,i),FLBuilder._buildOverlayOverflowMenu(l),FLBuilder._colResizeData=null,y("body").removeClass("fl-builder-col-resizing"),FLBuilder._bindOverlayEvents(),setTimeout(function(){FLBuilder._colResizing=!1},50),FLBuilder.triggerHook("col-resize-stop"),FLBuilder.triggerHook("didResizeColumn",{colId:o,colWidth:n,siblingId:s,siblingWidth:i})},_resetColumnWidthsClicked:function(e){var t=y(this),i=!!t.closest(".fl-row-overlay").length,l=null,o=[],n=null,s=0,r=y(".fl-builder-col-settings");(i?t.closest(".fl-row").find(".fl-row-content > .fl-col-group"):t.parents(".fl-col-group").last()).each(function(){for(l=y(this),n=l.find(".fl-col-group"),o.push(l.data("node")),FLBuilder._resetColumnWidths(l),s=0;s<n.length;s++)FLBuilder._resetColumnWidths(n.eq(s)),o.push(n.eq(s).data("node"))}),r.length&&(i=y(".fl-node-"+r.attr("data-node")),r.find("#fl-field-size input").val(parseFloat(i[0].style.width)));const a=FL.Builder.data.getLayoutActions();a.resetColWidths(o),FLBuilder.triggerHook("col-reset-widths"),FLBuilder._closeAllSubmenus(),e.stopPropagation()},_resetColumnWidths:function(e){var e=(e instanceof jQuery?e:y(e)).find(" > .fl-col:visible"),t=0,t=6===e.length?16.65:7===e.length?14.28:Math.round(100/e.length*100)/100;e.css("width",t+"%"),FLBuilder.triggerHook("didResetColumnWidths",{cols:e})},_moduleMouseenter:function(e){var t=y(this),i=(t.attr("data-node"),t.attr("data-name")),l=t.hasClass("fl-node-global"),o=0<t.parents(".fl-node-global").length,n=t.parents(".fl-col-group").last().hasClass("fl-col-group-has-child-loading"),s=t.closest(".fl-col-group").find("> .fl-col").length,r=t.closest(".fl-col"),a=0===r.index(),d=s===r.index()+1,u=r.parents(".fl-col"),c=0<u.length,h=c?u.closest(".fl-col-group").find("> .fl-col").length:0,f=c&&0===u.index(),u=c&&h===u.index()+1,g="column"==FLBuilderConfig.userTemplateType&&!c,p=t.closest(".fl-row"),m=p.hasClass("fl-node-global"),p=!!p.find(".fl-row-fixed-width").addBack(".fl-row-fixed-width").length,b=FLBuilderConfig.rowResize.userCanResizeRows,v=t.hasClass("fl-node-has-rules"),_=t.attr("data-rules-text"),L=t.attr("data-rules-type"),F=r.attr("data-rules-text"),w=r.attr("data-rules-type"),r=r.hasClass("fl-node-has-rules"),C=wp.template("fl-module-overlay");l&&o&&"row"!=FLBuilderConfig.userTemplateType&&m||l&&o&&"column"!=FLBuilderConfig.userTemplateType&&!m||t.closest(".fl-builder-node-loading").length||t.find(".fl-inline-editor:visible").length||(t.hasClass("fl-block-overlay-active")||(FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),o=FLBuilder._appendOverlay(t,C({global:l,moduleName:i,groupLoading:n,numCols:s,colFirst:a,colLast:d,isRootCol:g,hasParentCol:c,numParentCols:h,parentFirst:f,parentLast:u,rowIsFixedWidth:p,userCanResizeRows:b,hasRules:v,rulesTextModule:_,rulesTypeModule:L,rulesTextCol:F,rulesTypeCol:w,colHasRules:r})),FLBuilder._buildOverlayOverflowMenu(o),FLBuilder._initColDragResizing()),y("body").addClass("fl-block-overlay-muted"))},_moduleMouseleave:function(e){y(this);var t=y(e.target),e=y(e.toElement)||y(e.relatedTarget),i=e.is("#tiptip_holder"),e=0<e.closest("#tiptip_holder").length;t.closest(".fl-block-col-resize").length||i||e||(FLBuilder._removeModuleOverlays(),FLBuilder._removeColHighlightGuides())},_removeModuleOverlays:function(){var e=y(".fl-module");e.removeClass("fl-block-overlay-active"),e.find(".fl-module-overlay").remove(),y("body").removeClass("fl-block-overlay-muted"),FLBuilder._closeAllSubmenus()},_moduleDragHelper:function(e,t){return y('<div class="fl-builder-block-drag-helper">'+t.attr("data-name")+"</div>")},_moduleDragInit:function(e){var t=y(e.target).closest(".fl-module");FLBuilder._blockDragInit(e),t.append('<div class="fl-module-sortable-proxy"></div>'),e.target=t.find(".fl-module-sortable-proxy")[0],t.trigger(e)},_moduleDragInitTouch:function(t){var e=y(t.target),i=e.closest(".fl-module"),l=!1;e.on("touchmove",function(e){l||(t.currentTarget=i[0],FLBuilder._moduleDragInit(t),l=!0),e.target=i.find(".fl-module-sortable-proxy")[0],y(e.target).trigger(e)}),e.on("touchend",function(e){e.target=i.find(".fl-module-sortable-proxy")[0],y(e.target).trigger(e),e.stopPropagation(),i.find(".fl-module-sortable-proxy").remove()})},_moduleDragStart:function(e,t){y(t.item).data("original-position",t.item.index()),FLBuilder._removeRowOverlays(),FLBuilder._blockDragStart(e,t)},_moduleDragStop:function(e,t){FLBuilder._blockDragStop(e,t);var i=t.item,l=i.parent(),o=null,n=0,s=0;if(y(".fl-module-sortable-proxy").remove(),l.hasClass("fl-builder-modules")||l.hasClass("fl-builder-widgets"))i.remove();else{if(i.hasClass("fl-builder-block")){if(l.hasClass("fl-sortable-disabled"))return i.remove(),void FLBuilder._showPanel();l.hasClass("fl-row-drop-target")?(l=i.closest(".fl-builder-content"),s=0,o=i.closest(".fl-row"),n=l.find(".fl-row").index(o)):l.hasClass("fl-col-group-drop-target")?(s=(l=i.closest(".fl-row-content")).closest(".fl-row").attr("data-node"),o=i.closest(".fl-col-group"),n=l.find(" > .fl-col-group").index(o)):l.hasClass("fl-col-drop-target")?(s=(l=i.closest(".fl-col-group")).attr("data-node"),o=i.closest(".fl-col"),n=l.find(" > .fl-col").index(o)):(n=l.find("> .fl-module, .fl-col-group, .fl-builder-block").index(i),s=i.closest(".fl-col").attr("data-node")),i.closest(".fl-drop-target-last").length&&(n+=1),FLBuilder._addModule(l,s,i.attr("data-type"),n,i.attr("data-widget"),i.attr("data-alias")),i.remove()}else{if(l.hasClass("fl-sortable-disabled"))return y(e.target).append(t.item),y(e.target).children().eq(t.item.data("original-position")).before(t.item),void FLBuilder._highlightEmptyCols();l.hasClass("fl-row-drop-target")?(o=i.closest(".fl-row"),n=i.closest(".fl-builder-content").children(".fl-row").index(o),n=i.closest(".fl-drop-target-last").length?n+1:n,FLBuilder._addRow("1-col",n,i.attr("data-node")),i.remove()):l.hasClass("fl-col-group-drop-target")?(o=i.closest(".fl-col-group"),n=i.closest(".fl-row-content ").find(" > .fl-col-group").index(o),n=i.closest(".fl-drop-target-last").length?n+1:n,FLBuilder._addColGroup(i.closest(".fl-row").attr("data-node"),"1-col",n,i.attr("data-node")),i.remove()):l.hasClass("fl-col-drop-target")?(o=i.closest(".fl-col"),n=i.closest(".fl-col-drop-target-last").length?"after":"before",FLBuilder._addCols(o,n,"1-col",0<i.closest(".fl-col-group-nested").length,i.attr("data-node")),i.remove()):FLBuilder._reorderModule(i)}FLBuilder._resizeLayout()}},_reorderModule:function(e){var t=e.closest(".fl-col").attr("data-node"),i=e.attr("data-parent"),l=e.attr("data-node"),o=e.index();t==i?FLBuilder._reorderNode(l,o):(e.attr("data-parent",t),FLBuilder._moveNode(t,l,o))},_deleteModuleClicked:function(e){var t=y(e.target).closest(".fl-module").data("node");FL.Builder.getActions().deleteNode(t),e.stopPropagation()},_getJQueryElement:function(e){return y(FLBuilder._contentClass).find('[data-node="'+e+'"]')},_needsDeleteConfirmation:function(e){if("module"===e.type)return!0;const t=FLBuilder._getJQueryElement(e.node);return 0<t.find(".fl-module").length},_deleteModule:function(e){var t=e.closest(".fl-row"),i=e.attr("data-node");const l=FL.Builder.data.getLayoutActions();l.deleteNode(i),e.empty(),e.remove(),t.removeClass("fl-block-overlay-muted"),FLBuilder._highlightEmptyCols(),FLBuilder._removeAllOverlays(),FLBuilder.triggerHook("didDeleteModule",{nodeId:i,moduleType:e.attr("data-type")})},_moduleCopyClicked:function(e){var t=y(this).closest(".fl-module").data("node");const i=FL.Builder.getActions();i.copyNode(t),e.stopPropagation()},_copyModule:function(t){var e=FLBuilder._getJQueryElement(t),i=e.clone(),l=e.parent(),o=y(".fl-builder-module-settings[data-node="+t+"]"),n={};o.length&&(n=FLBuilder._getSettings(o),FLBuilderSettingsConfig.nodes[t]=n),i.addClass("fl-node-"+t+"-clone fl-builder-node-clone"),i.find(".fl-block-overlay").remove(),e.after(i),FLBuilder._showNodeLoading(t+"-clone");const s=i.get(0),r=(s.scrollIntoView({behavior:"smooth",block:"center"}),FL.Builder.data.getLayoutActions());r.copyModule(t,n,function(e){e=FLBuilder._jsonParse(e);e.nodeParent=l,e.nodePosition=l.find(" > .fl-col-group, > .fl-module").index(i),e.duplicatedModule=t,e.onAddNewHTML=function(){i.remove()},FLBuilder._moduleCopyComplete(e)})},_moduleCopyComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder.triggerHook("didDuplicateModule",{newNodeId:e.nodeId,oldNodeId:e.duplicatedModule,moduleType:e.moduleType})})},_moduleSettingsClicked:function(e){var t=y(this),i=(t.closest(".fl-module").attr("data-type"),t.closest(".fl-module").attr("data-node")),t=(t.closest(".fl-col").attr("data-node"),0<t.closest(".fl-block-overlay-global").length);if(e.stopPropagation(),!FLBuilder._colResizing&&(!t||FLBuilderConfig.userCanEditGlobalTemplates)){const l=FL.Builder.getActions();l.openSettings(i)}},_showModuleSettings:function(e,t){var i,l,o;FLBuilderSettingsConfig.modules&&(i=FLBuilderSettingsConfig.modules[e.type],l=e.settings||FLBuilderSettingsConfig.nodes[e.nodeId],o=y("head"),-1===y.inArray(e.type,FLBuilder._loadedModuleAssets)&&(""!==i.assets.css&&o.append(i.assets.css),""!==i.assets.js&&o.append(i.assets.js),FLBuilder._loadedModuleAssets.push(e.type)),FLBuilderSettingsForms.render({type:"module",id:e.type,nodeId:e.nodeId,className:"fl-builder-module-settings fl-builder-"+e.type+"-settings",attrs:'data-node="'+e.nodeId+'" data-parent="'+e.parentId+'" data-type="'+e.type+'"',buttons:e.global||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:e.global?[FLBuilderStrings.global]:[],settings:l,legacy:e.legacy,helper:FLBuilder._moduleHelpers[e.type],rules:FLBuilder._moduleHelpers[e.type]?FLBuilder._moduleHelpers[e.type].rules:null,messages:FLBuilder._moduleHelpers[e.type]?FLBuilder._moduleHelpers[e.type].messages:null,hide:!(FLBuilderConfig.userCanEditGlobalTemplates||!e.global),preview:{type:"module",layout:e.layout,callback:function(){FLBuilder.triggerHook("didAddModule",{nodeId:e.nodeId,moduleType:l.type})}}},t))},_saveModuleClicked:function(){var e=y(this).closest(".fl-builder-settings"),t=e.attr("data-type"),t=(e.attr("data-node"),FLBuilder._moduleHelpers[t]),i=!0;void 0!==t&&(e.find("label.error").remove(),e.validate().hideErrors(),i=(i=e.validate().form())&&t.submit()),i?FLBuilder._saveSettings():FLBuilder._toggleSettingsTabErrors()},_addModule:function(e,t,i,l,o,n){FLBuilder._showNodeLoadingPlaceholder(e,l),e.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=e,FLBuilder._newModulePosition=l);const s=FL.Builder.data.getLayoutActions();s.addModule(i,t,l,{widget:void 0===o?"":o,alias:void 0===n?"":n,nodePreview:1})},_addModuleComplete:function(e){e=FLBuilder._jsonParse(e);e.layout&&(FLBuilder._newModuleParent&&FLBuilder._newModuleParent.find(".fl-builder-node-loading-placeholder").hide(),e.layout.nodeParent=FLBuilder._newModuleParent,e.layout.nodePosition=FLBuilder._newModulePosition),e.settings||(e.settings=FLBuilderSettingsConfig.defaults.modules[e.type]),y("form.fl-builder-settings").length||e.global?e.layout&&FLBuilder._renderLayout(e.layout):FLBuilder._showModuleSettings(e,function(){y(".fl-builder-module-settings").data("new-module","1")})},registerModuleHelper:function(e,t){FLBuilder._moduleHelpers[e]=y.extend({},{rules:{},init:function(){},submit:function(){return!0},preview:function(){}},t)},_registerModuleHelper:function(e,t){FLBuilder.registerModuleHelper(e,t)},_showNodeTemplateSettings:function(e){var t=y(".fl-builder-settings-lightbox .fl-builder-settings"),i=t.attr("data-node"),l=FLBuilderStrings.saveModule;if(t.hasClass("fl-builder-row-settings")?l=FLBuilderStrings.saveRow:t.hasClass("fl-builder-col-settings")&&(l=FLBuilderStrings.saveColumn),!FLBuilder._triggerSettingsSave(!1,!1,!1))return!1;FLBuilderSettingsForms.render({id:"node_template",nodeId:i,title:l,attrs:'data-node="'+i+'"',className:"fl-builder-node-template-settings",rules:{name:{required:!0}}},function(){FLBuilderConfig.userCanEditGlobalTemplates||y("#fl-field-global").hide()})},_saveNodeTemplate:function(){var e=y(".fl-builder-node-template-settings"),t=e.attr("data-node");if(e.validate().form()){FLBuilder._showNodeLoading(t);const i=FL.Builder.data.getLayoutActions();i.saveNodeTemplate(t,FLBuilder._getSettings(e)),FLBuilder._lightbox.close()}},_saveNodeTemplateComplete:function(e){var t,i=FLBuilder._jsonParse(e),l=y(".fl-builder-saved-"+i.type+"s"),o=l.find(".fl-builder-block"),n=null,s=i.name.toLowerCase(),r=0,a=wp.template("fl-node-template-block"),e={name:i.name,isGlobal:i.global,content:i.type,id:i.id,postID:i.postID,kind:"template",type:"user",link:i.link,category:{uncategorized:FLBuilderStrings.uncategorized}};if(FLBuilderConfig.contentItems.template.push(e),FLBuilder.triggerHook("contentItemsChanged"),i.layout&&(FLBuilder._renderLayout(i.layout),FLBuilder.triggerHook("didSaveGlobalNodeTemplate",i.config)),0===o.length)l.append(a(i));else for(;r<o.length;r++){if(t=(n=o.eq(r)).text().toLowerCase().trim(),0===r&&s<t){l.prepend(a(i));break}if(s<t){n.before(a(i));break}if(o.length-1===r){l.append(a(i));break}}l.find(".fl-builder-block-no-node-templates").remove()},_nodeTemplateDragStop:function(t,i){FLBuilder._blockDragStop(t,i);var t=i.item,i=t.parent(),l=null,o=0,n=null,s="",r=null;if(i.hasClass("fl-builder-blocks-section-content"))t.remove();else{if(t.hasClass("fl-builder-block-saved-row")||t.hasClass("fl-builder-block-row-template"))o=(n=t.closest(".fl-row")).length?y(FLBuilder._contentClass+" .fl-row").index(n):0,o=i.hasClass("fl-drop-target-last")?o+1:o,l=null,s="render_new_row_template",r=FLBuilder._addRowComplete,FLBuilder._newRowPosition=o,FLBuilder._showNodeLoadingPlaceholder(y(FLBuilder._contentClass),o);else if(t.hasClass("fl-builder-block-saved-column")){if(n=t.closest(".fl-col"),colGroup=i.closest(".fl-col-group"),colGroupId=colGroup.attr("data-node"),s="render_new_col_template",r=FLBuilder._addColsComplete,i.hasClass("fl-sortable-disabled"))return t.remove(),void FLBuilder._showPanel();i.hasClass("fl-row-drop-target")?(n=t.closest(".fl-row"),l=0,i=y(FLBuilder._contentClass),o=n.length?i.find(".fl-row").index(n):0):i.hasClass("fl-col-group-drop-target")?(i=t.closest(".fl-row-content"),l=t.closest(".fl-row").attr("data-node"),o=t.closest(".fl-row").find(".fl-row-content > .fl-col-group").index(t.closest(".fl-col-group"))):i.hasClass("fl-col-drop-target")&&(o=(i=t.closest(".fl-col-group")).children(".fl-col").index(t.closest(".fl-col")),l=i.attr("data-node")),t.closest(".fl-drop-target-last").length&&(o+=1),i.hasClass("fl-col-group")?FLBuilder._newColParent=null:FLBuilder._newColParent=i,FLBuilder._newColPosition=o,FLBuilder._showNodeLoadingPlaceholder(i,o)}else if(t.hasClass("fl-builder-block-saved-module")||t.hasClass("fl-builder-block-module-template")){if(s="render_new_module",r=FLBuilder._addModuleComplete,i.hasClass("fl-sortable-disabled"))return t.remove(),void FLBuilder._showPanel();i.hasClass("fl-row-drop-target")?(l=0,o=(i=t.closest(".fl-builder-content")).find(".fl-row").index(t.closest(".fl-row"))):i.hasClass("fl-col-group-drop-target")?(l=(i=t.closest(".fl-row-content")).closest(".fl-row").attr("data-node"),o=i.find(" > .fl-col-group").index(t.closest(".fl-col-group"))):l=i.hasClass("fl-col-drop-target")?(o=(i=t.closest(".fl-col-group")).children(".fl-col").index(t.closest(".fl-col")),i.attr("data-node")):(o=i.children(".fl-module, .fl-builder-block").index(t),t.closest(".fl-col").attr("data-node")),t.closest(".fl-drop-target-last").length&&(o+=1),i.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=i,FLBuilder._newModulePosition=o),FLBuilder._showNodeLoadingPlaceholder(i,o)}n=t.attr("data-id"),i=t.attr("data-type");let e="render_new_row_template"===s?"row":"render_new_col_template"===s?"column":"module";const a=FL.Builder.data.getLayoutActions();a.addNodeTemplate(e,n,i,l,o,function(e){var t;-1<s.indexOf("row")?(t=FLBuilder._jsonParse(e),FLBuilder.triggerHook("didApplyRowTemplateComplete",t.config),r(t.layout)):-1<s.indexOf("col")?(t=FLBuilder._jsonParse(e),FLBuilder.triggerHook("didApplyColTemplateComplete",t.config),r(t.layout)):r(e)}),t.remove()}},_editNodeTemplateClicked:function(e){e.preventDefault(),e.stopPropagation(),window.open(y(this).attr("href"))},_deleteNodeTemplateClicked:function(e){var e=y(e.target),t=e.closest(".fl-builder-blocks-section").find(".fl-builder-blocks-section-content"),i=t.find(".fl-builder-block"),e=e.closest(".fl-builder-block"),l=e.hasClass("fl-builder-block-global"),o=l?FLBuilderStrings.deleteGlobalTemplate:FLBuilderStrings.deleteTemplate,n=e.attr("data-id");if(confirm(o)){e.remove(),1===i.length&&(e.hasClass("fl-builder-block-saved-row")?t.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedRows+"</span>"):t.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedModules+"</span>")),e.hasClass("fl-builder-block-global")&&FLBuilder.showAjaxLoader();const s=FL.Builder.data.getLayoutActions();s.deleteNodeTemplate(n,l),o=_.findIndex(FLBuilderConfig.contentItems.template,{id:e.attr("data-id"),type:"user"}),FLBuilderConfig.contentItems.template.splice(o,1),FLBuilder.triggerHook("contentItemsChanged")}},_initSettingsForms:function(){FLBuilder._initSettingsSections(),FLBuilder._initButtonGroupFields(),FLBuilder._initCompoundFields(),FLBuilder._CodeFieldSSLCheck(),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(),y(".fl-builder-settings-fields").css("visibility","visible"),y(".fl-builder-settings button").on("click",function(e){e.preventDefault()}),FLBuilder.triggerHook("settings-form-init")},_destroySettingsForms:function(){FLBuilder._destroyEditorFields()},_setSettingsFormContent:function(e){y(".fl-legacy-settings").remove(),y("body").append(e)},_settingsTabClicked:function(e){var t=y(this),i=t.closest(".fl-builder-settings"),t=t.attr("href").split("#").pop();FLBuilder._resetSettingsTabsState(),i.find(".fl-builder-settings-tab").removeClass("fl-active"),i.find("#"+t).addClass("fl-active"),i.find(".fl-builder-settings-tabs .fl-active").removeClass("fl-active"),i.find("a[href*="+t+"]").addClass("fl-active"),FLBuilderConfig.rememberTab?localStorage.setItem("fl-builder-settings-tab",t):localStorage.setItem("fl-builder-settings-tab",""),FLBuilder._focusFirstSettingsControl(),e.preventDefault()},_resetSettingsTabsState:function(){var e=y(".fl-lightbox:visible");FLBuilder._hideTabsOverflowMenu(),e.find(".fl-builder-settings-tabs .fl-active").removeClass("fl-active"),e.find(".fl-builder-settings-tabs-overflow-menu .fl-active").removeClass("fl-active"),e.find(".fl-contains-active").removeClass("fl-contains-active")},_calculateSettingsTabsOverflow:function(){var e=y(".fl-lightbox:visible"),t=e.outerWidth(),i=e.hasClass("fl-lightbox-width-slim"),l=e.find(".fl-builder-settings-tabs"),o=e.find(".fl-builder-settings-tabs-overflow-menu"),n=e.find(".fl-builder-settings-tabs-more"),l=l.find("a"),s=!1,r=t-60,a=0,d=i?16:30;o.html(""),FLBuilder._hideTabsOverflowMenu(),l.removeClass("fl-overflowed"),l.each(function(){if(!y(this).is(":visible"))return!0;var e,t,i;s||(e=y(this).textWidth()+d+12,r<=(a+=e)&&(s=!0)),s?(e=y(this).html(),i=y(this).attr("href"),t="",y(this).hasClass("fl-active")&&(t="fl-active"),y(this).hasClass("error")&&(t+=" error"),i=y('<a href="'+i+'" '+(t=""!==t?'class="'+t+'"':t)+">"+e+"</a>"),o.append(i),y(this).addClass("fl-overflowed")):y(this).removeClass("fl-overflowed")}),s?e.addClass("fl-lightbox-has-tab-overflow"):e.removeClass("fl-lightbox-has-tab-overflow"),0<o.find(".fl-active").length?n.addClass("fl-contains-active"):n.removeClass("fl-contains-active"),0<o.find(".error").length?n.addClass("fl-contains-errors"):n.removeClass("fl-contains-errors")},_settingsTabsToOverflowMenuItemClicked:function(e){var t=y(e.currentTarget),i=t.attr("href"),l=t.closest(".fl-lightbox-header-wrap").find(".fl-builder-settings-tabs"),i=l.find('a[href="'+i+'"]'),l=l.find(".fl-builder-settings-tabs-more");FLBuilder._resetSettingsTabsState(),i.trigger("click"),t.addClass("fl-active"),l.addClass("fl-contains-active"),FLBuilder._hideTabsOverflowMenu(),e.preventDefault()},_hasOverflowTabs:function(){return 0<y(".fl-lightbox:visible").find(".fl-builder-settings-tabs-overflow-menu a").length},_showTabsOverflowMenu:function(){var e;FLBuilder._hasOverflowTabs()&&((e=y(".fl-lightbox:visible")).find(".fl-builder-settings-tabs-overflow-menu").css("display","flex"),e.find(".fl-builder-settings-tabs-overflow-click-mask").show(),this.isShowingSettingsTabsOverflowMenu=!0)},_hideTabsOverflowMenu:function(){var e=y(".fl-lightbox:visible");e.find(".fl-builder-settings-tabs-overflow-menu").css("display","none"),e.find(".fl-builder-settings-tabs-overflow-click-mask").hide(),this.isShowingSettingsTabsOverflowMenu=!1},_toggleTabsOverflowMenu:function(e){FLBuilder.isShowingSettingsTabsOverflowMenu?FLBuilder._hideTabsOverflowMenu():FLBuilder._showTabsOverflowMenu(),e.stopPropagation()},_initSettingsSections:function(){y(".fl-builder-settings:visible").find(".fl-builder-settings-section").each(FLBuilder._initSection)},_settingsCancelClicked:function(e){var t=y(".fl-builder-lightbox[data-parent]"),i=y(".fl-builder-module-settings"),l=null,o=null,n=null,s="column"==FLBuilderConfig.userTemplateType;if(0<t.length)FLBuilder._closeNestedSettings();else{0<i.length&&void 0!==i.data("new-module")?(l=y(FLBuilder.preview.state.html),n=(o=y(".fl-node-"+i.data("node"))).closest(".fl-col"),0<l.find(".fl-node-"+n.data("node")).length||s?FLBuilder._deleteModule(o):FLBuilder._deleteCol(n)):FLBuilder.preview&&FLBuilder.preview.revert();const r=FL.Builder.data.getLayoutActions();r.cancelDisplaySettings(),FLBuilder.preview=null,FLLightbox.closeParent(this),FLBuilder.triggerHook("didCancelNodeSettings")}},_focusFirstSettingsControl:function(){var e=y(".fl-builder-settings:visible"),t=e.find(".fl-builder-settings-tab.fl-active"),e=e.data("node"),i=t.find(".fl-field").first(),l=i.find('input:not([type="hidden"]), textarea, select, button, a, .fl-editor-field').first();e&&y(".fl-node-"+e+" .fl-inline-editor").length||("undefined"!=typeof tinyMCE&&l.hasClass("fl-editor-field")?(t=l.find("textarea.wp-editor-area").attr("id"),tinyMCE.get(t).focus()):setTimeout(function(){l.focus().css("animation-name","fl-grab-attention")},300),i.css("animation-name","fl-grab-attention"),i.on("animationend",function(){i.css("animation-name","")}))},_initSettingsValidation:function(e,t){y(".fl-builder-settings").last().validate({ignore:".fl-ignore-validation",rules:e,messages:t=t||{},errorPlacement:FLBuilder._settingsErrorPlacement})},_settingsErrorPlacement:function(e,t){e.appendTo(t.parent())},_toggleSettingsTabErrors:function(){for(var e,t=y(".fl-builder-settings:visible"),i=t.find(".fl-builder-settings-tab"),l=null,o=0;o<i.length;o++)e=(l=i.eq(o)).find("label.error"),(tabLink=t.find(".fl-builder-settings-tabs a[href*="+l.attr("id")+"]")).find(".fl-error-icon").remove(),tabLink.removeClass("error"),0<e.length&&(tabLink.append('<span class="fl-error-icon"></span>'),tabLink.addClass("error"));FLBuilder._calculateSettingsTabsOverflow()},_getSettings:function(e){FLBuilder._updateEditorFields();for(var t,i,l=e.serializeArray(),o=0,n=0,s="",r=[],a=[],d={},o=0;o<l.length;o++)if(t=l[o].value.replace(/\r/gm,"").replace(/&#39;/g,"'"),!(-1<l[o].name.indexOf("flrich")))if(-1<l[o].name.indexOf("[")){for(i=l[o].name.replace(/\[(.*)\]/,""),r=[],a=(s=l[o].name.replace(i,"")).match(/\[[^\]]*\]/g),n=0;n<a.length;n++)"[]"!=a[n]&&r.push(a[n].replace(/\[|\]/g,""));s.match(/\[\]\[[^\]]*\]\[[^\]]+\]/)||s.match(/\[\]\[[^\]]*\]\[\]\[[^\]]+\]/)?(void 0===d[i]&&(d[i]={}),void 0===d[i][r[0]]&&(d[i][r[0]]={}),d[i][r[0]][r[1]]=t):s.match(/\[\]\[[^\]]*\]\[\]/)?(void 0===d[i]&&(d[i]={}),void 0===d[i][r[0]]&&(d[i][r[0]]=[]),d[i][r[0]].push(t)):s.match(/\[\]\[[^\]]*\]/)?(void 0===d[i]&&(d[i]={}),d[i][r[0]]=t):s.match(/\[\]/)&&(void 0===d[i]&&(d[i]=[]),d[i].push(t))}else d[l[o].name]=t;for(s in d)if(void 0!==d["as_values_"+s]){d[s]=y.grep(d["as_values_"+s].split(","),function(e){return""!==e}).join(",");try{delete d["as_values_"+s]}catch(e){}}return y.each(e.find("[name]"),function(e,t){t=y(t).attr("name").replace(/\[(.*)\]/,"");t in d||(d[t]="")}),d=y.extend({},FLBuilder._getOriginalSettings(e),d)},_getSettingsJSONForHTML:function(e){return JSON.stringify(e).replace(/\'/g,"&#39;").replace("<wbr />","<wbr>")},_getOriginalSettings:function(e,t){var i=e.find(".fl-builder-settings-json"),e=e.data("node"),l=FLBuilderSettingsConfig.nodes,o=null,n={};if(e&&l[e]?o=l[e]:i.length&&(o=FLBuilder._jsonParse(i.val().replace(/&#39;/g,"'"))),o)for(key in o)(key.match(/[a-z0-9-_]+$/)&&y("#fl-field-"+key).length||t)&&(n[key]=o[key]);return n},_getSettingsForChangedCheck:function(e,t){var i=FLBuilder._getSettings(t);if(e){t=y(".fl-node-"+e);if(t.hasClass("fl-module")){t=t.data("type"),t=FLBuilderSettingsConfig.editables[t];if(t&&FLBuilderSettingsConfig.nodes[e])for(var l in t)i[l]=FLBuilderSettingsConfig.nodes[e][l]}}return i},_saveSettings:function(i){var e=y(".fl-builder-settings-lightbox .fl-builder-settings"),t=e.data("new-module"),l=e.attr("data-node"),o=FLBuilder._getSettings(e),n=FLBuilder.preview;function s(){FLBuilder._showNodeLoading(l),FLBuilderSettingsConfig.nodes[l]=o;const e=FL.Builder.data.getLayoutActions();var t=FLBuilder._saveSettingsComplete.bind(this,i,n);e.updateNodeSettings(l,o,t),FLBuilder.triggerHook("didSaveNodeSettings",{nodeId:l,settings:o}),FLBuilder._lightbox.close()}!FLBuilder.isUndefined(i)&&FLBuilder.isBoolean(i)||(i=!0),n&&!n._settingsHaveChanged()&&FLBuilder.isUndefined(t)?FLBuilder._lightbox.close():FLBuilderConfig.userCaps.unfiltered_html?s():(FLBuilderSettingsForms.showLightboxLoader(),FLBuilder.ajax({action:"verify_settings",settings:o},function(e){"true"===e?s():(msg='<p style="font-weight:bold;text-align:center;">'+FLBuilderStrings.noScriptWarn.heading+"</p>",FLBuilderConfig.userCaps.global_unfiltered_html?msg+="<p>"+FLBuilderStrings.noScriptWarn.global+"</p>":msg+="<p>"+FLBuilderStrings.noScriptWarn.message+"</p>",msg=(msg+='<p><div class="fl-diff"></div></p>')+"<p>"+FLBuilderStrings.noScriptWarn.footer+"</p>",FLBuilderSettingsForms.hideLightboxLoader(),FLBuilder.alert(msg),""!==(data=y.parseJSON(e)).diff&&(y(".fl-diff").html(data.diff),y(".fl-diff").prepend("<p>"+FLBuilderStrings.codeErrorDetected+"</p>"),y(".fl-diff .diff-deletedline").each(function(){(y(this).find("del").length<1?y(this).css("background-color","rgb(255, 192, 203, 0.7)").css("padding","10px"):y(this).find("del").css("background-color","rgb(255, 192, 203, 0.7)")).css("border","1px solid pink")}),console.log("============"),console.log("key: "+data.key),console.log("value: "+data.value),console.log("parsed: "+data.parsed),console.log("============")))}))},_saveSettingsComplete:function(e,t,i){function l(){t&&o.layout.partial&&o.layout.nodeId===t.nodeId&&!FLBuilder._publishAndRemain&&(t.clear(),t=null,FLBuilder._publishAndRemain=!1)}var o=FLBuilder._jsonParse(i),i=o.layout.nodeType,n=o.layout.moduleType,s="didSave"+i.charAt(0).toUpperCase()+i.slice(1)+"SettingsComplete";!0===e?FLBuilder._renderLayout(o.layout,l):l(),FLBuilder.triggerHook("didSaveNodeSettingsComplete",{nodeId:o.node_id,nodeType:i,moduleType:n,settings:o.settings}),FLBuilder.triggerHook(s,{nodeId:o.node_id,nodeType:i,moduleType:n,settings:o.settings})},_triggerSettingsSave:function(e,t,i){var l=FLBuilder._lightbox._node.find("form.fl-builder-settings"),o=FLBuilder._lightbox._node.data("instance-id"),o=FLLightbox._instances[o],n=y(".fl-lightbox-wrap[data-parent]:visible"),s=!0;return e=!_.isUndefined(e)&&e,t=!_.isUndefined(t)&&t,(i=_.isUndefined(i)?!e:i)||(FLBuilder._publishAndRemain=!0),l.length&&(n.length&&(n.find(".fl-builder-settings-save").trigger("click"),(n.find("label.error").length||y(".fl-builder-alert-lightbox:visible").length)&&(s=!1)),s&&!l.validate({ignore:".fl-ignore-validation"}).form()&&(s=!1),n=FLBuilderSettingsForms.settingsHaveChanged(),s&&n&&(e&&o.disableClose(),l.find(".fl-builder-settings-save").trigger("click"),e&&o.enableClose(),(l.find("label.error").length||y(".fl-builder-alert-lightbox:visible").length)&&(s=!1)),i?(FLBuilder._destroySettingsForms(),!n&&FLBuilder.preview&&(FLBuilder.preview.clear(),FLBuilder.preview=null)):FLBuilderSettingsForms.cacheCurrentSettings(),n||e||o.close()),s?FLBuilder.triggerHook("didTriggerSettingsSave"):(FLBuilder.triggerHook("didFailSettingsSave"),FLBuilder._toggleSettingsTabErrors(),t&&!y(".fl-builder-alert-lightbox:visible").length&&FLBuilder.alert(FLBuilderStrings.settingsHaveErrors)),s},_refreshSettingsPreviewReference:function(){FLBuilder.preview&&FLBuilder.preview._initElementsAndClasses()},_openNestedSettings:function(e){e.className&&-1===e.className.indexOf("fl-builder-settings-lightbox")&&(e.className+=" fl-builder-settings-lightbox"),e=y.extend({className:"fl-builder-lightbox fl-builder-settings-lightbox",destroyOnClose:!0,resizable:!0},e);var t=y(".fl-lightbox-wrap:visible"),i=t.find(".fl-lightbox"),e=new FLLightbox(e),l=e._node,o=l.find(".fl-lightbox");return t.hide(),l.attr("data-parent",t.attr("data-instance-id")),o.attr("style",i.attr("style")),e.on("resized",FLBuilder._calculateSettingsTabsOverflow),e.open('<div class="fl-builder-lightbox-loading"></div>'),e},_closeNestedSettings:function(){var e=y(".fl-builder-lightbox[data-parent]:visible"),t=e.find(".fl-lightbox"),i=e.attr("data-instance-id"),i=FLLightbox._instances[i],e=e.attr("data-parent"),l=y('[data-instance-id="'+e+'"]'),o=l.find(".fl-lightbox"),n=l.find("form"),s=FLLightbox._instances[e];i&&(i.on("close",function(){o.attr("style",t.attr("style")),l.show(),s._resize(),l.find("label.error").remove(),n.validate().hideErrors(),FLBuilder._toggleSettingsTabErrors(),FLBuilder._initMultipleFields()}),i.close())},_showHelpTooltip:function(){y(this).siblings(".fl-help-tooltip-text").fadeIn()},_hideHelpTooltip:function(){y(this).siblings(".fl-help-tooltip-text").fadeOut()},_initSection:function(){var e=y(this);e.find(".fl-builder-settings-section-header").on("click",function(){e.toggleClass("fl-builder-settings-section-collapsed")})},_initButtonGroupFields:function(){y(".fl-builder-settings:visible").find(".fl-button-group-field").each(FLBuilder._initButtonGroupField)},_initButtonGroupField:function(){var e=y(this),i=e.find(".fl-button-group-field-option"),l=e.find("input");i.on("click",function(){var e=y(this);"1"==e.attr("data-selected")?(e.attr("data-selected","0"),l.val("").trigger("change")):(i.attr("data-selected","0"),e.attr("data-selected","1"),l.val(e.data("value")).trigger("change"))}),l.on("change",function(e){var t=l.val(),t=i.filter('[data-value="'+t+'"]');i.attr("data-selected","0"),t.attr("data-selected","1")})},_initCompoundFields:function(){y(".fl-builder-settings:visible").find(".fl-compound-field").each(FLBuilder._initCompoundField)},_initCompoundField:function(){var e=y(this),t=e.find(".fl-compound-field-section"),i=e.find(".fl-compound-field-section-toggle"),e=e.find(".fl-compound-field-setting").has(".fl-dimension-field-units");t.each(function(){var e=y(this);e.find(".fl-compound-field-section-toggle").length||e.addClass("fl-compound-field-section-visible")}),i.on("click",function(){var e=y(this),t=e.closest(".fl-field"),e="."+e.closest(".fl-compound-field-section").attr("class").split(" ").join(".");t.find(e).toggleClass("fl-compound-field-section-visible")}),e.each(function(){var e=y(this),t=e.find(".fl-compound-field-label");t.length&&!e.find(".fl-shadow-field").length&&t.append('<i class="fl-dimension-field-link fl-tip dashicons dashicons-admin-links" title="Link Values"></i>')})},_initAutoSuggestFields:function(){var t,i=y(".fl-builder-settings:visible .fl-suggest-field"),e=null,l=null,o=[];i.each(function(){""!==(e=y(this)).attr("data-value")&&(FLBuilderSettingsForms.showFieldLoader(e),o.push({name:e.attr("name"),value:e.attr("data-value"),action:e.attr("data-action"),data:e.attr("data-action-data")}))}),o.length?FLBuilder.ajax({action:"get_autosuggest_values",fields:o},function(e){for(l in t=FLBuilder._jsonParse(e))y('.fl-suggest-field[name="'+l+'"]').attr("data-value",t[l]);i.each(FLBuilder._initAutoSuggestField)}):i.each(FLBuilder._initAutoSuggestField)},_initAutoSuggestField:function(){var e=y(this);e.autoSuggest(FLBuilder._ajaxUrl({fl_action:"fl_builder_autosuggest",fl_as_action:e.data("action"),fl_as_action_data:e.data("action-data"),_wpnonce:FLBuilderConfig.ajaxNonce}),y.extend({},{asHtmlID:e.attr("name"),selectedItemProp:"name",searchObjProps:"name",minChars:2,keyDelay:1e3,fadeOut:!1,usePlaceholder:!0,emptyText:FLBuilderStrings.noResultsFound,showResultListWhenNoMatch:!0,preFill:e.data("value"),queryParam:"fl_as_query",afterSelectionAdd:FLBuilder._updateAutoSuggestField,afterSelectionRemove:FLBuilder._updateAutoSuggestField,selectionLimit:e.data("limit"),canGenerateNewSelections:!1},e.data("args"))),FLBuilderSettingsForms.hideFieldLoader(e)},_updateAutoSuggestField:function(e,t,i){var l=this;y(this).siblings(".as-values").val(i.join(",")).trigger("change"),y(this).parents(".as-selections").sortable({items:":not(.as-original)",update:function(e,t){var i=[];set=l.parents(".as-selections").find("li.as-selection-item"),y.each(set,function(e,t){i.push(y(t).attr("data-value"))}),y(l).siblings(".as-values").val(i.join(",")).trigger("change")}})},_CodeFieldSSLCheck:function(){y("body").append('<div class="sg-test" style="display:none"><svg xmlns="http://www.w3.org/2000/svg"></svg></div>'),"https://www.w3.org/2000/svg"===y(".sg-test").find("svg").attr("xmlns")&&(FLBuilder._codeDisabled=!0),y(".sg-test").remove()},_initCodeFields:function(){FLBuilder._codeDisabled||y(".fl-builder-settings:visible").find(".fl-code-field").each(FLBuilder._initCodeField)},_initCodeField:function(){var e=y(this),n=e.closest(".fl-builder-settings"),t=e.find("textarea"),e=(t.attr("id"),t.data("editor")),i=t.data("wrap"),l=y("<div>",{position:"absolute",height:20*parseInt(t.attr("rows"),10)}),s=null,r=!(!n.hasClass("fl-builder-global-settings")&&!n.hasClass("fl-builder-layout-settings"));l.insertBefore(t),l.attr("contentEditable",!0),l.addClass("fl-ignore-validation"),t.css("display","none"),ace.require("ace/ext/language_tools"),(s=ace.edit(l[0])).$blockScrolling=1/0,s.getSession().setValue(t.val()),s.getSession().setMode("ace/mode/"+e),i&&s.getSession().setUseWrapMode(!0),s.setOptions(FLBuilderConfig.AceEditorSettings),s.getSession().on("change",function(e){t.val(s.getSession().getValue()).trigger("change")}),s.getSession().on("changeAnnotation",function(){for(var e=s.getSession().getAnnotations(),t=n.find(".fl-builder-settings-save"),i=n.find(".fl-builder-settings-error"),l=!1,o=0;o<e.length;o++)if(!(-1<e[o].text.indexOf("DOCTYPE")||-1<e[o].text.indexOf("Named entity expected")||-1<e[o].text.indexOf("@supports")||"error"!==e[o].type)){l=!0;break}val=s.getSession().getValue(),r&&l&&null!==val.match(/<\/iframe>|<\/script>/gm)&&(t.addClass("fl-builder-settings-error"),t.on("click",FLBuilder._showCodeFieldCriticalError)),l&&!t.hasClass("fl-builder-settings-error")&&i.length&&FLBuilderConfig.CheckCodeErrors&&(t.addClass("fl-builder-settings-error"),t.on("click",FLBuilder._showCodeFieldError)),l||(i.removeClass("fl-builder-settings-error"),i.off("click",FLBuilder._showCodeFieldError),i.off("click",FLBuilder._showCodeFieldCriticalError))}),t.closest(".fl-field").data("editor",s)},_showCodeFieldError:function(e){e.stopImmediatePropagation(),FLBuilder.confirm({message:FLBuilderStrings.codeError,cancel:function(){var e=y(".fl-builder-settings:visible .fl-builder-settings-save");e.removeClass("fl-builder-settings-error"),e.off("click",FLBuilder._showCodeFieldError),e.trigger("click")},strings:{ok:FLBuilderStrings.codeErrorFix,cancel:FLBuilderStrings.codeErrorIgnore}})},_showCodeFieldCriticalError:function(e){e.stopImmediatePropagation(),FLBuilder.alert(FLBuilderStrings.codeerrorhtml)},_initMultipleFields:function(){y(".fl-builder-settings:visible .fl-builder-field-multiples").each(function(){var e=y(this),t=null,i=0,l=FLBuilderConfig.isRtl?{left:10}:{right:10},o=e.attr("data-limit")||0,n=e.find("tr").length||0;for(0<parseInt(o)&&n-1>=parseInt(o)?(e.find(".fl-builder-field-copy").hide(),e.find(".fl-builder-field-add").fadeOut()):e.find(".fl-builder-field-copy, .fl-builder-field-add").show();i<e.length;i++)1===(t=e.eq(i).find(".fl-builder-field-multiple")).length?t.eq(0).find(".fl-builder-field-actions").addClass("fl-builder-field-actions-single"):t.find(".fl-builder-field-actions").removeClass("fl-builder-field-actions-single");y(".fl-builder-field-multiples").sortable({items:".fl-builder-field-multiple",cursor:"move",cursorAt:l,distance:5,opacity:.5,placeholder:"fl-builder-field-dd-zone",stop:FLBuilder._fieldDragStop,tolerance:"pointer",axis:"y"})})},_addFieldClicked:function(){var e=y(this),t=e.attr("data-field"),i=e.closest("tr").siblings("tr[data-field="+t+"]").last(),l=i.clone(),o=l.find(".fl-form-field"),n=null,s=parseInt(i.find("label span.fl-builder-field-index").html(),10)+1;l.find("th label span.fl-builder-field-index").html(s),l.find(".fl-form-field-preview-text").html(""),l.find(".fl-form-field-before").remove(),l.find(".fl-form-field-after").remove(),l.find("input, textarea, select").val(""),i.after(l),FLBuilder._initMultipleFields(),o.length?(n=o.find(".fl-form-field-edit").data("type"),o.find("input").val(JSON.stringify(FLBuilderSettingsConfig.defaults.forms[n]))):((n=(o=e.closest("form.fl-builder-settings")).data("type"))&&o.hasClass("fl-builder-module-settings")&&(s=FLBuilderSettingsConfig.defaults.modules[n][t][0],l.find("input, textarea, select").val(s)),FLBuilder._renumberFields(l.closest(".fl-field")))},_copyFieldClicked:function(){var e=y(this).closest("tr"),t=e.clone(),i=parseInt(e.find("label span.fl-builder-field-index").html(),10)+1;t.find("th label span.fl-builder-field-index").html(i),e.after(t),FLBuilder._renumberFields(e.parent()),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview()},_deleteFieldClicked:function(){var e=y(this).closest("tr"),t=e.parent();confirm(FLBuilderStrings.deleteFieldMessage)&&(e.remove(),FLBuilder._renumberFields(t),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview())},_renumberFields:function(e){e.find(".fl-builder-field-multiple").each(function(e,t){y(t).find("th label span.fl-builder-field-index").html(e+1),FLBuilder._renumberFieldAttr(t,"name",e),FLBuilder._renumberFieldAttr(t,"id",e),FLBuilder._renumberFieldAttr(t,"for",e)})},_renumberFieldAttr:function(e,l,o){y(e).find("["+l+"]").each(function(e,t){var i=(i=y(t).attr(l)).replace(/\[(\d+)\]/,"["+o+"]");y(t).attr(l,i)})},_fieldDragHelper:function(){return y('<div class="fl-builder-field-dd-helper"></div>')},_fieldDragStop:function(e,t){FLBuilder._renumberFields(t.item.parent()),FLBuilder.preview.delayPreview()},_initSelectFields:function(){var e=y(".fl-builder-settings:visible").find("select"),e=(e.on("change",FLBuilder._settingsSelectChanged),e.trigger("change"),e.on("change",FLBuilder._calculateSettingsTabsOverflow),y(".fl-builder-settings:visible").find(".fl-button-group-field input[type=hidden]"));e.on("change",FLBuilder._settingsSelectChanged),e.trigger("change"),e.on("change",FLBuilder._calculateSettingsTabsOverflow)},_settingsSelectChanged:function(){var e=y(this),t=e.attr("data-toggle"),i=e.attr("data-hide"),l=e.attr("data-trigger"),o=e.val(),n=0,s=FLBuilderResponsiveEditing._mode,r=e.closest(".fl-field-responsive-setting"),s="fl-field-responsive-setting-"+s;if(!r.length||e.parent().hasClass(s)){if(void 0!==t){for(n in t=FLBuilder._jsonParse(t))FLBuilder._settingsSelectToggle(t[n].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(t[n].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(t[n].tabs,"hide","a[href*=fl-builder-settings-tab-","]");void 0!==t[o]&&(FLBuilder._settingsSelectToggle(t[o].fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(t[o].sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(t[o].tabs,"show","a[href*=fl-builder-settings-tab-","]"))}if(void 0!==i){for(n in i=FLBuilder._jsonParse(i))FLBuilder._settingsSelectToggle(i[n].fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(i[n].sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(i[n].tabs,"show","a[href*=fl-builder-settings-tab-","]");void 0!==i[o]&&(FLBuilder._settingsSelectToggle(i[o].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(i[o].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(i[o].tabs,"hide","a[href*=fl-builder-settings-tab-","]"))}if(void 0!==l&&void 0!==(l=FLBuilder._jsonParse(l))[o]&&void 0!==l[o].fields)for(n=0;n<l[o].fields.length;n++)y("#fl-field-"+l[o].fields[n]).find("select").trigger("change")}},_settingsSelectToggle:function(e,t,i,l){var o=0;if(l=void 0===l?"":l,void 0!==e)for(;o<e.length;o++)y(".fl-builder-settings:visible").find(i+e[o]+l)[t](),y(i+e[o]+l).parent().find('.fl-field[data-type="code"]').each(function(){FLBuilder._codeDisabled||y(this).data("editor").resize()})},_initColorPickers:function(){var e=FLBuilderConfig.colorPresets||[];FLBuilder.colorPicker=new FLBuilderColorPicker({mode:"hsv",elements:".fl-color-picker .fl-color-picker-value",presets:e,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}}),y(FLBuilder.colorPicker).on("presetRemoved presetAdded presetSorted",function(e,t){FLBuilder.ajax({action:"save_color_presets",presets:t.presets})})},_initGradientPickers:function(){y(".fl-builder-settings:visible .fl-gradient-picker").each(FLBuilder._initGradientPicker)},_initGradientPicker:function(){var e=y(this),t=e.find(".fl-gradient-picker-type-select"),i=e.find(".fl-gradient-picker-angle-wrap"),l=e.find(".fl-gradient-picker-position");t.on("change",function(){"linear"===y(this).val()?(i.show(),l.hide()):(i.hide(),l.show())})},_initPhotoFields:function(){var e=y(".fl-builder-settings:visible").find(".fl-photo-field select");e.on("change",FLBuilder._toggleSettingsOnIconChange),e.trigger("change")},_initSinglePhotoSelector:function(){null===FLBuilder._singlePhotoSelector&&(FLBuilder._singlePhotoSelector=wp.media({title:FLBuilderStrings.selectPhoto,button:{text:FLBuilderStrings.selectPhoto},library:{type:FLBuilderConfig.uploadTypes.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",y.proxy(FLBuilder._singlePhotoOpened,this)),FLBuilder._singlePhotoSelector.once("select",y.proxy(FLBuilder._singlePhotoSelected,this)),FLBuilder._singlePhotoSelector.open()},_singlePhotoOpened:function(){var e=FLBuilder._singlePhotoSelector.state().get("selection"),t=y(this).closest(".fl-photo-field"),i=t.find("input[type=hidden]"),l=i.val(),o=null;y(this).hasClass("fl-photo-replace")?(e.reset(),t.addClass("fl-photo-empty"),i.val("")):""!==l?((o=wp.media.attachment(l)).fetch(),e.add(o?[o]:[])):e.reset()},_singlePhotoSelected:function(){var e=FLBuilder._singlePhotoSelector.state().get("selection").first().toJSON(),t=y(this).closest(".fl-photo-field"),i=t.find("input[type=hidden]"),l=t.find(".fl-photo-preview img"),o=t.find("select");e.url&&e.url.endsWith(".svg")&&(e.sizes={full:{url:e.url,filename:e.url.split("/").pop(),height:"",width:""}}),i.val(e.id),l.attr("src",FLBuilder._getPhotoSrc(e)),t.removeClass("fl-photo-empty").removeClass("fl-photo-no-attachment"),t.find("label.error").remove(),o.show(),o.html(FLBuilder._getPhotoSizeOptions(e,o.val())),o.trigger("change"),FLBuilderSettingsConfig.attachments[e.id]=e},_singlePhotoRemoved:function(){FLBuilder._initSinglePhotoSelector();var e=FLBuilder._singlePhotoSelector.state(),e=void 0!==e?e.get("selection"):null,t=y(this).closest(".fl-photo-field"),i=t.find("input[type=hidden]"),l=t.find("select");e&&e.reset(),t.addClass("fl-photo-empty"),i.val(""),l.html('<option value="" selected></option>'),l.trigger("change")},_getPhotoSrc:function(e){return(void 0===e.sizes?e:void 0!==e.sizes.thumbnail?e.sizes.thumbnail:e.sizes.full).url},_getPhotoSizeOptions:function(e,t){var i="",l=null,o=null,n=!1,s="",r="",a={full:FLBuilderStrings.fullSize,large:FLBuilderStrings.large,medium:FLBuilderStrings.medium,thumbnail:FLBuilderStrings.thumbnail};if(void 0===e.sizes||0===e.sizes.length)i+='<option value="'+e.url+'">'+FLBuilderStrings.fullSize+"</option>";else{for(sizecheck in t=t&&t.split(/[\\/]/).pop(),selectedverified=!1,e.sizes)if(e.sizes[sizecheck].url.split(/[\\/]/).pop()===t){selectedverified=!0;break}for(l in selectedverified||(t=!1),e.sizes)o="",s=void 0!==a[l]?a[l]:void 0!==FLBuilderConfig.customImageSizeTitles[l]?FLBuilderConfig.customImageSizeTitles[l]:"",t?t!==e.sizes[l].url.split(/[\\/]/).pop()||n||(o=' selected="selected"',n=!0):(void 0!==FLBuilderConfig.photomodulesize&&l===FLBuilderConfig.photomodulesize&&!n||l==FLBuilderConfig.defaultImageSize&&!n)&&(o=' selected="selected"',n=!0),e.sizes[l].width&&e.sizes[l].height&&(s=s&&s+" - ",r=e.sizes[l].width+" x "+e.sizes[l].height),i+='<option data-size="'+l+'" value="'+e.sizes[l].url+'"'+o+">"+s+r+"</option>"}return i},_selectMultiplePhotos:function(){var e=y(this).closest(".fl-multiple-photos-field").find("input[type=hidden]").val(),t=""===e?"":FLBuilder._jsonParse(e),e=wp.media.gallery.defaults.id,i='[gallery ids="-1"]',l=null,o=null,n=null,s=null,r=[];if("object"==typeof t){for(s in t)r.push(t[s]);i='[gallery ids="'+r.join()+'"]'}l=wp.shortcode.next("gallery",i).shortcode,_.isUndefined(l.get("id"))&&!_.isUndefined(e)&&l.set("id",e),o=wp.media.gallery.attachments(l),(n=new wp.media.model.Selection(o.models,{props:o.props.toJSON(),multiple:!0})).gallery=o.gallery,n.more().done(function(){n.length||FLBuilder._multiplePhotoSelector.setState("gallery-library"),n.props.set({query:!1}),n.unmirror(),n.props.unset("orderby")}),FLBuilder._multiplePhotoSelector&&FLBuilder._multiplePhotoSelector.dispose(),FLBuilder._multiplePhotoSelector=wp.media({frame:"post",state:y(this).hasClass("fl-multiple-photos-edit")?"gallery-edit":"gallery-library",title:wp.media.view.l10n.editGalleryTitle,editing:!0,multiple:!0,selection:n}).open(),y(FLBuilder._multiplePhotoSelector.views.view.el).addClass("fl-multiple-photos-lightbox"),FLBuilder._multiplePhotoSelector.once("update",y.proxy(FLBuilder._multiplePhotosSelected,this))},_multiplePhotosSelected:function(e){for(var t=y(this).closest(".fl-multiple-photos-field"),i=t.find("input[type=hidden]"),l=t.find(".fl-multiple-photos-count"),o=[],n=0;n<e.models.length;n++)o.push(e.models[n].id);1==o.length?l.html("1 "+FLBuilderStrings.photoSelected):l.html(o.length+" "+FLBuilderStrings.photosSelected),t.removeClass("fl-multiple-photos-empty"),t.find("label.error").remove(),i.val(JSON.stringify(o)).trigger("change")},_initSingleVideoSelector:function(){var e;null===FLBuilder._singleVideoSelector&&(e=_wpPluploadSettings.defaults.filters.mime_types[0].extensions,_wpPluploadSettings.defaults.multipart_params.fl_upload_type="video",_wpPluploadSettings.defaults.filters.mime_types[0].extensions=FLBuilderConfig.uploadTypes.videoTypes,FLBuilder._singleVideoSelector=wp.media({title:FLBuilderStrings.selectVideo,button:{text:FLBuilderStrings.selectVideo},library:{type:["video/mp4","video/webm"]},multiple:!1}),FLBuilder._singleVideoSelector.on("open",FLBuilder._wpmedia_reset_errors),FLBuilder._singleVideoSelector.on("close",function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=e}))},_selectSingleVideo:function(){FLBuilder._initSingleVideoSelector(),FLBuilder._singleVideoSelector.once("select",y.proxy(FLBuilder._singleVideoSelected,this)),FLBuilder._singleVideoSelector.open()},_singleVideoSelected:function(){var e=FLBuilder._singleVideoSelector.state().get("selection").first().toJSON(),t=y(this).closest(".fl-video-field"),i=t.find(".fl-video-preview-img"),l=t.find(".fl-video-preview-filename"),o=t.find("input[type=hidden]");i.html('<span class="dashicons dashicons-media-video"></span>'),l.html(e.filename),t.removeClass("fl-video-empty"),t.find("label.error").remove(),o.val(e.id).trigger("change"),FLBuilderSettingsConfig.attachments[e.id]=e},_singleVideoRemoved:function(){FLBuilder._initSingleVideoSelector();var e=FLBuilder._singleVideoSelector.state(),e=void 0!==e?e.get("selection"):null,t=y(this).closest(".fl-video-field"),i=t.find(".fl-video-preview-img img"),l=t.find(".fl-video-preview-filename"),o=t.find("input[type=hidden]");e&&e.reset(),i.attr("src",""),l.html(""),t.addClass("fl-video-empty"),o.val("").trigger("change")},_selectMultipleAudios:function(){var e=y(this).closest(".fl-multiple-audios-field").find("input[type=hidden]").val(),e=""==e?'[playlist ids="-1"]':'[playlist ids="'+FLBuilder._jsonParse(e).join()+'"]',e=wp.shortcode.next("playlist",e).shortcode,t=wp.media.playlist.defaults.id,i=null,l=null;_.isUndefined(e.get("id"))&&!_.isUndefined(t)&&e.set("id",t),i=wp.media.playlist.attachments(e),(l=new wp.media.model.Selection(i.models,{props:i.props.toJSON(),multiple:!0})).playlist=i.playlist,l.more().done(function(){l.props.set({query:!1}),l.unmirror(),l.props.unset("orderby")}),FLBuilder._multipleAudiosSelector&&FLBuilder._multipleAudiosSelector.dispose(),FLBuilder._multipleAudiosSelector=wp.media({frame:"post",state:y(this).hasClass("fl-multiple-audios-edit")?"playlist-edit":"playlist-library",title:wp.media.view.l10n.editPlaylistTitle,editing:!0,multiple:!0,selection:l}).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",y.proxy(FLBuilder._multipleAudiosSelected,this))},_multipleAudiosSelected:function(e){for(var t=y(this).closest(".fl-multiple-audios-field"),i=t.find(".fl-multiple-audios-count"),l=t.find("input[type=hidden]"),o=[],n=0;n<e.models.length;n++)o.push(e.models[n].id);1==o.length?i.html("1 "+FLBuilderStrings.audioSelected):i.html(o.length+" "+FLBuilderStrings.audiosSelected),l.val(JSON.stringify(o)).trigger("change"),t.removeClass("fl-multiple-audios-empty"),t.find("label.error").remove()},_initIconFields:function(){var e=y(".fl-builder-settings:visible").find(".fl-icon-field input");e.on("change",FLBuilder._toggleSettingsOnIconChange),e.trigger("change")},_toggleSettingsOnIconChange:function(){var e=y(this),t=e.val(),e=e.attr("data-show");void 0!==e&&(e=FLBuilder._jsonParse(e),FLBuilder._settingsSelectToggle(e.fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(e.sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(e.tabs,"hide","a[href*=fl-builder-settings-tab-","]"),t&&(FLBuilder._settingsSelectToggle(e.fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(e.sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(e.tabs,"show","a[href*=fl-builder-settings-tab-","]"),FLBuilder._calculateSettingsTabsOverflow()))},_selectIcon:function(){var t=this;FLIconSelector.open(function(e){FLBuilder._iconSelected.apply(t,[e])})},_iconSelected:function(e){var t=y(this).closest(".fl-icon-field"),i=t.find("input[type=hidden]"),l=t.find("i"),o=l.attr("data-icon");i.val(e).trigger("change"),l.removeClass(o),l.addClass(e),l.attr("data-icon",e),t.removeClass("fl-icon-empty"),t.find("label.error").remove()},_removeIcon:function(){var e=y(this).closest(".fl-icon-field"),t=e.find("input[type=hidden]"),i=e.find("i");t.val("").trigger("change"),i.removeClass(),i.attr("data-icon",""),e.addClass("fl-icon-empty")},_formFieldClicked:function(){var e=y(this),t=e.closest(".fl-builder-settings"),i=e.attr("data-type"),l=e.siblings("input").val(),o=FLBuilder._moduleHelpers[i],n=(FLBuilderSettingsConfig.forms[i],FLBuilder._openNestedSettings({className:"fl-builder-lightbox fl-form-field-settings"}));""===l&&(l=JSON.stringify(FLBuilderSettingsConfig.forms[i])),FLBuilderSettingsForms.render({id:i,nodeId:t.attr("data-node"),nodeSettings:FLBuilder._getSettings(t),settings:FLBuilder._jsonParse(l.replace(/&#39;/g,"'")),lightbox:n,rules:o?o.rules:null,helper:{init:function(){o&&o.init(),FLBuilder._initFormFieldSettingsPreview(n)}}},function(){e.attr("id","fl-"+n._node.attr("data-instance-id")),n._node.find("form.fl-builder-settings").attr("data-type",i),FLBuilderResponsiveEditing._switchAllSettingsToCurrentMode()})},_saveFormFieldClicked:function(){var e=y(this).closest(".fl-builder-settings");FLBuilder._saveFormFieldSettings(e)?FLBuilder._closeNestedSettings():FLBuilder._toggleSettingsTabErrors()},_initFormFieldSettingsPreview:function(e){var t=e._node.find(".fl-field"),e=e._node.find("textarea.wp-editor-area");t.find("input:not([type=hidden]), textarea").on("input",FLBuilder._previewFormFieldSettings),t.find("input[type=hidden], select").on("change",FLBuilder._previewFormFieldSettings),"undefined"!=typeof tinyMCE&&e.each(function(e,t){(t=tinyMCE.get(y(t).attr("id"))).on("change",FLBuilder._previewFormFieldSettings),t.on("keyup",FLBuilder._previewFormFieldSettings)})},_previewFormFieldSettings:function(){var e=this.formElement||this,t=y(e).closest(".fl-builder-settings"),e=t.data("timeout");e&&clearTimeout(e),e=setTimeout(function(){FLBuilder._saveFormFieldSettings(t)},1e3),t.data("timeout",e)},_saveFormFieldSettings:function(e){var t=e.closest(".fl-lightbox-wrap").attr("data-instance-id"),i=e.attr("data-type"),l=FLBuilder._getSettings(e),i=FLBuilder._moduleHelpers[i],t=y(".fl-builder-settings #fl-"+t),o=t.parent().attr("data-preview-text"),n=e.find("#fl-field-"+o),s=l[o],r=y('select[name="'+o+'"]'),a=document.createElement("div"),d=!0;return 0<r.length&&(s=r.find('option[value="'+l[o]+'"]').text()),void 0!==i&&(e.find("label.error").remove(),e.validate().hideErrors(),d=(d=e.validate().form())&&i.submit()),!!d&&(void 0!==o&&void 0!==s&&("icon"===n.data("type")?s='<i class="'+s+'"></i>':35<s.length&&(a.innerHTML=s,s=(a.textContent||a.innerText||"").replace(/^(.{35}[^\s]*).*/,"$1")+"..."),t.siblings(".fl-form-field-preview-text").html(s)),0<t.length&&(""!=(r=t.siblings("input").val().replace(/&#39;/g,"'"))&&(l=y.extend(FLBuilder._jsonParse(r),l)),t.siblings("input").val(JSON.stringify(l)).trigger("change")),!0)},_layoutFieldClicked:function(){var e=y(this);e.siblings().removeClass("fl-layout-field-option-selected"),e.addClass("fl-layout-field-option-selected"),e.siblings("input").val(e.attr("data-value"))},_initLinkFields:function(){y(".fl-builder-settings:visible .fl-link-field").each(FLBuilder._initLinkField)},_initLinkField:function(){var e=y(this),t=e.find(".fl-link-field-search-input"),e=e.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,formatList:function(e,t){return t.html(e.name+'<span class="type">['+e.type+"]</span>")}}),e.on("click",FLBuilder._linkFieldCheckboxClicked)},_updateLinkField:function(e,t,i){var e=e.closest(".fl-link-field"),l=e.find(".fl-link-field-search"),o=e.find(".fl-link-field-search-input");e.find(".fl-link-field-input").val(t.value).trigger("keyup"),o.autoSuggest("remove",t.value),l.hide()},_linkFieldSelectClicked:function(){var e=y(this).closest(".fl-link-field").find(".fl-link-field-search");e.show(),e.find("input").focus()},_linkFieldSelectCancelClicked:function(){var e=y(this);e.parent().hide(),e.closest(".fl-link-field").find("input.fl-link-field-input").focus()},_linkFieldCheckboxClicked:function(){var e=y(this),t=e.is(":checked"),i=e.siblings("input[type=hidden]"),l="",l=e.hasClass("fl-link-field-target-cb")?t?"_blank":"_self":t?"yes":"no";i.val(l)},_initFontFields:function(){y(".fl-builder-settings:visible .fl-font-field").each(FLBuilder._initFontField)},_initFontField:function(){var e=y(this),t=e.attr("data-value"),i=e.find(".fl-font-field-font"),e=e.find(".fl-font-field-weight");FLBuilderConfig.select2Enabled&&i.select2({width:"100%"}).on("select2:open",function(e){y(".select2-search__field").attr("placeholder",FLBuilderStrings.placeholderSelect2)}),i.on("change",function(){FLBuilder._getFontWeights(i)}),-1<t.indexOf("family")&&(t=FLBuilder._jsonParse(t),i.val(t.family),i.trigger("change"),e.find("option[value="+t.weight+"]").length&&e.val(t.weight))},_getFontWeights:function(e){var i=e.closest(".fl-font-field").find(".fl-font-field-weight"),l=e.val(),o=i.val(),n=FLBuilderConfig.FontWeights,t={},s=e.closest(".fl-font-field").find(".recent-fonts option");i.html(""),0<s.length&&!1==0<y(s).filter(function(e,t){return t.value===l}).length&&e.closest(".fl-font-field").find(".recent-fonts").append(y("<option>",{value:l,text:l})),t=void 0!==FLBuilderFontFamilies.system[l]?FLBuilderFontFamilies.system[l].weights:(void 0!==FLBuilderFontFamilies.google[l]?FLBuilderFontFamilies.google:FLBuilderFontFamilies.default)[l],y.each(t,function(e,t){i.append('<option value="'+t+'"'+(o===t?" selected":"")+">"+n[t]+"</option>")})},_initTinyMCE:function(){"object"==typeof tinymce&&void 0!==tinymce.ui.FloatPanel&&(tinymce.ui.FloatPanel.zIndex=100100),y(".fl-builder-hidden-editor").each(FLBuilder._initEditorField)},_initEditorFields:function(){y(".fl-builder-settings:visible .fl-editor-field").each(FLBuilder._initEditorField)},_initEditorField:function(){var e=y(this),t=e.find("textarea"),i=e.attr("data-name"),i="flrich"+(new Date).getTime()+"_"+i,l=FLBuilderConfig.wp_editor,o=tinyMCEPreInit,n=Number(e.attr("data-buttons")),e=e.attr("data-rows"),s=null,r=null,l=l.replace(/flbuildereditor/g,i),o=FLBuilder._jsonParse(JSON.stringify(o).replace(/flbuildereditor/g,i));o=JSONfn.parse(JSONfn.stringify(o).replace(/flbuildereditor/g,i)),t.after(l).remove(),y("textarea#"+i).val(t.val()),void 0!==o.mceInit[i]&&((s=o.mceInit[i]).setup=function(e){e.on("SaveContent",function(e){e.content=e.content.replace(/<a href="(\.\.\/){1,2}/g,'<a href="'+FLBuilderConfig.homeUrl+"/"),e.content=e.content.replace(/src="(\.\.\/){1,2}/g,'src="'+FLBuilderConfig.homeUrl+"/")})},(r=tinymce.$("#wp-"+i+"-wrap")).find("textarea").attr("rows",e),r.find("textarea").attr("contentEditable",!0),n||r.find(".wp-media-buttons").remove(),!r.hasClass("tmce-active")&&o.qtInit.hasOwnProperty(i)||s.wp_skip_init||tinymce.init(s)),quicktags(o.qtInit[i]),window.wpActiveEditor=i},_reinitEditorFields:function(){y(".fl-lightbox-resizable:visible").length&&setTimeout(function(){var e,t;if("undefined"!=typeof tinymce){for(e=tinymce.editors.length-1;-1<e;e--)tinymce.editors[e].inline||(t=tinymce.editors[e].id,tinyMCE.execCommand("mceRemoveEditor",!0,t),tinyMCE.execCommand("mceAddEditor",!0,t));FLBuilder.preview&&FLBuilder.preview._initDefaultFieldPreviews(y('.fl-field[data-type="editor"]'))}},1)},_destroyEditorFields:function(){var e;if("undefined"!=typeof tinymce){for(e=tinymce.editors.length-1;-1<e;e--)tinymce.editors[e].inline||tinyMCE.execCommand("mceRemoveEditor",!0,tinymce.editors[e].id);y(".wplink-autocomplete").remove(),y(".ui-helper-hidden-accessible").remove()}},_updateEditorFields:function(){y(".fl-builder-settings:visible textarea.wp-editor-area").each(FLBuilder._updateEditorField)},_updateEditorField:function(){var e=y(this),t=e.closest(".fl-editor-field"),i=(e.closest(".fl-builder-settings"),e.closest(".wp-editor-wrap")),l=e.attr("id"),o=t.attr("data-name"),l="undefined"!=typeof tinymce&&tinymce.get(l),n=e.siblings('textarea[name="'+o+'"]'),t=t.data("wpautop");0===n.length&&(n=y('<textarea name="'+o+'"></textarea>').hide(),e.after(n)),t?l&&i.hasClass("tmce-active")?n.val(l.getContent()):"undefined"!=typeof switchEditors?n.val(switchEditors.wpautop(e.val())):n.val(e.val()):(l&&i.hasClass("tmce-active")&&l.save(),n.val(e.val()))},_loopDataSourceChange:function(){var e=y(this).val();y(".fl-loop-data-source").hide(),y('.fl-loop-data-source[data-source="'+e+'"]').show()},_customQueryPostTypeChange:function(){var e=y(this).val();y(".fl-custom-query-filter").hide(),y(".fl-custom-query-"+e+"-filter").show()},_initOrderingFields:function(){y(".fl-builder-settings:visible .fl-ordering-field-options").each(FLBuilder._initOrderingField)},_initOrderingField:function(){y(this).sortable({items:".fl-ordering-field-option",containment:"parent",tolerance:"pointer",stop:FLBuilder._updateOrderingField})},_updateOrderingField:function(e){var e=y(e.target),t=e.siblings("input[type=hidden]"),i=[];e.find(".fl-ordering-field-option").each(function(){i.push(y(this).attr("data-key"))}),t.val(JSON.stringify(i)).trigger("change")},_textFieldAddValueSelectChange:function(){var e=y(this),t=y('input[name="'+e.data("target")+'"]'),i=t.val(),l=e.val();-1==i.indexOf(l)&&(i=(i.trim()+" "+l.trim()).trim(),t.val(i).trigger("change").trigger("keyup")),e.val("")},_onNumberFieldFocus:function(e){var t=y(e.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(e){y(e.currentTarget).attr("step","any").removeClass("mousetrap")},_initTimezoneFields:function(){y(".fl-builder-settings:visible .fl-field[data-type=timezone]").each(FLBuilder._initTimezoneField)},_initTimezoneField:function(){var e=y(this).find("select"),t=e.attr("data-value");e.find('option[value="'+t+'"]').prop("selected",!0)},_initDimensionFields:function(){var e=y(".fl-builder-settings:visible");e.find(".fl-field[data-type=dimension]").each(FLBuilder._initDimensionField),e.find(".fl-dimension-field-link").on("click",FLBuilder._dimensionFieldLinkClicked),FLBuilder.addHook("responsive-editing-switched",this._initResponsiveDimensionFieldLinking),e.find(".fl-compound-field-setting").has(".fl-dimension-field-link").each(FLBuilder._initDimensionFieldLinking)},_initDimensionField:function(){var e=y(this),t=e.find(".fl-field-label label"),e=e.find(".fl-field-control-wrapper"),i='<i class="fl-dimension-field-link fl-tip dashicons dashicons-admin-links" title="Link Values"></i>';t.append(i),e.prepend(i),FLBuilder._initTipTips(),FLBuilder._initDimensionFieldLinking.apply(this)},_initDimensionFieldLinking:function(){var e=y(this),t=e.find(".fl-dimension-field-link"),e=FLBuilder._getDimensionFieldLinkingInputs(e);FLBuilder._dimensionFieldInputsAreEqual(e)?(t.removeClass("dashicons-admin-links"),t.addClass("dashicons-editor-unlink"),e.off("input",FLBuilder._dimensionFieldLinkedValueChange),e.on("input",FLBuilder._dimensionFieldLinkedValueChange)):(t.addClass("dashicons-admin-links"),t.removeClass("dashicons-editor-unlink"))},_initResponsiveDimensionFieldLinking:function(){y(".fl-builder-settings:visible").find(".fl-field[data-type=dimension]").each(FLBuilder._initDimensionFieldLinking)},_dimensionFieldLinkClicked:function(){var e=y(this),t=e.closest(".fl-compound-field-setting"),t=t.length?t:e.closest(".fl-field"),e=t.find(".fl-dimension-field-link"),i=e.hasClass("dashicons-editor-unlink"),t=FLBuilder._getDimensionFieldLinkingInputs(t);e.toggleClass("dashicons-admin-links"),e.toggleClass("dashicons-editor-unlink"),i?t.off("input",FLBuilder._dimensionFieldLinkedValueChange):(t.val(t.eq(0).val()).trigger("input"),t.on("input",FLBuilder._dimensionFieldLinkedValueChange))},_dimensionFieldLinkedValueChange:function(){var e=y(this),t=e.attr("name"),t=e.closest(".fl-dimension-field-units").find('input:not([name="'+t+'"])');t.off("input",FLBuilder._dimensionFieldLinkedValueChange),t.val(e.val()).trigger("input"),t.on("input",FLBuilder._dimensionFieldLinkedValueChange)},_getDimensionFieldLinkingInputs:function(e){var t=!!e.find(".fl-field-responsive-setting").length,i=FLBuilderResponsiveEditing._mode;return t?e.find(".fl-field-responsive-setting-"+i+" input"):e.find(".fl-dimension-field-unit input")},_dimensionFieldInputsAreEqual:function(e){var t=e.eq(0).val();if(""===t)return!1;for(var i=1;i<4;i++)if(e.eq(i).val()!==t)return!1;return!0},_initFieldPopupSliders:function(){y(".fl-builder-settings:visible").find(".fl-field-popup-slider").each(FLBuilder._initFieldPopupSlider)},_initFieldPopupSlider:function(){var n=y("body"),s=y(this),r=s.find(".fl-field-popup-slider-input"),a=s.find(".fl-field-popup-slider-arrow"),e=s.data("input"),d=y('input[name="'+e+'"]');d.on("click",function(){r.hasClass("fl-field-popup-slider-init")||(r.slider({value:d.val(),slide:function(e,t){d.val(t.value).trigger("input")}}),d.on("input",function(){r.slider("value",y(this).val())}),r.addClass("fl-field-popup-slider-init"),r.find(".ui-slider-handle").removeAttr("tabindex")),FLBuilder._setFieldPopupSliderMinMax(r),FLBuilder._hideFieldPopupSliders(),n.on("mousedown",FLBuilder._hideFieldPopupSliders),d.addClass("fl-field-popup-slider-focus"),s.show();var e=y(".fl-builder-settings:visible .fl-builder-settings-tab.fl-active"),t=e.offset(),i=d.offset(),l=d.width(),o=s.offset();o.top+s.outerHeight()>t.top+e.outerHeight()&&s.addClass("fl-field-popup-slider-top"),a.css("left",2+i.left-o.left+l/2+"px")}),d.on("focus",function(){FLBuilder._hideFieldPopupSliders()})},_hideFieldPopupSliders:function(e){var e=e?y(e.target):null,t=y("body"),i=y(".fl-field-popup-slider:visible"),l=y(".fl-field-popup-slider-focus");if(e){if(e.closest(".fl-field-popup-slider").length)return;if(e.closest(".fl-field-popup-slider-focus").length)return}t.off("mousedown",FLBuilder._hideFieldPopupSliders),l.removeClass("fl-field-popup-slider-focus"),i.hide()},_setFieldPopupSliderMinMax:function(e){var t=e.parent(),i=t.parent().parent().find("select.fl-field-unit-select"),l=i.val(),t=t.data("slider"),o=0,n=100,s=1;""!==l&&"em"!==l&&"rem"!==l||(n=10,s=.1),"object"==typeof t&&(o=t.min?parseFloat(t.min):o,n=t.max?parseFloat(t.max):n,s=t.step?parseFloat(t.step):s,i.length&&t[l]&&(o=t[l].min?parseFloat(t[l].min):o,n=t[l].max?parseFloat(t[l].max):n,s=t[l].step?parseFloat(t[l].step):s)),e.slider({min:o,max:n,step:s})},_initPresetFields:function(){y(".fl-builder-settings:visible").find(".fl-preset-select-controls").each(FLBuilder._initPresetField)},_initPresetField:function(){var e=y(this),t=e.find("select"),i=e.data("presets"),e=e.data("prefix");t.on("change",FLBuilder._setFormPreset.bind(this,i,e))},_setFormPreset:function(e,t,i){var l=y(i.currentTarget).val();if(presetLists=FLBuilderConfig.presets,presets=presetLists[e],form=y(".fl-builder-settings:visible"),"undefined"!==presets&&"undefined"!==presets[l]){var o,n=presets[l].settings;for(o in n){var l=n[o],s=void 0!==t&&""!==t?form.find('[name="'+t+o+'"]'):form.find('[name="'+o+'"]');s.val(l).trigger("change").trigger("input")}}},ajax:function(t,i){if(!FLBuilder._ajaxRequest){for(var e in FLBuilder.triggerHook("didBeginAJAX",t),t)void 0===t[e]&&(t[e]=null);return(t._wpnonce=FLBuilderConfig.ajaxNonce,t.post_id=FLBuilderConfig.postId,t.fl_builder=1,t.fl_action=t.action,void 0!==t.settings&&(t.settings=FLBuilder._ajaxModSecFix(y.extend(!0,{},t.settings))),void 0!==t.node_settings&&(t.node_settings=FLBuilder._ajaxModSecFix(y.extend(!0,{},t.node_settings))),void 0!==t.node_preview&&(t.node_preview=FLBuilder._ajaxModSecFix(y.extend(!0,{},t.node_preview))),t.settings=FLBuilder._inputVarsCheck(t.settings),t.node_settings=FLBuilder._inputVarsCheck(t.node_settings),"error"===t.settings||"error"===t.node_settings)?0:(t={fl_builder_data:t},FLBuilder._ajaxRequest=y.post(FLBuilder._ajaxUrl(),t,function(e){void 0!==i&&i.call(this,e),FLBuilder.triggerHook("didCompleteAJAX",t)}).always(FLBuilder._ajaxComplete).fail(function(e,t,i){switch(msg=!1,e.status){case 403:case 409:msg="Something you entered has triggered a "+e.status+" error.<br /><br />This is nearly always due to mod_security settings from your hosting provider.",window.crash_vars.white_label||(msg+='<br /><br />See this <a target="_blank" style="color: #428bca;font-size:inherit" href="https://docs.wpbeaverbuilder.com/beaver-builder/troubleshooting/common-issues/403-forbidden-or-blocked-error">Knowledge Base</a> article for more info.</br />')}msg&&(console.log(e),console.log(i),FLBuilder.alert(msg))}),FLBuilder._ajaxRequest)}FLBuilder._ajaxQueue.push({data:t,callback:i})},_inputVarsCheck:function(e){var t=FLBuilderConfig.MaxInputVars||0;return void 0!==e&&0<t&&(count=y.map(e,function(e,t){return t}).length)>t?(FLBuilder.alert('<h1 style="font-size:2em;text-align:center">Critical Issue</h1><br />The number of settings being saved ('+count+") exceeds the PHP Max Input Vars setting ("+t+").<br />Please contact your host to have this value increased, the default is 1000."),console.log("Vars Count: "+count),console.log("Max Input: "+t),"error"):e},_ajaxComplete:function(){var e;FLBuilder._ajaxRequest=null,FLBuilder.hideAjaxLoader(),FLBuilder._ajaxQueue.length&&(e=FLBuilder._ajaxQueue.shift(),FLBuilder.ajax(e.data,e.callback))},_ajaxUrl:function(e){var t=FLBuilderConfig.shortlink,i=null;if(void 0!==e)for(i in e)t=(t+=-1<t.indexOf("?")?"&":"?")+i+"="+e[i];return t},showAjaxLoader:function(){0===y(".fl-builder-lightbox-loading").length&&y(".fl-builder-loading").show()},hideAjaxLoader:function(){y(".fl-builder-loading").hide()},_showNodeLoading:function(e){e=y(".fl-node-"+e);e.addClass("fl-builder-node-loading"),FLBuilder._removeAllOverlays(),FLBuilder.triggerHook("didStartNodeLoading",e)},_hideNodeLoading:function(e){y(".fl-node-"+e).removeClass("fl-builder-node-loading")},_showNodeLoadingPlaceholder:function(e,t){var i=y('<div class="fl-builder-node-loading-placeholder"></div>');y(".fl-builder-node-loading-placeholder").remove(),0===(siblings=e.hasClass("fl-builder-content")?e.find(" > .fl-row"):e.hasClass("fl-row-content")?e.find(" > .fl-col-group"):e.hasClass("fl-col-group")?(e.addClass("fl-col-group-has-child-loading"),e.find(" > .fl-col")):e.find(" > .fl-col-group, > .fl-module")).length||siblings.length==t?e.append(i):siblings.eq(t).before(i)},_removeNodeLoadingPlaceholder:function(e){var t=e.prev(".fl-builder-node-loading-placeholder"),e=e.next(".fl-builder-node-loading-placeholder");(t.length?t:e).remove()},_ajaxModSecFix:function(e){if(FLBuilderConfig.modSecFix&&"undefined"!=typeof btoa)if("string"==typeof e)e=FLBuilder._btoa(e);else for(var t in e)"string"==(type=typeof e[t])||"number"==type?e[t]=FLBuilder._btoa(e[t]):"object"==type&&(e[t]=FLBuilder._ajaxModSecFix(e[t]));return e},_btoa:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))},_wpmedia_reset_errors:function(){y(".upload-error").remove(),y(".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 t=wp.template("fl-actions-lightbox");FLBuilder.triggerHook("actions-lightbox-settings",e),FLBuilder._actionsLightbox.open(t(e))},_checkEnv:function(){"svg"===FLBuilderConfig.fontAwesome&&FLBuilder.alert(FLBuilderStrings.fontAwesome)},alert:function(e){var t=new FLLightbox({className:"fl-builder-alert-lightbox",destroyOnClose:!0}),i=wp.template("fl-alert-lightbox");t.open(i({message:e}))},crashMessage:function(e){FLLightbox.closeAll();var t=new FLLightbox({className:"fl-builder-alert-lightbox fl-builder-crash-lightbox",destroyOnClose:!0}),i=wp.template("fl-crash-lightbox"),l=window.crash_vars.product,o=window.crash_vars.white_label,n=window.crash_vars.labeled_txt;message=l+" 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="<p>If you contact Beaver Builder Support, we need to know what the error is in the JavaScript console in your browser.</p>",info+="<div><div style='width:49%;float:left;'><p>MacOS Users:<br />Chrome: View > Developer > JavaScript Console<br />Firefox: Tools > Web Developer > Browser Console<br />Safari: Develop > Show JavaScript console</p></div><div style='width:49%;float:right;'><p>Windows Users:<br />Chrome: Settings > More Tools > Developer > Console<br />Firefox: Menu/Settings > Web Developer > Web Console<br />Edge: Settings and More > More Tools > Console</p></div></div><p style='display:inline-block;'>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://docs.wpbeaverbuilder.com/beaver-builder/troubleshooting/debugging/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.</p>",FLBuilderConfig.MaxInputVars<=3e3&&(info+="<br /><br />The PHP config value max_input_vars is only set to "+FLBuilderConfig.MaxInputVars+'. If you are using 3rd party addons this could very likely be the cause of this error. [<a class="link" href="https://docs.wpbeaverbuilder.com/beaver-builder/troubleshooting/common-issues/exceeds-php-max-input-vars">doc link</a>].'),o&&(info=n),t.open(i({message:message,info:info,debug:!1}))},_alertClose:function(){FLLightbox.closeParent(this)},confirm:function(e){var t={message:"",ok:function(){},cancel:function(){},strings:{ok:FLBuilderStrings.ok,cancel:FLBuilderStrings.cancel}},t=y.extend({},t,void 0===e?{}:e);lightbox=new FLLightbox({className:"fl-builder-confirm-lightbox fl-builder-alert-lightbox",destroyOnClose:!0}),template=wp.template("fl-confirm-lightbox"),lightbox.open(template(t)),lightbox._node.find(".fl-builder-confirm-ok").on("click",t.ok),lightbox._node.find(".fl-builder-confirm-cancel").on("click",t.cancel)},triggerHook:function(e,t){y("body").trigger("fl-builder."+e,t)},addHook:function(e,t){y("body").on("fl-builder."+e,t)},removeHook:function(e,t){y("body").off("fl-builder."+e,t)},log:function(e){void 0!==window.console&&void 0!==window.console.log&&console.log(e)},logError:function(e,t){var i=null;void 0!==e&&(void 0!==e.stack?i=e.stack:void 0!==e.message&&(i=e.message),i&&(FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(i),void 0!==t&&t&&(FLBuilder.log("Debug Info"),console.log(t)),y.each(window.crash_vars.vars,function(e,t){console.log(e+": "+t)}),FLBuilder.log("************************************************************************"),void 0!==t&&t&&(i=t+"\n"+i),FLBuilder.crashMessage(i)))},logGlobalError:function(e,t,i,l,o){FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(FLBuilderStrings.globalErrorMessage.replace("{message}",e).replace("{line}",i).replace("{file}",t)),void 0!==o&&void 0!==o.stack&&FLBuilder.log(o.stack),FLBuilder.log("************************************************************************")},_jsonParse:function(t){try{t=JSON.parse(t)}catch(e){FLBuilder.logError(e,FLBuilder._parseError(t))}return t},_parseError:function(e){return e.indexOf("</head>")?"AJAX returned HTML page instead of data. (Possible 404 or max_input_vars)":!!((php=e.match(/^<.*/gm)||!1)&&0<php.length)&&(i="",y.each(php,function(e,t){i+=t}),y(i).text());var i},isUndefined:function(e){return void 0===e},isBoolean:function(e){return!0===e||!1===e},getSandbox:function(e){return e in this._sandbox&&this._sandbox[e]},setSandbox:function(e,t){this._sandbox[e]=t},deleteSandbox:function(e){delete this._sandbox[e]}},y(function(){FLBuilder._init()})}(jQuery),!function(n){(FLBuilderAJAXLayout=function(e,t){this._data=n.extend({},this._defaults,"string"==typeof e?FLBuilder._jsonParse(e):e),this._callback=t,this._post=FLBuilderConfig.postId,this._head=n("head").eq(0),this._body=n("body").eq(0),this._data.css&&("inline"===FLBuilderConfig.enqueueMethod?(this._oldCss=n("#fl-builder-layout-"+this._post+"-inline-css"),this._newCss=n('<style id="fl-builder-layout-'+this._post+'-inline-css" type="text/css">'+this._data.css+"</style>")):(this._loader=n('<img src="'+this._data.css+'" />'),this._oldCss=n('link[href*="/cache/'+this._post+'-layout"]'),this._newCss=n('<link rel="stylesheet" id="fl-builder-layout-'+this._post+'-css" href="'+this._data.css+'" />'))),this._data.partial?(this._data.js&&(this._oldJs=n("#fl-builder-partial-refresh-js"),this._newJs=n('<script type="text/javascript" id="fl-builder-partial-refresh-js">'+this._data.js+"<\/script>")),this._data.nodeId&&(this._data.oldNodeId?(this._oldScriptsStyles=n('.fl-builder-node-scripts-styles[data-node="'+this._data.oldNodeId+'"]'),this._content=n(".fl-node-"+this._data.oldNodeId)):(this._oldScriptsStyles=n('.fl-builder-node-scripts-styles[data-node="'+this._data.nodeId+'"]'),this._content=n(".fl-node-"+this._data.nodeId).eq(0)))):("inline"===FLBuilderConfig.enqueueMethod?(this._oldJs=n("#fl-builder-layout-"+this._post+"-inline-js"),this._newJs=n('<script id="fl-builder-layout-'+this._post+'-inline-js">'+this._data.js+"<\/script>")):(this._oldJs=n('script[src*="/cache/'+this._post+'"]'),this._newJs=n('<script src="'+this._data.js+'"><\/script>')),this._oldScriptsStyles=n(".fl-builder-layout-scripts-styles"),this._content=n(FLBuilder._contentClass)),this._init()}).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",n.proxy(this._finish,this)),this._addNewCSS()):(this._loader.on("error",n.proxy(this._loadNewCSSFallbackComplete,this)),this._body.append(this._loader)):this._finish()},_loadNewCSSFallbackComplete:function(){this._loader.remove(),this._addNewCSS(),setTimeout(n.proxy(this._finish,this),250)},_addNewCSS:function(){0<this._oldCss.length?this._oldCss.after(this._newCss):this._head.append(this._newCss)},_finish:function(){this._removeOldContentAndAssets(),this._cleanNewHTML(),this._cleanNewAssets(),this._addNewHTML(),this._addNewScriptsStyles(),this._addNewJS(),n(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(){var e,t,i,l;this._data.scriptsStyles&&(e=n("<div>"+this._data.html+"</div>"),t="fl-row",i=this._data.scriptsStyles,l="",this._data.partial&&(t="column-group"==this._data.nodeType?"fl-col-group":"column"==this._data.nodeType?"fl-col":"fl-"+this._data.nodeType),e.find("> *, script").each(function(){n(this).hasClass(t)||"application/json"==n(this).attr("type")||(l=n(this).remove(),i+=l[0].outerHTML)}),""!==i&&(i=this._data.partial?'<div class="fl-builder-node-scripts-styles" data-node="'+this._data.nodeId+'">'+i+"<div>":'<div class="fl-builder-node-scripts-styles">'+i+"<div>"),this._data.html=e.html(),this._data.scriptsStyles=i)},_addNewHTML:function(){var e;this._data.partial?this._data.nodeParent?(0===(e=(e=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")).filter(":not(.fl-builder-node-clone)")).length||this._data.nodePosition>=e.length?this._data.nodeParent.append(this._data.html):e.eq(this._data.nodePosition).before(this._data.html),this._data.nodeId&&FLBuilder._removeNodeLoadingPlaceholder(n(".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&&((e=n(FLBuilder.preview.classes.node)).closest(".fl-node-"+this._data.nodeId).length&&e.html(FLBuilder.preview.elements.node.html())),this._data.onAddNewHTML&&this._data.onAddNewHTML()},_cleanNewAssets:function(){var e=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?n(".fl-builder-node-scripts-styles").each(function(){-1<e._data.html.indexOf("fl-node-"+n(this).data("node"))&&n(this).remove()}):(n("#fl-builder-partial-refresh-js").remove(),n(".fl-builder-node-scripts-styles").remove())},_removeDuplicateAssets:function(e){var e=n("<div>"+e+"</div>"),t="",i="",l=window.location,o=l.protocol+"//"+l.hostname+(l.port?":"+l.port:"");return e.find("script").each(function(){void 0!==(t=n(this).attr("src"))&&(t=t.replace(o,""),0<n('script[src*="'+t+'"]').length&&n(this).remove())}),e.find("link").each(function(){void 0!==(i=n(this).attr("href"))&&(i=i.replace(o,""),0<n('link[href*="'+i+'"]').length&&n(this).remove())}),e.html()},_addNewScriptsStyles:function(){this._data.scriptsStyles&&""!==this._data.scriptsStyles&&this._body.append(this._data.scriptsStyles)},_addNewJS:function(){setTimeout(n.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(h){(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()})._fontsList={},FLBuilderPreview.getFormattedSelector=function(e,t){for(var i="",l=t.split(","),o=0;o<l.length;o++)-1<l[o].indexOf("{node}")?i+=l[o].replace("{node}",e):-1<l[o].indexOf("{node_id}")?i+=l[o].replace(/{node_id}/g,this.nodeId):i+=e+" "+l[o],o!=l.length-1&&(i+=", ");return i},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=h(".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 e=h(".fl-builder-settings-lightbox .fl-builder-settings");this._savedSettings=FLBuilder._getSettingsForChangedCheck(this.nodeId,e)},_settingsHaveChanged:function(){var e=h(".fl-builder-settings-lightbox .fl-builder-settings"),e=FLBuilder._getSettings(e);return JSON.stringify(this._savedSettings)!=JSON.stringify(e)},_initElementsAndClasses:function(){var e="row"==this.type?".fl-row-content-wrap":".fl-"+this.type+"-content";h.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+" > "+e}),h.extend(this.elements,{settings:h(this.classes.settings),settingsHeader:h(this.classes.settingsHeader),node:h(this.classes.node),content:h(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,t=FLBuilderConfig.global,i=this.elements.node;"responsive"===e?(FLBuilderSimulateMediaQuery.disableStyles(t.responsive_breakpoint),this._styleSheetResponsive.disable()):"medium"===e?(FLBuilderSimulateMediaQuery.disableStyles(t.medium_breakpoint),this._styleSheetMedium.disable()):i.removeClass(function(e,t){return(t.match(/fl-node-[^\s]*/g)||[]).join(" ")})},_enableStyles:function(){var e=FLBuilderResponsiveEditing._mode,t=this.elements.node;"responsive"===e?(FLBuilderSimulateMediaQuery.enableStyles(),this._styleSheetResponsive.enable()):"medium"===e?(FLBuilderSimulateMediaQuery.enableStyles(),this._styleSheetMedium.enable()):t.addClass("fl-node-"+t.data("node"))},_getDefaultValue:function(e,t){var i="",e=h(e),l=e.closest("[data-node]");return"width"===t?i="auto":-1===h.inArray(t,["line-height","font-weight"])&&l.length&&(this._disableStyles(),i=e.css(t),this._enableStyles()),i},updateCSSRule:function(e,t,i,l){var o=FLBuilderResponsiveEditing._mode,n="";""!==i&&"null"!==i||(i=this._getDefaultValue(e,t)),l?(n="string"==typeof l?this.toUpperCaseWords(l):"default"===o?"":this.toUpperCaseWords(o),this["_styleSheet"+n].updateRule(e,t,i)):this._styleSheet.updateRule(e,t,i)},delay:function(e,t){this._cancelDelay(),this._timeout=setTimeout(t,e)},_cancelDelay:function(){null!==this._timeout&&clearTimeout(this._timeout)},hexToRgb:function(e){e=parseInt(e,16);return[e>>16&255,e>>8&255,255&e]},hexOrRgb:function(e){return e=e.indexOf("rgb")<0&&e.indexOf("#")<0?"#"+e:e},parseFloat:function(e){return isNaN(parseFloat(e))?0:parseFloat(e)},_initResponsivePreviews:function(){var e=".preview-"+this.id;FLBuilder.addHook("responsive-editing-switched"+e,h.proxy(this._responsiveEditingSwitched,this)),FLBuilder.addHook("responsive-editing-before-preview-fields"+e,h.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,t){"default"==t?(this._styleSheetMedium.disable(),this._styleSheetResponsive.disable()):"medium"==t?(this._styleSheetMedium.enable(),this._styleSheetResponsive.disable()):"responsive"==t&&(this._styleSheetMedium.enable(),this._styleSheetResponsive.enable())},_responsiveEditingPreviewFields:function(e,t){"medium"===t&&"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,t,i){this.updateCSSRule(e,t,i,!0)},_saveState:function(){var e=FLBuilderConfig.postId,t=h('link[href*="/cache/'+e+'"]').attr("href"),e=h('script[src*="/cache/'+e+'"]').attr("src"),i=h(FLBuilder._contentClass).html();this.state={css:t,js:e,html:i}},preview:function(){var e=h(".fl-builder-settings-lightbox .fl-builder-settings"),t=e.attr("data-node"),e=FLBuilder._getSettings(e);if(FLBuilder._showNodeLoading(t),this._cancelPreview(),"error"===(e=FLBuilder._inputVarsCheck(e)))return 0;this._xhr=FLBuilder.ajax({action:"render_layout",node_id:t,node_preview:e},h.proxy(this._renderPreview,this))},delayPreview:function(e){var t=void 0===e?[]:h(e.target).closest("tr").find("th"),i=h(".fl-builder-widget-settings .fl-builder-settings-title"),l=h(".fl-builder-settings .fl-lightbox-header"),e=FLBuilderLayoutConfig.paths.pluginUrl+"img/ajax-loader-small.svg",o=h('<img class="fl-builder-preview-loader" src="'+e+'" />');this.delay(1e3,h.proxy(this.preview,this)),this._loaderTimeout=setTimeout(function(){h(".fl-builder-preview-loader").remove(),0<t.length?t.append(o):0<i.length?i.append(o):0<l.length&&l.append(o)},1500)},_cancelPreview:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)},_renderPreview:function(e){this._xhr=null,FLBuilder._renderLayout(e,h.proxy(this._renderPreviewComplete,this))},_renderPreviewComplete:function(){this._createSheets(),this._initElementsAndClasses(),this._initDefaultFieldPreviews(),null!==this._loaderTimeout&&clearTimeout(this._loaderTimeout),h(".fl-builder-preview-loader").remove(),h(FLBuilder._contentClass).trigger("fl-builder.preview-rendered")},revert:function(){var e=this.nodeId;this._settingsHaveChanged()?("col"===this.type&&(e=this.elements.node.closest(".fl-col-group").data("node")),FLBuilder._updateNode(e,function(){this.clear()}.bind(this))):this.clear()},cancel:function(){this._cancelDelay(),this._cancelPreview()},clear:function(){this.cancel(),this._destroySheets(),this._destroyResponsivePreviews()},_initNodeTextColor:function(){h.extend(this.elements,{textColor:h(this.classes.settings+" input[name=text_color]"),linkColor:h(this.classes.settings+" input[name=link_color]"),hoverColor:h(this.classes.settings+" input[name=hover_color]"),headingColor:h(this.classes.settings+" input[name=heading_color]")}),this.elements.textColor.on("change",h.proxy(this._textColorChange,this)),this.elements.linkColor.on("change",h.proxy(this._textColorChange,this)),this.elements.hoverColor.on("change",h.proxy(this._textColorChange,this)),this.elements.headingColor.on("change",h.proxy(this._textColorChange,this))},_textColorChange:function(e){var t=this.elements.textColor.val(),i=this.elements.linkColor.val(),l=this.elements.hoverColor.val(),o=this.elements.headingColor.val(),i=""===i?t:i,l=""===l?t:l,o=""===o?t:o;t&&t.indexOf("rgb")<0&&(t="#"+t),i&&i.indexOf("rgb")<0&&(i="#"+i),l&&l.indexOf("rgb")<0&&(l="#"+l),o&&o.indexOf("rgb")<0&&(o="#"+o),this.delay(50,h.proxy(function(){""===t?this.updateCSSRule(this.classes.node,"color",""):this.updateCSSRule(this.classes.node,"color",t),""===i?this.updateCSSRule(this.classes.node+" a","color",""):this.updateCSSRule(this.classes.node+" a","color",i),""===l?this.updateCSSRule(this.classes.node+" a:hover","color",""):this.updateCSSRule(this.classes.node+" a:hover","color",l),""===o?(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",o),this.updateCSSRule(this.classes.node+" h2","color",o),this.updateCSSRule(this.classes.node+" h3","color",o),this.updateCSSRule(this.classes.node+" h4","color",o),this.updateCSSRule(this.classes.node+" h5","color",o),this.updateCSSRule(this.classes.node+" h6","color",o),this.updateCSSRule(this.classes.node+" h1 a","color",o),this.updateCSSRule(this.classes.node+" h2 a","color",o),this.updateCSSRule(this.classes.node+" h3 a","color",o),this.updateCSSRule(this.classes.node+" h4 a","color",o),this.updateCSSRule(this.classes.node+" h5 a","color",o),this.updateCSSRule(this.classes.node+" h6 a","color",o))},this))},_initNodeBg:function(){h.extend(this.elements,{bgType:h(this.classes.settings+" select[name=bg_type]"),bgColor:h(this.classes.settings+" input[name=bg_color]"),bgColorPicker:h(this.classes.settings+" .fl-picker-bg_color"),bgGradientType:h(this.classes.settings+" select.fl-gradient-picker-type-select"),bgVideoSource:h(this.classes.settings+" select[name=bg_video_source]"),bgVideo:h(this.classes.settings+" input[name=bg_video]"),bgVideoServiceUrl:h(this.classes.settings+" input[name=bg_video_service_url]"),bgVideoFallbackSrc:h(this.classes.settings+" select[name=bg_video_fallback_src]"),bgSlideshowSource:h(this.classes.settings+" select[name=ss_source]"),bgSlideshowPhotos:h(this.classes.settings+" input[name=ss_photos]"),bgSlideshowFeedUrl:h(this.classes.settings+" input[name=ss_feed_url]"),bgSlideshowSpeed:h(this.classes.settings+" input[name=ss_speed]"),bgSlideshowTrans:h(this.classes.settings+" select[name=ss_transition]"),bgSlideshowTransSpeed:h(this.classes.settings+" input[name=ss_transitionDuration]"),bgParallaxImageSrc:h(this.classes.settings+" select[name=bg_parallax_image_src]"),bgOverlayType:h(this.classes.settings+" select[name=bg_overlay_type]"),bgOverlayColor:h(this.classes.settings+" input[name=bg_overlay_color]"),bgOverlayGradient:h(this.classes.settings+" #fl-field-bg_overlay_gradient select")}),this.elements.bgType.on("change",h.proxy(this._bgTypeChange,this)),this.elements.bgColor.on("change",h.proxy(this._bgColorChange,this)),this.elements.bgVideoServiceUrl.on("change",h.proxy(this._bgVideoChange,this)),this.elements.bgSlideshowSource.on("change",h.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowPhotos.on("change",h.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowFeedUrl.on("keyup",h.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowSpeed.on("keyup",h.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowTrans.on("change",h.proxy(this._bgSlideshowChange,this)),this.elements.bgSlideshowTransSpeed.on("keyup",h.proxy(this._bgSlideshowChange,this)),this.elements.bgParallaxImageSrc.on("change",h.proxy(this._bgParallaxChange,this)),this.elements.bgOverlayType.on("change",h.proxy(this._bgOverlayChange,this)),this.elements.bgOverlayColor.on("change",h.proxy(this._bgOverlayChange,this))},_bgTypeChange:function(e){var t=this.elements.bgType.val(),i=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"==t?this._bgOverlayClear():"color"==t?(this.elements.bgColor.trigger("change"),this._bgOverlayClear()):"gradient"==t?(this.elements.bgGradientType.trigger("change"),this._bgOverlayClear()):"photo"==t?(this.elements.bgColor.trigger("change"),this.elements.settings.find('[data-device="'+i+'"] select[name*="bg_"]').trigger("change")):"video"==t?(this.elements.bgColor.trigger("change"),this._bgVideoChange()):"slideshow"==t?(this.elements.bgColor.trigger("change"),this._bgSlideshowChange()):"parallax"==t&&(this.elements.bgColor.trigger("change"),this.elements.bgParallaxImageSrc.trigger("change"))},_bgColorChange:function(e){var t;""===this.elements.bgColor.val()?this.updateCSSRule(this.classes.content,"background-color","transparent"):(t=this.hexOrRgb(this.elements.bgColor.val()),this.delay(100,h.proxy(function(){this.updateCSSRule(this.classes.content,"background-color",t)},this)))},_bgVideoChange:function(e){var t=this.elements,i=t.bgVideoSource.val(),l=t.bgVideo.val(),t=t.bgVideoServiceUrl.val(),o=h("<script>");"video_service"==i&&""!=t?(/^(?:(?:(?:https?:)?\/\/)?(?:www.)?(?:youtu(?:be.com|.be))\/(?:watch\?v\=|v\/|embed\/)?([\w\-]+))/i.test(t)&&h('script[src*="youtube.com"').length<1?o.attr("src","https://www.youtube.com/iframe_api"):/^(http\:\/\/|https\:\/\/)?(www\.)?(vimeo\.com\/)([0-9]+)$/.test(t)&&h('script[src*="vimeo.com"').length<1&&o.attr("src","https://player.vimeo.com/api/player.js"),o.attr("type","text/javascript").appendTo("head"),this.delay(500,h.proxy(this.preview,this))):""!=l&&this.preview()},_bgSlideshowChange:function(e){var t=this.elements,i=t.bgSlideshowSource.val(),l=t.bgSlideshowPhotos.val(),o=t.bgSlideshowFeedUrl.val(),n=t.bgSlideshowSpeed.val(),t=t.bgSlideshowTransSpeed.val();"wordpress"==i&&""===l||"smugmug"==i&&""===o||isNaN(parseInt(n))||isNaN(parseInt(t))||this.delay(500,h.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(e){var t,i=this.elements.bgOverlayType.val(),l=this.elements.bgOverlayColor.val();"color"===i?(""===l?(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,h.proxy(function(){this._bgOverlayAddClasses(),this.updateCSSRule(this.classes.content+"::after","background-color",t)},this))),this.updateCSSRule(this.classes.content+"::after","background-image","none")):"gradient"===i?(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(){h.extend(this.elements,{className:h(this.classes.settings+" input[name=class]")}),this.elements.className.on("keyup",h.proxy(this._classNameChange,this)),this._lastClassName=this.elements.className.val()},_classNameChange:function(e){var t=this.elements.className.val();null!==this._lastClassName&&this.elements.node.removeClass(this._lastClassName),this.elements.node.addClass(t),this._lastClassName=t},_initNodeDimensions:function(e){for(var t,i={},l=["Top","Bottom","Left","Right"],o=["","Medium","Responsive"],n=this.classes.settings,s="",r=null,a=null,r=0;r<l.length;r++)for(a=0;a<o.length;a++)t=e+l[r]+o[a],s=e+"_"+l[r].toLowerCase(),""!=o[a]&&(s+="_"+o[a].toLowerCase()),i[t]=h(n+" input[name="+s+"]");h.extend(this.elements,i)},_initRow:function(){h.extend(this.elements,{width:h(this.classes.settings+" select[name=width]"),contentWidth:h(this.classes.settings+" select[name=content_width]"),maxContentWidth:h(this.classes.settings+" input[name=max_content_width]"),maxContentWidthUnit:h(this.classes.settings+" select[name=max_content_width_unit]"),height:h(this.classes.settings+" select[name=full_height]"),minHeight:h(this.classes.settings+" input[name=min_height]"),align:h(this.classes.settings+" select[name=content_alignment]")}),this.elements.width.on("change",h.proxy(this._rowWidthChange,this)),this.elements.contentWidth.on("change",h.proxy(this._rowContentWidthChange,this)),this.elements.maxContentWidth.on("input",h.proxy(this._rowMaxContentWidthChange,this)),this.elements.maxContentWidthUnit.on("change",h.proxy(this._rowMaxContentWidthChange,this)),this.elements.height.on("change",h.proxy(this._rowHeightChange,this)),this.elements.align.on("change",h.proxy(this._rowHeightChange,this)),this._initNodeTextColor(),this._initNodeBg(),this._initNodeClassName(),this._initNodeDimensions("border"),this._initNodeDimensions("margin"),this._initNodeDimensions("padding")},_rowWidthChange:function(e){FLBuilderConfig.global;var t=this.elements.node,i=this.elements.content.find(".fl-row-content");this.elements.maxContentWidth.val(),this.elements.maxContentWidthUnit.val();t.css("max-width","none"),i.css("max-width","none"),"full"==this.elements.width.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()},_rowContentWidthChange:function(e){FLBuilderConfig.global;var t=this.elements.node,i=this.elements.content.find(".fl-row-content");this.elements.maxContentWidth.val(),this.elements.maxContentWidthUnit.val();t.css("max-width","none"),i.css("max-width","none"),"full"==this.elements.contentWidth.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())},_rowMaxContentWidthChange:function(e){var t=FLBuilderConfig.global,i=this.elements.node,l=this.elements.content.find(".fl-row-content"),o=this.elements.maxContentWidth.val(),n=this.elements.maxContentWidthUnit.val();""==o?o=t.row_width+t.row_width_unit:o+=n,"fixed"===this.elements.width.val()&&i.css("max-width",o),l.css("max-width",o)},_rowHeightChange:function(e){var t=this.elements.node;this.elements.content;t.removeClass("fl-row-align-top"),t.removeClass("fl-row-align-center"),t.removeClass("fl-row-align-bottom"),t.removeClass("fl-row-full-height"),t.removeClass("fl-row-custom-height"),"full"==this.elements.height.val()?(t.addClass("fl-row-full-height"),t.addClass("fl-row-align-"+this.elements.align.val()),this.elements.minHeight.val("").trigger("input")):"custom"==this.elements.height.val()?(t.addClass("fl-row-custom-height"),t.addClass("fl-row-align-"+this.elements.align.val()),this.elements.minHeight.trigger("input")):this.elements.minHeight.val("").trigger("input")},_initColumn:function(){h.extend(this.elements,{size:h(this.classes.settings+" input[name=size]"),sizeMedium:h(this.classes.settings+" input[name=size_medium]"),sizeResponsive:h(this.classes.settings+" input[name=size_responsive]"),columnHeight:h(this.classes.settings+" select[name=equal_height]"),columnAlign:h(this.classes.settings+" select[name=content_alignment]"),responsiveOrder:h(this.classes.settings+" select[name=responsive_order]")}),this.elements.size.on("input",h.proxy(this._colSizeChange,this)),this.elements.sizeMedium.on("input",h.proxy(this._colSizeChange,this)),this.elements.sizeResponsive.on("input",h.proxy(this._colSizeChange,this)),this.elements.columnHeight.on("change",h.proxy(this._colHeightChange,this)),this.elements.columnAlign.on("change",h.proxy(this._colHeightChange,this)),this.elements.responsiveOrder.on("change",h.proxy(this._colResponsiveOrder,this)),this._initNodeTextColor(),this._initNodeBg(),this._initNodeClassName(),this._initNodeDimensions("border"),this._initNodeDimensions("margin"),this._initNodeDimensions("padding")},_colSizeChange:function(e){var e=h(e.target),t=92,i=parseFloat(e.val()),l=this.elements.node.closest(".fl-col-group"),o=this.elements.node.prev(".fl-col"),n=this.elements.node.next(".fl-col"),s=0===n.length?o:n,o=this.elements.node.siblings(".fl-col"),r=0,n=FLBuilderResponsiveEditing._mode;0!==o.length&&(isNaN(i)&&("medium"===n?i=this.elements.size.val():"responsive"===n&&(i=this.elements.sizeMedium.val()?this.elements.sizeMedium.val():"auto"),"auto"!==i&&isNaN(i)&&(i=8)),"default"===n?(o.each(function(){h(this).data("node")!=s.data("node")&&(t-=parseFloat(h(this)[0].style.width),r+=parseFloat(h(this)[0].style.width))}),t<(i=i<8?8:i)&&(i=t),this.elements.node.css("width",i+"%"),s.css("width",100-r-i+"%")):(100<i&&e.val(i=100),this.updateCSSRule(this.classes.node,{"max-width":("auto"===i?100:i)+"% !important",width:("auto"===i?i:i+"%")+" !important"},void 0,!0),"responsive"===n&&(e.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)),e.val()||this._colsHaveCustomResponsiveWidth(o)?l.addClass("fl-col-group-custom-width"):l.removeClass("fl-col-group-custom-width"))))},_colsHaveCustomResponsiveWidth:function(e){var t=FLBuilderSettingsConfig.nodes,i=!1;return e.each(function(){var e=h(this).data("node");t[e]&&t[e].size_responsive&&(i=!0)}),i},_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 t,i,e=FLBuilder.isUndefined(e)?this.elements.settings.find(".fl-field"):e,l=null,o=0;o<e.length;o++)t=(l=e.eq(o)).data("type"),"refresh"==(i=l.data("preview")).type&&this._initFieldRefreshPreview(l),"text"==i.type&&this._initFieldTextPreview(l),"css"==i.type&&this._initFieldCSSPreview(l),"widget"==i.type&&this._initFieldWidgetPreview(l),"font"==i.type&&this._initFieldFontPreview(l),"attribute"==i.type&&this._initFieldAttributePreview(l),"animation"==i.type&&this._initFieldAnimationPreview(i,l),"callback"==i.type&&this._initFieldCallbackPreview(i,l,t,e),this._initFieldUnitSelect(l)},_initFieldCallbackPreview:function(e,t,i,l){var o,n=e.callback,s=h(".fl-builder-settings:visible"),r=s.data("node"),a=h(".fl-builder-content .fl-node-"+r);if(void 0!==FLBuilderPreviewCallbacks[n]?o=FLBuilderPreviewCallbacks[n]:void 0!==window[n]&&(o=window[n]),"function"==typeof o){var d={field:t,fields:l,type:i,preview:e,form:s,nodeID:r,node:a};switch(i){case"align":case"button-group":case"text":case"multiple-photos":case"video":case"icon":case"ordering":d.input=t.find("input"),d.getValue=function(){return d.input.val()};break;case"color":d.input=t.find("input.fl-color-picker-value"),d.getValues=function(){var e=d.input.val();FLBuilderPreview.formatColor(e)};break;case"textarea":case"code":d.textarea=t.find("textarea"),d.getValue=function(){return d.textarea.val()};break;case"select":case"photo-sizes":case"post-type":d.select=t.find("select"),d.getValue=function(){return d.select.val()};break;case"photo":d.input=t.find("input[type=hidden]"),d.sizeSelect=t.find("select"),d.getValues=function(){return{value:d.input.val(),size:d.sizeSelect.val()}};break;case"unit":d.input=t.find("input[type=number]"),d.unitSelect=t.find(".fl-field-unit-select"),d.getValues=function(){var e=d.input.val(),t=d.unitSelect.val();return{value:e,unit:t,formattedValue:e+t}};break;case"dimension":d.inputs=t.find("input[type=number]"),d.unitSelect=t.find(".fl-field-unit-select"),d.getValues=function(){var l={inputs:[],props:{},unit:d.unitSelect.val()};return d.inputs.each(function(e,t){var i=(t=h(t)).val(),t=t.data("unit");l.inputs.push(i),l.props[t]=i}),l};break;case"animation":d.input=t.find("input"),d.select=t.find("select"),d.getValues=function(){return{delay:d.input.val(),style:d.select.val()}};break;case"link":d.input=t.find(".fl-link-field-input-wrap input"),d.targetInput=t.find("input[name$=_target]"),d.noFollowInput=t.find("input[name$=_nofollow]"),d.getValues=function(){return{url:d.input.val(),target:d.targetInput.val(),noFollow:d.noFollowInput.val()}};break;case"shadow":d.colorInput=t.find("input.fl-color-picker-value"),d.inputs=t.find("input[type=number]"),d.getValues=function(){d.colorInput.val(),d.inputs[0].val(),d.inputs[1].val(),d.inputs[2].val(),d.inputs[3].val()};break;case"gradient":d.inputs=t.find("input"),d.select=t.find("select"),d.gradientInputs={},d.gradientInputs.type=t.find('select[name$="[type]"]'),d.gradientInputs.angle=t.find('input[name$="[angle]"]'),d.gradientInputs.position=t.find('select[name$="[position]"]'),d.gradientInputs.stops=[],t.find(".fl-gradient-picker-colors .fl-gradient-picker-color-row").each(function(e,t){t=h(t),d.gradientInputs.stops.push({color:t.find(".fl-gradient-picker-color input"),stop:t.find(".fl-gradient-picker-stop input")})}),d.getValues=function(){var e,t={type:d.gradientInputs.type.val(),angle:d.gradientInputs.angle.val(),position:d.gradientInputs.position.val(),stops:[]};for(e in d.gradientInputs.stops){var i=d.gradientInputs.stops[e];t.stops[e]={color:i.color.val(),stop:i.stop.val()}}return t};break;case"shape-transform":d.inputs=t.find("input"),d.getValues=function(){return{scaleXSign:d.inputs.eq(0).val(),scaleYSign:d.inputs.eq(1).val(),skewX:d.inputs.eq(2).val(),skewY:d.inputs.eq(3).val(),scaleX:d.inputs.eq(4).val(),rotate:d.inputs.eq(5).val(),scaleY:d.inputs.eq(6).val()}};break;default:d.input=t.find("input"),d.getValue=function(){return d.input.val()}}var u,n=t.find(".fl-field-responsive-toggle"),c=(d.responsiveToggle=!!n.length&&n,o=o.bind(this,d),{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(u in c)void 0!==d[u]&&d[u].on(c[u],o)}},_initFieldRefreshPreview:function(e){var t=e.data("type"),i=e.data("preview"),l=h.proxy(this.delayPreview,this);switch(t){case"align":e.find("input").on("change",l);break;case"text":e.find("input[type=text]").on("keyup",l);break;case"textarea":e.find("textarea").on("keyup",l);break;case"select":e.find("select").on("change",l);break;case"color":e.find(".fl-color-picker-value").on("change",l);break;case"photo":e.find("select").on("change",l);break;case"multiple-photos":e.find("input").on("change",l);break;case"photo-sizes":e.find("select").on("change",l);break;case"video":case"multiple-audios":case"icon":e.find("input").on("change",l);break;case"form":e.on("change","input",l);break;case"editor":this._addTextEditorCallback(e,i);break;case"code":e.find("textarea").on("change",l);break;case"post-type":e.find("select").on("change",l);break;case"suggest":e.find(".as-values").on("change",l),e.find("select").on("change",l);break;case"unit":case"dimension":e.find("input[type=number]").on("input",l);break;case"ordering":e.find("input[type=hidden]").on("change",l);break;default:e.on("change",l)}},_initFieldTextPreview:function(e){var t=e.data("type"),i=e.data("preview"),l=h.proxy(this._previewText,this,i);switch(t){case"text":e.find("input[type=text]").on("keyup",l);break;case"unit":e.find("input[type=number]").on("keyup",l);break;case"textarea":e.find("textarea").on("keyup",l);break;case"code":e.find("textarea").on("change",l);break;case"editor":this._addTextEditorCallback(e,i)}},_previewText:function(e,t){var e=this._getPreviewSelector(this.classes.node,e.selector),e=h(e),i=h("<div>"+h(t.target).val()+"</div>");0<e.length?(i.find("script").remove(),e.html(i.html())):this.delayPreview(t)},_previewTextEditor:function(e,t,i){var e=this._getPreviewSelector(this.classes.node,e.selector),e=h(e),l="undefined"!=typeof tinyMCE?tinyMCE.get(t):null,t=h("#"+t),o="";0<e.length&&((o=l&&"none"==t.css("display")?h("<div>"+l.getContent()+"</div>"):"undefined"==typeof switchEditors||void 0===switchEditors.wpautop?h("<div>"+t.val()+"</div>"):h("<div>"+switchEditors.wpautop(t.val())+"</div>")).find("script").remove(),e.html(o.html()))},_addTextEditorCallback:function(e,t){var e=e.find("textarea.wp-editor-area").attr("id"),i=null;if("refresh"==t.type)i=h.proxy(this.delayPreview,this);else{if("text"!=t.type)return;i=h.proxy(this._previewTextEditor,this,t,e)}h("#"+e).on("keyup",i),"undefined"!=typeof tinyMCE&&((editor=tinyMCE.get(e)).on("change",i),editor.on("keyup",i))},_initFieldFontPreview:function(e){var t=e.data("type"),i=e.data("preview"),i=(i.id=e.attr("id"),h.proxy(this._previewFont,this,i));"font"==t&&e.find(".fl-font-field").on("change","select",i)},_previewFont:function(e,t){var t=h(t.delegateTarget),i=t.find(".fl-font-field-font"),l=h(i).find(":selected").parent().attr("label"),t=t.find(".fl-font-field-weight"),o=e.id+"-"+this.nodeId,n=this._getPreviewSelector(this.classes.node,e.selector),e=e.important?" !important":"",s="";"Google"!=l&&"Recently Used"!=l||this._buildFontStylesheet(o,i.val(),t.val()),s=i.val(),new RegExp("[0-9]").test(i.val())&&(s='"'+i.val()+'"'),this.updateCSSRule(n,"font-family","Default"===i.val()?"":s+e),this.updateCSSRule(n,"font-weight","default"===t.val()?"":t.val()+e)},_buildFontStylesheet:function(e,t,i){var l=FLBuilderConfig.googleFontsUrl,o="",n={},s={};n[t]=[i],FLBuilderPreview._fontsList[e]=n,Object.keys(FLBuilderPreview._fontsList).forEach(function(e){var i=FLBuilderPreview._fontsList[e];Object.keys(i).forEach(function(t){var e=i[t];s[t]=s[t]||[],e=e.filter(function(e){return s[t].indexOf(e)<0}),s[t]=s[t].concat(e)})}),h.each(s,function(e,t){o+="Molle"===e?e+":i|":e+":"+t.join()+"|"}),o=l+o.slice(0,-1).replace(" ","+"),h("#fl-builder-google-fonts-preview").length<1?h("<link>").attr("id","fl-builder-google-fonts-preview").attr("type","text/css").attr("rel","stylesheet").attr("href",o).appendTo("head"):h("#fl-builder-google-fonts-preview").attr("href",o)},_initFieldCSSPreview:function(e){var t=e.data("preview"),i=null;if(void 0!==t.rules)for(i in t.rules)this._initFieldCSSPreviewCallback(e,t.rules[i]);else this._initFieldCSSPreviewCallback(e,t)},_initFieldCSSPreviewCallback:function(e,t){switch(e.data("type")){case"align":e.find("input").on("change",h.proxy(this._previewCSS,this,t,e));break;case"border":e.find("select").on("change",h.proxy(this._previewBorderCSS,this,t,e)),e.find("input[type=number]").on("input",h.proxy(this._previewBorderCSS,this,t,e)),e.find("input[type=hidden]").on("change",h.proxy(this._previewBorderCSS,this,t,e));break;case"color":e.find(".fl-color-picker-value").on("change",h.proxy(this._previewColorCSS,this,t,e));break;case"dimension":e.find("input[type=number]").on("input",h.proxy(this._previewDimensionCSS,this,t,e));break;case"gradient":e.find("select").on("change",h.proxy(this._previewGradientCSS,this,t,e)),e.find(".fl-gradient-picker-angle").on("input",h.proxy(this._previewGradientCSS,this,t,e)),e.find(".fl-color-picker-value").on("change",h.proxy(this._previewGradientCSS,this,t,e)),e.find(".fl-gradient-picker-stop").on("input",h.proxy(this._previewGradientCSS,this,t,e));break;case"photo":case"select":e.find("select").on("change",h.proxy(this._previewCSS,this,t,e));break;case"shadow":e.find("input").on("input",h.proxy(this._previewShadowCSS,this,t,e)),e.find(".fl-color-picker-value").on("change",h.proxy(this._previewShadowCSS,this,t,e));break;case"text":e.find("input[type=text]").on("keyup",h.proxy(this._previewCSS,this,t,e));break;case"typography":e.find("select").on("change",h.proxy(this._previewTypographyCSS,this,t,e)),e.find("input[type=number]").on("input",h.proxy(this._previewTypographyCSS,this,t,e)),e.find("input[type=hidden]").on("change",h.proxy(this._previewTypographyCSS,this,t,e));break;case"unit":e.find("input[type=number]").on("input",h.proxy(this._previewCSS,this,t,e))}},_previewCSS:function(e,t,i){var l=this._getPreviewSelector(this.classes.node,e.selector),o=e.property,t=this._getPreviewCSSUnit(e,t,i),i=h(i.target),n=i.val(),i=!!i.closest(".fl-field-responsive-setting").length,e=e.important&&""!==n?" !important":"";-1<o.indexOf("image")&&n?n="url("+n+")":"%"===t&&"opacity"===o?n=parseInt(n)/100:""!==n&&(n+=t),this.updateCSSRule(l,o,n+e,i)},_previewBorderCSS:function(e,t,i){var l=this._getPreviewSelector(this.classes.node,e.selector),o=h(i.target),t=o.closest(".fl-field"),n=o.closest(".fl-compound-field-setting"),s=n.data("property"),r=o.val(),o=(n.find(".fl-field-unit-select"),!!o.closest(".fl-field-responsive-setting").length),a=e.important&&""!==r?" !important":"";"border-color"===(e.property=s)?this._previewColorCSS(e,t,i):"border-width"===s||"border-radius"===s?this._previewDimensionCSS(e,t,i):"box-shadow"===s?this._previewShadowCSS(e,n,i):("border-style"===s&&t.find(".fl-border-field-width input:visible").trigger("input"),this.updateCSSRule(l,s,r+a,o))},_previewColorCSS:function(e,t,i){var l=this._getPreviewSelector(this.classes.node,e.selector),i=h(i.target),o=i.val(),i=!!i.closest(".fl-field-responsive-setting").length,n=e.important&&""!==o?" !important":"";""!==o&&o.indexOf("rgb")<0&&(o="#"+o),this.updateCSSRule(l,e.property,o+n,i)},_previewDimensionCSS:function(e,t,i){var l=this._getPreviewSelector(this.classes.node,e.selector),o=e.property,n=t.attr("id").replace("fl-field-",""),s=h(i.target).data("unit"),i=this._getDimensionValue(e,t,s,i),t=!!t.find(".fl-field-responsive-setting").length,e=e.important&&""!==i?" !important":"",o="border-radius"===o?"border-"+s.replace("_","-")+"-radius":"border-width"===o?"border-"+s+"-width":o+"-"+s;this.updateCSSRule(l,o,i+e,t),"margin"!==n&&"padding"!==n&&"border"!==n||this.elements.node.find(".fl-bg-slideshow").length&&FLBuilder._resizeLayout()},_getDimensionValue:function(e,t,i,l){var o=h(l.target).val();return null===(o=o.toLowerCase().replace(/[^a-z0-9%.\-]/g,""))||""===o||isNaN(o)||(e=this._getPreviewCSSUnit(e,t,l),o=parseFloat(o)+(e||"px")),o},_getPreviewCSSUnit:function(e,t,i){var i=h(i.target),l=(FLBuilderResponsiveEditing._mode,!!i.closest(".fl-compound-field-setting").length),o=!!i.closest(".fl-field-responsive-setting").length,n=null;return(n=(l?i.closest(".fl-compound-field-setting"):o?i.closest(".fl-field-responsive-setting"):t).find(".fl-field-unit-select"))&&n.length?"SELECT"===n.prop("tagName")?n.val():n.text():e.unit||""},_initFieldUnitSelect:function(e){e.find(".fl-field-unit-select").on("change",function(){var e=h(this),t=e.closest(".fl-field-responsive-setting"),e=e.closest(".fl-field");(t.length?t:e).find("input").trigger("input")})},_previewGradientCSS:function(e,t,i){var l=this._getPreviewSelector(this.classes.node,e.selector),o=t.find(".fl-gradient-picker-type-select").val(),n=t.find(".fl-gradient-picker-angle").val(),s=t.find(".fl-gradient-picker-position").val(),r=t.find(".fl-color-picker-value"),a=t.find(".fl-gradient-picker-stop input"),d=[],t="";r.each(function(e){var t=h(this).val(),e=a.eq(e).val();(t=""===t?"rgba(255,255,255,0)":t).indexOf("rgb")<0&&(t="#"+t),isNaN(e)&&(e=0),d.push(t+" "+e+"%")}),d=d.join(", "),t="linear"===o?"linear-gradient("+(n=isNaN(n)?0:n)+"deg, "+d+")":"radial-gradient(at "+s+", "+d+")",r=e.important&&""!==t?" !important":"",this.updateCSSRule(l,e.property,t+r)},_previewShadowCSS:function(e,t,i){var l=this._getPreviewSelector(this.classes.node,e.selector),o=t.find(".fl-shadow-field-color input").val(),n=t.find(".fl-shadow-field-horizontal input").val(),s=t.find(".fl-shadow-field-vertical input").val(),r=t.find(".fl-shadow-field-blur input").val(),a=t.find(".fl-shadow-field-spread input").val(),t=!!t.find(".fl-shadow-field-spread input").length,i=!!h(i.target).closest(".fl-field-responsive-setting").length,d="",u="";""!==o&&(""===a&&(a=0),d=(d=(n=""===n?0:n)+"px ")+(s=""===s?0:s)+"px "+(r=""===r?0:r)+"px ",t&&(d+=a+"px "),d=d+(o=o.indexOf("rgb")<0?"#"+o:o)+u),u=e.important&&""!==d?" !important":"",this.updateCSSRule(l,e.property,d,i)},_previewTypographyCSS:function(e,t,i){var l=this._getPreviewSelector(this.classes.node,e.selector),o=h(i.target),t=o.closest(".fl-field"),n=o.closest(".fl-compound-field-setting"),s=n.data("property"),r=o.val(),a=n.find(".fl-field-unit-select"),o=!!o.closest(".fl-field-responsive-setting").length,d=e.important&&""!==r?" !important":"";"font-family"===s?(e.id=t.attr("id"),this._previewFont(e,{delegateTarget:n})):"text-shadow"===s?(e.property="text-shadow",this._previewShadowCSS(e,n,i)):(a.length&&""!==r&&("vw"===a.val()?r="calc("+FLBuilderConfig.global.responsive_base_fontsize+"px + "+r+"vw)":r+="SELECT"===a.prop("tagName")?a.val():"px"),this.updateCSSRule(l,s,r+d,o))},_initFieldAttributePreview:function(e){var t=e.data("preview"),i=t.attribute,l=e.find("input"),e=(e.val(),window[t.format_callback]),t=this._getPreviewSelector(this.classes.node,t.selector),t=h(t),t=this._previewAttribute.bind(this,l,t,i,e);l.on("change",t),l.on("keyup",t),l.on("input",t)},_previewAttribute:function(e,t,l,o){var n=e.val();for("function"==typeof o&&(n=o(n)),i=0;i<t.length;i++)t[i].setAttribute(l,n)},_initFieldWidgetPreview:function(e){var t=h.proxy(this.delayPreview,this);e.find("input").on("keyup",t),e.find("input[type=checkbox]").on("click",t),e.find("textarea").on("keyup",t),e.find("select").on("change",t)},_initFieldAnimationPreview:function(e,t){t.find(".fl-animation-field-style select").on("change",h.proxy(this._previewAnimationField,this,e,t)),t.find(".fl-animation-field-duration input").on("input",h.proxy(this._previewAnimationField,this,e,t))},_previewAnimationField:function(e,t,i){var e=this._getPreviewSelector(this.classes.node,e.selector),l=h(e),e=t.find(".fl-animation-field-style select"),t=t.find(".fl-animation-field-duration input"),o=e[0].options;l.removeClass("fl-animated"),l.removeClass("fl-animation"),l.css("animation-duration","");for(var n=0;n<o.length;n++)l.removeClass("fl-"+o[n].value);""!==e.val()&&(l.addClass("fl-animation"),l.addClass("fl-"+e.val()),l.data("animation-delay",0),l.data("animation-duration",t.val())),FLBuilderLayout._doModuleAnimation.apply(l)},_getPreviewSelector:function(e,t){return FLBuilderPreview.getFormattedSelector.call(this,e,t)},toUpperCaseWords:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},FLBuilderPreview.formatColor=function(e){return e=""!==e&&e.indexOf("rgb")<0&&e.indexOf("url")<0?"#"+e:e},FLBuilderPreviewCallbacks={previewShape:function(e,t){var i=e.preview.position,l=e.preview.prefix,e=e.form;yOrientation=e.find('input[name="'+(l+"transform[][scaleYSign]")+'"]'),"bottom"===i?yOrientation.val("invert"):yOrientation.val(""),yOrientation.trigger("change"),this.delayPreview()},previewShapeLayerSize:function(e,t){var i,l=e.getValues(),o=l.unit,n=l.props.width,s=l.props.height,l=l.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"]').val().split(" "),h=c[0],c=c[1],e=e.form.find('[name="'+r+'shape"]').val(),r=FLBuilderConfig.presets.shape[e];if(shapeProps={width:"100%",left:"auto",right:"auto",height:"auto",top:"auto",bottom:"auto"},n){shapeProps.width=n+o;var f=n/2+o;switch(c){case"left":shapeProps.left="0",shapeProps.right="auto";break;case"right":shapeProps.left="auto",shapeProps.right="0";break;case"center":shapeProps.left="calc( 50% - "+f+")",shapeProps.right="auto"}}switch(this.updateCSSRule(u,"width",shapeProps.width),this.updateCSSRule(u,"left",shapeProps.left),this.updateCSSRule(u,"right",shapeProps.right),i=s?s/2+o:n?n/r.data.viewBox.width*100/2+o:"",s&&(shapeProps.height=s+o),h){case"top":shapeProps.top="0",shapeProps.bottom="auto";break;case"bottom":shapeProps.top="auto",shapeProps.bottom="0";break;case"center":shapeProps.top="calc( 50% - "+i+")",shapeProps.bottom="auto"}this.updateCSSRule(u,"height",shapeProps.height),this.updateCSSRule(u,"top",shapeProps.top),this.updateCSSRule(u,"bottom",shapeProps.bottom),""===l?this.updateCSSRule(d,a,"0"):this.updateCSSRule(d,a,l+o)},previewShapeAlign:function(e,t){var i=e.preview.prefix;e.form.find('[name="'+i+'size_width"]').trigger("input")},previewShapeFillStyle:function(e,t){var i=e.input.val(),l=e.preview,o=e.preview.prefix,n="fl-row-"+e.nodeID+"-"+o+"-linear-gradient",s="fl-row-"+e.nodeID+"-"+o+"-radial-gradient",r="fl-row-"+e.nodeID+"-"+o+"-pattern",a=e.form;if(void 0!==i){var d=this._getPreviewSelector(this.classes.node,l.selector);switch(i){case"color":var u=a.find("[name="+o+"fill_color]").val();this.updateCSSRule(d,"fill",FLBuilderPreview.formatColor(u));break;case"gradient":u=a.find("#fl-field-"+o+"fill_gradient").find('select[name$="[type]"]').val();this.updateCSSRule(d,"fill","url(#"+("radial"===u?s:n)+")");break;case"pattern":this.updateCSSRule(d,"fill","url(#"+r+")")}}},previewShapeGradientFill:function(e,t){var i,l=e.getValues(),o=e.node,e=".fl-builder-"+e.preview.position+"-edge-layer",o=o.find(e+" "+l.type+"Gradient"),n="url(#"+o.attr("id")+")",e=this._getPreviewSelector(this.classes.node,e+" .fl-shape"),s=(this.updateCSSRule(e,"fill",n),o.find("stop"));for(i in l.stops){var r,a=l.stops[i],d=s.eq(i),u=a.color,a=a.stop,c=1;0===u.indexOf("rgba")&&(c=(r=u.substring(u.indexOf("(")+1,u.lastIndexOf(")")).split(/,\s*/)).pop(),u="rgb("+r.join(",")+")"),d.attr("stop-color",FLBuilderPreview.formatColor(u)),d.attr("stop-opacity",c),d.attr("offset",a+"%")}if("linear"===l.type&&void 0!==o[0]&&o[0].setAttribute("gradientTransform","rotate("+l.angle+" .5 .5 )"),"radial"===l.type){var h,f,e=(parts=l.position.split(" "))[0],n=parts[1];switch(e){case"top":case"left":h=0;break;case"center":h=.5;break;case"bottom":case"right":h=1}switch(n){case"top":case"left":f=0;break;case"center":f=.5;break;case"bottom":case"right":f=1}(e=.5)===h&&.5===f||(e=1),o.attr("cx",h),o.attr("cy",f),o.attr("r",e)}},previewShapeTransform:function(e,t){e.form;var i=e.preview,i=(i.prefix,this._getPreviewSelector(this.classes.node,i.selector)+" > *"),l=e.getValues(),o=[];Object.keys(l).map(function(e){var t=l[e],i="";switch(e){case"scaleXSign":case"scaleYSign":return;case"scaleX":case"scaleY":t&&""!==t&&0!==t||(t="1"),t="invert"===("scaleX"===e?l.scaleXSign:l.scaleYSign)?-Math.abs(t):Math.abs(t),o.push(e+"("+t+")");break;case"translateX":case"translateY":t&&o.push(e+"("+t+(i="px")+")");break;case"skewX":case"skewY":t&&o.push(e+"("+t+(i="deg")+")");break;case"rotate":i="deg",""!==t&&"0"!==t&&o.push("rotate("+t+i+")")}}),this.updateCSSRule(i,"transform",o.join(" "))}}}(jQuery),!function(u){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,t){this.width=void 0===e?null:e,this.callback=void 0===t?null:t,l.update(),this.queueSheets()?this.runQueue():this.applyStyles()},queueSheets:function(){for(var e,t,i,l=null,o=null,n=null,s=!1,r=0,a=0;r<document.styleSheets.length;r++)if(l=(element=document.styleSheets[r].ownerNode).href,e=element.id,t=element.tagName.toLowerCase(),o=element.rel,i=element.media,n=l?l.split("?").shift():e||"style-"+r,s=!1,"style"===t||l&&o&&"stylesheet"===o.toLowerCase()){for(a=0;a<this.ignored.length;a++)if(-1<n.indexOf(this.ignored[a])){s=!0;break}if(!s){for(a=0;a<this.reparsed.length;a++)if(-1<n.indexOf(this.reparsed[a])){this.sheets[n]=null;break}void 0!==this.sheets[n]&&this.sheets[n]||this.queue.push({docSheet:document.styleSheets[r],element:u(element),key:n,tagName:t,href:l,id:e,media:i})}}return this.queue.length},runQueue:function(){var t;this.queue.length?"style"===(t=this.queue.shift()).tagName?(this.parse(t.element.html(),t),this.runQueue()):u.get(t.href,u.proxy(function(e){this.parse(e,t),this.runQueue()},this)).fail(this.runQueue.bind(this)):this.applyStyles()},parse:function(e,t){var i,l=this.regex,o=this.cleanStyles(e),n=o.match(l.media),s=n&&n.length||0,r=!s&&t.media,a=null,e="",d=0,u=0;for(n?e=o.replace(l.media,""):r&&"all"!=t.media?s=1:e=o,this.sheets[t.key]={docSheet:t.docSheet,element:t.element,key:t.key,tagName:t.tagName,href:t.href,id:t.id,all:e,queries:[]},d=0;d<s;d++)for(o=r?(a=t.media,this.convertURLs(o,t.href)):(a=n[d].match(l.findStyles)&&RegExp.$1,RegExp.$2&&this.convertURLs(RegExp.$2,t.href)),i=a.split(","),u=0;u<i.length;u++)"print"==((a=i[u]).split("(")[0].match(l.only)&&RegExp.$2)||a.replace(l.minmaxwh,"").match(l.other)||this.sheets[t.key].queries.push({minw:a.match(l.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:a.match(l.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),styles:o})},applyStyles:function(){var e=u("head"),t={all:"",queries:[]},i=null,l=null,o=null,n=null,s=null,r=null,a=null,d=!1;for(o in this.clearStyles(),this.sheets)if((l=this.sheets[o]).queries.length&&this.width){for(t.all+=l.all,s=0;s<l.queries.length;s++)r=(n=l.queries[s]).minw,a=n.maxw,d=!1,r&&(r=parseFloat(r)*(-1<r.indexOf("em")?this.getEmPxValue():1),this.width>=r&&(t.queries.push({media:"min",width:r,styles:n.styles}),d=!0)),a&&!d&&(a=parseFloat(a)*(-1<a.indexOf("em")?this.getEmPxValue():1),this.width<=a&&t.queries.push({media:"max",width:a,styles:n.styles}));l.docSheet.disabled=!0}for(""!==t.all&&(i=u('<style class="fl-builder-media-query" data-query="all"></style>'),this.styles.push(i),e.append(i),i.html(t.all)),s=0;s<t.queries.length;s++)n=t.queries[s],i=u('<style class="fl-builder-media-query" data-query="'+n.media+'" data-value="'+n.width+'"></style>'),this.styles.push(i),e.append(i),i.html(n.styles);this.callback&&(this.callback(),this.callback=null)},clearStyles:function(){var e=null,t=this.styles.slice(0);for(e in this.styles=[],this.sheets)this.sheets[e].docSheet.disabled=!1;for(var i=0;i<t.length;i++)t[i].empty(),t[i].remove()},disableStyles:function(e){for(var t,i,l=0;l<this.styles.length;l++)t=(i=this.styles[l]).attr("data-query"),i=parseInt(i.attr("data-value")),"max"===t&&!isNaN(i)&&i<=e&&(this.styles[l][0].sheet.disabled=!0)},enableStyles:function(){for(var e=0;e<this.styles.length;e++)this.styles[e][0].sheet.disabled=!1,this.styles[e][0].sheet.disabled=!0,this.styles[e][0].sheet.disabled=!1},cleanStyles:function(e){var t=this.regex;return e.replace(t.comments,"").replace(t.keyframes,"").replace(t.empty,"")},convertURLs:function(e,t){return t?((t=t.substring(0,t.lastIndexOf("/"))).length&&(t+="/"),e.replace(this.regex.urls,"$1"+t+"$2$3")):e},getEmPxValue:function(){if(this.emPxValue)return this.emPxValue;var e=window.document,t=e.documentElement,i=e.body,l=e.createElement("div"),o=t.style.fontSize,n=i&&i.style.fontSize,s=!1;return l.style.cssText="position:absolute;font-size:1em;width:1em",i||((i=s=e.createElement("body")).style.background="none"),t.style.fontSize="100%",i.style.fontSize="100%",i.appendChild(l),s&&t.insertBefore(i,t.firstChild),e=parseFloat(l.offsetWidth),s?t.removeChild(i):i.removeChild(l),t.style.fontSize=o,i.style.fontSize=n||"",this.emPxValue=e}},l={_functions:null,update:function(){if(!this._functions)for(var e in this._functions={},t)this._functions[e]=jQuery.fn[e];if(i.width)for(e in t)jQuery.fn[e]=t[e];else for(e in this._functions)jQuery.fn[e]=this._functions[e]}},t={width:function(e){return null!=e?l._functions.width.call(this,e):u.isWindow(this[0])?i.width:l._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(d){FLBuilderResponsiveEditing={_mode:"default",refreshPreview:function(e){var t;d(".fl-responsive-preview").length&&"default"!==this._mode?("responsive"==this._mode?(t=320<=FLBuilderConfig.global.responsive_breakpoint?320:FLBuilderConfig.global.responsive_breakpoint,FLBuilderSimulateMediaQuery.update(t,e)):"medium"==this._mode&&(t=769<=FLBuilderConfig.global.medium_breakpoint?769:FLBuilderConfig.global.medium_breakpoint,FLBuilderSimulateMediaQuery.update(t,e)),FLBuilder._resizeLayout()):e&&e()},_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),FLBuilder.addHook("responsive-editing-switched",this._showSize),d("body").on("click",".fl-field-responsive-toggle",this._settingToggleClicked),d("body").on("click",".fl-responsive-preview-message button",this._previewToggleClicked)},_initMediaQueries:function(){FLBuilderSimulateMediaQuery.ignore([FLBuilderConfig.pluginUrl,FLBuilderConfig.relativePluginUrl]),ignorelist=d.map(FLBuilderConfig.responsiveIgnore,function(e,t){return[e]}),FLBuilderSimulateMediaQuery.ignore(ignorelist),FLBuilderSimulateMediaQuery.reparse([FLBuilderConfig.postId+"-layout-draft.css",FLBuilderConfig.postId+"-layout-draft-partial.css",FLBuilderConfig.postId+"-layout-preview.css",FLBuilderConfig.postId+"-layout-preview-partial.css",FLBuilderConfig.postId+"-inline-css","fl-builder-global-css","fl-builder-layout-css"])},_showSize:function(){var e=d(".fl-responsive-preview-message .size"),t="1"===FLBuilderConfig.global.responsive_preview?FLBuilderConfig.global.medium_breakpoint:769,i="1"===FLBuilderConfig.global.responsive_preview?FLBuilderConfig.global.responsive_breakpoint:360,l="";d(".fl-responsive-preview").hasClass("fl-preview-responsive")?l=FLBuilderStrings.mobile+" "+i+"px":d(".fl-responsive-preview").hasClass("fl-preview-medium")&&(l=FLBuilderStrings.medium+" "+t+"px"),e.html("").html(l)},_switchTo:function(e,t){var i=d("html"),l=d("body"),o=d(FLBuilder._contentClass),n=d(".fl-responsive-preview"),s=d(".fl-responsive-preview-mask"),r=d(".fl-content-placeholder"),a=null;if("default"==(FLBuilderResponsiveEditing._mode=e)){if(0===r.length)return;i.removeClass("fl-responsive-preview-enabled"),r.after(o),r.remove(),n.remove(),s.remove()}else 0===n.length?(i.addClass("fl-responsive-preview-enabled"),o.after('<div class="fl-content-placeholder"></div>'),l.prepend(wp.template("fl-responsive-preview")()),d(".fl-responsive-preview").addClass("fl-preview-"+e),d(".fl-responsive-preview-content").append(o)):(n.removeClass("fl-preview-responsive fl-preview-medium"),n.addClass("fl-preview-"+e));"responsive"==e?(a="1"!==FLBuilderConfig.global.responsive_preview&&360<=FLBuilderConfig.global.responsive_breakpoint?360:FLBuilderConfig.global.responsive_breakpoint,o.width(a),FLBuilderSimulateMediaQuery.update(a,t),FLBuilderResponsiveEditing._setMarginPaddingPlaceholders()):"medium"==e?(a="1"!==FLBuilderConfig.global.responsive_preview&&769<=FLBuilderConfig.global.medium_breakpoint?769:FLBuilderConfig.global.medium_breakpoint,o.width(a),FLBuilderSimulateMediaQuery.update(a,t),FLBuilderResponsiveEditing._setMarginPaddingPlaceholders()):(o.width(""),FLBuilderSimulateMediaQuery.update(null,t)),this._setContentBackgroundColor(),FLBuilder._resizeLayout(),this._previewFields(),FLBuilder.triggerHook("responsive-editing-switched",e)},_setContentBackgroundColor:function(){var e=d(FLBuilder._contentClass),t=d(".fl-responsive-preview"),i=d(".fl-content-placeholder").parents(),l="#fff",o=0;if(0===t.length)e.css("background-color","");else{for(;o<i.length&&"rgba(0, 0, 0, 0)"==(l=i.eq(o).css("background-color"));o++);e.css("background-color",l)}},_switchToAndScroll:function(i){var e=d(".fl-builder-settings").data("node"),t=void 0===e?void 0:d(".fl-node-"+e);FLBuilderResponsiveEditing._switchTo(i,function(){var e;void 0!==t&&t&&(d(window),(e=d(".fl-responsive-preview-content")).length?(e.scrollTop(0),e.scrollTop(t.offset().top-150)):d("html, body").scrollTop(t.offset().top-100)),d(".fl-row-bg-parallax").each(function(){var e=d(this),t=e.find("> .fl-row-content-wrap"),e={default:e.data("parallax-image"),medium:e.data("parallax-image-medium"),responsive:e.data("parallax-image-responsive")};void 0!==e[i]&&t.css("background-image","url("+e[i]+")")})})},_switchAllSettingsTo:function(e){var t="dashicons-desktop dashicons-tablet dashicons-smartphone";d(".fl-field-responsive-toggle").removeClass(t),d(".fl-field-responsive-setting").hide(),t="default"==e?"dashicons-desktop":"medium"==e?"dashicons-tablet":"dashicons-smartphone",d(".fl-field-responsive-toggle").addClass(t).data("mode",e),d(".fl-field-responsive-setting-"+e).css("display","inline-block")},_switchAllSettingsToCurrentMode:function(){var e=FLBuilderResponsiveEditing;e._switchAllSettingsTo(e._mode),FLBuilder.triggerHook("responsive-editing-switched",e._mode)},_setMarginPaddingPlaceholders:function(){var e="#fl-field-padding .fl-field-responsive-setting-default",e={values:{top:d(e+' input[ name="padding_top" ]').val(),right:d(e+' input[ name="padding_right" ]').val(),bottom:d(e+' input[ name="padding_bottom" ]').val(),left:d(e+' input[ name="padding_left" ]').val()},placeholders:{top:d(e+' input[ name="padding_top" ]').attr("placeholder"),right:d(e+' input[ name="padding_right" ]').attr("placeholder"),bottom:d(e+' input[ name="padding_bottom" ]').attr("placeholder"),left:d(e+' input[ name="padding_left" ]').attr("placeholder")}},t="#fl-field-padding .fl-field-responsive-setting-medium",i={values:{top:d(t+' input[ name="padding_top_medium" ]').val(),right:d(t+' input[ name="padding_right_medium" ]').val(),bottom:d(t+' input[ name="padding_bottom_medium" ]').val(),left:d(t+' input[ name="padding_left_medium" ]').val()},placeholders:{top:"",right:"",bottom:"",left:""}},l="#fl-field-padding .fl-field-responsive-setting-responsive",o=(d(t+' input[ name="padding_top_responsive" ]').val(),d(t+' input[ name="padding_right_responsive" ]').val(),d(t+' input[ name="padding_bottom_responsive" ]').val(),d(t+' input[ name="padding_left_responsive" ]').val(),"#fl-field-margin .fl-field-responsive-setting-default"),o={values:{top:d(o+' input[ name="margin_top" ]').val(),right:d(o+' input[ name="margin_right" ]').val(),bottom:d(o+' input[ name="margin_bottom" ]').val(),left:d(o+' input[ name="margin_left" ]').val()},placeholders:{top:d(o+' input[ name="margin_top" ]').attr("placeholder"),right:d(o+' input[ name="margin_right" ]').attr("placeholder"),bottom:d(o+' input[ name="margin_bottom" ]').attr("placeholder"),left:d(o+' input[ name="margin_left" ]').attr("placeholder")}},n="#fl-field-margin .fl-field-responsive-setting-medium",s={values:{top:d(n+' input[ name="margin_top_medium" ]').val(),right:d(n+' input[ name="margin_right_medium" ]').val(),bottom:d(n+' input[ name="margin_bottom_medium" ]').val(),left:d(n+' input[ name="margin_left_medium" ]').val()},placeholders:{top:o.values.top||o.placeholders.top,right:o.values.right||o.placeholders.right,bottom:o.values.bottom||o.placeholders.bottom,left:o.values.left||o.placeholders.left}},r="#fl-field-margin .fl-field-responsive-setting-responsive";d(r+' input[ name="margin_top_responsive" ]').val(),d(r+' input[ name="margin_right_responsive" ]').val(),d(r+' input[ name="margin_bottom_responsive" ]').val(),d(r+' input[ name="margin_left_responsive" ]').val();""!=e.values.top?d(t+' input[ name="padding_top_medium"] ').attr("placeholder",e.values.top):d(t+' input[ name="padding_top_medium"] ').attr("placeholder",e.placeholders.top),""!=e.values.right?d(t+' input[ name="padding_right_medium"] ').attr("placeholder",e.values.right):d(t+' input[ name="padding_right_medium"] ').attr("placeholder",e.placeholders.right),""!=e.values.bottom?d(t+' input[ name="padding_bottom_medium"] ').attr("placeholder",e.values.bottom):d(t+' input[ name="padding_bottom_medium"] ').attr("placeholder",e.placeholders.bottom),""!=e.values.left?d(t+' input[ name="padding_left_medium"] ').attr("placeholder",e.values.left):d(t+' input[ name="padding_left_medium"] ').attr("placeholder",e.placeholders.left),""!=i.values.top?d(l+' input[ name="padding_top_responsive"] ').attr("placeholder",i.values.top):""!=e.values.top?d(l+' input[ name="padding_top_responsive"] ').attr("placeholder",e.values.top):d(l+' input[ name="padding_top_responsive"] ').attr("placeholder",e.placeholders.top),""!=i.values.right?d(l+' input[ name="padding_right_responsive"] ').attr("placeholder",i.values.right):""!=e.values.right?d(l+' input[ name="padding_right_responsive"] ').attr("placeholder",e.values.right):d(l+' input[ name="padding_right_responsive"] ').attr("placeholder",e.placeholders.right),""!=i.values.bottom?d(l+' input[ name="padding_bottom_responsive"] ').attr("placeholder",i.values.bottom):""!=e.values.bottom?d(l+' input[ name="padding_bottom_responsive"] ').attr("placeholder",e.values.bottom):d(l+' input[ name="padding_bottom_responsive"] ').attr("placeholder",e.placeholders.bottom),""!=i.values.left?d(l+' input[ name="padding_left_responsive"] ').attr("placeholder",i.values.left):""!=e.values.left?d(l+' input[ name="padding_left_responsive"] ').attr("placeholder",e.values.left):d(l+' input[ name="padding_left_responsive"] ').attr("placeholder",e.placeholders.left),""!=o.values.top?d(n+' input[ name="margin_top_medium" ]').attr("placeholder",o.values.top):d(n+' input[ name="margin_top_medium" ]').attr("placeholder",o.placeholders.top),""!=o.values.right?d(n+' input[ name="margin_right_medium" ]').attr("placeholder",o.values.right):d(n+' input[ name="margin_right_medium" ]').attr("placeholder",o.placeholders.right),""!=o.values.bottom?d(n+' input[ name="margin_bottom_medium" ]').attr("placeholder",o.values.bottom):d(n+' input[ name="margin_bottom_medium" ]').attr("placeholder",o.placeholders.bottom),""!=o.values.left?d(n+' input[ name="margin_left_medium" ]').attr("placeholder",o.values.left):d(n+' input[ name="margin_left_medium" ]').attr("placeholder",o.placeholders.left),""!=s.values.top?d(r+' input[ name="margin_top_responsive" ]').attr("placeholder",s.values.top):""!=o.values.top?d(r+' input[ name="margin_top_responsive" ]').attr("placeholder",o.values.top):d(r+' input[ name="margin_top_responsive" ]').attr("placeholder",o.placeholders.top),""!=s.values.right?d(r+' input[ name="margin_right_responsive" ]').attr("placeholder",s.values.right):""!=o.values.right?d(r+' input[ name="margin_right_responsive" ]').attr("placeholder",o.values.right):d(r+' input[ name="margin_right_responsive" ]').attr("placeholder",o.placeholders.right),""!=s.values.bottom?d(r+' input[ name="margin_bottom_responsive" ]').attr("placeholder",s.values.bottom):""!=o.values.bottom?d(r+' input[ name="margin_bottom_responsive" ]').attr("placeholder",o.values.bottom):d(r+' input[ name="margin_bottom_responsive" ]').attr("placeholder",o.placeholders.bottom),""!=s.values.left?d(r+' input[ name="margin_left_responsive" ]').attr("placeholder",s.values.left):""!=o.values.left?d(r+' input[ name="margin_left_responsive" ]').attr("placeholder",o.values.left):d(r+' input[ name="margin_left_responsive" ]').attr("placeholder",o.placeholders.left)},_settingToggleClicked:function(){var e=d(this),t="default"==(t=e.data("mode"))?"medium":"medium"==t?"responsive":"default";FLBuilderResponsiveEditing._switchAllSettingsTo(t),FLBuilderResponsiveEditing._switchToAndScroll(t),e.siblings(".fl-field-responsive-setting:visible").find("input").focus()},_menuToggleClicked:function(){var e="default"==(e=FLBuilderResponsiveEditing._mode)?"medium":"medium"==e?"responsive":"default";FLBuilder.MainMenu.hide(),FLBuilderResponsiveEditing._switchAllSettingsTo(e),FLBuilderResponsiveEditing._switchToAndScroll(e)},_previewToggleClicked:function(){var e=d(this).data("mode");FLBuilderResponsiveEditing._switchAllSettingsTo(e),FLBuilderResponsiveEditing._switchToAndScroll(e)},_clearPreview:function(){FLBuilderResponsiveEditing._switchToAndScroll("default")},_previewFields:function(){var o=FLBuilderResponsiveEditing._mode,e=d(".fl-builder-settings:visible");0!==e.length&&void 0!==e.attr("data-node")&&(FLBuilder.triggerHook("responsive-editing-before-preview-fields",o),e.find(".fl-builder-settings-tab").each(function(){var e=d(this);e.css("display","block"),e.find(".fl-field-responsive-setting-"+o+":visible").each(function(){var e=d(this),t=e.closest(".fl-field"),i=t.data("type"),l=t.data("preview"),t=t.find(".fl-field-connection-visible").length;"refresh"!=l.type&&(t?"photo"===i&&"default"!==o&&e.find(".fl-photo-remove").trigger("click"):(e.find("input").trigger("keyup"),e.find("select").trigger("change")))}),e.css("display","")}),FLBuilder.triggerHook("responsive-editing-after-preview-fields",o))}},d(function(){FLBuilderResponsiveEditing._init()})}(jQuery),!function(n){FLBuilderResponsivePreview={enter:function(){this.render()},exit:function(){this.destroy()},switchTo:function(e){var t=FLBuilderConfig.global,i=n("#fl-builder-preview-frame"),l="100%";"responsive"==e?(l="1"!==t.responsive_preview&&360<=t.responsive_breakpoint?360:t.responsive_breakpoint,i.width(l)):"medium"==e&&(l="1"!==t.responsive_preview&&769<=t.medium_breakpoint?769:t.medium_breakpoint,i.width(l)),i.width(l)},render:function(){var e=n("body"),t=FLBuilderConfig.previewUrl,i=n("#fl-builder-preview-mask, #fl-builder-preview-frame"),l=n('<div id="fl-builder-preview-mask"></div>'),t=n('<iframe id="fl-builder-preview-frame" src="'+t+'"></iframe>');i.remove(),e.append(l),e.append(t),e.css("overflow","hidden")},_showSize:function(e){var t=n(".fl-builder--preview-actions .size"),i="1"===FLBuilderConfig.global.responsive_preview?FLBuilderConfig.global.medium_breakpoint:769,l="1"===FLBuilderConfig.global.responsive_preview?FLBuilderConfig.global.responsive_breakpoint:360,o="";"responsive"===e?o=FLBuilderStrings.mobile+" "+l+"px":"medium"===e&&(o=FLBuilderStrings.medium+" "+i+"px"),t.html("").html(o)},destroy:function(){n("#fl-builder-preview-mask, #fl-builder-preview-frame").remove(),n("body").css("overflow","visible"),n(".fl-builder--preview-actions .size").html("")}}}(jQuery),!function(d){var u={init:function(){var e=d("body");e.on("change",".fl-builder-service-select",this._serviceChange),e.on("click",".fl-builder-service-connect-button",this._connectClicked),e.on("change",".fl-builder-service-account-select",this._accountChange),e.on("click",".fl-builder-service-account-delete",this._accountDeleteClicked),e.on("change",".fl-builder-campaign-monitor-client-select",this._campaignMonitorClientChange),e.on("change",".fl-builder-mailchimp-list-select",this._mailChimpListChange),e.on("change",".fl-builder-activecampaign-list_type-select",this._activeCampaignChange)},_startSettingsLoading:function(e){var t=d(".fl-builder-settings"),e=e.closest(".fl-builder-service-settings"),i=d(".fl-builder-service-error");t.append('<div class="fl-builder-loading"></div>'),e.addClass("fl-builder-service-settings-loading"),i.remove()},_finishSettingsLoading:function(){var e=d(".fl-builder-settings"),t=d(".fl-builder-service-settings-loading");e.find(".fl-builder-loading").remove(),t.removeClass("fl-builder-service-settings-loading")},_serviceChange:function(){var e=d(".fl-builder-settings").data("node"),t=d(this),i=t.closest("tr"),l=t.val();i.siblings("tr.fl-builder-service-account-row").remove(),i.siblings("tr.fl-builder-service-connect-row").remove(),i.siblings("tr.fl-builder-service-field-row").remove(),d(".fl-builder-service-error").remove(),""!==l&&(u._startSettingsLoading(t),FLBuilder.ajax({action:"render_service_settings",node_id:e,service:l},u._serviceChangeComplete))},_serviceChangeComplete:function(e){var e=FLBuilder._jsonParse(e),t=d(".fl-builder-service-settings-loading");t.find(".fl-builder-service-select-row").after(e.html),u._addAccountDelete(t),u._finishSettingsLoading()},_connectClicked:function(){for(var e,t=d(".fl-builder-settings").data("node"),i=d(this).closest(".fl-builder-service-settings"),l=i.find(".fl-builder-service-select"),o=i.find(".fl-builder-service-connect-row"),n=i.find(".fl-builder-service-connect-input"),s=null,r=0,a={action:"connect_service",node_id:t,service:l.val(),fields:{}};r<n.length;r++)e=(s=n.eq(r)).attr("name"),a.fields[e]=s.val();o.hide(),u._startSettingsLoading(l),FLBuilder.ajax(a,u._connectComplete)},_connectComplete:function(e){var e=FLBuilder._jsonParse(e),t=d(".fl-builder-service-settings-loading"),i=t.find(".fl-builder-service-select-row"),l=t.find(".fl-builder-service-select"),o=t.find(".fl-builder-service-account-row"),n=t.find(".fl-builder-service-account-select"),s=t.find(".fl-builder-service-connect-row");e.error?(s.show(),(0===n.length?l:n).after('<div class="fl-builder-service-error">'+e.error+"</div>")):(s.remove(),o.remove(),i.after(e.html)),u._addAccountDelete(t),u._finishSettingsLoading()},_accountChange:function(){var e=d(".fl-builder-settings").data("node"),t=d(this).closest(".fl-builder-service-settings"),i=t.find(".fl-builder-service-select"),l=t.find(".fl-builder-service-account-select"),o=t.find(".fl-builder-service-connect-row"),n=t.find("tr.fl-builder-service-field-row"),s=d(".fl-builder-service-error"),l=l.val(),r=null;o.remove(),n.remove(),s.remove(),"add_new_account"==l?r={action:"render_service_settings",node_id:e,service:i.val(),add_new:!0}:""!==l&&(r={action:"render_service_fields",node_id:e,service:i.val(),account:l}),r&&(u._startSettingsLoading(i),FLBuilder.ajax(r,u._accountChangeComplete)),u._addAccountDelete(t)},_accountChangeComplete:function(e){e=FLBuilder._jsonParse(e);d(".fl-builder-service-settings-loading").find(".fl-builder-service-account-row").after(e.html),u._finishSettingsLoading()},_addAccountDelete:function(e){var t=e.find(".fl-builder-service-account-select");0<t.length&&(e.find(".fl-builder-service-account-delete").remove(),""!==t.val()&&"add_new_account"!=t.val()&&t.after('<a href="javascript:void(0);" class="fl-builder-service-account-delete">'+FLBuilderStrings.deleteAccount+"</a>"))},_accountDeleteClicked:function(){var e=d(this).closest(".fl-builder-service-settings"),t=e.find(".fl-builder-service-select"),e=e.find(".fl-builder-service-account-select");confirm(FLBuilderStrings.deleteAccountWarning)&&(FLBuilder.ajax({action:"delete_service_account",service:t.val(),account:e.val()},u._accountDeleteComplete),u._startSettingsLoading(e))},_accountDeleteComplete:function(){var e=d(".fl-builder-service-settings-loading").find(".fl-builder-service-select");u._finishSettingsLoading(),e.trigger("change")},_campaignMonitorClientChange:function(){var e=d(".fl-builder-settings").data("node"),t=d(this).closest(".fl-builder-service-settings"),i=t.find(".fl-builder-service-select"),l=t.find(".fl-builder-service-account-select"),o=d(this),t=t.find(".fl-builder-service-list-select"),o=o.val();0!==t.length&&t.closest("tr").remove(),""!==o&&(u._startSettingsLoading(i),FLBuilder.ajax({action:"render_service_fields",node_id:e,service:i.val(),account:l.val(),client:o},u._campaignMonitorClientChangeComplete))},_campaignMonitorClientChangeComplete:function(e){e=FLBuilder._jsonParse(e);d(".fl-builder-service-settings-loading").find(".fl-builder-campaign-monitor-client-select").closest("tr").after(e.html),u._finishSettingsLoading()},_mailChimpListChange:function(){var e=d(".fl-builder-settings").data("node"),t=d(this).closest(".fl-builder-service-settings"),i=t.find(".fl-builder-service-select"),l=t.find(".fl-builder-service-account-select"),t=t.find(".fl-builder-service-list-select");d(".fl-builder-mailchimp-group-select").closest("tr").remove(),""!==t.val()&&(u._startSettingsLoading(i),FLBuilder.ajax({action:"render_service_fields",node_id:e,service:i.val(),account:l.val(),list_id:t.val()},u._mailChimpListChangeComplete))},_mailChimpListChangeComplete:function(e){e=FLBuilder._jsonParse(e);d(".fl-builder-service-settings-loading").find(".fl-builder-service-list-select").closest("tr").after(e.html),u._finishSettingsLoading()},_activeCampaignChange:function(){var e=d(".fl-builder-settings").data("node"),t=d(this).closest(".fl-builder-service-settings"),i=t.find(".fl-builder-service-select"),l=t.find(".fl-builder-service-account-select"),o=t.find(".fl-builder-service-list-select");list_type=t.find('select[name="list_type"]'),0!==o.length&&o.closest("tr").remove(),""!==list_type.val()&&(u._startSettingsLoading(i),FLBuilder.ajax({action:"render_service_fields",node_id:e,service:i.val(),account:l.val(),list_type:list_type.val()},u._activeCampaignTypeChangeComplete))},_activeCampaignTypeChangeComplete:function(e){e=FLBuilder._jsonParse(e);d(".fl-builder-service-settings-loading").find(".fl-builder-service-field-row").after(e.html),u._finishSettingsLoading()}};d(function(){u.init()})}(jQuery),!function(t){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 e={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.fl-builder-tour-demo-content",placement:"top",title:FLBuilderStrings.tourEditContentTitle,content:FLBuilderStrings.tourEditContent,onShow:function(){FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._closePanel(),t(".fl-row.fl-builder-tour-demo-content").trigger("mouseenter"),t(".fl-row.fl-builder-tour-demo-content .fl-module").eq(0).trigger("mouseenter")}},{animation:!1,element:".fl-row.fl-builder-tour-demo-content .fl-module-overlay .fl-block-overlay-actions",placement:"top",title:FLBuilderStrings.tourEditContentTitle,content:FLBuilderStrings.tourEditContent2,onShow:function(){FLBuilderTour._dimSection(".fl-builder-bar"),FLBuilder._closePanel(),t(".fl-row.fl-builder-tour-demo-content").trigger("mouseenter"),t(".fl-row.fl-builder-tour-demo-content .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"),t(".fl-row").eq(0).trigger("mouseleave"),t(".fl-module").eq(0).trigger("mouseleave")}},{animation:!1,element:".fl-builder-bar-title",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"disabled"!=FLBuilderConfig.enabledTemplates&&"fl-builder-template"!=FLBuilderConfig.postType||e.steps.shift(),e},_onStart:function(){var e=t("body");e.scrollTop(0),e.append('<div class="fl-builder-tour-mask"></div>'),"module"!=FLBuilderConfig.userTemplateType&&(0===t(".fl-row").length?(t(".fl-builder-content").append('<div class="fl-builder-tour-demo-content fl-builder-tour-placeholder-content fl-row fl-row-full-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()):t(".fl-row").eq(0).addClass("fl-builder-tour-demo-content"))},_onPrev:function(){t(".fl-builder-tour-dimmed").remove()},_onNext:function(){t(".fl-builder-tour-dimmed").remove()},_onEnd:function(){t("body").off("fl-builder.template-selector-loaded"),t(".fl-builder-tour-mask").remove(),t(".fl-builder-tour-dimmed").remove(),t(".fl-builder-tour-placeholder-content").remove(),t(".fl-builder-tour-demo-content").removeClass("fl-builder-tour-demo-content"),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._showPanel(),FLBuilder._initTemplateSelector()},_dimSection:function(e){t(e).find(".fl-builder-tour-dimmed").remove(),t(e).append('<div class="fl-builder-tour-dimmed"></div>')}}}(jQuery),!function(r,o){String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return this.substr(t=t||0,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString(),i=(("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length,i.indexOf(e,t));return-1!==i&&i===t}),r.fn.textWidth=function(e,t){return r.fn.textWidth.fakeEl||(r.fn.textWidth.fakeEl=r("<span>").hide().appendTo(document.body)),r.fn.textWidth.fakeEl.text(e||this.val()||this.text()).css("font",t||this.css("font")),r.fn.textWidth.fakeEl.width()},FLExtendableObject={create:function(e){var t=Object.create(this),t=r.extend(t,e);return r(this).trigger("onCreate"),t}},r.fn.switchClass=function(o,e){return this.each(function(){return r(this).removeClass(function(e,t){var i=[],l=t.split(" ");for(e in l)l[e].startsWith(o)&&i.push(l[e]);return i.join(" ")}),r(this).addClass(o+e)})};var e={init:function(){o.addHook("cancelTask",this.onCancelTask.bind(this)),o.addHook("showSavedMessage",this.onSaveShortcut.bind(this)),o.addHook("goToNextTab",this.onNextPrevTabShortcut.bind(this,"next")),o.addHook("goToPrevTab",this.onNextPrevTabShortcut.bind(this,"prev")),o.addHook("endEditingSession",this.onEndEditingSession.bind(this)),o.addHook("restartEditingSession",this.onRestartEditingSession.bind(this)),this.setDefaultKeyboardShortcuts()},addShortcut:function(e,t,i){e=r.proxy(this,"onTriggerKey",e);i?Mousetrap.bindGlobal(t,e):Mousetrap.bind(t,e)},reset:function(){Mousetrap.reset()},setDefaultKeyboardShortcuts:function(){for(var e in this.reset(),FLBuilderConfig.keyboardShortcuts){var t=FLBuilderConfig.keyboardShortcuts[e].keyCode,i=FLBuilderConfig.keyboardShortcuts[e].isGlobal;this.addShortcut(e,t,i)}},onTriggerKey:function(e,t){o.triggerHook(e),t.preventDefault?t.preventDefault():t.returnValue=!1},onCancelTask:function(){i.isPreviewing?i.endPreview():t.isShowing?t.hide():o.ContentPanel.isShowing&&o.ContentPanel.hide()},pause:function(){Mousetrap.pause()},unpause:function(){Mousetrap.unpause()},onEndEditingSession:function(){const e=FL.Builder.data.getSystemActions();e.setIsEditing(!1),document.documentElement.classList.remove("fl-builder-assistant-visible"),this.reset(),this.addShortcut("restartEditingSession","mod+e")},onRestartEditingSession:function(){const e=FL.Builder.data.getSystemActions();e.setIsEditing(!0),"assistant"===FL.Builder.data.getSystemState().currentPanel&&document.documentElement.classList.add("fl-builder-assistant-visible"),this.reset(),this.setDefaultKeyboardShortcuts()},onSaveShortcut:function(){var e;e=o.SaveManager.layoutNeedsPublish()?FLBuilderStrings.savedStatus.hasAlreadySaved:FLBuilderStrings.savedStatus.nothingToSave,o.SaveManager.showStatusMessage(e),setTimeout(function(){o.SaveManager.resetStatusMessage()},2e3)},onNextPrevTabShortcut:function(e,t){var i=r(".fl-lightbox:visible"),l=i.find(".fl-builder-settings-tabs a");0<i.length&&(i=l.filter("a.fl-active"),("next"==e?i.is(l.last())?l.first():i.next("a"):i.is(l.first())?l.last():i.prev("a")).trigger("click")),o._calculateSettingsTabsOverflow(),t.preventDefault()}},t=FLExtendableObject.create({isShowing:!1,init:function(){this.$el=r(".fl-builder-publish-actions"),this.$defaultBarButtons=r(".fl-builder-bar-actions"),this.$clickAwayMask=r(".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 touchend",this.onActionClicked.bind(this)),o.addHook("triggerDone",this.onDoneTriggered.bind(this));var e=this.hide.bind(this);o.addHook("cancelPublishActions",e),o.addHook("endEditingSession",e),this.$clickAwayMask.on("click",e)},onDoneTriggered:function(){o.SaveManager.layoutNeedsPublish()?this.show():FLBuilderConfig.shouldRefreshOnPublish?o._exit():o._exitWithoutRefresh()},show:function(){this.isShowing||o._triggerSettingsSave(!1,!0)&&(this.$el.removeClass("is-hidden"),this.$defaultBarButtons.css("opacity","0"),this.$clickAwayMask.show(),this.isShowing=!0,o.triggerHook("didShowPublishActions"))},hide:function(){this.isShowing&&(this.$el.addClass("is-hidden"),this.$defaultBarButtons.css("opacity","1"),this.$clickAwayMask.hide(),this.isShowing=!1)},onActionClicked:function(e){e=r(e.currentTarget).data("action");switch(e){case"dismiss":this.hide();break;case"discard":this.hide(),i.muteToolbar(),o._discardButtonClicked();break;case"publish":this.hide(),i.muteToolbar(),o._publishButtonClicked(),o._destroyOverlayEvents();break;default:this.hide(),i.muteToolbar(),o._draftButtonClicked()}o.triggerHook(e+"ButtonClicked")}}),i={isPreviewing:!1,init:function(){this.$el=r("body"),this.$mainToolbar=r(".fl-builder-bar"),this.$mainToolbarContent=this.$mainToolbar.find(".fl-builder-bar-content"),this.$wpAdminBar=r("#wpadminbar"),this.$endPreviewBtn=r(".fl-builder--preview-actions .end-preview-btn"),o.addHook("endEditingSession",this.endEditingSession.bind(this)),o.addHook("previewLayout",this.togglePreview.bind(this)),this.$endPreviewBtn.on("click",this.endPreview.bind(this)),this.$deviceIcons=r(".fl-builder--preview-actions i"),this.$deviceIcons.on("click",this.onDeviceIconClick.bind(this));this.$wpAdminBar.find("#wp-admin-bar-fl-builder-frontend-edit-link > a, #wp-admin-bar-fl-theme-builder-frontend-edit-link > a").on("click",this.onClickPageBuilderToolbarLink.bind(this)),r("#wpadminbar a").attr("tabindex","-1");var e=this.restartEditingSession.bind(this);o.addHook("restartEditingSession",e),o.addHook("didHideAllLightboxes",this.unmuteToolbar.bind(this)),o.addHook("didCancelDiscard",this.unmuteToolbar.bind(this)),o.addHook("didEnterRevisionPreview",this.hide.bind(this)),o.addHook("didExitRevisionPreview",this.show.bind(this)),o.addHook("didPublishLayout",this.onPublish.bind(this)),o.addHook("didPublishLayout",this.onPublishCacheClear.bind(this))},endEditingSession:function(){o._destroyOverlayEvents(),o._removeAllOverlays(),o._removeEmptyRowAndColHighlights(),o._removeColHighlightGuides(),o._unbindEvents(),r("html").removeClass("fl-builder-edit").addClass("fl-builder-show-admin-bar"),r("body").removeClass("fl-builder-edit"),r("#wpadminbar a").attr("tabindex",null),r(o._contentClass).removeClass("fl-builder-content-editing"),this.hideMainToolbar(),o.ContentPanel.hide(),FLBuilderLayout.init()},restartEditingSession:function(e){o._initTemplateSelector(),o._bindOverlayEvents(),o._highlightEmptyCols(),o._rebindEvents(),r("html").addClass("fl-builder-edit").removeClass("fl-builder-show-admin-bar"),r("body").addClass("fl-builder-edit"),r("#wpadminbar a").attr("tabindex","-1"),r(o._contentClass).addClass("fl-builder-content-editing"),this.showMainToolbar(),e.preventDefault()},onClickPageBuilderToolbarLink:function(e){o.triggerHook("restartEditingSession"),e.preventDefault()},onPublish:function(){this.$wpAdminBar.find("#wp-admin-bar-fl-builder-frontend-edit-link > a span").css("color","#6bc373")},onPublishCacheClear:function(){o.ajax({action:"clear_cache_for_layout"},function(e){console.log(e)})},hide:function(){r("html").hasClass("fl-builder-edit")&&(o._unbindEvents(),o._destroyOverlayEvents(),o._removeAllOverlays(),r("html").removeClass("fl-builder-edit"),r("body").removeClass("admin-bar"),this.hideMainToolbar(),o.ContentPanel.hide(),FLBuilderLayout.init(),o.triggerHook("didHideEditingUI"))},show:function(){r("html").hasClass("fl-builder-edit")||(o._rebindEvents(),o._bindOverlayEvents(),this.showMainToolbar(),FLBuilderResponsiveEditing._switchTo("default"),r("html").addClass("fl-builder-edit"),r("body").addClass("admin-bar"),o.triggerHook("didShowEditingUI"))},beginPreview:function(){o._triggerSettingsSave(!1,!0)&&(this.isPreviewing=!0,this.hide(),r("html").addClass("fl-builder-preview"),r("html, body").removeClass("fl-builder-edit"),o._removeEmptyRowAndColHighlights(),o._removeColHighlightGuides(),o.triggerHook("didBeginPreview"),FLBuilderResponsivePreview.enter())},endPreview:function(){this.isPreviewing=!1,this.show(),o._highlightEmptyCols(),FLBuilderResponsivePreview.exit(),r("html").removeClass("fl-builder-preview"),r("html, body").addClass("fl-builder-edit")},togglePreview:function(){this.isPreviewing?this.endPreview():this.beginPreview()},hideMainToolbar:function(){this.$mainToolbar.addClass("is-hidden"),r("html").removeClass("fl-builder-is-showing-toolbar")},showMainToolbar:function(){this.unmuteToolbar(),this.$mainToolbar.removeClass("is-hidden"),r("html").addClass("fl-builder-is-showing-toolbar")},onDeviceIconClick:function(e){e=r(e.target).data("mode");FLBuilderResponsivePreview.switchTo(e),FLBuilderResponsivePreview._showSize(e)},muteToolbar:function(){this.$mainToolbarContent.addClass("is-muted"),o._hideTipTips()},unmuteToolbar:function(){this.$mainToolbarContent.removeClass("is-muted")}},l={isEditing:!0,init:function(){history.pushState&&(o.addHook("endEditingSession",this.onLeaveBuilder.bind(this)),o.addHook("restartEditingSession",this.onEnterBuilder.bind(this)))},onEnterBuilder:function(){history.replaceState({},document.title,FLBuilderConfig.editUrl);const e=FL.Builder.data.getSystemActions();e.setIsEditing(!0),this.isEditing=!0},onLeaveBuilder:function(){history.replaceState({},document.title,FLBuilderConfig.url);const e=FL.Builder.data.getSystemActions();e.setIsEditing(!1),this.isEditing=!1}},n={$row:null,$rowContent:null,row:null,drag:{},init:function(){var e;this.userCanResize()&&((e=r(o._contentClass)).on("mouseenter touchstart",".fl-row",this.onDragHandleHover.bind(this)),e.on("mousedown touchstart",".fl-block-row-resize",this.onDragHandleDown.bind(this)))},userCanResize:function(){return FLBuilderConfig.rowResize.userCanResizeRows},onDragHandleHover:function(e){var t,i,l,o,n,s;this.drag.isDragging||(t=this,i=r(e.target).closest(".fl-row"),l=i.data("node"),o=r(".fl-builder-row-settings[data-node="+l+"]"),n=o.find("[name=max_content_width_unit]"),s="px",t.onSettingsReady(l,function(e){n.length?s=n.length:void 0!==e&&(s=e.max_content_width_unit),t.$row=i,t.$rowContent=t.$row.find(".fl-row-content"),t.row={node:l,form:o,unit:s,isFixedWidth:t.$row.hasClass("fl-row-fixed-width"),parentWidth:("vw"===s?r(window):t.$row.parent()).width()},t.drag={edge:null,isDragging:!1,originalPosition:null,originalWidth:null,calculatedWidth:null,operation:null},t.row.isFixedWidth?t.drag.originalWidth=t.$row.width():t.drag.originalWidth=t.$rowContent.width(),t.dragInit()}))},onSettingsReady:function(e,t){var i=void 0!==FLBuilderSettingsConfig.nodes?FLBuilderSettingsConfig.nodes:null;null!==i&&void 0!==i[e]?(t(i[e]),null!=n._mouseEnterTimeout&&(clearTimeout(n._mouseEnterTimeout),n._mouseEnterTimeout=null)):(clearTimeout(n._mouseEnterTimeout),n._mouseEnterTimeout=setTimeout(this.onSettingsReady.bind(this),350,e,t))},onDragHandleDown:function(){r("body").addClass("fl-builder-row-resizing"),null!=n._mouseEnterTimeout&&(clearTimeout(n._mouseEnterTimeout),n._mouseEnterTimeout=null)},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(e,t){var i=r("body"),t=r(t.helper);this.drag.isDragging=!0,this.row.isFixedWidth?this.drag.originalWidth=this.$row.width():this.drag.originalWidth=this.$rowContent.width(),t.hasClass("fl-block-col-resize-e")&&(this.drag.edge="e",this.$feedback=t.find(".fl-block-col-resize-feedback-left")),t.hasClass("fl-block-col-resize-w")&&(this.drag.edge="w",this.$feedback=t.find(".fl-block-col-resize-feedback-right")),i.addClass("fl-builder-row-resizing"),o._colResizing=!0,o._destroyOverlayEvents(),o._closePanel()},dragging:function(e,t){var i=t.position.left,t=t.originalPosition.left,l=this.drag.originalWidth,o=this.drag.edge,n=FLBuilderConfig.rowResize.minAllowedWidth,s=FLBuilderConfig.rowResize.maxAllowedWidth;t!==i&&(FLBuilderConfig.isRtl&&(o="w"==o?"e":"w"),this.drag.operation=i<t?"w"===o?"+":"-":"e"===o?"+":"-",o=Math.abs(t-i),"+"===this.drag.operation?this.drag.calculatedWidth=l+2*o:this.drag.calculatedWidth=l-2*o,!1!==n&&this.drag.calculatedWidth<n&&(this.drag.calculatedWidth=n),!1!==s&&this.drag.calculatedWidth>s&&(this.drag.calculatedWidth=s),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),requestAnimationFrame(()=>{const e=FL.Builder.data.getLayoutActions();e.resizeRowContent(this.row.node,this.drag.calculatedWidth,!1)}))},dragStop:function(e,t){this.drag.isDragging=!1,_.isUndefined(this.$feedback)||this.$feedback.hide();const i=FL.Builder.data.getLayoutActions();i.resizeRowContent(this.row.node,this.drag.calculatedWidth),o._bindOverlayEvents(),r("body").removeClass("fl-builder-row-resizing"),r(".fl-block-overlay").each(function(){o._buildOverlayOverflowMenu(r(this))}),setTimeout(function(){o._colResizing=!1},50),o.triggerHook("didResizeRow",{rowId:this.row.node,rowWidth:this.drag.calculatedWidth})}},s={templateName:"fl-toolbar",init:function(){this.template=wp.template(this.templateName),this.render(),this.initTipTips(),this.$el.find(".fl-builder-content-panel-button").on("click",o._togglePanel),this.$el.find(".fl-builder-buy-button").on("click",o._upgradeClicked),this.$el.find(".fl-builder-upgrade-button").on("click",o._upgradeClicked),this.$el.find("#fl-builder-toggle-notifications").on("click",this.onNotificationsButtonClicked.bind(this)),o.addHook("notificationsLoaded",this.onNotificationsLoaded.bind(this))},render:function(e){e=r(this.template(e));this.$el=e,this.el=e.get(0),i.$mainToolbar=this.$el,r("body").prepend(e),r("html").addClass("fl-builder-is-showing-toolbar")},initTipTips:function(){r(".fl-builder--saving-indicator").tipTip({defaultPosition:"bottom",edgeOffset:14}),r(".fl-builder-publish-actions .fl-builder-button-group .fl-builder-button").tipTip({defaultPosition:"bottom",edgeOffset:6})},onNotificationsButtonClicked:function(){o.triggerHook("toggleNotifications")},onNotificationsLoaded:function(){r("body").removeClass("fl-builder-has-new-notifications");o.ajax({action:"fl_builder_notifications",read:!0})}};r(function(){o.ContentPanel.init(),FLBuilderConfig.simpleUi||o.MainMenu.init(),FLBuilderConfig.showToolbar?(s.init(),o.ContentPanel.alignPanelArrow()):r("html").addClass("fl-builder-no-toolbar"),e.init(),i.init(),l.init(),n.init(),t.init(),o.triggerHook("didInitUI")})}(jQuery,FLBuilder),!function(o,n){var s=FLExtendableObject.create({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"),this.isShowing=!0},hide:function(){this.$el.removeClass("is-showing"),this.isShowing=!1},transitionIn:function(e){requestAnimationFrame(this.show.bind(this))},transitionOut:function(e){this.hide()}}),e=FLExtendableObject.create({templateName:"fl-main-menu-panel",template:null,menu:null,views:{},viewNavigationStack:[],isShowing:!1,shouldShowTabs:!1,init:function(){for(var e in this.template=wp.template(this.templateName),o("body").prepend(this.template(this)),this.$el=o(".fl-builder--main-menu-panel"),this.$el.find(".fl-builder--main-menu-panel-views").html(""),FLBuilderConfig.mainMenu)this.renderPanel(e);o("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=o(".fl-builder-bar-title"),o("body").on("click",".fl-builder-bar-title",this.toggle.bind(this));var t=this.hide.bind(this);n.addHook("didShowPublishActions",t),n.addHook("didBeginSearch",t),n.addHook("didBeginPreview",t),n.addHook("didShowContentPanel",t),n.addHook("endEditingSession",t),n.addHook("didFocusSearchBox",t),n.addHook("didEnterRevisionPreview",t),n.addHook("didFailSettingsSave",t),n.addHook("showKeyboardShortcuts",t),this.$mask=o(".fl-builder--main-menu-panel-mask"),this.$mask.on("click",t),i.init(),l.init()},renderPanel:function(e){var t,i=this.views[e],l=FLBuilderConfig.mainMenu[e];l.handle=e,(l=s.create(l)).init(),t=o(l.render()),l.$el=t,o(".fl-builder--main-menu-panel-views").append(t),l.bindEvents(),l.$el.find(".fl-builder--menu-item").on("click",this.onItemClick.bind(this)),void 0!==i&&(i.$el.remove(),i.isShowing&&(this.currentView=l).show()),l.isRootView&&(this.rootView=l,this.currentView=l),this.views[e]=l},show:function(){this.isShowing||(this.$el.addClass("is-showing"),this.$barTitle.addClass("is-showing-menu"),this.currentView.transitionIn(),this.isShowing=!0,this.$mask.show(),n.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(e){var t=o(e.currentTarget);switch(t.data("type")){case"view":var i=t.data("view");this.goToView(i);break;case"event":i=t.data("event");n.triggerHook(i,t)}},goToView:function(e){var t=this.currentView,e=this.views[e];t.transitionOut(),e.transitionIn(),this.currentView=e,this.viewNavigationStack.push(t)},goToPreviousView:function(){var e=this.currentView,t=this.viewNavigationStack.pop();e.transitionOut(!0),t.transitionIn(!0),this.currentView=t,o(".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=(n.MainMenu=e,{init:function(){var e;n.addHook("saveTemplate",this.saveTemplate.bind(this)),n.addHook("saveCoreTemplate",this.saveCoreTemplate.bind(this)),n.addHook("duplicateLayout",this.duplicateLayout.bind(this)),n.addHook("showLayoutSettings",this.showLayoutSettings.bind(this)),n.addHook("showGlobalSettings",this.showGlobalSettings.bind(this)),n.addHook("toggleUISkin",this.toggleUISkin.bind(this)),n.addHook("clearLayoutCache",this.clearLayoutCache.bind(this)),n.addHook("launchThemerLayouts",this.launchThemerLayouts.bind(this)),"FL"in window&&"Builder"in FL&&(e=FL.Builder.data.getSystemActions(),n.addHook("showKeyboardShortcuts",function(){e.setShouldShowShortcuts(!0)}))},saveTemplate:function(){n._saveUserTemplateClicked(),e.hide()},saveCoreTemplate:function(){FLBuilderCoreTemplatesAdmin._saveClicked(),e.hide()},duplicateLayout:function(){n._duplicateLayoutClicked(),e.hide()},showGlobalSettings:function(){n._globalSettingsClicked(),e.hide()},showLayoutSettings:function(){n._layoutSettingsClicked(),e.hide()},clearLayoutCache:function(){n.ajax({action:"clear_cache"},function(){location.href=FLBuilderConfig.editUrl}),n.showAjaxLoader(),e.hide()},toggleUISkin:function(e){o('a[data-event="toggleUISkin"]');var t,i,l=o("body");l.hasClass("fl-builder-ui-skin--light")&&(t="light",i="dark"),l.hasClass("fl-builder-ui-skin--dark")&&(t="dark",i="light"),l.removeClass("fl-builder-ui-skin--"+t).addClass("fl-builder-ui-skin--"+i),l.removeClass("fluid-color-scheme-"+t).addClass("fluid-color-scheme-"+i),"Builder"in FL&&"data"in FL.Builder&&FL.Builder.data.getSystemActions().setColorScheme(i),n.ajax({action:"save_ui_skin",skin_name:i})},launchThemerLayouts:function(){FLBuilderConfig.lite?n._showProMessage("Themer Layouts"):window.open(FLBuilderConfig.themerLayoutsUrl),e.hide()}}),l={init:function(){n.addHook("beginTour",this.onStartTourClicked.bind(this))},onStartTourClicked:function(){FLBuilderTour.start(),e.hide()}}}(jQuery,FLBuilder),!function(n,o){var s=FLExtendableObject.create({handle:"",name:"",panel:null,shouldShowTabItem:!0,isShowing:!1,views:{},activeView:null,defaultView:null,categorySelector:null,init:function(e){this.categorySelector=i.create({handle:"selector-"+this.handle,tab:this,items:[]}),this.categorySelector.init(),n(this.categorySelector).on("categorySelected",this.onViewSelected.bind(this));var t;e.views;this.initViews(e.views),0===Object.keys(this.views).length&&this.addView(t={handle:"noViews",name:"No Views",templateName:"fl-content-panel-no-view"}),this.activeView||(e=Object.keys(this.views)[0],t=this.views[e],this.activeView=t),this.defaultView=this.activeView,n(this.panel).on("afterRender",this.renderView.bind(this,this.activeView)),n(this.panel).on("onShow onShowTab",this.initScroller.bind(this)),o.addHook("contentItemsChanged",this.onLibraryDataChanged.bind(this))},initViews:function(e){for(var t in e){t=e[t];this.categorySelector.addItem(t),"separator"!==t.type&&this.addView(t)}},addView:function(e){var t=l;switch(this.handle){case"modules":t=r;break;case"rows":t=a;break;case"templates":t=d;break;case"saved":t=u;break;default:t=l}var e=(t=_.isNull(this.viewController)||_.isUndefined(this.viewController)?t:window[this.viewController]).create(e),i=e.handle;e.init(),(this.views[i]=e).isShowing&&(this.activeView=e)},renderView:function(e){var t;this.$el=this.panel.$el.find('.fl-builder--panel-view[data-tab="'+this.handle+'"]'),e=_.isObject(e)?e:this.views[e],_.isObject(e)&&_.isFunction(e.render)&&(t=e.render(),this.$el.find(".fl-nanoscroller-content").html(t),this.activeView=e,o._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(){n(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,t=this.panel.$groupSelect,i=this.panel.$el.find(".fl-builder-panel-search");this.isSearchEnabled?i.show():i.hide(),1<Object.keys(this.views).length&&!_.isUndefined(this.categorySelector)?(e=this.categorySelector.render(),this.panel.$el.find(".fl-builder-content-group-select"),t.html(e),t.show(),this.panel.$el.removeClass("single-view")):(t.hide(),i.hide(),this.panel.$el.addClass("single-view"))},onViewSelected:function(e,t){this.renderView(t),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),n(this).on("afterRender",this.bindEvents.bind(this)),n(this).trigger("afterInit")},filterTemplateData:function(e){return _.isNull(this.query)||_.isUndefined(this.query)||(e.queryResults=o.Search.byQuery(this.query)),e},render:function(){n(this).trigger("beforeRender");var e=this.filterTemplateData(this),e=n(this.template(e));return this.$el=e,n(this).trigger("afterRender"),e},bindEvents:function(){},transitionIn:function(){},transitionOut:function(){}}),r=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")}}),a=l.create({templateName:"fl-content-panel-row-templates-view",bindEvents:function(){this.$items=this.$el.find(".fl-builder-block, .fl-builder-blocks-section-title")}}),d=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=n(".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(e){var e=n(e.currentTarget),t=e.val(),e=e.siblings("button");""!==t?e.show():e.hide()},onSaveButtonClick:function(e){var e=n(e.currentTarget),t=e.siblings('input[name="template-name"]').val(),e=e.siblings('input[name="template-category"]').val();""!==t&&o.ajax({action:"save_user_template",settings:{name:t,category:e}},o._saveUserTemplateSettingsComplete)},onTemplateClick:function(e){var e=n(e.currentTarget),t=e.data("id"),i=e.data("type"),l=e.data("premium");FLBuilderConfig.lite&&l?o._showProMessage(e.find(".fl-builder--template-name").text()):o._requestTemplateInsert(t,i)}}),u=l.create({templateName:"fl-content-panel-saved-view",filterTemplateData:function(e){return e.queryResults=o.Search.byQuery({kind:"template",type:"user",content:["module","column","row"]}),e}}),i=FLExtendableObject.create({templateName:"fl-content-panel-category-selector",template:null,tab:null,isOpen:!1,items:{},init:function(){this.template=wp.template(this.templateName),n(this).on("afterRender",this.bindEvents.bind(this)),n(this.tab.panel).on("didShowSearchControls",this.close.bind(this))},render:function(){this.close();var e=n(this.template(this));return this.$el=e,n(this).trigger("afterRender"),e},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 t=_.isUndefined(e.handle)?_.uniqueId("sep_"):e.handle;this.items[t]=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(e){var t,e=n(e.target),i=e.data("view");e.hasClass("fl-has-children")?((t=n('[data-parent="'+i+'"]')).is(":visible")?(this.items[i].hasChildrenOpen=!1,e.removeClass("fl-has-children-showing"),t.hide()):(this.items[i].hasChildrenOpen=!0,e.addClass("fl-has-children-showing"),t.show()),e.blur()):n(this).trigger("categorySelected",i)}});o.ContentPanel=FLExtendableObject.create({templateName:"fl-content-panel-base",template:null,tabs:{},activeTab:null,isShowing:!1,init:function(){if(FLBuilderConfig.panelData){var e,t=FLBuilderConfig.panelData.tabs;for(e in t){var i=t[e],l=s.create(i);l.panel=this,l.views={},l.init(i),(this.tabs[e]=l).isShowing&&(this.activeTab=l),this.activeTab||(i=Object.keys(this.tabs)[0],(l=this.tabs[i]).isShowing=!0,this.activeTab=l)}this.template=wp.template(this.templateName),this.render(),this.renderSearchResults=wp.template("fl-search-results-panel"),this.renderNoResults=wp.template("fl-search-no-results"),o.triggerHook("contentPanelDidInit")}},render:function(){n("body").prepend(this.template(this)),this.$el=n(".fl-builder--content-library-panel"),this.bindEvents(),this.$groupSelect=this.$el.find(".fl-builder-content-group-select"),n(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"),o.addHook("showContentPanel",this.show.bind(this)),o.addHook("showModules",this.show.bind(this,"modules")),o.addHook("showRows",this.show.bind(this,"rows")),o.addHook("showTemplates",this.show.bind(this,"templates")),o.addHook("showSaved",this.show.bind(this,"saved")),o.addHook("showSearch",this.goToSearch.bind(this));var e=this.hide.bind(this),e=(o.addHook("hideContentPanel",e),o.addHook("didShowLightbox",e),o.addHook("didShowPublishActions",e),o.addHook("didBeginSearch",e),o.addHook("didInitDrag",e),o.addHook("didOpenMainMenu",e),o.addHook("didApplyTemplate",e),this.toggleShowHide.bind(this));o.addHook("toggleContentPanel",e),o.addHook("didStopDrag",this.hideSearchControls.bind(this))},alignPanelArrow:function(){var e,t=this.$el,i=this.$el.find(".fl-builder--panel-arrow"),l=n(".fl-builder-content-panel-button"),o=this.$el.css("animation-duration");0!=l.length&&(this.$el.css("animation-duration","0s"),this.show(),t=t[0].getBoundingClientRect(),e=i[0].getBoundingClientRect(),this.hide(),this.$el.css("animation-duration",o),o=(l=(o=l[0].getBoundingClientRect()).x+o.width/2)<t.x?20:l-t.x-e.width/2,i.css({right:"auto",left:o+"px"}))},show:function(e){if("module"!==FLBuilderConfig.userTemplateType&&!FLBuilderConfig.simpleUi&&(o.triggerHook("willShowContentPanel"),void 0!==e&&this.showTab(e),!this.isShowing&&o._triggerSettingsSave(!1,!0)&&(n("body").addClass("fl-builder-content-panel-is-showing"),this.isShowing=!0,n(this).trigger("onShow"),o.triggerHook("didShowContentPanel"),"Builder"in FL&&"data"in FL.Builder))){const t=FL.Builder.data.getSystemActions();t.hideCurrentPanel()}},hide:function(){!this.isShowing||this.$el.hasClass("fl-builder-ui-pinned")||(n("body").removeClass("fl-builder-content-panel-is-showing"),this.isShowing=!1,n(this).trigger("onHide"),o.triggerHook("didHideContentPanel"))},toggleShowHide:function(){this.isShowing?this.hide():this.show()},showTab:function(e){e=this.tabs[e];_.isObject(e)&&(_.isObject(this.activeTab)&&(this.activeTab.hide(),this.$tabs.filter(".is-showing").removeClass("is-showing")),this.hideSearchControls(),e.show(),this.$tabs.filter('[data-tab="'+e.handle+'"]').addClass("is-showing"),this.activeTab=e,n(this).trigger("onShowTab"))},goToSearch:function(){this.show("modules"),this.$el.find(".fl-builder-toggle-panel-search").trigger("click")},onTabItemMouseUp:function(e){n(e.currentTarget).blur()},onTabItemClick:function(e){e=n(e.target).data("tab");this.showTab(e)},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(),n(".fl-builder--selector-display-label").attr("tabindex",-1),this.$searchBtn.attr("tabindex",-1),n(this).trigger("didShowSearchControls")},hideSearchControls:function(){this.$search.removeClass("is-showing-input"),this.clearSearchInput(),this.hideSearchResults(),n(".fl-builder--selector-display-label").attr("tabindex",null),this.$searchBtn.attr("tabindex",null)},onSearchTermChanged:function(e){var t=this.$searchInput.val();""!==t&&""!=(t=o.Search.byTerm(t)).term?this.showSearchResults(t):this.hideSearchResults()},clearSearchInput:function(){this.$searchInput.val(""),this.hideSearchResults()},showSearchResults:function(e){var t;0<e.total?(t=n(this.renderSearchResults(e)),this.$searchPanel.html(t),o._initSortables()):(t=n(this.renderNoResults(e)),this.$searchPanel.html(t)),n("body").addClass("fl-builder-search-results-panel-is-showing")},hideSearchResults:function(){n("body").removeClass("fl-builder-search-results-panel-is-showing")}})}(jQuery,FLBuilder),!function(c){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(e,t){var i=FLBuilderSettingsConfig.forms,l=FLBuilderSettingsConfig.modules;if(e.nodeId&&!e.settings)this.loadNodeSettings(e,t);else if(t=void 0===t?function(){}:t,(e=c.extend({type:"general",id:null,nodeId:null,className:"",attrs:"",title:"",badges:[],tabs:[],activeTab:null,buttons:[],settings:{},legacy:null,rules:null,preview:null,helper:null,messages:null},e)).id){if("general"===e.type&&void 0!==i[e.id])e=c.extend(!0,e,i[e.id]);else{if("module"!==e.type||void 0===l[e.id])return;e=c.extend(!0,e,l[e.id])}this.config=e,this.renderLightbox(e)&&(e.legacy||!this.renderLegacySettings(e,t)?this.renderComplete(e,t):this.showLightboxLoader());i=FL.Builder.data.getSystemState().currentPanel;if(null!==i&&"outline"!==i){const o=FL.Builder.data.getSystemActions();o.hideCurrentPanel()}}},cacheCurrentSettings:function(){var e=c(".fl-builder-settings:visible");e.closest(".fl-lightbox-wrap[data-parent]").length||(this.settings=FLBuilder._getSettingsForChangedCheck(this.config.nodeId,e),FLBuilder.preview&&(FLBuilder.preview._savedSettings=this.settings))},loadNodeSettings:function(t,i){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"get_node_settings",node_id:t.nodeId},function(e){t.settings=FLBuilder._jsonParse(e),FLBuilderSettingsConfig.nodes[t.nodeId]=t.settings,FLBuilderSettingsForms.render(t,i),FLBuilder.hideAjaxLoader()})},renderLightbox:function(e){var t=wp.template("fl-builder-settings"),i=FLBuilder._lightbox._node.find("form.fl-builder-settings"),l=(c(".fl-lightbox-wrap[data-parent]"),localStorage.getItem("fl-builder-settings-tab"));if(e.nodeId&&e.nodeId===i.data("node")&&!e.lightbox)return FLBuilder._focusFirstSettingsControl(),!1;if(e.hide)return!0;if(l)for(var o in e.tabs)o===l.replace("fl-builder-settings-tab-","")&&(e.activeTab=o);if(e.activeTab||(e.activeTab=Object.keys(e.tabs).shift()),e.lightbox)e.lightbox.setContent(t(e));else{if(!FLBuilder._triggerSettingsSave(!0,!0))return!1;FLBuilder.preview&&FLBuilder.preview.cancel(),FLBuilder._closePanel(),FLBuilder._showLightbox(t(e))}return!0},renderComplete:function(e,t){setTimeout(function(){e.legacy&&this.renderLegacySettingsComplete(e.legacy),t(),FLBuilder._initSettingsForms(),e.rules&&FLBuilder._initSettingsValidation(e.rules,e.messages),e.preview&&(FLBuilder.preview=new FLBuilderPreview(e.preview)),e.helper&&e.helper.init(),this.cacheCurrentSettings()}.bind(this),1)},renderFields:function(e,t){var i,l,o=wp.template("fl-builder-settings-row"),n="",s=null,r=null,a=null,d=["align","border","dimension","unit","photo","select","typography"],t=t||this.config.settings,u=FLBuilderConfig.global;for(s in e)l=!!(i=e[s]).multiple,supportsResponsive=-1<c.inArray(i.type,d),r=_.isUndefined(t[s])?"":t[s],i.type&&(_.isUndefined(t[s])&&i.default&&(r=i.default),a=i.responsive&&u.responsive_enabled&&!l&&supportsResponsive?i.responsive:null,n+=o({field:i,name:s,rootName:s,value:r,preview:JSON.stringify(i.preview||{type:"refresh"}),responsive:a,rowClass:i.row_class?" "+i.row_class:"",isMultiple:l,supportsMultiple:"editor"!==i.type&&"service"!==i.type,settings:t,globalSettings:u,template:c("#tmpl-fl-builder-field-"+i.type)}));return n},renderField:function(e){return wp.template("fl-builder-field")(e)},renderSectionTemplate:function(e,t){return wp.template(e.template.id)({section:e,settings:t})},renderTabTemplate:function(e,t){return wp.template(e.template.id)({tab:e,settings:t})},renderLegacySettings:function(t,i){var e=c(".fl-builder-settings:visible"),l=null,o=!1,n={tabs:[],sections:[],fields:[],settings:null,node_id:null};return e.find(".fl-legacy-field").each(function(){l=c(this),n.fields.push(l.attr("data-field")),FLBuilderSettingsForms.showFieldLoader(l),o=!0}),e.find(".fl-legacy-settings-section").each(function(){l=c(this),n.sections.push({tab:l.attr("data-tab"),section:l.attr("data-section")}),o=!0}),e.find(".fl-legacy-settings-tab").each(function(){l=c(this),n.tabs.push(l.attr("data-tab")),o=!0}),e.attr("data-node")?n.node_id=e.attr("data-node"):n.settings=FLBuilder._getOriginalSettings(e,!0),this.legacyXhr&&(this.legacyXhr.abort(),this.legacyXhr=null),this.legacyXhr=FLBuilder.ajax(c.extend(this.getLegacyVars(),{action:"render_legacy_settings",data:n,form:e.attr("data-form-id"),group:e.attr("data-form-group"),lightbox:e.closest(".fl-builder-lightbox").attr("data-instance-id")}),function(e){FLBuilderSettingsForms.renderLegacySettingsComplete(e),o&&FLBuilderSettingsForms.renderComplete(t,i),FLBuilderSettingsForms.hideLightboxLoader()}),o},renderLegacySettingsComplete:function(e){var i="object"==typeof e?e:FLBuilder._jsonParse(e),e=null,t=null,l="",o=null,n=null;if(i.lightbox?t=(e=c(".fl-builder-lightbox[data-instance-id="+i.lightbox+"]")).length?e.find(".fl-builder-settings"):null:e=(t=c(".fl-builder-settings:visible")).closest(".fl-builder-lightbox"),t&&t.length){for(l in i.fields)(o=c("#fl-field-"+l).attr("id","")).after(i.fields[l]).remove();for(l in i.extras)o=c("#fl-field-"+l).find(".fl-field-control-wrapper"),i.extras[l].multiple?o.each(function(e,t){e in i.extras[l].before&&""!=i.extras[l].before[e]&&c(this).prepend('<div class="fl-form-field-before">'+i.extras[l].before[e]+"</div>"),e in i.extras[l].after&&""!=i.extras[l].after[e]&&c(this).append('<div class="fl-form-field-after">'+i.extras[l].after[e]+"</div>")}):(""!=i.extras[l].before&&o.prepend('<div class="fl-form-field-before">'+i.extras[l].before+"</div>"),""!=i.extras[l].after&&o.append('<div class="fl-form-field-after">'+i.extras[l].after+"</div>"));for(n in i.sections)for(l in i.sections[n])c("#fl-builder-settings-section-"+l).html(i.sections[n][l]);for(l in i.tabs)(n=c("#fl-builder-settings-tab-"+l)).html(i.tabs[l]);e.data("parent")||(this.settings=FLBuilder._getSettingsForChangedCheck(this.config.nodeId,t),FLBuilder.preview&&(this.settings=c.extend(this.settings,FLBuilder.preview._savedSettings),FLBuilder.preview._savedSettings=this.settings)),_.isUndefined(window.FLThemeBuilderFieldConnections)||FLThemeBuilderFieldConnections._initSettingsForms(),this.legacyXhr=null}},getLegacyVars:function(){var e=c(".fl-builder-settings:visible"),t=e.closest(".fl-builder-lightbox").attr("data-parent"),i={};return t&&(e=(t=c(".fl-builder-lightbox[data-instance-id="+t+"]")).find("form.fl-builder-settings"),t=FLBuilder._getSettings(e),(e=e.attr("data-node"))&&(i.node_id=e,i.node_settings=t)),i},settingsHaveChanged:function(){var e=FLBuilder._lightbox._node.find("form.fl-builder-settings"),e=FLBuilder._getSettings(e);return!!this.settings&&JSON.stringify(this.settings)!=JSON.stringify(e)},closeOnDeleteNode:function(e){var t=c(".fl-builder-settings[data-node]"),i=FLBuilder._contentClass+" .fl-node-"+t.data("node");t.length&&!c(i).length&&FLLightbox.closeAll()},showLightboxLoader:function(){c(".fl-builder-settings:visible").append('<div class="fl-builder-loading"></div>')},hideLightboxLoader:function(e){c(".fl-builder-settings:visible .fl-builder-loading").remove()},showFieldLoader:function(e){e.closest(".fl-field-control").find(".fl-field-control-wrapper").hide().after('<div class="fl-field-loader">'+FLBuilderStrings.fieldLoading+"</div>")},hideFieldLoader:function(e){var t=e.closest(".fl-field");e.closest(".fl-field-control").find(".fl-field-control-wrapper").show(),t.find(".fl-field-loader").remove()}},FLBuilderSettingsConfig="undefined"==typeof FLBuilderSettingsConfig?{}:FLBuilderSettingsConfig,c.extend(FLBuilderSettingsConfig,{init:function(){FLBuilder.addHook("didSaveNodeSettings",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didSaveNodeSettingsComplete",this.updateOnNodeEvent.bind(this)),FLBuilder.addHook("didSaveLayoutSettingsComplete",this.updateOnSaveLayoutSettings.bind(this)),FLBuilder.addHook("didSaveGlobalSettingsComplete",this.updateOnSaveGlobalSettings.bind(this)),FLBuilder.addHook("didSaveGlobalSettingsComplete",this.reload),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)),FLBuilder.addHook("didRestoreHistoryComplete",this.updateOnHistoryRestored.bind(this))},reload:function(){var e=FLBuilderConfig.editUrl+"&fl_builder_load_settings_config=core";c('script[src*="fl_builder_load_settings_config=core"]').remove(),c("head").append('<script src="'+e+'"><\/script>')},updateOnSaveGlobalSettings:function(e,t){this.settings.global=t,FLBuilderConfig.global=t},updateOnSaveLayoutSettings:function(e,t){this.settings.layout=t},updateOnNodeEvent:function(){var e=arguments[0];-1<e.namespace.indexOf("didAdd")?this.addNode("object"==typeof arguments[1]?arguments[1].nodeId:arguments[1]):-1<e.namespace.indexOf("didSaveNodeSettings")?this.updateNode(arguments[1].nodeId,arguments[1].settings):-1<e.namespace.indexOf("didDelete")?this.deleteNodes("object"==typeof arguments[1]?arguments[1].nodeId:arguments[1]):-1<e.namespace.indexOf("didDuplicate")&&this.duplicateNode(arguments[1].oldNodeId,arguments[1].newNodeId)},updateOnRowResize:function(e,t){this.nodes[t.rowId].max_content_width=t.rowWidth},updateOnResetRowWidth:function(e,t){this.nodes[t].max_content_width=""},updateOnColumnResize:function(e,t){this.nodes[t.colId].size=t.colWidth,this.nodes[t.siblingId].size=t.siblingWidth},updateOnResetColumnWidths:function(e,t){var i=this;t.cols.each(function(){var e=c(this),t=e.attr("data-node");i.nodes[t]&&(i.nodes[t].size=parseFloat(e[0].style.width))})},updateOnApplyTemplate:function(e,t){this.nodes=t.nodes,this.attachments=t.attachments},updateOnHistoryRestored:function(e,t){this.nodes=t.config.nodes,this.attachments=t.config.attachments,this.settings.layout=t.settings.layout,this.settings.global=t.settings.global,FLBuilderConfig.global=t.settings.global},addNode:function(e,t){var i=c(".fl-node-"+e),l=i.hasClass("fl-row"),o=i.hasClass("fl-col"),n=i.hasClass("fl-col-group"),s=i.hasClass("fl-module"),r=this;this.nodes[e]||(t||(l?t=c.extend({},this.defaults.row):o?t=c.extend({},this.defaults.column):s&&(t=c.extend({},this.defaults.modules[i.attr("data-type")])),l||n?i.find(".fl-col").each(function(){var e=c(this),t=c.extend({},r.defaults.column);t.size=parseFloat(e[0].style.width),r.addNode(e.attr("data-node"),t)}):s&&(r.addNode(i.closest(".fl-row").attr("data-node")),r.addNode(i.closest(".fl-col").attr("data-node")),r.updateOnResetColumnWidths(null,{cols:i.closest(".fl-col-group").find("> .fl-col")}))),t&&(this.nodes[e]=t))},updateNode:function(e,i){var t=c(".fl-node-"+e),l=this;t.hasClass("fl-col")&&t.closest(".fl-col-group").find("> .fl-col").each(function(){var e=c(this),t=e.attr("data-node");l.nodes[t].size=parseFloat(e[0].style.width),l.nodes[t].equal_height=i.equal_height,l.nodes[t].content_alignment=i.content_alignment,l.nodes[t].responsive_order=i.responsive_order}),this.nodes[e]=i},duplicateNode:function(t,i){var e=c(".fl-node-"+i).find("[data-node]"),l=c(".fl-node-"+t).find("[data-node]"),o=this;this.nodes[i]=this.nodes[t],e.each(function(e){t=l.eq(e).attr("data-node"),i=c(this).attr("data-node"),o.nodes[t]&&(o.nodes[i]=o.nodes[t])})},deleteNodes:function(){var e="",t=c(FLBuilder._contentClass).html();if(t)for(e in this.nodes)-1===t.indexOf(e)&&(this.nodes[e]=null,delete this.nodes[e])}}),c(function(){FLBuilderSettingsConfig.init(),FLBuilderSettingsForms.init()})}(jQuery),!function(c){FLBuilderSettingsCopyPaste={init:function(){FLBuilder.addHook("settings-form-init",this.initExportButton),FLBuilder.addHook("settings-form-init",this.initImportButton)},initExportButton:function(){new ClipboardJS("button.module-export-all",{text:function(e){var t=c(".fl-builder-module-settings").data("node"),t=c(".fl-builder-module-settings[data-node="+t+"]"),i=c(".fl-builder-module-settings").data("type"),t=FLBuilder._getSettings(t),i="/// {type:"+i+"} "+(new Date).toDateString()+" ///",l=c("button.module-export-all"),o=l.attr("title");return l.text(FLBuilderStrings.module_import.copied),setTimeout(function(){l.text(o)},1e3),i+"\n"+JSON.stringify(t)}}),new ClipboardJS("button.module-export-style",{text:function(e){var t,i=c(".fl-builder-module-settings").data("node"),l=c(".fl-builder-module-settings[data-node="+i+"]"),i=c(".fl-builder-module-settings").data("type"),o=FLBuilder._getSettings(l),i="/// {type:"+i+"} "+(new Date).toDateString()+" ///",n=c("button.module-export-style"),s=n.attr("title"),r={};for(t in o){var a=l.find('[name="'+t+'"]'),d=l.find('[name*="'+t+'["]'),u=!1;a.length?u=a.closest(".fl-field").data("is-style"):d.length&&(u=d.closest(".fl-field").data("is-style")),u&&(r[t]=o[t])}return n.text(FLBuilderStrings.module_import.copied),setTimeout(function(){n.text(s)},1e3),i+"\n"+JSON.stringify(r)}})},initImportButton:function(){c("button.module-import-apply").click(function(){var e=c(".fl-builder-settings-lightbox .fl-builder-settings"),t=c(".module-import-input").val(),i=t.match(/\/\/\/\s\{type:([_a-z0-9-]+)/i),l=!1,o=c(".fl-builder-module-settings").data("type"),n=c(".fl-builder-settings-lightbox .module-import-error");if(n.hide(),!(l=i&&void 0!==i[1]?i[1]:l)||l!==o)return n.html(FLBuilderStrings.module_import.type).show(),!1;i=t.replace(/\/\/\/.+\/\/\//,"");try{var s=JSON.parse(i)}catch(e){s=!1;return n.html(FLBuilderStrings.module_import.error).show(),!1}if(s){l=e.attr("data-node"),o=c.extend({},FLBuilderSettingsConfig.nodes[l],s);FLBuilderSettingsConfig.nodes[l]=o;const r=FL.Builder.data.getLayoutActions();t=FLBuilder._saveSettingsComplete.bind(this,!0,null);r.updateNodeSettings(l,o,t),FLBuilder.triggerHook("didSaveNodeSettings",{nodeId:l,settings:o}),FLBuilder._lightbox.close()}})}},c(function(){FLBuilderSettingsCopyPaste.init()})}(jQuery),!function(a){var e={minWidth:320,maxWidth:600,minHeight:400,init:function(){this.initPanel(),this.pinOrUnpin(),this.bind()},bind:function(){var e=a(window),t=a("body");e.on("resize",_.throttle(this.windowResize.bind(this),250)),t.on("click",".fl-builder-ui-pinned-collapse",this.collapse),t.on("click",".fl-builder--content-library-panel .fl-builder--tabs",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 a(".fl-builder--content-library-panel").hasClass("fl-builder-ui-pinned")},pin:function(e,t){this.pinPanel(e),this.pinLightboxes(),t&&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 e=a(".fl-builder--content-library-panel"),t=this.isPinned();e.hasClass("fl-builder-ui-pinned-hidden")||(window.innerWidth<=this.maxWidth?(t&&this.unpin(!1),this.disableDragAndResize()):(t||this.restorePosition(),this.enableDragAndResize()))},show:function(){var e=a(".fl-builder--content-library-panel");e.hasClass("fl-builder-ui-pinned-hidden")&&(e.removeClass("fl-builder-ui-pinned-hidden"),e.show(),this.restorePosition())},hide:function(){var e=a("body"),t=a(".fl-builder--content-library-panel");this.isPinned()&&(this.uncollapse(),t.addClass("fl-builder-ui-pinned-hidden"),t.hide(),e.css("margin",""),FLBuilder._resizeLayout())},collapse:function(){var e=a(this).find("i:visible"),t=a("body"),i=e.data("toggle"),e=e.data("position"),l=a(".fl-builder--content-library-panel"),o=l.outerWidth();"hide"===i?(l.css(e,"-"+o+"px"),t.css("margin-"+e,""),t.addClass("fl-builder-ui-pinned-is-collapsed")):(l.css(e,"0px"),t.css("margin-"+e,o+"px"),t.removeClass("fl-builder-ui-pinned-is-collapsed"))},uncollapse:function(){this.isCollapsed()&&a(".fl-builder-ui-pinned-collapse:visible").trigger("click")},isCollapsed:function(){return a("body").hasClass("fl-builder-ui-pinned-is-collapsed")},initPanel:function(){var e=a(".fl-builder--content-library-panel"),t=0==a(".fl-builder-content-panel-button").length?".fl-builder--tabs, .fl-lightbox-header":".fl-builder--tabs";e.draggable({cursor:"move",handle:t,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)}),e.addClass("fl-builder-ui-pinned-container"),e.find(".ui-resizable-e, .ui-resizable-w").hide()},pinPanel:function(e){var t=a(".fl-builder--content-library-panel"),i=t.outerWidth(),l=a("body"),o=a(".fl-responsive-preview, .fl-responsive-preview-mask"),n=a(FLBuilder._contentClass).parentsUntil("body").last();l.addClass("fl-builder-ui-is-pinned fl-builder-ui-is-pinned-"+e),l.addClass("fl-builder-content-panel-is-showing"),l.css("margin-"+e,i+"px"),o.css("margin-"+e,i+"px"),n.addClass("fl-builder-ui-pinned-content-transform"),t.addClass("fl-builder-ui-pinned fl-builder-ui-pinned-"+e),t.find(".ui-resizable-"+("left"===e?"e":"w")).show(),t.on("resize",_.throttle(this.resize.bind(this),250)),t.attr("style",""),FLBuilder.ContentPanel.isShowing=!0,0==a(".fl-builder-content-panel-button").length&&a(".fl-builder-panel-drag-handle").show()},unpinPanel:function(){var e=a(".fl-builder--content-library-panel"),t=e.find(".fl-builder--panel-content .is-showing").data("tab"),i=a("body"),l=a(".fl-responsive-preview, .fl-responsive-preview-mask"),o=a(FLBuilder._contentClass).parentsUntil("body").last();i.css("margin-left",""),i.css("margin-right",""),i.removeClass("fl-builder-ui-is-pinned"),i.removeClass("fl-builder-ui-is-pinned-left"),i.removeClass("fl-builder-ui-is-pinned-right"),l.css("margin-left",""),l.css("margin-right",""),o.removeClass("fl-lightbox-content-transform"),e.removeClass("fl-builder-ui-pinned"),e.removeClass("fl-builder-ui-pinned-left"),e.removeClass("fl-builder-ui-pinned-right"),e.find(".ui-resizable-handle").hide(),e.off("resize"),e.attr("style",""),e.find(".fl-builder--tabs [data-tab="+t+"]").addClass("is-showing")},pinLightboxes:function(){var e=this;a(".fl-lightbox-resizable").each(function(){e.pinLightbox(a(this))}),FLBuilder._reinitEditorFields()},pinLightbox:function(e){var t=a(".fl-builder--content-library-panel"),i=e.closest(".fl-lightbox-wrap");i.closest(".fl-builder-ui-pinned").length||(t.append(i),e.attr("style",""),e.draggable("disable"),e.resizable("disable")),e.is(":visible")&&t.find(".fl-builder--tabs .is-showing").removeClass("is-showing")},pinLightboxOnOpen:function(e,t){t=t._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 e=a(".fl-builder--content-library-panel");tab=null,this.isPinned()&&(tab=e.find(".fl-builder--panel-content .is-showing").data("tab"),e.find(".fl-builder--tabs [data-tab="+tab+"]").addClass("is-showing")),a(".fl-lightbox").removeClass("fl-lightbox-prevent-animation")},unpinLightboxes:function(){var o=a("body"),n=a(".fl-builder--content-library-panel");n.find(".fl-lightbox-wrap").each(function(){var e,t,i=a(this),l=i.find(".fl-lightbox");l.draggable("enable"),l.resizable("enable"),l.find(".ui-resizable-handle").show(),o.append(i),l.is(":visible")?(e=parseInt(n.css("top"))-parseInt(i.css("top"))-parseInt(i.css("padding-top")),t=parseInt(n.css("left"))-parseInt(i.css("padding-left")),i=parseInt(n.css("right"))-parseInt(i.css("padding-right")),l.css("top",(e<0?0:e)+"px"),l.css(FLBuilderConfig.isRtl?"right":"left",(FLBuilderConfig.isRtl?i:t)+"px"),l.addClass("fl-lightbox-prevent-animation"),o.removeClass("fl-builder-content-panel-is-showing"),FLBuilder.ContentPanel.isShowing=!1):l.css({top:"25px",left:"25px"})}),FLBuilder._reinitEditorFields()},closeLightboxOnPanelClick:function(){FLBuilder._triggerSettingsSave(!1,!0)},windowResize:function(){this.pinOrUnpin()},resizeStart:function(){a("body").addClass("fl-builder-resizable-is-resizing"),FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays()},resize:function(){var e=a("body"),t=a(".fl-responsive-preview, .fl-responsive-preview-mask"),i=a(".fl-builder--content-library-panel"),l=i.outerWidth();i.is(":visible")?i.hasClass("fl-builder-ui-pinned-left")?(e.css("margin-left",l+"px"),t.css("margin-left",l+"px")):i.hasClass("fl-builder-ui-pinned-right")&&(e.css("margin-right",l+"px"),t.css("margin-right",l+"px")):e.css("margin","")},resizeStop:function(){a("body").removeClass("fl-builder-resizable-is-resizing"),FLBuilder._bindOverlayEvents(),FLBuilder._resizeLayout(),this.savePosition()},dragStart:function(e,t){var i=a("body"),e=(a(e.target),a(".fl-builder-bar-actions"));a(".fl-lightbox-resizable:visible").length||e.addClass("fl-builder-content-panel-pin-zone"),i.addClass("fl-builder-draggable-is-dragging"),i.append('<div class="fl-builder-ui-pin-zone fl-builder-ui-pin-zone-left"></div>'),i.append('<div class="fl-builder-ui-pin-zone fl-builder-ui-pin-zone-right"></div>'),FLBuilder._destroyOverlayEvents()},drag:function(e,t){var i=a("body"),l=a(".fl-responsive-preview"),o=a(window),l=(l.length?l:o).width(),o=o.scrollTop(),n=a(".fl-builder--content-library-panel").offset().top,s=a(".fl-builder-bar-actions"),r=a(e.target);r.hasClass("fl-builder--content-library-panel")&&(e.clientX<l-75&&n-o<46?s.addClass("fl-builder-content-panel-pin-zone-hover"):s.removeClass("fl-builder-content-panel-pin-zone-hover")),r.hasClass("fl-builder-ui-pinned")?this.unpinPanel():e.clientX<75?i.addClass("fl-builder-ui-show-pin-zone fl-builder-ui-show-pin-zone-left"):e.clientX>l-75?i.addClass("fl-builder-ui-show-pin-zone fl-builder-ui-show-pin-zone-right"):(i.removeClass("fl-builder-ui-show-pin-zone"),i.removeClass("fl-builder-ui-show-pin-zone-left"),i.removeClass("fl-builder-ui-show-pin-zone-right"))},dragStop:function(e,t){a(window);var i=a("body"),l=a(".fl-builder-bar-actions"),o=a(".fl-builder-ui-pin-zone"),n=a(".fl-builder--content-library-panel"),s=a(".fl-lightbox-resizable:visible");a(e.target);i.removeClass("fl-builder-draggable-is-dragging"),l.removeClass("fl-builder-content-panel-pin-zone"),l.removeClass("fl-builder-content-panel-pin-zone-hover"),o.remove(),s.length&&parseInt(s.css("top"))<0&&s.css("top","0"),i.hasClass("fl-builder-ui-show-pin-zone")?(i.hasClass("fl-builder-ui-show-pin-zone-left")?this.pin("left",!0):this.pin("right",!0),i.removeClass("fl-builder-ui-show-pin-zone"),i.removeClass("fl-builder-ui-show-pin-zone-left"),i.removeClass("fl-builder-ui-show-pin-zone-right")):n.find(".fl-lightbox").length?(this.unpin(!0),"module"!==FLBuilderConfig.userTemplateType&&!FLBuilderConfig.simpleUi||n.hide()):(n.attr("style",""),this.savePosition()),FLBuilder._bindOverlayEvents()},disableDragAndResize:function(){var e=a(".fl-builder--content-library-panel"),t=a(".fl-lightbox-resizable");e.draggable("disable"),e.resizable("disable"),t.draggable("disable"),t.resizable("disable")},enableDragAndResize:function(){var e=a(".fl-builder--content-library-panel"),t=a(".fl-lightbox-resizable:not(.fl-lightbox-width-full)");e.draggable("enable"),e.resizable("enable"),this.isPinned()||(t.draggable("enable"),t.resizable("enable"))},savePosition:function(){var e=a(".fl-builder--content-library-panel"),t=a(".fl-lightbox-resizable:visible"),i={pinned:{width:e.outerWidth(),position:null}};e.hasClass("fl-builder-ui-pinned-left")?i.pinned.position="left":e.hasClass("fl-builder-ui-pinned-right")?i.pinned.position="right":t.length&&(i.lightbox={width:t.width(),height:t.height(),top:parseInt(t.css("top"))<0?"0px":t.css("top"),left:t.css("left")}),FLBuilderConfig.userSettings.pinned=i.pinned,i.lightbox&&(FLBuilderConfig.userSettings.lightbox=i.lightbox),FLBuilder.ajax({action:"save_pinned_ui_position",data:i})},restorePosition:function(){var e=a(".fl-builder--content-library-panel"),t=FLBuilderConfig.userSettings.pinned;t&&t.position&&(e.css("width",t.width+"px"),this.pin(t.position,!1),e.css("width",t.width+"px"))}};a(function(){e.init()})}(jQuery),!function(r){var i={init:function(){this.setupMainMenuData(),r(".fl-builder--revision-actions select").on("change",this.selectChanged),r(".fl-cancel-revision-preview").on("click",this.exitPreview.bind(this)),r(".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 e,t,i=FLBuilderConfig.revisions.posts,l=FLBuilderConfig.revisions.authors,o=wp.template("fl-revision-list-item"),n=r(".fl-builder--revision-actions select"),s=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(;s<i.length;s++)e=FLBuilderStrings.revisionDate.replace("%s",i[s].date.diff),e+=" ("+i[s].date.published+")",t=FLBuilderStrings.revisionAuthor.replace("%s",l[i[s].author].name),FLBuilderConfig.mainMenu.revisions.items.push({eventName:"revisionItemClicked",type:"event",label:o({id:i[s].id,date:e,author:t,avatar:l[i[s].author].avatar})}),n.append('<option value="'+i[s].id+'">'+e+"</option>");void 0!==FLBuilder.MainMenu&&FLBuilder.MainMenu.renderPanel("revisions")},refreshItems:function(){FLBuilder.ajax({action:"refresh_revision_items"},this.refreshItemsComplete.bind(this))},refreshItemsComplete:function(e){FLBuilderConfig.revisions=FLBuilder._jsonParse(e),this.setupMainMenuData()},itemClicked:function(e,t){t=r(t).find(".fl-revision-list-item").attr("data-revision-id");FLBuilder._triggerSettingsSave(!1,!0)&&(r(".fl-builder--revision-actions select").val(t),this.preview(t))},selectChanged:function(e){i.preview(r(this).val())},applyClicked:function(e){var t=r(".fl-builder--revision-actions select").val();i.restore(t)},preview:function(e){r(".fl-builder--revision-actions").css("display","flex"),FLBuilder.triggerHook("didEnterRevisionPreview"),FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"render_revision_preview",revision_id:e},this.previewRenderComplete.bind(this))},previewRenderComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays()})},exitPreview:function(){r(".fl-builder--revision-actions").hide(),FLBuilder.triggerHook("didExitRevisionPreview"),FLBuilder._bindOverlayEvents(),FLBuilder._updateLayout()},restore:function(e){r(".fl-builder--revision-actions").hide(),FLBuilder.triggerHook("didExitRevisionPreview"),FLBuilder.showAjaxLoader(),FLBuilder._bindOverlayEvents(),FLBuilder.ajax({action:"restore_revision",revision_id:e},i.restoreComplete)},restoreComplete:function(e){e=FLBuilder._jsonParse(e);FLBuilder._renderLayout(e.layout),FLBuilder.triggerHook("didRestoreRevisionComplete",e.config),void 0!==(settings=e.settings).css&&null!==settings.css&&(FLBuilderSettingsConfig.settings.layout.css=settings.css),void 0!==settings.js&&null!==settings.js&&(FLBuilderSettingsConfig.settings.layout.js=settings.js)}};r(function(){i.init()})}(jQuery),!function(){var t={query:function(e){var t,i={},l={library:{}};if(e=this.normalizeQuery(e),_.isNull(e.kind))i=FLBuilderConfig.contentItems;else for(var o in e.kind)i[o=e.kind[o]]=FLBuilderConfig.contentItems[o];return t=this.findMatches(e,i),l.library=this.formatResults(t,e),l},normalizeQuery:function(e){return e=_.extend({kind:null,type:null,category:null,group:null,enabled:!0,global:null,searchTerm:null,categorized:!1},e),_.isString(e.kind)&&(e.kind=[e.kind]),e},findMatches:function(e,t){var i,l,o,n,s={},r=null,a=null;for(r in t)for(a in i=t[r],s[r]={items:[]},i)if(l=i[a],_.isUndefined(e.category)||_.isNull(e.category)||this.matchesCategory(l.category,e.category)){switch(r){case"template":if(!(_.isUndefined(e.content)||_.isNull(e.content)||(o=_.includes(e.content,l.content),n=e.content===l.content,o||n)))continue;if(!_.isUndefined(e.type)&&!_.isNull(e.type)&&e.type!==l.type)continue;if(!_.isNull(e.group)){var d=e.group,u=l.group;if(_.isString(d)&&(d=[d]),_.isString(u)&&(u=[u]),_.isEmpty(d)||_.isEmpty(u))continue;var c=!1;for(a in d){var h=d[a];_.includes(u,h)&&(c=!0)}if(!c)continue}break;case"module":if(!_.isNull(e.group)){if(!1===e.group&&0<l.group.length)continue;if(!1!==e.group&&!_.includes(l.group,e.group))continue}}(_.isUndefined(e.searchTerm)||_.isNull(e.searchTerm)||this.matchesSearchTerm(l,e.searchTerm))&&s[r].items.push(l)}return s},matchesCategory:function(e,t){var i,l,o,n;if(e===t)return!0;for(l in t=_.isString(t)?[t]:t){if(i=t[l],_.isString(e)&&e===i)return!0;if(_.isArray(e))for(o in e)if(e[o]===i)return!0;if(_.isObject(e))for(n in e)if(e[n]===i||n===i)return!0}return!1},matchesSearchTerm:function(e,t){var i=t.toLowerCase();return!(_.isUndefined(e.slug)||!e.slug.toLowerCase().includes(i))||(!(_.isUndefined(e.name)||!e.name.toLowerCase().includes(i))||(!(!_.isString(e.category)||!e.category.toLowerCase().includes(i))||(!(_.isUndefined(e.description)||!e.description.toLowerCase().includes(i))||(!(_.isUndefined(e.id_base)||!e.id_base.includes(t))||(!(!e.isWidget||!"widget".includes(i))||!(_.isUndefined(e.editor_export)||!"module".includes(i)))))))},formatResults:function(e,t){if(t.categorized)for(type in e){var i=e[type].items;e[type].categorized=this.groupBy(i,"category")}return e},groupBy:function(e,i){var o,n,s={};return _.forEach(e,function(l,e,t){o=l[i],_.isNull(o)||_.isUndefined(o)||_.isString(o)&&""===l[o]||(_.isString(o)&&(s[o]=s[o]||[],s[o].push(l)),_.isArray(o)&&(n=o,_.forEach(n,function(e,t,i){s[e]=s[e]||[],s[e].push(l)})),_.isObject(o)&&(n=o,_.forEach(n,function(e,t,i){s[e]=s[e]||[],s[e].push(l)})))}),s},search:function(e){var t=this.query({searchTerm:e}),i={total:0,term:e,sections:{}};if(!_.isUndefined(t.library.module.items)){var l,o={};for(l in t.library.module.items){var n=t.library.module.items[l],s=n.group[0],r=n.category;n.name;_.isUndefined(o[s])&&(o[s]={}),_.isUndefined(o[s][r])&&(o[s][r]=[]),o[s][r].push(n)}i.grouped=o}for(l in t.library){var a=t.library[l];!_.isUndefined(a.items)&&0<a.items.length&&(i.sections[l]={name:FLBuilderStrings.typeLabels[l],handle:l,type:"",items:a.items},i.total+=a.items.length)}return i}};FLBuilder.Search={byQuery:function(e){return t.query(e)},byTerm:function(e){return t.search(e)}}}(jQuery),!function(i,l){var o={layoutNeedsPublish:!1,defaultIndicatorMessage:"",defaultTooltipMessage:"",messages:null,init:function(){this.messages=FLBuilderStrings.savedStatus,this.$savingIndicator=i(".fl-builder--saving-indicator"),l.addHook("didBeginAJAX",this.onLayoutSaving.bind(this)),l.addHook("didCompleteAJAX",this.onLayoutSaved.bind(this)),l.addHook("didPublishLayout",this.onLayoutPublished.bind(this)),l.addHook("publishAndRemain",this.onPublishAndRemain.bind(this)),l.addHook("didShowLightbox",this.setLayoutNeedsPublish.bind(this)),!FLBuilderConfig.layoutHasDraftedChanges&&FLBuilderConfig.builderEnabled||(this.setLayoutNeedsPublish(),this.resetStatusMessage())},setLayoutNeedsPublish:function(){this.layoutNeedsPublish||(this.layoutNeedsPublish=!0,i("body").addClass("fl-builder--layout-has-drafted-changes"))},onLayoutSaving:function(e,t){this.isPublishingLayout(t.action)?this.showStatusMessage(this.messages.publishing,this.messages.publishingTooltip):this.isUpdatingLayout(t.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&&!(-1<e.indexOf("history"))))))))},onLayoutSaved:function(e,t){var i;this.isUpdatingLayout(t.fl_builder_data.action)&&(this.showStatusMessage(this.messages.saved,this.messages.savedTooltip),i=this,setTimeout(function(){i.resetStatusMessage()},2e3))},onLayoutPublished:function(){this.layoutNeedsPublish=!1,i("body").removeClass("fl-builder--layout-has-drafted-changes"),this.resetStatusMessage()},showStatusMessage:function(e,t){this.$savingIndicator.html(e),l.isUndefined(t)||(this.$savingIndicator.attr("title",t),i(".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(){var e;l.MainMenu.hide(),this.layoutNeedsPublish||FLBuilderSettingsForms.settingsHaveChanged()?l._publishLayout(!1,!0):(this.showStatusMessage(this.messages.noChanges),e=this,setTimeout(function(){e.resetStatusMessage()},2e3))}};l.SaveManager={layoutNeedsPublish:function(){return o.layoutNeedsPublish},showStatusMessage:function(e,t){o.showStatusMessage(e,t)},resetStatusMessage:function(){o.resetStatusMessage()}},i(function(){o.init()})}(jQuery,FLBuilder),!function(o){FLBuilderHistoryManager={states:[],position:0,rendering:!1,init:function(){var e=FLBuilderConfig.history,l=this;this.states=e.states,this.position=parseInt(e.position),this.setupMainMenuData(),o.each(e.hooks,function(e,i){FLBuilder.addHook(e,function(e,t){l.saveCurrentState(i,t)})}),FLBuilder.addHook("didPublishLayout",this.clearStatesOnPublish.bind(this)),FLBuilder.addHook("restartEditingSession",this.saveCurrentStateOnRestartSession.bind(this)),FLBuilder.addHook("historyItemClicked",this.itemClicked.bind(this)),FLBuilder.addHook("undo",this.onUndo.bind(this)),FLBuilder.addHook("redo",this.onRedo.bind(this))},saveCurrentState:function(e,t){var i=null;void 0!==(t=void 0===t?{}:t).moduleType&&t.moduleType&&(i=t.moduleType);const l=FL.Builder.data.getLayoutActions();l.saveHistoryState(e,i)},saveCurrentStateOnRestartSession:function(e){this.states.length||this.saveCurrentState("draft_created")},clearStatesOnPublish:function(e,t){this.states=[],this.position=0,this.setupMainMenuData();const i=FL.Builder.data.getLayoutActions();i.clearHistoryStates(FLBuilderConfig.postId,t.shouldExit)},renderState:function(e){var t=this;if(!this.rendering&&this.states.length&&!o(".fl-builder-settings:visible").length){var i=setTimeout(FLBuilder.showAjaxLoader,2e3);this.rendering=!0;const l=FL.Builder.data.getLayoutActions();l.renderHistoryState(e,function(e){e=JSON.parse(e);e.error||(t.position=parseInt(e.position),FLBuilder.triggerHook("didRestoreHistoryComplete",e),FLBuilder._renderLayout(e.layout),t.setupMainMenuData()),clearTimeout(i),t.rendering=!1})}},onUndo:function(){const e=FL.Builder.data.getLayoutActions();e.undo()},onRedo:function(){const e=FL.Builder.data.getLayoutActions();e.redo()},setupMainMenuData:function(){var e=FLBuilderConfig.history.labels,t="";FLBuilderConfig.mainMenu.history.items=[];for(var i=this.states.length-1;0<=i;i--)"string"==typeof this.states[i]?t=e[this.states[i]]||this.states[i]:(t=e[this.states[i].label]||this.states[i].label,(this.states[i].moduleType||-1<this.states[i].label.indexOf("module"))&&(t=t.replace("%s",this.getModuleName(this.states[i].moduleType)))),FLBuilderConfig.mainMenu.history.items.push({eventName:"historyItemClicked",type:"event",label:wp.template("fl-history-list-item")({label:t,current:i===this.position?1:0,position:i})});FLBuilderConfig.history.enabled||FLBuilderConfig.mainMenu.history.items.push({eventName:"historyItemClicked",type:"event",label:wp.template("fl-history-list-item")({label:FLBuilderConfig.history.labels.history_disabled,current:0,position:0})}),void 0!==FLBuilder.MainMenu&&FLBuilder.MainMenu.renderPanel("history")},getModuleName:function(e){var t=FLBuilderConfig.contentItems.module,i=0;if("widget"===e)return FLBuilderStrings.widget;for(;i<t.length;i++)if(void 0!==t[i].slug&&e===t[i].slug)return t[i].name;return FLBuilderStrings.module},itemClicked:function(e,t){var t=o(t).find(".fl-history-list-item"),i=t.attr("data-position"),l=o(".fl-history-list-item[data-current=1]");o(".fl-builder-settings:visible").length&&(FLBuilder._closeNestedSettings(),FLBuilder._lightbox.close()),l.attr("data-current",0),t.attr("data-current",1),this.renderState(i)}},o(function(){FLBuilderHistoryManager.init()})}(jQuery),!function(exports){"use strict";exports.stringify=function(e){return JSON.stringify(e,function(e,t){var i;return t instanceof Function||"function"==typeof t?(i=t.toString()).length<8||"function"!==i.substring(0,8)?"_NuFrRa_"+i:i:t instanceof RegExp?"_PxEgEr_"+t:t})},exports.parse=function(str,date2obj){var iso8061=!!date2obj&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/;return JSON.parse(str,function(key,value){var prefix;return"string"!=typeof value?value:value.length<8?value:(prefix=value.substring(0,8),iso8061&&value.match(iso8061)?new Date(value):"function"===prefix?eval("("+value+")"):"_PxEgEr_"===prefix||"_NuFrRa_"===prefix?eval(value.slice(8)):value)})},exports.clone=function(e,t){return exports.parse(exports.stringify(e),t)}}("undefined"==typeof exports?window.JSONfn={}:exports);
1
+ var FLBuilderColorPicker;!function(u){var i=[],t=navigator.userAgent.toLowerCase(),l="Microsoft Internet Explorer"===navigator.appName,o=l?parseFloat(t.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,n=l&&o<10,s=!1,r=["-moz-","-webkit-","-o-","-ms-"];function a(e,t){return e="top"===e?"top":"left",t=Array.isArray(t)?t:Array.prototype.slice.call(arguments,1),"webkit"===s?(o=[],i="top"===(i=e)?"0% 0%,0% 100%,":"0% 100%,100% 100%,",l=d(l=t),u.each(l,function(e,t){o.push("color-stop("+parseFloat(t.stop)/100+", "+t.color+")")}),"-webkit-gradient(linear,"+i+o.join(",")+")"):r[s]+"linear-gradient("+e+", "+t.join(", ")+")";var i,l,o}function d(e){var n=[],s=[],t=[],i=e.length-1;return u.each(e,function(e,t){var i=t,l=!1,o=t.match(/1?[0-9]{1,2}%$/);o&&(i=t.replace(/\s?1?[0-9]{1,2}%$/,""),l=o.shift()),n.push(i),s.push(l)}),!1===s[0]&&(s[0]="0%"),!1===s[i]&&(s[i]="100%"),s=function e(t){var i,l,o,n,s=0,r=t.length-1,a=0,d=!1;if(t.length<=2||u.inArray(!1,t)<0)return t;for(;a<t.length-1;)d||!1!==t[a]?d&&!1!==t[a]&&(r=a,a=t.length):(s=a-1,d=!0),a++;l=r-s;n=parseInt(t[s].replace("%"),10);i=(parseFloat(t[r].replace("%"))-n)/l;a=s+1;o=1;for(;a<r;)t[a]=n+o*i+"%",o++,a++;return e(t)}(s),u.each(s,function(e){t[e]={color:n[e],stop:s[e]}}),t}flBuilderParseColorValue=function(e){var e=e.replace(/\s+/g,""),t=-1!==e.indexOf("rgba")?parseFloat(100*e.replace(/^.*,(.+)\)/,"$1")):100;return{value:e,alpha:t,rgba:t<100}},u.fn.flBuilderColorPickerGradient=function(){var e=arguments;return this.each(function(){n?function(e,l){var o,t,n,s,r;e="top"===e?"top":"left",l=Array.isArray(l)?l:Array.prototype.slice.call(arguments,1),o="top"===e?0:1,t=u(this),n=l.length-1,s='<div class="iris-ie-gradient-shim" style="position:absolute;'+(1==o?"height":"width")+":100%;"+(1==o?"left":"top")+":%start%;"+(1==o?"right":"bottom")+':%end%;filter:%filter%;" data-color:"%color%"></div>',r="","static"===t.css("position")&&t.css({position:"relative"}),l=d(l),u.each(l,function(e,t){var i;if(e===n)return!1;e=l[e+1],t.stop!==e.stop&&(i=100-parseFloat(e.stop)+"%",t.octoHex=new FLBuilderColor(t.color).toIEOctoHex(),e.octoHex=new FLBuilderColor(e.color).toIEOctoHex(),e="progid:DXImageTransform.Microsoft.Gradient(GradientType="+o+", StartColorStr='"+t.octoHex+"', EndColorStr='"+e.octoHex+"')",r+=s.replace("%start%",t.stop).replace("%end%",i).replace("%filter%",e))}),t.find(".iris-ie-gradient-shim").remove(),u(r).prependTo(t)}.apply(this,e):u(this).css("backgroundImage",a.apply(this,e))})},u.fn.flBuilderColorPickerRaninbowGradient=function(e,t){var i,l,o;for(e=e||"top",i="hsl(%h%,"+(t=u.extend({},{s:100,l:50},t)).s+"%,"+t.l+"%)",l=0,o=[];l<=360;)o.push(i.replace("%h%",l)),l+=30;return this.each(function(){u(this).flBuilderColorPickerGradient(e,o)})},(FLBuilderColorPicker=function(e){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>';this.options=u.extend({},{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!"}},e),(!1==n||!0==n&&7<o)&&this._init()}).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 e=this;u(e.options.elements);u("html").hasClass("fl-color-picker-init")?this._prepareColorFields():(this._color=new FLBuilderColor("#ff0000").setHSpace(e.options.mode),i=this.options.presets,!1===s&&function(){var i,l="backgroundImage";n?s="filter":(i=u('<div id="iris-gradtest" />'),u.each(r,function(e,t){if(i.css(l,t+"linear-gradient(top,#fff,#000)"),i.css(l).match("gradient"))return s=e,!1}),!1===s&&(i.css("background","-webkit-gradient(linear,0% 0%,0% 100%,from(#fff),to(#000))"),i.css(this.bgImageString).match("gradient")&&(s="webkit")),i.remove())}(),e.picker=u(this._html).appendTo("body"),l?9===o?e.picker.addClass("iris-ie-9"):o<=8&&e.picker.addClass("iris-ie-lt9"):t.indexOf("compatible")<0&&t.indexOf("khtml")<0&&t.match(/mozilla/)&&e.picker.addClass("iris-mozilla"),e.controls={square:e.picker.find(".iris-square"),squareDrag:e.picker.find(".iris-square-value"),horiz:e.picker.find(".iris-square-horiz"),vert:e.picker.find(".iris-square-vert"),strip:e.picker.find(".iris-strip"),stripSlider:e.picker.find(".iris-strip .iris-slider-offset")},"hsv"===e.options.mode&&e._has("l",e.options.controls)?e.options.controls=e._defaultHSVControls:"hsl"===e.options.mode&&e._has("v",e.options.controls)&&(e.options.controls=e._defaultHSLControls),e.hue=e._color.h(),this._setTemplates(),this._ui=u(".fl-color-picker-ui"),this._iris=u(".iris-picker"),this._wrapper=u("body"),this._ui.prepend(this._hexHtml).append(this._presetsHtml),e.element=this._ui.find(".fl-color-picker-input"),e._initControls(),e.active="external",e._change(),e._addInputListeners(e.element),this._buildUI(),this._prepareColorFields(),this._pickerControls(),this._presetsControls(),this._buildAlphaUI(),u("html").addClass("fl-color-picker-init"))},_prepareColorFields:function(){var n=this;u(".fl-color-picker-value").each(function(){var e=u(this),t=e.val(),i=e.parent().find(".fl-color-picker-color"),l=flBuilderParseColorValue(t),o="";t&&(i.hasClass("fl-color-picker-alpha-enabled")&&l.rgba?o=e.val().toString():!i.hasClass("fl-color-picker-alpha-enabled")&&l.rgba?(l=(l=t.replace("rgba","rgb")).substr(0,l.lastIndexOf(","))+")",n._color._alpha=1,o=l,e.val(l)):o="#"+e.val().toString(),i.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,e){var l=!1;return u.each(e,function(e,t){if(i===t)return!(l=!0)}),l},_buildUI:function(){var i=this;i._presetsList=this._ui.find(".fl-color-picker-presets-list"),i._presetsList.html(""),0<this.options.presets.length?u.each(this.options.presets,function(e,t){i._addPresetView(t)}):i._presetsList.append(this._noPresetsTpl)},_addPresetView:function(e){var t=this._presetsList.find(".fl-color-picker-no-preset"),t=(0<t.length&&t.remove(),u(this._presetsTpl)),i=FLBuilderColor(e);t.attr("data-color",e).find(".fl-color-picker-preset-color").css({backgroundColor:i.toString()}).end().find(".fl-color-picker-preset-label").html(i.toString()),this._presetsList.append(t)},_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(){u(this).remove()})},_pickerControls:function(){var i=this;this._wrapper.on("click",".fl-color-picker-color",function(){var e=u(this);i._currentElement=e.parent().find(".fl-color-picker-value"),i._ui.position({my:"left top",at:"left bottom",of:e,collision:"flip",using:function(e,t){i._togglePicker(e)}})}).on("click",".fl-color-picker-clear",function(){var e=u(this);i._currentElement=e.parent().find(".fl-color-picker-value"),e.prev(".fl-color-picker-color").css({backgroundColor:"transparent"}).addClass("fl-color-picker-empty"),i._setColor(""),i.element.val(""),i._currentElement.val("").trigger("change")}),u(document).on("mousedown",function(e){0===u(e.target).closest(".fl-color-picker-ui").length&&(presets=i._ui.find(".fl-color-picker-presets"),presetsCloseLabel=presets.find(".fl-color-picker-presets-close-label"),presetsList=presets.find(".fl-color-picker-presets-list"),presetsCloseLabel.hasClass("fl-color-picker-active")&&0<(list=presetsList.find("li").find("span.fl-color-picker-preset-label")).length&&(presets=[],u.each(list,function(e,t){presets.push(u(t).text())}),u(FLBuilder.colorPicker).trigger("presetSorted",{presets:presets})),u(".fl-color-picker-ui.fl-color-picker-active").removeClass("fl-color-picker-active"))})},_presetsControls:function(){var i=this,e=i._ui.find(".fl-color-picker-preset-add"),l=i._ui.find(".fl-color-picker-presets"),o=l.find(".fl-color-picker-presets-open-label"),n=l.find(".fl-color-picker-presets-close-label"),s=l.find(".fl-color-picker-presets-list");e.off("click").on("click",function(){i._addPreset(i.element.val())}),s.css({height:i.element.innerHeight()+i._iris.innerHeight()+14+"px"}).hide(),s.sortable(),l.off("click").on("click",".fl-color-picker-presets-toggle",function(){n.hasClass("fl-color-picker-active")&&0<(list=s.find("li").find("span.fl-color-picker-preset-label")).length&&(l=[],u.each(list,function(e,t){l.push(u(t).text())}),u(FLBuilder.colorPicker).trigger("presetSorted",{presets:l})),o.toggleClass("fl-color-picker-active"),n.toggleClass("fl-color-picker-active"),s.slideToggle(500)}).on("click",".fl-color-picker-preset",function(e){var t=new FLBuilderColor(u(this).data("color").toString());i._setColor(t),i._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:t.toString()}).removeClass("fl-color-picker-empty"),o.toggleClass("fl-color-picker-active"),n.toggleClass("fl-color-picker-active"),s.slideToggle(500)}).on("click",".fl-color-picker-preset-remove",function(e){e.stopPropagation(),i._removePreset(u(this).parent().data("color"))})},_removePreset:function(e){var t;confirm(this.options.labels.removePresetConfirm)&&(e=e.toString(),-1<(t=i.indexOf(e))&&(i.splice(t,1),this.options.presets=i,this._presetsList.find('.fl-color-picker-preset[data-color="'+e+'"]').slideUp(function(){u(this).remove()})),i.length<1&&this._presetsList.append(this._noPresetsTpl),u(this).trigger("presetRemoved",{presets:i}))},_addPreset:function(e){if(!this._CheckValidColor(e))return alert(this.options.labels.noneColorSelected),!1;e=e.toString().replace(/^#/,"");""===e?alert(this.options.labels.noneColorSelected):-1<i.indexOf(e)?alert(this.options.labels.alreadySaved.replace("%s","#"+e)):(this._addPresetView(e),this._addPresetFeedback(),i.push(e),this.options.presets=i,u(this).trigger("presetAdded",{presets:i}))},_CheckValidColor:function(e){if(!e.match(/^#/)&&!e.match(/^rgb/)&&!e.match(/^hsl/))return!1;var t=document.getElementById("divValidColor");return t||((t=document.createElement("div")).id="divValidColor"),t.style.borderColor="",t.style.borderColor=e,0!=t.style.borderColor.length},_togglePicker:function(e){var t=this;this._ui.hasClass("fl-color-picker-active")?(this._ui.removeClass("fl-color-picker-active"),e&&setTimeout(function(){t._ui.css(e),t._ui.addClass("fl-color-picker-active"),t._setColor(t._currentElement.val())},200)):(e&&t._ui.css(e),setTimeout(function(){t._ui.addClass("fl-color-picker-active"),t._setColor(t._currentElement.val())},200))},_paint:function(){this._paintDimension("right","strip"),this._paintDimension("top","vert"),this._paintDimension("left","horiz")},_paintDimension:function(e,t){var i,l=this,o=l._color,n=l.options.mode,s=l._getHSpaceColor(),r=l.controls[t],a=l.options.controls;if(t!==l.active&&("square"!==l.active||"strip"===t))switch(a[t]){case"h":if("hsv"===n){switch(s=o.clone(),t){case"horiz":s[a.vert](100);break;case"vert":s[a.horiz](100);break;case"strip":s.setHSpace("hsl")}i=s.toHsl()}else i="strip"===t?{s:s.s,l:s.l}:{s:100,l:s.l};r.flBuilderColorPickerRaninbowGradient(e,i);break;case"s":"hsv"===n?"vert"===t?i=[o.clone().a(0).s(0).toCSS("rgba"),o.clone().a(1).s(0).toCSS("rgba")]:"strip"===t?i=[o.clone().s(100).toCSS("hsl"),o.clone().s(0).toCSS("hsl")]:"horiz"===t&&(i=["#fff","hsl("+s.h+",100%,50%)"]):i="vert"===t&&"h"===l.options.controls.horiz?["hsla(0, 0%, "+s.l+"%, 0)","hsla(0, 0%, "+s.l+"%, 1)"]:["hsl("+s.h+",0%,50%)","hsl("+s.h+",100%,50%)"],r.flBuilderColorPickerGradient(e,i);break;case"l":i="strip"===t?["hsl("+s.h+",100%,100%)","hsl("+s.h+", "+s.s+"%,50%)","hsl("+s.h+",100%,0%)"]:["#fff","rgba(255,255,255,0) 50%","rgba(0,0,0,0) 50%","rgba(0,0,0,1)"],r.flBuilderColorPickerGradient(e,i);break;case"v":i="strip"===t?[o.clone().v(100).toCSS(),o.clone().v(0).toCSS()]:["rgba(0,0,0,0)","#000"],r.flBuilderColorPickerGradient(e,i)}},_getHSpaceColor:function(){return"hsv"===this.options.mode?this._color.toHsv():this._color.toHsl()},_dimensions:function(e){var t,i=this,l=i.options,o=i.controls.square,n=i.picker.find(".iris-strip"),s=l.border?l.width-20:l.width;if(e&&(o.css("width",""),n.css("width",""),i.picker.css({width:"",height:""})),e=s*(parseFloat("77.5%")/100),s=s*(parseFloat("12%")/100),t=l.border?20+e:e,o.width(e).height(e),n.height(e).width(s),i.picker.css({width:l.width,height:t}),!l.palettes)return i.picker.css("paddingBottom","")},_addInputListeners:function(o){function e(e){var t=new FLBuilderColor(o.val()),i=o.val().replace(/^#/,""),l=n._currentElement.hasClass("fl-color-picker-empty");if(o.removeClass("iris-error"),t.error)""!==i&&o.addClass("iris-error");else if(t.toString()!==n._color.toString()||""!==n._color.toString()&&l)if("keyup"===e.type)i.match(/^[0-9a-fA-F]{3}$/)||(n._setColor(i),n._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:FLBuilderColor(i).toString()}).removeClass("fl-color-picker-empty"),n._currentElement.val(i).trigger("change"));else if("paste"===e.type)return i=e.originalEvent.clipboardData.getData("text").replace(/^#/,""),hex=FLBuilderColor(i).toString(),n._setColor(i),o.val(hex),n._currentElement.parent().find(".fl-color-picker-color").css({backgroundColor:hex}).removeClass("fl-color-picker-empty"),n._currentElement.val(i).trigger("change"),!1}var n=this;o.on("change",e).on("keyup",n._debounce(e,100))},_initControls:function(){var n=this,s=n.controls,e=s.square,i=n.options.controls,l=n._scale[i.strip];s.stripSlider.slider({orientation:"horizontal",max:l,slide:function(e,t){n.active="strip","h"===i.strip&&(t.value=l-t.value),n._color[i.strip](t.value),n._change.apply(n,arguments)}}),s.squareDrag.draggable({containment:s.square.find(".iris-square-inner"),zIndex:1e3,cursor:"move",drag:function(e,t){n._squareDrag(e,t)},start:function(){e.addClass("iris-dragging"),u(this).addClass("ui-state-focus")},stop:function(){e.removeClass("iris-dragging"),u(this).removeClass("ui-state-focus")}}).on("mousedown mouseup",function(e){var t="ui-state-focus";e.preventDefault(),"mousedown"===e.type?(n.picker.find("."+t).removeClass(t).blur(),u(this).addClass(t).focus()):u(this).removeClass(t)}).on("keydown",function(e){var t=s.square,i=s.squareDrag,l=i.position(),o=2;switch(e.altKey&&(o*=10),e.keyCode){case 37:l.left-=o;break;case 38:l.top-=o;break;case 39:l.left+=o;break;case 40:l.top+=o;break;default:return!0}l.left=Math.max(0,Math.min(l.left,t.width())),l.top=Math.max(0,Math.min(l.top,t.height())),i.css(l),n._squareDrag(e,{position:l}),e.preventDefault()}),e.mousedown(function(e){var t;1===e.which&&u(e.target).is("div")&&(t=n.controls.square.offset(),t={top:e.pageY-t.top,left:e.pageX-t.left},e.preventDefault(),n._squareDrag(e,{position:t}),e.target=n.controls.squareDrag.get(0),n.controls.squareDrag.css(t).trigger(e))})},_squareDrag:function(e,t){var i=this,l=i.options.controls,o=i._squareDimensions(),n=Math.round((o.h-t.position.top)/o.h*i._scale[l.vert]),o=i._scale[l.horiz]-Math.round((o.w-t.position.left)/o.w*i._scale[l.horiz]);i._color[l.horiz](o)[l.vert](n),i.active="square",i._change.apply(i,arguments)},_setColor:function(e){var t=this,i=t.options.color;""===e?(e="#ff0000",t.default=!0):t.default=!1,(e=""+(t.options.color=e)).replace(/^#/,""),(e=new FLBuilderColor(e).setHSpace(t.options.mode)).error?t.options.color=i:(t._color=e,t.options.color=t._color.toString(),t.active="external",t._change())},_squareDimensions:function(e){var t=this.controls.square;return void 0!==e&&t.data("dimensions")?t.data("dimensions"):(this.controls.squareDrag,e={w:t.width(),h:t.height()},t.data("dimensions",e),e)},_isNonHueControl:function(e,t){return"square"===e&&"h"===this.options.controls.strip||"external"!==t&&("h"!==t||"strip"!==e)},_change:function(){var l=this,o=l.controls,n=l._getHSpaceColor(),e=["square","strip"],s=l.options.controls,t=s[l.active]||"external",i=l.hue;"strip"===l.active?e=[]:"external"!==l.active&&e.pop(),u.each(e,function(e,t){var i;if(t!==l.active)switch(t){case"strip":i="h"===s.strip?l._scale[s.strip]-n[s.strip]:n[s.strip],o.stripSlider.slider("value",i);break;case"square":i=l._squareDimensions(),i={left:n[s.horiz]/l._scale[s.horiz]*i.w,top:i.h-n[s.vert]/l._scale[s.vert]*i.h},l.controls.squareDrag.css(i)}}),n.h!==i&&l._isNonHueControl(l.active,t)&&l._color.h(i),l.hue=l._color.h(),l.options.color=l._color.toString(),l.element.is(":input")&&!l._color.error&&(l.element.removeClass("iris-error"),l.element.val()!==l._color.toString()&&(l.element.val(l._color.toString()),this._currentElement&&(!l.default||l.default&&"external"!==l.active?this._currentElement.val(l._color.toString().replace(/^#/,"")).parent().find(".fl-color-picker-color").css({backgroundColor:l._color.toString()}).removeClass("fl-color-picker-empty"):this._currentElement.val(""),l._wrapper.find(".fl-alpha-slider-offset").css("background-color",l._color.toString()),this._currentElement.trigger("change")))),l._paint(),l._inited=!0,l.active=!1},_debounce:function(o,n,s){var r,a;return function(){var e=this,t=arguments,i=function(){r=null,s||(a=o.apply(e,t))},l=s&&!r;return clearTimeout(r),r=setTimeout(i,n),a=l?o.apply(e,t):a}},_buildAlphaUI:function(){var t=this;t._wrapper.on("click",".fl-color-picker-color",function(){var e=u(this);t._currentElement.val();e.hasClass("fl-color-picker-alpha-enabled")?(t._ui.find(".fl-alpha-wrap").length<=0&&u(t._alphaHtml).insertAfter(t._iris),t.picker.addClass("fl-color-alpha-enabled"),t._pickerAlphaControls()):(t.picker.removeClass("fl-color-alpha-enabled"),t._ui.find(".fl-alpha-wrap").remove())})},_pickerAlphaControls:function(){var l=this,e=l._currentElement,t=flBuilderParseColorValue(e.val()),e=parseFloat(t.alpha/100),i=l._wrapper,o=l._ui.find(".fl-alpha-wrap"),n=o.find(".fl-alpha-slider"),s=o.find(".fl-alpha-text"),r=o.find(".fl-alpha-slider-offset");alphaHandle=o.find(".ui-slider-handle"),s.text(e<1?e:""),n.slider({orientation:"vertical",slide:function(e,t){var i=parseFloat(t.value/100);l._color._alpha=i,s.text(i<1?i:""),l._change.apply(l,arguments)},create:function(){r.css({backgroundColor:t.value}),i.on("click",".fl-color-picker-clear",function(){l._color._alpha=1,s.text(""),n.slider("value",100).trigger("slide")})},value:t.alpha,step:1,min:0,max:100})}}}(jQuery),!function(e,u){function n(e,t){return this instanceof n?this._init(e,t):new n(e,t)}n.fn=n.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!==u&&this.a(e.a),this[t=e.r!==u?"fromRgb":e.l!==u?"fromHsl":e.v!==u?"fromHsv":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 n(this.toInt()),t=["_alpha","_hSpace","_hsl","_hsv","error"],i=t.length-1;0<=i;i--)e[t[i]]=this[t[i]];return e},setHSpace:function(e){return this._hSpace="hsv"===e?e:"hsl",this},noop:function(){return this},fromCSS:function(e){var t,i=/^(rgb|hs(l|v))a?\(/;if(this.error=!1,(e=e.replace(/^\s+/,"").replace(/\s+$/,"").replace(/;$/,"")).match(i)&&e.match(/\)$/)){if((t=e.replace(/(\s|%)/g,"").replace(i,"").replace(/,?\);?$/,"").split(",")).length<3)return this._error();if(4===t.length&&(this.a(parseFloat(t.pop())),this.error))return this;for(var l=t.length-1;0<=l;l--)if(t[l]=parseInt(t[l],10),isNaN(t[l]))return this._error();return e.match(/^rgb/)?this.fromRgb({r:t[0],g:t[1],b:t[2]}):e.match(/^hsv/)?this.fromHsv({h:t[0],s:t[1],v:t[2]}):this.fromHsl({h:t[0],s:t[1],l:t[2]})}return this.fromHex(e)},fromRgb:function(e,t){return"object"!=typeof e||e.r===u||e.g===u||e.b===u?this._error():(this.error=!1,this.fromInt(parseInt((e.r<<16)+(e.g<<8)+e.b,10),t))},fromHex:function(e){return 3===(e=e.replace(/^#/,"").replace(/^0x/,"")).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,i,l,o,n;return"object"!=typeof e||e.h===u||e.s===u||e.l===u?this._error():(this._hsl=e,this._hSpace="hsl",o=e.h/360,n=e.s/100,e=e.l/100,0==n?t=i=l=e:(t=this.hue2rgb(n=2*e-(e=e<.5?e*(1+n):e+n-e*n),e,o+1/3),i=this.hue2rgb(n,e,o),l=this.hue2rgb(n,e,o-1/3)),this.fromRgb({r:255*t,g:255*i,b:255*l},!0))},fromHsv:function(e){var t,i,l,o,n,s,r,a,d;if("object"!=typeof e||e.h===u||e.s===u||e.v===u)return this._error();switch(this._hsv=e,this._hSpace="hsv",s=e.h/360,t=e.s/100,r=(i=e.v/100)*(1-t),a=i*(1-(s=6*s-(e=Math.floor(6*s)))*t),d=i*(1-(1-s)*t),e%6){case 0:l=i,o=d,n=r;break;case 1:l=a,o=i,n=r;break;case 2:l=r,o=i,n=d;break;case 3:l=r,o=a,n=i;break;case 4:l=d,o=r,n=i;break;case 5:l=i,o=r,n=a}return this.fromRgb({r:255*l,g:255*o,b:255*n},!0)},fromInt:function(e,t){return this._color=parseInt(e,10),isNaN(this._color)&&(this._color=0),16777215<this._color?this._color=16777215:this._color<0&&(this._color=0),t===u&&(this._hsv.h=this._hsv.s=this._hsl.h=this._hsl.s=0),this},hue2rgb:function(e,t,i){return i<0&&(i+=1),1<i&&--i,i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*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 t=6-e.length-1;0<=t;t--)e="0"+e;return"#"+e},toCSS:function(e,t){switch(e=e||"hex",t=parseFloat(t||this._alpha),e){case"rgb":case"rgba":var i=this.toRgb();return t<1?"rgba( "+i.r+", "+i.g+", "+i.b+", "+t+" )":"rgb( "+i.r+", "+i.g+", "+i.b+" )";case"hsl":case"hsla":i=this.toHsl();return t<1?"hsla( "+i.h+", "+i.s+"%, "+i.l+"%, "+t+" )":"hsl( "+i.h+", "+i.s+"%, "+i.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,t=this.toRgb(),i=t.r/255,l=t.g/255,o=t.b/255,t=Math.max(i,l,o),n=Math.min(i,l,o),s=(t+n)/2;if(t===n)e=a=0;else{var r=t-n,a=.5<s?r/(2-t-n):r/(t+n);switch(t){case i:e=(l-o)/r+(l<o?6:0);break;case l:e=(o-i)/r+2;break;case o:e=(i-l)/r+4}e/=6}return{h:e=0===(e=Math.round(360*e))&&this._hsl.h!==e?this._hsl.h:e,s:a=0===(a=Math.round(100*a))&&this._hsl.s?this._hsl.s:a,l:Math.round(100*s)}},toHsv:function(){var e,t=this.toRgb(),i=t.r/255,l=t.g/255,o=t.b/255,t=Math.max(i,l,o),n=Math.min(i,l,o),s=t,r=t-n,a=0===t?0:r/t;if(t===n)e=a=0;else{switch(t){case i:e=(l-o)/r+(l<o?6:0);break;case l:e=(o-i)/r+2;break;case o:e=(i-l)/r+4}e/=6}return{h:e=0===(e=Math.round(360*e))&&this._hsv.h!==e?this._hsv.h:e,s:a=0===(a=Math.round(100*a))&&this._hsv.s?this._hsv.s:a,v:Math.round(100*s)}},toInt:function(){return this._color},toIEOctoHex:function(){var e=this.toString(),t=parseInt(255*this._alpha,10).toString(16);return"#"+(t=1===t.length?"0"+t:t)+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 n))throw"getDistanceLuminosityFrom requires a Color object";var t=this.toLuminosity(),e=e.toLuminosity();return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)},getMaxContrastColor:function(){var e=this.toLuminosity();return new n(.5<=e?"000000":"ffffff")},getReadableContrastingColor:function(e,t){if(!(e instanceof n))return this;var i=t===u?5:t,l=e.getDistanceLuminosityFrom(this),t=e.getMaxContrastColor();if(t.getDistanceLuminosityFrom(e)<=i)return t;if(i<=l)return this;for(var o=0===t.toInt()?-1:1;l<i&&(this.l(o,!0),l=this.getDistanceLuminosityFrom(e),0!==this._color&&16777215!==this._color););return this},a:function(e){if(e===u)return this._alpha;e=parseFloat(e);return isNaN(e)?this._error():(this._alpha=e,this)},darken:function(e){return this.l(-(e=e||5),!0)},lighten:function(e){return this.l(e=e||5,!0)},saturate:function(e){return this.s(e=e||15,!0)},desaturate:function(e){return this.s(-(e=e||15),!0)},toGrayscale:function(){return this.setHSpace("hsl").s(0)},getComplement:function(){return this.h(180,!0)},getSplitComplement:function(e){return this.h(180+30*(e=e||1),!0)},getAnalog:function(e){return this.h(30*(e=e||1),!0)},getTetrad:function(e){return this.h(60*(e=e||1),!0)},getTriad:function(e){return this.h(120*(e=e||1),!0)},_partial:function(l){var o=i[l];return function(e,t){var i=this._spaceFunc("to",o.space);return e===u?i[l]:(!0===t&&(e=i[l]+e),o.mod&&(e%=o.mod),o.range&&(e=e<o.range[0]?o.range[0]:e>o.range[1]?o.range[1]:e),i[l]=e,this._spaceFunc("from",o.space,i))}},_spaceFunc:function(e,t,i){t=t||this._hSpace;return this[e+t.charAt(0).toUpperCase()+t.substr(1)](i)}};var t,i={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(t in i)i.hasOwnProperty(t)&&(n.fn[t]=n.fn._partial(t));"object"==typeof exports?module.exports=n:(e.FLBuilderColor=n,e.Color=n)}(this),!function(s){(FLLightbox=function(e){this._init(e)}).closeParent=function(e){e=s(e).closest(".fl-lightbox-wrap").attr("data-instance-id");_.isUndefined(e)||FLLightbox._instances[e].close()},FLLightbox.getResizableControlClass=function(){var e=s(".fl-lightbox-resizable").eq(0),t="far fa-window-maximize";return t=e.length&&e.hasClass("fl-lightbox-width-full")?"far fa-window-minimize":t},FLLightbox.unbindAll=function(){for(var e in FLLightbox._instances)FLLightbox._instances[e]._unbind()},FLLightbox.bindAll=function(){for(var e in FLLightbox._instances)FLLightbox._instances[e]._bind()},FLLightbox.closeAll=function(){for(var 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 t=this._node.find(".fl-lightbox"),i=t.closest(".fl-builder-ui-pinned").length,l=this._getPositionSettings();!i&&l&&this._defaults.resizable&&t.css(l),this._bind(),this._node.show(),this._visible=!0,void 0!==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(),0==s(".fl-builder-content-panel-button").length&&s(".fl-builder-panel-drag-handle").show()},empty:function(){this._node.find(".fl-lightbox-content").empty()},on:function(e,t){this._node.on(e,t)},off:function(e,t){this._node.off(e,t)},trigger:function(e,t){this._node.trigger(e,t)},destroy:function(){this._node.empty(),this._node.remove(),FLLightbox._instances[this._id]="undefined";try{delete FLLightbox._instances[this._id]}catch(e){}},_init:function(e){var t=0,i=null;for(i in FLLightbox._instances)t++;this._defaults=s.extend({},this._defaults,e),this._id=(new Date).getTime()+t,(FLLightbox._instances[this._id]=this)._render(),this._resizable()},_render:function(){this._node=s('<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),s("body").append(this._node)},_bind:function(){s(window).on("resize.fl-lightbox-"+this._id,this._delayedResize.bind(this))},_unbind:function(){s(window).off("resize.fl-lightbox-"+this._id)},_resizable:function(){s("body");var e=this._node.find(".fl-lightbox-mask"),t=this._node.find(".fl-lightbox"),i=s(".fl-lightbox-resizable").eq(0);this._defaults.resizable?(e.hide(),t.addClass("fl-lightbox-resizable"),t.on("click",".fl-lightbox-resize-toggle",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)}),i.length&&i.hasClass("fl-lightbox-width-full")?(t.addClass("fl-lightbox-width-full"),t.draggable("disable")):this._restorePosition()):e.show(),this._resize()},_delayedResize:function(){clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(this._resize.bind(this),250)},_resize:function(){var e=this._node.find(".fl-lightbox"),t=parseInt(this._node.css("padding-top")),i=parseInt(this._node.css("padding-bottom")),l=(parseInt(this._node.css("padding-left")),parseInt(this._node.css("padding-right")),e.height()),o=e.width(),n=s(window),t=n.height()-t-i,i=(n.width(),"0px");this._defaults.resizable?(o<600?e.addClass("fl-lightbox-width-slim"):e.removeClass("fl-lightbox-width-slim"),o<450?e.addClass("fl-lightbox-width-micro"):e.removeClass("fl-lightbox-width-micro"),this._resizeEditors()):(l<t&&(i=(t-l-46)/2+"px"),e.attr("style","").css("margin",i+" auto 0")),this.trigger("resized")},_resizeStart:function(){s("body").addClass("fl-builder-resizable-is-resizing"),s(".fl-builder-lightbox:visible").append('<div class="fl-builder-resizable-iframe-fix"></div>'),FLBuilder._destroyOverlayEvents(),FLBuilder._removeAllOverlays()},_resizeStop:function(e,t){var i=s(".fl-lightbox-resizable:visible");parseInt(i.css("top"))<0&&i.css("top","0"),this._savePosition(),s("body").removeClass("fl-builder-resizable-is-resizing"),s(".fl-builder-resizable-iframe-fix").remove(),FLBuilder._bindOverlayEvents()},_resizeClicked:function(){s(".fl-lightbox-resizable").find(".fl-lightbox-resize-toggle");this._node.find(".fl-lightbox").hasClass("fl-lightbox-width-full")?this._resizeExitFull():this._resizeEnterFull(),this._resize()},_resizeEnterFull:function(){var e=s(".fl-lightbox-resizable"),t=e.find(".fl-lightbox-resize-toggle");this._node.find(".fl-lightbox");t.removeClass("fa-window-maximize").addClass("fa-window-minimize"),e.addClass("fl-lightbox-width-full"),e.draggable("disable"),e.resizable("disable")},_resizeExitFull:function(){var e=s(".fl-lightbox-resizable"),t=e.find(".fl-lightbox-resize-toggle");this._node.find(".fl-lightbox");t.removeClass("fa-window-minimize").addClass("fa-window-maximize"),e.removeClass("fl-lightbox-width-full"),e.draggable("enable"),e.resizable("enable")},_resizeEditors:function(){s(".fl-lightbox-resizable").each(function(){var e=s(this),t=e.find(".fl-builder-settings-fields").height(),e=e.find(".mce-edit-area > iframe, textarea.wp-editor-area, .ace_editor"),i=null;t<350&&(t=350),e.each(function(){(i=s(this)).hasClass("ace_editor")?(i.height(t-60),i.closest(".fl-field").data("editor").resize()):i.closest(".mce-container-body").find(".mce-toolbar-grp .mce-toolbar.mce-last").is(":visible")?i.height(t-175):i.height(t-150)})})},_savePosition:function(){var e=this._node.find(".fl-lightbox"),t={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=t,FLBuilder.ajax({action:"save_lightbox_position",data:t}))},_restorePosition:function(){var e=this._node.find(".fl-lightbox"),t=this._getPositionSettings();t?e.css(t):e.css({top:25,left:FLBuilderConfig.isRtl?"-25":25})},_getPositionSettings:function(){var e=FLBuilderConfig.userSettings.lightbox;if(!e)return!1;var t=window.innerHeight,i=parseInt(e.height),l=parseInt(e.top),o=parseInt(e.left),n=(parseInt(e.top),parseInt(e.width));return o+n+100>screen.width&&(e.left=screen.width-n-250),o<0&&(e.left=50),(t<i&&546<t||t<l+i)&&(t<i&&(e.height=t-50),e.top=0),e}}}(jQuery),!function(s){FLIconSelector={_content:null,_lightbox:null,_rendered:!1,_filterText:"",_liveFilterText:"",open:function(i){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(),s(".fl-icons-filter-text-live").focus()),FLIconSelector._lightbox.on("icon-selected",function(e,t){FLIconSelector._lightbox.off("icon-selected"),FLIconSelector._lightbox.close(),i(t)})},_render:function(){FLIconSelector._lightbox=new FLLightbox({className:"fl-icon-selector"}),FLIconSelector._rendered=!0,FLBuilder.addHook("endEditingSession",function(){FLIconSelector._lightbox.close()})},_getContentComplete:function(e){e=FLBuilder._jsonParse(e);FLIconSelector._content=e.html,FLIconSelector._lightbox.setContent(e.html),s(".fl-icons-filter-text-live").on("keyup",s.debounce(1e3,FLIconSelector.livefilter)),s(".fl-icons-filter-text-live").focus(),s(".fl-icons-list i").on("click",FLIconSelector._select),s(".fl-icon-selector-cancel").on("click",s.proxy(FLIconSelector._lightbox.close,FLIconSelector._lightbox)),FLIconSelector.renderRecent()},renderRecent:function(){var e=FLBuilderConfig.recentIcons;if(e.length<1)return s(".fl-icons-section.recent h2.recent").hide(),!1;s(".fl-icons-section.recent h2.recent").show(),s(".fl-icons-section.recent").show(),s(".recent-icons").html(""),s.each(e,function(e,t){s(".recent-icons").append('<i class="'+t+'"></i>')}),s(".recent-icons").show(),s(".recent-icons i").on("click",FLIconSelector._select),recents=s(".recent-icons i"),s.each(recents,function(e,t){"none"==window.getComputedStyle(s(t)[0],":before").getPropertyValue("content")&&s(t).hide()})},livefilter:function(){var e=s(".fl-icons-filter-text-live").val();if(e===FLIconSelector._liveFilterText)return!1;s(".fl-icons-section.results").html(""),""===e?(FLIconSelector._liveFilterText="",s(".fl-icons-section").show(),FLIconSelector.renderRecent()):(s(".fl-icons-section.recent").hide(),s(".fl-icons-section.all-icons").hide(),s(".fl-icons-section.results").html('<i class="fas fa-spinner fa-spin"></i>'),FLIconSelector._liveFilterText=e,FLBuilder.ajax({action:"query_icons",text:e},FLIconSelector._query_result))},_query_result:function(e){var t=s(".fl-icons-section.results"),o="";if(!e||"[]"===e)return o="<h2>No Icons Found</h2>",FLIconSelector.renderRecent(),t.html(o),t.show(),!1;var e=FLBuilder._jsonParse(e),n="";s.each(e,function(e,l){o+="<h2>"+l.name+"</h2>",s.each(l.data,function(e,i){s.each(i.styles,function(e,t){switch(n="",t){case"solid":n="fas";break;case"regular":n="far";break;case"light":n="fal";break;case"duotone":n="fad";break;case"thin":n="fa-thin";break;case"brands":n="fa-brands fab";break;case"legacy":n=l.prefix}0<n.length&&(n+=" "),o+='<i class="'+n+i.tag+'" title="'+i.label+'"></i>'})})}),t.html(o),t.show(),s(".fl-icons-section.results i").on("click",FLIconSelector._select)},_filter:function(){var e=s(".fl-icons-filter-select").val(),t=s(".fl-icons-filter-text").val()||"";"all"==e?s(".fl-icons-section").show():(s(".fl-icons-section").hide(),s(".fl-"+e).show()),""!==(FLIconSelector._filterText=t)?s(".fl-icons-list i").each(FLIconSelector._filterIcon):s(".fl-icons-list i").show()},_filterIcon:function(){var e=s(this);-1==e.attr("class").indexOf(FLIconSelector._filterText)?e.hide():e.show()},_select:function(){var e=s(this).attr("class");FLBuilder.ajax({action:"recent_icons",icon:e},FLIconSelector._updateRecents),FLIconSelector._lightbox.trigger("icon-selected",e)},_updateRecents:function(e){FLBuilderConfig.recentIcons=FLBuilder._jsonParse(e)}}}(jQuery),!function(i){(FLStyleSheet=function(e){"object"==typeof e&&i.extend(this,e),this._createSheet()}).prototype={id:null,_sheet:null,_sheetElement:null,updateRule:function(e,t,i){for(var l=this._sheet.cssRules||this._sheet.rules,o=null,n=0;n<l.length;n++)l[n].selectorText.toLowerCase().replace(/\s/g,"")==e.toLowerCase().replace(/\s/g,"")&&(o=l[n]);if(o)if("object"==typeof t)for(n in t)this.setProperty(o,n,t[n]);else this.setProperty(o,t,i);else this.addRule(e,t,i)},setProperty:function(e,t,i){var l="";e.style.setProperty?(-1<i.indexOf("!important")&&(l="important",i=i.replace("!important","").trim()),e.style.setProperty(t,i,l)):e.style[this._toCamelCase(t)]=i},addRule:function(e,t,i){var l="",o="";if("object"==typeof t)for(o in t)l+=o+":"+t[o]+";";else l=t+":"+i+";";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 e=this.id?' id="'+this.id+'"':"",t=this.className?' class="'+this.className+'"':"";this._sheet||(this._sheetElement=i('<style type="text/css"'+e+t+"></style>"),i("body").append(this._sheetElement),this._sheet=this._sheetElement[0].sheet)},_toCamelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}}}(jQuery),!function(y){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,_codeDisabled:!1,_sandbox:{},_publishAndRemain:!1,_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._initSanityChecks(),FLBuilder._initTipTips(),FLBuilder._initTinyMCE(),FLBuilder._bindEvents(),FLBuilder._bindOverlayEvents(),FLBuilder._setupEmptyLayout(),FLBuilder._highlightEmptyCols(),FLBuilder._checkEnv(),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(e){return jQuery.fn.oldReady(function(){try{"function"==typeof e&&e(y)}catch(e){FLBuilder.logError(e)}})})},_initSanityChecks:function(){FLBuilderConfig.uploadPath&&"undefined"==typeof FLBuilderLayout&&(url='<a href="'+FLBuilderConfig.uploadUrl+'">wp-admin -> Settings -> Media</a>',FLBuilder.alert('<strong>Critcal Error</strong><p style="font-size:15px;">Please go to '+url+" and make sure uploads folder settings is blank</p>"),y(".fl-builder-alert-close").hide())},_initGlobalErrorHandling:function(){FLBuilderConfig.debug||(window.onerror=function(e,t,i,l,o){return FLBuilder.logGlobalError(e,t,i,l,o),!0})},_initPostLock:function(){void 0!==wp.heartbeat&&(wp.heartbeat.interval(30),wp.heartbeat.enqueue("fl_builder_post_lock",{post_id:FLBuilderConfig.postId}))},_initClassNames:function(){var e=y("html"),t=y("body");e.addClass("fl-builder-edit"),t.addClass("fl-builder"),FLBuilderConfig.simpleUi&&t.addClass("fl-builder-simple"),FLBuilder._contentClass=".fl-builder-content-"+FLBuilderConfig.postId,y(FLBuilder._contentClass).addClass("fl-builder-content-editing")},_initMediaUploader:function(){wp.media.model.settings.post.id=FLBuilderConfig.postId},_initOverflowFix:function(){y(FLBuilder._contentClass).parents().css("overflow","visible")},_initScrollbars:function(){var e=y(".fl-nanoscroller").nanoScroller({alwaysVisible:!0,preventPageScrolling:!0,paneClass:"fl-nanoscroller-pane",sliderClass:"fl-nanoscroller-slider",contentClass:"fl-nanoscroller-content"}).filter(".fl-builder-settings-fields"),t=e.find(".fl-nanoscroller-pane");t.length&&(t=t.get(0).style.display,e=e.find(".fl-nanoscroller-content"),"none"===t?e.removeClass("has-scrollbar"):e.addClass("has-scrollbar"))},_initSortables:function(){var e={appendTo:FLBuilder._contentClass,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="",i="",l="",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: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",i="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?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";y(".fl-builder-rows").sortable(y.extend({},e,{connectWith:t,items:".fl-builder-block-row",stop:FLBuilder._rowDragStop})),y(".fl-builder-row-templates").sortable(y.extend({},e,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",items:".fl-builder-block-row-template:not(.fl-builder-block-disabled)",stop:FLBuilder._nodeTemplateDragStop})),y(".fl-builder-saved-rows").sortable(y.extend({},e,{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})),y(".fl-builder-saved-columns").sortable(y.extend({},e,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:i,items:".fl-builder-block-saved-column",stop:FLBuilder._nodeTemplateDragStop})),y(".fl-builder-modules, .fl-builder-widgets").sortable(y.extend({},e,{connectWith:l,items:".fl-builder-block-module:not(.fl-builder-block-disabled)",stop:FLBuilder._moduleDragStop})),y(".fl-builder-module-templates").sortable(y.extend({},e,{connectWith:l,items:".fl-builder-block-module-template",stop:FLBuilder._nodeTemplateDragStop})),y(".fl-builder-saved-modules").sortable(y.extend({},e,{cancel:".fl-builder-node-template-actions, .fl-builder-node-template-edit, .fl-builder-node-template-delete",connectWith:l,items:".fl-builder-block-saved-module",stop:FLBuilder._nodeTemplateDragStop})),y(".fl-row-sortable-proxy").sortable(y.extend({},e,{connectWith:FLBuilder._contentClass+" .fl-row-drop-target",helper:FLBuilder._rowDragHelper,start:FLBuilder._rowDragStart,stop:FLBuilder._rowDragStop})),y(".fl-col-sortable-proxy").sortable(y.extend({},e,{connectWith:l,helper:FLBuilder._colDragHelper,start:FLBuilder._colDragStart,stop:FLBuilder._colDragStop})),y(FLBuilder._contentClass+" .fl-col-content").sortable(y.extend({},e,{connectWith:l,handle:".fl-module-sortable-proxy",helper:FLBuilder._moduleDragHelper,items:".fl-module, .fl-col-group",start:FLBuilder._moduleDragStart,stop:FLBuilder._moduleDragStop})),y(FLBuilder._contentClass+" .fl-row-drop-target").sortable(e),y(FLBuilder._contentClass+" .fl-col-group-drop-target").sortable(e),y(FLBuilder._contentClass+" .fl-col-drop-target").sortable(e)},_refreshSortables:function(){y(".ui-sortable").sortable("refresh")},_initStrings:function(){y.validator.messages.required=FLBuilderStrings.validateRequiredMessage},_bindEvents:function(){var e=FLBuilderLayout._isTouch();$excludedLinks=y(".fl-builder-bar a, .fl-builder--content-library-panel a, .fl-page-nav .nav a"),y("a").not($excludedLinks).on("click",FLBuilder._preventDefault),y(".fl-page-nav .nav a").on("click",FLBuilder._headerLinkClicked),y("body").on("click",".fl-builder-content a",FLBuilder._preventDefault),y("body").on("mouseup","button.fl-builder-button",this._buttonMouseUp.bind(this)),y(document).on("heartbeat-tick",FLBuilder._initPostLock),y(window).on("beforeunload",FLBuilder._warnBeforeUnload),y("body").on("click touchend",".fl-builder-has-submenu",FLBuilder._submenuParentClicked),y("body").on("click touchend",".fl-builder-has-submenu a",FLBuilder._submenuChildClicked),y("body").on("mouseenter",".fl-builder-submenu",FLBuilder._submenuMouseenter),y("body").on("mouseleave",".fl-builder-submenu",FLBuilder._submenuMouseleave),y("body").on("mouseenter",".fl-builder-submenu .fl-builder-has-submenu",FLBuilder._submenuNestedParentMouseenter),y(".fl-builder-panel-actions .fl-builder-panel-close").on("click",FLBuilder._closePanel),y(".fl-builder-blocks-section-title").on("click",FLBuilder._blockSectionTitleClicked),y("body").on("mousedown",".fl-builder-node-template-actions",FLBuilder._stopPropagation),y("body").on("mousedown",".fl-builder-node-template-edit",FLBuilder._stopPropagation),y("body").on("mousedown",".fl-builder-node-template-delete",FLBuilder._stopPropagation),y("body").on("click",".fl-builder-node-template-edit",FLBuilder._editNodeTemplateClicked),y("body").on("click",".fl-builder-node-template-delete",FLBuilder._deleteNodeTemplateClicked),y("body").on("mousedown",".fl-builder-block:not(.fl-builder-block-disabled)",FLBuilder._blockDragInit),y("body").on("mouseup",FLBuilder._blockDragCancel),y("body").on("click",".fl-builder-actions .fl-builder-cancel-button",FLBuilder._cancelButtonClicked),y("body").on("click",".fl-builder-save-user-template-button",FLBuilder._saveUserTemplateClicked),y("body").on("click",".fl-builder-duplicate-layout-button",FLBuilder._duplicateLayoutClicked),y("body").on("click",".fl-builder-layout-settings-button",FLBuilder._layoutSettingsClicked),y("body").on("click",".fl-builder-layout-settings .fl-builder-settings-save",FLBuilder._saveLayoutSettingsClicked),y("body").on("click",".fl-builder-layout-settings .fl-builder-settings-cancel",FLBuilder._cancelLayoutSettingsClicked),y("body").on("click",".fl-builder-global-settings-button",FLBuilder._globalSettingsClicked),y("body").on("click",".fl-builder-global-settings .fl-builder-settings-save",FLBuilder._saveGlobalSettingsClicked),y("body").on("click",".fl-builder-global-settings .fl-builder-settings-cancel",FLBuilder._cancelLayoutSettingsClicked),y("body").on("click",".fl-user-template",FLBuilder._userTemplateClicked),y("body").on("click",".fl-user-template-edit",FLBuilder._editUserTemplateClicked),y("body").on("click",".fl-user-template-delete",FLBuilder._deleteUserTemplateClicked),y("body").on("click",".fl-builder-template-replace-button",FLBuilder._templateReplaceClicked),y("body").on("click",".fl-builder-template-append-button",FLBuilder._templateAppendClicked),y("body").on("click",".fl-builder-template-actions .fl-builder-cancel-button",FLBuilder._templateCancelClicked),y("body").on("click",".fl-builder-user-template-settings .fl-builder-settings-save",FLBuilder._saveUserTemplateSettings),y("body").on("click",".fl-builder-help-tour-button",FLBuilder._startHelpTour),y("body").on("click",".fl-builder-knowledge-base-button",FLBuilder._viewKnowledgeBaseClicked),y("body").on("click",".fl-builder-forums-button",FLBuilder._visitForumsClicked),y("body").on("click",".fl-builder-no-tour-button",FLBuilder._noTourButtonClicked),y("body").on("click",".fl-builder-yes-tour-button",FLBuilder._yesTourButtonClicked),y("body").on("click",".fl-builder-alert-close",FLBuilder._alertClose),y("body").on("contextmenu",".fl-block-overlay",FLBuilder._onContextmenu),y("body").on("click touchend",".fl-row-overlay .fl-block-remove",FLBuilder._deleteRowClicked),y("body").on("click touchend",".fl-row-overlay .fl-block-copy",FLBuilder._rowCopyClicked),y("body").on("mousedown",".fl-row-overlay .fl-block-move",FLBuilder._rowDragInit),y("body").on("touchstart",".fl-row-overlay .fl-block-move",FLBuilder._rowDragInitTouch),y("body").on("click touchend",".fl-row-overlay .fl-block-settings",FLBuilder._rowSettingsClicked),y("body").on("click",".fl-builder-row-settings .fl-builder-settings-save",FLBuilder._saveSettings),e?y("body").on("touchend",".fl-row-overlay",FLBuilder._rowSettingsClicked):y("body").on("click",".fl-row-overlay",FLBuilder._rowSettingsClicked),y("body").on("click touchend",".fl-block-col-submenu .fl-block-row-reset",FLBuilder._resetRowWidthClicked),y("body").on("mousedown",".fl-col-overlay .fl-block-move",FLBuilder._colDragInit),y("body").on("touchstart",".fl-col-overlay .fl-block-move",FLBuilder._colDragInitTouch),y("body").on("click touchend",".fl-block-col-copy",FLBuilder._copyColClicked),y("body").on("click touchend",".fl-col-overlay .fl-block-remove",FLBuilder._deleteColClicked),y("body").on("click touchend",".fl-col-overlay .fl-block-settings",FLBuilder._colSettingsClicked),y("body").on("click",".fl-builder-col-settings .fl-builder-settings-save",FLBuilder._saveSettings),e?y("body").on("touchend",".fl-col-overlay",FLBuilder._colSettingsClicked):y("body").on("click",".fl-col-overlay",FLBuilder._colSettingsClicked),y("body").on("mousedown",".fl-block-col-submenu .fl-block-col-move",FLBuilder._colDragInit),y("body").on("touchstart",".fl-block-col-submenu .fl-block-col-move",FLBuilder._colDragInitTouch),y("body").on("click touchend",".fl-block-col-submenu .fl-block-col-edit",FLBuilder._colSettingsClicked),y("body").on("click touchend",".fl-block-col-submenu .fl-block-col-delete",FLBuilder._deleteColClicked),y("body").on("click touchend",".fl-block-col-submenu .fl-block-col-reset",FLBuilder._resetColumnWidthsClicked),y("body").on("mouseenter",".fl-block-col-submenu li",FLBuilder._showColHighlightGuide),y("body").on("mouseleave",".fl-block-col-submenu li",FLBuilder._removeColHighlightGuides),y("body").on("mousedown",".fl-block-col-submenu .fl-block-col-move-parent",FLBuilder._colDragInit),y("body").on("touchstart",".fl-block-col-submenu .fl-block-col-move-parent",FLBuilder._colDragInitTouch),y("body").on("click touchend",".fl-block-col-submenu .fl-block-col-edit-parent",FLBuilder._colSettingsClicked),y("body").on("click touchend",".fl-module-overlay .fl-block-remove",FLBuilder._deleteModuleClicked),y("body").on("click touchend",".fl-module-overlay .fl-block-copy",FLBuilder._moduleCopyClicked),y("body").on("mousedown",".fl-module-overlay .fl-block-move",FLBuilder._moduleDragInit),y("body").on("touchstart",".fl-module-overlay .fl-block-move",FLBuilder._moduleDragInitTouch),y("body").on("click touchend",".fl-module-overlay .fl-block-settings",FLBuilder._moduleSettingsClicked),y("body").on("click",".fl-builder-module-settings .fl-builder-settings-save",FLBuilder._saveModuleClicked),y("body").on("click touchend",".fl-module-overlay .fl-block-col-settings",FLBuilder._colSettingsClicked),e?y("body").on("touchend",".fl-module-overlay",FLBuilder._moduleSettingsClicked):y("body").on("click",".fl-module-overlay",FLBuilder._moduleSettingsClicked),y("body").on("click",".fl-builder-settings-save-as",FLBuilder._showNodeTemplateSettings),y("body").on("click",".fl-builder-node-template-settings .fl-builder-settings-save",FLBuilder._saveNodeTemplate),y("body").on("click",".fl-builder-settings-tabs a",FLBuilder._settingsTabClicked),y("body").on("show",".fl-builder-settings-tabs a",FLBuilder._calculateSettingsTabsOverflow),y("body").on("hide",".fl-builder-settings-tabs a",FLBuilder._calculateSettingsTabsOverflow),y("body").on("click",".fl-builder-settings-cancel",FLBuilder._settingsCancelClicked),y("body").on("click",".fl-builder-settings-tabs-overflow-menu > a",FLBuilder._settingsTabsToOverflowMenuItemClicked.bind(this)),y("body").on("click",".fl-builder-settings-tabs-more",FLBuilder._toggleTabsOverflowMenu.bind(this)),y("body").on("click",".fl-builder-settings-tabs-overflow-click-mask",FLBuilder._hideTabsOverflowMenu.bind(this)),y("body").on("mouseover",".fl-help-tooltip-icon",FLBuilder._showHelpTooltip),y("body").on("mouseout",".fl-help-tooltip-icon",FLBuilder._hideHelpTooltip),y("body").on("click",".fl-builder-field-add",FLBuilder._addFieldClicked),y("body").on("click",".fl-builder-field-copy",FLBuilder._copyFieldClicked),y("body").on("click",".fl-builder-field-delete",FLBuilder._deleteFieldClicked),y("body").on("click",".fl-photo-field .fl-photo-select",FLBuilder._selectSinglePhoto),y("body").on("click",".fl-photo-field .fl-photo-edit",FLBuilder._selectSinglePhoto),y("body").on("click",".fl-photo-field .fl-photo-replace",FLBuilder._selectSinglePhoto),y("body").on("click",".fl-photo-field .fl-photo-remove",FLBuilder._singlePhotoRemoved),y("body").on("click",".fl-multiple-photos-field .fl-multiple-photos-select",FLBuilder._selectMultiplePhotos),y("body").on("click",".fl-multiple-photos-field .fl-multiple-photos-edit",FLBuilder._selectMultiplePhotos),y("body").on("click",".fl-multiple-photos-field .fl-multiple-photos-add",FLBuilder._selectMultiplePhotos),y("body").on("click",".fl-video-field .fl-video-select",FLBuilder._selectSingleVideo),y("body").on("click",".fl-video-field .fl-video-replace",FLBuilder._selectSingleVideo),y("body").on("click",".fl-video-field .fl-video-remove",FLBuilder._singleVideoRemoved),y("body").on("click",".fl-multiple-audios-field .fl-multiple-audios-select",FLBuilder._selectMultipleAudios),y("body").on("click",".fl-multiple-audios-field .fl-multiple-audios-edit",FLBuilder._selectMultipleAudios),y("body").on("click",".fl-multiple-audios-field .fl-multiple-audios-add",FLBuilder._selectMultipleAudios),y("body").on("click",".fl-icon-field .fl-icon-select",FLBuilder._selectIcon),y("body").on("click",".fl-icon-field .fl-icon-replace",FLBuilder._selectIcon),y("body").on("click",".fl-icon-field .fl-icon-remove",FLBuilder._removeIcon),y("body").on("click",".fl-form-field .fl-form-field-edit",FLBuilder._formFieldClicked),y("body").on("click",".fl-form-field-settings .fl-builder-settings-save",FLBuilder._saveFormFieldClicked),y("body").on("click",".fl-layout-field-option",FLBuilder._layoutFieldClicked),y("body").on("click",".fl-link-field-select",FLBuilder._linkFieldSelectClicked),y("body").on("click",".fl-link-field-search-cancel",FLBuilder._linkFieldSelectCancelClicked),y("body").on("change",".fl-loop-data-source-select select[name=data_source]",FLBuilder._loopDataSourceChange),y("body").on("change",".fl-custom-query select[name=post_type]",FLBuilder._customQueryPostTypeChange),y("body").on("change",".fl-text-field-add-value",FLBuilder._textFieldAddValueSelectChange),y("body").on("focus",".fl-field input[type=number]",FLBuilder._onNumberFieldFocus),y("body").on("blur",".fl-field input[type=number]",FLBuilder._onNumberFieldBlur),FLBuilder.addHook("didCompleteAJAX",FLBuilder._refreshSettingsPreviewReference),FLBuilder.addHook("didRenderLayoutComplete",FLBuilder._refreshSettingsPreviewReference)},_unbindEvents:function(){y("a").off("click",FLBuilder._preventDefault),y(".fl-page-nav .nav a").off("click",FLBuilder._headerLinkClicked),y("body").undelegate(".fl-builder-content a","click",FLBuilder._preventDefault)},_rebindEvents:function(){y("a").on("click",FLBuilder._preventDefault),y(".fl-page-nav .nav a").on("click",FLBuilder._headerLinkClicked),y("body").on("click",".fl-builder-content a",FLBuilder._preventDefault)},_bindOverlayEvents:function(){var e=y(FLBuilder._contentClass);e.on("mouseenter touchstart",".fl-row",FLBuilder._rowMouseenter),e.on("mouseleave",".fl-row",FLBuilder._rowMouseleave),e.on("mouseleave",".fl-row-overlay",FLBuilder._rowMouseleave),e.on("mouseenter touchstart",".fl-col",FLBuilder._colMouseenter),e.on("mouseleave",".fl-col",FLBuilder._colMouseleave),e.on("mouseenter touchstart",".fl-module",FLBuilder._moduleMouseenter),e.on("mouseleave",".fl-module",FLBuilder._moduleMouseleave)},_destroyOverlayEvents:function(){var e=y(FLBuilder._contentClass);e.undelegate(".fl-row","mouseenter touchstart",FLBuilder._rowMouseenter),e.undelegate(".fl-row","mouseleave",FLBuilder._rowMouseleave),e.undelegate(".fl-row-overlay","mouseleave",FLBuilder._rowMouseleave),e.undelegate(".fl-col","mouseenter touchstart",FLBuilder._colMouseenter),e.undelegate(".fl-col","mouseleave",FLBuilder._colMouseleave),e.undelegate(".fl-module","mouseenter touchstart",FLBuilder._moduleMouseenter),e.undelegate(".fl-module","mouseleave",FLBuilder._moduleMouseleave)},_onContextmenu:function(e){y(this).hide()},_preventDefault:function(e){e.preventDefault()},_stopPropagation:function(e){e.stopPropagation()},_headerLinkClicked:function(e){var t=y(this).attr("href");this.hash||(e.preventDefault(),FLBuilderConfig.isUserTemplate||(FLBuilder._exitUrl=-1<t.indexOf("?")?t:t+"?fl_builder",FLBuilder.triggerHook("triggerDone")))},_warnBeforeUnload:function(){var e=0<y(".fl-builder-row-settings").length,t=0<y(".fl-builder-col-settings").length,i=0<y(".fl-builder-module-settings").length;if(e||t||i)return FLBuilderStrings.unloadWarning},_upgradeClicked:function(){window.open(FLBuilderConfig.upgradeUrl)},_toggleProModules:function(){var e=y(".fl-builder-blocks-pro-expand"),t=y(".fl-builder-blocks-pro-closed"),i=y(".fl-builder-blocks-pro-open");e.toggleClass("fl-builder-blocks-pro-expand-rotate"),t.length?(t.removeClass("fl-builder-blocks-pro-closed"),t.addClass("fl-builder-blocks-pro-open")):(i.removeClass("fl-builder-blocks-pro-open"),i.addClass("fl-builder-blocks-pro-closed"))},_showProMessage:function(e){var t,i;FLBuilderConfig.lite&&(t=new FLLightbox({className:"fl-builder-pro-lightbox",destroyOnClose:!0}),i=wp.template("fl-pro-lightbox"),t.open(i({feature:e})))},_initTipTips:function(){var e=y(".fl-tip:not(.fl-has-tip)");e.each(function(){var e=y(this);e.addClass("fl-has-tip"),null==e.attr("data-title")&&e.attr("data-title",e.attr("title"))}),FLBuilderLayout._isTouch()||e.tipTip({defaultPosition:"top",delay:300,maxWidth:"auto"})},_hideTipTips:function(){y("#tiptip_holder").stop().hide()},_submenuParentClicked:function(e){var t=y("body"),i=y(this),l=i.find(".fl-builder-submenu");i.hasClass("fl-builder-submenu-open")?(t.removeClass("fl-builder-submenu-open"),i.removeClass("fl-builder-submenu-open"),i.removeClass("fl-builder-submenu-right")):(i.offset().left+l.width()>y(window).width()&&i.addClass("fl-builder-submenu-right"),t.addClass("fl-builder-submenu-open"),i.addClass("fl-builder-submenu-open")),l.closest(".fl-row-overlay").addClass("fl-row-menu-active"),FLBuilder._hideTipTips(),e.preventDefault(),e.stopPropagation()},_submenuChildClicked:function(e){var t=y("body"),i=y(this).parents(".fl-builder-has-submenu");i.parents(".fl-builder-has-submenu").length||(t.removeClass("fl-builder-submenu-open"),i.removeClass("fl-builder-submenu-open"))},_submenuMouseenter:function(e){var t=y(this).data("timeout");void 0!==t&&clearTimeout(t)},_submenuMouseleave:function(e){var t=y("body"),i=y(this),l=setTimeout(function(){t.removeClass("fl-builder-submenu-open"),i.closest(".fl-builder-has-submenu").removeClass("fl-builder-submenu-open")},500);i.closest(".fl-row-overlay").removeClass("fl-row-menu-active"),i.data("timeout",l)},_submenuNestedParentMouseenter:function(e){var t=y(this),i=t.find(".fl-builder-submenu");t.width()+t.offset().left+i.width()>y(window).width()&&t.addClass("fl-builder-submenu-right")},_closeAllSubmenus:function(){y(".fl-builder-submenu-open").removeClass("fl-builder-submenu-open")},_buttonMouseUp:function(e){y(e.currentTarget).blur()},_closePanel:function(){FLBuilder.triggerHook("hideContentPanel")},_showPanel:function(){FLBuilder.triggerHook("showContentPanel")},_togglePanel:function(){FLBuilder.triggerHook("toggleContentPanel")},_blockSectionTitleClicked:function(){var e=y(this).parent();e.hasClass("fl-active")?e.removeClass("fl-active"):(y(".fl-builder-blocks-section").removeClass("fl-active"),e.addClass("fl-active")),FLBuilder._initScrollbars()},_publishLayout:function(e,t){if(FLBuilder._triggerSettingsSave(t,!0)){_.isUndefined(e)&&(e=!0);const i=FL.Builder.data.getLayoutActions();t=FLBuilder._onPublishComplete.bind(FLBuilder,e);i.saveLayout(!0,e,t)}},_publishButtonClicked:function(e){FLBuilder._publishLayout(e)},_onPublishComplete:function(e){e&&(FLBuilderConfig.shouldRefreshOnPublish?FLBuilder._exit():FLBuilder._exitWithoutRefresh()),y("#wp-admin-bar-fl-builder-frontend-edit-link .fl-builder-admin-bar-status-dot").css("color","#6bc373"),FLBuilder.triggerHook("didPublishLayout",{shouldExit:e})},_draftButtonClicked:function(){FLBuilder.showAjaxLoader();const e=FL.Builder.data.getLayoutActions();e.saveDraft()},_discardButtonClicked:function(){if(confirm(FLBuilderStrings.discardMessage)){FLBuilder.showAjaxLoader();const e=FL.Builder.data.getLayoutActions();e.discardDraft()}else FLBuilder.triggerHook("didCancelDiscard")},_cancelButtonClicked:function(){FLBuilder._exitUrl=null,FLBuilder._actionsLightbox.close()},_exit:function(){var e=window.location.href;try{var t=void 0!==window.opener.FLBuilder}catch(e){t=!1}FLBuilderConfig.isUserTemplate&&void 0!==window.opener&&window.opener?(t&&("undefined"==typeof FLBuilderGlobalNodeId?window.opener.FLBuilder._updateLayout():window.opener.FLBuilder._updateNode(FLBuilderGlobalNodeId)),window.close()):(e=FLBuilder._exitUrl||(e=(e=e.replace("?fl_builder&","?")).replace("?fl_builder","")).replace("&fl_builder",""),window.location.href=e)},_exitWithoutRefresh:function(){window.location.href;try{var t=void 0!==window.opener.FLBuilder}catch(e){t=!1}FLBuilderConfig.isUserTemplate&&t&&window.opener?(t&&("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 t=FLBuilderConfig.adminUrl;window.location.href=t+"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 e=y(".fl-builder-settings #fl-field-css textarea:not(.ace_text-input)");e.on("change",FLBuilder._layoutSettingsCSSChanged),FLBuilder._layoutSettingsCSSCache=e.val()},_layoutSettingsCSSChanged:function(){FLBuilder._layoutSettingsCSSTimeout&&clearTimeout(FLBuilder._layoutSettingsCSSTimeout),FLBuilder._layoutSettingsCSSTimeout=setTimeout(y.proxy(FLBuilder._layoutSettingsCSSDoChange,this),600)},_layoutSettingsCSSDoChange:function(){var e=y(".fl-builder-settings"),t=y(this);0<t.parents("#fl-field-css").find(".ace_error").length||((e.hasClass("fl-builder-layout-settings")?y("#fl-builder-layout-css"):y("#fl-builder-global-css")).html(t.val()),FLBuilder._layoutSettingsCSSTimeout=null)},_saveLayoutSettingsClicked:function(){for(var e=y(this).closest(".fl-builder-settings").serializeArray(),t={},i=0;i<e.length;i++)t[e[i].name]=e[i].value;FLBuilder.showAjaxLoader(),FLBuilder._lightbox.close(),FLBuilder._layoutSettingsCSSCache=null;const l=FL.Builder.data.getLayoutActions();l.saveLayoutSettings(t)},_cancelLayoutSettingsClicked:function(){(y(".fl-builder-settings").hasClass("fl-builder-layout-settings")?y("#fl-builder-layout-css"):y("#fl-builder-global-css")).html(FLBuilder._layoutSettingsCSSCache),FLBuilder._layoutSettingsCSSCache=null},_saveLayoutSettingsComplete:function(e){FLBuilder.triggerHook("didSaveLayoutSettingsComplete",e),FLBuilder._updateLayout()},_globalSettingsClicked:function(){FLBuilderSettingsForms.render({id:"global",className:"fl-builder-global-settings",settings:FLBuilderSettingsConfig.settings.global},function(){FLBuilder._layoutSettingsInitCSS()})},_saveGlobalSettingsClicked:function(){var e=y(this).closest(".fl-builder-settings"),t=e.validate().form(),e=FLBuilder._getSettings(e);if(t){FLBuilder.showAjaxLoader(),FLBuilder._layoutSettingsCSSCache=null;const i=FL.Builder.data.getLayoutActions();i.saveGlobalSettings(e),FLBuilder._lightbox.close()}},_saveGlobalSettingsComplete:function(e){FLBuilder.triggerHook("didSaveGlobalSettingsComplete",FLBuilder._jsonParse(e)),FLBuilder._updateLayout()},_initTemplateSelector:function(){0<y(FLBuilder._contentClass).find(".fl-row").length||FLBuilder.ContentPanel.show("modules")},_requestTemplateInsert:function(e,t){FLBuilder.layoutHasContent()?0==e?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate(0,!1,t)):(FLBuilder._selectedTemplateId=e,FLBuilder._selectedTemplateType=t,FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(e,!1,t)},_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(){FLBuilder.triggerHook("showContentPanel")},_applyTemplate:function(e,t,i){t=void 0!==t&&t?"1":"0",i=void 0===i?"core":i,FLBuilder._lightbox.close(),FLBuilder.showAjaxLoader();const l=FL.Builder.data.getLayoutActions();l.applyTemplate(e,t,i),FLBuilder.triggerHook("didApplyTemplate")},_applyTemplateComplete:function(e){e=FLBuilder._jsonParse(e);FLBuilder._renderLayout(e.layout),FLBuilder.triggerHook("didApplyTemplateComplete",e.config)},_applyUserTemplateComplete:function(e){e=FLBuilder._jsonParse(e);null!==e.layout_css&&y("#fl-builder-layout-css").html(e.layout_css),FLBuilder._renderLayout(e.layout),FLBuilder.triggerHook("didApplyTemplateComplete",e.config)},_saveUserTemplateClicked:function(){FLBuilderConfig.lite?FLBuilder._showProMessage("Saving Templates"):FLBuilderSettingsForms.render({id:"user_template",className:"fl-builder-user-template-settings",rules:{name:{required:!0}}})},_saveUserTemplateSettings:function(){var e=y(this).closest(".fl-builder-settings"),t=e.validate().form(),e=FLBuilder._getSettings(e);if(t){const i=FL.Builder.data.getLayoutActions();i.saveUserTemplateSettings(e),FLBuilder._lightbox.close()}},_saveUserTemplateSettingsComplete:function(e){e&&(e=FLBuilder._jsonParse(e),FLBuilderConfig.contentItems.template.push(e),FLBuilder.triggerHook("contentItemsChanged"))},_userTemplateClicked:function(){var e=y(this).attr("data-id");0<y(FLBuilder._contentClass).children(".fl-row").length?"blank"==e?confirm(FLBuilderStrings.changeTemplateMessage)&&(FLBuilder._lightbox._node.hide(),FLBuilder._applyTemplate("blank",!1,"user")):(FLBuilder._selectedTemplateId=e,FLBuilder._selectedTemplateType="user",FLBuilder._showTemplateActions(),FLBuilder._lightbox._node.hide()):FLBuilder._applyTemplate(e,!1,"user")},_editUserTemplateClicked:function(e){e.preventDefault(),e.stopPropagation(),window.open(y(this).attr("href"))},_deleteUserTemplateClicked:function(e){var t=y(this).closest(".fl-user-template").attr("data-id"),i=(y(".fl-user-template[data-id="+t+"]"),null),l=null;if(confirm(FLBuilderStrings.deleteTemplate)){const o=FL.Builder.data.getLayoutActions();for(l in o.deleteUserTemplate(t),FLBuilderConfig.contentItems.template)FLBuilderConfig.contentItems.template[l].postId==t&&(i=l);_.isNull(i)||(FLBuilderConfig.contentItems.template.splice(i,1),FLBuilder.triggerHook("contentItemsChanged"))}e.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 e=y(FLBuilder._contentClass);FLBuilderConfig.isUserTemplate&&"module"==FLBuilderConfig.userTemplateType||FLBuilderConfig.isUserTemplate&&"column"==FLBuilderConfig.userTemplateType||(e.removeClass("fl-builder-empty"),e.find(".fl-builder-empty-message").remove(),e.find(".fl-row, .fl-builder-block").length||(e.addClass("fl-builder-empty"),e.append('<span class="fl-builder-empty-message">'+FLBuilderStrings.emptyMessage+"</span>"),FLBuilder._initSortables()))},_updateNode:function(e,t){if(y(".fl-node-"+e).length){FLBuilder._showNodeLoading(e);const i=FL.Builder.data.getLayoutActions();i.renderNode(e,t)}},_updateLayout:function(){FLBuilder.showAjaxLoader();const e=FL.Builder.data.getLayoutActions();e.renderLayout(),e.fetchLayout()},_renderLayout:function(e,t){FLBuilder._layout?FLBuilder._layoutQueue.push({data:e,callback:t}):FLBuilder._layout=new FLBuilderAJAXLayout(e,t)},_renderLayoutComplete:function(){var e;FLBuilder._layout&&(FLBuilder._layout._complete(),FLBuilder._layout=null),FLBuilder._layoutQueue.length&&(e=FLBuilder._layoutQueue.shift(),FLBuilder._layout=new FLBuilderAJAXLayout(e.data,e.callback))},_resizeLayout:function(){y(window).trigger("resize"),"undefined"!=typeof YUI&&YUI().use("node-event-simulate",function(e){e.one(window).simulate("resize")})},layoutHasContent:function(){return 0<y(FLBuilder._contentClass).children(".fl-row").length},_initMediaElements:function(){var e={};void 0!==y.fn.mediaelementplayer&&("undefined"!=typeof _wpmejsSettings&&(e.pluginPath=_wpmejsSettings.pluginPath),y(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").mediaelementplayer(e))},_initDropTargets:function(){var e="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",t=y(FLBuilder._contentClass+" .fl-row"),i=null,l=y(FLBuilder._contentClass+" .fl-row"+e).find(".fl-col-group"),o=null,n=null,e="column"==FLBuilderConfig.userTemplateType?y(FLBuilder._contentClass+"> .fl-col").eq(0):null,s=0;for(y(".fl-col-drop-target").remove(),y(".fl-col-group-drop-target").remove(),y(".fl-row-drop-target").remove(),y(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>');s<t.length;s++)0===(i=t.eq(s)).find(".fl-col-group").length&&i.find(".fl-row-content").prepend('<div class="fl-drop-target fl-col-group-drop-target"></div>');for(e&&0===l.length&&(l=e.find(".fl-col-group"),e.append('<div class="fl-drop-target fl-col-drop-target"></div>'),e.append('<div class="fl-drop-target fl-drop-target-last fl-col-drop-target fl-col-drop-target-last"></div>')),s=0;s<l.length;s++)n=(o=l.eq(s)).find("> .fl-col"),o.hasClass("fl-col-group-nested")||(o.append('<div class="fl-drop-target fl-col-group-drop-target"></div>'),o.append('<div class="fl-drop-target fl-drop-target-last fl-col-group-drop-target fl-col-group-drop-target-last"></div>')),n.append('<div class="fl-drop-target fl-col-drop-target"></div>'),n.append('<div class="fl-drop-target fl-drop-target-last fl-col-drop-target fl-col-drop-target-last"></div>')},_blockDragHelper:function(e,t){var i=t.clone();return t.clone().insertAfter(t),i.addClass("fl-builder-block-drag-helper"),i},_blockDragInit:function(e){var t=y(e.currentTarget),i=null,l=y(window).scrollTop(),o=0;FLBuilder._dragEnabled=!0,FLBuilder._dragInitialScrollTop=l,0<t.closest("[data-node]").length?(i=t.closest("[data-node]")).addClass("fl-node-drag-init"):t.hasClass("fl-builder-block")&&y(".fl-row").each(function(){null===i&&0<y(this).offset().top-l&&(i=y(this))}),null!==i&&(o=i.offset().top-l),FLBuilder._highlightRowsAndColsForDrag(t),FLBuilder._adjustColHeightsForDrag(),FLBuilder._disableGlobalRows(),FLBuilder._disableGlobalCols(),FLBuilder._destroyOverlayEvents(),FLBuilder._initSortables(),y("body").addClass("fl-builder-dragging"),y(".fl-builder-empty-message").hide(),y(".fl-sortable-disabled").removeClass("fl-sortable-disabled"),"touchstart"===e.type||y(e.target).hasClass("fl-sortable-proxy-item ")||FLBuilder._removeAllOverlays(),0<o&&scrollTo(0,i.offset().top-o),FLBuilder.triggerHook("didInitDrag")},_blockDragStart:function(e,t){FLBuilder._dragging=!0,y(".fl-node-drag-init").removeClass("fl-node-drag-init"),FLBuilder.triggerHook("didStartDrag")},_blockDragSort:function(e,t){var i=t.placeholder.parent(),l=FLBuilderStrings.insert;FLBuilder._blockPreventSort(t.item,i)||(i.hasClass("fl-col-content")?l=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.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"):i.hasClass("fl-col-drop-target")||i.hasClass("fl-col-group-drop-target")?l="":i.hasClass("fl-row-drop-target")&&(l=t.item.hasClass("fl-builder-block-row")||t.item.hasClass("fl-builder-block-saved-row")||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(l),t.item.hasClass("fl-node-global")||t.item.hasClass("fl-builder-block-global")||y(".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,t){t.placeholder.css("opacity","0"),t.placeholder.animate({opacity:"1"},100)},_blockPreventSort:function(e,t){var i=!1,l=e.hasClass("fl-builder-block-row"),o=e.hasClass("fl-col-sortable-proxy-item"),n=t.hasClass("fl-col-content"),s=t.hasClass("fl-col-drop-target"),r=t.parents(".fl-col-group:not(.fl-col-group-nested)"),a=t.parents(".fl-col-group-nested");return(l||o)&&n&&0<a.length&&(i=!0),n&&!t.find(".fl-module, .fl-col").length&&(l&&"1-col"==e.data("cols")||o)&&(i=!0),l&&n&&-1<y.inArray(e.data("cols"),["5-cols","6-cols"])&&(i=!0),o&&0<y(".fl-node-dragging").find(".fl-col-group-nested").length&&(n||s&&0<a.length)&&(i=!0),s&&0<r.length&&0===a.length&&11<r.find("> .fl-col:visible").length&&(i=!0),(i=s&&0<a.length&&3<a.find(".fl-col:visible").length?!0:i)&&t.addClass("fl-sortable-disabled"),i},_blockDragStop:function(e,t){var i=y(window).scrollTop(),t=t.item.parent(),l=null,l=t.hasClass("fl-drop-target")&&t.closest("[data-node]").length?(t=t.closest("[data-node]")).offset().top-i:t.offset().top-i;t.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(),y("body").removeClass("fl-builder-dragging"),scrollTo(0,t.offset().top-l),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(),y("body").removeClass("fl-builder-dragging"),y(".fl-node-drag-init").removeClass("fl-node-drag-init"),y(".fl-node-dragging").removeClass("fl-node-dragging"),scrollTo(0,FLBuilder._dragInitialScrollTop))},_reorderNode:function(e,t){const i=FL.Builder.getActions();i.moveNode(e,t)},_reorderNodeComplete:function(e){var e=FLBuilder._jsonParse(e),t="didMove"+e.nodeType.charAt(0).toUpperCase()+e.nodeType.slice(1);FLBuilder.triggerHook("didMoveNode",e),FLBuilder.triggerHook(t,e)},_moveNode:function(e,t,i){const l=FL.Builder.getActions();l.moveNode(t,i,e)},_moveNodeComplete:function(e){const t=FLBuilder._jsonParse(e);e="didMove"+t.nodeType.charAt(0).toUpperCase()+t.nodeType.slice(1);FLBuilder.triggerHook("didMoveNode",t),FLBuilder.triggerHook(e,t)},_removeAllOverlays:function(){FLBuilder._removeRowOverlays(),FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides(),FLBuilder._removeModuleOverlays(),FLBuilder._hideTipTips(),FLBuilder._closeAllSubmenus()},_appendOverlay:function(e,t){var i=0,l=null,o=e.hasClass("fl-row")?e.find("> .fl-row-content-wrap"):e.find("> .fl-node-content"),n=parseInt(o.css("margin-top"),10),o=parseInt(o.css("margin-bottom"),10);return e.append(t),e.addClass("fl-block-overlay-active"),FLBuilder._initTipTips(),l=e.find("> .fl-block-overlay"),n<0&&(i=parseInt(l.css("top"),10),i=isNaN(i)?0:i,l.css("top",n+i+"px")),o<0&&(i=parseInt(l.css("bottom"),10),i=isNaN(i)?0:i,l.css("bottom",o+i+"px")),l},_buildOverlayOverflowMenu:function(e){var t,i=e.find(".fl-block-overlay-header"),l=e.find(".fl-block-overlay-actions"),e=e.find(".fl-block-has-rules"),o=l.data("original"),n=null,s=0,r=null,a=0,d=[],u=[],c=[],h=wp.template("fl-overlay-overflow-menu");for(null!=o&&(l.after(o),l.remove(),l=o),l.data("original",l.clone()),t=Math.floor(l[0].getBoundingClientRect().width)-8,n=l.find(" > i, > span.fl-builder-has-submenu"),e.length&&t+e.outerWidth()>i.outerWidth()&&(s+=e.outerWidth());a<n.length;a++)r=n.eq(a),t<(s+=Math.floor(r[0].getBoundingClientRect().width))?(u.push(r),r.remove()):d.push(r);if(0<u.length){for(0<d.length&&u.unshift(d.pop().remove()),a=0;a<u.length;a++)u[a].is(".fl-builder-has-submenu")?c.push({type:"submenu",label:u[a].find(".fa, .fas, .far").data("title"),submenu:u[a].find(".fl-builder-submenu")[0].outerHTML}):c.push({type:"action",label:u[a].data("title"),className:u[a].removeClass(function(e,t){return t.replace(/fl-block-([^\s]+)/,"")}).attr("class")});l.append(h(c)),FLBuilder._initTipTips()}},_removeRowOverlays:function(){y(".fl-row").removeClass("fl-block-overlay-active"),y(".fl-row-overlay").remove(),y(".fl-module").removeClass("fl-module-adjust-height"),y("body").removeClass("fl-builder-row-resizing"),FLBuilder._closeAllSubmenus()},_disableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&y(".fl-row.fl-node-global").addClass("fl-node-disabled")},_disableGlobalCols:function(){"column"!=FLBuilderConfig.userTemplateType&&y(".fl-row:not(.fl-node-global) .fl-col.fl-node-global").addClass("fl-node-disabled")},_enableGlobalRows:function(){"row"!=FLBuilderConfig.userTemplateType&&y(".fl-node-disabled").removeClass("fl-node-disabled")},_enableGlobalCols:function(){"column"!=FLBuilderConfig.userTemplateType&&y(".fl-node-disabled").removeClass("fl-node-disabled")},_rowMouseenter:function(){var e=y(this),t=e.attr("data-node"),i=e.offset().top,l=null,o=null,n=wp.template("fl-row-overlay"),s=FLBuilderResponsiveEditing._mode;e.closest(".fl-builder-node-loading").length||e.hasClass("fl-block-overlay-active")||(FLBuilder._removeRowOverlays(),o=FLBuilder._appendOverlay(e,n({node:t,global:e.hasClass("fl-node-global"),hasRules:e.hasClass("fl-node-has-rules"),rulesTextRow:e.attr("data-rules-text"),rulesTypeRow:e.attr("data-rules-type")})),e.find(".fl-node-content:visible").each(function(){var e=y(this).offset().top;l=null===l||e<l?e:l}),null!==l&&l<i&&o.css("top",l-i-30+"px"),("default"===s&&o.offset().top<43||"default"!==s&&0===e.index())&&o.addClass("fl-row-overlay-header-bottom"),e.find(".fl-module").each(function(){var e=y(this);e.outerHeight(!0)<20&&e.addClass("fl-module-adjust-height")}),FLBuilder._buildOverlayOverflowMenu(o))},_rowMouseleave:function(e){var t=y(e.target),e=y(e.toElement)||y(e.relatedTarget),i=e.hasClass("fl-row-overlay"),l=0<e.closest(".fl-row-overlay").length,o=e.is("#tiptip_holder"),e=0<e.closest("#tiptip_holder").length;t.closest(".fl-block-col-resize").length||i||l||o||e||FLBuilder._removeRowOverlays()},_rowDragHelper:function(){return y('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.row+"</div>")},_rowDragInit:function(e){var t=y(e.target),i=y(".fl-row-sortable-proxy-item");t.closest(".fl-row").addClass("fl-node-dragging"),FLBuilder._blockDragInit(e),e.target=i[0],i.trigger(e)},_rowDragInitTouch:function(t){var e=y(t.target),i=y(".fl-row-sortable-proxy-item"),l=e.closest(".fl-row"),o=!1;e.on("touchmove",function(e){o||(t.currentTarget=l[0],FLBuilder._rowDragInit(t),o=!0),i.trigger(e)}),e.on("touchend",function(e){i.trigger(e)})},_rowDragStart:function(e,t){var i=y(FLBuilder._contentClass+" .fl-row"),l=y(".fl-node-dragging");1===i.length&&y(FLBuilder._contentClass).addClass("fl-builder-empty"),l.hide(),FLBuilder._blockDragStart(e,t)},_rowDragStop:function(e,t){var i=t.item,l=i.parent(),o=null,n=0;if(FLBuilder._blockDragStop(e,t),l.hasClass("fl-builder-rows"))i.remove();else if(l.hasClass("fl-row-sortable-proxy"))y(".fl-node-dragging").removeClass("fl-node-dragging").show();else if(i.hasClass("fl-builder-block")){if(l.hasClass("fl-sortable-disabled"))return i.remove(),void FLBuilder._showPanel();l.hasClass("fl-col-content")?FLBuilder._addColGroup(i.closest(".fl-col").attr("data-node"),i.attr("data-cols"),l.find("> .fl-module, .fl-col-group, .fl-builder-block").index(i)):l.hasClass("fl-col-drop-target")?FLBuilder._addCols(l.closest(".fl-col"),l.hasClass("fl-col-drop-target-last")?"after":"before",i.attr("data-cols"),0<l.closest(".fl-col-group-nested").length):l.hasClass("fl-col-group-drop-target")?(e=i.closest(".fl-col-group"),n=i.closest(".fl-row").find(".fl-row-content > .fl-col-group").index(e),FLBuilder._addColGroup(i.closest(".fl-row").attr("data-node"),i.attr("data-cols"),l.hasClass("fl-drop-target-last")?n+1:n)):(n=(o=i.closest(".fl-row")).length?y(FLBuilder._contentClass+" > .fl-row").index(o):0,FLBuilder._addRow(i.attr("data-cols"),l.hasClass("fl-drop-target-last")?n+1:n)),i.remove(),FLBuilder._showPanel(),y(".fl-builder-modules").siblings(".fl-builder-blocks-section-title").eq(0).trigger("click")}else o=y(".fl-node-dragging").removeClass("fl-node-dragging").show(),l.parent().hasClass("fl-builder-content")||(l.hasClass("fl-drop-target-last")?l.parent().after(o):l.parent().before(o),FLBuilder._reorderNode(o.attr("data-node"),o.index())),y(".fl-row-sortable-proxy").append(t.item)},_addRow:function(e,t,i){FLBuilder._showNodeLoadingPlaceholder(y(FLBuilder._contentClass),t),FLBuilder._newRowPosition=t;const l=FL.Builder.data.getLayoutActions();l.addRow(e,t,i)},_addRowComplete:function(e){var e="object"==typeof e?e:FLBuilder._jsonParse(e),t=y(FLBuilder._contentClass),i=y(e.html).data("node");e.nodeParent=t,e.nodePosition=FLBuilder._newRowPosition,FLBuilder._renderLayout(e,function(){FLBuilder._removeNodeLoadingPlaceholder(y(".fl-node-"+i)),FLBuilder.triggerHook("didAddRow",i)})},_deleteRowClicked:function(e){var t=y(e.target).closest(".fl-row").data("node");FL.Builder.getActions().deleteNode(t),e.stopPropagation()},_deleteRow:function(e){var t=e.attr("data-node");const i=FL.Builder.data.getLayoutActions();i.deleteNode(t),e.empty(),e.remove(),FLBuilder._setupEmptyLayout(),FLBuilder._removeRowOverlays(),FLBuilder.triggerHook("didDeleteRow",t)},_rowCopyClicked:function(e){var t=y(this).closest(".fl-row").attr("data-node");FLBuilder._copyRow(t),e.stopPropagation()},_copyRow:function(t){var e=FLBuilder._getJQueryElement(t),i=e.clone(),l=y(".fl-builder-settings[data-node]"),o=l.attr("data-node"),n=o===t?e:e.find('[data-node="'+o+'"]'),s=null;l.length&&n.length&&(s=FLBuilder._getSettings(l),FLBuilderSettingsConfig.nodes[o]=s),i.addClass("fl-node-"+t+"-clone fl-builder-node-clone"),i.find(".fl-block-overlay").remove(),e.after(i),FLBuilder._showNodeLoading(t+"-clone");const r=i.get(0),a=(r.scrollIntoView({behavior:"smooth",block:"center"}),FL.Builder.data.getLayoutActions());a.copyRow(t,s,o,function(e){e=FLBuilder._jsonParse(e);e.nodeParent=y(FLBuilder._contentClass),e.nodePosition=y(FLBuilder._contentClass+" > .fl-row").index(i),e.duplicatedRow=t,e.onAddNewHTML=function(){i.remove()},FLBuilder._rowCopyComplete(e)})},_rowCopyComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder.triggerHook("didDuplicateRow",{newNodeId:e.nodeId,oldNodeId:e.duplicatedRow})})},_rowSettingsClicked:function(e){var t=y(this),i=y(this).closest(".fl-row").attr("data-node"),l=0<t.closest(".fl-block-overlay-global").length;if(t.hasClass("fl-block-settings")||l&&"row"!=FLBuilderConfig.userTemplateType){const o=FL.Builder.data.getLayoutActions();o.displaySettings(i)}e.stopPropagation()},_showRowSettings:function(e,t){let i=null;t&&"row"!=FLBuilderConfig.userTemplateType?FLBuilderConfig.userCanEditGlobalTemplates&&((i=window.open(y('.fl-row[data-node="'+e+'"]').attr("data-template-url"))).FLBuilderGlobalNodeId=e):FLBuilderSettingsForms.render({id:"row",nodeId:e,className:"fl-builder-row-settings",attrs:'data-node="'+e+'"',buttons:t||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:t?[FLBuilderStrings.global]:[],settings:FLBuilderSettingsConfig.nodes[e],preview:{type:"row"}},function(){y("#fl-field-width select").on("change",FLBuilder._rowWidthChanged),y("#fl-field-content_width select").on("change",FLBuilder._rowWidthChanged)})},_rowWidthChanged:function(){var e=y("#fl-field-width select").val(),t=y("#fl-field-content_width select").val(),i=y("#fl-field-max_content_width");"fixed"==e||"full"==e&&"fixed"==t?i.show():i.hide()},_resetRowWidthClicked:function(e){var t=y(this).closest(".fl-row"),i=t.attr("data-node"),l=t.find(".fl-row-content"),o=FLBuilderConfig.global.row_width+"px",n=y(".fl-builder-row-settings");t.hasClass("fl-row-fixed-width")&&t.css("max-width",o),l.css("max-width",o),n.length&&n.find("[name=max_content_width]").val("");const s=FL.Builder.data.getLayoutActions();s.resetRowWidth(i),FLBuilder._closeAllSubmenus(),FLBuilder.triggerHook("didResetRowWidth",i),e.stopPropagation()},_highlightEmptyCols:function(){var e="row"==FLBuilderConfig.userTemplateType||"column"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)",e=(y(FLBuilder._contentClass+" .fl-row"+e),y(FLBuilder._contentClass+" .fl-col"+e));e.removeClass("fl-col-highlight").find(".fl-col-content").css("height",""),e.each(function(){var e=y(this);0===e.find(".fl-module, .fl-col").length&&e.addClass("fl-col-highlight")})},_highlightRowsAndColsForDrag:function(e){var t="row"==FLBuilderConfig.userTemplateType?"":":not(.fl-node-global)";"column"==FLBuilderConfig.userTemplateType&&(t=":not(:first)"),y(FLBuilder._contentClass+" .fl-row").addClass("fl-row-highlight"),e&&e.closest(".fl-row-overlay").length||y(FLBuilder._contentClass+" .fl-col"+t).addClass("fl-col-highlight")},_removeEmptyRowAndColHighlights:function(){y(".fl-row-highlight").removeClass("fl-row-highlight"),y(".fl-col-highlight").removeClass("fl-col-highlight")},_adjustColHeightsForDrag:function(){var e="row"==FLBuilderConfig.userTemplateType?"":".fl-row:not(.fl-node-global) ",t="column"==FLBuilderConfig.userTemplateType?"":".fl-col:not(.fl-node-global) ",i=y(FLBuilder._contentClass),l=i.find(e+".fl-col-group:not(.fl-col-group-nested) > "+t+"> .fl-col-content"),o=i.find(e+".fl-col-group-nested "+t+".fl-col-content"),n=0;for(y(".fl-node-drag-init").hide();n<o.length;n++)FLBuilder._adjustColHeightForDrag(o.eq(n));for(n=0;n<l.length;n++)FLBuilder._adjustColHeightForDrag(l.eq(n));y(".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 e=y(this),t=e.find("a"),i=e.closest(".fl-col"),l=i.parents(".fl-col"),o=y('<div class="fl-col-highlight-guide"></div>'),e=e.closest(".fl-block-overlay").offset().top;(i=t.hasClass("fl-block-col-move-parent")||t.hasClass("fl-block-col-edit-parent")?l:i).hasClass("fl-col-highlight")||(i.find("> .fl-col-content").append(o),i.addClass("fl-col-has-highlight-guide"),e<(t=o.offset().top)&&o.css("top",e-t+4+"px"))},_removeColHighlightGuides:function(){y(".fl-col-has-highlight-guide").removeClass("fl-col-has-highlight-guide"),y(".fl-col-highlight-guide").remove()},_colMouseenter:function(e){var t=y(this),i=t.closest(".fl-col-group"),l=(i.attr("data-node"),i.hasClass("fl-col-group-has-child-loading")),o=t.hasClass("fl-node-global"),n=0<t.parents(".fl-node-global").length,s=t.closest(".fl-col-group").find("> .fl-col").length,i=i.find("> .fl-col").index(t),r=0===i,i=s===i+1,a=0<t.find(".fl-col").length,d=0<t.find(".fl-module").length,u=t.parents(".fl-col"),c=u.closest(".fl-col-group"),h=0<u.length,f=void 0!==t.data("template-url"),g="column"==FLBuilderConfig.userTemplateType&&!h;numParentCols=h?c.find("> .fl-col").length:0,parentIndex=c.find("> .fl-col").index(u),parentFirst=h&&0===parentIndex,parentLast=h&&numParentCols===parentIndex+1,row=t.closest(".fl-row"),rowIsFixedWidth=!!row.find(".fl-row-fixed-width").addBack(".fl-row-fixed-width").length,userCanResizeRows=FLBuilderConfig.rowResize.userCanResizeRows,hasRules=t.hasClass("fl-node-has-rules"),template=wp.template("fl-col-overlay"),overlay=null,FLBuilderConfig.simpleUi&&!o||o&&n&&d&&!f||o&&"column"==FLBuilderConfig.userTemplateType&&d||!o&&0<t.find(".fl-module").length||0<t.find(".fl-builder-node-loading-placeholder").length||!d&&a||n&&a&&!f||t.closest(".fl-builder-node-loading").length||(t.hasClass("fl-block-overlay-active")||(FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),overlay=FLBuilder._appendOverlay(t,template({global:o,groupLoading:l,numCols:s,first:r,last:i,isRootCol:g,hasChildCols:a,hasParentCol:h,parentFirst:parentFirst,parentLast:parentLast,numParentCols:numParentCols,rowIsFixedWidth:rowIsFixedWidth,userCanResizeRows:userCanResizeRows,hasRules:hasRules})),FLBuilder._buildOverlayOverflowMenu(overlay),FLBuilder._initColDragResizing()),y("body").addClass("fl-block-overlay-muted"))},_colMouseleave:function(e){var t=y(this),i=y(e.target),e=y(e.toElement)||y(e.relatedTarget),l=0<t.find(".fl-module").length,t=(t.hasClass("fl-node-global"),void 0!==t.data("template-url")),o=e.is("#tiptip_holder"),e=0<e.closest("#tiptip_holder").length;i.closest(".fl-block-col-resize").length||o||e||l&&!t||(FLBuilder._removeColOverlays(),FLBuilder._removeColHighlightGuides(),FLBuilder._closeAllSubmenus())},_removeColOverlays:function(){var e=y(".fl-col");e.removeClass("fl-block-overlay-active"),e.find(".fl-col-overlay").remove(),y("body").removeClass("fl-block-overlay-muted"),FLBuilder._closeAllSubmenus()},_colDragHelper:function(){return y('<div class="fl-builder-block-drag-helper">'+FLBuilderStrings.column+"</div>")},_colDragInit:function(e){var t=y(e.target),i=y(".fl-col-sortable-proxy-item"),l=t.closest(".fl-col");(l=t.hasClass("fl-block-col-move-parent")?l.parents(".fl-col"):l).addClass("fl-node-dragging"),FLBuilder._blockDragInit(e),FLBuilder._removeColHighlightGuides(),e.target=i[0],i.trigger(e)},_colDragInitTouch:function(t){var e=y(t.target),i=y(".fl-col-sortable-proxy-item"),l=e.closest(".fl-col"),o=(e.closest(".fl-module"),!1);e.on("touchmove",function(e){o||(t.currentTarget=l[0],FLBuilder._colDragInit(t),o=!0),i.trigger(e)}),e.on("touchend",function(e){i.trigger(e)})},_colDragStart:function(e,t){var i=y(".fl-node-dragging");i.hide(),FLBuilder._resetColumnWidths(i.parent()),FLBuilder._blockDragStart(e,t)},_colDragStop:function(e,t){FLBuilder._blockDragStop(e,t);var e=y(".fl-node-dragging").removeClass("fl-node-dragging").show(),i=e.attr("data-node"),l=t.item.parent(),o=e.parent(),n=o.attr("data-node");newGroup=l.closest(".fl-col-group"),newGroupId=newGroup.attr("data-node"),newRow=l.closest(".fl-row"),position=0,l.closest('[data-node="'+i+'"]').length||l.hasClass("fl-sortable-disabled")||l.hasClass("fl-col-sortable-proxy")?FLBuilder._resetColumnWidths(o):l.hasClass("fl-col-content")?(e.remove(),0===o.find(".fl-col").length&&o.remove(),position=l.find("> .fl-module, .fl-col-group, .fl-col-sortable-proxy-item").index(t.item),FLBuilder._addColGroup(l.closest(".fl-col").attr("data-node"),i,position)):l.hasClass("fl-col-drop-target")?(l.hasClass("fl-col-drop-target-last")?l.parent().after(e):l.parent().before(e),FLBuilder._resetColumnWidths(newGroup),FL.Builder.data.getLayoutActions(),n==newGroupId?FL.Builder.getActions().moveNode(i,e.index()):FL.Builder.getActions().moveNode(i,e.index(),newGroupId,[n,newGroupId]),FLBuilder._resizeLayout()):l.hasClass("fl-col-group-drop-target")?(e.remove(),0===o.find(".fl-col").length&&o.remove(),position=newRow.find(".fl-row-content > .fl-col-group").index(newGroup),position=l.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addColGroup(newRow.attr("data-node"),i,position)):l.hasClass("fl-row-drop-target")&&(e.remove(),position=l.closest(".fl-builder-content").find(".fl-row").index(newRow),position=l.hasClass("fl-drop-target-last")?position+1:position,FLBuilder._addRow(i,position)),0===o.find(".fl-col").length&&o.remove(),y(".fl-col-sortable-proxy").append(t.item),FLBuilder._highlightEmptyCols(),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder._closeAllSubmenus()},_colSettingsClicked:function(e){var t=y(this),i=t.closest(".fl-col"),l=i.attr("data-node"),o=0<t.parent().find("ul.fl-builder-submenu").length,n=0<t.closest(".fl-block-overlay-global").length;t.closest(".fl-block-overlay-global").hasClass("fl-col-overlay"),"column"!=FLBuilderConfig.userTemplateType&&i.attr("data-template-url");if(!FLBuilder._colResizing&&(!n||FLBuilderConfig.userCanEditGlobalTemplates)&&(!o||t.hasClass("fl-col-overlay"))){t.hasClass("fl-block-col-edit-parent")&&(l=i.parents(".fl-col").attr("data-node"));const s=FL.Builder.data.getLayoutActions();s.displaySettings(l),e.stopPropagation()}},_showColSettings:function(t,e,i){if(e&&i&&"row"!==FLBuilderConfig.userTemplateType){if(FLBuilderConfig.userCanEditGlobalTemplates){let e=window.open(y('.fl-col[data-node="'+t+'"]').attr("data-template-url"));e.FLBuilderGlobalNodeId=t}}else FLBuilderSettingsForms.render({id:"col",nodeId:t,className:"fl-builder-col-settings",attrs:'data-node="'+t+'"',buttons:e||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:e?[FLBuilderStrings.global]:[],settings:FLBuilderSettingsConfig.nodes[t],preview:{type:"col"}},function(){0===y(".fl-col.fl-node-"+t).siblings(".fl-col").length&&y("#fl-field-equal_height, #fl-field-content_alignment").hide()})},_copyColClicked:function(e){var t=y(this).closest(".fl-col").attr("data-node");FLBuilder._copyColumn(t),e.stopPropagation()},_copyColumn:function(t){var e=FLBuilder._getJQueryElement(t),i=e.clone(),l=e.parent(),o=y(".fl-builder-settings[data-node]"),n=o.attr("data-node"),s=n===t?e:e.find('[data-node="'+n+'"]'),r=null;o.length&&s.length&&(r=FLBuilder._getSettings(o),FLBuilderSettingsConfig.nodes[n]=r),i.addClass("fl-node-"+t+"-clone fl-builder-node-clone"),i.find(".fl-block-overlay").remove(),e.after(i),FLBuilder._showNodeLoading(t+"-clone"),FLBuilder._resetColumnWidths(l);const a=FL.Builder.data.getLayoutActions();a.copyColumn(t,r,n,function(e){e=FLBuilder._jsonParse(e);e.nodeParent=l,e.nodePosition=i.index(),e.duplicatedColumn=t,e.onAddNewHTML=function(){i.remove()},FLBuilder._copyColComplete(e)})},_copyColComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder._resetColumnWidths(e.nodeParent),FLBuilder.triggerHook("didDuplicateColumn",{newNodeId:e.nodeId,oldNodeId:e.duplicatedColumn})})},_deleteColClicked:function(e){var t=y(e.target).closest(".fl-col").data("node");FL.Builder.getActions().deleteNode(t),e.stopPropagation()},_getColToDelete:function(e){var t=e.closest(".fl-col-group"),i=e.parents(".fl-col"),l=0<i.length,o=i.find("> .fl-col-content > .fl-module, > .fl-col-content > .fl-col-group"),n=e.siblings(".fl-col");return l&&1===o.length&&(0===n.length?e=i:1!==n.length||n.find(".fl-module").length||(e=t)),e},_deleteCol:function(e){var t=e.attr("data-node"),i=e.closest(".fl-row"),l=e.closest(".fl-col-group"),o=0;if(e.remove(),rowCols=i.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(i);else{0===groupCols.length?l.remove():(o=6===groupCols.length?16.65:7===groupCols.length?14.28:Math.round(100/groupCols.length*100)/100,groupCols.css("width",o+"%"),FLBuilder.triggerHook("didResetColumnWidths",{cols:groupCols}));const n=FL.Builder.data.getLayoutActions();n.deleteColumn(t,o),FLBuilder._initDropTargets(),FLBuilder._initSortables(),FLBuilder.triggerHook("didDeleteColumn",t)}},_addCols:function(e,t,i,l,o){var n=e.closest(".fl-col-group"),s=n.find(".fl-col").index(e),e=e.attr("data-node");i=void 0===i?"1-col":i,l=(l=void 0!==l&&l)?1:0,"after"==t&&s++,FLBuilder._showNodeLoadingPlaceholder(n,s),FLBuilder._removeAllOverlays();const r=FL.Builder.data.getLayoutActions();r.addColumns(e,t,i,l,o)},_addColsComplete:function(e){var t="object"==typeof e?e:FLBuilder._jsonParse(e);t.nodeParent=FLBuilder._newColParent,t.nodePosition=FLBuilder._newColPosition,FLBuilder._renderLayout(t,function(){FLBuilder._removeNodeLoadingPlaceholder(y(".fl-node-"+t.nodeId)),FLBuilder.triggerHook("didAddColumn",t.nodeId),FLBuilder.triggerHook("didResetColumnWidths",{cols:y(".fl-node-"+t.nodeId).find("> .fl-col")})})},_addColGroup:function(e,t,i,l){var o=y(".fl-node-"+e);FLBuilder._newColGroupPosition=i,o.hasClass("fl-col")?FLBuilder._newColGroupParent=o.find(" > .fl-col-content"):FLBuilder._newColGroupParent=o.find(".fl-row-content"),FLBuilder._showNodeLoadingPlaceholder(FLBuilder._newColGroupParent,i);const n=FL.Builder.data.getLayoutActions();n.addColumnGroup(e,t,i,l)},_addColGroupComplete:function(e){var t=FLBuilder._jsonParse(e),e=y(t.html),i=e.data("node");e.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(y(".fl-node-"+i)),FLBuilder.triggerHook("didAddColumnGroup",i)})},_initColDragResizing:function(){y(".fl-block-col-resize").not(".fl-block-row-resize").draggable({axis:"x",start:FLBuilder._colDragResizeStart,drag:FLBuilder._colDragResize,stop:FLBuilder._colDragResizeStop})},_colDragResizeStart:function(e,t){for(var i=y(t.helper),l="",o=i.hasClass("fl-block-col-resize-parent"),n=o?i.closest(".fl-col").parents(".fl-col"):null,s=o?n.parents(".fl-col-group"):i.closest(".fl-col-group"),r=s.find("> .fl-col"),a=o?n:i.closest(".fl-col"),o=a.attr("data-node"),n=y("[data-node="+o+"] #fl-field-size input"),d=null,u=100,c=0,o=null,h=null,f=(d=i.hasClass("fl-block-col-resize-e")?(l="e",a.nextAll(".fl-col").first()):(l="w",a.prevAll(".fl-col").first())).attr("data-node"),f=y("[data-node="+f+"] #fl-field-size input");c<r.length;c++)r.eq(c).data("node")!=a.data("node")&&r.eq(c).data("node")!=d.data("node")&&(u-=parseFloat(r.eq(c)[0].style.width));n.length?(o=n,h="col"):f.length&&(o=f,h="sibling"),FLBuilder._colResizeData={handle:i,feedbackLeft:i.find(".fl-block-col-resize-feedback-left"),feedbackRight:i.find(".fl-block-col-resize-feedback-right"),direction:l,groupWidth:s.outerWidth(),col:a,id:a.attr("data-node"),colWidth:parseFloat(a[0].style.width)/100,sibling:d,siblingId:d.attr("data-node"),offset:t.position.left,availWidth:u,setting:o,settingType:h,layoutActions:FL.Builder.data.getLayoutActions()},FLBuilder._colResizing=!0,y("body").addClass("fl-builder-col-resizing"),FLBuilder._closePanel(),FLBuilder._destroyOverlayEvents(),FLBuilder.triggerHook("col-resize-start")},_colDragResize:function(e,t){var i=FLBuilder._colResizeData,l=FLBuilderConfig.isRtl?"w":"e",o=i.handle.closest(".fl-block-overlay"),t=(i.offset-t.position.left)/i.groupWidth,t=l==i.direction?100*(i.colWidth-t):100*(i.colWidth+t),n=Math.round(100*t)/100,t=i.availWidth-t,s=Math.round(100*t)/100,t=Math.round(100*(i.availWidth-8))/100;n<8?(n=8,s=t):s<8&&(n=t,s=8),requestAnimationFrame(()=>{l==i.direction?(i.feedbackLeft.html(n.toFixed(1)+"%").show(),i.feedbackRight.html(s.toFixed(1)+"%").show()):(i.feedbackLeft.html(s.toFixed(1)+"%").show(),i.feedbackRight.html(n.toFixed(1)+"%").show()),i.col.css("width",n+"%"),i.sibling.css("width",s+"%"),i.setting&&("col"===i.settingType?i.setting.val(parseFloat(i.col[0].style.width)):"sibling"===i.settingType&&i.setting.val(parseFloat(i.sibling[0].style.width))),i.layoutActions.resizeColumn(i.id,n,i.siblingId,s,!1)}),FLBuilder._buildOverlayOverflowMenu(o),FLBuilder.triggerHook("col-resize-drag")},_colDragResizeStop:function(e,t){var i=FLBuilder._colResizeData,l=FLBuilder._colResizeData.handle.closest(".fl-block-overlay"),o=i.id,n=parseFloat(i.col[0].style.width),s=i.sibling.data("node"),i=parseFloat(i.sibling[0].style.width);FLBuilder._colResizeData.feedbackLeft.hide(),FLBuilder._colResizeData.feedbackRight.hide();const r=FL.Builder.data.getLayoutActions();r.resizeColumn(o,n,s,i),FLBuilder._buildOverlayOverflowMenu(l),FLBuilder._colResizeData=null,y("body").removeClass("fl-builder-col-resizing"),FLBuilder._bindOverlayEvents(),setTimeout(function(){FLBuilder._colResizing=!1},50),FLBuilder.triggerHook("col-resize-stop"),FLBuilder.triggerHook("didResizeColumn",{colId:o,colWidth:n,siblingId:s,siblingWidth:i})},_resetColumnWidthsClicked:function(e){var t=y(this),i=!!t.closest(".fl-row-overlay").length,l=null,o=[],n=null,s=0,r=y(".fl-builder-col-settings");(i?t.closest(".fl-row").find(".fl-row-content > .fl-col-group"):t.parents(".fl-col-group").last()).each(function(){for(l=y(this),n=l.find(".fl-col-group"),o.push(l.data("node")),FLBuilder._resetColumnWidths(l),s=0;s<n.length;s++)FLBuilder._resetColumnWidths(n.eq(s)),o.push(n.eq(s).data("node"))}),r.length&&(i=y(".fl-node-"+r.attr("data-node")),r.find("#fl-field-size input").val(parseFloat(i[0].style.width)));const a=FL.Builder.data.getLayoutActions();a.resetColWidths(o),FLBuilder.triggerHook("col-reset-widths"),FLBuilder._closeAllSubmenus(),e.stopPropagation()},_resetColumnWidths:function(e){var e=(e instanceof jQuery?e:y(e)).find(" > .fl-col:visible"),t=0,t=6===e.length?16.65:7===e.length?14.28:Math.round(100/e.length*100)/100;e.css("width",t+"%"),FLBuilder.triggerHook("didResetColumnWidths",{cols:e})},_moduleMouseenter:function(e){var t=y(this),i=(t.attr("data-node"),t.attr("data-name")),l=t.hasClass("fl-node-global"),o=0<t.parents(".fl-node-global").length,n=t.parents(".fl-col-group").last().hasClass("fl-col-group-has-child-loading"),s=t.closest(".fl-col-group").find("> .fl-col").length,r=t.closest(".fl-col"),a=0===r.index(),d=s===r.index()+1,u=r.parents(".fl-col"),c=0<u.length,h=c?u.closest(".fl-col-group").find("> .fl-col").length:0,f=c&&0===u.index(),u=c&&h===u.index()+1,g="column"==FLBuilderConfig.userTemplateType&&!c,p=t.closest(".fl-row"),m=p.hasClass("fl-node-global"),p=!!p.find(".fl-row-fixed-width").addBack(".fl-row-fixed-width").length,b=FLBuilderConfig.rowResize.userCanResizeRows,v=t.hasClass("fl-node-has-rules"),_=t.attr("data-rules-text"),L=t.attr("data-rules-type"),F=r.attr("data-rules-text"),w=r.attr("data-rules-type"),r=r.hasClass("fl-node-has-rules"),C=wp.template("fl-module-overlay");l&&o&&"row"!=FLBuilderConfig.userTemplateType&&m||l&&o&&"column"!=FLBuilderConfig.userTemplateType&&!m||t.closest(".fl-builder-node-loading").length||t.find(".fl-inline-editor:visible").length||(t.hasClass("fl-block-overlay-active")||(FLBuilder._removeColOverlays(),FLBuilder._removeModuleOverlays(),o=FLBuilder._appendOverlay(t,C({global:l,moduleName:i,groupLoading:n,numCols:s,colFirst:a,colLast:d,isRootCol:g,hasParentCol:c,numParentCols:h,parentFirst:f,parentLast:u,rowIsFixedWidth:p,userCanResizeRows:b,hasRules:v,rulesTextModule:_,rulesTypeModule:L,rulesTextCol:F,rulesTypeCol:w,colHasRules:r})),FLBuilder._buildOverlayOverflowMenu(o),FLBuilder._initColDragResizing()),y("body").addClass("fl-block-overlay-muted"))},_moduleMouseleave:function(e){y(this);var t=y(e.target),e=y(e.toElement)||y(e.relatedTarget),i=e.is("#tiptip_holder"),e=0<e.closest("#tiptip_holder").length;t.closest(".fl-block-col-resize").length||i||e||(FLBuilder._removeModuleOverlays(),FLBuilder._removeColHighlightGuides())},_removeModuleOverlays:function(){var e=y(".fl-module");e.removeClass("fl-block-overlay-active"),e.find(".fl-module-overlay").remove(),y("body").removeClass("fl-block-overlay-muted"),FLBuilder._closeAllSubmenus()},_moduleDragHelper:function(e,t){return y('<div class="fl-builder-block-drag-helper">'+t.attr("data-name")+"</div>")},_moduleDragInit:function(e){var t=y(e.target).closest(".fl-module");FLBuilder._blockDragInit(e),t.append('<div class="fl-module-sortable-proxy"></div>'),e.target=t.find(".fl-module-sortable-proxy")[0],t.trigger(e)},_moduleDragInitTouch:function(t){var e=y(t.target),i=e.closest(".fl-module"),l=!1;e.on("touchmove",function(e){l||(t.currentTarget=i[0],FLBuilder._moduleDragInit(t),l=!0),e.target=i.find(".fl-module-sortable-proxy")[0],y(e.target).trigger(e)}),e.on("touchend",function(e){e.target=i.find(".fl-module-sortable-proxy")[0],y(e.target).trigger(e),e.stopPropagation(),i.find(".fl-module-sortable-proxy").remove()})},_moduleDragStart:function(e,t){y(t.item).data("original-position",t.item.index()),FLBuilder._removeRowOverlays(),FLBuilder._blockDragStart(e,t)},_moduleDragStop:function(e,t){FLBuilder._blockDragStop(e,t);var i=t.item,l=i.parent(),o=null,n=0,s=0;if(y(".fl-module-sortable-proxy").remove(),l.hasClass("fl-builder-modules")||l.hasClass("fl-builder-widgets"))i.remove();else{if(i.hasClass("fl-builder-block")){if(l.hasClass("fl-sortable-disabled"))return i.remove(),void FLBuilder._showPanel();l.hasClass("fl-row-drop-target")?(l=i.closest(".fl-builder-content"),s=0,o=i.closest(".fl-row"),n=l.find(".fl-row").index(o)):l.hasClass("fl-col-group-drop-target")?(s=(l=i.closest(".fl-row-content")).closest(".fl-row").attr("data-node"),o=i.closest(".fl-col-group"),n=l.find(" > .fl-col-group").index(o)):l.hasClass("fl-col-drop-target")?(s=(l=i.closest(".fl-col-group")).attr("data-node"),o=i.closest(".fl-col"),n=l.find(" > .fl-col").index(o)):(n=l.find("> .fl-module, .fl-col-group, .fl-builder-block").index(i),s=i.closest(".fl-col").attr("data-node")),i.closest(".fl-drop-target-last").length&&(n+=1),FLBuilder._addModule(l,s,i.attr("data-type"),n,i.attr("data-widget"),i.attr("data-alias")),i.remove()}else{if(l.hasClass("fl-sortable-disabled"))return y(e.target).append(t.item),y(e.target).children().eq(t.item.data("original-position")).before(t.item),void FLBuilder._highlightEmptyCols();l.hasClass("fl-row-drop-target")?(o=i.closest(".fl-row"),n=i.closest(".fl-builder-content").children(".fl-row").index(o),n=i.closest(".fl-drop-target-last").length?n+1:n,FLBuilder._addRow("1-col",n,i.attr("data-node")),i.remove()):l.hasClass("fl-col-group-drop-target")?(o=i.closest(".fl-col-group"),n=i.closest(".fl-row-content ").find(" > .fl-col-group").index(o),n=i.closest(".fl-drop-target-last").length?n+1:n,FLBuilder._addColGroup(i.closest(".fl-row").attr("data-node"),"1-col",n,i.attr("data-node")),i.remove()):l.hasClass("fl-col-drop-target")?(o=i.closest(".fl-col"),n=i.closest(".fl-col-drop-target-last").length?"after":"before",FLBuilder._addCols(o,n,"1-col",0<i.closest(".fl-col-group-nested").length,i.attr("data-node")),i.remove()):FLBuilder._reorderModule(i)}FLBuilder._resizeLayout()}},_reorderModule:function(e){var t=e.closest(".fl-col").attr("data-node"),i=e.attr("data-parent"),l=e.attr("data-node"),o=e.index();t==i?FLBuilder._reorderNode(l,o):(e.attr("data-parent",t),FLBuilder._moveNode(t,l,o))},_deleteModuleClicked:function(e){var t=y(e.target).closest(".fl-module").data("node");FL.Builder.getActions().deleteNode(t),e.stopPropagation()},_getJQueryElement:function(e){return y(FLBuilder._contentClass).find('[data-node="'+e+'"]')},_needsDeleteConfirmation:function(e){if("module"===e.type)return!0;const t=FLBuilder._getJQueryElement(e.node);return 0<t.find(".fl-module").length},_deleteModule:function(e){var t=e.closest(".fl-row"),i=e.attr("data-node");const l=FL.Builder.data.getLayoutActions();l.deleteNode(i),e.empty(),e.remove(),t.removeClass("fl-block-overlay-muted"),FLBuilder._highlightEmptyCols(),FLBuilder._removeAllOverlays(),FLBuilder.triggerHook("didDeleteModule",{nodeId:i,moduleType:e.attr("data-type")})},_moduleCopyClicked:function(e){var t=y(this).closest(".fl-module").data("node");const i=FL.Builder.getActions();i.copyNode(t),e.stopPropagation()},_copyModule:function(t){var e=FLBuilder._getJQueryElement(t),i=e.clone(),l=e.parent(),o=y(".fl-builder-module-settings[data-node="+t+"]"),n={};o.length&&(n=FLBuilder._getSettings(o),FLBuilderSettingsConfig.nodes[t]=n),i.addClass("fl-node-"+t+"-clone fl-builder-node-clone"),i.find(".fl-block-overlay").remove(),e.after(i),FLBuilder._showNodeLoading(t+"-clone");const s=i.get(0),r=(s.scrollIntoView({behavior:"smooth",block:"center"}),FL.Builder.data.getLayoutActions());r.copyModule(t,n,function(e){e=FLBuilder._jsonParse(e);e.nodeParent=l,e.nodePosition=l.find(" > .fl-col-group, > .fl-module").index(i),e.duplicatedModule=t,e.onAddNewHTML=function(){i.remove()},FLBuilder._moduleCopyComplete(e)})},_moduleCopyComplete:function(e){FLBuilder._renderLayout(e,function(){FLBuilder.triggerHook("didDuplicateModule",{newNodeId:e.nodeId,oldNodeId:e.duplicatedModule,moduleType:e.moduleType})})},_moduleSettingsClicked:function(e){var t=y(this),i=(t.closest(".fl-module").attr("data-type"),t.closest(".fl-module").attr("data-node")),t=(t.closest(".fl-col").attr("data-node"),0<t.closest(".fl-block-overlay-global").length);if(e.stopPropagation(),!FLBuilder._colResizing&&(!t||FLBuilderConfig.userCanEditGlobalTemplates)){const l=FL.Builder.getActions();l.openSettings(i)}},_showModuleSettings:function(e,t){var i,l,o;FLBuilderSettingsConfig.modules&&(i=FLBuilderSettingsConfig.modules[e.type],l=e.settings||FLBuilderSettingsConfig.nodes[e.nodeId],o=y("head"),-1===y.inArray(e.type,FLBuilder._loadedModuleAssets)&&(""!==i.assets.css&&o.append(i.assets.css),""!==i.assets.js&&o.append(i.assets.js),FLBuilder._loadedModuleAssets.push(e.type)),FLBuilderSettingsForms.render({type:"module",id:e.type,nodeId:e.nodeId,className:"fl-builder-module-settings fl-builder-"+e.type+"-settings",attrs:'data-node="'+e.nodeId+'" data-parent="'+e.parentId+'" data-type="'+e.type+'"',buttons:e.global||FLBuilderConfig.lite||FLBuilderConfig.simpleUi?[]:["save-as"],badges:e.global?[FLBuilderStrings.global]:[],settings:l,legacy:e.legacy,helper:FLBuilder._moduleHelpers[e.type],rules:FLBuilder._moduleHelpers[e.type]?FLBuilder._moduleHelpers[e.type].rules:null,messages:FLBuilder._moduleHelpers[e.type]?FLBuilder._moduleHelpers[e.type].messages:null,hide:!(FLBuilderConfig.userCanEditGlobalTemplates||!e.global),preview:{type:"module",layout:e.layout,callback:function(){FLBuilder.triggerHook("didAddModule",{nodeId:e.nodeId,moduleType:l.type})}}},t))},_saveModuleClicked:function(){var e=y(this).closest(".fl-builder-settings"),t=e.attr("data-type"),t=(e.attr("data-node"),FLBuilder._moduleHelpers[t]),i=!0;void 0!==t&&(e.find("label.error").remove(),e.validate().hideErrors(),i=(i=e.validate().form())&&t.submit()),i?FLBuilder._saveSettings():FLBuilder._toggleSettingsTabErrors()},_addModule:function(e,t,i,l,o,n){FLBuilder._showNodeLoadingPlaceholder(e,l),e.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=e,FLBuilder._newModulePosition=l);const s=FL.Builder.data.getLayoutActions();s.addModule(i,t,l,{widget:void 0===o?"":o,alias:void 0===n?"":n,nodePreview:1})},_addModuleComplete:function(e){e=FLBuilder._jsonParse(e);e.layout&&(FLBuilder._newModuleParent&&FLBuilder._newModuleParent.find(".fl-builder-node-loading-placeholder").hide(),e.layout.nodeParent=FLBuilder._newModuleParent,e.layout.nodePosition=FLBuilder._newModulePosition),e.settings||(e.settings=FLBuilderSettingsConfig.defaults.modules[e.type]),y("form.fl-builder-settings").length||e.global?e.layout&&FLBuilder._renderLayout(e.layout):FLBuilder._showModuleSettings(e,function(){y(".fl-builder-module-settings").data("new-module","1")})},registerModuleHelper:function(e,t){FLBuilder._moduleHelpers[e]=y.extend({},{rules:{},init:function(){},submit:function(){return!0},preview:function(){}},t)},_registerModuleHelper:function(e,t){FLBuilder.registerModuleHelper(e,t)},_showNodeTemplateSettings:function(e){var t=y(".fl-builder-settings-lightbox .fl-builder-settings"),i=t.attr("data-node"),l=FLBuilderStrings.saveModule;if(t.hasClass("fl-builder-row-settings")?l=FLBuilderStrings.saveRow:t.hasClass("fl-builder-col-settings")&&(l=FLBuilderStrings.saveColumn),!FLBuilder._triggerSettingsSave(!1,!1,!1))return!1;FLBuilderSettingsForms.render({id:"node_template",nodeId:i,title:l,attrs:'data-node="'+i+'"',className:"fl-builder-node-template-settings",rules:{name:{required:!0}}},function(){FLBuilderConfig.userCanEditGlobalTemplates||y("#fl-field-global").hide()})},_saveNodeTemplate:function(){var e=y(".fl-builder-node-template-settings"),t=e.attr("data-node");if(e.validate().form()){FLBuilder._showNodeLoading(t);const i=FL.Builder.data.getLayoutActions();i.saveNodeTemplate(t,FLBuilder._getSettings(e)),FLBuilder._lightbox.close()}},_saveNodeTemplateComplete:function(e){var t,i=FLBuilder._jsonParse(e),l=y(".fl-builder-saved-"+i.type+"s"),o=l.find(".fl-builder-block"),n=null,s=i.name.toLowerCase(),r=0,a=wp.template("fl-node-template-block"),e={name:i.name,isGlobal:i.global,content:i.type,id:i.id,postID:i.postID,kind:"template",type:"user",link:i.link,category:{uncategorized:FLBuilderStrings.uncategorized}};if(FLBuilderConfig.contentItems.template.push(e),FLBuilder.triggerHook("contentItemsChanged"),i.layout&&(FLBuilder._renderLayout(i.layout),FLBuilder.triggerHook("didSaveGlobalNodeTemplate",i.config)),0===o.length)l.append(a(i));else for(;r<o.length;r++){if(t=(n=o.eq(r)).text().toLowerCase().trim(),0===r&&s<t){l.prepend(a(i));break}if(s<t){n.before(a(i));break}if(o.length-1===r){l.append(a(i));break}}l.find(".fl-builder-block-no-node-templates").remove()},_nodeTemplateDragStop:function(t,i){FLBuilder._blockDragStop(t,i);var t=i.item,i=t.parent(),l=null,o=0,n=null,s="",r=null;if(i.hasClass("fl-builder-blocks-section-content"))t.remove();else{if(t.hasClass("fl-builder-block-saved-row")||t.hasClass("fl-builder-block-row-template"))o=(n=t.closest(".fl-row")).length?y(FLBuilder._contentClass+" .fl-row").index(n):0,o=i.hasClass("fl-drop-target-last")?o+1:o,l=null,s="render_new_row_template",r=FLBuilder._addRowComplete,FLBuilder._newRowPosition=o,FLBuilder._showNodeLoadingPlaceholder(y(FLBuilder._contentClass),o);else if(t.hasClass("fl-builder-block-saved-column")){if(n=t.closest(".fl-col"),colGroup=i.closest(".fl-col-group"),colGroupId=colGroup.attr("data-node"),s="render_new_col_template",r=FLBuilder._addColsComplete,i.hasClass("fl-sortable-disabled"))return t.remove(),void FLBuilder._showPanel();i.hasClass("fl-row-drop-target")?(n=t.closest(".fl-row"),l=0,i=y(FLBuilder._contentClass),o=n.length?i.find(".fl-row").index(n):0):i.hasClass("fl-col-group-drop-target")?(i=t.closest(".fl-row-content"),l=t.closest(".fl-row").attr("data-node"),o=t.closest(".fl-row").find(".fl-row-content > .fl-col-group").index(t.closest(".fl-col-group"))):i.hasClass("fl-col-drop-target")&&(o=(i=t.closest(".fl-col-group")).children(".fl-col").index(t.closest(".fl-col")),l=i.attr("data-node")),t.closest(".fl-drop-target-last").length&&(o+=1),i.hasClass("fl-col-group")?FLBuilder._newColParent=null:FLBuilder._newColParent=i,FLBuilder._newColPosition=o,FLBuilder._showNodeLoadingPlaceholder(i,o)}else if(t.hasClass("fl-builder-block-saved-module")||t.hasClass("fl-builder-block-module-template")){if(s="render_new_module",r=FLBuilder._addModuleComplete,i.hasClass("fl-sortable-disabled"))return t.remove(),void FLBuilder._showPanel();i.hasClass("fl-row-drop-target")?(l=0,o=(i=t.closest(".fl-builder-content")).find(".fl-row").index(t.closest(".fl-row"))):i.hasClass("fl-col-group-drop-target")?(l=(i=t.closest(".fl-row-content")).closest(".fl-row").attr("data-node"),o=i.find(" > .fl-col-group").index(t.closest(".fl-col-group"))):l=i.hasClass("fl-col-drop-target")?(o=(i=t.closest(".fl-col-group")).children(".fl-col").index(t.closest(".fl-col")),i.attr("data-node")):(o=i.children(".fl-module, .fl-builder-block").index(t),t.closest(".fl-col").attr("data-node")),t.closest(".fl-drop-target-last").length&&(o+=1),i.hasClass("fl-col-group")?(FLBuilder._newModuleParent=null,FLBuilder._newModulePosition=0):(FLBuilder._newModuleParent=i,FLBuilder._newModulePosition=o),FLBuilder._showNodeLoadingPlaceholder(i,o)}n=t.attr("data-id"),i=t.attr("data-type");let e="render_new_row_template"===s?"row":"render_new_col_template"===s?"column":"module";const a=FL.Builder.data.getLayoutActions();a.addNodeTemplate(e,n,i,l,o,function(e){var t;-1<s.indexOf("row")?(t=FLBuilder._jsonParse(e),FLBuilder.triggerHook("didApplyRowTemplateComplete",t.config),r(t.layout)):-1<s.indexOf("col")?(t=FLBuilder._jsonParse(e),FLBuilder.triggerHook("didApplyColTemplateComplete",t.config),r(t.layout)):r(e)}),t.remove()}},_editNodeTemplateClicked:function(e){e.preventDefault(),e.stopPropagation(),window.open(y(this).attr("href"))},_deleteNodeTemplateClicked:function(e){var e=y(e.target),t=e.closest(".fl-builder-blocks-section").find(".fl-builder-blocks-section-content"),i=t.find(".fl-builder-block"),e=e.closest(".fl-builder-block"),l=e.hasClass("fl-builder-block-global"),o=l?FLBuilderStrings.deleteGlobalTemplate:FLBuilderStrings.deleteTemplate,n=e.attr("data-id");if(confirm(o)){e.remove(),1===i.length&&(e.hasClass("fl-builder-block-saved-row")?t.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedRows+"</span>"):t.append('<span class="fl-builder-block-no-node-templates">'+FLBuilderStrings.noSavedModules+"</span>")),e.hasClass("fl-builder-block-global")&&FLBuilder.showAjaxLoader();const s=FL.Builder.data.getLayoutActions();s.deleteNodeTemplate(n,l),o=_.findIndex(FLBuilderConfig.contentItems.template,{id:e.attr("data-id"),type:"user"}),FLBuilderConfig.contentItems.template.splice(o,1),FLBuilder.triggerHook("contentItemsChanged")}},_initSettingsForms:function(){FLBuilder._initSettingsSections(),FLBuilder._initButtonGroupFields(),FLBuilder._initCompoundFields(),FLBuilder._CodeFieldSSLCheck(),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(),y(".fl-builder-settings-fields").css("visibility","visible"),y(".fl-builder-settings button").on("click",function(e){e.preventDefault()}),FLBuilder.triggerHook("settings-form-init")},_destroySettingsForms:function(){FLBuilder._destroyEditorFields()},_setSettingsFormContent:function(e){y(".fl-legacy-settings").remove(),y("body").append(e)},_settingsTabClicked:function(e){var t=y(this),i=t.closest(".fl-builder-settings"),t=t.attr("href").split("#").pop();FLBuilder._resetSettingsTabsState(),i.find(".fl-builder-settings-tab").removeClass("fl-active"),i.find("#"+t).addClass("fl-active"),i.find(".fl-builder-settings-tabs .fl-active").removeClass("fl-active"),i.find("a[href*="+t+"]").addClass("fl-active"),FLBuilderConfig.rememberTab?localStorage.setItem("fl-builder-settings-tab",t):localStorage.setItem("fl-builder-settings-tab",""),FLBuilder._focusFirstSettingsControl(),e.preventDefault()},_resetSettingsTabsState:function(){var e=y(".fl-lightbox:visible");FLBuilder._hideTabsOverflowMenu(),e.find(".fl-builder-settings-tabs .fl-active").removeClass("fl-active"),e.find(".fl-builder-settings-tabs-overflow-menu .fl-active").removeClass("fl-active"),e.find(".fl-contains-active").removeClass("fl-contains-active")},_calculateSettingsTabsOverflow:function(){var e=y(".fl-lightbox:visible"),t=e.outerWidth(),i=e.hasClass("fl-lightbox-width-slim"),l=e.find(".fl-builder-settings-tabs"),o=e.find(".fl-builder-settings-tabs-overflow-menu"),n=e.find(".fl-builder-settings-tabs-more"),l=l.find("a"),s=!1,r=t-60,a=0,d=i?16:30;o.html(""),FLBuilder._hideTabsOverflowMenu(),l.removeClass("fl-overflowed"),l.each(function(){if(!y(this).is(":visible"))return!0;var e,t,i;s||(e=y(this).textWidth()+d+12,r<=(a+=e)&&(s=!0)),s?(e=y(this).html(),i=y(this).attr("href"),t="",y(this).hasClass("fl-active")&&(t="fl-active"),y(this).hasClass("error")&&(t+=" error"),i=y('<a href="'+i+'" '+(t=""!==t?'class="'+t+'"':t)+">"+e+"</a>"),o.append(i),y(this).addClass("fl-overflowed")):y(this).removeClass("fl-overflowed")}),s?e.addClass("fl-lightbox-has-tab-overflow"):e.removeClass("fl-lightbox-has-tab-overflow"),0<o.find(".fl-active").length?n.addClass("fl-contains-active"):n.removeClass("fl-contains-active"),0<o.find(".error").length?n.addClass("fl-contains-errors"):n.removeClass("fl-contains-errors")},_settingsTabsToOverflowMenuItemClicked:function(e){var t=y(e.currentTarget),i=t.attr("href"),l=t.closest(".fl-lightbox-header-wrap").find(".fl-builder-settings-tabs"),i=l.find('a[href="'+i+'"]'),l=l.find(".fl-builder-settings-tabs-more");FLBuilder._resetSettingsTabsState(),i.trigger("click"),t.addClass("fl-active"),l.addClass("fl-contains-active"),FLBuilder._hideTabsOverflowMenu(),e.preventDefault()},_hasOverflowTabs:function(){return 0<y(".fl-lightbox:visible").find(".fl-builder-settings-tabs-overflow-menu a").length},_showTabsOverflowMenu:function(){var e;FLBuilder._hasOverflowTabs()&&((e=y(".fl-lightbox:visible")).find(".fl-builder-settings-tabs-overflow-menu").css("display","flex"),e.find(".fl-builder-settings-tabs-overflow-click-mask").show(),this.isShowingSettingsTabsOverflowMenu=!0)},_hideTabsOverflowMenu:function(){var e=y(".fl-lightbox:visible");e.find(".fl-builder-settings-tabs-overflow-menu").css("display","none"),e.find(".fl-builder-settings-tabs-overflow-click-mask").hide(),this.isShowingSettingsTabsOverflowMenu=!1},_toggleTabsOverflowMenu:function(e){FLBuilder.isShowingSettingsTabsOverflowMenu?FLBuilder._hideTabsOverflowMenu():FLBuilder._showTabsOverflowMenu(),e.stopPropagation()},_initSettingsSections:function(){y(".fl-builder-settings:visible").find(".fl-builder-settings-section").each(FLBuilder._initSection)},_settingsCancelClicked:function(e){var t=y(".fl-builder-lightbox[data-parent]"),i=y(".fl-builder-module-settings"),l=null,o=null,n=null,s="column"==FLBuilderConfig.userTemplateType;if(0<t.length)FLBuilder._closeNestedSettings();else{0<i.length&&void 0!==i.data("new-module")?(l=y(FLBuilder.preview.state.html),n=(o=y(".fl-node-"+i.data("node"))).closest(".fl-col"),0<l.find(".fl-node-"+n.data("node")).length||s?FLBuilder._deleteModule(o):FLBuilder._deleteCol(n)):FLBuilder.preview&&FLBuilder.preview.revert();const r=FL.Builder.data.getLayoutActions();r.cancelDisplaySettings(),FLBuilder.preview=null,FLLightbox.closeParent(this),FLBuilder.triggerHook("didCancelNodeSettings")}},_focusFirstSettingsControl:function(){var e=y(".fl-builder-settings:visible"),t=e.find(".fl-builder-settings-tab.fl-active"),e=e.data("node"),i=t.find(".fl-field").first(),l=i.find('input:not([type="hidden"]), textarea, select, button, a, .fl-editor-field').first();e&&y(".fl-node-"+e+" .fl-inline-editor").length||("undefined"!=typeof tinyMCE&&l.hasClass("fl-editor-field")?(t=l.find("textarea.wp-editor-area").attr("id"),tinyMCE.get(t).focus()):setTimeout(function(){l.focus().css("animation-name","fl-grab-attention")},300),i.css("animation-name","fl-grab-attention"),i.on("animationend",function(){i.css("animation-name","")}))},_initSettingsValidation:function(e,t){y(".fl-builder-settings").last().validate({ignore:".fl-ignore-validation",rules:e,messages:t=t||{},errorPlacement:FLBuilder._settingsErrorPlacement})},_settingsErrorPlacement:function(e,t){e.appendTo(t.parent())},_toggleSettingsTabErrors:function(){for(var e,t=y(".fl-builder-settings:visible"),i=t.find(".fl-builder-settings-tab"),l=null,o=0;o<i.length;o++)e=(l=i.eq(o)).find("label.error"),(tabLink=t.find(".fl-builder-settings-tabs a[href*="+l.attr("id")+"]")).find(".fl-error-icon").remove(),tabLink.removeClass("error"),0<e.length&&(tabLink.append('<span class="fl-error-icon"></span>'),tabLink.addClass("error"));FLBuilder._calculateSettingsTabsOverflow()},_getSettings:function(e){FLBuilder._updateEditorFields();for(var t,i,l=e.serializeArray(),o=0,n=0,s="",r=[],a=[],d={},o=0;o<l.length;o++)if(t=l[o].value.replace(/\r/gm,"").replace(/&#39;/g,"'"),!(-1<l[o].name.indexOf("flrich")))if(-1<l[o].name.indexOf("[")){for(i=l[o].name.replace(/\[(.*)\]/,""),r=[],a=(s=l[o].name.replace(i,"")).match(/\[[^\]]*\]/g),n=0;n<a.length;n++)"[]"!=a[n]&&r.push(a[n].replace(/\[|\]/g,""));s.match(/\[\]\[[^\]]*\]\[[^\]]+\]/)||s.match(/\[\]\[[^\]]*\]\[\]\[[^\]]+\]/)?(void 0===d[i]&&(d[i]={}),void 0===d[i][r[0]]&&(d[i][r[0]]={}),d[i][r[0]][r[1]]=t):s.match(/\[\]\[[^\]]*\]\[\]/)?(void 0===d[i]&&(d[i]={}),void 0===d[i][r[0]]&&(d[i][r[0]]=[]),d[i][r[0]].push(t)):s.match(/\[\]\[[^\]]*\]/)?(void 0===d[i]&&(d[i]={}),d[i][r[0]]=t):s.match(/\[\]/)&&(void 0===d[i]&&(d[i]=[]),d[i].push(t))}else d[l[o].name]=t;for(s in d)if(void 0!==d["as_values_"+s]){d[s]=y.grep(d["as_values_"+s].split(","),function(e){return""!==e}).join(",");try{delete d["as_values_"+s]}catch(e){}}return y.each(e.find("[name]"),function(e,t){t=y(t).attr("name").replace(/\[(.*)\]/,"");t in d||(d[t]="")}),d=y.extend({},FLBuilder._getOriginalSettings(e),d)},_getSettingsJSONForHTML:function(e){return JSON.stringify(e).replace(/\'/g,"&#39;").replace("<wbr />","<wbr>")},_getOriginalSettings:function(e,t){var i=e.find(".fl-builder-settings-json"),e=e.data("node"),l=FLBuilderSettingsConfig.nodes,o=null,n={};if(e&&l[e]?o=l[e]:i.length&&(o=FLBuilder._jsonParse(i.val().replace(/&#39;/g,"'"))),o)for(key in o)(key.match(/[a-z0-9-_]+$/)&&y("#fl-field-"+key).length||t)&&(n[key]=o[key]);return n},_getSettingsForChangedCheck:function(e,t){var i=FLBuilder._getSettings(t);if(e){t=y(".fl-node-"+e);if(t.hasClass("fl-module")){t=t.data("type"),t=FLBuilderSettingsConfig.editables[t];if(t&&FLBuilderSettingsConfig.nodes[e])for(var l in t)i[l]=FLBuilderSettingsConfig.nodes[e][l]}}return i},_saveSettings:function(i){var e=y(".fl-builder-settings-lightbox .fl-builder-settings"),t=e.data("new-module"),l=e.attr("data-node"),o=FLBuilder._getSettings(e),n=FLBuilder.preview;function s(){FLBuilder._showNodeLoading(l),FLBuilderSettingsConfig.nodes[l]=o;const e=FL.Builder.data.getLayoutActions();var t=FLBuilder._saveSettingsComplete.bind(this,i,n);e.updateNodeSettings(l,o,t),FLBuilder.triggerHook("didSaveNodeSettings",{nodeId:l,settings:o}),FLBuilder._lightbox.close()}!FLBuilder.isUndefined(i)&&FLBuilder.isBoolean(i)||(i=!0),n&&!n._settingsHaveChanged()&&FLBuilder.isUndefined(t)?FLBuilder._lightbox.close():FLBuilderConfig.userCaps.unfiltered_html?s():(FLBuilderSettingsForms.showLightboxLoader(),FLBuilder.ajax({action:"verify_settings",settings:o},function(e){"true"===e?s():(msg='<p style="font-weight:bold;text-align:center;">'+FLBuilderStrings.noScriptWarn.heading+"</p>",FLBuilderConfig.userCaps.global_unfiltered_html?msg+="<p>"+FLBuilderStrings.noScriptWarn.global+"</p>":msg+="<p>"+FLBuilderStrings.noScriptWarn.message+"</p>",msg=(msg+='<p><div class="fl-diff"></div></p>')+"<p>"+FLBuilderStrings.noScriptWarn.footer+"</p>",FLBuilderSettingsForms.hideLightboxLoader(),FLBuilder.alert(msg),""!==(data=y.parseJSON(e)).diff&&(y(".fl-diff").html(data.diff),y(".fl-diff").prepend("<p>"+FLBuilderStrings.codeErrorDetected+"</p>"),y(".fl-diff .diff-deletedline").each(function(){(y(this).find("del").length<1?y(this).css("background-color","rgb(255, 192, 203, 0.7)").css("padding","10px"):y(this).find("del").css("background-color","rgb(255, 192, 203, 0.7)")).css("border","1px solid pink")}),console.log("============"),console.log("key: "+data.key),console.log("value: "+data.value),console.log("parsed: "+data.parsed),console.log("============")))}))},_saveSettingsComplete:function(e,t,i){function l(){t&&o.layout.partial&&o.layout.nodeId===t.nodeId&&!FLBuilder._publishAndRemain&&(t.clear(),t=null,FLBuilder._publishAndRemain=!1)}var o=FLBuilder._jsonParse(i),i=o.layout.nodeType,n=o.layout.moduleType,s="didSave"+i.charAt(0).toUpperCase()+i.slice(1)+"SettingsComplete";!0===e?FLBuilder._renderLayout(o.layout,l):l(),FLBuilder.triggerHook("didSaveNodeSettingsComplete",{nodeId:o.node_id,nodeType:i,moduleType:n,settings:o.settings}),FLBuilder.triggerHook(s,{nodeId:o.node_id,nodeType:i,moduleType:n,settings:o.settings})},_triggerSettingsSave:function(e,t,i){var l=FLBuilder._lightbox._node.find("form.fl-builder-settings"),o=FLBuilder._lightbox._node.data("instance-id"),o=FLLightbox._instances[o],n=y(".fl-lightbox-wrap[data-parent]:visible"),s=!0;return e=!_.isUndefined(e)&&e,t=!_.isUndefined(t)&&t,(i=_.isUndefined(i)?!e:i)||(FLBuilder._publishAndRemain=!0),l.length&&(n.length&&(n.find(".fl-builder-settings-save").trigger("click"),(n.find("label.error").length||y(".fl-builder-alert-lightbox:visible").length)&&(s=!1)),s&&!l.validate({ignore:".fl-ignore-validation"}).form()&&(s=!1),n=FLBuilderSettingsForms.settingsHaveChanged(),s&&n&&(e&&o.disableClose(),l.find(".fl-builder-settings-save").trigger("click"),e&&o.enableClose(),(l.find("label.error").length||y(".fl-builder-alert-lightbox:visible").length)&&(s=!1)),i?(FLBuilder._destroySettingsForms(),!n&&FLBuilder.preview&&(FLBuilder.preview.clear(),FLBuilder.preview=null)):FLBuilderSettingsForms.cacheCurrentSettings(),n||e||o.close()),s?FLBuilder.triggerHook("didTriggerSettingsSave"):(FLBuilder.triggerHook("didFailSettingsSave"),FLBuilder._toggleSettingsTabErrors(),t&&!y(".fl-builder-alert-lightbox:visible").length&&FLBuilder.alert(FLBuilderStrings.settingsHaveErrors)),s},_refreshSettingsPreviewReference:function(){FLBuilder.preview&&FLBuilder.preview._initElementsAndClasses()},_openNestedSettings:function(e){e.className&&-1===e.className.indexOf("fl-builder-settings-lightbox")&&(e.className+=" fl-builder-settings-lightbox"),e=y.extend({className:"fl-builder-lightbox fl-builder-settings-lightbox",destroyOnClose:!0,resizable:!0},e);var t=y(".fl-lightbox-wrap:visible"),i=t.find(".fl-lightbox"),e=new FLLightbox(e),l=e._node,o=l.find(".fl-lightbox");return t.hide(),l.attr("data-parent",t.attr("data-instance-id")),o.attr("style",i.attr("style")),e.on("resized",FLBuilder._calculateSettingsTabsOverflow),e.open('<div class="fl-builder-lightbox-loading"></div>'),e},_closeNestedSettings:function(){var e=y(".fl-builder-lightbox[data-parent]:visible"),t=e.find(".fl-lightbox"),i=e.attr("data-instance-id"),i=FLLightbox._instances[i],e=e.attr("data-parent"),l=y('[data-instance-id="'+e+'"]'),o=l.find(".fl-lightbox"),n=l.find("form"),s=FLLightbox._instances[e];i&&(i.on("close",function(){o.attr("style",t.attr("style")),l.show(),s._resize(),l.find("label.error").remove(),n.validate().hideErrors(),FLBuilder._toggleSettingsTabErrors(),FLBuilder._initMultipleFields()}),i.close())},_showHelpTooltip:function(){y(this).siblings(".fl-help-tooltip-text").fadeIn()},_hideHelpTooltip:function(){y(this).siblings(".fl-help-tooltip-text").fadeOut()},_initSection:function(){var e=y(this);e.find(".fl-builder-settings-section-header").on("click",function(){e.toggleClass("fl-builder-settings-section-collapsed")})},_initButtonGroupFields:function(){y(".fl-builder-settings:visible").find(".fl-button-group-field").each(FLBuilder._initButtonGroupField)},_initButtonGroupField:function(){var e=y(this),i=e.find(".fl-button-group-field-option"),l=e.find("input");i.on("click",function(){var e=y(this);"1"==e.attr("data-selected")?(e.attr("data-selected","0"),l.val("").trigger("change")):(i.attr("data-selected","0"),e.attr("data-selected","1"),l.val(e.data("value")).trigger("change"))}),l.on("change",function(e){var t=l.val(),t=i.filter('[data-value="'+t+'"]');i.attr("data-selected","0"),t.attr("data-selected","1")})},_initCompoundFields:function(){y(".fl-builder-settings:visible").find(".fl-compound-field").each(FLBuilder._initCompoundField)},_initCompoundField:function(){var e=y(this),t=e.find(".fl-compound-field-section"),i=e.find(".fl-compound-field-section-toggle"),e=e.find(".fl-compound-field-setting").has(".fl-dimension-field-units");t.each(function(){var e=y(this);e.find(".fl-compound-field-section-toggle").length||e.addClass("fl-compound-field-section-visible")}),i.on("click",function(){var e=y(this),t=e.closest(".fl-field"),e="."+e.closest(".fl-compound-field-section").attr("class").split(" ").join(".");t.find(e).toggleClass("fl-compound-field-section-visible")}),e.each(function(){var e=y(this),t=e.find(".fl-compound-field-label");t.length&&!e.find(".fl-shadow-field").length&&t.append('<i class="fl-dimension-field-link fl-tip dashicons dashicons-admin-links" title="Link Values"></i>')})},_initAutoSuggestFields:function(){var t,i=y(".fl-builder-settings:visible .fl-suggest-field"),e=null,l=null,o=[];i.each(function(){""!==(e=y(this)).attr("data-value")&&(FLBuilderSettingsForms.showFieldLoader(e),o.push({name:e.attr("name"),value:e.attr("data-value"),action:e.attr("data-action"),data:e.attr("data-action-data")}))}),o.length?FLBuilder.ajax({action:"get_autosuggest_values",fields:o},function(e){for(l in t=FLBuilder._jsonParse(e))y('.fl-suggest-field[name="'+l+'"]').attr("data-value",t[l]);i.each(FLBuilder._initAutoSuggestField)}):i.each(FLBuilder._initAutoSuggestField)},_initAutoSuggestField:function(){var e=y(this);e.autoSuggest(FLBuilder._ajaxUrl({fl_action:"fl_builder_autosuggest",fl_as_action:e.data("action"),fl_as_action_data:e.data("action-data"),_wpnonce:FLBuilderConfig.ajaxNonce}),y.extend({},{asHtmlID:e.attr("name"),selectedItemProp:"name",searchObjProps:"name",minChars:2,keyDelay:1e3,fadeOut:!1,usePlaceholder:!0,emptyText:FLBuilderStrings.noResultsFound,showResultListWhenNoMatch:!0,preFill:e.data("value"),queryParam:"fl_as_query",afterSelectionAdd:FLBuilder._updateAutoSuggestField,afterSelectionRemove:FLBuilder._updateAutoSuggestField,selectionLimit:e.data("limit"),canGenerateNewSelections:!1},e.data("args"))),FLBuilderSettingsForms.hideFieldLoader(e)},_updateAutoSuggestField:function(e,t,i){var l=this;y(this).siblings(".as-values").val(i.join(",")).trigger("change"),y(this).parents(".as-selections").sortable({items:":not(.as-original)",update:function(e,t){var i=[];set=l.parents(".as-selections").find("li.as-selection-item"),y.each(set,function(e,t){i.push(y(t).attr("data-value"))}),y(l).siblings(".as-values").val(i.join(",")).trigger("change")}})},_CodeFieldSSLCheck:function(){y("body").append('<div class="sg-test" style="display:none"><svg xmlns="http://www.w3.org/2000/svg"></svg></div>'),"https://www.w3.org/2000/svg"===y(".sg-test").find("svg").attr("xmlns")&&(FLBuilder._codeDisabled=!0),y(".sg-test").remove()},_initCodeFields:function(){FLBuilder._codeDisabled||y(".fl-builder-settings:visible").find(".fl-code-field").each(FLBuilder._initCodeField)},_initCodeField:function(){var e=y(this),n=e.closest(".fl-builder-settings"),t=e.find("textarea"),e=(t.attr("id"),t.data("editor")),i=t.data("wrap"),l=y("<div>",{position:"absolute",height:20*parseInt(t.attr("rows"),10)}),s=null,r=!(!n.hasClass("fl-builder-global-settings")&&!n.hasClass("fl-builder-layout-settings"));l.insertBefore(t),l.attr("contentEditable",!0),l.addClass("fl-ignore-validation"),t.css("display","none"),ace.require("ace/ext/language_tools"),(s=ace.edit(l[0])).$blockScrolling=1/0,s.getSession().setValue(t.val()),s.getSession().setMode("ace/mode/"+e),i&&s.getSession().setUseWrapMode(!0),s.setOptions(FLBuilderConfig.AceEditorSettings),s.getSession().on("change",function(e){t.val(s.getSession().getValue()).trigger("change")}),s.getSession().on("changeAnnotation",function(){for(var e=s.getSession().getAnnotations(),t=n.find(".fl-builder-settings-save"),i=n.find(".fl-builder-settings-error"),l=!1,o=0;o<e.length;o++)if(!(-1<e[o].text.indexOf("DOCTYPE")||-1<e[o].text.indexOf("Named entity expected")||-1<e[o].text.indexOf("@supports")||"error"!==e[o].type)){l=!0;break}val=s.getSession().getValue(),r&&l&&null!==val.match(/<\/iframe>|<\/script>/gm)&&(t.addClass("fl-builder-settings-error"),t.on("click",FLBuilder._showCodeFieldCriticalError)),l&&!t.hasClass("fl-builder-settings-error")&&i.length&&FLBuilderConfig.CheckCodeErrors&&(t.addClass("fl-builder-settings-error"),t.on("click",FLBuilder._showCodeFieldError)),l||(i.removeClass("fl-builder-settings-error"),i.off("click",FLBuilder._showCodeFieldError),i.off("click",FLBuilder._showCodeFieldCriticalError))}),t.closest(".fl-field").data("editor",s)},_showCodeFieldError:function(e){e.stopImmediatePropagation(),FLBuilder.confirm({message:FLBuilderStrings.codeError,cancel:function(){var e=y(".fl-builder-settings:visible .fl-builder-settings-save");e.removeClass("fl-builder-settings-error"),e.off("click",FLBuilder._showCodeFieldError),e.trigger("click")},strings:{ok:FLBuilderStrings.codeErrorFix,cancel:FLBuilderStrings.codeErrorIgnore}})},_showCodeFieldCriticalError:function(e){e.stopImmediatePropagation(),FLBuilder.alert(FLBuilderStrings.codeerrorhtml)},_initMultipleFields:function(){y(".fl-builder-settings:visible .fl-builder-field-multiples").each(function(){var e=y(this),t=null,i=0,l=FLBuilderConfig.isRtl?{left:10}:{right:10},o=e.attr("data-limit")||0,n=e.find("tr").length||0;for(0<parseInt(o)&&n-1>=parseInt(o)?(e.find(".fl-builder-field-copy").hide(),e.find(".fl-builder-field-add").fadeOut()):e.find(".fl-builder-field-copy, .fl-builder-field-add").show();i<e.length;i++)1===(t=e.eq(i).find(".fl-builder-field-multiple")).length?t.eq(0).find(".fl-builder-field-actions").addClass("fl-builder-field-actions-single"):t.find(".fl-builder-field-actions").removeClass("fl-builder-field-actions-single");y(".fl-builder-field-multiples").sortable({items:".fl-builder-field-multiple",cursor:"move",cursorAt:l,distance:5,opacity:.5,placeholder:"fl-builder-field-dd-zone",stop:FLBuilder._fieldDragStop,tolerance:"pointer",axis:"y"})})},_addFieldClicked:function(){var e=y(this),t=e.attr("data-field"),i=e.closest("tr").siblings("tr[data-field="+t+"]").last(),l=i.clone(),o=l.find(".fl-form-field"),n=null,s=parseInt(i.find("label span.fl-builder-field-index").html(),10)+1;l.find("th label span.fl-builder-field-index").html(s),l.find(".fl-form-field-preview-text").html(""),l.find(".fl-form-field-before").remove(),l.find(".fl-form-field-after").remove(),l.find("input, textarea, select").val(""),i.after(l),FLBuilder._initMultipleFields(),o.length?(n=o.find(".fl-form-field-edit").data("type"),o.find("input").val(JSON.stringify(FLBuilderSettingsConfig.defaults.forms[n]))):((n=(o=e.closest("form.fl-builder-settings")).data("type"))&&o.hasClass("fl-builder-module-settings")&&(s=FLBuilderSettingsConfig.defaults.modules[n][t][0],l.find("input, textarea, select").val(s)),FLBuilder._renumberFields(l.closest(".fl-field")))},_copyFieldClicked:function(){var e=y(this).closest("tr"),t=e.clone(),i=parseInt(e.find("label span.fl-builder-field-index").html(),10)+1;t.find("th label span.fl-builder-field-index").html(i),e.after(t),FLBuilder._renumberFields(e.parent()),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview()},_deleteFieldClicked:function(){var e=y(this).closest("tr"),t=e.parent();confirm(FLBuilderStrings.deleteFieldMessage)&&(e.remove(),FLBuilder._renumberFields(t),FLBuilder._initMultipleFields(),FLBuilder.preview.delayPreview())},_renumberFields:function(e){e.find(".fl-builder-field-multiple").each(function(e,t){y(t).find("th label span.fl-builder-field-index").html(e+1),FLBuilder._renumberFieldAttr(t,"name",e),FLBuilder._renumberFieldAttr(t,"id",e),FLBuilder._renumberFieldAttr(t,"for",e)})},_renumberFieldAttr:function(e,l,o){y(e).find("["+l+"]").each(function(e,t){var i=(i=y(t).attr(l)).replace(/\[(\d+)\]/,"["+o+"]");y(t).attr(l,i)})},_fieldDragHelper:function(){return y('<div class="fl-builder-field-dd-helper"></div>')},_fieldDragStop:function(e,t){FLBuilder._renumberFields(t.item.parent()),FLBuilder.preview.delayPreview()},_initSelectFields:function(){var e=y(".fl-builder-settings:visible").find("select"),e=(e.on("change",FLBuilder._settingsSelectChanged),e.trigger("change"),e.on("change",FLBuilder._calculateSettingsTabsOverflow),y(".fl-builder-settings:visible").find(".fl-button-group-field input[type=hidden]"));e.on("change",FLBuilder._settingsSelectChanged),e.trigger("change"),e.on("change",FLBuilder._calculateSettingsTabsOverflow)},_settingsSelectChanged:function(){var e=y(this),t=e.attr("data-toggle"),i=e.attr("data-hide"),l=e.attr("data-trigger"),o=e.val(),n=0,s=FLBuilderResponsiveEditing._mode,r=e.closest(".fl-field-responsive-setting"),s="fl-field-responsive-setting-"+s;if(!r.length||e.parent().hasClass(s)){if(void 0!==t){for(n in t=FLBuilder._jsonParse(t))FLBuilder._settingsSelectToggle(t[n].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(t[n].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(t[n].tabs,"hide","a[href*=fl-builder-settings-tab-","]");void 0!==t[o]&&(FLBuilder._settingsSelectToggle(t[o].fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(t[o].sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(t[o].tabs,"show","a[href*=fl-builder-settings-tab-","]"))}if(void 0!==i){for(n in i=FLBuilder._jsonParse(i))FLBuilder._settingsSelectToggle(i[n].fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(i[n].sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(i[n].tabs,"show","a[href*=fl-builder-settings-tab-","]");void 0!==i[o]&&(FLBuilder._settingsSelectToggle(i[o].fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(i[o].sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(i[o].tabs,"hide","a[href*=fl-builder-settings-tab-","]"))}if(void 0!==l&&void 0!==(l=FLBuilder._jsonParse(l))[o]&&void 0!==l[o].fields)for(n=0;n<l[o].fields.length;n++)y("#fl-field-"+l[o].fields[n]).find("select").trigger("change")}},_settingsSelectToggle:function(e,t,i,l){var o=0;if(l=void 0===l?"":l,void 0!==e)for(;o<e.length;o++)y(".fl-builder-settings:visible").find(i+e[o]+l)[t](),y(i+e[o]+l).parent().find('.fl-field[data-type="code"]').each(function(){FLBuilder._codeDisabled||y(this).data("editor").resize()})},_initColorPickers:function(){var e=FLBuilderConfig.colorPresets||[];FLBuilder.colorPicker=new FLBuilderColorPicker({mode:"hsv",elements:".fl-color-picker .fl-color-picker-value",presets:e,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}}),y(FLBuilder.colorPicker).on("presetRemoved presetAdded presetSorted",function(e,t){FLBuilder.ajax({action:"save_color_presets",presets:t.presets})})},_initGradientPickers:function(){y(".fl-builder-settings:visible .fl-gradient-picker").each(FLBuilder._initGradientPicker)},_initGradientPicker:function(){var e=y(this),t=e.find(".fl-gradient-picker-type-select"),i=e.find(".fl-gradient-picker-angle-wrap"),l=e.find(".fl-gradient-picker-position");t.on("change",function(){"linear"===y(this).val()?(i.show(),l.hide()):(i.hide(),l.show())})},_initPhotoFields:function(){var e=y(".fl-builder-settings:visible").find(".fl-photo-field select");e.on("change",FLBuilder._toggleSettingsOnIconChange),e.trigger("change")},_initSinglePhotoSelector:function(){null===FLBuilder._singlePhotoSelector&&(FLBuilder._singlePhotoSelector=wp.media({title:FLBuilderStrings.selectPhoto,button:{text:FLBuilderStrings.selectPhoto},library:{type:FLBuilderConfig.uploadTypes.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",y.proxy(FLBuilder._singlePhotoOpened,this)),FLBuilder._singlePhotoSelector.once("select",y.proxy(FLBuilder._singlePhotoSelected,this)),FLBuilder._singlePhotoSelector.open()},_singlePhotoOpened:function(){var e=FLBuilder._singlePhotoSelector.state().get("selection"),t=y(this).closest(".fl-photo-field"),i=t.find("input[type=hidden]"),l=i.val(),o=null;y(this).hasClass("fl-photo-replace")?(e.reset(),t.addClass("fl-photo-empty"),i.val("")):""!==l?((o=wp.media.attachment(l)).fetch(),e.add(o?[o]:[])):e.reset()},_singlePhotoSelected:function(){var e=FLBuilder._singlePhotoSelector.state().get("selection").first().toJSON(),t=y(this).closest(".fl-photo-field"),i=t.find("input[type=hidden]"),l=t.find(".fl-photo-preview img"),o=t.find("select");e.url&&e.url.endsWith(".svg")&&(e.sizes={full:{url:e.url,filename:e.url.split("/").pop(),height:"",width:""}}),i.val(e.id),l.attr("src",FLBuilder._getPhotoSrc(e)),t.removeClass("fl-photo-empty").removeClass("fl-photo-no-attachment"),t.find("label.error").remove(),o.show(),o.html(FLBuilder._getPhotoSizeOptions(e,o.val())),o.trigger("change"),FLBuilderSettingsConfig.attachments[e.id]=e},_singlePhotoRemoved:function(){FLBuilder._initSinglePhotoSelector();var e=FLBuilder._singlePhotoSelector.state(),e=void 0!==e?e.get("selection"):null,t=y(this).closest(".fl-photo-field"),i=t.find("input[type=hidden]"),l=t.find("select");e&&e.reset(),t.addClass("fl-photo-empty"),i.val(""),l.html('<option value="" selected></option>'),l.trigger("change")},_getPhotoSrc:function(e){return(void 0===e.sizes?e:void 0!==e.sizes.thumbnail?e.sizes.thumbnail:e.sizes.full).url},_getPhotoSizeOptions:function(e,t){var i="",l=null,o=null,n=!1,s="",r="",a={full:FLBuilderStrings.fullSize,large:FLBuilderStrings.large,medium:FLBuilderStrings.medium,thumbnail:FLBuilderStrings.thumbnail};if(void 0===e.sizes||0===e.sizes.length)i+='<option value="'+e.url+'">'+FLBuilderStrings.fullSize+"</option>";else{for(sizecheck in t=t&&t.split(/[\\/]/).pop(),selectedverified=!1,e.sizes)if(e.sizes[sizecheck].url.split(/[\\/]/).pop()===t){selectedverified=!0;break}for(l in selectedverified||(t=!1),e.sizes)o="",s=void 0!==a[l]?a[l]:void 0!==FLBuilderConfig.customImageSizeTitles[l]?FLBuilderConfig.customImageSizeTitles[l]:"",t?t!==e.sizes[l].url.split(/[\\/]/).pop()||n||(o=' selected="selected"',n=!0):(void 0!==FLBuilderConfig.photomodulesize&&l===FLBuilderConfig.photomodulesize&&!n||l==FLBuilderConfig.defaultImageSize&&!n)&&(o=' selected="selected"',n=!0),e.sizes[l].width&&e.sizes[l].height&&(s=s&&s+" - ",r=e.sizes[l].width+" x "+e.sizes[l].height),i+='<option data-size="'+l+'" value="'+e.sizes[l].url+'"'+o+">"+s+r+"</option>"}return i},_selectMultiplePhotos:function(){var e=y(this).closest(".fl-multiple-photos-field").find("input[type=hidden]").val(),t=""===e?"":FLBuilder._jsonParse(e),e=wp.media.gallery.defaults.id,i='[gallery ids="-1"]',l=null,o=null,n=null,s=null,r=[];if("object"==typeof t){for(s in t)r.push(t[s]);i='[gallery ids="'+r.join()+'"]'}l=wp.shortcode.next("gallery",i).shortcode,_.isUndefined(l.get("id"))&&!_.isUndefined(e)&&l.set("id",e),o=wp.media.gallery.attachments(l),(n=new wp.media.model.Selection(o.models,{props:o.props.toJSON(),multiple:!0})).gallery=o.gallery,n.more().done(function(){n.length||FLBuilder._multiplePhotoSelector.setState("gallery-library"),n.props.set({query:!1}),n.unmirror(),n.props.unset("orderby")}),FLBuilder._multiplePhotoSelector&&FLBuilder._multiplePhotoSelector.dispose(),FLBuilder._multiplePhotoSelector=wp.media({frame:"post",state:y(this).hasClass("fl-multiple-photos-edit")?"gallery-edit":"gallery-library",title:wp.media.view.l10n.editGalleryTitle,editing:!0,multiple:!0,selection:n}).open(),y(FLBuilder._multiplePhotoSelector.views.view.el).addClass("fl-multiple-photos-lightbox"),FLBuilder._multiplePhotoSelector.once("update",y.proxy(FLBuilder._multiplePhotosSelected,this))},_multiplePhotosSelected:function(e){for(var t=y(this).closest(".fl-multiple-photos-field"),i=t.find("input[type=hidden]"),l=t.find(".fl-multiple-photos-count"),o=[],n=0;n<e.models.length;n++)o.push(e.models[n].id);1==o.length?l.html("1 "+FLBuilderStrings.photoSelected):l.html(o.length+" "+FLBuilderStrings.photosSelected),t.removeClass("fl-multiple-photos-empty"),t.find("label.error").remove(),i.val(JSON.stringify(o)).trigger("change")},_initSingleVideoSelector:function(){var e;null===FLBuilder._singleVideoSelector&&(e=_wpPluploadSettings.defaults.filters.mime_types[0].extensions,_wpPluploadSettings.defaults.multipart_params.fl_upload_type="video",_wpPluploadSettings.defaults.filters.mime_types[0].extensions=FLBuilderConfig.uploadTypes.videoTypes,FLBuilder._singleVideoSelector=wp.media({title:FLBuilderStrings.selectVideo,button:{text:FLBuilderStrings.selectVideo},library:{type:["video/mp4","video/webm"]},multiple:!1}),FLBuilder._singleVideoSelector.on("open",FLBuilder._wpmedia_reset_errors),FLBuilder._singleVideoSelector.on("close",function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=e}))},_selectSingleVideo:function(){FLBuilder._initSingleVideoSelector(),FLBuilder._singleVideoSelector.once("select",y.proxy(FLBuilder._singleVideoSelected,this)),FLBuilder._singleVideoSelector.open()},_singleVideoSelected:function(){var e=FLBuilder._singleVideoSelector.state().get("selection").first().toJSON(),t=y(this).closest(".fl-video-field"),i=t.find(".fl-video-preview-img"),l=t.find(".fl-video-preview-filename"),o=t.find("input[type=hidden]");i.html('<span class="dashicons dashicons-media-video"></span>'),l.html(e.filename),t.removeClass("fl-video-empty"),t.find("label.error").remove(),o.val(e.id).trigger("change"),FLBuilderSettingsConfig.attachments[e.id]=e},_singleVideoRemoved:function(){FLBuilder._initSingleVideoSelector();var e=FLBuilder._singleVideoSelector.state(),e=void 0!==e?e.get("selection"):null,t=y(this).closest(".fl-video-field"),i=t.find(".fl-video-preview-img img"),l=t.find(".fl-video-preview-filename"),o=t.find("input[type=hidden]");e&&e.reset(),i.attr("src",""),l.html(""),t.addClass("fl-video-empty"),o.val("").trigger("change")},_selectMultipleAudios:function(){var e=y(this).closest(".fl-multiple-audios-field").find("input[type=hidden]").val(),e=""==e?'[playlist ids="-1"]':'[playlist ids="'+FLBuilder._jsonParse(e).join()+'"]',e=wp.shortcode.next("playlist",e).shortcode,t=wp.media.playlist.defaults.id,i=null,l=null;_.isUndefined(e.get("id"))&&!_.isUndefined(t)&&e.set("id",t),i=wp.media.playlist.attachments(e),(l=new wp.media.model.Selection(i.models,{props:i.props.toJSON(),multiple:!0})).playlist=i.playlist,l.more().done(function(){l.props.set({query:!1}),l.unmirror(),l.props.unset("orderby")}),FLBuilder._multipleAudiosSelector&&FLBuilder._multipleAudiosSelector.dispose(),FLBuilder._multipleAudiosSelector=wp.media({frame:"post",state:y(this).hasClass("fl-multiple-audios-edit")?"playlist-edit":"playlist-library",title:wp.media.view.l10n.editPlaylistTitle,editing:!0,multiple:!0,selection:l}).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",y.proxy(FLBuilder._multipleAudiosSelected,this))},_multipleAudiosSelected:function(e){for(var t=y(this).closest(".fl-multiple-audios-field"),i=t.find(".fl-multiple-audios-count"),l=t.find("input[type=hidden]"),o=[],n=0;n<e.models.length;n++)o.push(e.models[n].id);1==o.length?i.html("1 "+FLBuilderStrings.audioSelected):i.html(o.length+" "+FLBuilderStrings.audiosSelected),l.val(JSON.stringify(o)).trigger("change"),t.removeClass("fl-multiple-audios-empty"),t.find("label.error").remove()},_initIconFields:function(){var e=y(".fl-builder-settings:visible").find(".fl-icon-field input");e.on("change",FLBuilder._toggleSettingsOnIconChange),e.trigger("change")},_toggleSettingsOnIconChange:function(){var e=y(this),t=e.val(),e=e.attr("data-show");void 0!==e&&(e=FLBuilder._jsonParse(e),FLBuilder._settingsSelectToggle(e.fields,"hide","#fl-field-"),FLBuilder._settingsSelectToggle(e.sections,"hide","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(e.tabs,"hide","a[href*=fl-builder-settings-tab-","]"),t&&(FLBuilder._settingsSelectToggle(e.fields,"show","#fl-field-"),FLBuilder._settingsSelectToggle(e.sections,"show","#fl-builder-settings-section-"),FLBuilder._settingsSelectToggle(e.tabs,"show","a[href*=fl-builder-settings-tab-","]"),FLBuilder._calculateSettingsTabsOverflow()))},_selectIcon:function(){var t=this;FLIconSelector.open(function(e){FLBuilder._iconSelected.apply(t,[e])})},_iconSelected:function(e){var t=y(this).closest(".fl-icon-field"),i=t.find("input[type=hidden]"),l=t.find("i"),o=l.attr("data-icon");i.val(e).trigger("change"),l.removeClass(o),l.addClass(e),l.attr("data-icon",e),t.removeClass("fl-icon-empty"),t.find("label.error").remove()},_removeIcon:function(){var e=y(this).closest(".fl-icon-field"),t=e.find("input[type=hidden]"),i=e.find("i");t.val("").trigger("change"),i.removeClass(),i.attr("data-icon",""),e.addClass("fl-icon-empty")},_formFieldClicked:function(){var e=y(this),t=e.closest(".fl-builder-settings"),i=e.attr("data-type"),l=e.siblings("input").val(),o=FLBuilder._moduleHelpers[i],n=(FLBuilderSettingsConfig.forms[i],FLBuilder._openNestedSettings({className:"fl-builder-lightbox fl-form-field-settings"}));""===l&&(l=JSON.stringify(FLBuilderSettingsConfig.forms[i])),FLBuilderSettingsForms.render({id:i,nodeId:t.attr("data-node"),nodeSettings:FLBuilder._getSettings(t),settings:FLBuilder._jsonParse(l.replace(/&#39;/g,"'")),lightbox:n,rules:o?o.rules:null,helper:{init:function(){o&&o.init(),FLBuilder._initFormFieldSettingsPreview(n)}}},function(){e.attr("id","fl-"+n._node.attr("data-instance-id")),n._node.find("form.fl-builder-settings").attr("data-type",i),FLBuilderResponsiveEditing._switchAllSettingsToCurrentMode()})},_saveFormFieldClicked:function(){var e=y(this).closest(".fl-builder-settings");FLBuilder._saveFormFieldSettings(e)?FLBuilder._closeNestedSettings():FLBuilder._toggleSettingsTabErrors()},_initFormFieldSettingsPreview:function(e){var t=e._node.find(".fl-field"),e=e._node.find("textarea.wp-editor-area");t.find("input:not([type=hidden]), textarea").on("input",FLBuilder._previewFormFieldSettings),t.find("input[type=hidden], select").on("change",FLBuilder._previewFormFieldSettings),"undefined"!=typeof tinyMCE&&e.each(function(e,t){(t=tinyMCE.get(y(t).attr("id"))).on("change",FLBuilder._previewFormFieldSettings),t.on("keyup",FLBuilder._previewFormFieldSettings)})},_previewFormFieldSettings:function(){var e=this.formElement||this,t=y(e).closest(".fl-builder-settings"),e=t.data("timeout");e&&clearTimeout(e),e=setTimeout(function(){FLBuilder._saveFormFieldSettings(t)},1e3),t.data("timeout",e)},_saveFormFieldSettings:function(e){var t=e.closest(".fl-lightbox-wrap").attr("data-instance-id"),i=e.attr("data-type"),l=FLBuilder._getSettings(e),i=FLBuilder._moduleHelpers[i],t=y(".fl-builder-settings #fl-"+t),o=t.parent().attr("data-preview-text"),n=e.find("#fl-field-"+o),s=l[o],r=y('select[name="'+o+'"]'),a=document.createElement("div"),d=!0;return 0<r.length&&(s=r.find('option[value="'+l[o]+'"]').text()),void 0!==i&&(e.find("label.error").remove(),e.validate().hideErrors(),d=(d=e.validate().form())&&i.submit()),!!d&&(void 0!==o&&void 0!==s&&("icon"===n.data("type")?s='<i class="'+s+'"></i>':35<s.length&&(a.innerHTML=s,s=(a.textContent||a.innerText||"").replace(/^(.{35}[^\s]*).*/,"$1")+"..."),t.siblings(".fl-form-field-preview-text").html(s)),0<t.length&&(""!=(r=t.siblings("input").val().replace(/&#39;/g,"'"))&&(l=y.extend(FLBuilder._jsonParse(r),l)),t.siblings("input").val(JSON.stringify(l)).trigger("change")),!0)},_layoutFieldClicked:function(){var e=y(this);e.siblings().removeClass("fl-layout-field-option-selected"),e.addClass("fl-layout-field-option-selected"),e.siblings("input").val(e.attr("data-value"))},_initLinkFields:function(){y(".fl-builder-settings:visible .fl-link-field").each(FLBuilder._initLinkField)},_initLinkField:function(){var e=y(this),t=e.find(".fl-link-field-search-input"),e=e.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,formatList:function(e,t){return t.html(e.name+'<span class="type">['+e.type+"]</span>")}}),e.on("click",FLBuilder._linkFieldCheckboxClicked)},_updateLinkField:function(e,t,i){var e=e.closest(".fl-link-field"),l=e.find(".fl-link-field-search"),o=e.find(".fl-link-field-search-input");e.find(".fl-link-field-input").val(t.value).trigger("keyup"),o.autoSuggest("remove",t.value),l.hide()},_linkFieldSelectClicked:function(){var e=y(this).closest(".fl-link-field").find(".fl-link-field-search");e.show(),e.find("input").focus()},_linkFieldSelectCancelClicked:function(){var e=y(this);e.parent().hide(),e.closest(".fl-link-field").find("input.fl-link-field-input").focus()},_linkFieldCheckboxClicked:function(){var e=y(this),t=e.is(":checked"),i=e.siblings("input[type=hidden]"),l="",l=e.hasClass("fl-link-field-target-cb")?t?"_blank":"_self":t?"yes":"no";i.val(l)},_initFontFields:function(){y(".fl-builder-settings:visible .fl-font-field").each(FLBuilder._initFontField)},_initFontField:function(){var e=y(this),t=e.attr("data-value"),i=e.find(".fl-font-field-font"),e=e.find(".fl-font-field-weight");FLBuilderConfig.select2Enabled&&i.select2({width:"100%"}).on("select2:open",function(e){y(".select2-search__field").attr("placeholder",FLBuilderStrings.placeholderSelect2)}),i.on("change",function(){FLBuilder._getFontWeights(i)}),-1<t.indexOf("family")&&(t=FLBuilder._jsonParse(t),i.val(t.family),i.trigger("change"),e.find("option[value="+t.weight+"]").length&&e.val(t.weight))},_getFontWeights:function(e){var i=e.closest(".fl-font-field").find(".fl-font-field-weight"),l=e.val(),o=i.val(),n=FLBuilderConfig.FontWeights,t={},s=e.closest(".fl-font-field").find(".recent-fonts option");i.html(""),0<s.length&&!1==0<y(s).filter(function(e,t){return t.value===l}).length&&e.closest(".fl-font-field").find(".recent-fonts").append(y("<option>",{value:l,text:l})),t=void 0!==FLBuilderFontFamilies.system[l]?FLBuilderFontFamilies.system[l].weights:(void 0!==FLBuilderFontFamilies.google[l]?FLBuilderFontFamilies.google:FLBuilderFontFamilies.default)[l],y.each(t,function(e,t){i.append('<option value="'+t+'"'+(o===t?" selected":"")+">"+n[t]+"</option>")})},_initTinyMCE:function(){"object"==typeof tinymce&&void 0!==tinymce.ui.FloatPanel&&(tinymce.ui.FloatPanel.zIndex=100100),y(".fl-builder-hidden-editor").each(FLBuilder._initEditorField)},_initEditorFields:function(){y(".fl-builder-settings:visible .fl-editor-field").each(FLBuilder._initEditorField)},_initEditorField:function(){var e=y(this),t=e.find("textarea"),i=e.attr("data-name"),i="flrich"+(new Date).getTime()+"_"+i,l=FLBuilderConfig.wp_editor,o=tinyMCEPreInit,n=Number(e.attr("data-buttons")),e=e.attr("data-rows"),s=null,r=null,l=l.replace(/flbuildereditor/g,i),o=FLBuilder._jsonParse(JSON.stringify(o).replace(/flbuildereditor/g,i));o=JSONfn.parse(JSONfn.stringify(o).replace(/flbuildereditor/g,i)),t.after(l).remove(),y("textarea#"+i).val(t.val()),void 0!==o.mceInit[i]&&((s=o.mceInit[i]).setup=function(e){e.on("SaveContent",function(e){e.content=e.content.replace(/<a href="(\.\.\/){1,2}/g,'<a href="'+FLBuilderConfig.homeUrl+"/"),e.content=e.content.replace(/src="(\.\.\/){1,2}/g,'src="'+FLBuilderConfig.homeUrl+"/")})},(r=tinymce.$("#wp-"+i+"-wrap")).find("textarea").attr("rows",e),r.find("textarea").attr("contentEditable",!0),n||r.find(".wp-media-buttons").remove(),!r.hasClass("tmce-active")&&o.qtInit.hasOwnProperty(i)||s.wp_skip_init||tinymce.init(s)),quicktags(o.qtInit[i]),window.wpActiveEditor=i},_reinitEditorFields:function(){y(".fl-lightbox-resizable:visible").length&&setTimeout(function(){var e,t;if("undefined"!=typeof tinymce){for(e=tinymce.editors.length-1;-1<e;e--)tinymce.editors[e].inline||(t=tinymce.editors[e].id,tinyMCE.execCommand("mceRemoveEditor",!0,t),tinyMCE.execCommand("mceAddEditor",!0,t));FLBuilder.preview&&FLBuilder.preview._initDefaultFieldPreviews(y('.fl-field[data-type="editor"]'))}},1)},_destroyEditorFields:function(){var e;if("undefined"!=typeof tinymce){for(e=tinymce.editors.length-1;-1<e;e--)tinymce.editors[e].inline||tinyMCE.execCommand("mceRemoveEditor",!0,tinymce.editors[e].id);y(".wplink-autocomplete").remove(),y(".ui-helper-hidden-accessible").remove()}},_updateEditorFields:function(){y(".fl-builder-settings:visible textarea.wp-editor-area").each(FLBuilder._updateEditorField)},_updateEditorField:function(){var e=y(this),t=e.closest(".fl-editor-field"),i=(e.closest(".fl-builder-settings"),e.closest(".wp-editor-wrap")),l=e.attr("id"),o=t.attr("data-name"),l="undefined"!=typeof tinymce&&tinymce.get(l),n=e.siblings('textarea[name="'+o+'"]'),t=t.data("wpautop");0===n.length&&(n=y('<textarea name="'+o+'"></textarea>').hide(),e.after(n)),t?l&&i.hasClass("tmce-active")?n.val(l.getContent()):"undefined"!=typeof switchEditors?n.val(switchEditors.wpautop(e.val())):n.val(e.val()):(l&&i.hasClass("tmce-active")&&l.save(),n.val(e.val()))},_loopDataSourceChange:function(){var e=y(this).val();y(".fl-loop-data-source").hide(),y('.fl-loop-data-source[data-source="'+e+'"]').show()},_customQueryPostTypeChange:function(){var e=y(this).val();y(".fl-custom-query-filter").hide(),y(".fl-custom-query-"+e+"-filter").show()},_initOrderingFields:function(){y(".fl-builder-settings:visible .fl-ordering-field-options").each(FLBuilder._initOrderingField)},_initOrderingField:function(){y(this).sortable({items:".fl-ordering-field-option",containment:"parent",tolerance:"pointer",stop:FLBuilder._updateOrderingField})},_updateOrderingField:function(e){var e=y(e.target),t=e.siblings("input[type=hidden]"),i=[];e.find(".fl-ordering-field-option").each(function(){i.push(y(this).attr("data-key"))}),t.val(JSON.stringify(i)).trigger("change")},_textFieldAddValueSelectChange:function(){var e=y(this),t=y('input[name="'+e.data("target")+'"]'),i=t.val(),l=e.val();-1==i.indexOf(l)&&(i=(i.trim()+" "+l.trim()).trim(),t.val(i).trigger("change").trigger("keyup")),e.val("")},_onNumberFieldFocus:function(e){var t=y(e.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(e){y(e.currentTarget).attr("step","any").removeClass("mousetrap")},_initTimezoneFields:function(){y(".fl-builder-settings:visible .fl-field[data-type=timezone]").each(FLBuilder._initTimezoneField)},_initTimezoneField:function(){var e=y(this).find("select"),t=e.attr("data-value");e.find('option[value="'+t+'"]').prop("selected",!0)},_initDimensionFields:function(){var e=y(".fl-builder-settings:visible");e.find(".fl-field[data-type=dimension]").each(FLBuilder._initDimensionField),e.find(".fl-dimension-field-link").on("click",FLBuilder._dimensionFieldLinkClicked),FLBuilder.addHook("responsive-editing-switched",this._initResponsiveDimensionFieldLinking),e.find(".fl-compound-field-setting").has(".fl-dimension-field-link").each(FLBuilder._initDimensionFieldLinking)},_initDimensionField:function(){var e=y(this),t=e.find(".fl-field-label label"),e=e.find(".fl-field-control-wrapper"),i='<i class="fl-dimension-field-link fl-tip dashicons dashicons-admin-links" title="Link Values"></i>';t.append(i),e.prepend(i),FLBuilder._initTipTips(),FLBuilder._initDimensionFieldLinking.apply(this)},_initDimensionFieldLinking:function(){var e=y(this),t=e.find(".fl-dimension-field-link"),e=FLBuilder._getDimensionFieldLinkingInputs(e);FLBuilder._dimensionFieldInputsAreEqual(e)?(t.removeClass("dashicons-admin-links"),t.addClass("dashicons-editor-unlink"),e.off("input",FLBuilder._dimensionFieldLinkedValueChange),e.on("input",FLBuilder._dimensionFieldLinkedValueChange)):(t.addClass("dashicons-admin-links"),t.removeClass("dashicons-editor-unlink"))},_initResponsiveDimensionFieldLinking:function(){y(".fl-builder-settings:visible").find(".fl-field[data-type=dimension]").each(FLBuilder._initDimensionFieldLinking)},_dimensionFieldLinkClicked:function(){var e=y(this),t=e.closest(".fl-compound-field-setting"),t=t.length?t:e.closest(".fl-field"),e=t.find(".fl-dimension-field-link"),i=e.hasClass("dashicons-editor-unlink"),t=FLBuilder._getDimensionFieldLinkingInputs(t);e.toggleClass("dashicons-admin-links"),e.toggleClass("dashicons-editor-unlink"),i?t.off("input",FLBuilder._dimensionFieldLinkedValueChange):(t.val(t.eq(0).val()).trigger("input"),t.on("input",FLBuilder._dimensionFieldLinkedValueChange))},_dimensionFieldLinkedValueChange:function(){var e=y(this),t=e.attr("name"),t=e.closest(".fl-dimension-field-units").find('input:not([name="'+t+'"])');t.off("input",FLBuilder._dimensionFieldLinkedValueChange),t.val(e.val()).trigger("input"),t.on("input",FLBuilder._dimensionFieldLinkedValueChange)},_getDimensionFieldLinkingInputs:function(e){var t=!!e.find(".fl-field-responsive-setting").length,i=FLBuilderResponsiveEditing._mode;return t?e.find(".fl-field-responsive-setting-"+i+" input"):e.find(".fl-dimension-field-unit input")},_dimensionFieldInputsAreEqual:function(e){var t=e.eq(0).val();if(""===t)return!1;for(var i=1;i<4;i++)if(e.eq(i).val()!==t)return!1;return!0},_initFieldPopupSliders:function(){y(".fl-builder-settings:visible").find(".fl-field-popup-slider").each(FLBuilder._initFieldPopupSlider)},_initFieldPopupSlider:function(){var n=y("body"),s=y(this),r=s.find(".fl-field-popup-slider-input"),a=s.find(".fl-field-popup-slider-arrow"),e=s.data("input"),d=y('input[name="'+e+'"]');d.on("click",function(){r.hasClass("fl-field-popup-slider-init")||(r.slider({value:d.val(),slide:function(e,t){d.val(t.value).trigger("input")}}),d.on("input",function(){r.slider("value",y(this).val())}),r.addClass("fl-field-popup-slider-init"),r.find(".ui-slider-handle").removeAttr("tabindex")),FLBuilder._setFieldPopupSliderMinMax(r),FLBuilder._hideFieldPopupSliders(),n.on("mousedown",FLBuilder._hideFieldPopupSliders),d.addClass("fl-field-popup-slider-focus"),s.show();var e=y(".fl-builder-settings:visible .fl-builder-settings-tab.fl-active"),t=e.offset(),i=d.offset(),l=d.width(),o=s.offset();o.top+s.outerHeight()>t.top+e.outerHeight()&&s.addClass("fl-field-popup-slider-top"),a.css("left",2+i.left-o.left+l/2+"px")}),d.on("focus",function(){FLBuilder._hideFieldPopupSliders()})},_hideFieldPopupSliders:function(e){var e=e?y(e.target):null,t=y("body"),i=y(".fl-field-popup-slider:visible"),l=y(".fl-field-popup-slider-focus");if(e){if(e.closest(".fl-field-popup-slider").length)return;if(e.closest(".fl-field-popup-slider-focus").length)return}t.off("mousedown",FLBuilder._hideFieldPopupSliders),l.removeClass("fl-field-popup-slider-focus"),i.hide()},_setFieldPopupSliderMinMax:function(e){var t=e.parent(),i=t.parent().parent().find("select.fl-field-unit-select"),l=i.val(),t=t.data("slider"),o=0,n=100,s=1;""!==l&&"em"!==l&&"rem"!==l||(n=10,s=.1),"object"==typeof t&&(o=t.min?parseFloat(t.min):o,n=t.max?parseFloat(t.max):n,s=t.step?parseFloat(t.step):s,i.length&&t[l]&&(o=t[l].min?parseFloat(t[l].min):o,n=t[l].max?parseFloat(t[l].max):n,s=t[l].step?parseFloat(t[l].step):s)),e.slider({min:o,max:n,step:s})},_initPresetFields:function(){y(".fl-builder-settings:visible").find(".fl-preset-select-controls").each(FLBuilder._initPresetField)},_initPresetField:function(){var e=y(this),t=e.find("select"),i=e.data("presets"),e=e.data("prefix");t.on("change",FLBuilder._setFormPreset.bind(this,i,e))},_setFormPreset:function(e,t,i){var l=y(i.currentTarget).val();if(presetLists=FLBuilderConfig.presets,presets=presetLists[e],form=y(".fl-builder-settings:visible"),"undefined"!==presets&&"undefined"!==presets[l]){var o,n=presets[l].settings;for(o in n){var l=n[o],s=void 0!==t&&""!==t?form.find('[name="'+t+o+'"]'):form.find('[name="'+o+'"]');s.val(l).trigger("change").trigger("input")}}},ajax:function(t,i){if(!FLBuilder._ajaxRequest){for(var e in FLBuilder.triggerHook("didBeginAJAX",t),t)void 0===t[e]&&(t[e]=null);return(t._wpnonce=FLBuilderConfig.ajaxNonce,t.post_id=FLBuilderConfig.postId,t.fl_builder=1,t.safemode=FLBuilderConfig.safemode,t.fl_action=t.action,void 0!==t.settings&&(t.settings=FLBuilder._ajaxModSecFix(y.extend(!0,{},t.settings))),void 0!==t.node_settings&&(t.node_settings=FLBuilder._ajaxModSecFix(y.extend(!0,{},t.node_settings))),void 0!==t.node_preview&&(t.node_preview=FLBuilder._ajaxModSecFix(y.extend(!0,{},t.node_preview))),t.settings=FLBuilder._inputVarsCheck(t.settings),t.node_settings=FLBuilder._inputVarsCheck(t.node_settings),"error"===t.settings||"error"===t.node_settings)?0:(t={fl_builder_data:t},FLBuilder._ajaxRequest=y.post(FLBuilder._ajaxUrl(),t,function(e){void 0!==i&&i.call(this,e),FLBuilder.triggerHook("didCompleteAJAX",t)}).always(FLBuilder._ajaxComplete).fail(function(e,t,i){switch(msg=!1,e.status){case 403:case 409:msg="Something you entered has triggered a "+e.status+" error.<br /><br />This is nearly always due to mod_security settings from your hosting provider.",window.crash_vars.white_label||(msg+='<br /><br />See this <a target="_blank" style="color: #428bca;font-size:inherit" href="https://docs.wpbeaverbuilder.com/beaver-builder/troubleshooting/common-issues/403-forbidden-or-blocked-error">Knowledge Base</a> article for more info.</br />')}msg&&(console.log(e),console.log(i),FLBuilder.alert(msg))}),FLBuilder._ajaxRequest)}FLBuilder._ajaxQueue.push({data:t,callback:i})},_inputVarsCheck:function(e){var t=FLBuilderConfig.MaxInputVars||0;return void 0!==e&&0<t&&(count=y.map(e,function(e,t){return t}).length)>t?(FLBuilder.alert('<h1 style="font-size:2em;text-align:center">Critical Issue</h1><br />The number of settings being saved ('+count+") exceeds the PHP Max Input Vars setting ("+t+").<br />Please contact your host to have this value increased, the default is 1000."),console.log("Vars Count: "+count),console.log("Max Input: "+t),"error"):e},_ajaxComplete:function(){var e;FLBuilder._ajaxRequest=null,FLBuilder.hideAjaxLoader(),FLBuilder._ajaxQueue.length&&(e=FLBuilder._ajaxQueue.shift(),FLBuilder.ajax(e.data,e.callback))},_ajaxUrl:function(e){var t=FLBuilderConfig.shortlink,i=null;if(void 0!==e)for(i in e)t=(t+=-1<t.indexOf("?")?"&":"?")+i+"="+e[i];return t},showAjaxLoader:function(){0===y(".fl-builder-lightbox-loading").length&&y(".fl-builder-loading").show()},hideAjaxLoader:function(){y(".fl-builder-loading").hide()},_showNodeLoading:function(e){e=y(".fl-node-"+e);e.addClass("fl-builder-node-loading"),FLBuilder._removeAllOverlays(),FLBuilder.triggerHook("didStartNodeLoading",e)},_hideNodeLoading:function(e){y(".fl-node-"+e).removeClass("fl-builder-node-loading")},_showNodeLoadingPlaceholder:function(e,t){var i=y('<div class="fl-builder-node-loading-placeholder"></div>');y(".fl-builder-node-loading-placeholder").remove(),0===(siblings=e.hasClass("fl-builder-content")?e.find(" > .fl-row"):e.hasClass("fl-row-content")?e.find(" > .fl-col-group"):e.hasClass("fl-col-group")?(e.addClass("fl-col-group-has-child-loading"),e.find(" > .fl-col")):e.find(" > .fl-col-group, > .fl-module")).length||siblings.length==t?e.append(i):siblings.eq(t).before(i)},_removeNodeLoadingPlaceholder:function(e){var t=e.prev(".fl-builder-node-loading-placeholder"),e=e.next(".fl-builder-node-loading-placeholder");(t.length?t:e).remove()},_ajaxModSecFix:function(e){if(FLBuilderConfig.modSecFix&&"undefined"!=typeof btoa)if("string"==typeof e)e=FLBuilder._btoa(e);else for(var t in e)"string"==(type=typeof e[t])||"number"==type?e[t]=FLBuilder._btoa(e[t]):"object"==type&&(e[t]=FLBuilder._ajaxModSecFix(e[t]));return e},_btoa:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))},_wpmedia_reset_errors:function(){y(".upload-error").remove(),y(".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 t=wp.template("fl-actions-lightbox");FLBuilder.triggerHook("actions-lightbox-settings",e),FLBuilder._actionsLightbox.open(t(e))},_checkEnv:function(){"svg"===FLBuilderConfig.fontAwesome&&FLBuilder.alert(FLBuilderStrings.fontAwesome)},alert:function(e){var t=new FLLightbox({className:"fl-builder-alert-lightbox",destroyOnClose:!0}),i=wp.template("fl-alert-lightbox");t.open(i({message:e}))},crashMessage:function(e){FLLightbox.closeAll();var t=new FLLightbox({className:"fl-builder-alert-lightbox fl-builder-crash-lightbox",destroyOnClose:!0}),i=wp.template("fl-crash-lightbox"),l=window.crash_vars.product,o=window.crash_vars.white_label,n=window.crash_vars.labeled_txt;message=l+" 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="<p>If you contact Beaver Builder Support, we need to know what the error is in the JavaScript console in your browser.</p>",info+="<div><div style='width:49%;float:left;'><p>MacOS Users:<br />Chrome: View > Developer > JavaScript Console<br />Firefox: Tools > Web Developer > Browser Console<br />Safari: Develop > Show JavaScript console</p></div><div style='width:49%;float:right;'><p>Windows Users:<br />Chrome: Settings > More Tools > Developer > Console<br />Firefox: Menu/Settings > Web Developer > Web Console<br />Edge: Settings and More > More Tools > Console</p></div></div><p style='display:inline-block;'>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://docs.wpbeaverbuilder.com/beaver-builder/troubleshooting/debugging/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.</p>",FLBuilderConfig.MaxInputVars<=3e3&&(info+="<br /><br />The PHP config value max_input_vars is only set to "+FLBuilderConfig.MaxInputVars+'. If you are using 3rd party addons this could very likely be the cause of this error. [<a class="link" href="https://docs.wpbeaverbuilder.com/beaver-builder/troubleshooting/common-issues/exceeds-php-max-input-vars">doc link</a>].'),o&&(info=n),t.open(i({message:message,info:info,debug:!1}))},_alertClose:function(){FLLightbox.closeParent(this)},confirm:function(e){var t={message:"",ok:function(){},cancel:function(){},strings:{ok:FLBuilderStrings.ok,cancel:FLBuilderStrings.cancel}},t=y.extend({},t,void 0===e?{}:e);lightbox=new FLLightbox({className:"fl-builder-confirm-lightbox fl-builder-alert-lightbox",destroyOnClose:!0}),template=wp.template("fl-confirm-lightbox"),lightbox.open(template(t)),lightbox._node.find(".fl-builder-confirm-ok").on("click",t.ok),lightbox._node.find(".fl-builder-confirm-cancel").on("click",t.cancel)},triggerHook:function(e,t){y("body").trigger("fl-builder."+e,t)},addHook:function(e,t){y("body").on("fl-builder."+e,t)},removeHook:function(e,t){y("body").off("fl-builder."+e,t)},log:function(e){void 0!==window.console&&void 0!==window.console.log&&console.log(e)},logError:function(e,t){var i=null;void 0!==e&&(void 0!==e.stack?i=e.stack:void 0!==e.message&&(i=e.message),i&&(FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(i),void 0!==t&&t&&(FLBuilder.log("Debug Info"),console.log(t)),y.each(window.crash_vars.vars,function(e,t){console.log(e+": "+t)}),FLBuilder.log("************************************************************************"),void 0!==t&&t&&(i=t+"\n"+i),FLBuilder.crashMessage(i)))},logGlobalError:function(e,t,i,l,o){FLBuilder.log("************************************************************************"),FLBuilder.log(FLBuilderStrings.errorMessage),FLBuilder.log(FLBuilderStrings.globalErrorMessage.replace("{message}",e).replace("{line}",i).replace("{file}",t)),void 0!==o&&void 0!==o.stack&&FLBuilder.log(o.stack),FLBuilder.log("************************************************************************")},_jsonParse:function(t){try{t=JSON.parse(t)}catch(e){FLBuilder.logError(e,FLBuilder._parseError(t))}return t},_parseError:function(e){return e.indexOf("</head>")?"AJAX returned HTML page instead of data. (Possible 404 or max_input_vars)":!!((php=e.match(/^<.*/gm)||!1)&&0<php.length)&&(i="",y.each(php,function(e,t){i+=t}),y(i).text());var i},isUndefined:function(e){return void 0===e},isBoolean:function(e){return!0===e||!1===e},getSandbox:function(e){return e in this._sandbox&&this._sandbox[e]},setSandbox:function(e,t){this._sandbox[e]=t},deleteSandbox:function(e){delete this._sandbox[e]}},y(function(){FLBuilder._init()})}(jQuery),!function(n){(FLBuilderAJAXLayout=function(e,t){this._data=n.extend({},this._defaults,"string"==typeof e?FLBuilder._jsonParse(e):e),this._callback=t,this._post=FLBuilderConfig.postId,this._head=n("head").eq(0),this._body=n("body").eq(0),this._data.css&&("inline"===FLBuilderConfig.enqueueMethod?(this._oldCss=n("#fl-builder-layout-"+this._post+"-inline-css"),this._newCss=n('<style id="fl-builder-layout-'+this._post+'-inline-css" type="text/css">'+this._data.css+"</style>")):(this._loader=n('<img src="'+this._data.css+'" />'),this._oldCss=n('link[href*="/cache/'+this._post+'-layout"]'),this._newCss=n('<link rel="stylesheet" id="fl-builder-layout-'+this._post+'-css" href="'+this._data.css+'" />'))),this._data.partial?(this._data.js&&(this._oldJs=n("#fl-builder-partial-refresh-js"),this._newJs=n('<script type="text/javascript" id="fl-builder-partial-refresh-js">'+this._data.js+"<\/script>")),this._data.nodeId&&(this._data.oldNodeId?(this._oldScriptsStyles=n('.fl-builder-node-scripts-styles[data-node="'+this._data.oldNodeId+'"]'),this._content=n(".fl-node-"+this._data.oldNodeId)):(this._oldScriptsStyles=n('.fl-builder-node-scripts-styles[data-node="'+this._data.nodeId+'"]'),this._content=n(".fl-node-"+this._data.nodeId).eq(0)))):("inline"===FLBuilderConfig.enqueueMethod?(this._oldJs=n("#fl-builder-layout-"+this._post+"-inline-js