Smart Slider 3 - Version 3.1.10

Version Description

  • 20. May 2017. =
  • Feature: Google font families updated
  • Fix: Sliders not load in are cases
  • Fix: Transition layer when there is no second image selected
  • Fix: YouTube layer in Internet Explorer
  • Fix: Arrow size in Internet Explorer
Download this release

Release Info

Developer nextendweb
Plugin Icon 128x128 Smart Slider 3
Version 3.1.10
Comparing to
See all releases

Code changes from version 3.1.6 to 3.1.10

Files changed (68) hide show
  1. includes/divi.php +8 -1
  2. includes/extensions/smartslider/manifest.php +9 -0
  3. includes/extensions/smartslider/shortcodes/smartslider/config.php +11 -0
  4. includes/extensions/smartslider/shortcodes/smartslider/options.php +11 -0
  5. includes/extensions/smartslider/shortcodes/smartslider/static/img/page_builder.png +0 -0
  6. includes/extensions/smartslider/shortcodes/smartslider/views/view.php +9 -0
  7. includes/shortcode.php +23 -0
  8. includes/smartslider3.php +14 -1
  9. library/media/admin/dist/smartslider-backend.css +15 -1
  10. library/media/admin/dist/smartslider-backend.min.css +1 -1
  11. library/media/dist/smartslider-backend.js +908 -910
  12. library/media/dist/smartslider-backend.min.js +7 -7
  13. library/media/dist/smartslider-frontend.js +348 -39
  14. library/media/dist/smartslider-frontend.min.js +4 -4
  15. library/media/plugins/type/simple/simple/dist/smartslider-simple-type-frontend.js +0 -5
  16. library/media/plugins/type/simple/simple/dist/smartslider-simple-type-frontend.min.js +1 -1
  17. library/media/plugins/widgetarrow/image/image/arrow.js +4 -1
  18. library/media/plugins/widgetarrow/image/image/arrow.min.js +1 -1
  19. library/media/plugins/widgetthumbnail/default/default/style.n2less +67 -13
  20. library/media/plugins/widgetthumbnail/default/default/thumbnail.js +31 -33
  21. library/media/plugins/widgetthumbnail/default/default/thumbnail.min.js +1 -1
  22. library/smartslider/backend/N2SmartsliderApplicationTypeBackend.php +0 -1
  23. library/smartslider/backend/controllers/Generator.php +3 -0
  24. library/smartslider/backend/controllers/Settings.php +1 -1
  25. library/smartslider/backend/controllers/ajax/Slides.php +3 -1
  26. library/smartslider/backend/inline/slidemanager.phtml +6 -6
  27. library/smartslider/backend/inline/slidermanager.phtml +8 -8
  28. library/smartslider/backend/views/sliders/index.phtml +1 -1
  29. library/smartslider/backend/views/slides/edit.phtml +2 -2
  30. library/smartslider/languages/de_DE.mo +0 -0
  31. library/smartslider/languages/fa_IR.mo +0 -0
  32. library/smartslider/languages/fr_FR.mo +0 -0
  33. library/smartslider/languages/hr_HR.mo +0 -0
  34. library/smartslider/languages/hu_HU.mo +0 -0
  35. library/smartslider/libraries/export.php +14 -1
  36. library/smartslider/libraries/import.php +16 -2
  37. library/smartslider/libraries/slider/abstract.php +0 -4
  38. library/smartslider/libraries/slider/features/fadeonload.php +1 -1
  39. library/smartslider/libraries/slider/features/features.php +0 -32
  40. library/smartslider/libraries/slider/features/responsive.php +7 -1
  41. library/smartslider/libraries/slider/features/slidebackground.php +4 -3
  42. library/smartslider/libraries/slider/features/spinner.php +12 -1
  43. library/smartslider/libraries/slider/slide/group.php +12 -0
  44. library/smartslider/libraries/slider/slide/layer.php +61 -25
  45. library/smartslider/models/License.php +10 -6
  46. library/smartslider/models/Sliders.php +5 -2
  47. library/smartslider/models/Slides.php +19 -10
  48. library/smartslider/models/forms/element/publishslider.php +4 -1
  49. library/smartslider/models/forms/settings/default.xml +1 -1
  50. library/smartslider/plugins/item/button/button/configuration.xml +2 -0
  51. library/smartslider/plugins/item/heading/heading/configuration.xml +10 -0
  52. library/smartslider/plugins/item/image/image.php +12 -8
  53. library/smartslider/plugins/item/image/image/configuration.xml +1 -0
  54. library/smartslider/plugins/item/vimeo/vimeo.php +44 -8
  55. library/smartslider/plugins/item/vimeo/vimeo/configuration.xml +10 -1
  56. library/smartslider/plugins/item/youtube/youtube.php +63 -25
  57. library/smartslider/plugins/item/youtube/youtube/configuration.xml +9 -1
  58. library/smartslider/plugins/widgetarrow/image/image.php +18 -2
  59. library/smartslider/plugins/widgetautoplay/image/image.php +7 -3
  60. library/smartslider/plugins/widgetbullet/transition/transition.php +1 -0
  61. library/smartslider/plugins/widgetthumbnail/default/default.php +20 -24
  62. library/smartslider/plugins/widgetthumbnail/default/default/config.xml +7 -0
  63. library/smartslider/smartslider3.php +3 -3
  64. library/wordpress/plugins/generator/posts/posts/generator.php +46 -2
  65. library/wordpress/plugins/generator/posts/postsbyids/generator.php +2 -1
  66. nextend/library/applications/system/backend/views/settings/aviary.phtml +2 -2
  67. nextend/library/applications/system/models/forms/globalconfig.xml +1 -0
  68. nextend/library/applications/system/plugins/nextendfontservices/google/google.php +696 -732
includes/divi.php CHANGED
@@ -45,6 +45,7 @@ class Nextend_ET_Builder_Module_Smart_Slider extends ET_Builder_Module {
45
  'slider' => array(
46
  'label' => 'Slider',
47
  'option_category' => 'basic_option',
 
48
  'renderer' => 'Nextend_ET_Builder_Module_Smart_Slider_Field',
49
  'renderer_with_field' => true
50
  )
@@ -58,7 +59,7 @@ class Nextend_ET_Builder_Module_Smart_Slider extends ET_Builder_Module {
58
  $module_class = '';
59
  $module_class = ET_Builder_Element::add_module_order_class($module_class, $function_name);
60
 
61
- return '<div class="et_pb_module et-waypoint ' . $module_class . ' et_pb_animation_off">' . N2SS3Shortcode::render(array('slider' => $sliderId), 'Divi module') . '</div>';
62
  }
63
  }
64
 
@@ -81,8 +82,14 @@ function Nextend_et_builder_get_child_modules_fix($child_modules) {
81
  add_filter('et_builder_get_child_modules', 'Nextend_et_builder_get_child_modules_fix');
82
 
83
  if(function_exists('et_fb_is_enabled') && et_fb_is_enabled()){
 
 
 
 
84
  remove_shortcode('smartslider3');
85
  }
86
 
 
 
87
  new Nextend_ET_Builder_Module_Smart_Slider;
88
  new Nextend_ET_Builder_Module_Smart_Slider_Fullwidth;
45
  'slider' => array(
46
  'label' => 'Slider',
47
  'option_category' => 'basic_option',
48
+ 'type' => 'text',
49
  'renderer' => 'Nextend_ET_Builder_Module_Smart_Slider_Field',
50
  'renderer_with_field' => true
51
  )
59
  $module_class = '';
60
  $module_class = ET_Builder_Element::add_module_order_class($module_class, $function_name);
61
 
62
+ return '<div class="et_pb_module et-waypoint ' . $module_class . ' et_pb_animation_off">' . do_shortcode('[smartslider3 slider=' . $sliderId . ']') . '</div>';
63
  }
64
  }
65
 
82
  add_filter('et_builder_get_child_modules', 'Nextend_et_builder_get_child_modules_fix');
83
 
84
  if(function_exists('et_fb_is_enabled') && et_fb_is_enabled()){
85
+ Nextend_et_builder_remove_shortcode();
86
+ }
87
+
88
+ function Nextend_et_builder_remove_shortcode() {
89
  remove_shortcode('smartslider3');
90
  }
91
 
92
+ add_action( 'wp_ajax_et_fb_retrieve_builder_data', 'Nextend_et_builder_remove_shortcode', 9);
93
+
94
  new Nextend_ET_Builder_Module_Smart_Slider;
95
  new Nextend_ET_Builder_Module_Smart_Slider_Fullwidth;
includes/extensions/smartslider/manifest.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php if (!defined('FW')) die('Forbidden');
2
+
3
+ $manifest = array();
4
+ $manifest['name'] = 'Smart Slider 3';
5
+ $manifest['version'] = '3.0.0';
6
+ $manifest['uri'] = 'https://smartslider3.com';
7
+ $manifest['author'] = 'Nextendweb';
8
+ $manifest['author_uri'] = 'https://smartslider3.com';
9
+ $manifest['standalone'] = true;
includes/extensions/smartslider/shortcodes/smartslider/config.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if (!defined('FW')) {
2
+ die('Forbidden');
3
+ }
4
+
5
+ $cfg = array();
6
+
7
+ $cfg['page_builder'] = array(
8
+ 'title' => 'Smart Slider',
9
+ 'description' => 'Adds Smart Slider into the page',
10
+ 'tab' => __('Media Elements', 'fw'),
11
+ );
includes/extensions/smartslider/shortcodes/smartslider/options.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if (!defined('FW')) {
2
+ die('Forbidden');
3
+ }
4
+
5
+ $options = array(
6
+ 'id' => array(
7
+ 'label' => 'Slider ID',
8
+ 'type' => 'text',
9
+ 'value' => ''
10
+ ),
11
+ );
includes/extensions/smartslider/shortcodes/smartslider/static/img/page_builder.png ADDED
Binary file
includes/extensions/smartslider/shortcodes/smartslider/views/view.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php if (!defined('FW')) {
2
+ die('Forbidden');
3
+ }
4
+
5
+ /**
6
+ * @var array $atts
7
+ */
8
+ ?>
9
+ <?php echo do_shortcode('[smartslider3 slider=' . $atts['id'] . ']'); ?>
includes/shortcode.php CHANGED
@@ -8,6 +8,29 @@ class N2SS3Shortcode
8
  }
9
 
10
  public static function render($parameters, $usage = 'WordPress Shortcode') {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  $parameters = shortcode_atts(array(
12
  'id' => md5(time()),
13
  'slider' => 0
8
  }
9
 
10
  public static function render($parameters, $usage = 'WordPress Shortcode') {
11
+ if (isset($parameters['slide'])) {
12
+ $slideTo = intval($parameters['slide']);
13
+ }
14
+
15
+ if (isset($parameters['get']) && !empty($_GET[$parameters['get']])) {
16
+ $slideTo = intval($_GET[$parameters['get']]);
17
+ }
18
+
19
+ if (isset($slideTo)) {
20
+ echo "<script type=\"text/javascript\">window['ss" . $parameters['slider'] . "'] = " . ($slideTo - 1) . ";</script>";
21
+ }
22
+
23
+ if (isset($parameters['page'])) {
24
+ if ($parameters['page'] == 'home') {
25
+ $condition = (!is_home() && !is_front_page());
26
+ } else {
27
+ $condition = ((get_the_ID() != intval($parameters['page'])) || (is_home() || is_front_page()));
28
+ }
29
+ if ($condition) {
30
+ return '';
31
+ }
32
+ }
33
+
34
  $parameters = shortcode_atts(array(
35
  'id' => md5(time()),
36
  'slider' => 0
includes/smartslider3.php CHANGED
@@ -43,6 +43,16 @@ class SmartSlider3 {
43
  add_action('elementor/init', 'SmartSlider3::initElementor');
44
 
45
  add_filter('wpseo_xml_sitemap_post_url', 'SmartSlider3::wpseo_xml_sitemap_post_url', 10, 2);
 
 
 
 
 
 
 
 
 
 
46
  }
47
 
48
  public static function wpseo_xml_sitemap_post_url($permalink, $post) {
@@ -51,6 +61,7 @@ class SmartSlider3 {
51
  $shortcode_tags = array("smartslider3" => "N2SS3Shortcode::doShortcode");
52
  $post->post_content = do_shortcode($post->post_content);
53
  $shortcode_tags = $_shortcode_tags;
 
54
  return $permalink;
55
  }
56
 
@@ -163,6 +174,7 @@ class SmartSlider3 {
163
  }
164
 
165
  update_option("n2_ss3_version", N2SS3::$version);
 
166
  return true;
167
  }
168
 
@@ -200,7 +212,7 @@ class SmartSlider3 {
200
 
201
  global $wpdb;
202
  $prefix = $wpdb->get_blog_prefix($blog_id);
203
- $wpdb->query('DROP TABLE IF EXISTS ' . $prefix . 'nextend2_smartslider3_generators, ' . $prefix . 'nextend2_smartslider3_sliders, ' . $prefix . 'nextend2_smartslider3_slides;');
204
 
205
  }
206
  }
@@ -222,6 +234,7 @@ class SmartSlider3 {
222
  if ($sliderId !== false) {
223
  return $sliderId;
224
  }
 
225
  return false;
226
  }
227
 
43
  add_action('elementor/init', 'SmartSlider3::initElementor');
44
 
45
  add_filter('wpseo_xml_sitemap_post_url', 'SmartSlider3::wpseo_xml_sitemap_post_url', 10, 2);
46
+
47
+
48
+ add_filter('fw_extensions_locations', 'SmartSlider3::unyson_extension');
49
+ }
50
+
51
+ public static function unyson_extension($locations) {
52
+ $path = dirname(__FILE__) . '/extensions';
53
+ $locations[$path] = plugin_dir_url(__FILE__) . 'extensions';
54
+
55
+ return $locations;
56
  }
57
 
58
  public static function wpseo_xml_sitemap_post_url($permalink, $post) {
61
  $shortcode_tags = array("smartslider3" => "N2SS3Shortcode::doShortcode");
62
  $post->post_content = do_shortcode($post->post_content);
63
  $shortcode_tags = $_shortcode_tags;
64
+
65
  return $permalink;
66
  }
67
 
174
  }
175
 
176
  update_option("n2_ss3_version", N2SS3::$version);
177
+
178
  return true;
179
  }
180
 
212
 
213
  global $wpdb;
214
  $prefix = $wpdb->get_blog_prefix($blog_id);
215
+ $wpdb->query('DROP TABLE IF EXISTS ' . $prefix . 'nextend2_smartslider3_generators, ' . $prefix . 'nextend2_smartslider3_sliders, ' . $prefix . 'nextend2_smartslider3_slides, ' . $prefix . 'nextend2_smartslider3_sliders_xref;');
216
 
217
  }
218
  }
234
  if ($sliderId !== false) {
235
  return $sliderId;
236
  }
237
+
238
  return false;
239
  }
240
 
library/media/admin/dist/smartslider-backend.css CHANGED
@@ -1636,7 +1636,9 @@ div#n2-ss-0:HOVER .n2-ss-static-slide.n2-ss-currently-edited-slide {
1636
  .n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .n2-ss-layer-chain-parent,
1637
  .n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .n2-ss-layer-border,
1638
  #n2-ss-0 .n2-ss-static-slide .n2-ss-layer.n2-ss-layer-locked .n2-ss-layer-cc,
1639
- #n2-ss-0 .n2-ss-slide.n2-ss-slide-active .n2-ss-layer.n2-ss-layer-locked .n2-ss-layer-cc {
 
 
1640
  display: none !important;
1641
  }
1642
 
@@ -2573,6 +2575,10 @@ html[dir="rtl"] .n2-ss-layer-list-top-bar .n2-ss-layer-list-topbar-control .n2-b
2573
  margin: -38px 20px 0;
2574
  }
2575
 
 
 
 
 
2576
  .n2-button-single-animation-play.n2-active .n2-i:before {
2577
  content: '\e607';
2578
  }
@@ -2650,6 +2656,14 @@ div#n2-ss-0 .n2-ss-layer-chain-parent {
2650
  .n2-ss-show-slides a.n2-ss-back-slides,
2651
  .n2-ss-show-slides a.n2-ss-back-slides:before {
2652
  color: #fff;
 
 
 
 
 
 
 
 
2653
  }
2654
 
2655
  .n2-ss-scrollbar-wrapper {
1636
  .n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .n2-ss-layer-chain-parent,
1637
  .n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .n2-ss-layer-border,
1638
  #n2-ss-0 .n2-ss-static-slide .n2-ss-layer.n2-ss-layer-locked .n2-ss-layer-cc,
1639
+ #n2-ss-0 .n2-ss-slide.n2-ss-slide-active .n2-ss-layer.n2-ss-layer-locked .n2-ss-layer-cc,
1640
+ #n2-ss-0 .n2-ss-slide.n2-ss-slide-active .n2-ss-layer.n2-ss-layer-locked .n2-ss-layer-border,
1641
+ #n2-ss-0 .n2-ss-slide.n2-ss-slide-active .n2-ss-layer.n2-ss-layer-locked .ui-resizable-handle {
1642
  display: none !important;
1643
  }
1644
 
2575
  margin: -38px 20px 0;
2576
  }
2577
 
2578
+ html[dir=rtl] .n2-ss-small-more {
2579
+ float: left;
2580
+ }
2581
+
2582
  .n2-button-single-animation-play.n2-active .n2-i:before {
2583
  content: '\e607';
2584
  }
2656
  .n2-ss-show-slides a.n2-ss-back-slides,
2657
  .n2-ss-show-slides a.n2-ss-back-slides:before {
2658
  color: #fff;
2659
+ }
2660
+
2661
+ .n2-ss-layer-status-locked .n2-actions-left .n2-i-eye:before {
2662
+ content: '\e609';
2663
+ }
2664
+
2665
+ .n2-ss-focus-on-active-layer .n2-ss-layer.n2-active {
2666
+ z-index: 10000000 !important;
2667
  }
2668
 
2669
  .n2-ss-scrollbar-wrapper {
library/media/admin/dist/smartslider-backend.min.css CHANGED
@@ -1 +1 @@
1
- #html-body header,.adminhtml-smartslider3-index #footer,.adminhtml-smartslider3-index .footer,.smartslider3-index-index footer{display:none}#html-body #anchor-content{padding-top:30px}.unselectable{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;user-select:none}.n2-definition-list dt.n2-ss-slider-ordering{color:#fff;background-color:#212d3a;border:0}.n2-definition-list dt.n2-ss-slider-ordering>div{padding:0 30px}.n2-definition-list .n2-ss-slider-ordering .n2-button{min-width:28px;line-height:28px;height:28px;margin-left:10px;background-color:#54667b;color:#fff}.n2-definition-list .n2-ss-slider-ordering .n2-button.n2-active{background:#0c92df}.n2-definition-list dt.n2-ss-slider-ordering .n2-actions{background-color:#212d3a;padding-top:16px}.n2-definition-list .n2-ss-slider-ordering>.n2-actions a{display:inline-block;padding:0}.n2-definition-list .n2-ss-slider-ordering>.n2-actions .n2-i{vertical-align:top}.n2-ss-slide2-list li .n2-actions .n2-i-delete,.n2-ss-slide2-list li .n2-actions .n2-i-duplicate,.n2-ss-slide2-list li .n2-actions .n2-i-star{visibility:hidden}.n2-ss-slide2-list li .n2-actions .n2-i-star.n2-active,.n2-ss-slide2-list li:HOVER .n2-actions .n2-i-delete,.n2-ss-slide2-list li:HOVER .n2-actions .n2-i-duplicate,.n2-ss-slide2-list li:HOVER .n2-actions .n2-i-star{visibility:visible}.n2-lightbox-sidebar-list{overflow-y:auto}#n2-tab-widgets{border-bottom:0;margin-bottom:1000px}.n2-i-edit.n2-active{color:#0c92df}.n2-ss-live-preview span{text-decoration:line-through;vertical-align:middle}.n2-ss-live-preview .n2-button,.n2-widget-area{vertical-align:middle;margin:0 20px}.n2-ss-live-preview.n2-active span{text-decoration:none}.n2-ss-live-preview.n2-active .n2-button{display:none}.n2-widget-area{display:inline-block;width:80px;height:80px;position:relative;margin:0 10px}.n2-form .n2-widget-area{margin-bottom:10px}.n2-widget-area-inner{position:absolute;top:14px;left:14px;width:46px;height:46px;border:3px solid #bbc3cc;border-radius:3px}.n2-widget-area .n2-area{position:absolute;background-color:#a1aeb5;border-radius:2px;cursor:pointer;width:10px;height:10px;left:0;top:0}.n2-widget-area .n2-area.n2-active{background-color:#0c92df;cursor:default}.n2-widget-area .n2-area-1{left:35px}.n2-widget-area .n2-area-2{left:21px;top:21px}.n2-widget-area .n2-area-3{left:35px;top:21px}.n2-widget-area .n2-area-4{left:49px;top:21px}.n2-widget-area .n2-area-5{top:35px}.n2-widget-area .n2-area-6{left:21px;top:35px}.n2-widget-area .n2-area-7{left:49px;top:35px}.n2-widget-area .n2-area-8{left:70px;top:35px}.n2-widget-area .n2-area-9{left:21px;top:49px}.n2-widget-area .n2-area-10{left:35px;top:49px}.n2-widget-area .n2-area-11{left:49px;top:49px}.n2-widget-area .n2-area-12{left:35px;top:70px}.n2-ss-slider-publish{border-collapse:collapse;overflow:hidden}.n2-ss-slider-publish .n2-td{text-align:center;border-right:1px solid #ccd1d6;color:#6b7989;padding:48px 0 0}.n2-ss-slider-publish .n2-td .n2-h2 a{color:#6b7989}.n2-ss-slider-publish .n2-td.n2-last{border-right:0}.n2-ss-slider-publish div.n2-h2{line-height:30px;font-size:18px}.n2-ss-slider-publish div.n2-h4{line-height:26px}.n2-ss-slider-publish .n2-code{display:inline-block;padding:16px 30px;line-height:20px;border-radius:3px;background-color:#f5e293;text-align:left;margin:17px 0;color:#6f653f;font-size:12px;border:0}.n2-ss-slider-publish img{margin-top:17px;margin-bottom:-10px}.n2-ss-generator-modal .n2-modal-content h3{text-align:left}.n2-generator-records td div{max-height:100px;overflow:hidden;padding:10px;margin:-10px}.n2-generator-records td:HOVER div{overflow-y:auto;overflow-x:visible}#n2-admin[data-slider-type=block] .n2-fm-arrow,#n2-admin[data-slider-type=block] .n2-fm-autoplay,#n2-admin[data-slider-type=block] .n2-fm-bar,#n2-admin[data-slider-type=block] .n2-fm-bullet,#n2-admin[data-slider-type=block] .n2-fm-indicator,#n2-admin[data-slider-type=block] .n2-fm-slides,#n2-admin[data-slider-type=block] .n2-fm-thumbnail{display:none}.n2-ss-container-device{position:relative;background-color:#fff;border:1px solid #ccd1d6;border-width:0 1px;margin:40px auto 0}.n2-modal.n2-ss-go-pro .n2-modal-window{text-align:center;line-height:2}.n2-modal.n2-ss-go-pro .n2-ss-rate{margin:50px -20px 0;background:url(../images/free/rate.png);height:90px;line-height:90px;color:#fff}.n2-modal.n2-ss-go-pro .n2-ss-rate .n2-h3{display:inline-block;margin-right:30px}.n2-modal.n2-ss-go-pro .n2-modal-controls{margin-bottom:40px}.n2-ss-create-slider-free-sample{float:left;height:70px;width:170px;cursor:pointer}.n2-ss-create-slider-free-sample:HOVER{background-position:0 -80px}.n2-ss-modal-subscribe>.n2-modal-window{text-align:center}.n2-ss-modal-subscribe .n2-form{margin:0 -20px}.n2-ss-modal-subscribe .n2-h3{margin:0 auto;width:95%;text-align:center;line-height:2}.n2-ss-preview-subscribe .n2-input-button{display:inline-block}.n2-input-button,.n2-ss-modal-subscribe .n2-input-button{display:inline-block;margin-top:20px}.n2-input-button>*,.n2-ss-modal-subscribe .n2-input-button>*,.n2-ss-preview-subscribe .n2-input-button>*{display:inline-block;white-space:nowrap}.n2-input-button input,.n2-input-button input:focus,.n2-ss-modal-subscribe input,.n2-ss-modal-subscribe input:focus,.n2-ss-preview-subscribe input,.n2-ss-preview-subscribe input:focus{margin:0 auto;width:250px;height:36px;border:2px solid #b9c3c9;border-right:0;border-top-left-radius:3px;border-bottom-left-radius:3px;overflow:hidden;padding:0 10px;line-height:36px;box-shadow:none;color:#7b8898;font-size:12px;background:#fff}.n2-input-button .n2-button,.n2-ss-modal-subscribe .n2-input-button .n2-button,.n2-ss-preview-subscribe .n2-input-button .n2-button{border-top-left-radius:0;border-bottom-left-radius:0}.n2-ss-preview-subscribe{position:fixed;left:50%;margin-left:-500px;bottom:-100px;transition:bottom .5s ease;background:url(../images/free/subscribepreview.png);width:1000px;height:90px;z-index:1000}.n2-ss-preview-subscribe.n2-active{bottom:10px}.n2-ss-preview-subscribe-close{position:absolute;top:-12px;right:-12px;width:24px;height:24px;cursor:pointer;background:url(../images/free/close.png) no-repeat center center}.n2-ss-preview-subscribe .n2-input-button{position:absolute;right:20px;top:0;margin-top:28px}.n2-ss-slider-edit>.n2-form>.n2-form-tab{margin:20px 0 0;border-radius:0;border:0}.n2-ss-slider-edit>.n2-form>.n2-form-tab .n2-form-matrix-views{border-radius:0}.n2-box-add-license.n2-ss-license-has-active-key,.n2-box-license-activated.n2-ss-license-no-active-key{display:none}#n2-ss-slider-container,#n2-ss-slides{position:relative;padding:25px}.n2-ss-sliders .n2-box-new-slider>a:before{content:"\e952"}.n2-ss-sliders .n2-box-template-library>a:before{content:"\e951"}.n2-box-up-group>a:before{content:"\e958"}.n2-box-insert-group>a:before{content:"\e959"}.n2-ss-sliders-header>*{margin:0 10px}html[data-sliders='0'] .n2-ss-sliders-header{visibility:hidden}.n2-ss-box-slider{cursor:pointer}#n2-ss-slider-container[data-groupid="0"] .n2-ss-remove-from-group,.n2-ss-box-slider-group .n2-ss-add-to-group,.n2-ss-box-slider-group .n2-ss-remove-from-group,.n2-ss-slider-over-group .n2-box-sortable-placeholder,html[data-slides='0'] .n2-ss-slider-edit{display:none}.n2-ss-slides-outer-container{display:block}.n2-modal-window .n2-ss-slides-outer-container{height:100%;overflow:auto}.n2-ss-slides-container{position:relative;margin:0 -10px}.n2-slide-first.n2-i{line-height:16px}.n2-slide-first.n2-i,.n2-slide-published{font-size:16px;padding:3px}.n2-i-unpublished{color:#c54633}.n2-slide-state-published .n2-i-unpublished{color:#6fbc49}.n2-slide-state-published .n2-i-unpublished:before{content:"\e60c"}.n2-box.n2-first-slide:HOVER .n2-slide-first,.n2-slide-first,.n2-slide-is-first{display:none}.n2-first-slide .n2-slide-is-first{display:inline-block}.n2-slide-duplicate{margin-right:5px}.n2-slide-delete,.n2-slide-duplicate,.n2-slide-selected{padding:0;width:24px}#n2-ss-slides .n2-box.n2-ss-slide-active{box-shadow:0 0 0 3px #0c92df}#n2-ss-slides .n2-box-slide-dummy{background:#e9edf0;border:2px dashed #b2bfc9;box-sizing:border-box;background-image:url(../images/dummy-slide.png);background-repeat:no-repeat;background-position:center 36px;color:#7b8898;font-size:14px;text-align:center;line-height:200px}#n2-ss-slides .n2-box-slide-drag-images{background:url(../images/drag.png) no-repeat center 4px;text-align:center;color:#7b8898;box-sizing:border-box;padding:90px 60px 0;line-height:12px}html:not([data-slides='0']) #n2-ss-slides .n2-box-dummy,html:not([data-slides='0']) #n2-ss-slides-container .n2-box-slide-drag-images,html:not([data-slides='0']) #n2-ss-slides-container .n2-box-slide-dummy{display:none}.n2-ss-slides-control{position:relative;padding:22px 10px;border-bottom:1px solid RGBA(0,0,0,.3)}.n2-ss-slides-control .n2-button{margin:0 10px}.n2-slides-add{vertical-align:bottom;margin:-2px}#n2-ss-slides .n2-box-slide-drag-upload{display:none;position:absolute;z-index:101;left:0;top:0;width:100%;height:100%;background-color:rgba(32,41,52,.9);border:0;right:0;bottom:0;margin:0;vertical-align:bottom;line-height:130px;text-align:center;color:#fff}#n2-ss-slides .n2-drag-over .n2-box-slide-drag-upload{display:block}.n2-box-slide .n2-button.n2-sidebar-list-bg:HOVER{background-color:#0c92df}.n2-ss-quick-slides-edit-modal .n2-modal-content table{border-spacing:10px;border-collapse:separate;margin:10px auto}.n2-ss-quick-slides-edit-modal .n2-modal-content table td{padding:0}.n2-ss-quick-slides-edit-modal .n2-modal-content .n2-mixed-label{margin-top:0;margin-bottom:3px}.n2-ss-quick-slides-edit-modal .n2-modal-content .n2-mixed-label label{font-size:11px}.n2-slide-state-first .n2-ss-setFirst,.n2-slide-state-published .n2-ss-publish,.n2-ss-generator,.n2-ss-unpublish{display:none}.n2-slide-state-has-generator .n2-ss-generator,.n2-slide-state-published .n2-ss-unpublish{display:block}.n2-box-slide .n2-i-star{display:none}.n2-box-slide.n2-slide-state-first .n2-i-star{display:inline;color:#e19f21;font-size:16px}#n2-ss-slides .n2-box:HOVER img{opacity:.1}.n2-ss-slides-header{position:relative;z-index:9;color:#6b7989;margin-top:-10px;visibility:hidden}.n2-ss-has-box-selection .n2-ss-slides-header{visibility:visible}.n2-ss-slides-header .n2-button-menu-open .n2-button-menu{right:-90px}#n2-ss-slides .n2-box-slide-add{display:inline-block;color:#b2bfc9;background:0 0;text-align:center;z-index:5}#n2-ss-slides .n2-box-slide-add>.n2-add-quick-image{width:100%;height:135px;padding:0}#n2-ss-slides .n2-box-slide-add>.n2-add-quick-image:before{display:block;font-family:'Nextend'!important;font-size:48px;line-height:68px;content:"\e91c";margin-top:20px}#n2-ss-slides .n2-box-slide-add .n2-button-menu-open{position:absolute;right:5px;top:5px;width:28px;height:28px;line-height:28px;background:#3e9021;border-radius:3px;cursor:pointer}#n2-ss-slides .n2-box-slide-add .n2-button-menu-open .n2-i:before{content:"\e911";color:#fff;font-size:16px;line-height:28px}.n2-add-quick-image{width:123px}.n2-button-menu-inner .n2-add-quick-image{width:auto}.n2-ss-slides-header>*{vertical-align:middle;display:inline-block}.n2-ss-slides-header .n2-h5,.n2-ss-slides-header .n2-h5 a{margin-right:10px;color:#6b7986}.n2-ss-slides-header .n2-h5 .n2-i{font-size:16px}.n2-top-bar-menu .n2-ss-back-dashboard:before{content:"\e94a"}.n2-top-bar-menu .n2-ss-back-slider:before{content:"\e94b"}.n2-top-bar-menu .n2-ss-back-slides:before{content:"\e91a"}.n2-top-bar-menu>#n2-ss-preview:before{content:"\e92d"}.n2-ss-block-slides-notice{display:none;color:#7b8898}html:not([data-slides='0']):not([data-slides='1']) #n2-admin[data-slider-type=block] .n2-ss-block-slides-notice{display:block}html[data-slides='0'] .n2-ss-create-static-slide{display:none}.n2-ss-core-item,.n2-ss-layers-add{text-align:center}.n2-ss-core-item{display:inline-block;margin:5px;background-color:#6b7986;color:#fff;line-height:20px;cursor:pointer;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:90px;height:80px}.n2-ss-core-item div:before{font-family:'Nextend';font-size:32px;content:"\e943";display:block;line-height:32px;margin-top:20px}.n2-ss-core-item[data-item=heading] div:before{content:"\e945"}.n2-ss-core-item[data-item=text] div:before{content:"\e944"}.n2-ss-core-item[data-item=button] div:before{content:"\e942"}.n2-ss-core-item[data-item=imagearea] div:before{content:"\e950"}.n2-ss-core-item[data-item=icon] div:before{content:"\e941"}.n2-ss-core-item[data-item=input] div:before{content:"\e939"}.n2-ss-core-item[data-item=iframe] div:before{content:"\e938"}.n2-ss-core-item[data-item=area] div:before{content:"\e937"}.n2-ss-core-item[data-item=list] div:before{content:"\e93e"}.n2-ss-core-item[data-item=caption] div:before{content:"\e940"}.n2-ss-core-item[data-item=transition] div:before{content:"\e93f"}.n2-ss-core-item[data-item=youtube] div:before{content:"\e93d"}.n2-ss-core-item[data-item=vimeo] div:before{content:"\e93c"}.n2-ss-core-item[data-item=video] div:before{content:"\e93b"}.n2-ss-core-item[data-item=html] div:before{content:"\e93a"}#n2-ss-layers .sortable-placeholder{border:0;position:relative;height:0;overflow:visible;z-index:1001}#n2-ss-layers .sortable-placeholder div{position:absolute;left:0;top:-1px;width:100%;height:0;border-bottom:1px solid RGBA(254,254,254,.8);box-shadow:0 0 3px 0 RGBA(254,254,254,.8)}#n2-ss-layers .ui-sortable-helper{opacity:.5}.n2-list .n2-ss-layer-group-row{border-bottom:0}.n2-ss-layer-group-row>.n2-ss-layer-title{border-bottom:1px solid RGBA(0,0,0,.2)}.n2-list .n2-ss-layer-row.n2-active,.n2-list .n2-ss-layer-row.n2-selected{background:#1681c1}.n2-ss-layer-group-row ul.n2-list{min-height:10px}.n2-ss-layer-title{display:block;line-height:39px;position:relative;cursor:pointer;overflow:hidden}.n2-ss-layer-title span{margin:0 30px;display:block;width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n2-ss-layer-group-row>.n2-ss-layer-title span,.n2-ss-layer-row .n2-inline-form{margin:0 30px}.n2-ss-layer-group-row ul .n2-ss-layer-title span{margin:0 40px}.n2-ss-layer-row .n2-inline-form input{background:#3c4958 0 0;color:#b2bfc9;font-size:11px;border:2px solid #28313a;line-height:24px;padding:0 10px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-ss-layer-row .n2-inline-form input:focus{box-shadow:none}.n2-ss-layer-title .n2-actions{position:absolute;top:0;right:0;padding:0 6px;cursor:default;opacity:.2}.n2-ss-layer-title:HOVER .n2-actions{opacity:1}.n2-ss-layer-title .n2-actions-left{position:absolute;top:0;left:0;padding:5px 0;cursor:default;line-height:24px}html[dir=rtl] .n2-ss-layer-title .n2-actions-left{padding:0 16px 0 0}.n2-ss-layer-row.n2-active>.n2-ss-layer-title,.n2-ss-layer-row.n2-active>.n2-ss-layer-title .n2-actions .n2-i,.n2-ss-layer-row.n2-active>.n2-ss-layer-title .n2-actions-left .n2-i,.n2-ss-layer-row.n2-selected .n2-ss-layer-title,.n2-ss-layer-row.n2-selected .n2-ss-layer-title .n2-actions .n2-i,.n2-ss-layer-row.n2-selected .n2-ss-layer-title .n2-actions-left .n2-i,.n2-ss-theme-dark .n2-ruler>span span{color:#fff}.n2-ss-layer-title .n2-actions a,.n2-ss-layer-title .n2-actions-left a{display:inline-block;padding:0}.n2-ss-animation-title .n2-actions-left i,.n2-ss-layer-title .n2-actions-left i{padding:0 2px;vertical-align:middle}.n2-ss-layer-title .n2-i-order{cursor:move}.n2-ss-animation-row{list-style:none;color:#b2bfc9}.n2-ss-animation-title{position:relative;line-height:39px;background-color:#303b47;cursor:pointer;text-transform:capitalize}.n2-ss-animation-title span{padding:0 40px}.n2-ss-animation-title .n2-actions{position:absolute;right:0;top:0;cursor:default;padding:0 6px}.n2-ss-animation-title .n2-actions a,.n2-ss-animation-title .n2-actions-left a{display:inline-block;height:100%}.n2-ss-animation-title .n2-actions-left{position:absolute;top:0;left:0;padding:0 16px;cursor:default;font-size:16px;line-height:38px}.smartslider-advanced-layer-mode-active #layersanditems li.layer-orderable.item-active.active .layerTitle{border-left:5px solid #eef3f8}#layeritemeditorpanel,#smartslider-slide-toolbox-layer .n2-sidebar-pane-sizer{visibility:hidden}#layeritemeditorpanel>.n2-form{margin-bottom:0}#layeritemeditorpanel .n2-form-element-radio .n2-radio-option{margin:5px}#layer-animation-chain-in,#layer-animation-chain-out{position:relative}#layer-animation-chain-in .sortable-placeholder,#layer-animation-chain-loop .sortable-placeholder,#layer-animation-chain-out .sortable-placeholder{background-color:#212d3a;border-bottom:1px solid #343f4c;border-width:0 0 1px}#layer-animation-chain-in .n2-td,#layer-animation-chain-loop .n2-td,#layer-animation-chain-out .n2-td{vertical-align:middle}#n2-tab-smartslider-editor{background-color:#fff;margin:-21px 0 0;border-width:1px 0 0;padding-bottom:400px;padding-bottom:40vh;position:relative}.n2-ss-theme-dark #smartslider-adjust-height,.n2-ss-theme-dark .n2-ruler-vertical{background-color:#28313a}#n2-tab-smartslider-editor .n2-heading-controls{z-index:9;padding:0;min-height:0;border:0;height:0;background:#4d5d70}.n2-ss-slider-visible #n2-tab-smartslider-editor .n2-heading-controls{height:auto}#n2-tab-smartslider-editor.n2-scroll-disable .n2-heading-controls{height:54px;border-bottom:0}.n2-ss-preview-mode .n2-main-top-bar{opacity:0}#n2-ss-control-line{position:relative;height:28px;white-space:nowrap;z-index:1000;padding:13px 10px;line-height:28px}#n2-ss-control-line>*{line-height:28px;height:28px;vertical-align:top}#n2-ss-control-line .n2-ss-tool{margin:0 5px;display:inline-block;vertical-align:top!important}#n2-ss-control-line .n2-ss-tool.n2-form-element-text{height:24px;line-height:24px;position:relative}#n2-ss-control-line .n2-text-sub-label{font-size:16px}#n2-ss-slide-canvas-settings{display:inline-block;position:relative}#n2-ss-slide-canvas-settings>.n2-button{width:28px;padding:0;text-align:center}#n2-ss-slide-canvas-settings.n2-active>.n2-button{background-color:#0c92df;border-color:#0c92df}#n2-ss-slide-canvas-settings .n2-ss-settings-panel{position:absolute;left:0;top:28px}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner{margin-top:6px;min-width:180px;box-shadow:0 0 5px 0 RGBA(0,0,0,.3);background-color:#fff;border-radius:3px}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner>*{display:block;line-height:32px;margin:0 10px;position:relative;text-align:left}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner a{color:#7b8898}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner .n2-panel-action{color:#0c92df}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner .n2-setting-tick{display:block;position:absolute;right:0;top:8px;border-radius:3px;border:2px solid #8793a2;width:12px;height:12px}#n2-ss-layer-show-on,#n2-ss-slide-canvas-settings.n2-active .n2-ss-settings-panel{display:inline-block}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner .n2-setting-enabled .n2-setting-tick{border-color:#1999e3;background-color:#1999e3}#n2-ss-slide-canvas-settings .n2-ss-settings-panel,#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner .n2-setting-tick .n2-i,.n2-ss-preview-mode .n2-ss-layer.n2-highlight .ui-item-overlay{display:none}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner .n2-setting-enabled .n2-i{display:inline-block;color:#fff;font-size:16px;line-height:12px;margin:0 -2px}#n2-ss-control-line .n2-button-grey{background-color:#a1aeb5}#n2-ss-control-line .n2-radio-option{background-color:#a1aeb5;border-left:1px solid #8c99a1}#n2-ss-control-line .n2-radio-option.n2-first{border-left-width:0}#n2-ss-control-line .n2-radio-option.n2-active{background-color:#0c92df;border-color:#0c92df}#n2-ss-control-line .n2-radio-option.n2-sub-active{background-color:#51b82d;border-color:#51b82d}#n2-ss-control-line .n2-ss-tool.n2-button{height:28px;line-height:28px;background-color:#a1aeb5}#n2-ss-control-line .n2-ss-tool.n2-button-icon{padding:0;width:28px}#n2-ss-control-line .n2-ss-tool.n2-button.n2-active{background-color:#0c92df}#n2-ss-control-line .n2-ss-tool.n2-button.n2-sub-active{background-color:#51b82d}#n2-ss-control-line .ui-autocomplete{max-width:100%}.n2-ss-addlayer .n2-ss-available-layers{display:none;box-sizing:border-box;white-space:normal;text-align:left}#n2-ss-control-line #n2-ss-theme.n2-active,#n2-ss-layer-parent-linker,#n2-ss-theme{width:28px;height:28px;line-height:28px;padding:0;background-color:#a1aeb5}#n2-ss-theme.n2-active .n2-i:before{content:"\e64c"}.ui-item-overlay{display:none;position:absolute;top:0;left:0;width:100%;height:100%}.n2-ss-layer.n2-highlight .ui-item-overlay,.n2-ss-select-layer-mode .n2-ss-layer-selected .ui-item-overlay{display:block;background-color:RGBA(0,132,255,.4)}.n2-ss-item-html .ui-item-overlay,.n2-ss-item-iframe .ui-item-overlay{display:block}.n2-ss-layer .n2-ss-layer-cc,.n2-ss-layer .ui-resizable-ne,.n2-ss-layer .ui-resizable-nw,.n2-ss-layer .ui-resizable-se,.n2-ss-layer .ui-resizable-sw{opacity:0}.n2-ss-layer .ui-resizable-ne:HOVER,.n2-ss-layer .ui-resizable-nw:HOVER,.n2-ss-layer .ui-resizable-se:HOVER,.n2-ss-layer .ui-resizable-sw:HOVER,.n2-ss-layer-cc:HOVER,.ui-resizable-e:HOVER,.ui-resizable-n:HOVER,.ui-resizable-s:HOVER,.ui-resizable-w:HOVER{opacity:1}.n2-ss-layer[data-align=center][data-valign=bottom] .ui-resizable-s,.n2-ss-layer[data-align=center][data-valign=middle] .n2-ss-layer-cc,.n2-ss-layer[data-align=center][data-valign=top] .ui-resizable-n,.n2-ss-layer[data-align=left][data-valign=bottom] .ui-resizable-sw,.n2-ss-layer[data-align=left][data-valign=middle] .ui-resizable-w,.n2-ss-layer[data-align=left][data-valign=top] .ui-resizable-nw,.n2-ss-layer[data-align=right][data-valign=bottom] .ui-resizable-se,.n2-ss-layer[data-align=right][data-valign=middle] .ui-resizable-e,.n2-ss-layer[data-align=right][data-valign=top] .ui-resizable-ne{background:#0c92df;opacity:1;border:1px solid #fff}.n2-ss-layer-cc{position:absolute;font-size:.1px;display:block;z-index:92}.n2-ss-layer .n2-ss-layer-cc,.n2-ss-layer .ui-resizable-handle{background-image:none;border:1px solid #0c92df;height:7px;width:7px;background:#fff}.n2-ss-layer .ui-resizable-n{left:50%;top:-4px;margin-left:-4px}.n2-ss-layer .ui-resizable-e{right:-4px;top:50%;margin-top:-4px}.n2-ss-layer .ui-resizable-s{bottom:-4px;left:50%;margin-left:-4px}.n2-ss-layer .ui-resizable-w{left:-4px;top:50%;margin-top:-4px}.n2-ss-layer .ui-resizable-ne{right:-4px;top:-4px}.n2-ss-layer .ui-resizable-se{right:-4px;bottom:-4px}.n2-ss-layer .ui-resizable-sw{left:-4px;bottom:-4px}.n2-ss-layer .ui-resizable-nw{left:-4px;top:-4px}.n2-ss-layer .n2-ss-layer-cc{left:50%;top:50%;margin-top:-4px;margin-left:-4px}.n2-ss-layer-quick-panel{position:absolute;z-index:1000;width:72px;height:28px;margin:-6px 0 0 -34px;padding:5px}.n2-ss-layer-quick-panel .n2-ss-layer-quick-panel-option{display:inline-block;cursor:pointer;width:26px;height:26px;border-radius:3px;background:RGBA(43,52,63,.9);text-align:center;font-size:16px!important;line-height:26px!important;color:#fff;margin:1px;vertical-align:top}.n2-ss-layer-quick-panel .n2-ss-layer-quick-panel-option-center{width:14px;overflow:hidden}.n2-ss-layer.n2-ss-picking-on-layer{z-index:1000000!important}.n2-ss-position-display{display:none;position:absolute;border-radius:3px;z-index:10000;line-height:16px;padding:4px 6px;color:#fff;font-size:10px;background:RGBA(32,41,52,.95)}.n2-ss-position-display.n2-active{display:block}.n2-ss-layer-border{display:none;position:absolute;left:0;top:0;right:0;bottom:0;border:1px solid #0c92df;box-sizing:border-box}.n2-ss-layer-edit-visible #n2-tab-smartslider-editor:HOVER .n2-ss-layer.n2-active .n2-ss-layer-border,.n2-ss-move-layer div#n2-ss-0 .n2-ss-layer .n2-ss-layer-border,.n2-ss-resize-layer div#n2-ss-0 .n2-ss-layer .n2-ss-layer-border,div#n2-ss-0 .n2-ss-layer:HOVER .n2-ss-layer-border{display:block}.n2-ss-layer .n2-ss-layer-cc,.n2-ss-layer .ui-resizable-handle,.n2-ss-layer .ui-rotatable-handle{display:none!important}.n2-ss-layer-edit-visible #n2-ss-0:HOVER .n2-ss-layer.n2-active .ui-rotatable-handle,.n2-ss-layer-edit-visible #n2-tab-smartslider-editor:HOVER .n2-ss-layer.n2-active .n2-ss-layer-cc,.n2-ss-layer-edit-visible #n2-tab-smartslider-editor:HOVER .n2-ss-layer.n2-active .ui-resizable-handle,.n2-ss-layer.n2-active:HOVER .n2-ss-layer-cc,.n2-ss-layer.n2-active:HOVER .ui-resizable-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active .ui-resizable-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active .ui-rotatable-handle{display:block!important}.n2-ss-animation-play-single #n2-ss-0 .n2-ss-layer .n2-ss-layer-border,.n2-ss-animation-play-single #n2-ss-0 .n2-ss-layer .n2-ss-layer-cc,.n2-ss-animation-play-single #n2-ss-0 .n2-ss-layer .ui-resizable-handle,.n2-ss-move-layer .n2-ss-layer.n2-active:HOVER .n2-ss-layer-cc,.n2-ss-move-layer .n2-ss-layer.n2-active:HOVER .ui-resizable-handle,.n2-ss-move-layer .n2-ss-layer.n2-active:HOVER .ui-rotatable-handle{display:none!important}.n2-ss-layer-edit-visible #n2-ss-0:HOVER .n2-ss-layer.n2-active{overflow:visible!important}#n2-ss-0 .n2-ss-slide-border{display:none;position:absolute;background:#a1aeb5;width:1px;height:1px}#n2-ss-0:HOVER .n2-ss-slide-border,div#n2-ss-0:HOVER .n2-ss-static-slide.n2-ss-currently-edited-slide{display:block}div#n2-ss-0:HOVER .n2-ss-static-slide{display:none}.n2-ss-select-layer-mode #n2-ss-0 .n2-ss-layer-selected .n2-ss-layer-cc,.n2-ss-select-layer-mode #n2-ss-0 .n2-ss-layer-selected .ui-resizable-handle,.n2-ss-select-layer-mode #n2-ss-0 .n2-ss-layer-selected .ui-rotatable-handle{display:none!important}.n2-ss-layer-group-row li.n2-ss-layer-row{background:#28313a}.n2-ss-select-layer-mode-group .n2-list li.n2-ss-layer-row.n2-active.n2-selected{color:#b2bfc9}#n2-ss-0 .n2-ss-slide-border-left{left:0;top:0;height:100%}#n2-ss-0 .n2-ss-slide-border-right{right:0;top:0;height:100%}#n2-ss-0 .n2-ss-slide-border-top{left:0;top:0;width:100%}#n2-ss-0 .n2-ss-slide-border-bottom{left:0;bottom:0;width:100%}#n2-ss-0 .n2-ss-layer{cursor:not-allowed}#n2-ss-0 .n2-ss-currently-edited-slide .n2-ss-layer{cursor:move;background:RGBA(0,0,0,0)}#n2-ss-0 .n2-ss-slide.n2-ss-slide-active .n2-ss-layer.n2-ss-layer-locked,#n2-ss-0 .n2-ss-static-slide .n2-ss-layer.n2-ss-layer-locked{cursor:auto}.n2-ss-preview-mode #n2-ss-0 .n2-ss-layer{cursor:default}#n2-ss-0 .n2-ss-slide.n2-ss-slide-active .n2-ss-layer.n2-ss-layer-locked .n2-ss-layer-cc,#n2-ss-0 .n2-ss-static-slide .n2-ss-layer.n2-ss-layer-locked .n2-ss-layer-cc,.n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .n2-ss-layer-border,.n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .n2-ss-layer-cc,.n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .n2-ss-layer-chain-parent,.n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .ui-resizable-handle,.n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .ui-rotatable-handle{display:none!important}.n2-ss-item{position:relative;float:left;width:100%}.n2-ss-item-area,.n2-ss-item-imagearea,.n2-ss-item-video,.n2-ss-item-vimeo,.n2-ss-item-youtube{height:100%}#smartslider-slide-toolbox-layer{position:relative}#layeritemdraggable{top:0;left:0;height:10px;width:100%;background:#f04040;cursor:ns-resize}.n2-grid{background:#4affff;position:absolute;left:0;top:0;z-index:1000000;display:none}.n2-grid-h{width:100%;height:1px}.n2-grid-v{height:100%;width:1px}ul.animation-list{margin:0;padding:0 0 20px}ul.animation-list li{margin:0;padding:0;background:#eef3f8}ul.animation-list li.sortable-animation{border-bottom:1px solid #cdd1d6}.n2-ss-layer-solo-mode .n2-ss-layer{opacity:.5!important}.n2-ss-layer-solo-mode .n2-ss-layer-solo{z-index:100000000!important;opacity:1!important}.n2-panel-titlebar{position:relative;line-height:60px;height:60px;overflow:hidden;background:#202934;font-size:12px;color:#cbd6df;text-align:center}.n2-panel-titlebar-nav{position:absolute;top:0;line-height:30px;height:30px;padding:13px 11px}.n2-panel-titlebar-nav-left{left:0}.n2-panel-titlebar-nav-right{right:0}.n2-panel-titlebar-nav>*{display:inline-block;width:20px;height:30px;line-height:30px;font-size:16px;color:#fff;padding:0;vertical-align:top}.n2-panel-titlebar-nav .n2-i{vertical-align:middle}.n2-panel-titlebar-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 60px;text-align:center}.n2-ss-panel-resizer{height:6px;width:100%;cursor:ns-resize;text-align:center;color:#95a1ab;bottom:0;background:#202934;border-bottom-left-radius:5px;border-bottom-right-radius:5px}#n2-ss-slide-sidebar .n2-ss-slide-sidebar-actions{position:absolute;top:0;left:-35px;width:32px;background-color:#202934;border-radius:3px}#n2-ss-slide-sidebar .n2-ss-slide-sidebar-actions>.n2-button{width:32px;height:32px;line-height:32px;color:#b0bdc7}#n2-ss-layer-edit-activate-row .n2-ss-layer-row{border-bottom:0}#n2-ss-layer-edit-activate-row .n2-actions-left{padding:0;margin:0}.n2-ss-has-layers.n2-ss-layer-edit-visible.n2-ss-preview-mode #n2-ss-slide-sidebar,.n2-ss-layer-edit-visible.n2-ss-move-layer #n2-ss-slide-sidebar,.n2-ss-layer-edit-visible.n2-ss-resize-layer #n2-ss-slide-sidebar,body:not(.n2-ss-has-layers) #n2-ss-slide-sidebar,body:not(.n2-ss-layer-edit-visible) #n2-ss-slide-sidebar{display:none}#n2-tabbed-slide-editor-settings .n2-tabs,.n2-ss-layers-add{position:relative;overflow-y:auto;overflow-x:hidden}.n2-sidebar{width:340px}#n2-ss-slide-sidebar{width:355px}#n2-ss-slide-sidebar table,#n2-ss-slide-sidebar tbody,#n2-ss-slide-sidebar tr{display:block}#n2-ss-slide-sidebar td{display:block;width:auto}#n2-ss-slide-sidebar .n2-label{background:#3c4958;border-top:1px solid #303b47;padding:3px 10px 0}#n2-ss-slide-sidebar .n2-empty-label{padding:0;height:4px}#n2-ss-slide-sidebar .n2-empty-group-label{padding:0;height:0}#n2-ss-slide-sidebar .n2-label label{color:#b2bfc9;font-size:10px}#n2-ss-slide-sidebar .n2-element{background:#3c4958;border-top:0;padding:0}#n2-ss-slide-sidebar textarea{max-width:290px!important;width:290px!important}#n2-ss-slide-sidebar .n2-form-element-button{max-width:38px;overflow:hidden}#n2-ss-slide-sidebar .n2-sidebar-row{line-height:34px;background:#28313a}#n2-ss-slide-sidebar .n2-list li,#n2-ss-slide-sidebar .n2-sidebar-row{border-bottom:1px solid RGBA(0,0,0,.2)}#n2-ss-slide-sidebar .n2-button-m{height:24px;line-height:24px}#n2-ss-slide-sidebar .n2-sidebar-tab-switcher{border:0;border-collapse:separate}#n2-ss-slide-sidebar .n2-sidebar-tab-switcher .n2-td{font-size:11px;line-height:47px;height:47px;border:1px solid #1a2028;border-left:0;color:#b2bfc9}#n2-ss-slide-sidebar .n2-sidebar-tab-switcher .n2-td .n2-i{font-size:32px;line-height:47px}#n2-ss-slide-sidebar .n2-sidebar-tab-switcher .n2-td.n2-active{background:#0c92df;color:#fff}#n2-ss-slide-sidebar .n2-has-underline>.n2-underline::after,#n2-ss-slide-sidebar .n2-sidebar-tab-switcher .n2-td[data-tab=style]{display:none}#n2-ss-slide-sidebar.n2-ss-has-design-option .n2-sidebar-tab-switcher .n2-td[data-tab=style]{display:table-cell}.n2-sidebar-hidden .n2-panel-titlebar{line-height:30px;height:30px;cursor:move;border-top-left-radius:5px;border-top-right-radius:5px}.n2-sidebar-hidden .n2-panel-titlebar-nav{padding:0 8px}.n2-sidebar-hidden #n2-ss-slide-sidebar{position:fixed;left:100px;top:100px;z-index:100000}.n2-ss-slide-sidebar-crop{width:100%;height:100%;border-radius:3px;box-shadow:0 1px 10px RGBA(0,0,0,.5);overflow:hidden;background:#3c4958}.n2-ss-edit-slide-top{background:#fff;border-bottom:1px solid #ccd1d6;padding:30px 20px 30px 40px;display:flex;flex-wrap:nowrap;justify-content:space-between;flex-flow:row}.n2-ss-edit-slide-top-thumbnail{width:200px;height:135px;cursor:pointer}.n2-ss-edit-slide-top-thumbnail img{width:200px;height:135px;border-radius:5px}.n2-ss-edit-slide-top-actions{width:180px;text-align:left;vertical-align:middle;flex:1}.n2-ss-edit-slide-top-actions>*{margin:10px 0}.n2-ss-edit-slide-top-details{flex:1;align-self:flex-end;padding:0 20px}.n2-ss-edit-slide-top-details .n2-h1{color:#606d7b;margin-bottom:15px;cursor:pointer;line-height:30px}.n2-ss-edit-slide-top-details .n2-h1:HOVER:after{font-family:'Nextend'!important;content:"\e94f";font-size:22px;vertical-align:top;margin:0 5px;color:#b0b9bf}.n2-ss-edit-slide-top-details .n2-h4 a{color:#7b8898}.n2-ss-edit-slide-top-details .n2-h4 a .n2-i{font-size:16px}.n2-ss-edit-slide-top-tabs{margin-top:15px}.n2-ss-edit-slide-top-tabs a{margin:0}.n2-ss-edit-slide-top-tabs a.n2-active{color:#fff;background-color:#0c92df;border-color:#0c92df}.n2-ss-edit-slide-top-tabs .n2-button{border-radius:0;border-left:0;padding:0 20px}.n2-ss-edit-slide-top-tabs .n2-button.n2-first{border-top-left-radius:3px;border-bottom-left-radius:3px;border-left:2px solid #e0e6ed}.n2-ss-edit-slide-top-tabs .n2-button.n2-last{border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-ss-edit-slide-top-tabs .n2-button.n2-active{background:#0c92df;color:#fff;border-color:#0c92df}.n2-ss-edit-slide-top-tabs .n2-button.n2-active:not(.n2-first){border-left:2px solid #0c92df;margin-left:-2px}#n2-form-matrix-slide-settings{margin:0;border:0;border-radius:0}.n2-ss-editor-group-mode-only,.n2-ss-editor-layer-mode-only{display:none!important}.n2-ss-has-layers.n2-ss-editor-mode-GROUP .n2-ss-editor-group-mode-only,.n2-ss-has-layers.n2-ss-editor-mode-LAYER .n2-ss-editor-layer-mode-only{display:inline-block!important}#n2-ss-slide-vertical-bar{background:#212d3a;position:absolute;left:-1px;top:54px;bottom:-1px;width:50px;text-align:center}.n2-ss-slide-vertical-bar-inner{position:relative;padding-top:.01px}#n2-ss-slide-vertical-bar .n2-ss-slide-vertical-bar-inner>*{margin-top:10px;color:#80a3b5}#n2-ss-slide-vertical-bar.n2-active .n2-ss-slide-vertical-bar-inner>*{margin-top:0}#n2-ss-slide-vertical-bar.n2-active{width:341px;z-index:2}#n2-ss-slide-vertical-bar.n2-active .n2-ss-add-layer-button{margin:0;background:0 0;position:absolute;top:16px;right:5px}#n2-ss-slide-vertical-bar.n2-active .n2-ss-add-layer-button .n2-i:before{content:"\e90a";color:#b2bfc9}#n2-ss-slide-vertical-bar.n2-active .n2-ss-slide-vertical-bar-inner>a{display:none}#n2-ss-slide-vertical-bar.n2-active .n2-ss-slide-vertical-bar-inner{width:341px!important}#n2-ss-slide-vertical-bar.n2-active .n2-ss-available-layers{display:block}.n2-ss-available-layers .n2-sidebar-tab-switcher{border:0}.n2-ss-available-layers-container{width:300px;margin:0 auto;padding:10px 0}.n2-ss-slide-item-group{color:#b2bfc9;padding:4px 5px 1px}#smartslider-adjust-height{position:relative;z-index:1;overflow:hidden;border-bottom:1px solid #ccd1d6;background-color:#e9edf0;margin-left:49px;border-top:1px solid #ccd1d6}.n2-ss-slider-real-container{position:relative}.n2-ss-slider-outer-container{position:relative;float:left}.n2-ss-slider-container{padding-bottom:99px;float:left;margin:10px}.n2-ss-has-ruler .n2-ss-slider-container{margin:40px 0 0 40px}.n2-ss-layer-status{display:inline-block;position:relative;margin:0 3px}.n2-ss-layer-status>a .n2-i,.n2-ss-layer-status>a:HOVER .n2-i{color:#b2bfc9}.n2-ss-layer-status-hidden .n2-ss-layer-status .n2-ss-sc-hide .n2-i:before{content:"\e923"}.n2-ss-layer-list-top-bar .n2-h2{display:inline-block;line-height:28px;color:#fff;padding:0 5px}.n2-ss-layer-list-opener{width:28px;display:inline-block;padding:0;vertical-align:top;margin:0 5px}#n2-ss-layers.n2-active .n2-ss-layer-list-opener>.n2-i:before{content:"\e92c"}.n2-ss-layer-list-group-opener.n2-closed .n2-i:before{content:"\e921"}#n2-ss-layers{position:fixed;bottom:0;width:340px;margin:0 -1px;height:48px;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;display:none;background-color:#28313a;z-index:10000}#n2-ss-layers.n2-active{height:100px}#n2-ss-layers:not(.n2-active){width:50px!important}#n2-ss-layers:not(.n2-active) .n2-ss-layers-sidebar{width:50px}#n2-ss-layers:not(.n2-active) .n2-ss-layer-list-layers-top-bar>div{display:none!important}.n2-ss-has-layers #n2-ss-layers{display:block}#n2-ss-layers-table .n2-td{position:relative;vertical-align:top}#n2-ss-layers-table .n2-ss-layers-sidebar{width:340px}.n2-ss-layer-list-top-bar{position:relative;padding:10px 5px 9px;height:28px;background-color:#212d3a;border-bottom:1px solid #20282f}#n2-ss-layers.n2-active .n2-ss-layer-list-layers-top-bar{cursor:ns-resize}.n2-basiccss-show-preset-list .n2-editor-header .n2-ss-button-container>.n2-basiccss-choose,.n2-editor-header .n2-ss-button-container>.n2-basiccss-back,.n2-ss-editor-mode-LAYER .n2-ss-select-layer-mode #n2-ss-layers.n2-active .n2-ss-layer-list-layers-top-bar,.n2-ss-layer-list-bulk-top-bar{display:none}.n2-ss-editor-mode-LAYER .n2-ss-select-layer-mode #n2-ss-layers.n2-active .n2-ss-layer-list-bulk-top-bar{display:block}.n2-ss-layer-list-top-bar .n2-form-element-text{margin:0}.n2-ss-layers-sidebar-rows{position:relative;height:100%;overflow-x:hidden;overflow-y:visible}#n2-ss-layers .n2-form-element-text{margin:0 10px;line-height:2px}#n2-ss-layers .n2-text-sub-label{width:30px;text-align:center;overflow:hidden}.n2-i-desktopPortrait:before{content:'\e926'}.n2-i-desktopLandscape:before{content:'\e925'}.n2-i-tabletPortrait:before{content:'\e928'}.n2-i-tabletLandscape:before{content:'\e927'}.n2-i-mobilePortrait:before{content:'\e92a'}.n2-i-mobileLandscape:before{content:'\e929'}#n2-ss-slide-sidebar .ui-autocomplete{padding:0;max-height:200px;overflow-y:auto;overflow-x:hidden}#n2-ss-slide-sidebar .n2-form-element-autocomplete .ui-autocomplete .ui-menu-item{padding-right:20px}input#presets{max-width:none!important;width:150px}#n2-tab-basiccsspreset{background-color:#3c4958;z-index:3}#n2-tab-basiccsspreset>.n2-h2{margin-bottom:0}.n2-basiccss-show-preset-list .n2-editor-header .n2-ss-button-container>.n2-basiccss-back{display:inline-block}.n2-ss-layer-list-bulk-top-bar{text-align:right;color:#fff;vertical-align:top;padding:10px 15px 9px}.n2-ss-layer-list-bulk-top-bar .n2-button{vertical-align:middle}.n2-ss-layer-list-bulk-top-bar .n2-button+.n2-button,.n2-ss-layer-list-top-bar .n2-ss-layer-list-topbar-control .n2-button{margin:0 0 0 5px}html[dir=rtl] .n2-ss-layer-list-top-bar .n2-button+.n2-button,html[dir=rtl] .n2-ss-layer-list-top-bar .n2-ss-layer-list-topbar-control .n2-button{margin:0 5px 0 0}.n2-ss-layer-list-top-bar .n2-ss-layer-list-topbar-control{position:absolute;top:10px;right:5px;margin:0 10px}html[dir=rtl] .n2-ss-layer-list-top-bar .n2-ss-layer-list-topbar-control{right:auto;left:5px}.n2-ss-layer-list-topbar-control{text-align:right;color:#fff;padding:0 10px;vertical-align:top}#n2-ss-layers .n2-ss-layer-list-topbar-control{padding:0}.n2-ss-layer-list-topbar-control .n2-button{padding:0;width:28px;font-size:16px;vertical-align:middle}.n2-ss-layer-list-topbar-control .n2-button i{line-height:inherit}.n2-play.n2-active i:before{content:"\e607"}.n2-ss-preview-modal .n2-modal-window{background-color:#e9edf0}#n2-tabbed-animations-tabbed>.n2-table{border-spacing:8px;border-collapse:separate;background:#28313a;border-bottom:1px solid #20282f}#n2-tabbed-animations-tabbed .n2-sidebar-tab-switcher .n2-td{line-height:28px;height:28px;border:0;border-radius:50px}#n2-tabbed-animations-tabbed .n2-editor-header.n2-h2{background:#303b47;border-bottom:1px solid #28313a;position:relative}.n2-ss-small-more{float:right;margin:-38px 20px 0}.n2-button-single-animation-play.n2-active .n2-i:before{content:'\e607'}div#n2-ss-0 .n2-ss-layer-chain-parent{position:absolute;z-index:10;right:10px;top:10px;line-height:18px;font-size:12px;width:18px;display:none}.n2-ss-layer-edit-visible .n2-ss-mode-desktopPortrait #n2-tab-smartslider-editor:HOVER .n2-ss-layer.n2-active.n2-ss-layer-has-parent .n2-ss-layer-chain-parent,.n2-ss-mode-desktopPortrait #n2-tab-smartslider-editor:HOVER .n2-ss-layer.n2-active.n2-ss-layer-has-parent:HOVER .n2-ss-layer-chain-parent{display:inline-block}#n2-ss-slide-sidebar .n2-ss-generator-param,.n2-ss-background-type-color .n2-ss-background-image-param,.n2-ss-background-type-color .n2-ss-background-video-param,.n2-ss-background-type-gradient .n2-ss-background-image-param,.n2-ss-background-type-gradient .n2-ss-background-video-param,.n2-ss-background-type-image .n2-ss-background-video-param{display:none}#n2-tab-animations-events td.n2-label{padding:0}#n2-tab-animations-events td.n2-element{padding:6px 0}.n2-ss-dynamic-slide #n2-ss-slide-sidebar .n2-ss-generator-param,.n2-ss-show-slides #n2-ss-slide-edit-slides{display:block}#n2-admin.n2-ss-mode-desktopPortrait .n2-ss-responsive-helper{display:none}.n2-ss-editor-window-notice{padding:8px 10px;line-height:18px;background:#6b7986;color:#fff}.n2-ss-editor-window-notice a{color:#ffb527}#n2-ss-slide-edit-slides{display:none;border-bottom:1px solid #e0e6ed}.n2-ss-show-slides a.n2-ss-back-slides,.n2-ss-show-slides a.n2-ss-back-slides:before{color:#fff}.n2-ss-scrollbar-wrapper{background-color:#212d3a;padding:4px;height:8px;z-index:10}.n2-scroll-disable .n2-ss-scrollbar-wrapper{visibility:hidden;height:0;padding:0}.n2-ss-scrollbar-wrapper .track{position:relative;height:8px}.n2-ss-scrollbar-wrapper .thumb{position:absolute;top:0;background-color:#49586a;height:8px;cursor:default;width:20px;z-index:2;border:0;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.n2-ss-scrollbar-wrapper.n2-ss-scrollbar-light{background-color:#b9c3c9}.n2-ss-scrollbar-wrapper.n2-ss-scrollbar-light .thumb{background-color:#fff}#n2-ss-zoom{width:280px;text-align:center;vertical-align:middle}#n2-ss-zoom .n2-ss-slider-zoom-container{position:relative;display:inline-block;vertical-align:middle;width:150px;height:34px;padding:0 23px}#n2-ss-zoom .n2-ss-slider-zoom-container>.n2-i{position:absolute;top:9px;color:#6b7986;font-size:16px;cursor:pointer}#n2-ss-zoom .n2-ss-slider-zoom-container .n2-i-minus{left:-18px}#n2-ss-zoom .n2-ss-slider-zoom-container .n2-i-plus{right:-18px}.n2-ss-slider-zoom-bg{position:absolute;left:0;top:50%;margin-top:-3px;width:100%;background:#505c69;height:6px;border-radius:3px}#n2-ss-slider-zoom{height:100%;position:relative;margin:0;background:0 0;border:none;border-radius:0}#n2-ss-slider-zoom .ui-slider-range{display:none}#n2-ss-slider-zoom .ui-slider-handle{position:absolute;top:50%;display:block;width:47px;height:22px;margin-top:-11px;margin-left:-23px;background-color:#e6eaee;background:#e6eaee;border:none;border-radius:3px;z-index:2;color:#7b8898;font-size:10px;text-align:center;line-height:22px;cursor:pointer}.n2-ss-slider-zoom-1{position:absolute;left:50%;top:0;margin-left:-1.5px;width:3px;height:100%;background-color:#6b7986}#n2-ss-lock{display:inline-block;position:absolute;right:-36px;top:9px;cursor:pointer;line-height:16px}#n2-ss-lock .n2-i{color:#6b7986;font-size:16px}#n2-ss-lock.n2-active .n2-i:before{content:"\e609"}.n2-ss-device-zoomer{min-width:280px}.n2-ss-device-zoomer #n2-ss-zoom{padding:10px 0;background:#212d3a;margin:0 auto;display:none;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.n2-ss-device-zoomer:HOVER #n2-ss-zoom{display:block}.n2-ss-device-zoomer .n2-ss-slider-zoom-1,.n2-ss-device-zoomer .n2-ss-slider-zoom-bg{background-color:#374d64}.n2-ss-device-zoomer #n2-ss-zoom #n2-ss-lock>.n2-i,.n2-ss-device-zoomer #n2-ss-zoom .n2-ss-slider-zoom-container>.n2-i{color:#4e667f}.n2-ss-device-zoomer #n2-ss-slider-zoom .ui-slider-handle{background-color:#526a80;color:#fff}#n2-ss-devices{height:60px}#n2-ss-devices.n2-ss-devices-compact>.n2-controls-panel{width:260px}#n2-ss-devices .n2-table{font-size:32px;color:#80a3b5;margin:0 auto}.n2-lb-header #n2-ss-devices .n2-table{color:#a4b0b7}html[dir=rtl] #n2-ss-devices .n2-table{float:left}#n2-ss-devices .n2-td{height:60px;vertical-align:middle;text-align:center;padding:0 15px;cursor:pointer}#n2-ss-devices .n2-td.n2-active{cursor:default;color:#0c92df}.n2-i-devices:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAAAeCAMAAABzNtkNAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACdlBMVEUAAAChrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeOhrrWhrrWhrrUZmeMZmeMZmeOhrrWhrrUZmeMZmeOhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrUZmeMZmeMZmeOhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeOhrrUZmeOhrrWhrrUZmeMZmeOhrrUZmeOhrrWhrrUZmeMZmeOhrrUZmeOhrrUZmeOhrrUZmeOhrrWhrrUZmeMZmeOhrrWhrrWhrrUZmeMZmeMZmeOhrrUZmeOhrrWhrrWhrrUZmeMZmeMZmeOhrrUZmeOhrrUZmeMAAAA99lBfAAAA0XRSTlMAJ6DHzCgytbY2MLMnoMfMKDK1tjYws5+ytLGfsrSxxh0ixh0il5qXmgY7a5SvvspsB2aHBjtrlK++ymwHZod+wiN+wiMSgbh6SiYQAnl9DBKBuHpKJhACeX0MNbmdQwQzNbmdQwQzRrtLAUa7SwHIpRWkyKUVpJgKUqLDnk2YClKiw55Nhq2KhIatioTLLlgOT8suWA5PcH9ZX3B/WV+sJcQqrqwlxCquKSmjXqNeV1eRiZGJCQmIiLq6AzQDNIK3SYK3SSQkCG2hCG2hsLA3NxRx1r0AAAABYktHRACIBR1IAAAACXBIWXMAAAsSAAALEgHS3X78AAAE0UlEQVRo3s2a+18UVRTAN/eYJLmHJCAjS4pehG4vQrcHhq0bCrFu6BKkRmq+JSNTpBQpVlnjEY+wtAglFIjeWmCWZb7t8Se109z57Mzcc+eBLrPnl7nn3DOP8/3MvXPPueNyWZSbprhBKO4pU9W+N0+jnFJuIS47PVXrlDrd6gPp5NYZHhSKZ0aa2ve2mZRT+u3EZTMytU6ZGZafKAsMJUvtewftk0Jcdpbe6c4JEstGQ8lW+95F+6QTl52td7rb8hO5wagX7tFopC9pBZijVnPA8DYG4kGjXrxXo5G+pBXxPrWai4a3MY9X0BvT7te/Ow+IiNm5jRETtN4b0x7UvzsPiYiJ9YfzHsmfO8/rnTc3/9G8x6jQHhcNySd4YryTiBjnJ5AnC54qnL/A51swv/Dpgmeo0J4VDcnneGK8k4gY58ckp2ih+rEXFj3PExPPYhQx4vTrIJZbvEj92IuKX+CJiWcxihhxug1i/sVegMCLJUuWlpYuXVJSFgDwvlRuKWSqyxYxY12W4DIfYujliuUrwuEVyysqQ4i+V6oshUx12SJG6tWvAqxctTpuX71qJcC015KFWM3riGvWrosb1q1dgzjzDceIrXfDho2btD2bNm4A9/rkILbZg1u2btPatm3dgp7NDhGrroU3t/O+298Cd3UyEKupw7d38GfueAc9NY4Q8wdg5y5ZLa3f3dDw7nvsddu1EwJ+54kFQ7hnr9wMN+5ranr/A/a67d2DoaATxJohwub40v3y1+oAQ1YegWbnibVglM3x4YPy1+pDhqwqii0OEMtp9bYxrR7c7R0d7W74iBnavK05ThPL7fR1sWYjerp7ero9+DEzdPk6cyefWC8cUrQs+EQ6fBpPEhdDr9PEDuMRpZmNn0mHz+NJ4jI8PPnE+uALReuHDunQAf2K5Sgcc5rYAH6pNAexRzr04KBiOY4nJp9YBI6KiQ05TyyKx8XEhp0g1gtFijYij8qv4qPyUDKMymKlOSqPyq/jo/KIE6MyNvMPMe0bZeavZ4ah5Jj5h1nzW2Xmb2SGYUdm/tjqok9ZXXwnry6+L5X18r7kWF0MKKuLH+TVxY9hWa8acGR18f8K9iRD1j7S37+7ngE7ya9gE1G7MCMmrWBPMWTdo4OD+xoZsFP8CjYRtQtCj2VJI1SWNAK12ixpvwjYT4nOkkapLGkU67RZ0kERsJ8TkImPlegz8ZIxLhM3kERn4uMV+ky8YpzLxA3khld7xqRqz+m4/bRU7Un5xSwUQ2I3sAZbMy5Ve87EDWekak/6r0ahmRK7vhqs/7dYRfFsGaso/l52FqC1SFtRtLkz0mw2cu0QcwX/iFUUz1WyiuKflecQO4u1FUWbOyMtZiPXhJjLdV5ftT6vO9XO7putvSQLTjG5oK9aX9A52Nl9s7WXJNYv5l3Kj0g7I5H8S3kXuVOnXq4V86q9rNnhVYVNN3nXhgZjYi7XlYKrhVFpZyRaeLXgCteddq1OzKvuWpogbLrJuzY1GcE2FTkscXAJIWZD5LDEwSU1MTMrgF+t+iebmJkVMahWgxMhZmGv7C967KYSrql6p4n+RaCKkZqnNfI3PXYzCddMvZP1vwjsEGs7RgGbRf2p8k9AB2yif6rYIdZ1ggI2m/pT5d+QDljGf3zSNGZGqKPpAAAAAElFTkSuQmCC)}.n2-i-devices-all:before{background-position:0 0}.n2-i-devices-desktop:before{background-position:-40px 0}.n2-i-devices-tablet:before{background-position:-80px 0}.n2-i-devices-phone:before{background-position:-120px 0}.n2-active>.n2-i-devices-all:before{background-position:-160px 0}.n2-active>.n2-i-devices-desktop:before{background-position:-200px 0}.n2-active>.n2-i-devices-tablet:before{background-position:-240px 0}.n2-active>.n2-i-devices-phone:before{background-position:-280px 0}.n2-generator-insert-variable .n2-variable-container{height:90px;overflow:auto}.n2-generator-insert-variable .n2-group-container{height:40px;overflow:auto}.n2-generator-insert-variable .n2-group-container .n2-button,.n2-generator-insert-variable .n2-variable-container .n2-button{margin:3px}.n2-generator-insert-variable .n2-group-container .n2-button.n2-active,.n2-generator-insert-variable .n2-variable-container .n2-button.n2-active,.n2-ss-layer-picker.n2-active{background:#0c92df}.n2-generator-result-container{height:100px;overflow:auto;margin:0 3px}.n2-ss-layer-picker{background:#6b7986;color:#fff;font-size:16px;height:28px;line-height:28px;padding:0;text-align:center;width:28px;border-radius:3px;margin:0 10px 10px;cursor:pointer}#n2-ss-control-line #n2-ss-layer-parent-linker.n2-under-pick,.n2-ss-layer-picker.n2-under-pick{background-color:#51b82d}#n2-ss-layer-parent-linker.n2-under-pick .n2-i-layerlink:before,.n2-ss-layer-picker.n2-under-pick .n2-i-layerlink:before{content:"\e64b"}.n2-ss-picker-overlay,.n2-ss-picker-overlay-tile{position:absolute;left:0;top:0;background:RGBA(25,153,227,.8);cursor:pointer;width:100%;height:100%;z-index:1000000;box-shadow:inset 0 0 0 1px rgba(0,0,0,.4)}.n2-ss-picker-overlay-tile{width:33%;height:33%}.n2-ss-picker-overlay-tile:HOVER,.n2-ss-picker-overlay:HOVER{background:RGBA(42,52,63,.9)}.n2-ss-picker-overlay-tile.n2-active,.n2-ss-picker-overlay-tile.n2-active:HOVER{background:RGBA(0,52,63,.9)}#n2-ss-control-line #n2-ss-layer-parent-linker{display:none}.n2-ss-has-layers .n2-ss-mode-desktopPortrait #n2-ss-control-line #n2-ss-layer-parent-linker,.n2-ss-has-ruler .n2-ruler>span{display:inline-block}.n2-ruler-container{position:absolute;left:0;top:0;height:100%;width:100%;visibility:hidden;z-index:10}.n2-ruler-container>*{visibility:visible}.n2-ruler,.n2-ruler-guide{position:absolute;left:0;top:0}.n2-ruler{box-sizing:border-box;white-space:nowrap}.n2-ruler>span{position:relative;display:none;vertical-align:top}.n2-ruler>span span{position:absolute;display:block;font-size:10px;color:#7b8898;line-height:10px}.n2-ruler-guide{display:none;z-index:2}.n2-ss-show-guides .n2-ruler-guide{display:block}.n2-ruler-guide .n2-ruler-guide-handle{position:absolute;background:#e6b625;left:0;top:0;width:9px;height:9px;cursor:pointer;font-family:'Nextend'!important;font-size:9px;color:#fff;line-height:9px;text-align:center}.n2-ruler-guide .n2-ruler-guide-handle:before{content:"\e90a"}.n2-ruler-horizontal{padding-left:1px;height:0;width:100%}.n2-ss-has-ruler .n2-ruler-horizontal{height:39px}.n2-ruler-horizontal>span.n2-ss-ruler-mark-large{height:20px}.n2-ruler-horizontal>span.n2-ss-ruler-mark-medium{height:10px}.n2-ruler-horizontal>span{width:9px;height:5px;border-right:1px solid #bcc4c8}.n2-ruler-horizontal span span{left:12px;top:10px}.n2-ruler-vertical .n2-ruler-guide{height:0;width:3000px}.n2-ss-lock-guides .n2-ruler-vertical .n2-ruler-guide{cursor:default}.n2-ruler-vertical .n2-ruler-guide .n2-ruler-guide-border{border-bottom:1px solid #ccaa2b;width:100%}.n2-ruler-vertical .n2-ruler-guide-handle{top:-4px}.n2-ruler-vertical{padding-top:1px;width:0;height:100%;background:#e9edf0;z-index:5}.n2-ss-has-ruler .n2-ruler-vertical{width:40px}.n2-ruler-vertical>span.n2-ss-ruler-mark-large{width:20px}.n2-ruler-vertical>span.n2-ss-ruler-mark-medium{width:10px}.n2-ruler-vertical>span{display:none;width:5px;height:9px;border-bottom:1px solid #bcc4c8}.n2-ss-has-ruler .n2-ruler-vertical>span{display:block}.n2-ruler-vertical span span{left:8px;top:12px}.n2-ruler-horizontal .n2-ruler-guide{width:0;height:1600px}.n2-ss-lock-guides .n2-ruler-horizontal .n2-ruler-guide{cursor:default}.n2-ruler-horizontal .n2-ruler-guide .n2-ruler-guide-border{border-right:1px solid #ccaa2b;height:100%}.n2-ruler-horizontal .n2-ruler-guide-handle{left:-4px}.n2-ruler-guide-handle{display:none}.n2-ss-has-ruler .n2-ruler-guide-handle{display:block}
1
+ #html-body header,.adminhtml-smartslider3-index #footer,.adminhtml-smartslider3-index .footer,.smartslider3-index-index footer{display:none}#html-body #anchor-content{padding-top:30px}.unselectable{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;user-select:none}.n2-definition-list dt.n2-ss-slider-ordering{color:#fff;background-color:#212d3a;border:0}.n2-definition-list dt.n2-ss-slider-ordering>div{padding:0 30px}.n2-definition-list .n2-ss-slider-ordering .n2-button{min-width:28px;line-height:28px;height:28px;margin-left:10px;background-color:#54667b;color:#fff}.n2-definition-list .n2-ss-slider-ordering .n2-button.n2-active{background:#0c92df}.n2-definition-list dt.n2-ss-slider-ordering .n2-actions{background-color:#212d3a;padding-top:16px}.n2-definition-list .n2-ss-slider-ordering>.n2-actions a{display:inline-block;padding:0}.n2-definition-list .n2-ss-slider-ordering>.n2-actions .n2-i{vertical-align:top}.n2-ss-slide2-list li .n2-actions .n2-i-delete,.n2-ss-slide2-list li .n2-actions .n2-i-duplicate,.n2-ss-slide2-list li .n2-actions .n2-i-star{visibility:hidden}.n2-ss-slide2-list li .n2-actions .n2-i-star.n2-active,.n2-ss-slide2-list li:HOVER .n2-actions .n2-i-delete,.n2-ss-slide2-list li:HOVER .n2-actions .n2-i-duplicate,.n2-ss-slide2-list li:HOVER .n2-actions .n2-i-star{visibility:visible}.n2-lightbox-sidebar-list{overflow-y:auto}#n2-tab-widgets{border-bottom:0;margin-bottom:1000px}.n2-i-edit.n2-active{color:#0c92df}.n2-ss-live-preview span{text-decoration:line-through;vertical-align:middle}.n2-ss-live-preview .n2-button,.n2-widget-area{vertical-align:middle;margin:0 20px}.n2-ss-live-preview.n2-active span{text-decoration:none}.n2-ss-live-preview.n2-active .n2-button{display:none}.n2-widget-area{display:inline-block;width:80px;height:80px;position:relative;margin:0 10px}.n2-form .n2-widget-area{margin-bottom:10px}.n2-widget-area-inner{position:absolute;top:14px;left:14px;width:46px;height:46px;border:3px solid #bbc3cc;border-radius:3px}.n2-widget-area .n2-area{position:absolute;background-color:#a1aeb5;border-radius:2px;cursor:pointer;width:10px;height:10px;left:0;top:0}.n2-widget-area .n2-area.n2-active{background-color:#0c92df;cursor:default}.n2-widget-area .n2-area-1{left:35px}.n2-widget-area .n2-area-2{left:21px;top:21px}.n2-widget-area .n2-area-3{left:35px;top:21px}.n2-widget-area .n2-area-4{left:49px;top:21px}.n2-widget-area .n2-area-5{top:35px}.n2-widget-area .n2-area-6{left:21px;top:35px}.n2-widget-area .n2-area-7{left:49px;top:35px}.n2-widget-area .n2-area-8{left:70px;top:35px}.n2-widget-area .n2-area-9{left:21px;top:49px}.n2-widget-area .n2-area-10{left:35px;top:49px}.n2-widget-area .n2-area-11{left:49px;top:49px}.n2-widget-area .n2-area-12{left:35px;top:70px}.n2-ss-slider-publish{border-collapse:collapse;overflow:hidden}.n2-ss-slider-publish .n2-td{text-align:center;border-right:1px solid #ccd1d6;color:#6b7989;padding:48px 0 0}.n2-ss-slider-publish .n2-td .n2-h2 a{color:#6b7989}.n2-ss-slider-publish .n2-td.n2-last{border-right:0}.n2-ss-slider-publish div.n2-h2{line-height:30px;font-size:18px}.n2-ss-slider-publish div.n2-h4{line-height:26px}.n2-ss-slider-publish .n2-code{display:inline-block;padding:16px 30px;line-height:20px;border-radius:3px;background-color:#f5e293;text-align:left;margin:17px 0;color:#6f653f;font-size:12px;border:0}.n2-ss-slider-publish img{margin-top:17px;margin-bottom:-10px}.n2-ss-generator-modal .n2-modal-content h3{text-align:left}.n2-generator-records td div{max-height:100px;overflow:hidden;padding:10px;margin:-10px}.n2-generator-records td:HOVER div{overflow-y:auto;overflow-x:visible}#n2-admin[data-slider-type=block] .n2-fm-arrow,#n2-admin[data-slider-type=block] .n2-fm-autoplay,#n2-admin[data-slider-type=block] .n2-fm-bar,#n2-admin[data-slider-type=block] .n2-fm-bullet,#n2-admin[data-slider-type=block] .n2-fm-indicator,#n2-admin[data-slider-type=block] .n2-fm-slides,#n2-admin[data-slider-type=block] .n2-fm-thumbnail{display:none}.n2-ss-container-device{position:relative;background-color:#fff;border:1px solid #ccd1d6;border-width:0 1px;margin:40px auto 0}.n2-modal.n2-ss-go-pro .n2-modal-window{text-align:center;line-height:2}.n2-modal.n2-ss-go-pro .n2-ss-rate{margin:50px -20px 0;background:url(../images/free/rate.png);height:90px;line-height:90px;color:#fff}.n2-modal.n2-ss-go-pro .n2-ss-rate .n2-h3{display:inline-block;margin-right:30px}.n2-modal.n2-ss-go-pro .n2-modal-controls{margin-bottom:40px}.n2-ss-create-slider-free-sample{float:left;height:70px;width:170px;cursor:pointer}.n2-ss-create-slider-free-sample:HOVER{background-position:0 -80px}.n2-ss-modal-subscribe>.n2-modal-window{text-align:center}.n2-ss-modal-subscribe .n2-form{margin:0 -20px}.n2-ss-modal-subscribe .n2-h3{margin:0 auto;width:95%;text-align:center;line-height:2}.n2-ss-preview-subscribe .n2-input-button{display:inline-block}.n2-input-button,.n2-ss-modal-subscribe .n2-input-button{display:inline-block;margin-top:20px}.n2-input-button>*,.n2-ss-modal-subscribe .n2-input-button>*,.n2-ss-preview-subscribe .n2-input-button>*{display:inline-block;white-space:nowrap}.n2-input-button input,.n2-input-button input:focus,.n2-ss-modal-subscribe input,.n2-ss-modal-subscribe input:focus,.n2-ss-preview-subscribe input,.n2-ss-preview-subscribe input:focus{margin:0 auto;width:250px;height:36px;border:2px solid #b9c3c9;border-right:0;border-top-left-radius:3px;border-bottom-left-radius:3px;overflow:hidden;padding:0 10px;line-height:36px;box-shadow:none;color:#7b8898;font-size:12px;background:#fff}.n2-input-button .n2-button,.n2-ss-modal-subscribe .n2-input-button .n2-button,.n2-ss-preview-subscribe .n2-input-button .n2-button{border-top-left-radius:0;border-bottom-left-radius:0}.n2-ss-preview-subscribe{position:fixed;left:50%;margin-left:-500px;bottom:-100px;transition:bottom .5s ease;background:url(../images/free/subscribepreview.png);width:1000px;height:90px;z-index:1000}.n2-ss-preview-subscribe.n2-active{bottom:10px}.n2-ss-preview-subscribe-close{position:absolute;top:-12px;right:-12px;width:24px;height:24px;cursor:pointer;background:url(../images/free/close.png) no-repeat center center}.n2-ss-preview-subscribe .n2-input-button{position:absolute;right:20px;top:0;margin-top:28px}.n2-ss-slider-edit>.n2-form>.n2-form-tab{margin:20px 0 0;border-radius:0;border:0}.n2-ss-slider-edit>.n2-form>.n2-form-tab .n2-form-matrix-views{border-radius:0}.n2-box-add-license.n2-ss-license-has-active-key,.n2-box-license-activated.n2-ss-license-no-active-key{display:none}#n2-ss-slider-container,#n2-ss-slides{position:relative;padding:25px}.n2-ss-sliders .n2-box-new-slider>a:before{content:"\e952"}.n2-ss-sliders .n2-box-template-library>a:before{content:"\e951"}.n2-box-up-group>a:before{content:"\e958"}.n2-box-insert-group>a:before{content:"\e959"}.n2-ss-sliders-header>*{margin:0 10px}html[data-sliders='0'] .n2-ss-sliders-header{visibility:hidden}.n2-ss-box-slider{cursor:pointer}#n2-ss-slider-container[data-groupid="0"] .n2-ss-remove-from-group,.n2-ss-box-slider-group .n2-ss-add-to-group,.n2-ss-box-slider-group .n2-ss-remove-from-group,.n2-ss-slider-over-group .n2-box-sortable-placeholder,html[data-slides='0'] .n2-ss-slider-edit{display:none}.n2-ss-slides-outer-container{display:block}.n2-modal-window .n2-ss-slides-outer-container{height:100%;overflow:auto}.n2-ss-slides-container{position:relative;margin:0 -10px}.n2-slide-first.n2-i{line-height:16px}.n2-slide-first.n2-i,.n2-slide-published{font-size:16px;padding:3px}.n2-i-unpublished{color:#c54633}.n2-slide-state-published .n2-i-unpublished{color:#6fbc49}.n2-slide-state-published .n2-i-unpublished:before{content:"\e60c"}.n2-box.n2-first-slide:HOVER .n2-slide-first,.n2-slide-first,.n2-slide-is-first{display:none}.n2-first-slide .n2-slide-is-first{display:inline-block}.n2-slide-duplicate{margin-right:5px}.n2-slide-delete,.n2-slide-duplicate,.n2-slide-selected{padding:0;width:24px}#n2-ss-slides .n2-box.n2-ss-slide-active{box-shadow:0 0 0 3px #0c92df}#n2-ss-slides .n2-box-slide-dummy{background:#e9edf0;border:2px dashed #b2bfc9;box-sizing:border-box;background-image:url(../images/dummy-slide.png);background-repeat:no-repeat;background-position:center 36px;color:#7b8898;font-size:14px;text-align:center;line-height:200px}#n2-ss-slides .n2-box-slide-drag-images{background:url(../images/drag.png) no-repeat center 4px;text-align:center;color:#7b8898;box-sizing:border-box;padding:90px 60px 0;line-height:12px}html:not([data-slides='0']) #n2-ss-slides .n2-box-dummy,html:not([data-slides='0']) #n2-ss-slides-container .n2-box-slide-drag-images,html:not([data-slides='0']) #n2-ss-slides-container .n2-box-slide-dummy{display:none}.n2-ss-slides-control{position:relative;padding:22px 10px;border-bottom:1px solid RGBA(0,0,0,.3)}.n2-ss-slides-control .n2-button{margin:0 10px}.n2-slides-add{vertical-align:bottom;margin:-2px}#n2-ss-slides .n2-box-slide-drag-upload{display:none;position:absolute;z-index:101;left:0;top:0;width:100%;height:100%;background-color:rgba(32,41,52,.9);border:0;right:0;bottom:0;margin:0;vertical-align:bottom;line-height:130px;text-align:center;color:#fff}#n2-ss-slides .n2-drag-over .n2-box-slide-drag-upload{display:block}.n2-box-slide .n2-button.n2-sidebar-list-bg:HOVER{background-color:#0c92df}.n2-ss-quick-slides-edit-modal .n2-modal-content table{border-spacing:10px;border-collapse:separate;margin:10px auto}.n2-ss-quick-slides-edit-modal .n2-modal-content table td{padding:0}.n2-ss-quick-slides-edit-modal .n2-modal-content .n2-mixed-label{margin-top:0;margin-bottom:3px}.n2-ss-quick-slides-edit-modal .n2-modal-content .n2-mixed-label label{font-size:11px}.n2-slide-state-first .n2-ss-setFirst,.n2-slide-state-published .n2-ss-publish,.n2-ss-generator,.n2-ss-unpublish{display:none}.n2-slide-state-has-generator .n2-ss-generator,.n2-slide-state-published .n2-ss-unpublish{display:block}.n2-box-slide .n2-i-star{display:none}.n2-box-slide.n2-slide-state-first .n2-i-star{display:inline;color:#e19f21;font-size:16px}#n2-ss-slides .n2-box:HOVER img{opacity:.1}.n2-ss-slides-header{position:relative;z-index:9;color:#6b7989;margin-top:-10px;visibility:hidden}.n2-ss-has-box-selection .n2-ss-slides-header{visibility:visible}.n2-ss-slides-header .n2-button-menu-open .n2-button-menu{right:-90px}#n2-ss-slides .n2-box-slide-add{display:inline-block;color:#b2bfc9;background:0 0;text-align:center;z-index:5}#n2-ss-slides .n2-box-slide-add>.n2-add-quick-image{width:100%;height:135px;padding:0}#n2-ss-slides .n2-box-slide-add>.n2-add-quick-image:before{display:block;font-family:'Nextend'!important;font-size:48px;line-height:68px;content:"\e91c";margin-top:20px}#n2-ss-slides .n2-box-slide-add .n2-button-menu-open{position:absolute;right:5px;top:5px;width:28px;height:28px;line-height:28px;background:#3e9021;border-radius:3px;cursor:pointer}#n2-ss-slides .n2-box-slide-add .n2-button-menu-open .n2-i:before{content:"\e911";color:#fff;font-size:16px;line-height:28px}.n2-add-quick-image{width:123px}.n2-button-menu-inner .n2-add-quick-image{width:auto}.n2-ss-slides-header>*{vertical-align:middle;display:inline-block}.n2-ss-slides-header .n2-h5,.n2-ss-slides-header .n2-h5 a{margin-right:10px;color:#6b7986}.n2-ss-slides-header .n2-h5 .n2-i{font-size:16px}.n2-top-bar-menu .n2-ss-back-dashboard:before{content:"\e94a"}.n2-top-bar-menu .n2-ss-back-slider:before{content:"\e94b"}.n2-top-bar-menu .n2-ss-back-slides:before{content:"\e91a"}.n2-top-bar-menu>#n2-ss-preview:before{content:"\e92d"}.n2-ss-block-slides-notice{display:none;color:#7b8898}html:not([data-slides='0']):not([data-slides='1']) #n2-admin[data-slider-type=block] .n2-ss-block-slides-notice{display:block}html[data-slides='0'] .n2-ss-create-static-slide{display:none}.n2-ss-core-item,.n2-ss-layers-add{text-align:center}.n2-ss-core-item{display:inline-block;margin:5px;background-color:#6b7986;color:#fff;line-height:20px;cursor:pointer;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:90px;height:80px}.n2-ss-core-item div:before{font-family:'Nextend';font-size:32px;content:"\e943";display:block;line-height:32px;margin-top:20px}.n2-ss-core-item[data-item=heading] div:before{content:"\e945"}.n2-ss-core-item[data-item=text] div:before{content:"\e944"}.n2-ss-core-item[data-item=button] div:before{content:"\e942"}.n2-ss-core-item[data-item=imagearea] div:before{content:"\e950"}.n2-ss-core-item[data-item=icon] div:before{content:"\e941"}.n2-ss-core-item[data-item=input] div:before{content:"\e939"}.n2-ss-core-item[data-item=iframe] div:before{content:"\e938"}.n2-ss-core-item[data-item=area] div:before{content:"\e937"}.n2-ss-core-item[data-item=list] div:before{content:"\e93e"}.n2-ss-core-item[data-item=caption] div:before{content:"\e940"}.n2-ss-core-item[data-item=transition] div:before{content:"\e93f"}.n2-ss-core-item[data-item=youtube] div:before{content:"\e93d"}.n2-ss-core-item[data-item=vimeo] div:before{content:"\e93c"}.n2-ss-core-item[data-item=video] div:before{content:"\e93b"}.n2-ss-core-item[data-item=html] div:before{content:"\e93a"}#n2-ss-layers .sortable-placeholder{border:0;position:relative;height:0;overflow:visible;z-index:1001}#n2-ss-layers .sortable-placeholder div{position:absolute;left:0;top:-1px;width:100%;height:0;border-bottom:1px solid RGBA(254,254,254,.8);box-shadow:0 0 3px 0 RGBA(254,254,254,.8)}#n2-ss-layers .ui-sortable-helper{opacity:.5}.n2-list .n2-ss-layer-group-row{border-bottom:0}.n2-ss-layer-group-row>.n2-ss-layer-title{border-bottom:1px solid RGBA(0,0,0,.2)}.n2-list .n2-ss-layer-row.n2-active,.n2-list .n2-ss-layer-row.n2-selected{background:#1681c1}.n2-ss-layer-group-row ul.n2-list{min-height:10px}.n2-ss-layer-title{display:block;line-height:39px;position:relative;cursor:pointer;overflow:hidden}.n2-ss-layer-title span{margin:0 30px;display:block;width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n2-ss-layer-group-row>.n2-ss-layer-title span,.n2-ss-layer-row .n2-inline-form{margin:0 30px}.n2-ss-layer-group-row ul .n2-ss-layer-title span{margin:0 40px}.n2-ss-layer-row .n2-inline-form input{background:#3c4958 0 0;color:#b2bfc9;font-size:11px;border:2px solid #28313a;line-height:24px;padding:0 10px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-ss-layer-row .n2-inline-form input:focus{box-shadow:none}.n2-ss-layer-title .n2-actions{position:absolute;top:0;right:0;padding:0 6px;cursor:default;opacity:.2}.n2-ss-layer-title:HOVER .n2-actions{opacity:1}.n2-ss-layer-title .n2-actions-left{position:absolute;top:0;left:0;padding:5px 0;cursor:default;line-height:24px}html[dir=rtl] .n2-ss-layer-title .n2-actions-left{padding:0 16px 0 0}.n2-ss-layer-row.n2-active>.n2-ss-layer-title,.n2-ss-layer-row.n2-active>.n2-ss-layer-title .n2-actions .n2-i,.n2-ss-layer-row.n2-active>.n2-ss-layer-title .n2-actions-left .n2-i,.n2-ss-layer-row.n2-selected .n2-ss-layer-title,.n2-ss-layer-row.n2-selected .n2-ss-layer-title .n2-actions .n2-i,.n2-ss-layer-row.n2-selected .n2-ss-layer-title .n2-actions-left .n2-i,.n2-ss-theme-dark .n2-ruler>span span{color:#fff}.n2-ss-layer-title .n2-actions a,.n2-ss-layer-title .n2-actions-left a{display:inline-block;padding:0}.n2-ss-animation-title .n2-actions-left i,.n2-ss-layer-title .n2-actions-left i{padding:0 2px;vertical-align:middle}.n2-ss-layer-title .n2-i-order{cursor:move}.n2-ss-animation-row{list-style:none;color:#b2bfc9}.n2-ss-animation-title{position:relative;line-height:39px;background-color:#303b47;cursor:pointer;text-transform:capitalize}.n2-ss-animation-title span{padding:0 40px}.n2-ss-animation-title .n2-actions{position:absolute;right:0;top:0;cursor:default;padding:0 6px}.n2-ss-animation-title .n2-actions a,.n2-ss-animation-title .n2-actions-left a{display:inline-block;height:100%}.n2-ss-animation-title .n2-actions-left{position:absolute;top:0;left:0;padding:0 16px;cursor:default;font-size:16px;line-height:38px}.smartslider-advanced-layer-mode-active #layersanditems li.layer-orderable.item-active.active .layerTitle{border-left:5px solid #eef3f8}#layeritemeditorpanel,#smartslider-slide-toolbox-layer .n2-sidebar-pane-sizer{visibility:hidden}#layeritemeditorpanel>.n2-form{margin-bottom:0}#layeritemeditorpanel .n2-form-element-radio .n2-radio-option{margin:5px}#layer-animation-chain-in,#layer-animation-chain-out{position:relative}#layer-animation-chain-in .sortable-placeholder,#layer-animation-chain-loop .sortable-placeholder,#layer-animation-chain-out .sortable-placeholder{background-color:#212d3a;border-bottom:1px solid #343f4c;border-width:0 0 1px}#layer-animation-chain-in .n2-td,#layer-animation-chain-loop .n2-td,#layer-animation-chain-out .n2-td{vertical-align:middle}#n2-tab-smartslider-editor{background-color:#fff;margin:-21px 0 0;border-width:1px 0 0;padding-bottom:400px;padding-bottom:40vh;position:relative}.n2-ss-theme-dark #smartslider-adjust-height,.n2-ss-theme-dark .n2-ruler-vertical{background-color:#28313a}#n2-tab-smartslider-editor .n2-heading-controls{z-index:9;padding:0;min-height:0;border:0;height:0;background:#4d5d70}.n2-ss-slider-visible #n2-tab-smartslider-editor .n2-heading-controls{height:auto}#n2-tab-smartslider-editor.n2-scroll-disable .n2-heading-controls{height:54px;border-bottom:0}.n2-ss-preview-mode .n2-main-top-bar{opacity:0}#n2-ss-control-line{position:relative;height:28px;white-space:nowrap;z-index:1000;padding:13px 10px;line-height:28px}#n2-ss-control-line>*{line-height:28px;height:28px;vertical-align:top}#n2-ss-control-line .n2-ss-tool{margin:0 5px;display:inline-block;vertical-align:top!important}#n2-ss-control-line .n2-ss-tool.n2-form-element-text{height:24px;line-height:24px;position:relative}#n2-ss-control-line .n2-text-sub-label{font-size:16px}#n2-ss-slide-canvas-settings{display:inline-block;position:relative}#n2-ss-slide-canvas-settings>.n2-button{width:28px;padding:0;text-align:center}#n2-ss-slide-canvas-settings.n2-active>.n2-button{background-color:#0c92df;border-color:#0c92df}#n2-ss-slide-canvas-settings .n2-ss-settings-panel{position:absolute;left:0;top:28px}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner{margin-top:6px;min-width:180px;box-shadow:0 0 5px 0 RGBA(0,0,0,.3);background-color:#fff;border-radius:3px}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner>*{display:block;line-height:32px;margin:0 10px;position:relative;text-align:left}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner a{color:#7b8898}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner .n2-panel-action{color:#0c92df}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner .n2-setting-tick{display:block;position:absolute;right:0;top:8px;border-radius:3px;border:2px solid #8793a2;width:12px;height:12px}#n2-ss-layer-show-on,#n2-ss-slide-canvas-settings.n2-active .n2-ss-settings-panel{display:inline-block}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner .n2-setting-enabled .n2-setting-tick{border-color:#1999e3;background-color:#1999e3}#n2-ss-slide-canvas-settings .n2-ss-settings-panel,#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner .n2-setting-tick .n2-i,.n2-ss-preview-mode .n2-ss-layer.n2-highlight .ui-item-overlay{display:none}#n2-ss-slide-canvas-settings .n2-ss-settings-panel-inner .n2-setting-enabled .n2-i{display:inline-block;color:#fff;font-size:16px;line-height:12px;margin:0 -2px}#n2-ss-control-line .n2-button-grey{background-color:#a1aeb5}#n2-ss-control-line .n2-radio-option{background-color:#a1aeb5;border-left:1px solid #8c99a1}#n2-ss-control-line .n2-radio-option.n2-first{border-left-width:0}#n2-ss-control-line .n2-radio-option.n2-active{background-color:#0c92df;border-color:#0c92df}#n2-ss-control-line .n2-radio-option.n2-sub-active{background-color:#51b82d;border-color:#51b82d}#n2-ss-control-line .n2-ss-tool.n2-button{height:28px;line-height:28px;background-color:#a1aeb5}#n2-ss-control-line .n2-ss-tool.n2-button-icon{padding:0;width:28px}#n2-ss-control-line .n2-ss-tool.n2-button.n2-active{background-color:#0c92df}#n2-ss-control-line .n2-ss-tool.n2-button.n2-sub-active{background-color:#51b82d}#n2-ss-control-line .ui-autocomplete{max-width:100%}.n2-ss-addlayer .n2-ss-available-layers{display:none;box-sizing:border-box;white-space:normal;text-align:left}#n2-ss-control-line #n2-ss-theme.n2-active,#n2-ss-layer-parent-linker,#n2-ss-theme{width:28px;height:28px;line-height:28px;padding:0;background-color:#a1aeb5}#n2-ss-theme.n2-active .n2-i:before{content:"\e64c"}.ui-item-overlay{display:none;position:absolute;top:0;left:0;width:100%;height:100%}.n2-ss-layer.n2-highlight .ui-item-overlay,.n2-ss-select-layer-mode .n2-ss-layer-selected .ui-item-overlay{display:block;background-color:RGBA(0,132,255,.4)}.n2-ss-item-html .ui-item-overlay,.n2-ss-item-iframe .ui-item-overlay{display:block}.n2-ss-layer .n2-ss-layer-cc,.n2-ss-layer .ui-resizable-ne,.n2-ss-layer .ui-resizable-nw,.n2-ss-layer .ui-resizable-se,.n2-ss-layer .ui-resizable-sw{opacity:0}.n2-ss-layer .ui-resizable-ne:HOVER,.n2-ss-layer .ui-resizable-nw:HOVER,.n2-ss-layer .ui-resizable-se:HOVER,.n2-ss-layer .ui-resizable-sw:HOVER,.n2-ss-layer-cc:HOVER,.ui-resizable-e:HOVER,.ui-resizable-n:HOVER,.ui-resizable-s:HOVER,.ui-resizable-w:HOVER{opacity:1}.n2-ss-layer[data-align=center][data-valign=bottom] .ui-resizable-s,.n2-ss-layer[data-align=center][data-valign=middle] .n2-ss-layer-cc,.n2-ss-layer[data-align=center][data-valign=top] .ui-resizable-n,.n2-ss-layer[data-align=left][data-valign=bottom] .ui-resizable-sw,.n2-ss-layer[data-align=left][data-valign=middle] .ui-resizable-w,.n2-ss-layer[data-align=left][data-valign=top] .ui-resizable-nw,.n2-ss-layer[data-align=right][data-valign=bottom] .ui-resizable-se,.n2-ss-layer[data-align=right][data-valign=middle] .ui-resizable-e,.n2-ss-layer[data-align=right][data-valign=top] .ui-resizable-ne{background:#0c92df;opacity:1;border:1px solid #fff}.n2-ss-layer-cc{position:absolute;font-size:.1px;display:block;z-index:92}.n2-ss-layer .n2-ss-layer-cc,.n2-ss-layer .ui-resizable-handle{background-image:none;border:1px solid #0c92df;height:7px;width:7px;background:#fff}.n2-ss-layer .ui-resizable-n{left:50%;top:-4px;margin-left:-4px}.n2-ss-layer .ui-resizable-e{right:-4px;top:50%;margin-top:-4px}.n2-ss-layer .ui-resizable-s{bottom:-4px;left:50%;margin-left:-4px}.n2-ss-layer .ui-resizable-w{left:-4px;top:50%;margin-top:-4px}.n2-ss-layer .ui-resizable-ne{right:-4px;top:-4px}.n2-ss-layer .ui-resizable-se{right:-4px;bottom:-4px}.n2-ss-layer .ui-resizable-sw{left:-4px;bottom:-4px}.n2-ss-layer .ui-resizable-nw{left:-4px;top:-4px}.n2-ss-layer .n2-ss-layer-cc{left:50%;top:50%;margin-top:-4px;margin-left:-4px}.n2-ss-layer-quick-panel{position:absolute;z-index:1000;width:72px;height:28px;margin:-6px 0 0 -34px;padding:5px}.n2-ss-layer-quick-panel .n2-ss-layer-quick-panel-option{display:inline-block;cursor:pointer;width:26px;height:26px;border-radius:3px;background:RGBA(43,52,63,.9);text-align:center;font-size:16px!important;line-height:26px!important;color:#fff;margin:1px;vertical-align:top}.n2-ss-layer-quick-panel .n2-ss-layer-quick-panel-option-center{width:14px;overflow:hidden}.n2-ss-layer.n2-ss-picking-on-layer{z-index:1000000!important}.n2-ss-position-display{display:none;position:absolute;border-radius:3px;z-index:10000;line-height:16px;padding:4px 6px;color:#fff;font-size:10px;background:RGBA(32,41,52,.95)}.n2-ss-position-display.n2-active{display:block}.n2-ss-layer-border{display:none;position:absolute;left:0;top:0;right:0;bottom:0;border:1px solid #0c92df;box-sizing:border-box}.n2-ss-layer-edit-visible #n2-tab-smartslider-editor:HOVER .n2-ss-layer.n2-active .n2-ss-layer-border,.n2-ss-move-layer div#n2-ss-0 .n2-ss-layer .n2-ss-layer-border,.n2-ss-resize-layer div#n2-ss-0 .n2-ss-layer .n2-ss-layer-border,div#n2-ss-0 .n2-ss-layer:HOVER .n2-ss-layer-border{display:block}.n2-ss-layer .n2-ss-layer-cc,.n2-ss-layer .ui-resizable-handle,.n2-ss-layer .ui-rotatable-handle{display:none!important}.n2-ss-layer-edit-visible #n2-ss-0:HOVER .n2-ss-layer.n2-active .ui-rotatable-handle,.n2-ss-layer-edit-visible #n2-tab-smartslider-editor:HOVER .n2-ss-layer.n2-active .n2-ss-layer-cc,.n2-ss-layer-edit-visible #n2-tab-smartslider-editor:HOVER .n2-ss-layer.n2-active .ui-resizable-handle,.n2-ss-layer.n2-active:HOVER .n2-ss-layer-cc,.n2-ss-layer.n2-active:HOVER .ui-resizable-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active .ui-resizable-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active .ui-rotatable-handle{display:block!important}.n2-ss-animation-play-single #n2-ss-0 .n2-ss-layer .n2-ss-layer-border,.n2-ss-animation-play-single #n2-ss-0 .n2-ss-layer .n2-ss-layer-cc,.n2-ss-animation-play-single #n2-ss-0 .n2-ss-layer .ui-resizable-handle,.n2-ss-move-layer .n2-ss-layer.n2-active:HOVER .n2-ss-layer-cc,.n2-ss-move-layer .n2-ss-layer.n2-active:HOVER .ui-resizable-handle,.n2-ss-move-layer .n2-ss-layer.n2-active:HOVER .ui-rotatable-handle{display:none!important}.n2-ss-layer-edit-visible #n2-ss-0:HOVER .n2-ss-layer.n2-active{overflow:visible!important}#n2-ss-0 .n2-ss-slide-border{display:none;position:absolute;background:#a1aeb5;width:1px;height:1px}#n2-ss-0:HOVER .n2-ss-slide-border,div#n2-ss-0:HOVER .n2-ss-static-slide.n2-ss-currently-edited-slide{display:block}div#n2-ss-0:HOVER .n2-ss-static-slide{display:none}.n2-ss-select-layer-mode #n2-ss-0 .n2-ss-layer-selected .n2-ss-layer-cc,.n2-ss-select-layer-mode #n2-ss-0 .n2-ss-layer-selected .ui-resizable-handle,.n2-ss-select-layer-mode #n2-ss-0 .n2-ss-layer-selected .ui-rotatable-handle{display:none!important}.n2-ss-layer-group-row li.n2-ss-layer-row{background:#28313a}.n2-ss-select-layer-mode-group .n2-list li.n2-ss-layer-row.n2-active.n2-selected{color:#b2bfc9}#n2-ss-0 .n2-ss-slide-border-left{left:0;top:0;height:100%}#n2-ss-0 .n2-ss-slide-border-right{right:0;top:0;height:100%}#n2-ss-0 .n2-ss-slide-border-top{left:0;top:0;width:100%}#n2-ss-0 .n2-ss-slide-border-bottom{left:0;bottom:0;width:100%}#n2-ss-0 .n2-ss-layer{cursor:not-allowed}#n2-ss-0 .n2-ss-currently-edited-slide .n2-ss-layer{cursor:move;background:RGBA(0,0,0,0)}#n2-ss-0 .n2-ss-slide.n2-ss-slide-active .n2-ss-layer.n2-ss-layer-locked,#n2-ss-0 .n2-ss-static-slide .n2-ss-layer.n2-ss-layer-locked{cursor:auto}.n2-ss-preview-mode #n2-ss-0 .n2-ss-layer{cursor:default}#n2-ss-0 .n2-ss-slide.n2-ss-slide-active .n2-ss-layer.n2-ss-layer-locked .n2-ss-layer-border,#n2-ss-0 .n2-ss-slide.n2-ss-slide-active .n2-ss-layer.n2-ss-layer-locked .n2-ss-layer-cc,#n2-ss-0 .n2-ss-slide.n2-ss-slide-active .n2-ss-layer.n2-ss-layer-locked .ui-resizable-handle,#n2-ss-0 .n2-ss-static-slide .n2-ss-layer.n2-ss-layer-locked .n2-ss-layer-cc,.n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .n2-ss-layer-border,.n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .n2-ss-layer-cc,.n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .n2-ss-layer-chain-parent,.n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .ui-resizable-handle,.n2-ss-preview-mode #n2-tab-smartslider-editor #n2-ss-0 .n2-ss-layer .ui-rotatable-handle{display:none!important}.n2-ss-item{position:relative;float:left;width:100%}.n2-ss-item-area,.n2-ss-item-imagearea,.n2-ss-item-video,.n2-ss-item-vimeo,.n2-ss-item-youtube{height:100%}#smartslider-slide-toolbox-layer{position:relative}#layeritemdraggable{top:0;left:0;height:10px;width:100%;background:#f04040;cursor:ns-resize}.n2-grid{background:#4affff;position:absolute;left:0;top:0;z-index:1000000;display:none}.n2-grid-h{width:100%;height:1px}.n2-grid-v{height:100%;width:1px}ul.animation-list{margin:0;padding:0 0 20px}ul.animation-list li{margin:0;padding:0;background:#eef3f8}ul.animation-list li.sortable-animation{border-bottom:1px solid #cdd1d6}.n2-ss-layer-solo-mode .n2-ss-layer{opacity:.5!important}.n2-ss-layer-solo-mode .n2-ss-layer-solo{z-index:100000000!important;opacity:1!important}.n2-panel-titlebar{position:relative;line-height:60px;height:60px;overflow:hidden;background:#202934;font-size:12px;color:#cbd6df;text-align:center}.n2-panel-titlebar-nav{position:absolute;top:0;line-height:30px;height:30px;padding:13px 11px}.n2-panel-titlebar-nav-left{left:0}.n2-panel-titlebar-nav-right{right:0}.n2-panel-titlebar-nav>*{display:inline-block;width:20px;height:30px;line-height:30px;font-size:16px;color:#fff;padding:0;vertical-align:top}.n2-panel-titlebar-nav .n2-i{vertical-align:middle}.n2-panel-titlebar-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 60px;text-align:center}.n2-ss-panel-resizer{height:6px;width:100%;cursor:ns-resize;text-align:center;color:#95a1ab;bottom:0;background:#202934;border-bottom-left-radius:5px;border-bottom-right-radius:5px}#n2-ss-slide-sidebar .n2-ss-slide-sidebar-actions{position:absolute;top:0;left:-35px;width:32px;background-color:#202934;border-radius:3px}#n2-ss-slide-sidebar .n2-ss-slide-sidebar-actions>.n2-button{width:32px;height:32px;line-height:32px;color:#b0bdc7}#n2-ss-layer-edit-activate-row .n2-ss-layer-row{border-bottom:0}#n2-ss-layer-edit-activate-row .n2-actions-left{padding:0;margin:0}.n2-ss-has-layers.n2-ss-layer-edit-visible.n2-ss-preview-mode #n2-ss-slide-sidebar,.n2-ss-layer-edit-visible.n2-ss-move-layer #n2-ss-slide-sidebar,.n2-ss-layer-edit-visible.n2-ss-resize-layer #n2-ss-slide-sidebar,body:not(.n2-ss-has-layers) #n2-ss-slide-sidebar,body:not(.n2-ss-layer-edit-visible) #n2-ss-slide-sidebar{display:none}#n2-tabbed-slide-editor-settings .n2-tabs,.n2-ss-layers-add{position:relative;overflow-y:auto;overflow-x:hidden}.n2-sidebar{width:340px}#n2-ss-slide-sidebar{width:355px}#n2-ss-slide-sidebar table,#n2-ss-slide-sidebar tbody,#n2-ss-slide-sidebar tr{display:block}#n2-ss-slide-sidebar td{display:block;width:auto}#n2-ss-slide-sidebar .n2-label{background:#3c4958;border-top:1px solid #303b47;padding:3px 10px 0}#n2-ss-slide-sidebar .n2-empty-label{padding:0;height:4px}#n2-ss-slide-sidebar .n2-empty-group-label{padding:0;height:0}#n2-ss-slide-sidebar .n2-label label{color:#b2bfc9;font-size:10px}#n2-ss-slide-sidebar .n2-element{background:#3c4958;border-top:0;padding:0}#n2-ss-slide-sidebar textarea{max-width:290px!important;width:290px!important}#n2-ss-slide-sidebar .n2-form-element-button{max-width:38px;overflow:hidden}#n2-ss-slide-sidebar .n2-sidebar-row{line-height:34px;background:#28313a}#n2-ss-slide-sidebar .n2-list li,#n2-ss-slide-sidebar .n2-sidebar-row{border-bottom:1px solid RGBA(0,0,0,.2)}#n2-ss-slide-sidebar .n2-button-m{height:24px;line-height:24px}#n2-ss-slide-sidebar .n2-sidebar-tab-switcher{border:0;border-collapse:separate}#n2-ss-slide-sidebar .n2-sidebar-tab-switcher .n2-td{font-size:11px;line-height:47px;height:47px;border:1px solid #1a2028;border-left:0;color:#b2bfc9}#n2-ss-slide-sidebar .n2-sidebar-tab-switcher .n2-td .n2-i{font-size:32px;line-height:47px}#n2-ss-slide-sidebar .n2-sidebar-tab-switcher .n2-td.n2-active{background:#0c92df;color:#fff}#n2-ss-slide-sidebar .n2-has-underline>.n2-underline::after,#n2-ss-slide-sidebar .n2-sidebar-tab-switcher .n2-td[data-tab=style]{display:none}#n2-ss-slide-sidebar.n2-ss-has-design-option .n2-sidebar-tab-switcher .n2-td[data-tab=style]{display:table-cell}.n2-sidebar-hidden .n2-panel-titlebar{line-height:30px;height:30px;cursor:move;border-top-left-radius:5px;border-top-right-radius:5px}.n2-sidebar-hidden .n2-panel-titlebar-nav{padding:0 8px}.n2-sidebar-hidden #n2-ss-slide-sidebar{position:fixed;left:100px;top:100px;z-index:100000}.n2-ss-slide-sidebar-crop{width:100%;height:100%;border-radius:3px;box-shadow:0 1px 10px RGBA(0,0,0,.5);overflow:hidden;background:#3c4958}.n2-ss-edit-slide-top{background:#fff;border-bottom:1px solid #ccd1d6;padding:30px 20px 30px 40px;display:flex;flex-wrap:nowrap;justify-content:space-between;flex-flow:row}.n2-ss-edit-slide-top-thumbnail{width:200px;height:135px;cursor:pointer}.n2-ss-edit-slide-top-thumbnail img{width:200px;height:135px;border-radius:5px}.n2-ss-edit-slide-top-actions{width:180px;text-align:left;vertical-align:middle;flex:1}.n2-ss-edit-slide-top-actions>*{margin:10px 0}.n2-ss-edit-slide-top-details{flex:1;align-self:flex-end;padding:0 20px}.n2-ss-edit-slide-top-details .n2-h1{color:#606d7b;margin-bottom:15px;cursor:pointer;line-height:30px}.n2-ss-edit-slide-top-details .n2-h1:HOVER:after{font-family:'Nextend'!important;content:"\e94f";font-size:22px;vertical-align:top;margin:0 5px;color:#b0b9bf}.n2-ss-edit-slide-top-details .n2-h4 a{color:#7b8898}.n2-ss-edit-slide-top-details .n2-h4 a .n2-i{font-size:16px}.n2-ss-edit-slide-top-tabs{margin-top:15px}.n2-ss-edit-slide-top-tabs a{margin:0}.n2-ss-edit-slide-top-tabs a.n2-active{color:#fff;background-color:#0c92df;border-color:#0c92df}.n2-ss-edit-slide-top-tabs .n2-button{border-radius:0;border-left:0;padding:0 20px}.n2-ss-edit-slide-top-tabs .n2-button.n2-first{border-top-left-radius:3px;border-bottom-left-radius:3px;border-left:2px solid #e0e6ed}.n2-ss-edit-slide-top-tabs .n2-button.n2-last{border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-ss-edit-slide-top-tabs .n2-button.n2-active{background:#0c92df;color:#fff;border-color:#0c92df}.n2-ss-edit-slide-top-tabs .n2-button.n2-active:not(.n2-first){border-left:2px solid #0c92df;margin-left:-2px}#n2-form-matrix-slide-settings{margin:0;border:0;border-radius:0}.n2-ss-editor-group-mode-only,.n2-ss-editor-layer-mode-only{display:none!important}.n2-ss-has-layers.n2-ss-editor-mode-GROUP .n2-ss-editor-group-mode-only,.n2-ss-has-layers.n2-ss-editor-mode-LAYER .n2-ss-editor-layer-mode-only{display:inline-block!important}#n2-ss-slide-vertical-bar{background:#212d3a;position:absolute;left:-1px;top:54px;bottom:-1px;width:50px;text-align:center}.n2-ss-slide-vertical-bar-inner{position:relative;padding-top:.01px}#n2-ss-slide-vertical-bar .n2-ss-slide-vertical-bar-inner>*{margin-top:10px;color:#80a3b5}#n2-ss-slide-vertical-bar.n2-active .n2-ss-slide-vertical-bar-inner>*{margin-top:0}#n2-ss-slide-vertical-bar.n2-active{width:341px;z-index:2}#n2-ss-slide-vertical-bar.n2-active .n2-ss-add-layer-button{margin:0;background:0 0;position:absolute;top:16px;right:5px}#n2-ss-slide-vertical-bar.n2-active .n2-ss-add-layer-button .n2-i:before{content:"\e90a";color:#b2bfc9}#n2-ss-slide-vertical-bar.n2-active .n2-ss-slide-vertical-bar-inner>a{display:none}#n2-ss-slide-vertical-bar.n2-active .n2-ss-slide-vertical-bar-inner{width:341px!important}#n2-ss-slide-vertical-bar.n2-active .n2-ss-available-layers{display:block}.n2-ss-available-layers .n2-sidebar-tab-switcher{border:0}.n2-ss-available-layers-container{width:300px;margin:0 auto;padding:10px 0}.n2-ss-slide-item-group{color:#b2bfc9;padding:4px 5px 1px}#smartslider-adjust-height{position:relative;z-index:1;overflow:hidden;border-bottom:1px solid #ccd1d6;background-color:#e9edf0;margin-left:49px;border-top:1px solid #ccd1d6}.n2-ss-slider-real-container{position:relative}.n2-ss-slider-outer-container{position:relative;float:left}.n2-ss-slider-container{padding-bottom:99px;float:left;margin:10px}.n2-ss-has-ruler .n2-ss-slider-container{margin:40px 0 0 40px}.n2-ss-layer-status{display:inline-block;position:relative;margin:0 3px}.n2-ss-layer-status>a .n2-i,.n2-ss-layer-status>a:HOVER .n2-i{color:#b2bfc9}.n2-ss-layer-status-hidden .n2-ss-layer-status .n2-ss-sc-hide .n2-i:before{content:"\e923"}.n2-ss-layer-list-top-bar .n2-h2{display:inline-block;line-height:28px;color:#fff;padding:0 5px}.n2-ss-layer-list-opener{width:28px;display:inline-block;padding:0;vertical-align:top;margin:0 5px}#n2-ss-layers.n2-active .n2-ss-layer-list-opener>.n2-i:before{content:"\e92c"}.n2-ss-layer-list-group-opener.n2-closed .n2-i:before{content:"\e921"}#n2-ss-layers{position:fixed;bottom:0;width:340px;margin:0 -1px;height:48px;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;display:none;background-color:#28313a;z-index:10000}#n2-ss-layers.n2-active{height:100px}#n2-ss-layers:not(.n2-active){width:50px!important}#n2-ss-layers:not(.n2-active) .n2-ss-layers-sidebar{width:50px}#n2-ss-layers:not(.n2-active) .n2-ss-layer-list-layers-top-bar>div{display:none!important}.n2-ss-has-layers #n2-ss-layers{display:block}#n2-ss-layers-table .n2-td{position:relative;vertical-align:top}#n2-ss-layers-table .n2-ss-layers-sidebar{width:340px}.n2-ss-layer-list-top-bar{position:relative;padding:10px 5px 9px;height:28px;background-color:#212d3a;border-bottom:1px solid #20282f}#n2-ss-layers.n2-active .n2-ss-layer-list-layers-top-bar{cursor:ns-resize}.n2-basiccss-show-preset-list .n2-editor-header .n2-ss-button-container>.n2-basiccss-choose,.n2-editor-header .n2-ss-button-container>.n2-basiccss-back,.n2-ss-editor-mode-LAYER .n2-ss-select-layer-mode #n2-ss-layers.n2-active .n2-ss-layer-list-layers-top-bar,.n2-ss-layer-list-bulk-top-bar{display:none}.n2-ss-editor-mode-LAYER .n2-ss-select-layer-mode #n2-ss-layers.n2-active .n2-ss-layer-list-bulk-top-bar{display:block}.n2-ss-layer-list-top-bar .n2-form-element-text{margin:0}.n2-ss-layers-sidebar-rows{position:relative;height:100%;overflow-x:hidden;overflow-y:visible}#n2-ss-layers .n2-form-element-text{margin:0 10px;line-height:2px}#n2-ss-layers .n2-text-sub-label{width:30px;text-align:center;overflow:hidden}.n2-i-desktopPortrait:before{content:'\e926'}.n2-i-desktopLandscape:before{content:'\e925'}.n2-i-tabletPortrait:before{content:'\e928'}.n2-i-tabletLandscape:before{content:'\e927'}.n2-i-mobilePortrait:before{content:'\e92a'}.n2-i-mobileLandscape:before{content:'\e929'}#n2-ss-slide-sidebar .ui-autocomplete{padding:0;max-height:200px;overflow-y:auto;overflow-x:hidden}#n2-ss-slide-sidebar .n2-form-element-autocomplete .ui-autocomplete .ui-menu-item{padding-right:20px}input#presets{max-width:none!important;width:150px}#n2-tab-basiccsspreset{background-color:#3c4958;z-index:3}#n2-tab-basiccsspreset>.n2-h2{margin-bottom:0}.n2-basiccss-show-preset-list .n2-editor-header .n2-ss-button-container>.n2-basiccss-back{display:inline-block}.n2-ss-layer-list-bulk-top-bar{text-align:right;color:#fff;vertical-align:top;padding:10px 15px 9px}.n2-ss-layer-list-bulk-top-bar .n2-button{vertical-align:middle}.n2-ss-layer-list-bulk-top-bar .n2-button+.n2-button,.n2-ss-layer-list-top-bar .n2-ss-layer-list-topbar-control .n2-button{margin:0 0 0 5px}html[dir=rtl] .n2-ss-layer-list-top-bar .n2-button+.n2-button,html[dir=rtl] .n2-ss-layer-list-top-bar .n2-ss-layer-list-topbar-control .n2-button{margin:0 5px 0 0}.n2-ss-layer-list-top-bar .n2-ss-layer-list-topbar-control{position:absolute;top:10px;right:5px;margin:0 10px}html[dir=rtl] .n2-ss-layer-list-top-bar .n2-ss-layer-list-topbar-control{right:auto;left:5px}.n2-ss-layer-list-topbar-control{text-align:right;color:#fff;padding:0 10px;vertical-align:top}#n2-ss-layers .n2-ss-layer-list-topbar-control{padding:0}.n2-ss-layer-list-topbar-control .n2-button{padding:0;width:28px;font-size:16px;vertical-align:middle}.n2-ss-layer-list-topbar-control .n2-button i{line-height:inherit}.n2-play.n2-active i:before{content:"\e607"}.n2-ss-preview-modal .n2-modal-window{background-color:#e9edf0}#n2-tabbed-animations-tabbed>.n2-table{border-spacing:8px;border-collapse:separate;background:#28313a;border-bottom:1px solid #20282f}#n2-tabbed-animations-tabbed .n2-sidebar-tab-switcher .n2-td{line-height:28px;height:28px;border:0;border-radius:50px}#n2-tabbed-animations-tabbed .n2-editor-header.n2-h2{background:#303b47;border-bottom:1px solid #28313a;position:relative}.n2-ss-small-more{float:right;margin:-38px 20px 0}html[dir=rtl] .n2-ss-small-more{float:left}.n2-button-single-animation-play.n2-active .n2-i:before{content:'\e607'}div#n2-ss-0 .n2-ss-layer-chain-parent{position:absolute;z-index:10;right:10px;top:10px;line-height:18px;font-size:12px;width:18px;display:none}.n2-ss-layer-edit-visible .n2-ss-mode-desktopPortrait #n2-tab-smartslider-editor:HOVER .n2-ss-layer.n2-active.n2-ss-layer-has-parent .n2-ss-layer-chain-parent,.n2-ss-mode-desktopPortrait #n2-tab-smartslider-editor:HOVER .n2-ss-layer.n2-active.n2-ss-layer-has-parent:HOVER .n2-ss-layer-chain-parent{display:inline-block}#n2-ss-slide-sidebar .n2-ss-generator-param,.n2-ss-background-type-color .n2-ss-background-image-param,.n2-ss-background-type-color .n2-ss-background-video-param,.n2-ss-background-type-gradient .n2-ss-background-image-param,.n2-ss-background-type-gradient .n2-ss-background-video-param,.n2-ss-background-type-image .n2-ss-background-video-param{display:none}#n2-tab-animations-events td.n2-label{padding:0}#n2-tab-animations-events td.n2-element{padding:6px 0}.n2-ss-dynamic-slide #n2-ss-slide-sidebar .n2-ss-generator-param,.n2-ss-show-slides #n2-ss-slide-edit-slides{display:block}#n2-admin.n2-ss-mode-desktopPortrait .n2-ss-responsive-helper{display:none}.n2-ss-editor-window-notice{padding:8px 10px;line-height:18px;background:#6b7986;color:#fff}.n2-ss-editor-window-notice a{color:#ffb527}#n2-ss-slide-edit-slides{display:none;border-bottom:1px solid #e0e6ed}.n2-ss-show-slides a.n2-ss-back-slides,.n2-ss-show-slides a.n2-ss-back-slides:before{color:#fff}.n2-ss-layer-status-locked .n2-actions-left .n2-i-eye:before{content:'\e609'}.n2-ss-focus-on-active-layer .n2-ss-layer.n2-active{z-index:10000000!important}.n2-ss-scrollbar-wrapper{background-color:#212d3a;padding:4px;height:8px;z-index:10}.n2-scroll-disable .n2-ss-scrollbar-wrapper{visibility:hidden;height:0;padding:0}.n2-ss-scrollbar-wrapper .track{position:relative;height:8px}.n2-ss-scrollbar-wrapper .thumb{position:absolute;top:0;background-color:#49586a;height:8px;cursor:default;width:20px;z-index:2;border:0;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.n2-ss-scrollbar-wrapper.n2-ss-scrollbar-light{background-color:#b9c3c9}.n2-ss-scrollbar-wrapper.n2-ss-scrollbar-light .thumb{background-color:#fff}#n2-ss-zoom{width:280px;text-align:center;vertical-align:middle}#n2-ss-zoom .n2-ss-slider-zoom-container{position:relative;display:inline-block;vertical-align:middle;width:150px;height:34px;padding:0 23px}#n2-ss-zoom .n2-ss-slider-zoom-container>.n2-i{position:absolute;top:9px;color:#6b7986;font-size:16px;cursor:pointer}#n2-ss-zoom .n2-ss-slider-zoom-container .n2-i-minus{left:-18px}#n2-ss-zoom .n2-ss-slider-zoom-container .n2-i-plus{right:-18px}.n2-ss-slider-zoom-bg{position:absolute;left:0;top:50%;margin-top:-3px;width:100%;background:#505c69;height:6px;border-radius:3px}#n2-ss-slider-zoom{height:100%;position:relative;margin:0;background:0 0;border:none;border-radius:0}#n2-ss-slider-zoom .ui-slider-range{display:none}#n2-ss-slider-zoom .ui-slider-handle{position:absolute;top:50%;display:block;width:47px;height:22px;margin-top:-11px;margin-left:-23px;background-color:#e6eaee;background:#e6eaee;border:none;border-radius:3px;z-index:2;color:#7b8898;font-size:10px;text-align:center;line-height:22px;cursor:pointer}.n2-ss-slider-zoom-1{position:absolute;left:50%;top:0;margin-left:-1.5px;width:3px;height:100%;background-color:#6b7986}#n2-ss-lock{display:inline-block;position:absolute;right:-36px;top:9px;cursor:pointer;line-height:16px}#n2-ss-lock .n2-i{color:#6b7986;font-size:16px}#n2-ss-lock.n2-active .n2-i:before{content:"\e609"}.n2-ss-device-zoomer{min-width:280px}.n2-ss-device-zoomer #n2-ss-zoom{padding:10px 0;background:#212d3a;margin:0 auto;display:none;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.n2-ss-device-zoomer:HOVER #n2-ss-zoom{display:block}.n2-ss-device-zoomer .n2-ss-slider-zoom-1,.n2-ss-device-zoomer .n2-ss-slider-zoom-bg{background-color:#374d64}.n2-ss-device-zoomer #n2-ss-zoom #n2-ss-lock>.n2-i,.n2-ss-device-zoomer #n2-ss-zoom .n2-ss-slider-zoom-container>.n2-i{color:#4e667f}.n2-ss-device-zoomer #n2-ss-slider-zoom .ui-slider-handle{background-color:#526a80;color:#fff}#n2-ss-devices{height:60px}#n2-ss-devices.n2-ss-devices-compact>.n2-controls-panel{width:260px}#n2-ss-devices .n2-table{font-size:32px;color:#80a3b5;margin:0 auto}.n2-lb-header #n2-ss-devices .n2-table{color:#a4b0b7}html[dir=rtl] #n2-ss-devices .n2-table{float:left}#n2-ss-devices .n2-td{height:60px;vertical-align:middle;text-align:center;padding:0 15px;cursor:pointer}#n2-ss-devices .n2-td.n2-active{cursor:default;color:#0c92df}.n2-i-devices:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAAAeCAMAAABzNtkNAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACdlBMVEUAAAChrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeOhrrWhrrWhrrUZmeMZmeMZmeOhrrWhrrUZmeMZmeOhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrUZmeMZmeMZmeOhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeOhrrWhrrWhrrWhrrWhrrUZmeMZmeMZmeMZmeMZmeOhrrUZmeOhrrWhrrUZmeMZmeOhrrUZmeOhrrWhrrUZmeMZmeOhrrUZmeOhrrUZmeOhrrUZmeOhrrWhrrUZmeMZmeOhrrWhrrWhrrUZmeMZmeMZmeOhrrUZmeOhrrWhrrWhrrUZmeMZmeMZmeOhrrUZmeOhrrUZmeMAAAA99lBfAAAA0XRSTlMAJ6DHzCgytbY2MLMnoMfMKDK1tjYws5+ytLGfsrSxxh0ixh0il5qXmgY7a5SvvspsB2aHBjtrlK++ymwHZod+wiN+wiMSgbh6SiYQAnl9DBKBuHpKJhACeX0MNbmdQwQzNbmdQwQzRrtLAUa7SwHIpRWkyKUVpJgKUqLDnk2YClKiw55Nhq2KhIatioTLLlgOT8suWA5PcH9ZX3B/WV+sJcQqrqwlxCquKSmjXqNeV1eRiZGJCQmIiLq6AzQDNIK3SYK3SSQkCG2hCG2hsLA3NxRx1r0AAAABYktHRACIBR1IAAAACXBIWXMAAAsSAAALEgHS3X78AAAE0UlEQVRo3s2a+18UVRTAN/eYJLmHJCAjS4pehG4vQrcHhq0bCrFu6BKkRmq+JSNTpBQpVlnjEY+wtAglFIjeWmCWZb7t8Se109z57Mzcc+eBLrPnl7nn3DOP8/3MvXPPueNyWZSbprhBKO4pU9W+N0+jnFJuIS47PVXrlDrd6gPp5NYZHhSKZ0aa2ve2mZRT+u3EZTMytU6ZGZafKAsMJUvtewftk0Jcdpbe6c4JEstGQ8lW+95F+6QTl52td7rb8hO5wagX7tFopC9pBZijVnPA8DYG4kGjXrxXo5G+pBXxPrWai4a3MY9X0BvT7te/Ow+IiNm5jRETtN4b0x7UvzsPiYiJ9YfzHsmfO8/rnTc3/9G8x6jQHhcNySd4YryTiBjnJ5AnC54qnL/A51swv/Dpgmeo0J4VDcnneGK8k4gY58ckp2ih+rEXFj3PExPPYhQx4vTrIJZbvEj92IuKX+CJiWcxihhxug1i/sVegMCLJUuWlpYuXVJSFgDwvlRuKWSqyxYxY12W4DIfYujliuUrwuEVyysqQ4i+V6oshUx12SJG6tWvAqxctTpuX71qJcC015KFWM3riGvWrosb1q1dgzjzDceIrXfDho2btD2bNm4A9/rkILbZg1u2btPatm3dgp7NDhGrroU3t/O+298Cd3UyEKupw7d38GfueAc9NY4Q8wdg5y5ZLa3f3dDw7nvsddu1EwJ+54kFQ7hnr9wMN+5ranr/A/a67d2DoaATxJohwub40v3y1+oAQ1YegWbnibVglM3x4YPy1+pDhqwqii0OEMtp9bYxrR7c7R0d7W74iBnavK05ThPL7fR1sWYjerp7ero9+DEzdPk6cyefWC8cUrQs+EQ6fBpPEhdDr9PEDuMRpZmNn0mHz+NJ4jI8PPnE+uALReuHDunQAf2K5Sgcc5rYAH6pNAexRzr04KBiOY4nJp9YBI6KiQ05TyyKx8XEhp0g1gtFijYij8qv4qPyUDKMymKlOSqPyq/jo/KIE6MyNvMPMe0bZeavZ4ah5Jj5h1nzW2Xmb2SGYUdm/tjqok9ZXXwnry6+L5X18r7kWF0MKKuLH+TVxY9hWa8acGR18f8K9iRD1j7S37+7ngE7ya9gE1G7MCMmrWBPMWTdo4OD+xoZsFP8CjYRtQtCj2VJI1SWNAK12ixpvwjYT4nOkkapLGkU67RZ0kERsJ8TkImPlegz8ZIxLhM3kERn4uMV+ky8YpzLxA3khld7xqRqz+m4/bRU7Un5xSwUQ2I3sAZbMy5Ve87EDWekak/6r0ahmRK7vhqs/7dYRfFsGaso/l52FqC1SFtRtLkz0mw2cu0QcwX/iFUUz1WyiuKflecQO4u1FUWbOyMtZiPXhJjLdV5ftT6vO9XO7putvSQLTjG5oK9aX9A52Nl9s7WXJNYv5l3Kj0g7I5H8S3kXuVOnXq4V86q9rNnhVYVNN3nXhgZjYi7XlYKrhVFpZyRaeLXgCteddq1OzKvuWpogbLrJuzY1GcE2FTkscXAJIWZD5LDEwSU1MTMrgF+t+iebmJkVMahWgxMhZmGv7C967KYSrql6p4n+RaCKkZqnNfI3PXYzCddMvZP1vwjsEGs7RgGbRf2p8k9AB2yif6rYIdZ1ggI2m/pT5d+QDljGf3zSNGZGqKPpAAAAAElFTkSuQmCC)}.n2-i-devices-all:before{background-position:0 0}.n2-i-devices-desktop:before{background-position:-40px 0}.n2-i-devices-tablet:before{background-position:-80px 0}.n2-i-devices-phone:before{background-position:-120px 0}.n2-active>.n2-i-devices-all:before{background-position:-160px 0}.n2-active>.n2-i-devices-desktop:before{background-position:-200px 0}.n2-active>.n2-i-devices-tablet:before{background-position:-240px 0}.n2-active>.n2-i-devices-phone:before{background-position:-280px 0}.n2-generator-insert-variable .n2-variable-container{height:90px;overflow:auto}.n2-generator-insert-variable .n2-group-container{height:40px;overflow:auto}.n2-generator-insert-variable .n2-group-container .n2-button,.n2-generator-insert-variable .n2-variable-container .n2-button{margin:3px}.n2-generator-insert-variable .n2-group-container .n2-button.n2-active,.n2-generator-insert-variable .n2-variable-container .n2-button.n2-active,.n2-ss-layer-picker.n2-active{background:#0c92df}.n2-generator-result-container{height:100px;overflow:auto;margin:0 3px}.n2-ss-layer-picker{background:#6b7986;color:#fff;font-size:16px;height:28px;line-height:28px;padding:0;text-align:center;width:28px;border-radius:3px;margin:0 10px 10px;cursor:pointer}#n2-ss-control-line #n2-ss-layer-parent-linker.n2-under-pick,.n2-ss-layer-picker.n2-under-pick{background-color:#51b82d}#n2-ss-layer-parent-linker.n2-under-pick .n2-i-layerlink:before,.n2-ss-layer-picker.n2-under-pick .n2-i-layerlink:before{content:"\e64b"}.n2-ss-picker-overlay,.n2-ss-picker-overlay-tile{position:absolute;left:0;top:0;background:RGBA(25,153,227,.8);cursor:pointer;width:100%;height:100%;z-index:1000000;box-shadow:inset 0 0 0 1px rgba(0,0,0,.4)}.n2-ss-picker-overlay-tile{width:33%;height:33%}.n2-ss-picker-overlay-tile:HOVER,.n2-ss-picker-overlay:HOVER{background:RGBA(42,52,63,.9)}.n2-ss-picker-overlay-tile.n2-active,.n2-ss-picker-overlay-tile.n2-active:HOVER{background:RGBA(0,52,63,.9)}#n2-ss-control-line #n2-ss-layer-parent-linker{display:none}.n2-ss-has-layers .n2-ss-mode-desktopPortrait #n2-ss-control-line #n2-ss-layer-parent-linker,.n2-ss-has-ruler .n2-ruler>span{display:inline-block}.n2-ruler-container{position:absolute;left:0;top:0;height:100%;width:100%;visibility:hidden;z-index:10}.n2-ruler-container>*{visibility:visible}.n2-ruler,.n2-ruler-guide{position:absolute;left:0;top:0}.n2-ruler{box-sizing:border-box;white-space:nowrap}.n2-ruler>span{position:relative;display:none;vertical-align:top}.n2-ruler>span span{position:absolute;display:block;font-size:10px;color:#7b8898;line-height:10px}.n2-ruler-guide{display:none;z-index:2}.n2-ss-show-guides .n2-ruler-guide{display:block}.n2-ruler-guide .n2-ruler-guide-handle{position:absolute;background:#e6b625;left:0;top:0;width:9px;height:9px;cursor:pointer;font-family:'Nextend'!important;font-size:9px;color:#fff;line-height:9px;text-align:center}.n2-ruler-guide .n2-ruler-guide-handle:before{content:"\e90a"}.n2-ruler-horizontal{padding-left:1px;height:0;width:100%}.n2-ss-has-ruler .n2-ruler-horizontal{height:39px}.n2-ruler-horizontal>span.n2-ss-ruler-mark-large{height:20px}.n2-ruler-horizontal>span.n2-ss-ruler-mark-medium{height:10px}.n2-ruler-horizontal>span{width:9px;height:5px;border-right:1px solid #bcc4c8}.n2-ruler-horizontal span span{left:12px;top:10px}.n2-ruler-vertical .n2-ruler-guide{height:0;width:3000px}.n2-ss-lock-guides .n2-ruler-vertical .n2-ruler-guide{cursor:default}.n2-ruler-vertical .n2-ruler-guide .n2-ruler-guide-border{border-bottom:1px solid #ccaa2b;width:100%}.n2-ruler-vertical .n2-ruler-guide-handle{top:-4px}.n2-ruler-vertical{padding-top:1px;width:0;height:100%;background:#e9edf0;z-index:5}.n2-ss-has-ruler .n2-ruler-vertical{width:40px}.n2-ruler-vertical>span.n2-ss-ruler-mark-large{width:20px}.n2-ruler-vertical>span.n2-ss-ruler-mark-medium{width:10px}.n2-ruler-vertical>span{display:none;width:5px;height:9px;border-bottom:1px solid #bcc4c8}.n2-ss-has-ruler .n2-ruler-vertical>span{display:block}.n2-ruler-vertical span span{left:8px;top:12px}.n2-ruler-horizontal .n2-ruler-guide{width:0;height:1600px}.n2-ss-lock-guides .n2-ruler-horizontal .n2-ruler-guide{cursor:default}.n2-ruler-horizontal .n2-ruler-guide .n2-ruler-guide-border{border-right:1px solid #ccaa2b;height:100%}.n2-ruler-horizontal .n2-ruler-guide-handle{left:-4px}.n2-ruler-guide-handle{display:none}.n2-ss-has-ruler .n2-ruler-guide-handle{display:block}
library/media/dist/smartslider-backend.js CHANGED
@@ -46,7 +46,7 @@ NextendSmartSliderAdminStorage.prototype.startEditor = function (sliderElementID
46
  };
47
 
48
  window.nextend.pre = 'div#n2-ss-0 ';
49
- window.nextend.smartSlider = new NextendSmartSliderAdminStorage();
50
  ;
51
  (function (smartSlider, $, scope) {
52
 
@@ -78,7 +78,7 @@ window.nextend.smartSlider = new NextendSmartSliderAdminStorage();
78
  scope.NextendBackgroundAnimationManager = NextendBackgroundAnimationManager;
79
 
80
  })(nextend.smartSlider, n2, window);
81
-
82
  ;
83
  (function ($, scope) {
84
 
@@ -91,9 +91,6 @@ window.nextend.smartSlider = new NextendSmartSliderAdminStorage();
91
  this.bgAnimationElement = $('.n2-bg-animation');
92
  this.slides = $('.n2-bg-animation-slide');
93
  this.bgImages = $('.n2-bg-animation-slide-bg');
94
- NextendTween.set(this.bgImages, {
95
- rotationZ: 0.0001
96
- });
97
 
98
  this.directionTab = new NextendElementRadio('n2-background-animation-preview-tabs', ['0', '1']);
99
  this.directionTab.element.on('nextendChange.n2-editor', $.proxy(this.directionTabChanged, this));
@@ -204,7 +201,7 @@ window.nextend.smartSlider = new NextendSmartSliderAdminStorage();
204
 
205
  })
206
  (n2, window);
207
-
208
  function strip_tags(input, allowed) {
209
  allowed = (((allowed || '') + '')
210
  .toLowerCase()
@@ -242,7 +239,7 @@ if (!Array.prototype.filter) {
242
 
243
  return res;
244
  };
245
- }
246
  (function ($, scope, undefined) {
247
 
248
  function NextendSmartSliderAdminInlineField() {
@@ -290,11 +287,11 @@ if (!Array.prototype.filter) {
290
 
291
  scope.NextendSmartSliderAdminInlineField = NextendSmartSliderAdminInlineField;
292
 
293
- })(n2, window);
294
-
295
-
296
 
 
297
 
 
298
  (function (smartSlider, $, scope, undefined) {
299
  "use strict";
300
 
@@ -445,7 +442,7 @@ if (!Array.prototype.filter) {
445
  });
446
 
447
  })(nextend.smartSlider, n2, window);
448
-
449
  (function ($, scope, undefined) {
450
 
451
  function QuickSlides(ajaxUrl) {
@@ -603,7 +600,7 @@ if (!Array.prototype.filter) {
603
  };
604
 
605
  scope.NextendSmartSliderQuickSlides = QuickSlides;
606
- })(n2, window);
607
  (function ($, scope, undefined) {
608
 
609
  function ruler(stored) {
@@ -935,7 +932,7 @@ if (!Array.prototype.filter) {
935
  }
936
 
937
 
938
- })(n2, window);
939
  (function ($, scope, undefined) {
940
 
941
  function NextendSmartSliderAdminSidebarSlides(ajaxUrl, contentAjaxUrl, parameters, isUploadDisabled, uploadUrl, uploadDir) {
@@ -1225,7 +1222,7 @@ if (!Array.prototype.filter) {
1225
  nextendaction: 'quickVideo'
1226
  }),
1227
  data: {
1228
- video: Base64.encode(JSON.stringify(video))
1229
  }
1230
  }).done($.proxy(function (response) {
1231
  this.addBoxes($(response.data));
@@ -1720,7 +1717,7 @@ if (!Array.prototype.filter) {
1720
  scope.NextendSmartSliderAdminSlide = NextendSmartSliderAdminSlide;
1721
 
1722
 
1723
- })(n2, window);
1724
  (function (smartSlider, $, scope, undefined) {
1725
 
1726
  var menuHideTimeout = false;
@@ -1981,346 +1978,346 @@ if (!Array.prototype.filter) {
1981
 
1982
  scope.NextendSmartSliderSidebar = NextendSmartSliderSidebar;
1983
 
1984
- })(nextend.smartSlider, n2, window);
1985
- ;
1986
- (function (smartSlider, $, scope, undefined) {
1987
-
1988
-
1989
- function SmartSliderAdminSlide(sliderElementID, slideContentElementID, isUploadDisabled, uploadUrl, uploadDir, options) {
1990
-
1991
- this.options = $.extend({
1992
- slideAsFile: 0
1993
- }, options);
1994
-
1995
- this.readyDeferred = $.Deferred();
1996
- smartSlider.slide = this;
1997
-
1998
- this._warnInternetExplorerUsers();
1999
-
2000
- this.$slideContentElement = $('#' + slideContentElementID);
2001
- this.$slideGuidesElement = $('#slideguides');
2002
- this.slideStartValue = this.$slideContentElement.val();
2003
- this.$sliderElement = $('#' + sliderElementID);
2004
-
2005
-
2006
- smartSlider.frontend = window["n2-ss-0"];
2007
- smartSlider.ruler = new NextendSmartSliderRuler(this.$slideGuidesElement.val());
2008
- smartSlider.frontend.visible(function () {
2009
- $('body').addClass('n2-ss-slider-visible');
2010
- var el = $("#n2-tab-smartslider-editor"),
2011
- tinyscrollbar = el
2012
- .tinyscrollbar({
2013
- axis: "x",
2014
- wheel: false,
2015
- wheelLock: false
2016
- })
2017
- .data('plugin_tinyscrollbar');
2018
- if (typeof el.get(0).move === 'function') {
2019
- el.get(0).move = null;
2020
- }
2021
-
2022
- this.sliderElement.on('SliderResize', function () {
2023
- tinyscrollbar.update("relative");
2024
- });
2025
- });
2026
-
2027
- var fontSize = this.$sliderElement.data('fontsize');
2028
-
2029
- nextend.fontManager.setFontSize(fontSize);
2030
- nextend.styleManager.setFontSize(fontSize);
2031
-
2032
-
2033
- smartSlider.$currentSlideElement = smartSlider.frontend.adminGetCurrentSlideElement();
2034
-
2035
- new SmartSliderAdminGenerator();
2036
-
2037
- smartSlider.$currentSlideElement.addClass('n2-ss-currently-edited-slide');
2038
- var staticSlide = smartSlider.frontend.parameters.isStaticEdited;
2039
- new NextendSmartSliderAdminSlideLayerManager(smartSlider.$currentSlideElement.data('slide'), staticSlide, isUploadDisabled, uploadUrl, uploadDir);
2040
-
2041
- if (!staticSlide) {
2042
- this._initializeBackgroundChanger();
2043
- }
2044
-
2045
- this.readyDeferred.resolve();
2046
-
2047
- $('#smartslider-form').on({
2048
- checkChanged: $.proxy(this.prepareFormForCheck, this),
2049
- submit: $.proxy(this.onSlideSubmit, this)
2050
- });
2051
-
2052
- this.createHistory();
2053
- };
2054
-
2055
- SmartSliderAdminSlide.prototype.ready = function (fn) {
2056
- this.readyDeferred.done(fn);
2057
- };
2058
-
2059
- SmartSliderAdminSlide.prototype.prepareFormForCheck = function () {
2060
- var data = JSON.stringify(smartSlider.layerManager.getData()),
2061
- startData = JSON.stringify(JSON.parse(Base64.decode(this.slideStartValue)));
2062
-
2063
- this.$slideContentElement.val(startData == data ? this.slideStartValue : Base64.encode(data));
2064
- };
2065
-
2066
- SmartSliderAdminSlide.prototype.onSlideSubmit = function (e) {
2067
- if (!nextend.isPreview) {
2068
- this.prepareForm();
2069
- e.preventDefault();
2070
-
2071
- nextend.askToSave = false;
2072
-
2073
- if (this.options.slideAsFile && typeof window.FormData !== undefined && typeof window.File !== 'undefined') {
2074
- var fd = new FormData();
2075
- var data = $('#smartslider-form').serializeArray();
2076
- $.each(data, function (key, input) {
2077
- if (input.name == 'slide[slide]') {
2078
- fd.append('slide', new File([input.value], "slide.txt"));
2079
- } else {
2080
- fd.append(input.name, input.value);
2081
- }
2082
- });
2083
-
2084
- NextendAjaxHelper.ajax({
2085
- url: NextendAjaxHelper.makeAjaxUrl(window.location.href),
2086
- type: 'POST',
2087
- data: fd,
2088
- contentType: false,
2089
- processData: false
2090
- }).done($.proxy(this.afterSave, this));
2091
- } else {
2092
- NextendAjaxHelper.ajax({
2093
- type: 'POST',
2094
- url: NextendAjaxHelper.makeAjaxUrl(window.location.href),
2095
- data: $('#smartslider-form').serialize(),
2096
- dataType: 'json'
2097
- }).done($.proxy(this.afterSave, this));
2098
- }
2099
- }
2100
- };
2101
-
2102
- SmartSliderAdminSlide.prototype.afterSave = function () {
2103
- nextend.askToSave = true;
2104
- $('#smartslider-form').trigger('saved');
2105
-
2106
- $('.n2-ss-edit-slide-top-details .n2-h1').html($('#slidetitle').val());
2107
- };
2108
-
2109
- SmartSliderAdminSlide.prototype.prepareForm = function () {
2110
- this.$slideGuidesElement.val(Base64.encode(JSON.stringify(smartSlider.ruler.toArray())));
2111
-
2112
- this.$slideContentElement.val(Base64.encode(JSON.stringify(smartSlider.layerManager.getData())));
2113
- };
2114
-
2115
- SmartSliderAdminSlide.prototype._initializeBackgroundChanger = function () {
2116
- this.background = {
2117
- type: $('#slidebackground-type').on('nextendChange', $.proxy(this.__onAfterBackgroundTypeChange, this)),
2118
- slideBackgroundColorField: $('#slidebackgroundColor').on('nextendChange', $.proxy(this.__onAfterBackgroundColorChange, this)),
2119
- slideBackgroundGradientField: $('#slidebackgroundGradient').on('nextendChange', $.proxy(this.__onAfterBackgroundColorChange, this)),
2120
- slideBackgroundColorEndField: $('#slidebackgroundColorEnd').on('nextendChange', $.proxy(this.__onAfterBackgroundColorChange, this)),
2121
- slideBackgroundImageField: $('#slidebackgroundImage').on('nextendChange', $.proxy(this.__onAfterBackgroundImageChange, this)),
2122
- slideBackgroundImageOpacity: $('#slidebackgroundImageOpacity').on('nextendChange', $.proxy(this.__onAfterBackgroundImageOpacityChange, this)),
2123
- slidebackgroundFocusX: $('#slidebackgroundFocusX').on('nextendChange', $.proxy(this.__onAfterBackgroundImageChange, this)),
2124
- slidebackgroundFocusY: $('#slidebackgroundFocusY').on('nextendChange', $.proxy(this.__onAfterBackgroundImageChange, this)),
2125
- slideBackgroundModeField: $('#slidebackgroundMode').on('nextendChange', $.proxy(this.__onAfterBackgroundImageChange, this)),
2126
- backgroundImageElement: smartSlider.$currentSlideElement.find('.nextend-slide-bg'),
2127
- canvas: smartSlider.$currentSlideElement.find('.n2-ss-slide-background')
2128
- };
2129
-
2130
- this.currentBackgroundType = this.background.type.val();
2131
-
2132
- // Auto fill thumbnail if empty
2133
- var thumbnail = $('#slidethumbnail');
2134
- if (thumbnail.val() == '') {
2135
- var itemImage = $('#item_imageimage'),
2136
- cb = $.proxy(function (image) {
2137
- if (image != '' && image != '$system$/images/placeholder/image.png') {
2138
- thumbnail.val(image).trigger('change');
2139
- this.background.slideBackgroundImageField.off('.slidethumbnail');
2140
- itemImage.off('.slidethumbnail');
2141
- }
2142
- }, this);
2143
- this.background.slideBackgroundImageField.on('nextendChange.slidethumbnail', $.proxy(function () {
2144
- cb(this.background.slideBackgroundImageField.val());
2145
- }, this));
2146
- itemImage.on('nextendChange.slidethumbnail', $.proxy(function () {
2147
- cb(itemImage.val());
2148
- }, this));
2149
- }
2150
- };
2151
-
2152
- SmartSliderAdminSlide.prototype.__onAfterBackgroundTypeChange = function () {
2153
- var newType = this.background.type.val();
2154
- this.currentBackgroundType = newType;
2155
- switch (newType) {
2156
- case 'image':
2157
- this.__onAfterBackgroundImageChange();
2158
- break;
2159
- case 'video':
2160
- this.__onAfterBackgroundImageChange();
2161
- break;
2162
- case 'color':
2163
- smartSlider.$currentSlideElement.data('slideBackground').changeDesktop('', '', this.background.slideBackgroundModeField.val(), this.background.slidebackgroundFocusX.val(), this.background.slidebackgroundFocusY.val());
2164
- this.__onAfterBackgroundColorChange();
2165
- break;
2166
- }
2167
-
2168
- }
2169
-
2170
- SmartSliderAdminSlide.prototype.__onAfterBackgroundColorChange = function () {
2171
- var backgroundColor = this.background.slideBackgroundColorField.val(),
2172
- gradient = this.background.slideBackgroundGradientField.val();
2173
- if (gradient != 'off') {
2174
- var backgroundColorEnd = this.background.slideBackgroundColorEndField.val(),
2175
- canvas = this.background.canvas.css({background: '', filter: ''});
2176
-
2177
- switch (gradient) {
2178
- case 'horizontal':
2179
- canvas
2180
- .css('background', '#' + backgroundColor.substr(0, 6))
2181
- .css('background', '-moz-linear-gradient(left, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2182
- .css('background', ' -webkit-linear-gradient(left, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2183
- .css('background', 'linear-gradient(to right, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2184
- .css('background', 'filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#' + backgroundColor.substr(0, 6) + '\', endColorstr=\'#' + backgroundColorEnd.substr(0, 6) + '\',GradientType=1)');
2185
- break;
2186
- case 'vertical':
2187
- canvas
2188
- .css('background', '#' + backgroundColor.substr(0, 6))
2189
- .css('background', '-moz-linear-gradient(top, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2190
- .css('background', ' -webkit-linear-gradient(top, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2191
- .css('background', 'linear-gradient(to bottom, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2192
- .css('background', 'filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#' + backgroundColor.substr(0, 6) + '\', endColorstr=\'#' + backgroundColorEnd.substr(0, 6) + '\',GradientType=0)');
2193
- break;
2194
- case 'diagonal1':
2195
- canvas
2196
- .css('background', '#' + backgroundColor.substr(0, 6))
2197
- .css('background', '-moz-linear-gradient(45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2198
- .css('background', ' -webkit-linear-gradient(45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2199
- .css('background', 'linear-gradient(45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2200
- .css('background', 'filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#' + backgroundColor.substr(0, 6) + '\', endColorstr=\'#' + backgroundColorEnd.substr(0, 6) + '\',GradientType=1)');
2201
- break;
2202
- case 'diagonal2':
2203
- canvas
2204
- .css('background', '#' + backgroundColor.substr(0, 6))
2205
- .css('background', '-moz-linear-gradient(-45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2206
- .css('background', ' -webkit-linear-gradient(-45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2207
- .css('background', 'linear-gradient(-45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2208
- .css('background', 'filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#' + backgroundColor.substr(0, 6) + '\', endColorstr=\'#' + backgroundColorEnd.substr(0, 6) + '\',GradientType=1)');
2209
- break;
2210
- }
2211
-
2212
-
2213
- } else {
2214
- if (backgroundColor.substr(6, 8) == '00') {
2215
- this.background.canvas.css('background', '');
2216
- } else {
2217
- this.background.canvas.css('background', '#' + backgroundColor.substr(0, 6))
2218
- .css('background', N2Color.hex2rgbaCSS(backgroundColor));
2219
- }
2220
- }
2221
- };
2222
-
2223
- /**
2224
- * This event callback is responsible for the slide editor to show the apropiate background color and image.
2225
- * @private
2226
- */
2227
- SmartSliderAdminSlide.prototype.__onAfterBackgroundImageChange = function () {
2228
- smartSlider.$currentSlideElement.data('slideBackground').changeDesktop(smartSlider.generator.fill(this.background.slideBackgroundImageField.val()), '', this.background.slideBackgroundModeField.val(), this.background.slidebackgroundFocusX.val(), this.background.slidebackgroundFocusY.val());
2229
- this.__onAfterBackgroundImageOpacityChange();
2230
- };
2231
-
2232
- SmartSliderAdminSlide.prototype.__onAfterBackgroundImageOpacityChange = function () {
2233
- smartSlider.$currentSlideElement.data('slideBackground').setOpacity(this.background.slideBackgroundImageOpacity.val() / 100);
2234
- };
2235
-
2236
- /**
2237
- * Warn old version IE users that the editor may fail to work in their browser.
2238
- * @private
2239
- */
2240
- SmartSliderAdminSlide.prototype._warnInternetExplorerUsers = function () {
2241
- var ie = this.__isInternetExplorer();
2242
- if (ie && ie < 10) {
2243
- alert(window.ss2lang.The_editor_was_tested_under_Internet_Explorer_10_Firefox_and_Chrome_Please_use_one_of_the_tested_browser);
2244
- }
2245
- };
2246
-
2247
- /**
2248
- * @returns Internet Explorer version number or false
2249
- * @private
2250
- */
2251
- SmartSliderAdminSlide.prototype.__isInternetExplorer = function () {
2252
- var myNav = navigator.userAgent.toLowerCase();
2253
- return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;
2254
- };
2255
-
2256
- SmartSliderAdminSlide.prototype.getLayout = function () {
2257
- var propertiesRaw = $('#smartslider-form').serializeArray(),
2258
- properties = {};
2259
-
2260
- for (var i = 0; i < propertiesRaw.length; i++) {
2261
- var m = propertiesRaw[i].name.match(/slide\[(.*?)\]/);
2262
- if (m) {
2263
- properties[m[1]] = propertiesRaw[i].value;
2264
- }
2265
- }
2266
- delete properties['generator'];
2267
- delete properties['published'];
2268
- delete properties['publishdates'];
2269
- delete properties['record-start'];
2270
- delete properties['record-slides'];
2271
- delete properties['slide'];
2272
-
2273
- properties['slide'] = smartSlider.layerManager.getData();
2274
- return properties;
2275
- };
2276
-
2277
- SmartSliderAdminSlide.prototype.loadLayout = function (properties, slideDataOverwrite, layerOverwrite) {
2278
- // we are working on references!
2279
- var slide = properties['slide'];
2280
- delete properties['slide'];
2281
- if (layerOverwrite) {
2282
- smartSlider.layerManager.loadData(slide, true);
2283
- } else {
2284
- smartSlider.layerManager.loadData(slide, false);
2285
- }
2286
- if (slideDataOverwrite) {
2287
- for (var k in properties) {
2288
- $('#slide' + k).val(properties[k]).trigger('change');
2289
- }
2290
- }
2291
- properties['slide'] = slide;
2292
- };
2293
-
2294
- SmartSliderAdminSlide.prototype.createHistory = function () {
2295
- this.slideValues = {};
2296
- n2('#smartslider-form').find('input[id][name^="slide"], textarea[id][name^="slide"]').not('#slideslide').each($.proxy(function (i, el) {
2297
- var $input = $(el),
2298
- field = $input.data('field'),
2299
- id = $input.attr('id');
2300
- this.slideValues[id] = $input.val();
2301
- $input.on('nextendChange', $.proxy(function () {
2302
- var newValue = $input.val(),
2303
- oldValue = this.slideValues[id];
2304
- this.slideValues[id] = newValue;
2305
- smartSlider.history.add($.proxy(function () {
2306
- return [this, 'slideValueChange', newValue, oldValue, [$input, field]];
2307
- }, this));
2308
- }, this));
2309
- }, this));
2310
- };
2311
-
2312
-
2313
- SmartSliderAdminSlide.prototype.history = function (method, value, other) {
2314
- switch (method) {
2315
- case 'slideValueChange':
2316
- other[1].insideChange(value);
2317
- break;
2318
- }
2319
- };
2320
-
2321
- scope.SmartSliderAdminSlide = SmartSliderAdminSlide;
2322
-
2323
- })(nextend.smartSlider, n2, window);
2324
  (function (smartSlider, $, scope, undefined) {
2325
 
2326
  var zoom = null;
@@ -2571,7 +2568,7 @@ if (!Array.prototype.filter) {
2571
  this.zoom.slider('value', v);
2572
  };
2573
  })
2574
- (nextend.smartSlider, n2, window);
2575
  (function ($, scope) {
2576
 
2577
  function NextendSmartSliderCreateSlider(groupID, ajaxUrl) {
@@ -2766,7 +2763,7 @@ if (!Array.prototype.filter) {
2766
 
2767
  scope.NextendSmartSliderCreateSlider = NextendSmartSliderCreateSlider;
2768
 
2769
- })(n2, window);
2770
  (function ($, scope) {
2771
 
2772
  function sliders(groupID, ajaxUrl) {
@@ -3223,7 +3220,7 @@ if (!Array.prototype.filter) {
3223
 
3224
  scope.NextendSmartSliderManageSliders = sliders;
3225
 
3226
- })(n2, window);
3227
  (function ($, scope) {
3228
  function slider(manager, box) {
3229
  this.selected = false;
@@ -3330,7 +3327,7 @@ if (!Array.prototype.filter) {
3330
  };
3331
 
3332
  scope.NextendSmartSliderAdminSlider = slider;
3333
- })(n2, window);
3334
  ;
3335
  (function ($, scope) {
3336
 
@@ -3428,7 +3425,7 @@ if (!Array.prototype.filter) {
3428
 
3429
  scope.NextendElementPostAnimationManager = NextendElementPostAnimationManager;
3430
 
3431
- })(n2, window);
3432
  ;
3433
  (function ($, scope) {
3434
 
@@ -3484,7 +3481,7 @@ if (!Array.prototype.filter) {
3484
  scope.NextendElementBackground = NextendElementBackground;
3485
 
3486
  })(n2, window);
3487
-
3488
  (function ($, scope) {
3489
 
3490
  var STATUS = {
@@ -3714,7 +3711,7 @@ if (!Array.prototype.filter) {
3714
 
3715
  scope.NextendElementLayerPicker = NextendElementLayerPicker;
3716
 
3717
- })(n2, window);
3718
  ;
3719
  (function ($, scope) {
3720
 
@@ -3738,7 +3735,7 @@ if (!Array.prototype.filter) {
3738
  scope.NextendElementSliderType = NextendElementSliderType;
3739
 
3740
  })(n2, window);
3741
-
3742
  ;
3743
  (function ($, scope) {
3744
 
@@ -3784,7 +3781,7 @@ if (!Array.prototype.filter) {
3784
  scope.NextendElementSliderWidgetArea = NextendElementSliderWidgetArea;
3785
 
3786
  })(n2, window);
3787
-
3788
  "use strict";
3789
  (function ($, scope) {
3790
  function NextendElementWidgetPosition(id) {
@@ -3814,7 +3811,7 @@ if (!Array.prototype.filter) {
3814
  scope.NextendElementWidgetPosition = NextendElementWidgetPosition;
3815
 
3816
  })(n2, window);
3817
-
3818
  (function (smartSlider, $, scope, undefined) {
3819
  "use strict";
3820
  function Generator() {
@@ -3841,6 +3838,7 @@ if (!Array.prototype.filter) {
3841
  e.preventDefault();
3842
  this.showModal();
3843
  }, this));
 
3844
  this.registerField($('#slidetitle'));
3845
  this.registerField($('#slidedescription'));
3846
  this.registerField($('#slidethumbnail'));
@@ -4291,7 +4289,7 @@ if (!Array.prototype.filter) {
4291
 
4292
  scope.SmartSliderAdminGenerator = Generator;
4293
 
4294
- })(nextend.smartSlider, n2, window);
4295
  (function ($, scope, undefined) {
4296
 
4297
  function GeneratorRecords(ajaxUrl) {
@@ -4337,7 +4335,7 @@ if (!Array.prototype.filter) {
4337
  };
4338
 
4339
  scope.NextendSmartSliderGeneratorRecords = GeneratorRecords;
4340
- })(n2, window);
4341
  (function (smartSlider, $, scope, undefined) {
4342
 
4343
  function Item(item, layer, itemEditor, createPosition) {
@@ -4501,7 +4499,7 @@ if (!Array.prototype.filter) {
4501
  };
4502
 
4503
  scope.NextendSmartSliderItem = Item;
4504
- })(nextend.smartSlider, n2, window);
4505
  (function (smartSlider, $, scope, undefined) {
4506
 
4507
  function ItemManager(layerEditor) {
@@ -4691,462 +4689,462 @@ if (!Array.prototype.filter) {
4691
 
4692
  scope.NextendSmartSliderItemManager = ItemManager;
4693
 
4694
- })(nextend.smartSlider, n2, window);
4695
- (function ($, scope, undefined) {
4696
-
4697
- function ItemParser(item, formData) {
4698
- this.pre = 'div#' + nextend.smartSlider.frontend.sliderElement.attr('id') + ' ';
4699
- this.formData = formData;
4700
- this.item = item;
4701
-
4702
- this.fonts = [];
4703
- this.styles = [];
4704
-
4705
- this.needFill = [];
4706
- this.added();
4707
- }
4708
-
4709
- ItemParser.prototype.getDefault = function () {
4710
- return {};
4711
- };
4712
-
4713
- ItemParser.prototype.added = function () {
4714
-
4715
- };
4716
-
4717
- ItemParser.prototype.addedFont = function (mode, name) {
4718
- var $input = $('#item_' + this.item.type + name);
4719
- if ($input.length) {
4720
- this.fonts.push({
4721
- mode: mode,
4722
- name: name,
4723
- field: $input.data('field'),
4724
- def: this.formData.values[name]
4725
- });
4726
- $.when(nextend.fontManager.addVisualUsage(mode, this.item.values[name], this.pre))
4727
- .done($.proxy(function (existsFont) {
4728
- if (!existsFont) {
4729
- this.item.changeValue(name, '');
4730
- }
4731
- }, this));
4732
- }
4733
- };
4734
-
4735
- ItemParser.prototype.addedStyle = function (mode, name) {
4736
- var $input = $('#item_' + this.item.type + name);
4737
- if ($input.length) {
4738
- this.styles.push({
4739
- mode: mode,
4740
- name: name,
4741
- field: $input.data('field'),
4742
- def: this.formData.values[name]
4743
- });
4744
-
4745
- $.when(nextend.styleManager.addVisualUsage(mode, this.item.values[name], this.pre))
4746
- .done($.proxy(function (existsStyle) {
4747
- if (!existsStyle) {
4748
- this.item.changeValue(name, '');
4749
- }
4750
- }, this));
4751
- }
4752
-
4753
- };
4754
-
4755
- ItemParser.prototype.parseAll = function (data, item) {
4756
-
4757
- for (var i = 0; i < this.fonts.length; i++) {
4758
- data[this.fonts[i].name + 'class'] = nextend.fontManager.getClass(data[this.fonts[i].name], this.fonts[i].mode) + ' ';
4759
- }
4760
-
4761
- for (var i = 0; i < this.styles.length; i++) {
4762
- data[this.styles[i].name + 'class'] = nextend.styleManager.getClass(data[this.styles[i].name], this.styles[i].mode) + ' ';
4763
- }
4764
-
4765
- for (var i = 0; i < this.needFill.length; i++) {
4766
- if (typeof data[this.needFill[i]] !== 'undefined') {
4767
- data[this.needFill[i]] = nextend.smartSlider.generator.fill(data[this.needFill[i]] + '');
4768
- }
4769
- }
4770
- };
4771
-
4772
- ItemParser.prototype.render = function (node, data) {
4773
- return node;
4774
- };
4775
-
4776
- ItemParser.prototype.getName = function (data) {
4777
- return false;
4778
- };
4779
-
4780
- ItemParser.prototype.resizeLayerToImage = function (item, image) {
4781
- $("<img/>")
4782
- .attr("src", image)
4783
- .load(function () {
4784
- var slideSize = item.layer.layerEditor.slideSize;
4785
- var maxWidth = slideSize.width,
4786
- maxHeight = slideSize.height;
4787
-
4788
- if (this.width > 0 && this.height > 0) {
4789
- maxWidth = parseInt(Math.min(this.width, maxWidth));
4790
- maxHeight = parseInt(Math.min(this.height, maxHeight));
4791
- nextend.smartSlider.history.off();
4792
- if (slideSize.width / slideSize.height <= maxWidth / maxHeight) {
4793
- item.layer.setProperty('width', maxWidth);
4794
- item.layer.setProperty('height', this.height * maxWidth / this.width);
4795
- } else {
4796
- var width = Math.min(this.width * slideSize.height / this.height, maxWidth);
4797
- item.layer.setProperty('width', width);
4798
- item.layer.setProperty('height', this.height * width / this.width);
4799
- }
4800
- nextend.smartSlider.history.on();
4801
- }
4802
- });
4803
- };
4804
-
4805
- ItemParser.prototype.fitLayer = function (item) {
4806
- return false;
4807
- };
4808
-
4809
- ItemParser.prototype.activate = function () {
4810
- nextend.basicCSS.activate('ss3item' + this.item.type, this.item.values, {
4811
- font: this.fonts,
4812
- style: this.styles
4813
- });
4814
- }
4815
-
4816
- ItemParser.prototype.deActivate = function () {
4817
- nextend.basicCSS.deActivate();
4818
- }
4819
-
4820
- scope.NextendSmartSliderItemParser = ItemParser;
4821
-
4822
- })(n2, window);
4823
- (function ($, scope, undefined) {
4824
-
4825
- function ItemParserButton() {
4826
- NextendSmartSliderItemParser.apply(this, arguments);
4827
- };
4828
-
4829
- ItemParserButton.prototype = Object.create(NextendSmartSliderItemParser.prototype);
4830
- ItemParserButton.prototype.constructor = ItemParserButton;
4831
-
4832
- ItemParserButton.prototype.added = function () {
4833
- this.needFill = ['content', 'url'];
4834
- this.addedFont('link', 'font');
4835
- this.addedStyle('button', 'style');
4836
-
4837
- nextend.smartSlider.generator.registerField($('#item_buttoncontent'));
4838
- nextend.smartSlider.generator.registerField($('#linkitem_buttonlink_0'));
4839
- };
4840
-
4841
- ItemParserButton.prototype.getName = function (data) {
4842
- return data.content;
4843
- };
4844
-
4845
- ItemParserButton.prototype.parseAll = function (data) {
4846
- var link = data.link.split('|*|');
4847
- data.url = link[0];
4848
- data.target = link[1];
4849
- delete data.link;
4850
-
4851
- if (data.fullwidth | 0) {
4852
- data.display = 'block;';
4853
- } else {
4854
- data.display = 'inline-block;';
4855
- }
4856
-
4857
- data.extrastyle = data.nowrap | 0 ? 'white-space: nowrap;' : '';
4858
-
4859
- NextendSmartSliderItemParser.prototype.parseAll.apply(this, arguments);
4860
- };
4861
-
4862
- scope.NextendSmartSliderItemParser_button = ItemParserButton;
4863
- })(n2, window);
4864
- (function ($, scope, undefined) {
4865
-
4866
- function ItemParserHeading() {
4867
- NextendSmartSliderItemParser.apply(this, arguments);
4868
- };
4869
-
4870
- ItemParserHeading.prototype = Object.create(NextendSmartSliderItemParser.prototype);
4871
- ItemParserHeading.prototype.constructor = ItemParserHeading;
4872
-
4873
- ItemParserHeading.prototype.getDefault = function () {
4874
- return {
4875
- link: '#|*|_self',
4876
- font: '',
4877
- style: ''
4878
- }
4879
- };
4880
-
4881
- ItemParserHeading.prototype.added = function () {
4882
- this.needFill = ['heading', 'url'];
4883
-
4884
- this.addedFont('hover', 'font');
4885
- this.addedStyle('heading', 'style');
4886
-
4887
- nextend.smartSlider.generator.registerField($('#item_headingheading'));
4888
- nextend.smartSlider.generator.registerField($('#linkitem_headinglink_0'));
4889
-
4890
- };
4891
-
4892
- ItemParserHeading.prototype.getName = function (data) {
4893
- return data.heading;
4894
- };
4895
-
4896
- ItemParserHeading.prototype.parseAll = function (data) {
4897
-
4898
- data.uid = $.fn.uid();
4899
-
4900
- var link = data.link.split('|*|');
4901
- data.url = link[0];
4902
- data.target = link[1];
4903
- delete data.link;
4904
-
4905
-
4906
- if (data.fullwidth | 0) {
4907
- data.display = 'block;';
4908
- } else {
4909
- data.display = 'inline-block;';
4910
- }
4911
-
4912
- data.extrastyle = data.nowrap | 0 ? 'white-space: nowrap;' : '';
4913
-
4914
- data.heading = $('<div>' + data.heading + '</div>').text().replace(/\n/g, '<br />');
4915
- data.priority = 2;
4916
- data.class = '';
4917
-
4918
-
4919
- NextendSmartSliderItemParser.prototype.parseAll.apply(this, arguments);
4920
-
4921
- if (data['url'] == '#' || data['url'] == '') {
4922
- data['afontclass'] = '';
4923
- data['astyleclass'] = '';
4924
- } else {
4925
- data['afontclass'] = data['fontclass'];
4926
- data['fontclass'] = '';
4927
- data['astyleclass'] = data['styleclass'];
4928
- data['styleclass'] = '';
4929
- }
4930
- };
4931
-
4932
- ItemParserHeading.prototype.render = function (node, data) {
4933
- if (data['url'] == '#' || data['url'] == '') {
4934
- var a = node.find('a');
4935
- a.parent().html(a.html());
4936
- }
4937
- return node;
4938
- }
4939
-
4940
- scope.NextendSmartSliderItemParser_heading = ItemParserHeading;
4941
- })(n2, window);
4942
- (function ($, scope, undefined) {
4943
-
4944
- function ItemParserImage() {
4945
- NextendSmartSliderItemParser.apply(this, arguments);
4946
- };
4947
-
4948
- ItemParserImage.prototype = Object.create(NextendSmartSliderItemParser.prototype);
4949
- ItemParserImage.prototype.constructor = ItemParserImage;
4950
-
4951
- ItemParserImage.prototype.getDefault = function () {
4952
- return {
4953
- size: '100%|*|auto',
4954
- link: '#|*|_self',
4955
- style: ''
4956
- }
4957
- };
4958
-
4959
- ItemParserImage.prototype.added = function () {
4960
- this.needFill = ['image', 'url'];
4961
-
4962
- this.addedStyle('box', 'style');
4963
-
4964
- nextend.smartSlider.generator.registerField($('#item_imageimage'));
4965
- nextend.smartSlider.generator.registerField($('#item_imagealt'));
4966
- nextend.smartSlider.generator.registerField($('#item_imagetitle'));
4967
- nextend.smartSlider.generator.registerField($('#linkitem_imagelink_0'));
4968
- };
4969
-
4970
- ItemParserImage.prototype.getName = function (data) {
4971
- return data.image.split('/').pop();
4972
- };
4973
-
4974
- ItemParserImage.prototype.parseAll = function (data, item) {
4975
- var size = data.size.split('|*|');
4976
- data.width = size[0];
4977
- data.height = size[1];
4978
- delete data.size;
4979
-
4980
- var link = data.link.split('|*|');
4981
- data.url = link[0];
4982
- data.target = link[1];
4983
- delete data.link;
4984
-
4985
- NextendSmartSliderItemParser.prototype.parseAll.apply(this, arguments);
4986
-
4987
- if (item && item.values.image == '$system$/images/placeholder/image.png' && data.image != item.values.image) {
4988
- data.image = nextend.imageHelper.fixed(data.image);
4989
- this.resizeLayerToImage(item, data.image);
4990
- } else {
4991
- data.image = nextend.imageHelper.fixed(data.image);
4992
- }
4993
-
4994
- };
4995
-
4996
- ItemParserImage.prototype.fitLayer = function (item) {
4997
- this.resizeLayerToImage(item, nextend.imageHelper.fixed(item.values.image));
4998
- return true;
4999
- };
5000
-
5001
- ItemParserImage.prototype.render = function (node, data) {
5002
- if (data['url'] == '#') {
5003
- node.html(node.children('a').html());
5004
- }
5005
- return node;
5006
- };
5007
-
5008
- scope.NextendSmartSliderItemParser_image = ItemParserImage;
5009
- })(n2, window);
5010
-
5011
- (function ($, scope, undefined) {
5012
-
5013
- function ItemParserText() {
5014
- NextendSmartSliderItemParser.apply(this, arguments);
5015
- };
5016
-
5017
- ItemParserText.prototype = Object.create(NextendSmartSliderItemParser.prototype);
5018
- ItemParserText.prototype.constructor = ItemParserText;
5019
-
5020
- ItemParserText.prototype.getDefault = function () {
5021
- return {
5022
- contentmobile: '',
5023
- contenttablet: '',
5024
- font: '',
5025
- style: ''
5026
- }
5027
- };
5028
-
5029
- ItemParserText.prototype.added = function () {
5030
- this.needFill = ['content', 'contenttablet', 'contentmobile'];
5031
-
5032
- this.addedFont('paragraph', 'font');
5033
- this.addedStyle('heading', 'style');
5034
-
5035
- nextend.smartSlider.generator.registerField($('#item_textcontent'));
5036
- nextend.smartSlider.generator.registerField($('#item_textcontenttablet'));
5037
- nextend.smartSlider.generator.registerField($('#item_textcontentmobile'));
5038
- };
5039
-
5040
- ItemParserText.prototype.getName = function (data) {
5041
- return data.content;
5042
- };
5043
-
5044
- ItemParserText.prototype.parseAll = function (data) {
5045
- NextendSmartSliderItemParser.prototype.parseAll.apply(this, arguments);
5046
-
5047
- data['p'] = _wp_Autop(data['content']);
5048
- data['ptablet'] = _wp_Autop(data['contenttablet']);
5049
- data['pmobile'] = _wp_Autop(data['contentmobile']);
5050
- };
5051
- ItemParserText.prototype.render = function (node, data) {
5052
- if (data['contenttablet'] == '') {
5053
- node = node.filter(':not(.n2-ss-tablet)');
5054
- node.filter('.n2-ss-desktop').addClass('n2-ss-tablet');
5055
- }
5056
- if (data['contentmobile'] == '') {
5057
- node = node.filter(':not(.n2-ss-mobile)');
5058
- node.filter('.n2-ss-tablet, .n2-ss-desktop').last().addClass('n2-ss-mobile');
5059
- }
5060
-
5061
- node.find('p').addClass(data['fontclass'] + ' ' + data['styleclass']);
5062
- node.find('a').on('click', function (e) {
5063
- e.preventDefault();
5064
- });
5065
- return node;
5066
- };
5067
-
5068
- scope.NextendSmartSliderItemParser_text = ItemParserText;
5069
-
5070
- function _wp_Autop(pee) {
5071
- var preserve_linebreaks = false,
5072
- preserve_br = false,
5073
- blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre' +
5074
- '|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|legend|section' +
5075
- '|article|aside|hgroup|header|footer|nav|figure|details|menu|summary';
5076
-
5077
- if (pee.indexOf('<object') !== -1) {
5078
- pee = pee.replace(/<object[\s\S]+?<\/object>/g, function (a) {
5079
- return a.replace(/[\r\n]+/g, '');
5080
- });
5081
- }
5082
-
5083
- pee = pee.replace(/<[^<>]+>/g, function (a) {
5084
- return a.replace(/[\r\n]+/g, ' ');
5085
- });
5086
-
5087
- // Protect pre|script tags
5088
- if (pee.indexOf('<pre') !== -1 || pee.indexOf('<script') !== -1) {
5089
- preserve_linebreaks = true;
5090
- pee = pee.replace(/<(pre|script)[^>]*>[\s\S]+?<\/\1>/g, function (a) {
5091
- return a.replace(/(\r\n|\n)/g, '<wp-line-break>');
5092
- });
5093
- }
5094
-
5095
- // keep <br> tags inside captions and convert line breaks
5096
- if (pee.indexOf('[caption') !== -1) {
5097
- preserve_br = true;
5098
- pee = pee.replace(/\[caption[\s\S]+?\[\/caption\]/g, function (a) {
5099
- // keep existing <br>
5100
- a = a.replace(/<br([^>]*)>/g, '<wp-temp-br$1>');
5101
- // no line breaks inside HTML tags
5102
- a = a.replace(/<[a-zA-Z0-9]+( [^<>]+)?>/g, function (b) {
5103
- return b.replace(/[\r\n\t]+/, ' ');
5104
- });
5105
- // convert remaining line breaks to <br>
5106
- return a.replace(/\s*\n\s*/g, '<wp-temp-br />');
5107
- });
5108
- }
5109
-
5110
- pee = pee + '\n\n';
5111
- pee = pee.replace(/<br \/>\s*<br \/>/gi, '\n\n');
5112
- pee = pee.replace(new RegExp('(<(?:' + blocklist + ')(?: [^>]*)?>)', 'gi'), '\n$1');
5113
- pee = pee.replace(new RegExp('(</(?:' + blocklist + ')>)', 'gi'), '$1\n\n');
5114
- pee = pee.replace(/<hr( [^>]*)?>/gi, '<hr$1>\n\n'); // hr is self closing block element
5115
- pee = pee.replace(/\r\n|\r/g, '\n');
5116
- pee = pee.replace(/\n\s*\n+/g, '\n\n');
5117
- pee = pee.replace(/([\s\S]+?)\n\n/g, '<p>$1</p>\n');
5118
- pee = pee.replace(/<p>\s*?<\/p>/gi, '');
5119
- pee = pee.replace(new RegExp('<p>\\s*(</?(?:' + blocklist + ')(?: [^>]*)?>)\\s*</p>', 'gi'), '$1');
5120
- pee = pee.replace(/<p>(<li.+?)<\/p>/gi, '$1');
5121
- pee = pee.replace(/<p>\s*<blockquote([^>]*)>/gi, '<blockquote$1><p>');
5122
- pee = pee.replace(/<\/blockquote>\s*<\/p>/gi, '</p></blockquote>');
5123
- pee = pee.replace(new RegExp('<p>\\s*(</?(?:' + blocklist + ')(?: [^>]*)?>)', 'gi'), '$1');
5124
- pee = pee.replace(new RegExp('(</?(?:' + blocklist + ')(?: [^>]*)?>)\\s*</p>', 'gi'), '$1');
5125
- pee = pee.replace(/\s*\n/gi, '<br />\n');
5126
- pee = pee.replace(new RegExp('(</?(?:' + blocklist + ')[^>]*>)\\s*<br />', 'gi'), '$1');
5127
- pee = pee.replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)>)/gi, '$1');
5128
- pee = pee.replace(/(?:<p>|<br ?\/?>)*\s*\[caption([^\[]+)\[\/caption\]\s*(?:<\/p>|<br ?\/?>)*/gi, '[caption$1[/caption]');
5129
-
5130
- pee = pee.replace(/(<(?:div|th|td|form|fieldset|dd)[^>]*>)(.*?)<\/p>/g, function (a, b, c) {
5131
- if (c.match(/<p( [^>]*)?>/)) {
5132
- return a;
5133
- }
5134
-
5135
- return b + '<p>' + c + '</p>';
5136
- });
5137
-
5138
- // put back the line breaks in pre|script
5139
- if (preserve_linebreaks) {
5140
- pee = pee.replace(/<wp-line-break>/g, '\n');
5141
- }
5142
-
5143
- if (preserve_br) {
5144
- pee = pee.replace(/<wp-temp-br([^>]*)>/g, '<br$1>');
5145
- }
5146
-
5147
- return pee;
5148
- };
5149
- })(n2, window);
5150
  (function ($, scope, undefined) {
5151
 
5152
  function ItemParserVimeo() {
@@ -5205,78 +5203,78 @@ if (!Array.prototype.filter) {
5205
  };
5206
 
5207
  scope.NextendSmartSliderItemParser_vimeo = ItemParserVimeo;
5208
- })(n2, window);
5209
- (function ($, scope, undefined) {
5210
-
5211
- function ItemParserYouTube() {
5212
- NextendSmartSliderItemParser.apply(this, arguments);
5213
- };
5214
-
5215
- ItemParserYouTube.prototype = Object.create(NextendSmartSliderItemParser.prototype);
5216
- ItemParserYouTube.prototype.constructor = ItemParserYouTube;
5217
-
5218
- ItemParserYouTube.prototype.added = function () {
5219
- this.needFill = ['youtubeurl', 'image', 'start'];
5220
-
5221
- nextend.smartSlider.generator.registerField($('#item_youtubeyoutubeurl'));
5222
- nextend.smartSlider.generator.registerField($('#item_youtubeimage'));
5223
- nextend.smartSlider.generator.registerField($('#item_youtubestart'));
5224
- };
5225
-
5226
- ItemParserYouTube.prototype.getName = function (data) {
5227
- return data.youtubeurl;
5228
- };
5229
-
5230
- ItemParserYouTube.prototype.parseAll = function (data, item) {
5231
-
5232
- var youTubeChanged = item.values.youtubeurl != data.youtubeurl;
5233
-
5234
- NextendSmartSliderItemParser.prototype.parseAll.apply(this, arguments);
5235
-
5236
- if (data.image == '') {
5237
- data.image = '$system$/images/placeholder/video.png';
5238
- }
5239
-
5240
- data.image = nextend.imageHelper.fixed(data.image);
5241
-
5242
- if (youTubeChanged) {
5243
- var youtubeRegexp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,
5244
- youtubeMatch = data.youtubeurl.match(youtubeRegexp);
5245
-
5246
- if (youtubeMatch) {
5247
- NextendAjaxHelper.getJSON('https://www.googleapis.com/youtube/v3/videos?id=' + encodeURI(youtubeMatch[2]) + '&part=snippet&key=AIzaSyC3AolfvPAPlJs-2FgyPJdEEKS6nbPHdSM').done($.proxy(function (_data) {
5248
- if (_data.items.length) {
5249
-
5250
- var thumbnails = _data.items[0].snippet.thumbnails,
5251
- thumbnail = thumbnails.maxres || thumbnails.standard || thumbnails.high || thumbnails.medium || thumbnails.default,
5252
- url = thumbnail.url;
5253
- if (item.values.youtubeurl == '{video_url}') {
5254
- url = url.replace(youtubeMatch[2], '{video_id}');
5255
- }
5256
- $('#item_youtubeimage').val(url).trigger('change');
5257
- }
5258
- }, this)).fail(function (data) {
5259
- nextend.notificationCenter.error(data.error.errors[0].message);
5260
- });
5261
- } else {
5262
- nextend.notificationCenter.error('The provided URL does not match any known YouTube url or code!');
5263
- }
5264
- }
5265
- };
5266
-
5267
- ItemParserYouTube.prototype.fitLayer = function (item) {
5268
- return true;
5269
- };
5270
-
5271
- ItemParserYouTube.prototype.render = function (node, data) {
5272
- if (!parseInt(data.playbutton)) {
5273
- node.find('.n2-video-play').remove();
5274
- }
5275
- return node;
5276
- }
5277
-
5278
- scope.NextendSmartSliderItemParser_youtube = ItemParserYouTube;
5279
- })(n2, window);
5280
  (function (smartSlider, $, scope, undefined) {
5281
  function LayerDataStorage() {
5282
  this.property = {};
@@ -5386,7 +5384,7 @@ if (!Array.prototype.filter) {
5386
  };
5387
 
5388
  scope.NextendSmartSliderLayerDataStorageAbtract = LayerDataStorage;
5389
- })(nextend.smartSlider, n2, window);
5390
  (function (smartSlider, $, scope, undefined) {
5391
 
5392
  var connectedSortables = $();
@@ -5653,7 +5651,7 @@ if (!Array.prototype.filter) {
5653
  };
5654
 
5655
  scope.NextendSmartSliderLayerContainerAbstract = LayerContainerAbstract;
5656
- })(nextend.smartSlider, n2, window);
5657
  (function (smartSlider, $, scope, undefined) {
5658
 
5659
  var highlighted = false,
@@ -5972,13 +5970,6 @@ if (!Array.prototype.filter) {
5972
 
5973
  this.createRow();
5974
 
5975
- var status = layer.data('status');
5976
- if (status !== null && typeof status != 'undefined') {
5977
- this.changeStatus(status);
5978
- } else {
5979
- this.changeStatus(LAYER_STATUS.NORMAL);
5980
- }
5981
-
5982
  this.itemEditor = itemEditor;
5983
 
5984
  this.initItems();
@@ -6036,6 +6027,13 @@ if (!Array.prototype.filter) {
6036
  }, this)
6037
  });
6038
 
 
 
 
 
 
 
 
6039
  setTimeout($.proxy(function () {
6040
  this._resize(true);
6041
  if (this.status != LAYER_STATUS.HIDDEN) {
@@ -6099,7 +6097,7 @@ if (!Array.prototype.filter) {
6099
 
6100
  $('<a href="#" class="n2-ss-sc-hide n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-eye"></i></a>').appendTo(status).on('click', $.proxy(function (e) {
6101
  e.preventDefault();
6102
- if (this.status == LAYER_STATUS.HIDDEN) {
6103
  this.setStatusNormal();
6104
  } else {
6105
  this.changeStatus(LAYER_STATUS.HIDDEN);
@@ -7884,7 +7882,7 @@ if (!Array.prototype.filter) {
7884
 
7885
  scope.NextendSmartSliderLayer = Layer;
7886
 
7887
- })(nextend.smartSlider, n2, window);
7888
  (function (smartSlider, $, scope, undefined) {
7889
  var preventActivation = false;
7890
 
@@ -8556,7 +8554,7 @@ if (!Array.prototype.filter) {
8556
  }
8557
 
8558
  scope.NextendSmartSliderLayerGroup = LayerGroup;
8559
- })(nextend.smartSlider, n2, window);
8560
  (function (smartSlider, $, scope, undefined) {
8561
 
8562
  function LayersUserInterface() {
@@ -8697,7 +8695,7 @@ if (!Array.prototype.filter) {
8697
  }
8698
 
8699
  window.NextendSmartSliderAdminLayersUserInterface = LayersUserInterface;
8700
- })(nextend.smartSlider, n2, window);
8701
  (function (smartSlider, $, scope, undefined) {
8702
 
8703
  function MainLayerGroup(layerEditor) {
@@ -8740,7 +8738,7 @@ if (!Array.prototype.filter) {
8740
 
8741
  scope.NextendSmartSliderMainLayerGroup = MainLayerGroup;
8742
 
8743
- })(nextend.smartSlider, n2, window);
8744
  (function (smartSlider, $, scope, undefined) {
8745
  var layerClass = '.n2-ss-layer',
8746
  keys = {
46
  };
47
 
48
  window.nextend.pre = 'div#n2-ss-0 ';
49
+ window.nextend.smartSlider = new NextendSmartSliderAdminStorage();
50
  ;
51
  (function (smartSlider, $, scope) {
52
 
78
  scope.NextendBackgroundAnimationManager = NextendBackgroundAnimationManager;
79
 
80
  })(nextend.smartSlider, n2, window);
81
+
82
  ;
83
  (function ($, scope) {
84
 
91
  this.bgAnimationElement = $('.n2-bg-animation');
92
  this.slides = $('.n2-bg-animation-slide');
93
  this.bgImages = $('.n2-bg-animation-slide-bg');
 
 
 
94
 
95
  this.directionTab = new NextendElementRadio('n2-background-animation-preview-tabs', ['0', '1']);
96
  this.directionTab.element.on('nextendChange.n2-editor', $.proxy(this.directionTabChanged, this));
201
 
202
  })
203
  (n2, window);
204
+
205
  function strip_tags(input, allowed) {
206
  allowed = (((allowed || '') + '')
207
  .toLowerCase()
239
 
240
  return res;
241
  };
242
+ }
243
  (function ($, scope, undefined) {
244
 
245
  function NextendSmartSliderAdminInlineField() {
287
 
288
  scope.NextendSmartSliderAdminInlineField = NextendSmartSliderAdminInlineField;
289
 
290
+ })(n2, window);
 
 
291
 
292
+
293
 
294
+
295
  (function (smartSlider, $, scope, undefined) {
296
  "use strict";
297
 
442
  });
443
 
444
  })(nextend.smartSlider, n2, window);
445
+
446
  (function ($, scope, undefined) {
447
 
448
  function QuickSlides(ajaxUrl) {
600
  };
601
 
602
  scope.NextendSmartSliderQuickSlides = QuickSlides;
603
+ })(n2, window);
604
  (function ($, scope, undefined) {
605
 
606
  function ruler(stored) {
932
  }
933
 
934
 
935
+ })(n2, window);
936
  (function ($, scope, undefined) {
937
 
938
  function NextendSmartSliderAdminSidebarSlides(ajaxUrl, contentAjaxUrl, parameters, isUploadDisabled, uploadUrl, uploadDir) {
1222
  nextendaction: 'quickVideo'
1223
  }),
1224
  data: {
1225
+ video: Base64.encode(encodeURIComponent(JSON.stringify(video)))
1226
  }
1227
  }).done($.proxy(function (response) {
1228
  this.addBoxes($(response.data));
1717
  scope.NextendSmartSliderAdminSlide = NextendSmartSliderAdminSlide;
1718
 
1719
 
1720
+ })(n2, window);
1721
  (function (smartSlider, $, scope, undefined) {
1722
 
1723
  var menuHideTimeout = false;
1978
 
1979
  scope.NextendSmartSliderSidebar = NextendSmartSliderSidebar;
1980
 
1981
+ })(nextend.smartSlider, n2, window);
1982
+ ;
1983
+ (function (smartSlider, $, scope, undefined) {
1984
+
1985
+
1986
+ function SmartSliderAdminSlide(sliderElementID, slideContentElementID, isUploadDisabled, uploadUrl, uploadDir, options) {
1987
+
1988
+ this.options = $.extend({
1989
+ slideAsFile: 0
1990
+ }, options);
1991
+
1992
+ this.readyDeferred = $.Deferred();
1993
+ smartSlider.slide = this;
1994
+
1995
+ this._warnInternetExplorerUsers();
1996
+
1997
+ this.$slideContentElement = $('#' + slideContentElementID);
1998
+ this.$slideGuidesElement = $('#slideguides');
1999
+ this.slideStartValue = this.$slideContentElement.val();
2000
+ this.$sliderElement = $('#' + sliderElementID);
2001
+
2002
+
2003
+ smartSlider.frontend = window["n2-ss-0"];
2004
+ smartSlider.ruler = new NextendSmartSliderRuler(this.$slideGuidesElement.val());
2005
+ smartSlider.frontend.visible(function () {
2006
+ $('body').addClass('n2-ss-slider-visible');
2007
+ var el = $("#n2-tab-smartslider-editor"),
2008
+ tinyscrollbar = el
2009
+ .tinyscrollbar({
2010
+ axis: "x",
2011
+ wheel: false,
2012
+ wheelLock: false
2013
+ })
2014
+ .data('plugin_tinyscrollbar');
2015
+ if (typeof el.get(0).move === 'function') {
2016
+ el.get(0).move = null;
2017
+ }
2018
+
2019
+ this.sliderElement.on('SliderResize', function () {
2020
+ tinyscrollbar.update("relative");
2021
+ });
2022
+ });
2023
+
2024
+ var fontSize = this.$sliderElement.data('fontsize');
2025
+
2026
+ nextend.fontManager.setFontSize(fontSize);
2027
+ nextend.styleManager.setFontSize(fontSize);
2028
+
2029
+
2030
+ smartSlider.$currentSlideElement = smartSlider.frontend.adminGetCurrentSlideElement();
2031
+
2032
+ new SmartSliderAdminGenerator();
2033
+
2034
+ smartSlider.$currentSlideElement.addClass('n2-ss-currently-edited-slide');
2035
+ var staticSlide = smartSlider.frontend.parameters.isStaticEdited;
2036
+ new NextendSmartSliderAdminSlideLayerManager(smartSlider.$currentSlideElement.data('slide'), staticSlide, isUploadDisabled, uploadUrl, uploadDir);
2037
+
2038
+ if (!staticSlide) {
2039
+ this._initializeBackgroundChanger();
2040
+ }
2041
+
2042
+ this.readyDeferred.resolve();
2043
+
2044
+ $('#smartslider-form').on({
2045
+ checkChanged: $.proxy(this.prepareFormForCheck, this),
2046
+ submit: $.proxy(this.onSlideSubmit, this)
2047
+ });
2048
+
2049
+ this.createHistory();
2050
+ };
2051
+
2052
+ SmartSliderAdminSlide.prototype.ready = function (fn) {
2053
+ this.readyDeferred.done(fn);
2054
+ };
2055
+
2056
+ SmartSliderAdminSlide.prototype.prepareFormForCheck = function () {
2057
+ var data = JSON.stringify(smartSlider.layerManager.getData()),
2058
+ startData = JSON.stringify(JSON.parse(Base64.decode(this.slideStartValue)));
2059
+
2060
+ this.$slideContentElement.val(startData == data ? this.slideStartValue : Base64.encode(data));
2061
+ };
2062
+
2063
+ SmartSliderAdminSlide.prototype.onSlideSubmit = function (e) {
2064
+ if (!nextend.isPreview) {
2065
+ this.prepareForm();
2066
+ e.preventDefault();
2067
+
2068
+ nextend.askToSave = false;
2069
+
2070
+ if (this.options.slideAsFile && typeof window.FormData !== undefined && typeof window.File !== 'undefined') {
2071
+ var fd = new FormData();
2072
+ var data = $('#smartslider-form').serializeArray();
2073
+ $.each(data, function (key, input) {
2074
+ if (input.name == 'slide[slide]') {
2075
+ fd.append('slide', new File([input.value], "slide.txt"));
2076
+ } else {
2077
+ fd.append(input.name, input.value);
2078
+ }
2079
+ });
2080
+
2081
+ NextendAjaxHelper.ajax({
2082
+ url: NextendAjaxHelper.makeAjaxUrl(window.location.href),
2083
+ type: 'POST',
2084
+ data: fd,
2085
+ contentType: false,
2086
+ processData: false
2087
+ }).done($.proxy(this.afterSave, this));
2088
+ } else {
2089
+ NextendAjaxHelper.ajax({
2090
+ type: 'POST',
2091
+ url: NextendAjaxHelper.makeAjaxUrl(window.location.href),
2092
+ data: $('#smartslider-form').serialize(),
2093
+ dataType: 'json'
2094
+ }).done($.proxy(this.afterSave, this));
2095
+ }
2096
+ }
2097
+ };
2098
+
2099
+ SmartSliderAdminSlide.prototype.afterSave = function () {
2100
+ nextend.askToSave = true;
2101
+ $('#smartslider-form').trigger('saved');
2102
+
2103
+ $('.n2-ss-edit-slide-top-details .n2-h1').html($('#slidetitle').val());
2104
+ };
2105
+
2106
+ SmartSliderAdminSlide.prototype.prepareForm = function () {
2107
+ this.$slideGuidesElement.val(Base64.encode(JSON.stringify(smartSlider.ruler.toArray())));
2108
+
2109
+ this.$slideContentElement.val(Base64.encode(nextend.UnicodeToHTMLEntity(JSON.stringify(smartSlider.layerManager.getData()))));
2110
+ };
2111
+
2112
+ SmartSliderAdminSlide.prototype._initializeBackgroundChanger = function () {
2113
+ this.background = {
2114
+ type: $('#slidebackground-type').on('nextendChange', $.proxy(this.__onAfterBackgroundTypeChange, this)),
2115
+ slideBackgroundColorField: $('#slidebackgroundColor').on('nextendChange', $.proxy(this.__onAfterBackgroundColorChange, this)),
2116
+ slideBackgroundGradientField: $('#slidebackgroundGradient').on('nextendChange', $.proxy(this.__onAfterBackgroundColorChange, this)),
2117
+ slideBackgroundColorEndField: $('#slidebackgroundColorEnd').on('nextendChange', $.proxy(this.__onAfterBackgroundColorChange, this)),
2118
+ slideBackgroundImageField: $('#slidebackgroundImage').on('nextendChange', $.proxy(this.__onAfterBackgroundImageChange, this)),
2119
+ slideBackgroundImageOpacity: $('#slidebackgroundImageOpacity').on('nextendChange', $.proxy(this.__onAfterBackgroundImageOpacityChange, this)),
2120
+ slidebackgroundFocusX: $('#slidebackgroundFocusX').on('nextendChange', $.proxy(this.__onAfterBackgroundImageChange, this)),
2121
+ slidebackgroundFocusY: $('#slidebackgroundFocusY').on('nextendChange', $.proxy(this.__onAfterBackgroundImageChange, this)),
2122
+ slideBackgroundModeField: $('#slidebackgroundMode').on('nextendChange', $.proxy(this.__onAfterBackgroundImageChange, this)),
2123
+ backgroundImageElement: smartSlider.$currentSlideElement.find('.nextend-slide-bg'),
2124
+ canvas: smartSlider.$currentSlideElement.find('.n2-ss-slide-background')
2125
+ };
2126
+
2127
+ this.currentBackgroundType = this.background.type.val();
2128
+
2129
+ // Auto fill thumbnail if empty
2130
+ var thumbnail = $('#slidethumbnail');
2131
+ if (thumbnail.val() == '') {
2132
+ var itemImage = $('#item_imageimage'),
2133
+ cb = $.proxy(function (image) {
2134
+ if (image != '' && image != '$system$/images/placeholder/image.png') {
2135
+ thumbnail.val(image).trigger('change');
2136
+ this.background.slideBackgroundImageField.off('.slidethumbnail');
2137
+ itemImage.off('.slidethumbnail');
2138
+ }
2139
+ }, this);
2140
+ this.background.slideBackgroundImageField.on('nextendChange.slidethumbnail', $.proxy(function () {
2141
+ cb(this.background.slideBackgroundImageField.val());
2142
+ }, this));
2143
+ itemImage.on('nextendChange.slidethumbnail', $.proxy(function () {
2144
+ cb(itemImage.val());
2145
+ }, this));
2146
+ }
2147
+ };
2148
+
2149
+ SmartSliderAdminSlide.prototype.__onAfterBackgroundTypeChange = function () {
2150
+ var newType = this.background.type.val();
2151
+ this.currentBackgroundType = newType;
2152
+ switch (newType) {
2153
+ case 'image':
2154
+ this.__onAfterBackgroundImageChange();
2155
+ break;
2156
+ case 'video':
2157
+ this.__onAfterBackgroundImageChange();
2158
+ break;
2159
+ case 'color':
2160
+ smartSlider.$currentSlideElement.data('slideBackground').changeDesktop('', '', this.background.slideBackgroundModeField.val(), this.background.slidebackgroundFocusX.val(), this.background.slidebackgroundFocusY.val());
2161
+ this.__onAfterBackgroundColorChange();
2162
+ break;
2163
+ }
2164
+
2165
+ }
2166
+
2167
+ SmartSliderAdminSlide.prototype.__onAfterBackgroundColorChange = function () {
2168
+ var backgroundColor = this.background.slideBackgroundColorField.val(),
2169
+ gradient = this.background.slideBackgroundGradientField.val();
2170
+ if (gradient != 'off') {
2171
+ var backgroundColorEnd = this.background.slideBackgroundColorEndField.val(),
2172
+ canvas = this.background.canvas.css({background: '', filter: ''});
2173
+
2174
+ switch (gradient) {
2175
+ case 'horizontal':
2176
+ canvas
2177
+ .css('background', '#' + backgroundColor.substr(0, 6))
2178
+ .css('background', '-moz-linear-gradient(left, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2179
+ .css('background', ' -webkit-linear-gradient(left, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2180
+ .css('background', 'linear-gradient(to right, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2181
+ .css('background', 'filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#' + backgroundColor.substr(0, 6) + '\', endColorstr=\'#' + backgroundColorEnd.substr(0, 6) + '\',GradientType=1)');
2182
+ break;
2183
+ case 'vertical':
2184
+ canvas
2185
+ .css('background', '#' + backgroundColor.substr(0, 6))
2186
+ .css('background', '-moz-linear-gradient(top, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2187
+ .css('background', ' -webkit-linear-gradient(top, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2188
+ .css('background', 'linear-gradient(to bottom, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2189
+ .css('background', 'filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#' + backgroundColor.substr(0, 6) + '\', endColorstr=\'#' + backgroundColorEnd.substr(0, 6) + '\',GradientType=0)');
2190
+ break;
2191
+ case 'diagonal1':
2192
+ canvas
2193
+ .css('background', '#' + backgroundColor.substr(0, 6))
2194
+ .css('background', '-moz-linear-gradient(45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2195
+ .css('background', ' -webkit-linear-gradient(45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2196
+ .css('background', 'linear-gradient(45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2197
+ .css('background', 'filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#' + backgroundColor.substr(0, 6) + '\', endColorstr=\'#' + backgroundColorEnd.substr(0, 6) + '\',GradientType=1)');
2198
+ break;
2199
+ case 'diagonal2':
2200
+ canvas
2201
+ .css('background', '#' + backgroundColor.substr(0, 6))
2202
+ .css('background', '-moz-linear-gradient(-45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2203
+ .css('background', ' -webkit-linear-gradient(-45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2204
+ .css('background', 'linear-gradient(-45deg, ' + N2Color.hex2rgbaCSS(backgroundColor) + ' 0%,' + N2Color.hex2rgbaCSS(backgroundColorEnd) + ' 100%)')
2205
+ .css('background', 'filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#' + backgroundColor.substr(0, 6) + '\', endColorstr=\'#' + backgroundColorEnd.substr(0, 6) + '\',GradientType=1)');
2206
+ break;
2207
+ }
2208
+
2209
+
2210
+ } else {
2211
+ if (backgroundColor.substr(6, 8) == '00') {
2212
+ this.background.canvas.css('background', '');
2213
+ } else {
2214
+ this.background.canvas.css('background', '#' + backgroundColor.substr(0, 6))
2215
+ .css('background', N2Color.hex2rgbaCSS(backgroundColor));
2216
+ }
2217
+ }
2218
+ };
2219
+
2220
+ /**
2221
+ * This event callback is responsible for the slide editor to show the apropiate background color and image.
2222
+ * @private
2223
+ */
2224
+ SmartSliderAdminSlide.prototype.__onAfterBackgroundImageChange = function () {
2225
+ smartSlider.$currentSlideElement.data('slideBackground').changeDesktop(smartSlider.generator.fill(this.background.slideBackgroundImageField.val()), '', this.background.slideBackgroundModeField.val(), this.background.slidebackgroundFocusX.val(), this.background.slidebackgroundFocusY.val());
2226
+ this.__onAfterBackgroundImageOpacityChange();
2227
+ };
2228
+
2229
+ SmartSliderAdminSlide.prototype.__onAfterBackgroundImageOpacityChange = function () {
2230
+ smartSlider.$currentSlideElement.data('slideBackground').setOpacity(this.background.slideBackgroundImageOpacity.val() / 100);
2231
+ };
2232
+
2233
+ /**
2234
+ * Warn old version IE users that the editor may fail to work in their browser.
2235
+ * @private
2236
+ */
2237
+ SmartSliderAdminSlide.prototype._warnInternetExplorerUsers = function () {
2238
+ var ie = this.__isInternetExplorer();
2239
+ if (ie && ie < 10) {
2240
+ alert(window.ss2lang.The_editor_was_tested_under_Internet_Explorer_10_Firefox_and_Chrome_Please_use_one_of_the_tested_browser);
2241
+ }
2242
+ };
2243
+
2244
+ /**
2245
+ * @returns Internet Explorer version number or false
2246
+ * @private
2247
+ */
2248
+ SmartSliderAdminSlide.prototype.__isInternetExplorer = function () {
2249
+ var myNav = navigator.userAgent.toLowerCase();
2250
+ return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;
2251
+ };
2252
+
2253
+ SmartSliderAdminSlide.prototype.getLayout = function () {
2254
+ var propertiesRaw = $('#smartslider-form').serializeArray(),
2255
+ properties = {};
2256
+
2257
+ for (var i = 0; i < propertiesRaw.length; i++) {
2258
+ var m = propertiesRaw[i].name.match(/slide\[(.*?)\]/);
2259
+ if (m) {
2260
+ properties[m[1]] = propertiesRaw[i].value;
2261
+ }
2262
+ }
2263
+ delete properties['generator'];
2264
+ delete properties['published'];
2265
+ delete properties['publishdates'];
2266
+ delete properties['record-start'];
2267
+ delete properties['record-slides'];
2268
+ delete properties['slide'];
2269
+
2270
+ properties['slide'] = smartSlider.layerManager.getData();
2271
+ return properties;
2272
+ };
2273
+
2274
+ SmartSliderAdminSlide.prototype.loadLayout = function (properties, slideDataOverwrite, layerOverwrite) {
2275
+ // we are working on references!
2276
+ var slide = properties['slide'];
2277
+ delete properties['slide'];
2278
+ if (layerOverwrite) {
2279
+ smartSlider.layerManager.loadData(slide, true);
2280
+ } else {
2281
+ smartSlider.layerManager.loadData(slide, false);
2282
+ }
2283
+ if (slideDataOverwrite) {
2284
+ for (var k in properties) {
2285
+ $('#slide' + k).val(properties[k]).trigger('change');
2286
+ }
2287
+ }
2288
+ properties['slide'] = slide;
2289
+ };
2290
+
2291
+ SmartSliderAdminSlide.prototype.createHistory = function () {
2292
+ this.slideValues = {};
2293
+ n2('#smartslider-form').find('input[id][name^="slide"], textarea[id][name^="slide"]').not('#slideslide').each($.proxy(function (i, el) {
2294
+ var $input = $(el),
2295
+ field = $input.data('field'),
2296
+ id = $input.attr('id');
2297
+ this.slideValues[id] = $input.val();
2298
+ $input.on('nextendChange', $.proxy(function () {
2299
+ var newValue = $input.val(),
2300
+ oldValue = this.slideValues[id];
2301
+ this.slideValues[id] = newValue;
2302
+ smartSlider.history.add($.proxy(function () {
2303
+ return [this, 'slideValueChange', newValue, oldValue, [$input, field]];
2304
+ }, this));
2305
+ }, this));
2306
+ }, this));
2307
+ };
2308
+
2309
+
2310
+ SmartSliderAdminSlide.prototype.history = function (method, value, other) {
2311
+ switch (method) {
2312
+ case 'slideValueChange':
2313
+ other[1].insideChange(value);
2314
+ break;
2315
+ }
2316
+ };
2317
+
2318
+ scope.SmartSliderAdminSlide = SmartSliderAdminSlide;
2319
+
2320
+ })(nextend.smartSlider, n2, window);
2321
  (function (smartSlider, $, scope, undefined) {
2322
 
2323
  var zoom = null;
2568
  this.zoom.slider('value', v);
2569
  };
2570
  })
2571
+ (nextend.smartSlider, n2, window);
2572
  (function ($, scope) {
2573
 
2574
  function NextendSmartSliderCreateSlider(groupID, ajaxUrl) {
2763
 
2764
  scope.NextendSmartSliderCreateSlider = NextendSmartSliderCreateSlider;
2765
 
2766
+ })(n2, window);
2767
  (function ($, scope) {
2768
 
2769
  function sliders(groupID, ajaxUrl) {
3220
 
3221
  scope.NextendSmartSliderManageSliders = sliders;
3222
 
3223
+ })(n2, window);
3224
  (function ($, scope) {
3225
  function slider(manager, box) {
3226
  this.selected = false;
3327
  };
3328
 
3329
  scope.NextendSmartSliderAdminSlider = slider;
3330
+ })(n2, window);
3331
  ;
3332
  (function ($, scope) {
3333
 
3425
 
3426
  scope.NextendElementPostAnimationManager = NextendElementPostAnimationManager;
3427
 
3428
+ })(n2, window);
3429
  ;
3430
  (function ($, scope) {
3431
 
3481
  scope.NextendElementBackground = NextendElementBackground;
3482
 
3483
  })(n2, window);
3484
+
3485
  (function ($, scope) {
3486
 
3487
  var STATUS = {
3711
 
3712
  scope.NextendElementLayerPicker = NextendElementLayerPicker;
3713
 
3714
+ })(n2, window);
3715
  ;
3716
  (function ($, scope) {
3717
 
3735
  scope.NextendElementSliderType = NextendElementSliderType;
3736
 
3737
  })(n2, window);
3738
+
3739
  ;
3740
  (function ($, scope) {
3741
 
3781
  scope.NextendElementSliderWidgetArea = NextendElementSliderWidgetArea;
3782
 
3783
  })(n2, window);
3784
+
3785
  "use strict";
3786
  (function ($, scope) {
3787
  function NextendElementWidgetPosition(id) {
3811
  scope.NextendElementWidgetPosition = NextendElementWidgetPosition;
3812
 
3813
  })(n2, window);
3814
+
3815
  (function (smartSlider, $, scope, undefined) {
3816
  "use strict";
3817
  function Generator() {
3838
  e.preventDefault();
3839
  this.showModal();
3840
  }, this));
3841
+ this.registerField($('#layerclass'));
3842
  this.registerField($('#slidetitle'));
3843
  this.registerField($('#slidedescription'));
3844
  this.registerField($('#slidethumbnail'));
4289
 
4290
  scope.SmartSliderAdminGenerator = Generator;
4291
 
4292
+ })(nextend.smartSlider, n2, window);
4293
  (function ($, scope, undefined) {
4294
 
4295
  function GeneratorRecords(ajaxUrl) {
4335
  };
4336
 
4337
  scope.NextendSmartSliderGeneratorRecords = GeneratorRecords;
4338
+ })(n2, window);
4339
  (function (smartSlider, $, scope, undefined) {
4340
 
4341
  function Item(item, layer, itemEditor, createPosition) {
4499
  };
4500
 
4501
  scope.NextendSmartSliderItem = Item;
4502
+ })(nextend.smartSlider, n2, window);
4503
  (function (smartSlider, $, scope, undefined) {
4504
 
4505
  function ItemManager(layerEditor) {
4689
 
4690
  scope.NextendSmartSliderItemManager = ItemManager;
4691
 
4692
+ })(nextend.smartSlider, n2, window);
4693
+ (function ($, scope, undefined) {
4694
+
4695
+ function ItemParser(item, formData) {
4696
+ this.pre = 'div#' + nextend.smartSlider.frontend.sliderElement.attr('id') + ' ';
4697
+ this.formData = formData;
4698
+ this.item = item;
4699
+
4700
+ this.fonts = [];
4701
+ this.styles = [];
4702
+
4703
+ this.needFill = [];
4704
+ this.added();
4705
+ }
4706
+
4707
+ ItemParser.prototype.getDefault = function () {
4708
+ return {};
4709
+ };
4710
+
4711
+ ItemParser.prototype.added = function () {
4712
+
4713
+ };
4714
+
4715
+ ItemParser.prototype.addedFont = function (mode, name) {
4716
+ var $input = $('#item_' + this.item.type + name);
4717
+ if ($input.length) {
4718
+ this.fonts.push({
4719
+ mode: mode,
4720
+ name: name,
4721
+ field: $input.data('field'),
4722
+ def: this.formData.values[name]
4723
+ });
4724
+ $.when(nextend.fontManager.addVisualUsage(mode, this.item.values[name], this.pre))
4725
+ .done($.proxy(function (existsFont) {
4726
+ if (!existsFont) {
4727
+ this.item.changeValue(name, '');
4728
+ }
4729
+ }, this));
4730
+ }
4731
+ };
4732
+
4733
+ ItemParser.prototype.addedStyle = function (mode, name) {
4734
+ var $input = $('#item_' + this.item.type + name);
4735
+ if ($input.length) {
4736
+ this.styles.push({
4737
+ mode: mode,
4738
+ name: name,
4739
+ field: $input.data('field'),
4740
+ def: this.formData.values[name]
4741
+ });
4742
+
4743
+ $.when(nextend.styleManager.addVisualUsage(mode, this.item.values[name], this.pre))
4744
+ .done($.proxy(function (existsStyle) {
4745
+ if (!existsStyle) {
4746
+ this.item.changeValue(name, '');
4747
+ }
4748
+ }, this));
4749
+ }
4750
+
4751
+ };
4752
+
4753
+ ItemParser.prototype.parseAll = function (data, item) {
4754
+
4755
+ for (var i = 0; i < this.fonts.length; i++) {
4756
+ data[this.fonts[i].name + 'class'] = nextend.fontManager.getClass(data[this.fonts[i].name], this.fonts[i].mode) + ' ';
4757
+ }
4758
+
4759
+ for (var i = 0; i < this.styles.length; i++) {
4760
+ data[this.styles[i].name + 'class'] = nextend.styleManager.getClass(data[this.styles[i].name], this.styles[i].mode) + ' ';
4761
+ }
4762
+
4763
+ for (var i = 0; i < this.needFill.length; i++) {
4764
+ if (typeof data[this.needFill[i]] !== 'undefined') {
4765
+ data[this.needFill[i]] = nextend.smartSlider.generator.fill(data[this.needFill[i]] + '');
4766
+ }
4767
+ }
4768
+ };
4769
+
4770
+ ItemParser.prototype.render = function (node, data) {
4771
+ return node;
4772
+ };
4773
+
4774
+ ItemParser.prototype.getName = function (data) {
4775
+ return false;
4776
+ };
4777
+
4778
+ ItemParser.prototype.resizeLayerToImage = function (item, image) {
4779
+ $("<img/>")
4780
+ .attr("src", image)
4781
+ .load(function () {
4782
+ var slideSize = item.layer.layerEditor.slideSize;
4783
+ var maxWidth = slideSize.width,
4784
+ maxHeight = slideSize.height;
4785
+
4786
+ if (this.width > 0 && this.height > 0) {
4787
+ maxWidth = parseInt(Math.min(this.width, maxWidth));
4788
+ maxHeight = parseInt(Math.min(this.height, maxHeight));
4789
+ nextend.smartSlider.history.off();
4790
+ if (slideSize.width / slideSize.height <= maxWidth / maxHeight) {
4791
+ item.layer.setProperty('width', maxWidth);
4792
+ item.layer.setProperty('height', this.height * maxWidth / this.width);
4793
+ } else {
4794
+ var width = Math.min(this.width * slideSize.height / this.height, maxWidth);
4795
+ item.layer.setProperty('width', width);
4796
+ item.layer.setProperty('height', this.height * width / this.width);
4797
+ }
4798
+ nextend.smartSlider.history.on();
4799
+ }
4800
+ });
4801
+ };
4802
+
4803
+ ItemParser.prototype.fitLayer = function (item) {
4804
+ return false;
4805
+ };
4806
+
4807
+ ItemParser.prototype.activate = function () {
4808
+ nextend.basicCSS.activate('ss3item' + this.item.type, this.item.values, {
4809
+ font: this.fonts,
4810
+ style: this.styles
4811
+ });
4812
+ }
4813
+
4814
+ ItemParser.prototype.deActivate = function () {
4815
+ nextend.basicCSS.deActivate();
4816
+ }
4817
+
4818
+ scope.NextendSmartSliderItemParser = ItemParser;
4819
+
4820
+ })(n2, window);
4821
+ (function ($, scope, undefined) {
4822
+
4823
+ function ItemParserButton() {
4824
+ NextendSmartSliderItemParser.apply(this, arguments);
4825
+ };
4826
+
4827
+ ItemParserButton.prototype = Object.create(NextendSmartSliderItemParser.prototype);
4828
+ ItemParserButton.prototype.constructor = ItemParserButton;
4829
+
4830
+ ItemParserButton.prototype.added = function () {
4831
+ this.needFill = ['content', 'url'];
4832
+ this.addedFont('link', 'font');
4833
+ this.addedStyle('button', 'style');
4834
+
4835
+ nextend.smartSlider.generator.registerField($('#item_buttoncontent'));
4836
+ nextend.smartSlider.generator.registerField($('#linkitem_buttonlink_0'));
4837
+ };
4838
+
4839
+ ItemParserButton.prototype.getName = function (data) {
4840
+ return data.content;
4841
+ };
4842
+
4843
+ ItemParserButton.prototype.parseAll = function (data) {
4844
+ var link = data.link.split('|*|');
4845
+ data.url = link[0];
4846
+ data.target = link[1];
4847
+ delete data.link;
4848
+
4849
+ if (data.fullwidth | 0) {
4850
+ data.display = 'block;';
4851
+ } else {
4852
+ data.display = 'inline-block;';
4853
+ }
4854
+
4855
+ data.extrastyle = data.nowrap | 0 ? 'white-space: nowrap;' : '';
4856
+
4857
+ NextendSmartSliderItemParser.prototype.parseAll.apply(this, arguments);
4858
+ };
4859
+
4860
+ scope.NextendSmartSliderItemParser_button = ItemParserButton;
4861
+ })(n2, window);
4862
+ (function ($, scope, undefined) {
4863
+
4864
+ function ItemParserHeading() {
4865
+ NextendSmartSliderItemParser.apply(this, arguments);
4866
+ };
4867
+
4868
+ ItemParserHeading.prototype = Object.create(NextendSmartSliderItemParser.prototype);
4869
+ ItemParserHeading.prototype.constructor = ItemParserHeading;
4870
+
4871
+ ItemParserHeading.prototype.getDefault = function () {
4872
+ return {
4873
+ link: '#|*|_self',
4874
+ font: '',
4875
+ style: ''
4876
+ }
4877
+ };
4878
+
4879
+ ItemParserHeading.prototype.added = function () {
4880
+ this.needFill = ['heading', 'url'];
4881
+
4882
+ this.addedFont('hover', 'font');
4883
+ this.addedStyle('heading', 'style');
4884
+
4885
+ nextend.smartSlider.generator.registerField($('#item_headingheading'));
4886
+ nextend.smartSlider.generator.registerField($('#linkitem_headinglink_0'));
4887
+
4888
+ };
4889
+
4890
+ ItemParserHeading.prototype.getName = function (data) {
4891
+ return data.heading;
4892
+ };
4893
+
4894
+ ItemParserHeading.prototype.parseAll = function (data) {
4895
+
4896
+ data.uid = $.fn.uid();
4897
+
4898
+ var link = data.link.split('|*|');
4899
+ data.url = link[0];
4900
+ data.target = link[1];
4901
+ delete data.link;
4902
+
4903
+
4904
+ if (data.fullwidth | 0) {
4905
+ data.display = 'block;';
4906
+ } else {
4907
+ data.display = 'inline-block;';
4908
+ }
4909
+
4910
+ data.extrastyle = data.nowrap | 0 ? 'white-space: nowrap;' : '';
4911
+
4912
+ data.heading = $('<div>' + data.heading + '</div>').text().replace(/\n/g, '<br />');
4913
+ data.priority = 2;
4914
+ data.class = '';
4915
+
4916
+
4917
+ NextendSmartSliderItemParser.prototype.parseAll.apply(this, arguments);
4918
+
4919
+ if (data['url'] == '#' || data['url'] == '') {
4920
+ data['afontclass'] = '';
4921
+ data['astyleclass'] = '';
4922
+ } else {
4923
+ data['afontclass'] = data['fontclass'];
4924
+ data['fontclass'] = '';
4925
+ data['astyleclass'] = data['styleclass'];
4926
+ data['styleclass'] = '';
4927
+ }
4928
+ };
4929
+
4930
+ ItemParserHeading.prototype.render = function (node, data) {
4931
+ if (data['url'] == '#' || data['url'] == '') {
4932
+ var a = node.find('a');
4933
+ a.parent().html(a.html());
4934
+ }
4935
+ return node;
4936
+ }
4937
+
4938
+ scope.NextendSmartSliderItemParser_heading = ItemParserHeading;
4939
+ })(n2, window);
4940
+ (function ($, scope, undefined) {
4941
+
4942
+ function ItemParserImage() {
4943
+ NextendSmartSliderItemParser.apply(this, arguments);
4944
+ };
4945
+
4946
+ ItemParserImage.prototype = Object.create(NextendSmartSliderItemParser.prototype);
4947
+ ItemParserImage.prototype.constructor = ItemParserImage;
4948
+
4949
+ ItemParserImage.prototype.getDefault = function () {
4950
+ return {
4951
+ size: '100%|*|auto',
4952
+ link: '#|*|_self',
4953
+ style: ''
4954
+ }
4955
+ };
4956
+
4957
+ ItemParserImage.prototype.added = function () {
4958
+ this.needFill = ['image', 'url'];
4959
+
4960
+ this.addedStyle('box', 'style');
4961
+
4962
+ nextend.smartSlider.generator.registerField($('#item_imageimage'));
4963
+ nextend.smartSlider.generator.registerField($('#item_imagealt'));
4964
+ nextend.smartSlider.generator.registerField($('#item_imagetitle'));
4965
+ nextend.smartSlider.generator.registerField($('#linkitem_imagelink_0'));
4966
+ };
4967
+
4968
+ ItemParserImage.prototype.getName = function (data) {
4969
+ return data.image.split('/').pop();
4970
+ };
4971
+
4972
+ ItemParserImage.prototype.parseAll = function (data, item) {
4973
+ var size = data.size.split('|*|');
4974
+ data.width = size[0];
4975
+ data.height = size[1];
4976
+ delete data.size;
4977
+
4978
+ var link = data.link.split('|*|');
4979
+ data.url = link[0];
4980
+ data.target = link[1];
4981
+ delete data.link;
4982
+
4983
+ NextendSmartSliderItemParser.prototype.parseAll.apply(this, arguments);
4984
+
4985
+ if (item && item.values.image == '$system$/images/placeholder/image.png' && data.image != item.values.image) {
4986
+ data.image = nextend.imageHelper.fixed(data.image);
4987
+ this.resizeLayerToImage(item, data.image);
4988
+ } else {
4989
+ data.image = nextend.imageHelper.fixed(data.image);
4990
+ }
4991
+
4992
+ };
4993
+
4994
+ ItemParserImage.prototype.fitLayer = function (item) {
4995
+ this.resizeLayerToImage(item, nextend.imageHelper.fixed(item.values.image));
4996
+ return true;
4997
+ };
4998
+
4999
+ ItemParserImage.prototype.render = function (node, data) {
5000
+ if (data['url'] == '#') {
5001
+ node.html(node.children('a').html());
5002
+ }
5003
+ return node;
5004
+ };
5005
+
5006
+ scope.NextendSmartSliderItemParser_image = ItemParserImage;
5007
+ })(n2, window);
5008
+
5009
+ (function ($, scope, undefined) {
5010
+
5011
+ function ItemParserText() {
5012
+ NextendSmartSliderItemParser.apply(this, arguments);
5013
+ };
5014
+
5015
+ ItemParserText.prototype = Object.create(NextendSmartSliderItemParser.prototype);
5016
+ ItemParserText.prototype.constructor = ItemParserText;
5017
+
5018
+ ItemParserText.prototype.getDefault = function () {
5019
+ return {
5020
+ contentmobile: '',
5021
+ contenttablet: '',
5022
+ font: '',
5023
+ style: ''
5024
+ }
5025
+ };
5026
+
5027
+ ItemParserText.prototype.added = function () {
5028
+ this.needFill = ['content', 'contenttablet', 'contentmobile'];
5029
+
5030
+ this.addedFont('paragraph', 'font');
5031
+ this.addedStyle('heading', 'style');
5032
+
5033
+ nextend.smartSlider.generator.registerField($('#item_textcontent'));
5034
+ nextend.smartSlider.generator.registerField($('#item_textcontenttablet'));
5035
+ nextend.smartSlider.generator.registerField($('#item_textcontentmobile'));
5036
+ };
5037
+
5038
+ ItemParserText.prototype.getName = function (data) {
5039
+ return data.content;
5040
+ };
5041
+
5042
+ ItemParserText.prototype.parseAll = function (data) {
5043
+ NextendSmartSliderItemParser.prototype.parseAll.apply(this, arguments);
5044
+
5045
+ data['p'] = _wp_Autop(data['content']);
5046
+ data['ptablet'] = _wp_Autop(data['contenttablet']);
5047
+ data['pmobile'] = _wp_Autop(data['contentmobile']);
5048
+ };
5049
+ ItemParserText.prototype.render = function (node, data) {
5050
+ if (data['contenttablet'] == '') {
5051
+ node = node.filter(':not(.n2-ss-tablet)');
5052
+ node.filter('.n2-ss-desktop').addClass('n2-ss-tablet');
5053
+ }
5054
+ if (data['contentmobile'] == '') {
5055
+ node = node.filter(':not(.n2-ss-mobile)');
5056
+ node.filter('.n2-ss-tablet, .n2-ss-desktop').last().addClass('n2-ss-mobile');
5057
+ }
5058
+
5059
+ node.find('p').addClass(data['fontclass'] + ' ' + data['styleclass']);
5060
+ node.find('a').on('click', function (e) {
5061
+ e.preventDefault();
5062
+ });
5063
+ return node;
5064
+ };
5065
+
5066
+ scope.NextendSmartSliderItemParser_text = ItemParserText;
5067
+
5068
+ function _wp_Autop(pee) {
5069
+ var preserve_linebreaks = false,
5070
+ preserve_br = false,
5071
+ blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre' +
5072
+ '|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|legend|section' +
5073
+ '|article|aside|hgroup|header|footer|nav|figure|details|menu|summary';
5074
+
5075
+ if (pee.indexOf('<object') !== -1) {
5076
+ pee = pee.replace(/<object[\s\S]+?<\/object>/g, function (a) {
5077
+ return a.replace(/[\r\n]+/g, '');
5078
+ });
5079
+ }
5080
+
5081
+ pee = pee.replace(/<[^<>]+>/g, function (a) {
5082
+ return a.replace(/[\r\n]+/g, ' ');
5083
+ });
5084
+
5085
+ // Protect pre|script tags
5086
+ if (pee.indexOf('<pre') !== -1 || pee.indexOf('<script') !== -1) {
5087
+ preserve_linebreaks = true;
5088
+ pee = pee.replace(/<(pre|script)[^>]*>[\s\S]+?<\/\1>/g, function (a) {
5089
+ return a.replace(/(\r\n|\n)/g, '<wp-line-break>');
5090
+ });
5091
+ }
5092
+
5093
+ // keep <br> tags inside captions and convert line breaks
5094
+ if (pee.indexOf('[caption') !== -1) {
5095
+ preserve_br = true;
5096
+ pee = pee.replace(/\[caption[\s\S]+?\[\/caption\]/g, function (a) {
5097
+ // keep existing <br>
5098
+ a = a.replace(/<br([^>]*)>/g, '<wp-temp-br$1>');
5099
+ // no line breaks inside HTML tags
5100
+ a = a.replace(/<[a-zA-Z0-9]+( [^<>]+)?>/g, function (b) {
5101
+ return b.replace(/[\r\n\t]+/, ' ');
5102
+ });
5103
+ // convert remaining line breaks to <br>
5104
+ return a.replace(/\s*\n\s*/g, '<wp-temp-br />');
5105
+ });
5106
+ }
5107
+
5108
+ pee = pee + '\n\n';
5109
+ pee = pee.replace(/<br \/>\s*<br \/>/gi, '\n\n');
5110
+ pee = pee.replace(new RegExp('(<(?:' + blocklist + ')(?: [^>]*)?>)', 'gi'), '\n$1');
5111
+ pee = pee.replace(new RegExp('(</(?:' + blocklist + ')>)', 'gi'), '$1\n\n');
5112
+ pee = pee.replace(/<hr( [^>]*)?>/gi, '<hr$1>\n\n'); // hr is self closing block element
5113
+ pee = pee.replace(/\r\n|\r/g, '\n');
5114
+ pee = pee.replace(/\n\s*\n+/g, '\n\n');
5115
+ pee = pee.replace(/([\s\S]+?)\n\n/g, '<p>$1</p>\n');
5116
+ pee = pee.replace(/<p>\s*?<\/p>/gi, '');
5117
+ pee = pee.replace(new RegExp('<p>\\s*(</?(?:' + blocklist + ')(?: [^>]*)?>)\\s*</p>', 'gi'), '$1');
5118
+ pee = pee.replace(/<p>(<li.+?)<\/p>/gi, '$1');
5119
+ pee = pee.replace(/<p>\s*<blockquote([^>]*)>/gi, '<blockquote$1><p>');
5120
+ pee = pee.replace(/<\/blockquote>\s*<\/p>/gi, '</p></blockquote>');
5121
+ pee = pee.replace(new RegExp('<p>\\s*(</?(?:' + blocklist + ')(?: [^>]*)?>)', 'gi'), '$1');
5122
+ pee = pee.replace(new RegExp('(</?(?:' + blocklist + ')(?: [^>]*)?>)\\s*</p>', 'gi'), '$1');
5123
+ pee = pee.replace(/\s*\n/gi, '<br />\n');
5124
+ pee = pee.replace(new RegExp('(</?(?:' + blocklist + ')[^>]*>)\\s*<br />', 'gi'), '$1');
5125
+ pee = pee.replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)>)/gi, '$1');
5126
+ pee = pee.replace(/(?:<p>|<br ?\/?>)*\s*\[caption([^\[]+)\[\/caption\]\s*(?:<\/p>|<br ?\/?>)*/gi, '[caption$1[/caption]');
5127
+
5128
+ pee = pee.replace(/(<(?:div|th|td|form|fieldset|dd)[^>]*>)(.*?)<\/p>/g, function (a, b, c) {
5129
+ if (c.match(/<p( [^>]*)?>/)) {
5130
+ return a;
5131
+ }
5132
+
5133
+ return b + '<p>' + c + '</p>';
5134
+ });
5135
+
5136
+ // put back the line breaks in pre|script
5137
+ if (preserve_linebreaks) {
5138
+ pee = pee.replace(/<wp-line-break>/g, '\n');
5139
+ }
5140
+
5141
+ if (preserve_br) {
5142
+ pee = pee.replace(/<wp-temp-br([^>]*)>/g, '<br$1>');
5143
+ }
5144
+
5145
+ return pee;
5146
+ };
5147
+ })(n2, window);
5148
  (function ($, scope, undefined) {
5149
 
5150
  function ItemParserVimeo() {
5203
  };
5204
 
5205
  scope.NextendSmartSliderItemParser_vimeo = ItemParserVimeo;
5206
+ })(n2, window);
5207
+ (function ($, scope, undefined) {
5208
+
5209
+ function ItemParserYouTube() {
5210
+ NextendSmartSliderItemParser.apply(this, arguments);
5211
+ };
5212
+
5213
+ ItemParserYouTube.prototype = Object.create(NextendSmartSliderItemParser.prototype);
5214
+ ItemParserYouTube.prototype.constructor = ItemParserYouTube;
5215
+
5216
+ ItemParserYouTube.prototype.added = function () {
5217
+ this.needFill = ['youtubeurl', 'image', 'start'];
5218
+
5219
+ nextend.smartSlider.generator.registerField($('#item_youtubeyoutubeurl'));
5220
+ nextend.smartSlider.generator.registerField($('#item_youtubeimage'));
5221
+ nextend.smartSlider.generator.registerField($('#item_youtubestart'));
5222
+ };
5223
+
5224
+ ItemParserYouTube.prototype.getName = function (data) {
5225
+ return data.youtubeurl;
5226
+ };
5227
+
5228
+ ItemParserYouTube.prototype.parseAll = function (data, item) {
5229
+
5230
+ var youTubeChanged = item.values.youtubeurl != data.youtubeurl;
5231
+
5232
+ NextendSmartSliderItemParser.prototype.parseAll.apply(this, arguments);
5233
+
5234
+ if (data.image == '') {
5235
+ data.image = '$system$/images/placeholder/video.png';
5236
+ }
5237
+
5238
+ data.image = nextend.imageHelper.fixed(data.image);
5239
+
5240
+ if (youTubeChanged) {
5241
+ var youtubeRegexp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,
5242
+ youtubeMatch = data.youtubeurl.match(youtubeRegexp);
5243
+
5244
+ if (youtubeMatch) {
5245
+ NextendAjaxHelper.getJSON('https://www.googleapis.com/youtube/v3/videos?id=' + encodeURI(youtubeMatch[2]) + '&part=snippet&key=AIzaSyC3AolfvPAPlJs-2FgyPJdEEKS6nbPHdSM').done($.proxy(function (_data) {
5246
+ if (_data.items.length) {
5247
+
5248
+ var thumbnails = _data.items[0].snippet.thumbnails,
5249
+ thumbnail = thumbnails.maxres || thumbnails.standard || thumbnails.high || thumbnails.medium || thumbnails.default,
5250
+ url = thumbnail.url;
5251
+ if (item.values.youtubeurl == '{video_url}') {
5252
+ url = url.replace(youtubeMatch[2], '{video_id}');
5253
+ }
5254
+ $('#item_youtubeimage').val(url).trigger('change');
5255
+ }
5256
+ }, this)).fail(function (data) {
5257
+ nextend.notificationCenter.error(data.error.errors[0].message);
5258
+ });
5259
+ } else {
5260
+ nextend.notificationCenter.error('The provided URL does not match any known YouTube url or code!');
5261
+ }
5262
+ }
5263
+ };
5264
+
5265
+ ItemParserYouTube.prototype.fitLayer = function (item) {
5266
+ return true;
5267
+ };
5268
+
5269
+ ItemParserYouTube.prototype.render = function (node, data) {
5270
+ if (!parseInt(data.playbutton)) {
5271
+ node.find('.n2-video-play').remove();
5272
+ }
5273
+ return node;
5274
+ }
5275
+
5276
+ scope.NextendSmartSliderItemParser_youtube = ItemParserYouTube;
5277
+ })(n2, window);
5278
  (function (smartSlider, $, scope, undefined) {
5279
  function LayerDataStorage() {
5280
  this.property = {};
5384
  };
5385
 
5386
  scope.NextendSmartSliderLayerDataStorageAbtract = LayerDataStorage;
5387
+ })(nextend.smartSlider, n2, window);
5388
  (function (smartSlider, $, scope, undefined) {
5389
 
5390
  var connectedSortables = $();
5651
  };
5652
 
5653
  scope.NextendSmartSliderLayerContainerAbstract = LayerContainerAbstract;
5654
+ })(nextend.smartSlider, n2, window);
5655
  (function (smartSlider, $, scope, undefined) {
5656
 
5657
  var highlighted = false,
5970
 
5971
  this.createRow();
5972
 
 
 
 
 
 
 
 
5973
  this.itemEditor = itemEditor;
5974
 
5975
  this.initItems();
6027
  }, this)
6028
  });
6029
 
6030
+ var status = layer.data('status');
6031
+ if (status !== null && typeof status != 'undefined') {
6032
+ this.changeStatus(status);
6033
+ } else {
6034
+ this.changeStatus(LAYER_STATUS.NORMAL);
6035
+ }
6036
+
6037
  setTimeout($.proxy(function () {
6038
  this._resize(true);
6039
  if (this.status != LAYER_STATUS.HIDDEN) {
6097
 
6098
  $('<a href="#" class="n2-ss-sc-hide n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-eye"></i></a>').appendTo(status).on('click', $.proxy(function (e) {
6099
  e.preventDefault();
6100
+ if (this.status == LAYER_STATUS.HIDDEN || this.status == LAYER_STATUS.LOCKED) {
6101
  this.setStatusNormal();
6102
  } else {
6103
  this.changeStatus(LAYER_STATUS.HIDDEN);
7882
 
7883
  scope.NextendSmartSliderLayer = Layer;
7884
 
7885
+ })(nextend.smartSlider, n2, window);
7886
  (function (smartSlider, $, scope, undefined) {
7887
  var preventActivation = false;
7888
 
8554
  }
8555
 
8556
  scope.NextendSmartSliderLayerGroup = LayerGroup;
8557
+ })(nextend.smartSlider, n2, window);
8558
  (function (smartSlider, $, scope, undefined) {
8559
 
8560
  function LayersUserInterface() {
8695
  }
8696
 
8697
  window.NextendSmartSliderAdminLayersUserInterface = LayersUserInterface;
8698
+ })(nextend.smartSlider, n2, window);
8699
  (function (smartSlider, $, scope, undefined) {
8700
 
8701
  function MainLayerGroup(layerEditor) {
8738
 
8739
  scope.NextendSmartSliderMainLayerGroup = MainLayerGroup;
8740
 
8741
+ })(nextend.smartSlider, n2, window);
8742
  (function (smartSlider, $, scope, undefined) {
8743
  var layerClass = '.n2-ss-layer',
8744
  keys = {
library/media/dist/smartslider-backend.min.js CHANGED
@@ -1,7 +1,7 @@
1
- function strip_tags(e,t){t=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");var i=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,s=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;return e.replace(s,"").replace(i,function(e,i){return t.indexOf("<"+i.toLowerCase()+">")>-1?e:""})}var NextendSmartSliderAdminStorage=function(){this.timelineManager=null,this.timelineControl=null,this.slide=null,this.frontend=null,this.generator=null,this.layerManager=null,this.history=null,this.oneSecWidth=200,this.oneSecMs=1e3,this.fps=20,this.pxToFrame=this.oneSecWidth/this.fps,this.$currentSlideElement=null};NextendSmartSliderAdminStorage.prototype.durationToOffsetX=function(e){return e*this.oneSecWidth},NextendSmartSliderAdminStorage.prototype.offsetXToDuration=function(e){return e/this.oneSecWidth},NextendSmartSliderAdminStorage.prototype.normalizeOffsetX=function(e){return Math.round(e/this.pxToFrame)*this.pxToFrame},NextendSmartSliderAdminStorage.prototype.startEditor=function(e,t,i,s,n,r){return null===this.slide&&window[e].started(function(){new SmartSliderAdminSlide(e,t,i,s,n,r)}),this.slide},window.nextend.pre="div#n2-ss-0 ",window.nextend.smartSlider=new NextendSmartSliderAdminStorage,function(e,t,i){function s(){this.type="backgroundanimation",NextendVisualManagerMultipleSelection.prototype.constructor.apply(this,arguments)}s.prototype=Object.create(NextendVisualManagerMultipleSelection.prototype),s.prototype.constructor=s,s.prototype.loadDefaults=function(){NextendVisualManagerMultipleSelection.prototype.loadDefaults.apply(this,arguments),this.type="backgroundanimation",this.labels={visual:"Background animation",visuals:"Background animations"}},s.prototype.initController=function(){return new NextendBackgroundAnimationEditorController},s.prototype.createVisual=function(e,t){return new NextendVisualWithSetRowMultipleSelection(e,t,this)},i.NextendBackgroundAnimationManager=s}(nextend.smartSlider,n2,window),function(e,t){function i(){this.parameters={shiftedBackgroundAnimation:0},NextendVisualEditorController.prototype.constructor.call(this,!1),this.bgAnimationElement=e(".n2-bg-animation"),this.slides=e(".n2-bg-animation-slide"),this.bgImages=e(".n2-bg-animation-slide-bg"),NextendTween.set(this.bgImages,{rotationZ:1e-4}),this.directionTab=new NextendElementRadio("n2-background-animation-preview-tabs",["0","1"]),this.directionTab.element.on("nextendChange.n2-editor",e.proxy(this.directionTabChanged,this)),nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d||nextend.notificationCenter.error("Background animations are not available in your browser. It works if the <i>transform-style: preserve-3d</i> feature available. ")}i.prototype=Object.create(NextendVisualEditorController.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualEditorController.prototype.loadDefaults.call(this),this.type="backgroundanimation",this.current=0,this.animationProperties=!1,this.direction=0},i.prototype.get=function(){return null},i.prototype.load=function(e,t,i,s){this.lightbox.addClass("n2-editor-loaded")},i.prototype.setTabs=function(e){},i.prototype.directionTabChanged=function(){this.direction=parseInt(this.directionTab.element.val())},i.prototype.start=function(){this.animationProperties&&(this.timeline?this.timeline.play():this.next())},i.prototype.pause=function(){this.timeline&&this.timeline.pause()},i.prototype.next=function(){this.timeline=new NextendTimeline({paused:!0,onComplete:e.proxy(this.ended,this)});var t=this.bgImages.eq(this.current),i=this.bgImages.eq(1-this.current);nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d?(this.currentAnimation=new window["NextendSmartSliderBackgroundAnimation"+this.animationProperties.type](this,t,i,this.animationProperties,1,this.direction),this.slides.eq(this.current).css("zIndex",2),this.slides.eq(1-this.current).css("zIndex",3),this.timeline.to(this.slides.eq(this.current),.5,{opacity:0},this.currentAnimation.getExtraDelay()),this.timeline.to(this.slides.eq(1-this.current),.5,{opacity:1},this.currentAnimation.getExtraDelay()),this.currentAnimation.postSetup()):(this.timeline.to(this.slides.eq(this.current),1.5,{opacity:0},0),this.timeline.to(this.slides.eq(1-this.current),1.5,{opacity:1},0)),this.current=1-this.current,this.timeline.play()},i.prototype.ended=function(){this.currentAnimation&&this.currentAnimation.ended(),this.next()},i.prototype.setAnimationProperties=function(e){var t=this.animationProperties;this.animationProperties=e,t||this.next()},t.NextendBackgroundAnimationEditorController=i}(n2,window),Array.prototype.filter||(Array.prototype.filter=function(e){"use strict";if(void 0===this||null===this)throw new TypeError;var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var s=[],n=arguments[1],r=0;i>r;r++)if(r in t){var a=t[r];e.call(n,a,r,t)&&s.push(a)}return s}),function(e,t,i){function s(){this.$input=e('<input type="text" name="name" />').on({mouseup:function(e){e.stopPropagation()},keyup:e.proxy(function(e){27==e.keyCode&&this.cancel()},this),blur:e.proxy(this.save,this)}),this.$form=e('<form class="n2-inline-form"></form>').append(this.$input).on("submit",e.proxy(this.save,this))}s.prototype.injectNode=function(e,t){this.$input.val(t),e.append(this.$form),this.$input.focus()},s.prototype.save=function(e){e.preventDefault(),this.$input.trigger("valueChanged",[this.$input.val()]),this.$input.off("blur"),this.destroy()},s.prototype.cancel=function(){this.$input.trigger("cancel"),this.destroy()},s.prototype.destroy=function(){this.$input.off("blur"),this.$form.remove()},t.NextendSmartSliderAdminInlineField=s}(n2,window),function(e,t,i,s){"use strict";function n(){this.historyStates=50,this.isEnabled=0!=this.historyStates,this.historyAddAllowed=!0,this.isBatched=!1,this.index=-1,this.history=[],this.preventUndoRedo=!1,this.undoBTN=t("#n2-ss-undo").on("click",t.proxy(this.undo,this)),this.redoBTN=t("#n2-ss-redo").on("click",t.proxy(this.redo,this)),this.updateUI()}n.prototype.updateUI=function(){0==this.index||0==this.history.length?this.undoBTN.removeClass("n2-active"):this.undoBTN.addClass("n2-active"),-1==this.index||this.index>=this.history.length?this.redoBTN.removeClass("n2-active"):this.redoBTN.addClass("n2-active")},n.prototype.throttleUndoRedo=function(){return this.preventUndoRedo?!0:(this.preventUndoRedo=!0,setTimeout(t.proxy(function(){this.preventUndoRedo=!1},this),100),!1)},n.prototype.add=function(e){if(this.isEnabled&&this.historyAddAllowed){-1!=this.index&&this.history.splice(this.index,this.history.length),this.index=-1;var i=e();return this.isBatched?this.history[this.history.length-1].push(i):(this.history.push([i]),this.isBatched=!0,setTimeout(t.proxy(function(){this.isBatched=!1},this),100)),this.history.length>this.historyStates&&this.history.unshift(),this.updateUI(),i}},n.prototype.off=function(){this.historyAddAllowed=!1},n.prototype.on=function(){this.historyAddAllowed=!0},n.prototype.undo=function(e){if(e&&e.preventDefault(),this.throttleUndoRedo())return!1;if(this.off(),-1==this.index?this.index=this.history.length-1:this.index--,this.index>=0)for(var t=this.history[this.index],i=t.length-1;i>=0;i--){var s=t[i];s[0].history(s[1],s[3],s[4],s)}else this.index=0;this.on(),this.updateUI()},n.prototype.redo=function(e){if(e&&e.preventDefault(),this.throttleUndoRedo())return!1;if(this.off(),-1!=this.index&&this.index<this.history.length){var t=this.history[this.index];this.index++;for(var i=0;i<t.length;i++){var s=t[i];s[0].history(s[1],s[2],s[4],s)}}this.on(),this.updateUI()},n.prototype.changeFuture=function(e,t){for(var i=0;i<this.history.length;i++)for(var s=0;s<this.history[i].length;s++){this.history[i][s][0]===e&&(this.history[i][s][0]=t);for(var n=2;n<this.history[i][s].length;n++)for(var r=0;r<this.history[i][s][n].length;r++)this.history[i][s][n][r]===e&&(this.history[i][s][n][r]=t)}},n2(window).ready(function(){e.history=new n})}(nextend.smartSlider,n2,window),function(e,t,i){function s(t){var i=e("#n2-quick-slides-edit");i.length<1||(this.ajaxUrl=t,i.on("click",e.proxy(this.openEdit,this)))}s.prototype.openEdit=function(t){t.preventDefault();var i=e("#n2-ss-slides .n2-box-slide"),s=this;this.modal=new NextendModal({zero:{fit:!0,fitX:!1,overflow:"auto",size:[1200,700],title:n2_("Quick Edit - Slides"),back:!1,close:!0,content:'<form class="n2-form"><table></table></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Save")+"</a>"],fn:{show:function(){var t=this.controls.find(".n2-button-green"),n=this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),t.trigger("click")}),r=n.find("table");i.each(e.proxy(function(t,i){var n=e(i),a=e("<tr />").appendTo(r),o=n.data("slideid");a.append(e("<td />").append('<img src="'+n.data("image")+'" style="width:100px;"/>')),a.append(e("<td />").append(s.createInput("Name","title-"+o,n.data("title"),"width: 240px;"))),a.append(e("<td />").append(s.createTextarea("Description","description-"+o,n.data("description"),"width: 330px;height:24px;")));var l=n.data("link").split("|*|");a.append(e("<td />").append(s.createLink("Link","link-"+o,l[0],"width: 180px;"))),a.append(e("<td />").append(s.createTarget("Target","target-"+o,l.length>1?l[1]:"_self",""))),new NextendElementUrl("link-"+o,nextend.NextendElementUrlParams)},this)),t.on("click",e.proxy(function(t){var n={};i.each(e.proxy(function(t,i){var s=e(i),r=s.data("slideid"),a=e("#title-"+r).val(),o=e("#description-"+r).val(),l=e("#link-"+r).val()+"|*|"+e("#target-"+r).val();a==s.data("title")&&o==s.data("description")&&l==s.data("link")||(n[r]={name:a,description:o,link:l})},this)),jQuery.isEmptyObject(n)?this.hide(t):(this.hide(t),NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(s.ajaxUrl),data:{changed:Base64.encode(JSON.stringify(n))},dataType:"json"}).done(e.proxy(function(t){var i=t.data;for(var s in i){var n=e('.n2-box-slide[data-slideid="'+s+'"]');n.find(".n2-box-placeholder a.n2-h4").html(i[s].title),n.attr("data-title",i[s].rawTitle),n.data("title",i[s].rawTitle),n.attr("data-description",i[s].rawDescription),n.data("description",i[s].rawDescription),n.attr("data-link",i[s].rawLink),n.data("link",i[s].rawLink)}},this)))},this))}}}}),this.modal.setCustomClass("n2-ss-quick-slides-edit-modal"),this.modal.show()},s.prototype.createInput=function(t,i,s){var n="";4==arguments.length&&(n=arguments[3]);var r=e('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+t+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-text n2-border-radius"><input type="text" id="'+i+'" class="n2-h5" autocomplete="off" style="'+n+'"></div></div></div></div>');return r.find("input").val(s),r},s.prototype.createTextarea=function(t,i,s){var n="";4==arguments.length&&(n=arguments[3]);var r=e('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+t+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-textarea n2-border-radius"><textarea id="'+i+'" class="n2-h5" autocomplete="off" style="resize:y;'+n+'"></textarea></div></div></div></div>');return r.find("textarea").val(s),r},s.prototype.createLink=function(t,i,s){var n="";4==arguments.length&&(n=arguments[3]);var r=e('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+t+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-text n2-border-radius"><input type="text" id="'+i+'" class="n2-h5" autocomplete="off" style="'+n+'"><a href="#" class="n2-form-element-clear"><i class="n2-i n2-it n2-i-empty n2-i-grey-opacity"></i></a><a id="'+i+'_button" class="n2-form-element-button n2-h5 n2-uc" href="#">Link</a></div></div></div></div>');return r.find("input").val(s),r},s.prototype.createTarget=function(t,i,s){var n="";4==arguments.length&&(n=arguments[3]);var r=e('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+t+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-list"><select id="'+i+'" autocomplete="off" style="'+n+'"><option value="_self">Self</option><option value="_blank">Blank</option></select</div></div></div></div>');return r.find("select").val(s),r},t.NextendSmartSliderQuickSlides=s}(n2,window),function(e,t,i){function s(t){this.showGuides=1,this.guides=[],this.ratios={w:1,h:1},this.container=e('<div class="n2-ruler-container" />').appendTo("#smartslider-adjust-height .n2-ss-slider-outer-container"),this.scale=10,this.vertical=e('<div class="n2-ruler n2-ruler-vertical unselectable"></div>').appendTo(".n2-ss-slider-real-container"),this.horizontal=e('<div class="n2-ruler n2-ruler-horizontal unselectable"></div>').appendTo(this.container),this.verticalSpans=e(),this.horizontalSpans=e(),this.onResize(),nextend.smartSlider.frontend.sliderElement.on("SliderResize",e.proxy(this.onSliderResize,this)),e(window).on("resize",e.proxy(this.onResize,this)),this.positionDisplay=e('<div class="n2 n2-ss-position-display"/>').appendTo("body"),this.horizontal.on("mousedown",e.proxy(function(e){this.showGuides&&new r(this,this.horizontal,this.ratios.w,e)},this)),this.vertical.on("mousedown",e.proxy(function(e){this.showGuides&&new a(this,this.vertical,this.ratios.h,e)},this));try{t=e.extend({vertical:[],horizontal:[]},JSON.parse(Base64.decode(t)));for(var i=0;i<t.horizontal.length;i++){var s=new r(this,this.horizontal,this.ratios.w);s.setPosition(t.horizontal[i])}for(var i=0;i<t.vertical.length;i++){var s=new a(this,this.vertical,this.ratios.h);s.setPosition(t.vertical[i])}}catch(n){}nextend.ruler=this,this.measureToolVertical(),this.measureToolHorizontal()}function n(t,i,s,n){this.ruler=t,this.container=i,this.position=0,this.ratio=s,this.guide=e('<div class="n2-ruler-guide"><div class="n2-ruler-guide-border"></div><div class="n2-ruler-guide-handle"></div></div>').appendTo(i).on("mousedown",e.proxy(function(e){e.preventDefault(),e.stopPropagation(),nextend.smartSlider.layerManager.settings["n2-ss-lock-guides"]||this["delete"]()},this)),this.ruler.addGuide(this),n&&this.create(n)}function r(){n.prototype.constructor.apply(this,arguments)}function a(){n.prototype.constructor.apply(this,arguments)}s.prototype.addGuide=function(e){this.guides.push(e)},s.prototype.removeGuide=function(t){this.guides.splice(e.inArray(t,this.guides),1)},s.prototype.clearGuides=function(){for(var e=this.guides.length-1;e>=0;e--)this.guides[e]["delete"]()},s.prototype.onSliderResize=function(e,t){this.ratios=t;for(var i=0;i<this.guides.length;i++)this.guides[i].setRatio(t.w,t.h);this.onResize()},s.prototype.onResize=function(){var t=nextend.smartSlider.frontend.responsive.responsiveDimensions,i=Math.max(t.slider.width,e("#n2-tab-smartslider-editor").outerWidth(!0)-40),s=Math.max(t.slider.height,e("#n2-tab-smartslider-editor").outerHeight(!0));this.container.css({width:i+40,height:s+40});for(var n=this.horizontalSpans.length-3;n<i/this.scale;n++){var r=e("<span />").appendTo(this.horizontal);n%10==0?r.addClass("n2-ss-ruler-mark-large").append("<span>"+n/10*100+"</span>"):n%2==0&&r.addClass("n2-ss-ruler-mark-medium"),this.horizontalSpans=this.horizontalSpans.add(r)}for(var n=this.verticalSpans.length-3;n<s/this.scale;n++){var r=e("<span />").appendTo(this.vertical);n%10==0?r.addClass("n2-ss-ruler-mark-large").append("<span>"+n/10*100+"</span>"):n%2==0&&r.addClass("n2-ss-ruler-mark-medium"),this.verticalSpans=this.verticalSpans.add(r)}},s.prototype.toArray=function(){for(var e={horizontal:[],vertical:[]},t=0;t<this.guides.length;t++)this.guides[t]instanceof r?e.horizontal.push(this.guides[t].position):this.guides[t]instanceof a&&e.vertical.push(this.guides[t].position);return e},s.prototype.measureToolVertical=function(){var t=e('<div class="n2-ruler-guide" style="z-index:1;"><div class="n2-ruler-guide-border" style="border-color: #f00;"></div></div>').css("display","none").appendTo(this.vertical),i=!1,s=e.proxy(function(){i||(i=!0,t.css("display",""),this.positionDisplay.addClass("n2-active"))},this),n=e.proxy(function(){i&&(i=!1,t.css("display","none"),this.positionDisplay.removeClass("n2-active"))},this);this.vertical.on({mouseenter:e.proxy(function(i){if(this.showGuides){var r=0,a=Math.round(this.vertical.offset().top);s(),this.vertical.on("mousemove.n2-ruler-measure-tool",e.proxy(function(i){if(e(i.target).hasClass("n2-ruler-guide-border")&&e(i.target).parent()[0]!=t[0])n();else if(s(),r!=i.pageY){var o=i.pageY-a;t.css("top",o),this.positionDisplay.html(o-40+"px").css({left:i.pageX+10,top:i.pageY+10}),r=i.pageY}},this))}},this),mouseleave:e.proxy(function(){this.vertical.off(".n2-ruler-measure-tool"),n()},this)})},s.prototype.measureToolHorizontal=function(){var t=e('<div class="n2-ruler-guide" style="z-index:1;"><div class="n2-ruler-guide-border" style="border-color: #f00;"></div></div>').css("display","none").appendTo(this.horizontal),i=!1,s=e.proxy(function(){i||(i=!0,t.css("display",""),this.positionDisplay.addClass("n2-active"))},this),n=e.proxy(function(){i&&(i=!1,t.css("display","none"),this.positionDisplay.removeClass("n2-active"))},this);this.horizontal.on({mouseenter:e.proxy(function(i){if(this.showGuides){var r=0,a=Math.round(this.horizontal.offset().left);s(),this.horizontal.on("mousemove.n2-ruler-measure-tool",e.proxy(function(i){if(e(i.target).hasClass("n2-ruler-guide-border")&&e(i.target).parent()[0]!=t[0])n();else if(s(),r!=i.pageX){var o=Math.max(i.pageX-a,40);t.css("left",o),this.positionDisplay.html(o-40+"px").css({left:i.pageX+10,top:i.pageY+10}),r=i.pageX}},this))}},this),mouseleave:e.proxy(function(){this.horizontal.off(".n2-ruler-measure-tool"),n()},this)})},t.NextendSmartSliderRuler=s,n.prototype._position=function(e,t){return Math.max(0,e)},n.prototype.setPosition=function(e){this.position=e,this.refresh()},n.prototype.refresh=function(){this.positionRender(this.position)},n.prototype["delete"]=function(){this.ruler.removeGuide(this),this.guide.remove()},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.create=function(e){var t=Math.round(this.container.offset().left)+40;this.position=this._position((e.pageX-t)/this.ratio,e),this.positionRender(this.position)},r.prototype.rawPositionRender=function(e){this.guide.css("left",Math.max(0,e)+40)},r.prototype.positionRender=function(e){this.guide.css("left",Math.max(0,e)*this.ratio+40)},r.prototype.setRatio=function(e,t){this.ratio=t,this.refresh()},a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype.create=function(e){var t=Math.round(this.container.offset().top)+40;this.position=this._position((e.pageY-t)/this.ratio,e),this.positionRender(this.position)},a.prototype.rawPositionRender=function(e){this.guide.css("top",Math.max(0,e)+40)},a.prototype.positionRender=function(e){this.guide.css("top",Math.max(0,e)*this.ratio+40)},a.prototype.setRatio=function(e,t){this.ratio=e,this.refresh()}}(n2,window),function(e,t,i){function s(t,i,s,r,a,o){this.quickPostModal=null,this.quickVideoModal=null,this.parameters=s,this.slides=[],this.ajaxUrl=t,this.contentAjaxUrl=i,this.slidesPanel=e("#n2-ss-slides-container"),this.slidesContainer=this.slidesPanel.find(".n2-ss-slides-container"),this.initMenu(),this.initSlidesOrderable();for(var l=this.slidesContainer.find(".n2-box-slide"),d=0;d<l.length;d++)this.slides.push(new n(this,l.eq(d)));if(e("html").attr("data-slides",this.slides.length),e(".n2-add-quick-image, .n2-box-slide-dummy").on("click",e.proxy(this.addQuickImage,this)),e(".n2-add-quick-video").on("click",e.proxy(this.addQuickVideo,this)),e(".n2-add-quick-post").on("click",e.proxy(this.addQuickPost,this)),this.initBulk(),!r){var h=[];this.slidesContainer.fileupload({url:a,pasteZone:!1,dataType:"json",paramName:"image",dropZone:e("undefined"==typeof nextend.smartSlider?document:".n2-ss-slides-outer-container"),add:e.proxy(function(e,t){t.formData={path:"/"+o},t.submit()},this),done:e.proxy(function(e,t){var i=t.result;i.data&&i.data.name?h.push({title:i.data.name,description:"",image:i.data.url}):NextendAjaxHelper.notification(i)},this),fail:e.proxy(function(e,t){NextendAjaxHelper.notification(t.jqXHR.responseJSON)},this),start:function(){NextendAjaxHelper.startLoading()},stop:e.proxy(function(){h.length?this._addQuickImages(h):setTimeout(function(){NextendAjaxHelper.stopLoading()},100),h=[]},this)});var p=null;this.slidesContainer.on("dragover",e.proxy(function(t){null!==p?(clearTimeout(p),p=null):this.slidesContainer.addClass("n2-drag-over"),p=setTimeout(e.proxy(function(){this.slidesContainer.removeClass("n2-drag-over"),p=null},this),400)},this))}}function n(t,i){this.selected=!1,this.manager=t,this.box=i.data("slide",this).addClass("n2-clickable"),this.box.on("mouseenter",e.proxy(function(){this.manager.showMenu(this)},this)).on("mouseleave",e.proxy(function(){this.manager.hideMenu()},this)).on("click.n2-slide",e.proxy(this.goToEdit,this)),this.publishElement=this.box.find(".n2-slide-published").on("click",e.proxy(this.switchPublished,this)),this.box.find(".n2-ss-box-select").on("click",e.proxy(function(e){e.stopPropagation(),e.preventDefault(),this.invertSelection()},this))}s.prototype.changed=function(){},s.prototype.initSlidesOrderable=function(){this.slidesContainer.sortable({helper:"clone",forcePlaceholderSize:!1,tolerance:"pointer",items:".n2-box-slide",start:function(e,t){t.item.show()},stop:e.proxy(this.saveSlideOrder,this),placeholder:"n2-box-sortable-placeholder n2-box-sortable-placeholder-small",distance:10})},s.prototype.saveSlideOrder=function(t){for(var i=this.slidesContainer.find(".n2-box-slide"),s=[],n=[],r=[],a=0;a<i.length;a++){var o=i.eq(a).data("slide");s.push(o),n.push(o.getId())}for(var a=0;a<this.slides.length;a++)r.push(this.slides[a].getId());if(JSON.stringify(r)!=JSON.stringify(n)){e(window).triggerHandler("SmartSliderSidebarSlidesOrderChanged");var l={nextendcontroller:"slides",nextendaction:"order"};NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,l),data:{slideorder:n}}),this.slides=s,this.changed()}},s.prototype.initSlides=function(){for(var t=(this.slides.length,this.slidesContainer.find(".n2-box-slide")),i=[],s=0;s<t.length;s++){var n=t.eq(s).data("slide");i.push(n)}this.slides=i,this.changed(),e(window).triggerHandler("SmartSliderSidebarSlidesChanged"),e("html").attr("data-slides",this.slides.length)},s.prototype.unsetFirst=function(){for(var e=0;e<this.slides.length;e++)this.slides[e].unsetFirst();this.changed()},s.prototype.addQuickImage=function(t){t.preventDefault(),nextend.imageHelper.openMultipleLightbox(e.proxy(this._addQuickImages,this))},s.prototype.addBoxes=function(t){t.insertBefore(this.slidesContainer.find(".n2-clear")),t.addClass("n2-ss-box-just-added").each(e.proxy(function(t,i){new n(this,e(i))},this)),this.initSlides(),setTimeout(function(){t.removeClass("n2-ss-box-just-added")},200)},s.prototype._addQuickImages=function(t){NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickImages"}),data:{images:Base64.encode(JSON.stringify(t))}}).done(e.proxy(function(t){this.addBoxes(e(t.data))},this))},s.prototype.addQuickVideo=function(t){t.preventDefault();var i=this;this.quickVideoModal||(this.quickVideoModal=new NextendModal({zero:{size:[500,350],title:n2_("Add video"),back:!1,close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Add video")+"</a>"],fn:{show:function(){var t=this.controls.find(".n2-button"),s=(this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),t.trigger("click")}).append(this.createInput(n2_("Video url"),"n2-slide-video-url","width: 446px;")),this.content.find("#n2-slide-video-url").focus());this.content.append(this.createHeading(n2_("Examples"))),this.content.append(this.createTable([["YouTube","https://www.youtube.com/watch?v=MKmIwHAFjSU"],["Vimeo","https://vimeo.com/144598279"]],["",""])),t.on("click",e.proxy(e.proxy(function(t){t.preventDefault();var n=s.val(),r=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,a=n.match(r),o=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,l=n.match(o),d=n.match(/\.(mp4|ogv|ogg|webm)/i);a?NextendAjaxHelper.getJSON("https://www.googleapis.com/youtube/v3/videos?id="+encodeURI(a[2])+"&part=snippet&key=AIzaSyC3AolfvPAPlJs-2FgyPJdEEKS6nbPHdSM").done(e.proxy(function(e){if(e.items.length){var t=e.items[0].snippet,s=e.items[0].snippet.thumbnails,r=s.maxres||s.standard||s.high||s.medium||s["default"];i._addQuickVideo(this,{type:"youtube",title:t.title,description:t.description,image:r.url,video:n})}},this)).fail(function(e){nextend.notificationCenter.error(e.error.errors[0].message)}):l?NextendAjaxHelper.getJSON("https://vimeo.com/api/v2/video/"+l[3]+".json").done(e.proxy(function(e){i._addQuickVideo(this,{type:"vimeo",title:e[0].title,description:e[0].description,video:l[3],image:e[0].thumbnail_large})},this)).fail(function(e){nextend.notificationCenter.error(e.responseText)}):d?nextend.notificationCenter.error("This video url is not supported!"):nextend.notificationCenter.error("This video url is not supported!")},this)))}}}})),this.quickVideoModal.show()},s.prototype._addQuickVideo=function(t,i){NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickVideo"}),data:{video:Base64.encode(JSON.stringify(i))}}).done(e.proxy(function(t){this.addBoxes(e(t.data)),this.initSlides()},this)),t.hide()},s.prototype.addQuickPost=function(t){if(t.preventDefault(),!this.quickPostModal){var i=this,s={},n=e.proxy(function(e){return"undefined"==typeof s[e]&&(s[e]=NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.contentAjaxUrl),data:{keyword:e},dataType:"json"})),s[e]},this);this.quickPostModal=new NextendModal({zero:{size:[600,430],title:n2_("Add post"),back:!1,close:!0,content:'<div class="n2-form"></div>',fn:{show:function(){this.content.find(".n2-form").append(this.createInput(n2_("Keyword"),"n2-ss-keyword","width:546px;"));var t=e("#n2-ss-keyword"),s=this.createHeading("").appendTo(this.content),r=this.createResult().appendTo(this.content),a="";t.on("keyup",e.proxy(function(){a=t.val(),n(a).done(e.proxy(function(n){if(t.val()==a){""==a?s.html(n2_("No search term specified. Showing recent items.")):s.html(n2_printf(n2_('Showing items match for "%s"'),a));for(var o=n.data,l=[],d=this,h=0;h<o.length;h++)l.push([o[h].title,o[h].info,e('<div class="n2-button n2-button-normal n2-button-xs n2-button-green n2-radius-s n2-uc n2-h5">'+n2_("Select")+"</div>").on("click",{post:o[h]},function(e){i._addQuickPost(d,e.data.post)})]);r.html(""),this.createTable(l,["width:100%;","",""]).appendTo(this.createTableWrap().appendTo(r))}},this))},this)).trigger("keyup").focus()}}}})}this.quickPostModal.show()},s.prototype._addQuickPost=function(t,i){i.image||(i.image=""),NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickPost"}),data:{post:i}}).done(e.proxy(function(t){this.addBoxes(e(t.data)),this.initSlides()},this)),t.hide()},s.prototype.initBulk=function(){this.selection=[],this.isBulkSelection=!1;var t=e(".n2-bulk-select").find("a");t.eq(0).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.select()})},this)),t.eq(1).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.deSelect()})},this)),t.eq(2).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.box.hasClass("n2-slide-state-published")?e.select():e.deSelect()})},this)),t.eq(3).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.box.hasClass("n2-slide-state-published")?e.deSelect():e.select()})},this));var i=e(".n2-bulk-actions").find("a");i.eq(0).on("click",e.proxy(function(e){e.preventDefault(),this.bulkAction("deleteSlides")},this)),i.eq(1).on("click",e.proxy(function(e){e.preventDefault(),this.bulkAction("duplicateSlides")},this)),i.eq(2).on("click",e.proxy(function(e){e.preventDefault(),this.bulkAction("publishSlides")},this)),i.eq(3).on("click",e.proxy(function(e){e.preventDefault(),this.bulkAction("unPublishSlides")},this))},s.prototype.addSelection=function(e){0==this.selection.length&&this.enterBulk(),this.selection.push(e)},s.prototype.removeSelection=function(t){this.selection.splice(e.inArray(t,this.selection),1),0==this.selection.length&&this.leaveBulk()},s.prototype.bulkSelect=function(e){for(var t=0;t<this.slides.length;t++)e(this.slides[t])},s.prototype.bulkAction=function(e){var t=[],i=[];this.bulkSelect(function(e){e.selected&&(t.push(e),i.push(e.getId()))}),i.length?this[e](i,t):nextend.notificationCenter.notice("Please select one or more slides for the action!")},s.prototype.enterBulk=function(){this.isBulkSelection||(this.isBulkSelection=!0,this.slidesContainer.sortable("option","disabled",!0),e("#n2-admin").addClass("n2-ss-has-box-selection"))},s.prototype.leaveBulk=function(){if(this.isBulkSelection){this.slidesContainer.sortable("option","disabled",!1),e("#n2-admin").removeClass("n2-ss-has-box-selection");for(var t=0;t<this.slides.length;t++)this.slides[t].deSelect();this.selection=[],this.isBulkSelection=!1}},s.prototype.deleteSlides=function(t,i){this.hideMenu();var s=i[0].box.find(".n2-box-placeholder-title a").text();i.length>1&&(s+=" and "+(i.length-1)+" more"),NextendDeleteModal("slide-delete",s,e.proxy(function(){NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"delete"}),type:"POST",data:{slides:t}}).done(e.proxy(function(){for(var e=0;e<i.length;e++)i[e].deleted();this.initSlides(),this.leaveBulk()},this))},this))},s.prototype.duplicateSlides=function(t,i){for(var s=0;s<this.slides.length;s++)this.slides[s].selected&&this.slides[s].duplicate(e.Event("click",{currentTarget:null}))},s.prototype.publishSlides=function(t,i){NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"publish"}),type:"POST",data:{slides:t}}).done(e.proxy(function(){for(var e=0;e<i.length;e++)i[e].published();this.changed()},this))},s.prototype.unPublishSlides=function(t,i){NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"unpublish"}),type:"POST",data:{slides:t}}).done(e.proxy(function(){for(var e=0;e<i.length;e++)i[e].unPublished();this.changed()},this))},s.prototype.initMenu=function(){this.slide=null,this.menu=e("#n2-ss-slide-menu").detach().addClass("n2-inited"),this.menuActions={publish:this.menu.find(".n2-ss-publish").on("click",e.proxy(function(e){this.slide.switchPublished(e)},this)),unpublish:this.menu.find(".n2-ss-unpublish").on("click",e.proxy(function(e){this.slide.switchPublished(e)},this)),generator:this.menu.find(".n2-ss-generator").on("click",e.proxy(function(e){e.preventDefault(),e.stopPropagation(),window.location=this.slide.box.data("generator")},this)),duplicate:this.menu.find(".n2-ss-duplicate").on("click",e.proxy(function(e){this.slide.duplicate(e)},this)),"delete":this.menu.find(".n2-ss-delete").on("click",e.proxy(function(e){this.slide["delete"](e)},this)),setFirst:this.menu.find(".n2-ss-setFirst").on("click",e.proxy(function(e){this.slide.setFirst(e)},this)),saveLayout:this.menu.find(".n2-ss-saveLayout")},this.menu.find(".n2-button").on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation(),this.menu.hasClass("n2-active")?this.menu.removeClass("n2-active").off("mouseleave"):this.menu.addClass("n2-active").on("mouseleave",function(){e(this).removeClass("n2-active")})},this))},s.prototype.showMenu=function(e){this.slide=e,this.menu.appendTo(e.box)},s.prototype.hideMenu=function(){this.menu.detach()},t.NextendSmartSliderAdminSidebarSlides=s,n.prototype.getId=function(){return this.box.data("slideid")},n.prototype.setFirst=function(t){
2
- t.stopPropagation(),t.preventDefault(),NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.manager.ajaxUrl,{nextendaction:"first"}),type:"POST",data:{id:this.getId()}}).done(e.proxy(function(){this.manager.unsetFirst(),this.box.addClass("n2-slide-state-first")},this))},n.prototype.unsetFirst=function(){this.box.removeClass("n2-slide-state-first")},n.prototype.switchPublished=function(e){e.stopPropagation(),e.preventDefault(),this.isPublished()?this.manager.unPublishSlides([this.getId()],[this]):this.manager.publishSlides([this.getId()],[this])},n.prototype.isPublished=function(){return this.box.hasClass("n2-slide-state-published")},n.prototype.published=function(){this.box.addClass("n2-slide-state-published")},n.prototype.unPublished=function(){this.box.removeClass("n2-slide-state-published")},n.prototype.goToEdit=function(e,t){var i=this.box.data("editurl");"undefined"!=typeof t&&t?window.open(i,"_blank"):i==location.href?n2("#n2-admin").toggleClass("n2-ss-slides-outer-container-visible"):window.location=i},n.prototype.duplicate=function(t){t.stopPropagation(),t.preventDefault();var i=e.Deferred();return NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.box.data("editurl"),{nextendaction:"duplicate"})}).done(e.proxy(function(t){var s=e(t.data).insertAfter(this.box),r=new n(this.manager,s);this.manager.initSlides(),i.resolve(r)},this)),i},n.prototype["delete"]=function(e){e.stopPropagation(),e.preventDefault(),this.manager.deleteSlides([this.getId()],[this])},n.prototype.deleted=function(){this.box.remove()},n.prototype.invertSelection=function(e){e&&e.preventDefault(),this.selected?this.deSelect():this.select()},n.prototype.select=function(){this.selected||(this.selected=!0,this.box.addClass("n2-selected"),this.manager.addSelection(this))},n.prototype.deSelect=function(){this.selected&&(this.selected=!1,this.box.removeClass("n2-selected"),this.manager.removeSelection(this))},t.NextendSmartSliderAdminSlide=n}(n2,window),function(e,t,i,s){function n(i){this.detachedPosition={left:t.jStorage.get("ssPanelLeft")||100,top:t.jStorage.get("ssPanelTop")||100,height:t.jStorage.get("ssPanelHeight")||400},this.autoPosition=t.jStorage.get("ssPanelAutoPosition",1),this.lastHeight=this.detachedPosition.height,this.admin=t("#n2-admin"),this.sidebar=t("#n2-ss-slide-sidebar").on("mousedown",t.proxy(nextend.context.setMouseDownArea,nextend.context,"sidebarClicked")),this.title=this.sidebar.find(".n2-panel-titlebar-title"),this.sidebarTD=this.sidebar.parent(),this.layerManager=i,e.sidebarManager=this,this.editorPanel=t(".n2-ss-editor-panel"),this.views={layerEdit:t("#n2-ss-layer-edit")},this.viewPanes={layerEdit:t("#n2-tabbed-slide-editor-settings > .n2-tabs").addClass("n2-scrollable")};for(var s in this.viewPanes)this.viewPanes[s].on("DOMMouseScroll mousewheel",function(e){var i=!1;e.originalEvent&&(e.originalEvent.wheelDelta&&(i=e.originalEvent.wheelDelta/-1<0),e.originalEvent.deltaY&&(i=e.originalEvent.deltaY<0),e.originalEvent.detail&&(i=e.originalEvent.detail<0));var s=function(){return e.stopPropagation(),e.preventDefault(),e.returnValue=!1,!1};return!i&&this.scrollHeight<=t(this).innerHeight()+this.scrollTop+1?s():i&&0>=this.scrollTop-1?s():void 0});this.panelHeading=t("#n2-tabbed-slide-editor-settings").find(".n2-sidebar-tab-switcher .n2-td");var n=this.sidebar.find(".n2-panel-titlebar-nav-right");this.magnet=t('<a href="#"><i class="n2-i n2-i-magnet n2-i-grey-opacity" data-n2tip="Auto position layer window"></i></a>').on("click",t.proxy(function(e){e.preventDefault(),this.magnetize()},this)).css("display","none").appendTo(n),t('<a href="#"><i class="n2-i n2-i-closewindow n2-i-grey-opacity"></i></a>').on("click",t.proxy(function(e){e.preventDefault(),this.hide()},this)).appendTo(n),nextend.tooltip.add(n);var r=t("#n2-ss-slide-vertical-bar");t(".n2-ss-add-layer-button").on("click",function(e){e.preventDefault(),r.toggleClass("n2-active")}),t(".n2-ss-core-item").on("click",function(e){r.removeClass("n2-active")});var a=t("#wpadminbar, .navbar-fixed-top").height()+t(".n2-top-bar").height();this.$verticalBarInner=t(".n2-ss-slide-vertical-bar-inner").each(function(){var e=t(this);e.fixTo(e.parent(),{top:a})}),this.$resizeInnerContainer=t("#n2-ss-layers-switcher_0, #n2-ss-layers-switcher_1"),this.extraHeightToRemove=60,this.$resizeInnerContainer.length||(this.extraHeightToRemove=0,this.$resizeInnerContainer=this.$verticalBarInner),this.$resizeInnerContainer.css("overflow","auto"),this.detach(),t("#n2-admin").on("resize",t.proxy(this.resizeVerticalBar,this)),t(window).on("resize",t.proxy(this.onResize,this))}n.prototype.magnetize=function(){if(!this.autoPosition){this.autoPosition=1,t.jStorage.set("ssPanelAutoPosition",1),this.magnet.css("display","none");var e=this.layerManager.getSelectedLayer();e&&e.positionSidebar()}},n.prototype.show=function(e,i){this.setTitle(e.property.name),t("body").addClass("n2-ss-layer-edit-visible"),this.autoPosition&&this.sidebar.position({my:"left top",at:"right+10 top",collision:"flipfit",of:i.is(":visible")?i:"#n2-ss-layer-list"})},n.prototype._show=function(){t("body").addClass("n2-ss-layer-edit-visible")},n.prototype.hide=function(){t("body").removeClass("n2-ss-layer-edit-visible")},n.prototype.hideWithDeferred=function(e){t("body").hasClass("n2-ss-layer-edit-visible")&&(this.hide(),e.done(t.proxy(this._show,this)))},n.prototype.setTitle=function(e){this.title.html(e)},n.prototype.getLayerEditExcludedHeight=function(){return 85},n.prototype.resizeVerticalBar=function(){this.$resizeInnerContainer.height((window.innerHeight||document.documentElement.clientHeight)-(t("#n2-ss-layers").is(":visible")&&t("#n2-ss-layers").hasClass("n2-active")?t("#n2-ss-layers").height():0)-t("#wpadminbar, .navbar-fixed-top").height()-t(".n2-top-bar").height()-this.extraHeightToRemove)},n.prototype.onResize=function(){this.sidebar.css("display","block"),this.resizeVerticalBar();var e=window.innerHeight||document.documentElement.clientHeight,t=this.sidebar.height()-this.getLayerEditExcludedHeight();this.viewPanes.layerEdit.height(t);var i={},s=window.innerWidth||document.documentElement.clientWidth,n=this.sidebar[0].getBoundingClientRect();n.left<0?i.left=0:n.left+n.width>s&&(i.left=Math.max(0,s-n.width)),n.height>e-n.top&&(i.top=e-n.top-n.height+n.top,i.top<0&&(this.lastHeight=i.height=n.height+i.top,i.top=0)),this.sidebar.css(i),this.sidebar.css("display","")},n.prototype.detach=function(){this.autoPosition?(this.sidebar.css("height",this.detachedPosition.height),this.magnet.css("display","none")):(this.sidebar.css(this.detachedPosition),this.magnet.css("display","inline-block")),this.sidebar.appendTo(this.admin),this.admin.addClass("n2-sidebar-hidden"),t(window).off(".n2-ss-panel"),this.sidebar.removeClass("n2-sidebar-fixed"),this.sidebar.draggable({distance:5,handle:".n2-panel-titlebar",containment:"window",stop:t.proxy(function(e,i){this.sidebar.css("height",this.lastHeight);var s=this.sidebar[0].getBoundingClientRect();this.detachedPosition.left=s.left,this.detachedPosition.top=s.top,t.jStorage.set("ssPanelLeft",s.left),t.jStorage.set("ssPanelTop",s.top),this.autoPosition=0,t.jStorage.set("ssPanelAutoPosition",0),this.magnet.css("display","inline-block")},this),scroll:!1}).resizable({distance:5,handles:"s",stop:t.proxy(function(e,i){this.lastHeight=this.detachedPosition.height=this.sidebar.height(),t.jStorage.set("ssPanelHeight",this.detachedPosition.height)},this),create:t.proxy(function(e,i){t(e.target).find(".ui-resizable-handle").addClass("n2-ss-panel-resizer")},this)}),this.onResize(),nextend.triggerResize()},n.prototype.switchTab=function(e){this.panelHeading.filter('[data-tab="'+e+'"]').trigger("click")},i.NextendSmartSliderSidebar=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(i,s,n,r,a,o){this.options=t.extend({slideAsFile:0},o),this.readyDeferred=t.Deferred(),e.slide=this,this._warnInternetExplorerUsers(),this.$slideContentElement=t("#"+s),this.$slideGuidesElement=t("#slideguides"),this.slideStartValue=this.$slideContentElement.val(),this.$sliderElement=t("#"+i),e.frontend=window["n2-ss-0"],e.ruler=new NextendSmartSliderRuler(this.$slideGuidesElement.val()),e.frontend.visible(function(){t("body").addClass("n2-ss-slider-visible");var e=t("#n2-tab-smartslider-editor"),i=e.tinyscrollbar({axis:"x",wheel:!1,wheelLock:!1}).data("plugin_tinyscrollbar");"function"==typeof e.get(0).move&&(e.get(0).move=null),this.sliderElement.on("SliderResize",function(){i.update("relative")})});var l=this.$sliderElement.data("fontsize");nextend.fontManager.setFontSize(l),nextend.styleManager.setFontSize(l),e.$currentSlideElement=e.frontend.adminGetCurrentSlideElement(),new SmartSliderAdminGenerator,e.$currentSlideElement.addClass("n2-ss-currently-edited-slide");var d=e.frontend.parameters.isStaticEdited;new NextendSmartSliderAdminSlideLayerManager(e.$currentSlideElement.data("slide"),d,n,r,a),d||this._initializeBackgroundChanger(),this.readyDeferred.resolve(),t("#smartslider-form").on({checkChanged:t.proxy(this.prepareFormForCheck,this),submit:t.proxy(this.onSlideSubmit,this)}),this.createHistory()}n.prototype.ready=function(e){this.readyDeferred.done(e)},n.prototype.prepareFormForCheck=function(){var t=JSON.stringify(e.layerManager.getData()),i=JSON.stringify(JSON.parse(Base64.decode(this.slideStartValue)));this.$slideContentElement.val(i==t?this.slideStartValue:Base64.encode(t))},n.prototype.onSlideSubmit=function(e){if(!nextend.isPreview)if(this.prepareForm(),e.preventDefault(),nextend.askToSave=!1,this.options.slideAsFile&&typeof window.FormData!==s&&"undefined"!=typeof window.File){var i=new FormData,n=t("#smartslider-form").serializeArray();t.each(n,function(e,t){"slide[slide]"==t.name?i.append("slide",new File([t.value],"slide.txt")):i.append(t.name,t.value)}),NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(window.location.href),type:"POST",data:i,contentType:!1,processData:!1}).done(t.proxy(this.afterSave,this))}else NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(window.location.href),data:t("#smartslider-form").serialize(),dataType:"json"}).done(t.proxy(this.afterSave,this))},n.prototype.afterSave=function(){nextend.askToSave=!0,t("#smartslider-form").trigger("saved"),t(".n2-ss-edit-slide-top-details .n2-h1").html(t("#slidetitle").val())},n.prototype.prepareForm=function(){this.$slideGuidesElement.val(Base64.encode(JSON.stringify(e.ruler.toArray()))),this.$slideContentElement.val(Base64.encode(JSON.stringify(e.layerManager.getData())))},n.prototype._initializeBackgroundChanger=function(){this.background={type:t("#slidebackground-type").on("nextendChange",t.proxy(this.__onAfterBackgroundTypeChange,this)),slideBackgroundColorField:t("#slidebackgroundColor").on("nextendChange",t.proxy(this.__onAfterBackgroundColorChange,this)),slideBackgroundGradientField:t("#slidebackgroundGradient").on("nextendChange",t.proxy(this.__onAfterBackgroundColorChange,this)),slideBackgroundColorEndField:t("#slidebackgroundColorEnd").on("nextendChange",t.proxy(this.__onAfterBackgroundColorChange,this)),slideBackgroundImageField:t("#slidebackgroundImage").on("nextendChange",t.proxy(this.__onAfterBackgroundImageChange,this)),slideBackgroundImageOpacity:t("#slidebackgroundImageOpacity").on("nextendChange",t.proxy(this.__onAfterBackgroundImageOpacityChange,this)),slidebackgroundFocusX:t("#slidebackgroundFocusX").on("nextendChange",t.proxy(this.__onAfterBackgroundImageChange,this)),slidebackgroundFocusY:t("#slidebackgroundFocusY").on("nextendChange",t.proxy(this.__onAfterBackgroundImageChange,this)),slideBackgroundModeField:t("#slidebackgroundMode").on("nextendChange",t.proxy(this.__onAfterBackgroundImageChange,this)),backgroundImageElement:e.$currentSlideElement.find(".nextend-slide-bg"),canvas:e.$currentSlideElement.find(".n2-ss-slide-background")},this.currentBackgroundType=this.background.type.val();var i=t("#slidethumbnail");if(""==i.val()){var s=t("#item_imageimage"),n=t.proxy(function(e){""!=e&&"$system$/images/placeholder/image.png"!=e&&(i.val(e).trigger("change"),this.background.slideBackgroundImageField.off(".slidethumbnail"),s.off(".slidethumbnail"))},this);this.background.slideBackgroundImageField.on("nextendChange.slidethumbnail",t.proxy(function(){n(this.background.slideBackgroundImageField.val())},this)),s.on("nextendChange.slidethumbnail",t.proxy(function(){n(s.val())},this))}},n.prototype.__onAfterBackgroundTypeChange=function(){var t=this.background.type.val();switch(this.currentBackgroundType=t,t){case"image":this.__onAfterBackgroundImageChange();break;case"video":this.__onAfterBackgroundImageChange();break;case"color":e.$currentSlideElement.data("slideBackground").changeDesktop("","",this.background.slideBackgroundModeField.val(),this.background.slidebackgroundFocusX.val(),this.background.slidebackgroundFocusY.val()),this.__onAfterBackgroundColorChange()}},n.prototype.__onAfterBackgroundColorChange=function(){var e=this.background.slideBackgroundColorField.val(),t=this.background.slideBackgroundGradientField.val();if("off"!=t){var i=this.background.slideBackgroundColorEndField.val(),s=this.background.canvas.css({background:"",filter:""});switch(t){case"horizontal":s.css("background","#"+e.substr(0,6)).css("background","-moz-linear-gradient(left, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(left, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(to right, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+e.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)");break;case"vertical":s.css("background","#"+e.substr(0,6)).css("background","-moz-linear-gradient(top, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(top, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(to bottom, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+e.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=0)");break;case"diagonal1":s.css("background","#"+e.substr(0,6)).css("background","-moz-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+e.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)");break;case"diagonal2":s.css("background","#"+e.substr(0,6)).css("background","-moz-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+e.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)")}}else"00"==e.substr(6,8)?this.background.canvas.css("background",""):this.background.canvas.css("background","#"+e.substr(0,6)).css("background",N2Color.hex2rgbaCSS(e))},n.prototype.__onAfterBackgroundImageChange=function(){e.$currentSlideElement.data("slideBackground").changeDesktop(e.generator.fill(this.background.slideBackgroundImageField.val()),"",this.background.slideBackgroundModeField.val(),this.background.slidebackgroundFocusX.val(),this.background.slidebackgroundFocusY.val()),this.__onAfterBackgroundImageOpacityChange()},n.prototype.__onAfterBackgroundImageOpacityChange=function(){e.$currentSlideElement.data("slideBackground").setOpacity(this.background.slideBackgroundImageOpacity.val()/100)},n.prototype._warnInternetExplorerUsers=function(){var e=this.__isInternetExplorer();e&&10>e&&alert(window.ss2lang.The_editor_was_tested_under_Internet_Explorer_10_Firefox_and_Chrome_Please_use_one_of_the_tested_browser)},n.prototype.__isInternetExplorer=function(){var e=navigator.userAgent.toLowerCase();return-1!=e.indexOf("msie")?parseInt(e.split("msie")[1]):!1},n.prototype.getLayout=function(){for(var i=t("#smartslider-form").serializeArray(),s={},n=0;n<i.length;n++){var r=i[n].name.match(/slide\[(.*?)\]/);r&&(s[r[1]]=i[n].value)}return delete s.generator,delete s.published,delete s.publishdates,delete s["record-start"],delete s["record-slides"],delete s.slide,s.slide=e.layerManager.getData(),s},n.prototype.loadLayout=function(i,s,n){var r=i.slide;if(delete i.slide,n?e.layerManager.loadData(r,!0):e.layerManager.loadData(r,!1),s)for(var a in i)t("#slide"+a).val(i[a]).trigger("change");i.slide=r},n.prototype.createHistory=function(){this.slideValues={},n2("#smartslider-form").find('input[id][name^="slide"], textarea[id][name^="slide"]').not("#slideslide").each(t.proxy(function(i,s){var n=t(s),r=n.data("field"),a=n.attr("id");this.slideValues[a]=n.val(),n.on("nextendChange",t.proxy(function(){var i=n.val(),s=this.slideValues[a];this.slideValues[a]=i,e.history.add(t.proxy(function(){return[this,"slideValueChange",i,s,[n,r]]},this))},this))},this))},n.prototype.history=function(e,t,i){switch(e){case"slideValueChange":i[1].insideChange(t)}},i.SmartSliderAdminSlide=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e){this.key="n2-ss-editor-device-lock-mode",this.devices={unknownUnknown:t("<div />")},this.responsives=[e],e.setOrientation("portrait"),e.parameters.onResizeEnabled=0,e.parameters.forceFull=0,e._getDevice=e._getDeviceZoom,this.lock=t("#n2-ss-lock").on("click",t.proxy(this.switchLock,this));var i=e.parameters.sliderWidthToDevice.desktopPortrait;this.container=e.containerElement.closest(".n2-ss-container-device").addBack(),this.container.width(i),this.containerWidth=i,this.initZoom();var s=t("#n2-ss-devices .n2-tr"),n=e.parameters.deviceModes;this.devices.desktopPortrait=t('<div class="n2-td n2-panel-option" data-device="desktop" data-orientation="portrait"><i class="n2-i n2-it n2-i-v-desktop"></i></div>').prependTo(s),n.desktopLandscape?this.devices.desktopLandscape=t('<div class="n2-td n2-panel-option" data-device="desktop" data-orientation="landscape"><i class="n2-i n2-it n2-i-v-desktop-landscape"></i></div>').prependTo(s):this.devices.desktopLandscape=this.devices.desktopPortrait,n.tabletPortrait?this.devices.tabletPortrait=t('<div class="n2-td n2-panel-option" data-device="tablet" data-orientation="portrait"><i class="n2-i n2-it n2-i-v-tablet"></i></div>').prependTo(s):this.devices.tabletPortrait=this.devices.desktopPortrait,n.tabletLandscape?this.devices.tabletLandscape=t('<div class="n2-td n2-panel-option" data-device="tablet" data-orientation="landscape"><i class="n2-i n2-it n2-i-v-tablet-landscape"></i></div>').prependTo(s):this.devices.tabletLandscape=this.devices.desktopLandscape,n.mobilePortrait?this.devices.mobilePortrait=t('<div class="n2-td n2-panel-option" data-device="mobile" data-orientation="portrait"><i class="n2-i n2-it n2-i-v-mobile"></i></div>').prependTo(s):this.devices.mobilePortrait=this.devices.tabletPortrait,n.mobileLandscape?this.devices.mobileLandscape=t('<div class="n2-td n2-panel-option" data-device="mobile" data-orientation="landscape"><i class="n2-i n2-it n2-i-v-mobile-landscape"></i></div>').prependTo(s):this.devices.mobileLandscape=this.devices.tabletLandscape,this.deviceOptions=t("#n2-ss-devices .n2-panel-option"),this.deviceOptions.each(t.proxy(function(e,i){t(i).on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"zoomDeviceClicked"),click:t.proxy(this.setDeviceMode,this)})},this)),e.sliderElement.on("SliderDeviceOrientation",t.proxy(this.onDeviceOrientationChange,this))}var r=null;nextend.ssBeforeResponsive=function(){r=new n(this),nextend.ssBeforeResponsive=function(){r.add(this)}},n.prototype.add=function(e){this.responsives.push(e),e.setOrientation("portrait"),e.parameters.onResizeEnabled=0,e.parameters.forceFull=0,e._getDevice=e._getDeviceZoom},n.prototype.onDeviceOrientationChange=function(e,i){t("#n2-admin").removeClass("n2-ss-mode-"+i.lastDevice+i.lastOrientation).addClass("n2-ss-mode-"+i.device+i.orientation),this.devices[i.lastDevice+i.lastOrientation].removeClass("n2-active"),this.devices[i.device+i.orientation].addClass("n2-active")},n.prototype.setDeviceMode=function(i){var s=t(i.currentTarget);if((i.ctrlKey||i.metaKey)&&e.layerManager){var n=s.data("orientation");e.layerManager.copyOrResetMode(s.data("device")+n[0].toUpperCase()+n.substr(1))}else for(var r=0;r<this.responsives.length;r++)this.responsives[r].setOrientation(s.data("orientation")),this.responsives[r].setMode(s.data("device"),this.responsives[0])},n.prototype.switchLock=function(e){e.preventDefault(),this.lock.toggleClass("n2-active"),this.lock.hasClass("n2-active")?(this.setZoomSyncMode(),this.zoomChange(this.zoom.slider("value"),"sync",!1),t.jStorage.set(this.key,"sync")):(this.setZoomFixMode(),t.jStorage.set(this.key,"fix"))},n.prototype.initZoom=function(){var e=t("#n2-ss-slider-zoom");if(e.length>0){"undefined"!=typeof e[0].slide&&(e[0].slide=null),this.zoom=e.removeAttr("slide").slider({range:"min",step:1,value:1,min:0,max:102}),this.responsives[0].sliderElement.on("SliderResize",t.proxy(this.sliderResize,this)),"fix"==t.jStorage.get(this.key,"sync")?this.setZoomFixMode():(this.setZoomSyncMode(),this.lock.addClass("n2-active"));var i=e.parent(),s=t.proxy(function(e){var t=this.zoom.slider("value");this.zoom.slider("value",t+e)},this),n=null,r=t.proxy(function(e){s(e),n=setInterval(t.proxy(s,this,e),40)},this);i.find(".n2-i-minus").on({mousedown:t.proxy(r,this,-1),"mouseup mouseleave":function(){n&&(clearInterval(n),n=null)}}),i.find(".n2-i-plus").on({mousedown:t.proxy(r,this,1),"mouseup mouseleave":function(){n&&(clearInterval(n),n=null)}})}},n.prototype.sliderResize=function(e,t){this.setZoom()},n.prototype.setZoomFixMode=function(){this.zoom.off(".n2-ss-zoom").on({"slide.n2-ss-zoom":t.proxy(this.zoomChangeFixMode,this),"slidechange.n2-ss-zoom":t.proxy(this.zoomChangeFixMode,this)})},n.prototype.setZoomSyncMode=function(){this.zoom.off(".n2-ss-zoom").on({"slide.n2-ss-zoom":t.proxy(this.zoomChangeSyncMode,this),"slidechange.n2-ss-zoom":t.proxy(this.zoomChangeSyncMode,this)})},n.prototype.zoomChangeFixMode=function(e,t){this.zoomChange(t.value,"fix",t)},n.prototype.zoomChangeSyncMode=function(e,t){this.zoomChange(t.value,"sync",t)},n.prototype.zoomChange=function(e,t,i){var s=1;50>e?s=nextend.smallestZoom/this.containerWidth+Math.max(e/50,0)*(1-nextend.smallestZoom/this.containerWidth):e>52&&(s=1+(e-52)/50);var n=parseInt(s*this.containerWidth);this.container.width(n);for(var r=1;r<this.responsives.length;r++)this.responsives[r].containerElement.width(n);for(var r=0;r<this.responsives.length;r++)switch(t){case"sync":this.responsives[r].doResize();break;default:this.responsives[r].doResize(!0)}i&&(i.handle.innerHTML=n+"px")},n.prototype.setZoom=function(){var e=this.responsives[0].containerElement.width()/this.containerWidth,t=50;1>e?t=(e-nextend.smallestZoom/this.containerWidth)/(1-nextend.smallestZoom/this.containerWidth)*50:e>1&&(t=50*(e-1)+52);this.zoom.slider("value");this.zoom.slider("value",t)}}(nextend.smartSlider,n2,window),function(e,t){function i(t,i){this.addToGroupModal=null,this.groupID=t,this.ajaxUrl=i,e(".n2-ss-create-slider").click(e.proxy(function(e){e.preventDefault(),e.stopImmediatePropagation(),this.showModal()},this)),this.notificationStack=new NextendNotificationCenterStackModal(e("body")),e(".n2-ss-add-sample-slider").click(e.proxy(function(e){e.preventDefault(),e.stopImmediatePropagation(),this.showDemoSliders()},this)),"createslider"==window.location.hash.substring(1)&&this.showModal()}i.prototype.showModal=function(){if(!this.createSliderModal){var t=this,i=this.ajaxUrl,s=[];s.push({key:"default",name:n2_("Default"),image:"$ss$/admin/images/sliderpresets/default.png"}),s.push({key:"fullwidth",name:n2_("Full width"),image:"$ss$/admin/images/sliderpresets/fullwidth.png"}),s.push({key:"thumbnailhorizontal",name:n2_("Thumbnail - horizontal"),image:"$ss$/admin/images/sliderpresets/thumbnailhorizontal.png"}),this.createSliderModal=new NextendModal({zero:{size:[N2SSPRO?750:550,N2SSPRO?630:520],title:n2_("Create Slider"),back:!1,close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Create")+"</a>"],fn:{show:function(){var n=this.controls.find(".n2-button-green"),r=this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),n.trigger("click")});r.append(this.createInput(n2_("Slider name"),"createslidertitle","width: 240px;")),r.append(this.createInputUnit(n2_("Width"),"createsliderwidth","px","width: 30px;")),r.append(this.createInputUnit(n2_("Height"),"createsliderheight","px","width: 30px;")),new NextendElementAutocompleteSimple("createsliderwidth",["1920","1200","1000","800","600","400"]),new NextendElementAutocompleteSimple("createsliderheight",["800","600","500","400","300","200"]);var a=e("#createslidertitle").val(n2_("Slider")).focus(),o=e("#createsliderwidth").val(900),l=e("#createsliderheight").val(500);o.parent().addClass("n2-form-element-autocomplete ui-front"),l.parent().addClass("n2-form-element-autocomplete ui-front"),this.createHeading(n2_("Preset")).appendTo(this.content);var d=this.createImageRadio(s).css("height",N2SSPRO?360:100).appendTo(this.content),h=d.find("input");d.css("overflow","hidden"),this.createHeading(n2_("Import Sample Sliders")).appendTo(this.content),e('<div class="n2-ss-create-slider-free-sample" style="background-image: url(\''+nextend.imageHelper.fixed("$ss$/admin/images/free/sample1.png")+'\')"></div><div class="n2-ss-create-slider-free-sample" style="background-image: url(\''+nextend.imageHelper.fixed("$ss$/admin/images/free/sample2.png")+'\')"></div><div class="n2-ss-create-slider-free-sample" style="background-image: url(\''+nextend.imageHelper.fixed("$ss$/admin/images/free/sample3.png")+"')\"></div>").on("click",e.proxy(function(){this.hide(),t.showDemoSliders()},this)).appendTo(this.content),n.on("click",e.proxy(function(){NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(i,{nextendaction:"create"}),data:{groupID:t.groupID,sliderTitle:a.val(),sliderSizeWidth:o.val(),sliderSizeHeight:l.val(),preset:h.val()},dataType:"json"}).done(e.proxy(function(e){NextendAjaxHelper.startLoading()},this))},this))}}}})}this.createSliderModal.show()},i.prototype.showDemoSliders=function(){var t=this;e("body").css("overflow","hidden");var i=0,s=e('<iframe src="//smartslider3.com/demo-import/?pro='+i+"&version="+N2SS3VERSION+"&utm_campaign="+N2SS3C+"&utm_source=import-slider-frame&utm_medium=smartslider-"+N2PLATFORM+"-"+(i?"pro":"free")+'" frameborder="0"></iframe>').css({position:"fixed",zIndex:1e5,left:0,top:0,width:"100%",height:"100%"}).appendTo("body"),n=function(){e("body").css("overflow",""),s.remove(),window.removeEventListener("message",a,!1),t.notificationStack.popStack()},r=function(e){NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(t.ajaxUrl,{nextendaction:"importDemo"}),data:{groupID:t.groupID,key:Base64.encode(e.replace(/^(http(s)?:)?\/\//,"//"))},dataType:"json"}).fail(function(){})},a=function(e){if("http://smartslider3.com"===e.origin||"https://smartslider3.com"===e.origin){var t=e.data;switch(t.key){case"importSlider":return void("function"==typeof nextend.joinCommunity?nextend.joinCommunity(function(){r(t.data.href)}):r(t.data.href));case"closeWindow":n()}}};this.notificationStack.enableStack(),NextendEsc.add(e.proxy(function(){return n(),!0},this)),window.addEventListener("message",a,!1)},t.NextendSmartSliderCreateSlider=i}(n2,window),function(e,t){function i(t,i){this.preventSort=!1,this.groupID=t,this.ajaxUrl=i,this.sliders=[],this.sliderPanel=e("#n2-ss-slider-container"),this.orderBy="ordering"==this.sliderPanel.data("orderby"),this.slidersContainer=this.sliderPanel.find(".n2-ss-sliders-container");for(var s=this.slidersContainer.find(".n2-ss-box-slider"),n=0;n<s.length;n++)this.sliders.push(new NextendSmartSliderAdminSlider(this,s.eq(n)));this.changed(),this.initMenu(),this.initOrderable(),this.create=new NextendSmartSliderCreateSlider(t,i),this.initBulk()}i.prototype.changed=function(){e("html").attr("data-sliders",this.sliders.length)},i.prototype.initSliders=function(){for(var t=(this.sliders.length,this.slidersContainer.find(".n2-ss-box-slider")),i=[],s=0;s<t.length;s++){var n=t.eq(s).data("slider");i.push(n)}this.sliders=i,this.changed(),e(window).triggerHandler("SmartSliderSidebarSlidersChanged")},i.prototype.initOrderable=function(){this.orderBy&&this.slidersContainer.sortable({helper:"clone",forcePlaceholderSize:!1,tolerance:"pointer",connectWith:".n2-ss-box-slider-group",items:".n2-ss-box-slider",start:function(e,t){t.item.show()},stop:e.proxy(this.saveOrder,this),placeholder:"n2-box-sortable-placeholder",distance:10})},i.prototype.saveOrder=function(t){if(this.preventSort)return this.slidersContainer.sortable("cancel"),void(this.preventSort=!1);for(var i=this.slidersContainer.find(".n2-ss-box-slider"),s=[],n=[],r=[],a=0;a<i.length;a++){var o=i.eq(a).data("slider");s.push(o),n.push(o.getId())}for(var a=0;a<this.sliders.length;a++)r.push(this.sliders[a].getId());if(JSON.stringify(r)!=JSON.stringify(n)){e(window).triggerHandler("SmartSliderSidebarSlidersOrderChanged");var l={nextendcontroller:"sliders",nextendaction:"order"};NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,l),data:{groupID:this.groupID,sliderorder:n,isReversed:"DESC"==this.sliderPanel.data("orderbydirection")?1:0}}),this.sliders=s}},i.prototype.initMenu=function(){this.slider=null,this.menu=e("#n2-ss-slider-menu").detach().addClass("n2-inited"),this.menuActions={addToGroup:this.menu.find(".n2-ss-add-to-group").on("click",e.proxy(function(e){e.stopPropagation(),e.preventDefault(),this.addToGroup([this.slider.getId()])},this)),removeFromGroup:this.menu.find(".n2-ss-remove-from-group").on("click",e.proxy(function(e){e.stopPropagation(),e.preventDefault(),this.removeFromGroup([this.slider.getId()])},this)),duplicate:this.menu.find(".n2-ss-duplicate").on("click",e.proxy(function(e){this.slider.duplicate(e)},this)),"delete":this.menu.find(".n2-ss-delete").on("click",e.proxy(function(e){this.slider["delete"](e)},this)),preview:this.menu.find(".n2-ss-preview").on("click",e.proxy(function(e){this.slider.preview(e)},this))},this.menu.find(".n2-button").on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation(),this.menu.hasClass("n2-active")?this.menu.removeClass("n2-active").off("mouseleave"):this.menu.addClass("n2-active").on("mouseleave",function(){e(this).removeClass("n2-active")})},this))},i.prototype.showMenu=function(e){this.slider=e,this.menu.appendTo(e.box)},i.prototype.hideMenu=function(){this.menu.hasClass("n2-active")&&this.menu.removeClass("n2-active").off("mouseleave"),this.menu.detach()},i.prototype.deleteSliders=function(t,i){this.hideMenu();var s=i[0].box.find(".n2-box-placeholder-title a").text();i.length>1&&(s+=" and "+(i.length-1)+" more"),NextendDeleteModal("slider-delete",s,e.proxy(function(){NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"delete"}),type:"POST",data:{sliders:t}}).done(e.proxy(function(){for(var e=0;e<i.length;e++)i[e].deleted();this.initSliders(),this.leaveBulk()},this))},this))},i.prototype.duplicateSliders=function(t,i){for(var s=0;s<this.sliders.length;s++)this.sliders[s].selected&&this.sliders[s].duplicate(e.Event("click",{currentTarget:null}))},i.prototype.exportSliders=function(t,i){window.location.href=NextendAjaxHelper.makeFallbackUrl(this.ajaxUrl,{
3
- nextendcontroller:"sliders",nextendaction:"exportAll"})+"&"+e.param({sliders:t,currentGroupID:this.groupID})},i.prototype.initBulk=function(){this.selection=[],this.isBulkSelection=!1;var t=e(".n2-bulk-select").find("a");t.eq(0).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.select()})},this)),t.eq(1).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.deSelect()})},this));e(".n2-bulk-actions").find("a").on("click",e.proxy(function(t){switch(t.preventDefault(),e(t.currentTarget).data("action")){case"duplicate":this.bulkAction("duplicateSliders",!1);break;case"delete":this.bulkAction("deleteSliders",!1);break;case"export":this.bulkAction("exportSliders",!1);break;case"addToGroup":this.bulkAction("addToGroup",!0)}},this))},i.prototype.addSelection=function(e){0==this.selection.length&&this.enterBulk(),this.selection.push(e)},i.prototype.removeSelection=function(t){this.selection.splice(e.inArray(t,this.selection),1),0==this.selection.length&&this.leaveBulk()},i.prototype.bulkSelect=function(e){for(var t=0;t<this.sliders.length;t++)e(this.sliders[t])},i.prototype.bulkAction=function(e,t){var i=[],s=[];this.bulkSelect(function(e){!e.selected||t&&e.isGroup||(i.push(e),s.push(e.getId()))}),s.length?(this[e](s,i),this.leaveBulk()):t?nextend.notificationCenter.notice("Please select one or more sliders for the action!"):nextend.notificationCenter.notice("Please select one or more sliders or groups for the action!")},i.prototype.enterBulk=function(){this.isBulkSelection||(this.isBulkSelection=!0,this.orderBy&&this.slidersContainer.sortable("option","disabled",!0),e("#n2-admin").addClass("n2-ss-has-box-selection"))},i.prototype.leaveBulk=function(){if(this.isBulkSelection){this.orderBy&&this.slidersContainer.sortable("option","disabled",!1),e("#n2-admin").removeClass("n2-ss-has-box-selection");for(var t=0;t<this.sliders.length;t++)this.sliders[t].deSelect();this.selection=[],this.isBulkSelection=!1}},i.prototype.removeFromGroup=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"removeFromGroup"}),data:{currentGroupID:this.groupID,sliders:t},dataType:"json"}).done(e.proxy(function(i){for(var s=0;s<t.length;s++)e('[data-sliderid="'+t[s]+'"]').data("slider").deleted();this.initSliders()},this))},i.prototype._addToGroup=function(t,i,s){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"addToGroup"}),data:{currentGroupID:this.groupID,groupID:i,action:t,sliders:s},dataType:"json"}).done(e.proxy(function(n){if("move"==t){for(var r=0;r<s.length;r++)e('[data-sliderid="'+s[r]+'"]').data("slider").deleted();this.initSliders()}var a=e('[data-sliderid="'+i+'"] .n2-box-placeholder-buttons .n2-button-grey');a.html(parseInt(a.html())+s.length)},this))},i.prototype.addToGroup=function(t){var i=null,s=this,n=(this.ajaxUrl,new NextendModal({zero:{size:[350,220],title:n2_("Add to group"),back:!1,close:!0,content:'<form class="n2-form"></form>',controls:['<div class="n2-button n2-button-with-actions n2-button-l n2-button-green n2-radius-s n2-h4"><a class="n2-button-inner" href="#" data-action="move">'+n2_("Move")+'</a><div class="n2-button-menu-open"><i class="n2-i n2-i-buttonarrow"></i><div class="n2-button-menu"><div class="n2-button-menu-inner n2-border-radius"><a class="n2-h4" href="#" data-action="copy">'+n2_("Copy")+'</a><a class="n2-h4" href="#" data-action="link">'+n2_("Link")+"</a></div></div></div></div>"],fn:{show:function(){this.controls.find(".n2-button-menu-open").n2opener();var n=this.controls.find("a"),r=this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),n.eq(0).trigger("click")});r.append(this.createSelect(n2_("Group"),"choosegroup",i,"width:300px;"));var a=e("#choosegroup");n.on("click",e.proxy(function(i){i.preventDefault(),s._addToGroup(e(i.currentTarget).data("action"),a.val(),t).done(e.proxy(function(){this.hide(i)},this))},this))}}}}));NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"listGroups"}),dataType:"json"}).done(e.proxy(function(t){i=t.data,"undefined"!=typeof i[this.groupID]&&delete i[this.groupID],e.isEmptyObject(i)?(e("body").on({"groupAdded.addToGroup":e.proxy(function(){e("body").off(".addToGroup"),NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"listGroups"}),dataType:"json"}).done(e.proxy(function(e){i=e.data,"undefined"!=typeof i[this.groupID]&&delete i[this.groupID],n.show()},this))},this),"groupAddCanceled.addToGroup":e.proxy(function(){e("body").off(".addToGroup")},this)}),this.createGroup.showModal()):n.show()},this))},t.NextendSmartSliderManageSliders=i}(n2,window),function(e,t){function i(t,i){this.selected=!1,this.manager=t,this.box=i.data("slider",this).addClass("n2-clickable"),this.isGroup=this.box.hasClass("n2-ss-box-slider-group"),this.box.on("mouseenter",e.proxy(function(){this.manager.showMenu(this)},this)).on("mouseleave",e.proxy(function(){this.manager.hideMenu()},this)).on("click.n2-slider",e.proxy(this.goToEdit,this)),this.box.find(".n2-ss-box-select").on("click",e.proxy(function(e){e.stopPropagation(),e.preventDefault(),this.invertSelection()},this))}i.prototype.getId=function(){return this.box.data("sliderid")},i.prototype.goToEdit=function(e,t){var i=this.box.data("editurl");"undefined"!=typeof t&&t?window.open(i,"_blank"):window.location=i},i.prototype.preview=function(e){e.stopPropagation(),e.preventDefault(),window.open(NextendAjaxHelper.makeFallbackUrl(this.box.data("editurl"),{nextendcontroller:"preview",nextendaction:"index"}),"_blank")},i.prototype.duplicate=function(t){t.stopPropagation(),t.preventDefault();var s=e.Deferred();return NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.box.data("editurl"),{nextendcontroller:"slider",nextendaction:"duplicate"})}).done(e.proxy(function(t){var n=e(t.data).insertAfter(this.box),r=new i(this.manager,n);this.manager.initSliders(),s.resolve(r)},this)),s},i.prototype["delete"]=function(e){e.stopPropagation(),e.preventDefault(),this.manager.deleteSliders([this.getId()],[this])},i.prototype.deleted=function(){this.box.remove()},i.prototype.invertSelection=function(e){e&&e.preventDefault(),this.selected?this.deSelect():this.select()},i.prototype.select=function(){this.selected||(this.selected=!0,this.box.addClass("n2-selected"),this.manager.addSelection(this))},i.prototype.deSelect=function(){this.selected&&(this.selected=!1,this.box.removeClass("n2-selected"),this.manager.removeSelection(this))},t.NextendSmartSliderAdminSlider=i}(n2,window),function(e,t){function i(t,i){this.element=e("#"+t),this.managerIdentifier=i,this.element.parent().on("click",e.proxy(this.show,this)),this.element.siblings(".n2-form-element-clear").on("click",e.proxy(this.clear,this)),this.name=this.element.siblings("input"),this.updateName(this.element.val()),NextendElement.prototype.constructor.apply(this,arguments)}function s(){i.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendElement.prototype),i.prototype.constructor=i,i.prototype.show=function(t){t.preventDefault(),nextend[this.managerIdentifier].show(this.element.val(),e.proxy(this.save,this))},i.prototype.clear=function(e){e.preventDefault(),e.stopPropagation(),this.val("")},i.prototype.save=function(e,t){this.val(t)},i.prototype.val=function(e){this.element.val(e),this.updateName(e),this.triggerOutsideChange()},i.prototype.insideChange=function(e){this.element.val(e),this.updateName(e),this.triggerInsideChange()},i.prototype.updateName=function(e){e=""==e?n2_("Disabled"):e.split("||").length>1?n2_("Multiple animations"):n2_("Single animation"),this.name.val(e)},t.NextendElementAnimationManager=i,s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.prototype.clear=function(e){e.preventDefault(),e.stopPropagation();var t=this.element.val().split("|*|");t[2]="",this.val(t.join("|*|"))},s.prototype.updateName=function(e){var t=e.split("|*|");e=t[2],e=""==e?n2_("Disabled"):e.split("||").length>1?n2_("Multiple animations"):n2_("Single animation"),this.name.val(e)},t.NextendElementPostAnimationManager=s}(n2,window),function(e,t){function i(t,i){this.value="",this.element=e("#"+t),this.$container=this.element.closest(".n2-form-tab"),this.panel=e("#"+t+"-panel"),this.setValue(i),this.options=this.panel.find(".n2-subform-image-option").on("click",e.proxy(this.selectOption,this)),this.active=this.getIndex(this.options.filter(".n2-active").get(0)),NextendElement.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendElement.prototype),i.prototype.constructor=i,i.prototype.selectOption=function(t){var i=this.getIndex(t.currentTarget);if(i!=this.active){this.options.eq(i).addClass("n2-active"),this.options.eq(this.active).removeClass("n2-active"),this.active=i;var s=e(t.currentTarget).data("value");this.insideChange(s),this.setValue(s)}},i.prototype.setValue=function(e){this.$container.removeClass("n2-ss-background-type-"+this.value),this.value=e,this.$container.addClass("n2-ss-background-type-"+this.value)},i.prototype.insideChange=function(e){this.element.val(e),this.triggerInsideChange()},i.prototype.getIndex=function(t){return e.inArray(t,this.options)},t.NextendElementBackground=i}(n2,window),function(e,t){function i(t){this.status=0,this.element=e("#"+t),this.$container=e(".n2-ss-parent-picker"),this.overlays=null,this.aligns=this.element.parent().parent().siblings(),this.picker=this.element.siblings(".n2-ss-layer-picker").on({click:e.proxy(function(){this.change("")},this)}),NextendElement.prototype.constructor.apply(this,arguments)}var s={INITIALIZED:0,PICK_PARENT:1,PICK_CHILD:2,PICK_PARENT_ALIGN:3,PICK_CHILD_ALIGN:4},n='<div class="n2-ss-picker-overlay-tile" data-align="left" data-valign="top" /><div class="n2-ss-picker-overlay-tile" data-align="center" data-valign="top" style="left:33%;top:0;" /><div class="n2-ss-picker-overlay-tile" data-align="right" data-valign="top" style="left:66%;top:0;width:34%;" /><div class="n2-ss-picker-overlay-tile" data-align="left" data-valign="middle" style="left:0;top:33%;" /><div class="n2-ss-picker-overlay-tile" data-align="center" data-valign="middle" style="left:33%;top:33%; " /><div class="n2-ss-picker-overlay-tile" data-align="right" data-valign="middle" style="left:66%;top:33%;width:34%;" /><div class="n2-ss-picker-overlay-tile" data-align="left" data-valign="bottom" style="left:0;top:66%;height:34%;" /><div class="n2-ss-picker-overlay-tile" data-align="center" data-valign="bottom" style="left:33%;top:66%;height:34%;" /><div class="n2-ss-picker-overlay-tile" data-align="right" data-valign="bottom" style="left:66%;top:66%;width:34%;height:34%;" />';i.prototype=Object.create(NextendElement.prototype),i.prototype.constructor=i,i.prototype.click=function(t){return e("#n2-admin").hasClass("n2-ss-mode-desktopPortrait")?void(this.status==s.INITIALIZED?(this.data={parent:null,parentVAlign:null,parentHAlign:null,child:null,childVAlign:null,childHAlign:null},e("body").on("mousedown.n2-ss-parent-linker",e.proxy(function(t){var i=e(t.target);i.parent();i.hasClass("n2-ss-picker-overlay")||i.hasClass("n2-ss-picker-overlay-tile")||this.destroy()},this)),NextendEsc.add(e.proxy(function(){return this.destroy(),!1},this)),this.pickParent(t)):(this.data=null,this.change(""),this.destroy())):void nextend.notificationCenter.notice("To chain layers together, please switch to desktop portrait mode!")},i.prototype.pickParent=function(t){var i=nextend.smartSlider.layerManager,n=e(i.mainLayerGroup.getChildLayersRecursive(!0));if(0==n.length)this.destroy();else{this.status=s.PICK_PARENT,nextend.tooltipMouse.show("Pick the parent layer!",t);e('<div class="n2-ss-picker-overlay"></div>').appendTo(n).on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation();var i=e(t.currentTarget).parent();i.data("layerObject");this.data.parent=i,this._destroy(),this.pickParentAlign(t)},this))}},i.prototype.pickParentAlign=function(t){this.status=s.PICK_PARENT_ALIGN,nextend.tooltipMouse.show("Pick the align point of the parent layer!",t);var i=e(n).appendTo(this.data.parent).on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation();var s=e(t.currentTarget);this.data.parentHAlign=s.data("align"),this.data.parentVAlign=s.data("valign"),s.off("click").addClass("n2-active"),i.not(s).remove(),this.pickChild(t)},this))},i.prototype.pickChild=function(t){this.status=s.PICK_CHILD,nextend.tooltipMouse.show("Pick the child layer!",t);var i=nextend.smartSlider.layerManager,n=e(i.mainLayerGroup.getChildLayersRecursive(!0)).not(this.data.parent),r=function(t){var i=t.data("layerObject").getProperty(!1,"parentid");i&&""!=i&&r(e("#"+i)),n=n.not(t)};if(r(this.data.parent),!n.length)return nextend.notificationCenter.error("There is no possible child layer for the selected parent layer!"),void this.destroy();var a=e('<div class="n2-ss-picker-overlay"></div>').appendTo(n).on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation();var i=e(t.currentTarget).parent();i.data("layerObject");this.data.child=i,a.remove(),this.pickChildAlign(t)},this))},i.prototype.pickChildAlign=function(t){this.status=s.PICK_CHILD_ALIGN,nextend.tooltipMouse.show("Pick the align point of the child layer!",t);e(n).appendTo(this.data.child).on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation();var i=e(t.currentTarget);this.data.childHAlign=i.data("align"),this.data.childVAlign=i.data("valign"),this.done()},this))},i.prototype._destroy=function(){e(".n2-ss-picker-overlay").remove(),e(".n2-ss-picker-overlay-tile").remove()},i.prototype.destroy=function(){nextend.tooltipMouse.hide(),this._destroy(),e("body").off(".n2-ss-parent-linker"),NextendEsc.pop(),this.status=s.INITIALIZED},i.prototype.done=function(){this.data.child.data("layerObject").parentPicked(this.data.parent.data("layerObject"),this.data.parentHAlign,this.data.parentVAlign,this.data.childHAlign,this.data.childVAlign),this.destroy()},i.prototype.change=function(e){this.element.val(e).trigger("change"),this._setValue(e),this.triggerOutsideChange()},i.prototype.insideChange=function(e){this.element.val(e),this._setValue(e),this.triggerInsideChange()},i.prototype._setValue=function(e){e&&""!=e?this.$container.css("display",""):this.$container.css("display","none")},t.NextendElementLayerPicker=i}(n2,window),function(e,t){function i(t){this.element=e("#"+t),this.setAttribute(),this.element.on("nextendChange",e.proxy(this.setAttribute,this))}i.prototype.setAttribute=function(){e("#n2-admin").attr("data-slider-type",this.element.val()),"block"==this.element.val()&&e(".n2-fm-shadow").trigger("click")},t.NextendElementSliderType=i}(n2,window),function(e,t){function i(t){this.element=e("#"+t),this.area=e("#"+t+"_area"),this.areas=this.area.find(".n2-area"),this.areas.on("click",e.proxy(this.chooseArea,this)),NextendElement.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendElement.prototype),i.prototype.constructor=i,i.prototype.chooseArea=function(t){var i=parseInt(e(t.target).data("area"));this.element.val(i),this.setSelected(i),this.triggerOutsideChange()},i.prototype.insideChange=function(e){e=parseInt(e),this.element.val(e),this.setSelected(e),this.triggerInsideChange()},i.prototype.setSelected=function(e){this.areas.removeClass("n2-active"),this.areas.eq(e-1).addClass("n2-active")},t.NextendElementSliderWidgetArea=i}(n2,window),function(e,t){function i(t){this.element=e("#"+t+"-mode"),this.container=this.element.closest(".n2-form-element-mixed"),this.tabs=this.container.find("> .n2-mixed-group"),this.element.on("nextendChange",e.proxy(this.onChange,this)),this.onChange()}i.prototype.onChange=function(){var e=this.element.val();"advanced"==e?(this.tabs.eq(2).css("display",""),this.tabs.eq(1).css("display","none")):(this.tabs.eq(1).css("display",""),this.tabs.eq(2).css("display","none"))},t.NextendElementWidgetPosition=i}(n2,window),function(e,t,i,s){"use strict";function n(){this._refreshTimeout=null,this.modal=!1,this.group=0,e.generator=this;var i=e.$currentSlideElement.data("variables");if(i){this.variables=i;for(var s in this.variables)!isNaN(parseFloat(s))&&isFinite(s)&&(this.group=Math.max(this.group,parseInt(s)+1));this.fill=this.generatorFill,this.group>0&&(this.registerField=this.generatorRegisterField,this.button=t('<a href="#" class="n2-button n2-button-normal n2-button-xs n2-radius-s n2-button-blue n2-h5 n2-uc" style="position:absolute;right: -2px;top: -18px;">Variable</a>').on("click",t.proxy(function(e){e.preventDefault(),this.showModal()},this)),this.registerField(t("#slidetitle")),this.registerField(t("#slidedescription")),this.registerField(t("#slidethumbnail")),this.registerField(t("#slidebackgroundImage")),this.registerField(t("#slidebackgroundAlt")),this.registerField(t("#slidebackgroundTitle")),this.registerField(t("#slidebackgroundVideoMp4")),this.registerField(t("#slidebackgroundVideoWebm")),this.registerField(t("#slidebackgroundVideoOgg")),this.registerField(t("#linkslidelink_0")),this.registerField(t("#layergenerator-visible")),this.registerField(t("#layergroup-generator-visible")),t("body").addClass("n2-ss-dynamic-slide")),this.initSlideDataRefresh()}else this.variables=null}n.prototype.isDynamicSlide=function(){return this.group>0},n.prototype.splitTokens=function(e){for(var t=[],i="",s=0,n=0;n<e.length;n++){var r=e[n];","===r&&0===s?(t.push(i),i=""):(i+=r,"("===r?s++:")"===r&&s--)}return i.length&&t.push(i),t},n.prototype.fill=function(e){return e},n.prototype.generatorFill=function(e){return e.replace(/{((([a-z]+)\(([^}]+)\))|([a-zA-Z0-9][a-zA-Z0-9_\/]*))}/g,t.proxy(this.parseFunction,this))},n.prototype.parseFunction=function(e,t,i,s,n,r){if("undefined"==typeof r){for(var a=this.splitTokens(n),o=0;o<a.length;o++)a[o]=this.parseVariable(a[o]);return this[s].apply(this,a)}return this.parseVariable(r)},n.prototype.parseVariable=function(e){var t=e.match(/^("|')(.*)("|')$/);if(t)return t[2];var i=e.match(/((([a-z]+)\(([^}]+)\)))/);if(i)return this.parseFunction.apply(this,i);var s=e.match(/([a-zA-Z][0-9a-zA-Z_]*)(\/([0-9a-z]+))?/);if(s){var n=s[3];if("undefined"==typeof n)n=0;else{var r=parseInt(n);isNaN(r)||(n=Math.max(n,1)-1)}return"undefined"!=typeof this.variables[n]&&"undefined"!=typeof this.variables[n][s[1]]?this.variables[n][s[1]]:""}return e},n.prototype.fallback=function(e,t){return""==e?t:e},n.prototype.cleanhtml=function(e){return strip_tags(e,"<p><a><b><br /><br/><i>")},n.prototype.removehtml=function(e){return t("<div>"+e+"</div>").text()},n.prototype.splitbychars=function(e,t,i){return e.substr(t,i)},n.prototype.splitbywords=function(e,t,i){var s=e,n=s.length,r=Math.max(0,0==t?0:s.indexOf(" ",t)),a=Math.max(0,i>n?n:s.indexOf(" ",i));return 0==a&&n>=i&&(a=n),s.substr(r,a)},n.prototype.findimage=function(e,t){var i=e,s=/(<img.*?src=[\'"](.*?)[\'"][^>]*>)|(background(-image)??\s*?:.*?url\((["|\']?)?(.+?)(["|\']?)?\))/gi,n=[],r=null;for(t="undefined"!=typeof t?parseInt(t)-1:0;r=s.exec(i);)"undefined"!=typeof r[2]?n.push(r[2]):"undefined"!=typeof r[6]&&n.push(r[6]);return n.length?n.length>t?n[t]:n[n.length-1]:""},n.prototype.findlink=function(e,t){var i=e,s=/href=["\']?([^"\'>]+)["\']?/gi,n=[],r=null;for(t="undefined"!=typeof t?parseInt(t)-1:0;r=s.exec(i);)"undefined"!=typeof r[1]&&n.push(r[1]);return n.length?n.length>t?n[t]:n[n.length-1]:""},n.prototype.removevarlink=function(e){var t=String(e),i=/<a href=\"(.*?)\">(.*?)<\/a>/g;return t.replace(i,"")},n.prototype.registerField=function(e){},n.prototype.generatorRegisterField=function(e){var i=e.parent();i.on({mouseenter:t.proxy(function(){this.activeField=e,this.button.prependTo(i)},this)})},n.prototype.getModal=function(){var e=this;if(!this.modal){var i={key:"",group:1,filter:"no",split:"no",splitStart:0,splitLength:300,findImage:0,findImageIndex:1,findLink:0,findLinkIndex:1,removeVarLink:0},s=function(){var e=i.key+"/"+i.group;return i.findImage&&(e="findimage("+e+","+Math.max(1,i.findImageIndex)+")"),i.findLink&&(e="findlink("+e+","+Math.max(1,i.findLinkIndex)+")"),i.removeVarLink&&(e="removevarlink("+e+")"),"no"!=i.filter&&(e=i.filter+"("+e+")"),"no"!=i.split&&i.splitStart>=0&&i.splitLength>0&&(e=i.split+"("+e+","+i.splitStart+","+i.splitLength+")"),"{"+e+"}"},n=t('<div class="n2-generator-result-container" />'),r=function(){n.html(t("<div/>").text(e.fill(s())).html())},a=e.group,o=null,l=null,d=t('<div class="n2-generator-insert-variable"/>'),h=NextendModal.prototype.createHeading(n2_("Choose the group")).appendTo(d),p=t('<div class="n2-group-container" />').appendTo(d);d.append(NextendModal.prototype.createHeading(n2_("Choose the variable")));var c=t('<div class="n2-variable-container" />').appendTo(d),u=t('<div class="n2-generator-functions-container n2-form-element-mixed" />').appendTo(t('<div class="n2-form" />').appendTo(d));d.append(NextendModal.prototype.createHeading(n2_("Result"))),n.appendTo(d),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Filter")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-list"><select autocomplete="off" name="filter" id="n2-generator-function-filter"><option selected="selected" value="no">'+n2_("No")+'</option><option value="cleanhtml">'+n2_("Clean HTML")+'</option><option value="removehtml">'+n2_("Remove HTML")+"</option></select></div></div></div>").appendTo(u);var y=u.find("#n2-generator-function-filter");y.on("change",t.proxy(function(){i.filter=y.val(),r()},this)),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Split by chars")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-list"><select autocomplete="off" name="split" id="n2-generator-function-split"><option selected="selected" value="no">'+n2_("No")+'</option><option value="splitbychars">'+n2_("Strict")+'</option><option value="splitbywords">'+n2_("Respect words")+'</option></select></div><div class="n2-form-element-text n2-text-has-unit n2-border-radius"><div class="n2-text-sub-label n2-h5 n2-uc">'+n2_("Start")+'</div><input type="text" autocomplete="off" style="width: 22px;" class="n2-h5" value="0" id="n2-generator-function-split-start"></div><div class="n2-form-element-text n2-text-has-unit n2-border-radius"><div class="n2-text-sub-label n2-h5 n2-uc">'+n2_("Length")+'</div><input type="text" autocomplete="off" style="width: 22px;" class="n2-h5" value="300" id="n2-generator-function-split-length"></div></div></div>').appendTo(u);var f=u.find("#n2-generator-function-split");f.on("change",t.proxy(function(){i.split=f.val(),r()},this));var g=u.find("#n2-generator-function-split-start");g.on("change",t.proxy(function(){i.splitStart=parseInt(g.val()),r()},this));var m=u.find("#n2-generator-function-split-length");m.on("change",t.proxy(function(){i.splitLength=parseInt(m.val()),r()},this)),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Find image")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-onoff"><div class="n2-onoff-slider"><div class="n2-onoff-no"><i class="n2-i n2-i-close"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-yes"><i class="n2-i n2-i-tick"></i></div></div><input type="hidden" autocomplete="off" value="0" id="n2-generator-function-findimage"></div><div class="n2-form-element-text n2-text-has-unit n2-border-radius"><div class="n2-text-sub-label n2-h5 n2-uc">'+n2_("Index")+'</div><input type="text" autocomplete="off" style="width: 22px;" class="n2-h5" value="1" id="n2-generator-function-findimage-index"></div></div></div>').appendTo(u);var v=u.find("#n2-generator-function-findimage");v.on("nextendChange",t.proxy(function(){i.findImage=parseInt(v.val()),r()},this));var x=u.find("#n2-generator-function-findimage-index");x.on("change",t.proxy(function(){i.findImageIndex=parseInt(x.val()),r()},this)),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Find link")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-onoff"><div class="n2-onoff-slider"><div class="n2-onoff-no"><i class="n2-i n2-i-close"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-yes"><i class="n2-i n2-i-tick"></i></div></div><input type="hidden" autocomplete="off" value="0" id="n2-generator-function-findlink"></div><div class="n2-form-element-text n2-text-has-unit n2-border-radius"><div class="n2-text-sub-label n2-h5 n2-uc">'+n2_("Index")+'</div><input type="text" autocomplete="off" style="width: 22px;" class="n2-h5" value="1" id="n2-generator-function-findlink-index"></div></div></div>').appendTo(u);var b=u.find("#n2-generator-function-findlink");b.on("nextendChange",t.proxy(function(){i.findLink=parseInt(b.val()),r()},this));var S=u.find("#n2-generator-function-findlink-index");S.on("change",t.proxy(function(){i.findLinkIndex=parseInt(S.val()),r()},this)),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Remove links")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-onoff"><div class="n2-onoff-slider"><div class="n2-onoff-no"><i class="n2-i n2-i-close"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-yes"><i class="n2-i n2-i-tick"></i></div></div><input type="hidden" autocomplete="off" value="0" id="n2-generator-function-removevarlink"></div></div></div>').appendTo(u);var k=u.find("#n2-generator-function-removevarlink");k.on("nextendChange",t.proxy(function(){i.removeVarLink=parseInt(k.val()),r()},this));var w=u.find("#n2-generator-function-removevarlink-index");w.on("change",t.proxy(function(){i.removeVarLinkIndex=parseInt(w.val()),r()},this));for(var L in this.variables[0])t('<a href="#" class="n2-button n2-button-normal n2-button-s n2-button-grey n2-radius-s">'+L+"</a>").on("click",t.proxy(function(e,s){s.preventDefault(),o.removeClass("n2-active"),t(s.currentTarget).addClass("n2-active"),i.key=e,r()},this,L)).appendTo(c);o=c.find("a"),o.eq(0).trigger("click"),1==a&&(h.css("display","none"),p.css("display","none"));for(var C=0;a>C;C++)t('<a href="#" class="n2-button n2-button-normal n2-button-s n2-button-grey n2-radius-s">'+(C+1)+"</a>").on("click",t.proxy(function(e,s){s.preventDefault(),l.removeClass("n2-active"),t(s.currentTarget).addClass("n2-active"),i.group=e+1,r()},this,C)).appendTo(p);l=p.find("a"),l.eq(0).trigger("click");var I=!1;this.modal=new NextendModal({zero:{size:[1e3,a>1?560:490],title:n2_("Insert variable"),back:!1,close:!0,content:d,controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green">'+n2_("Insert")+"</a>"],fn:{show:function(){I||(new NextendElementOnoff("n2-generator-function-findimage"),new NextendElementOnoff("n2-generator-function-findlink"),new NextendElementOnoff("n2-generator-function-removevarlink"),I=!0),this.controls.find(".n2-button").on("click",t.proxy(function(t){t.preventDefault(),e.insert(s()),this.hide(t)},this))}}}},!1),this.modal.setCustomClass("n2-ss-generator-modal")}return this.modal},n.prototype.showModal=function(){this.getModal().show()},n.prototype.insert=function(e){this.activeField.val(e).trigger("change")},n.prototype.initSlideDataRefresh=function(){var e=t("#slidetitle").on("nextendChange",t.proxy(function(){this.variables.slide.name=e.val(),this.refresh()},this)),i=t("#slidedescription").on("nextendChange",t.proxy(function(){this.variables.slide.description=i.val(),this.refresh()},this))},n.prototype.refresh=function(){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),this._refreshTimeout=setTimeout(t.proxy(this._refresh,this),100)},n.prototype._refresh=function(){for(var t=e.layerManager.layerList,i=0;i<t.length;i++)for(var s=t[i].items,n=0;n<s.length;n++)s[n].reRender()},i.SmartSliderAdminGenerator=n}(nextend.smartSlider,n2,window),function(e,t,i){function s(t){this.ajaxUrl=t,e("#generatorrecord-viewer").on("click",e.proxy(this.showRecords,this))}s.prototype.showRecords=function(t){t.preventDefault(),NextendAjaxHelper.ajax({type:"POST",url:this.ajaxUrl,data:e("#smartslider-form").serialize(),dataType:"json"}).done(function(e){var t=new NextendModal({zero:{size:[1300,700],title:"Records",content:e.data.html}},!0);t.content.css("overflow","auto")}).error(function(e){if(200==e.status){var t=new NextendModal({zero:{size:[1300,700],title:"Response",content:e.responseText}},!0);t.content.css("overflow","auto")}})},t.NextendSmartSliderGeneratorRecords=s}(n2,window),function(e,t,i,s){function n(e,n,r,a){this.item=e,this.layer=n,this.itemEditor=r,this.type=this.item.data("item"),this.values=this.item.data("itemvalues"),"object"!=typeof this.values&&(this.values=t.parseJSON(this.values)),i["NextendSmartSliderItemParser_"+this.type]!==s?this.parser=new i["NextendSmartSliderItemParser_"+this.type](this,r.getItemType(this.type)):this.parser=new i.NextendSmartSliderItemParser(this),this.item.data("item",this),"undefined"!=typeof a&&(0==this.layer.items.length||this.layer.items.length<=a?this.item.appendTo(this.layer.layer):this.layer.items[a].item.before(this.item)),"undefined"==typeof a||0==this.layer.items.length||this.layer.items.length<=a?this.layer.items.push(this):this.layer.items.splice(a,0,this),0===this.item.children().length&&this.reRender(),t("<div/>").addClass("ui-helper ui-item-overlay").css("zIndex",89).appendTo(this.item),t(window).trigger("ItemCreated")}n.prototype.changeValue=function(e,i){this==this.itemEditor.activeItem?t("#item_"+this.type+e).data("field").insideChange(i):this.values[e]=i},n.prototype.activate=function(e,t,i){this.itemEditor.setActiveItem(this,t,i)&&this.parser.activate()},n.prototype.deActivate=function(){this.parser.deActivate()},n.prototype.render=function(e,i,s){this.layer.layer.triggerHandler("itemRender"),this.item.html(this.parser.render(e,i)),this.values=s,t("<div/>").addClass("ui-helper ui-item-overlay").css("zIndex",89).appendTo(this.item);var n=this.parser.getName(i);n=n===!1?this.type:n.replace(/[<>]/gi,""),this.layer.rename(n,!1),this.layer.update()},n.prototype.reRender=function(e){var i={},s=this.itemEditor,n=s.getItemType(this.type),r=n.template;for(var a in this.values)i[a]=this.values[a];i=t.extend({},this.parser.getDefault(),i,e);var o=t.extend({},i);this.parser.parseAll(i,this),this.values=o;for(var l in i){var d=new RegExp("\\{"+l+"\\}","g");r=r.replace(d,i[l])}this.render(t(r),i,this.values)},n.prototype.duplicate=function(){this.layer.addItem(this.getHTML(),!0)},n.prototype["delete"]=function(){this.item.trigger("mouseleave"),this.item.remove(),this.itemEditor.activeItem==this&&(this.itemEditor.activeItem=null)},n.prototype.getHTML=function(e){var i="";return i=e?"["+this.type+' values="'+Base64.encode(JSON.stringify(this.values))+'"]':t('<div class="n2-ss-item n2-ss-item-'+this.type+'"></div>').attr("data-item",this.type).attr("data-itemvalues",JSON.stringify(this.values))},n.prototype.getData=function(){return{type:this.type,values:this.values}},n.prototype.history=function(e,i,s){switch(e){case"updateCurrentItem":this.reRender(t.extend(!0,{},i)),this.values=i,this.itemEditor.setActiveItem(this,null,!0)}},i.NextendSmartSliderItem=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e){this.suppressChange=!1,this.activeItemOriginalData=null,this.layerEditor=e,this._initInstalledItems(),this.form={},this.activeForm={form:t("<div></div>")}}n.prototype.setActiveItem=function(e,i,s){if(e!=this.activeItem||s){this.activeItemOriginalData=null;var n=e.type,r=e.values;this.activeForm.form.css("display","none"),this.activeForm=this.getItemType(n),this.activeItem&&this.activeItem.deActivate(),this.activeItem=e,this.suppressChange=!0;for(var a in r){var o=t("#item_"+n+a).data("field");o&&o.insideChange(r[a])}return this.suppressChange=!1,this.activeForm.form.css("display","block"),this.focusFirst(i),!0}return!1},n.prototype.focusFirst=function(e){var t=this.activeForm.fields.eq(0).data("field");nextend.smartSlider.generator.isDynamicSlide()&&t.connectedField&&t.connectedField instanceof NextendElementImage||this.activeForm.fields.eq(0).data("field").focus("undefined"!=typeof e&&e);
4
- },n.prototype._initInstalledItems=function(){t(".n2-ss-core-item").on("click",t.proxy(function(e){this.createLayerItem(this.layerEditor.getActiveGroup(),t(e.currentTarget).data("item"),"click")},this))},n.prototype.createLayerItem=function(s,n,r){s=s||this.layerEditor.getActiveGroup();var a=this.getItemType(n),o=this.layerEditor.createLayer(s,t(".n2-ss-core-item-"+n).data("layerproperties")),l=t("<div></div>").data("item",n).data("itemvalues",t.extend(!0,{},a.values)).addClass("n2-ss-item n2-ss-item-"+n),d=new i.NextendSmartSliderItem(l,o,this,0);return r&&"click"==r?o.layer.trigger("mousedown",["create"]).trigger("mouseup",["create"]).trigger("click",["create"]):o.activate(),e.sidebarManager.switchTab("item"),e.history.add(t.proxy(function(){return[this,"createLayer","create","delete",[s,d,n]]},this)),d},n.prototype.getItemType=function(e){if(this.form[e]===s){var i=t("#smartslider-slide-toolbox-item-type-"+e),n={form:i,template:i.data("itemtemplate"),values:i.data("itemvalues"),fields:i.find('[name^="item_'+e+'"]'),fieldNameRegexp:new RegExp("item_"+e+"\\[(.*?)\\]","")};n.fields.on({nextendChange:t.proxy(this.updateCurrentItem,this),keydown:t.proxy(this.updateCurrentItemDeBounced,this)}),this.form[e]=n}return this.form[e]},n.prototype.updateCurrentItem=function(i){if(!this.suppressChange){null===this.activeItemOriginalData&&(this.activeItemOriginalData=t.extend({},this.activeItem.values));var s={},n={},r=this.form[this.activeItem.type],a=r.template,o=this.activeItem.parser;r.fields.each(t.proxy(function(e,i){var i=t(i),a=i.attr("name").match(r.fieldNameRegexp)[1];n[a]=s[a]=i.val()},this)),s=t.extend({},o.getDefault(),s),o.parseAll(s,this.activeItem);for(var l in s){var d=new RegExp("\\{"+l+"\\}","g");a=a.replace(d,s[l])}i&&"nextendChange"==i.type&&(e.history.add(t.proxy(function(){return[this.activeItem,"updateCurrentItem",t.extend({},n),this.activeItemOriginalData,[]]},this)),this.activeItemOriginalData=null),this.activeItem.render(t(a),s,n)}},n.prototype.updateCurrentItemDeBounced=NextendDeBounce(function(e){this.updateCurrentItem(e)},100),n.prototype.history=function(t,i,s){switch(t){case"createLayer":switch(i){case"delete":s[1].layer["delete"]();break;case"create":var n=this.createLayerItem(s[0],s[2]);e.history.changeFuture(s[1].layer,n.layer),e.history.changeFuture(s[1],n)}}},i.NextendSmartSliderItemManager=n}(nextend.smartSlider,n2,window),function(e,t,i){function s(e,t){this.pre="div#"+nextend.smartSlider.frontend.sliderElement.attr("id")+" ",this.formData=t,this.item=e,this.fonts=[],this.styles=[],this.needFill=[],this.added()}s.prototype.getDefault=function(){return{}},s.prototype.added=function(){},s.prototype.addedFont=function(t,i){var s=e("#item_"+this.item.type+i);s.length&&(this.fonts.push({mode:t,name:i,field:s.data("field"),def:this.formData.values[i]}),e.when(nextend.fontManager.addVisualUsage(t,this.item.values[i],this.pre)).done(e.proxy(function(e){e||this.item.changeValue(i,"")},this)))},s.prototype.addedStyle=function(t,i){var s=e("#item_"+this.item.type+i);s.length&&(this.styles.push({mode:t,name:i,field:s.data("field"),def:this.formData.values[i]}),e.when(nextend.styleManager.addVisualUsage(t,this.item.values[i],this.pre)).done(e.proxy(function(e){e||this.item.changeValue(i,"")},this)))},s.prototype.parseAll=function(e,t){for(var i=0;i<this.fonts.length;i++)e[this.fonts[i].name+"class"]=nextend.fontManager.getClass(e[this.fonts[i].name],this.fonts[i].mode)+" ";for(var i=0;i<this.styles.length;i++)e[this.styles[i].name+"class"]=nextend.styleManager.getClass(e[this.styles[i].name],this.styles[i].mode)+" ";for(var i=0;i<this.needFill.length;i++)"undefined"!=typeof e[this.needFill[i]]&&(e[this.needFill[i]]=nextend.smartSlider.generator.fill(e[this.needFill[i]]+""))},s.prototype.render=function(e,t){return e},s.prototype.getName=function(e){return!1},s.prototype.resizeLayerToImage=function(t,i){e("<img/>").attr("src",i).load(function(){var e=t.layer.layerEditor.slideSize,i=e.width,s=e.height;if(this.width>0&&this.height>0){if(i=parseInt(Math.min(this.width,i)),s=parseInt(Math.min(this.height,s)),nextend.smartSlider.history.off(),e.width/e.height<=i/s)t.layer.setProperty("width",i),t.layer.setProperty("height",this.height*i/this.width);else{var n=Math.min(this.width*e.height/this.height,i);t.layer.setProperty("width",n),t.layer.setProperty("height",this.height*n/this.width)}nextend.smartSlider.history.on()}})},s.prototype.fitLayer=function(e){return!1},s.prototype.activate=function(){nextend.basicCSS.activate("ss3item"+this.item.type,this.item.values,{font:this.fonts,style:this.styles})},s.prototype.deActivate=function(){nextend.basicCSS.deActivate()},t.NextendSmartSliderItemParser=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.added=function(){this.needFill=["content","url"],this.addedFont("link","font"),this.addedStyle("button","style"),nextend.smartSlider.generator.registerField(e("#item_buttoncontent")),nextend.smartSlider.generator.registerField(e("#linkitem_buttonlink_0"))},s.prototype.getName=function(e){return e.content},s.prototype.parseAll=function(e){var t=e.link.split("|*|");e.url=t[0],e.target=t[1],delete e.link,0|e.fullwidth?e.display="block;":e.display="inline-block;",e.extrastyle=0|e.nowrap?"white-space: nowrap;":"",NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments)},t.NextendSmartSliderItemParser_button=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.getDefault=function(){return{link:"#|*|_self",font:"",style:""}},s.prototype.added=function(){this.needFill=["heading","url"],this.addedFont("hover","font"),this.addedStyle("heading","style"),nextend.smartSlider.generator.registerField(e("#item_headingheading")),nextend.smartSlider.generator.registerField(e("#linkitem_headinglink_0"))},s.prototype.getName=function(e){return e.heading},s.prototype.parseAll=function(t){t.uid=e.fn.uid();var i=t.link.split("|*|");t.url=i[0],t.target=i[1],delete t.link,0|t.fullwidth?t.display="block;":t.display="inline-block;",t.extrastyle=0|t.nowrap?"white-space: nowrap;":"",t.heading=e("<div>"+t.heading+"</div>").text().replace(/\n/g,"<br />"),t.priority=2,t["class"]="",NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments),"#"==t.url||""==t.url?(t.afontclass="",t.astyleclass=""):(t.afontclass=t.fontclass,t.fontclass="",t.astyleclass=t.styleclass,t.styleclass="")},s.prototype.render=function(e,t){if("#"==t.url||""==t.url){var i=e.find("a");i.parent().html(i.html())}return e},t.NextendSmartSliderItemParser_heading=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.getDefault=function(){return{size:"100%|*|auto",link:"#|*|_self",style:""}},s.prototype.added=function(){this.needFill=["image","url"],this.addedStyle("box","style"),nextend.smartSlider.generator.registerField(e("#item_imageimage")),nextend.smartSlider.generator.registerField(e("#item_imagealt")),nextend.smartSlider.generator.registerField(e("#item_imagetitle")),nextend.smartSlider.generator.registerField(e("#linkitem_imagelink_0"))},s.prototype.getName=function(e){return e.image.split("/").pop()},s.prototype.parseAll=function(e,t){var i=e.size.split("|*|");e.width=i[0],e.height=i[1],delete e.size;var s=e.link.split("|*|");e.url=s[0],e.target=s[1],delete e.link,NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments),t&&"$system$/images/placeholder/image.png"==t.values.image&&e.image!=t.values.image?(e.image=nextend.imageHelper.fixed(e.image),this.resizeLayerToImage(t,e.image)):e.image=nextend.imageHelper.fixed(e.image)},s.prototype.fitLayer=function(e){return this.resizeLayerToImage(e,nextend.imageHelper.fixed(e.values.image)),!0},s.prototype.render=function(e,t){return"#"==t.url&&e.html(e.children("a").html()),e},t.NextendSmartSliderItemParser_image=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}function n(e){var t=!1,i=!1,s="table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|legend|section|article|aside|hgroup|header|footer|nav|figure|details|menu|summary";return-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,function(e){return e.replace(/[\r\n]+/g,"")})),e=e.replace(/<[^<>]+>/g,function(e){return e.replace(/[\r\n]+/g," ")}),-1===e.indexOf("<pre")&&-1===e.indexOf("<script")||(t=!0,e=e.replace(/<(pre|script)[^>]*>[\s\S]+?<\/\1>/g,function(e){return e.replace(/(\r\n|\n)/g,"<wp-line-break>")})),-1!==e.indexOf("[caption")&&(i=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(e){return e=e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>"),e=e.replace(/<[a-zA-Z0-9]+( [^<>]+)?>/g,function(e){return e.replace(/[\r\n\t]+/," ")}),e.replace(/\s*\n\s*/g,"<wp-temp-br />")})),e+="\n\n",e=e.replace(/<br \/>\s*<br \/>/gi,"\n\n"),e=e.replace(new RegExp("(<(?:"+s+")(?: [^>]*)?>)","gi"),"\n$1"),e=e.replace(new RegExp("(</(?:"+s+")>)","gi"),"$1\n\n"),e=e.replace(/<hr( [^>]*)?>/gi,"<hr$1>\n\n"),e=e.replace(/\r\n|\r/g,"\n"),e=e.replace(/\n\s*\n+/g,"\n\n"),e=e.replace(/([\s\S]+?)\n\n/g,"<p>$1</p>\n"),e=e.replace(/<p>\s*?<\/p>/gi,""),e=e.replace(new RegExp("<p>\\s*(</?(?:"+s+")(?: [^>]*)?>)\\s*</p>","gi"),"$1"),e=e.replace(/<p>(<li.+?)<\/p>/gi,"$1"),e=e.replace(/<p>\s*<blockquote([^>]*)>/gi,"<blockquote$1><p>"),e=e.replace(/<\/blockquote>\s*<\/p>/gi,"</p></blockquote>"),e=e.replace(new RegExp("<p>\\s*(</?(?:"+s+")(?: [^>]*)?>)","gi"),"$1"),e=e.replace(new RegExp("(</?(?:"+s+")(?: [^>]*)?>)\\s*</p>","gi"),"$1"),e=e.replace(/\s*\n/gi,"<br />\n"),e=e.replace(new RegExp("(</?(?:"+s+")[^>]*>)\\s*<br />","gi"),"$1"),e=e.replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)>)/gi,"$1"),e=e.replace(/(?:<p>|<br ?\/?>)*\s*\[caption([^\[]+)\[\/caption\]\s*(?:<\/p>|<br ?\/?>)*/gi,"[caption$1[/caption]"),e=e.replace(/(<(?:div|th|td|form|fieldset|dd)[^>]*>)(.*?)<\/p>/g,function(e,t,i){return i.match(/<p( [^>]*)?>/)?e:t+"<p>"+i+"</p>"}),t&&(e=e.replace(/<wp-line-break>/g,"\n")),i&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),e}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.getDefault=function(){return{contentmobile:"",contenttablet:"",font:"",style:""}},s.prototype.added=function(){this.needFill=["content","contenttablet","contentmobile"],this.addedFont("paragraph","font"),this.addedStyle("heading","style"),nextend.smartSlider.generator.registerField(e("#item_textcontent")),nextend.smartSlider.generator.registerField(e("#item_textcontenttablet")),nextend.smartSlider.generator.registerField(e("#item_textcontentmobile"))},s.prototype.getName=function(e){return e.content},s.prototype.parseAll=function(e){NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments),e.p=n(e.content),e.ptablet=n(e.contenttablet),e.pmobile=n(e.contentmobile)},s.prototype.render=function(e,t){return""==t.contenttablet&&(e=e.filter(":not(.n2-ss-tablet)"),e.filter(".n2-ss-desktop").addClass("n2-ss-tablet")),""==t.contentmobile&&(e=e.filter(":not(.n2-ss-mobile)"),e.filter(".n2-ss-tablet, .n2-ss-desktop").last().addClass("n2-ss-mobile")),e.find("p").addClass(t.fontclass+" "+t.styleclass),e.find("a").on("click",function(e){e.preventDefault()}),e},t.NextendSmartSliderItemParser_text=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.added=function(){this.needFill=["vimeourl"],nextend.smartSlider.generator.registerField(e("#item_vimeovimeourl"))},s.prototype.getName=function(e){return e.vimeourl},s.prototype.parseAll=function(t,i){var s=i.values.vimeourl!=t.vimeourl;if(NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments),""==t.image&&(t.image="$system$/images/placeholder/video.png"),t.image=nextend.imageHelper.fixed(t.image),s&&""!=t.vimeourl){var n=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,r=t.vimeourl.match(n),a=!1;r?a=r[3]:t.vimeourl.match(/^[0-9]+$/)&&(a=t.vimeourl),a?NextendAjaxHelper.getJSON("https://vimeo.com/api/v2/video/"+encodeURI(a)+".json").done(e.proxy(function(t){e("#item_vimeoimage").val(t[0].thumbnail_large).trigger("change")},this)).fail(function(e){nextend.notificationCenter.error(e.responseText)}):nextend.notificationCenter.error("The provided URL does not match any known Vimeo url or code!")}},s.prototype.fitLayer=function(e){return!0},t.NextendSmartSliderItemParser_vimeo=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.added=function(){this.needFill=["youtubeurl","image","start"],nextend.smartSlider.generator.registerField(e("#item_youtubeyoutubeurl")),nextend.smartSlider.generator.registerField(e("#item_youtubeimage")),nextend.smartSlider.generator.registerField(e("#item_youtubestart"))},s.prototype.getName=function(e){return e.youtubeurl},s.prototype.parseAll=function(t,i){var s=i.values.youtubeurl!=t.youtubeurl;if(NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments),""==t.image&&(t.image="$system$/images/placeholder/video.png"),t.image=nextend.imageHelper.fixed(t.image),s){var n=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,r=t.youtubeurl.match(n);r?NextendAjaxHelper.getJSON("https://www.googleapis.com/youtube/v3/videos?id="+encodeURI(r[2])+"&part=snippet&key=AIzaSyC3AolfvPAPlJs-2FgyPJdEEKS6nbPHdSM").done(e.proxy(function(t){if(t.items.length){var s=t.items[0].snippet.thumbnails,n=s.maxres||s.standard||s.high||s.medium||s["default"],a=n.url;"{video_url}"==i.values.youtubeurl&&(a=a.replace(r[2],"{video_id}")),e("#item_youtubeimage").val(a).trigger("change")}},this)).fail(function(e){nextend.notificationCenter.error(e.error.errors[0].message)}):nextend.notificationCenter.error("The provided URL does not match any known YouTube url or code!")}},s.prototype.fitLayer=function(e){return!0},s.prototype.render=function(e,t){return parseInt(t.playbutton)||e.find(".n2-video-play").remove(),e},t.NextendSmartSliderItemParser_youtube=s}(n2,window),function(e,t,i,s){function n(){this.property={},this.deviceProperty={}}n.prototype.getMode=function(){return this.layerEditor.getMode()},n.prototype.getProperty=function(e,t){if(e){var i=this.deviceProperty[this.getMode()],s=this.deviceProperty.desktopPortrait;if("undefined"!=typeof i[t])return i[t];if("undefined"!=typeof s[t])return s[t]}return this.property[t]},n.prototype.store=function(i,s,n,r){var a=this.property[s];if(this.property[s]=n,i){var o=this.getMode();e.history.add(t.proxy(function(){return[this,"store",n,this.deviceProperty[o][s],[this.layer,i,s,o]]},this)),this.deviceProperty[o][s]=n}else e.history.add(t.proxy(function(){return[this,"store",n,a,[this.layer,i,s,this.getMode()]]},this));r&&this.render(s,n)},n.prototype.storeWithModifier=function(i,s,n,r){this.property[i]=s;var a=this.getMode();e.history.add(t.proxy(function(){return[this,"storeWithModifier",s,this.deviceProperty[a][i],[this.layer,i,a]]},this)),this.deviceProperty[a][i]=s,r&&this.renderWithModifier(i,s,n)},n.prototype.render=function(e,t){this["_sync"+e](t)},n.prototype.renderWithModifier=function(e,t,i){this["_sync"+e](Math.round(t*i))},n.prototype.isDimensionPropertyAccepted=function(e){return!(!(e+"").match(/[0-9]+%/)&&"auto"!=e)},n.prototype.history=function(e,t,i){switch(e){case"store":var s=this.getMode();i[1]&&i[3]!=s?this.deviceProperty[i[3]][i[2]]=t:this[e](i[1],i[2],t,!0),this._renderModeProperties(!0);break;case"storeWithModifier":var s=this.getMode(),n=1;switch(i[1]){case"width":case"left":n=this.layerEditor.getResponsiveRatio("h");break;case"height":case"top":n=this.layerEditor.getResponsiveRatio("v")}i[2]==s?this[e](i[1],t,n,!0):this.deviceProperty[i[2]][i[1]]=t,this._renderModeProperties(!0)}},i.NextendSmartSliderLayerDataStorageAbtract=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e,i){"undefined"==typeof this.layer&&(this.layer=null),this.layerEditor=e,i||(i=a),this.group=i,this.layers=[],this.zIndexList=[],this.$=t(this),this.createLayer(),this.layerContainerElement=this.layer,this.createLayerRow(),r=r.add(this.layersItemsUlElement),this.layersItemsUlElement.sortable({axis:"y",helper:"clone",distance:10,placeholder:"sortable-placeholder",forcePlaceholderSize:!1,tolerance:"intersect",connectWith:r,items:".n2-ss-layer-row",connectWith:this.layerEditor.layersItemsElement.find("ul"),start:t.proxy(this.layersSortableStart,this),stop:t.proxy(this.layersSortableStop,this)}).appendTo(this.layerRow)}var r=t(),a={zIndexList:[],reIndexLayers:function(){}};n.prototype.addLayerBeforeInit=function(e,t){this.moveLayerToGroup(e,t)},n.prototype.lateInit=function(e,t){this.layers.length||e?this.zIndex=e-(t-1):this.zIndex=this.group.zIndexList.length,"undefined"==typeof this.group.zIndexList[this.zIndex]?this.group.zIndexList[this.zIndex]=this:this.group.zIndexList.splice(this.zIndex,0,this),this.group.reIndexLayers(),this.layers.length>0&&this.reIndexLayers()},n.prototype.startWithExistingNodes=function(){this.layer.find("> div").each(t.proxy(function(e,i){var s=t(i);switch(s.data("type")){case"group":var n=new NextendSmartSliderLayerGroup(this.layerEditor,this,s,[]);n.lateInit(),n.startWithExistingNodes();break;case"layer":var r=new NextendSmartSliderLayer(this.layerEditor,this,s,this.layerEditor.itemEditor);this.layers.push(r)}},this)),this.layers.length>0&&this.reIndexLayers()},n.prototype.getChildLayersRecursive=function(e){for(var t=[],i=0;i<this.zIndexList.length;i++)this.zIndexList[i]instanceof NextendSmartSliderLayer?e?t.push(this.zIndexList[i].layer[0]):t.push(this.zIndexList[i]):t.push.apply(t,this.zIndexList[i].getChildLayersRecursive(e));return t},n.prototype.moveLayerToGroup=function(e,t){this.moveLayersToGroup([e],[t])},n.prototype.moveLayersToGroup=function(e,i){for(var s=[],n=0;n<e.length;n++){var r=e[n],a=r.group;if(this.layers.push(r),r.setGroup(this,i[n]),this!=a){for(var o=a.layers.length;o--;)a.layers[o]==r&&a.layers.splice(o,1);-1==t.inArray(a,s)&&s.push(a)}}for(var n=0;n<s.length;n++)s[n].reIndexLayers();this.reIndexLayers()},n.prototype.reIndexLayers=function(){this.zIndexList=this.zIndexList.filter(function(e){return e!=s});for(var e=this.zIndexList.length-1;e>=0;e--)this.zIndexList[e].setZIndex(e)},n.prototype.layersSortableStart=function(e,t){t.item.show(),t.placeholder.html("<div></div>"),t.item.data("startindex",t.item.index())},n.prototype.layersSortableStop=function(i,s){var n=s.item.parent().data("container");if(n instanceof NextendSmartSliderLayerGroup&&s.item.hasClass("n2-ss-layer-group-row"))this.layersItemsUlElement.sortable("cancel");else{var r=this.zIndexList.length-t(s.item).data("startindex")-1,a=n.zIndexList.length-t(s.item).index()-1;if(n!=this){a++;var o=this.zIndexList[r];n.moveLayerToGroup(o,a),e.history.add(t.proxy(function(){return[n,"changeZIndexWithContainer",[o,a,this,n],[o,r,n,this],[]]},this))}else r!=a&&(n.zIndexList.splice(a,0,n.zIndexList.splice(r,1)[0]),n.reIndexLayers(),e.history.add(t.proxy(function(){return[n,"changeZIndex",[r,a],[a,r],[]]},this)))}},n.prototype.activateFirst=function(){this.zIndexList.length>0&&this.zIndexList[this.zIndexList.length-1].activate()},n.prototype.childDeleted=function(e){for(var t=0;t<this.layers.length;t++)if(this.layers[t]==e){this.layers.splice(t,1);break}this.zIndexList.splice(e.zIndex,1)},n.prototype.history=function(i,s,n){switch(i){case"changeZIndex":var r=s[0],a=s[1];this.zIndexList.splice(a,0,this.zIndexList.splice(r,1)[0]),this.reIndexLayers();break;case"changeZIndexWithContainer":var o=s[0],a=(s[2],s[1]),l=s[3];l.moveLayerToGroup(o,a);break;case"createGroup":switch(s){case"create":var d=n[0],h=new NextendSmartSliderLayerGroup(this.layerEditor,this.layerEditor.mainLayerGroup,!1);e.history.changeFuture(this,h),h.lateInit(d,0);break;case"delete":this["delete"]()}break;case"deleteGroup":switch(s){case"create":var h=new NextendSmartSliderLayerGroup(this.layerEditor,this.layerEditor.mainLayerGroup,!1,{data:t.extend(!0,{},n[0])});h.lateInit(),e.history.changeFuture(this,h),this.layerEditor.fixActiveLayer();break;case"delete":this["delete"]()}}},i.NextendSmartSliderLayerContainerAbstract=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e,i,s,n,a){if(this.status=h.UNDEFINED,this.isDeleted=!1,this._triggerLayerResizedThrottled=NextendThrottle(this._triggerLayerResized,30),this.doThrottledTheResize=this.doTheResize,this.parent=!1,this.parentIsVisible=!0,this.$=t(this),this.layerEditor=e,this.group=i,this.timelineLayer=null,s){this.property={id:s.attr("id"),"class":s.data("class"),parentid:s.data("parentid"),parentalign:s.data("desktopportraitparentalign"),parentvalign:s.data("desktopportraitparentvalign"),name:s.data("name")+"",nameSynced:s.data("namesynced"),crop:s.data("crop"),rotation:s.data("rotation"),inneralign:s.data("inneralign"),parallax:s.data("parallax"),align:s.data("desktopportraitalign"),valign:s.data("desktopportraitvalign"),fontsize:s.data("desktopportraitfontsize"),adaptivefont:s.data("adaptivefont"),generatorvisible:s.data("generatorvisible")||"",desktopPortrait:parseFloat(s.data("desktopportrait")),desktopLandscape:parseFloat(s.data("desktoplandscape")),tabletPortrait:parseFloat(s.data("tabletportrait")),tabletLandscape:parseFloat(s.data("tabletlandscape")),mobilePortrait:parseFloat(s.data("mobileportrait")),mobileLandscape:parseFloat(s.data("mobilelandscape")),left:parseInt(s.data("desktopportraitleft")),top:parseInt(s.data("desktopportraittop")),responsiveposition:parseInt(s.data("responsiveposition")),responsivesize:parseInt(s.data("responsivesize")),mouseenter:s.data("mouseenter"),click:s.data("click"),mouseleave:s.data("mouseleave"),play:s.data("play"),pause:s.data("pause"),stop:s.data("stop")};var o=s.data("desktopportraitwidth");this.isDimensionPropertyAccepted(o)?this.property.width=o:this.property.width=parseInt(o);var l=s.data("desktopportraitheight");this.isDimensionPropertyAccepted(l)?this.property.height=l:this.property.height=parseInt(l)}else s=t('<div class="n2-ss-layer" style="z-index: '+this.group.zIndexList.length+';"></div>').appendTo(this.group.layerContainerElement),this.property=t.extend({id:null,"class":"",parentid:null,parentalign:"center",parentvalign:"middle",name:"New layer",nameSynced:1,crop:"visible",rotation:0,inneralign:"left",parallax:0,align:"center",valign:"middle",fontsize:100,adaptivefont:0,generatorvisible:"",desktopPortrait:1,desktopLandscape:1,tabletPortrait:1,tabletLandscape:1,mobilePortrait:1,mobileLandscape:1,left:0,top:0,responsiveposition:1,width:"auto",height:"auto",responsivesize:1,mouseenter:r,click:r,mouseleave:r,play:r,pause:r,stop:r},a);this.layer=s,this.property.id||(this.property.id=null),this.subscribeParentCallbacks={},this.property.parentid?this.subscribeParent():this.property.parentid=null,this.property.parentalign||(this.property.parentalign="center"),this.property.parentvalign||(this.property.parentvalign="middle"),"undefined"==typeof this.property.nameSynced&&(this.property.nameSynced=1),"undefined"==typeof this.property.responsiveposition&&(this.property.responsiveposition=1),"undefined"==typeof this.property.responsivesize&&(this.property.responsivesize=1),this.property.inneralign||(this.property.inneralign="left"),this.property.crop||(this.property.crop="visible"),this.property.rotation||(this.property.rotation=0),this.property.parallax||(this.property.parallax=0),"undefined"==typeof this.property.fontsize&&(this.property.fontsize=100),"undefined"==typeof this.property.adaptivefont&&(this.property.adaptivefont=0),this.property.align||(this.property.align="left"),this.property.valign||(this.property.valign="top"),s.attr("data-align",this.property.align),s.attr("data-valign",this.property.valign),s.data("layerObject",this),s.css("visibility","hidden"),this.zIndex=parseInt(this.layer.css("zIndex")),isNaN(this.zIndex)&&(this.zIndex=0),this.deviceProperty={desktopPortrait:{left:this.property.left,top:this.property.top,width:this.property.width,height:this.property.height,align:this.property.align,valign:this.property.valign,parentalign:this.property.parentalign,parentvalign:this.property.parentvalign,fontsize:this.property.fontsize},desktopLandscape:{left:s.data("desktoplandscapeleft"),top:s.data("desktoplandscapetop"),width:s.data("desktoplandscapewidth"),height:s.data("desktoplandscapeheight"),align:s.data("desktoplandscapealign"),valign:s.data("desktoplandscapevalign"),parentalign:s.data("desktoplandscapeparentalign"),parentvalign:s.data("desktoplandscapeparentvalign"),fontsize:s.data("desktoplandscapefontsize")},tabletPortrait:{left:s.data("tabletportraitleft"),top:s.data("tabletportraittop"),width:s.data("tabletportraitwidth"),height:s.data("tabletportraitheight"),align:s.data("tabletportraitalign"),valign:s.data("tabletportraitvalign"),parentalign:s.data("tabletportraitparentalign"),parentvalign:s.data("tabletportraitparentvalign"),fontsize:s.data("tabletportraitfontsize")},tabletLandscape:{left:s.data("tabletlandscapeleft"),top:s.data("tabletlandscapetop"),width:s.data("tabletlandscapewidth"),height:s.data("tabletlandscapeheight"),align:s.data("tabletlandscapealign"),valign:s.data("tabletlandscapevalign"),parentalign:s.data("tabletlandscapeparentalign"),parentvalign:s.data("tabletlandscapeparentvalign"),fontsize:s.data("tabletlandscapefontsize")},mobilePortrait:{left:s.data("mobileportraitleft"),top:s.data("mobileportraittop"),width:s.data("mobileportraitwidth"),height:s.data("mobileportraitheight"),align:s.data("mobileportraitalign"),valign:s.data("mobileportraitvalign"),parentalign:s.data("mobileportraitparentalign"),parentvalign:s.data("mobileportraitparentvalign"),fontsize:s.data("mobileportraitfontsize")},mobileLandscape:{left:s.data("mobilelandscapeleft"),top:s.data("mobilelandscapetop"),width:s.data("mobilelandscapewidth"),height:s.data("mobilelandscapeheight"),align:s.data("mobilelandscapealign"),valign:s.data("mobilelandscapevalign"),parentalign:s.data("mobilelandscapeparentalign"),parentvalign:s.data("mobilelandscapeparentvalign"),fontsize:s.data("mobilelandscapefontsize")}},this.createRow();var d=s.data("status");null!==d&&"undefined"!=typeof d?this.changeStatus(d):this.changeStatus(h.NORMAL),this.itemEditor=n,this.initItems(),"left"!=this.property.inneralign&&this._syncinneralign(this.property.inneralign),this.property.rotation&&this._syncrotation(this.property.rotation),this.___makeLayerAlign(),this.___makeLayerResizeable(),this.___makeLayerDraggable();var p=null;this.chainParent=t('<div class="n2-ss-layer-chain-parent n2-button n2-button-icon n2-button-xs n2-radius-s n2-button-blue"><i class="n2-i n2-i-layerunlink"></i></div>').on({click:t.proxy(this.unlink,this),mouseenter:t.proxy(function(){p=t("#"+this.getProperty(!1,"parentid")).addClass("n2-highlight")},this),mouseleave:t.proxy(function(){p&&(p.removeClass("n2-highlight"),p=null)},this)}).appendTo(this.layer),e.layerList.push(this),"undefined"==typeof this.group.zIndexList[this.zIndex]?this.group.zIndexList[this.zIndex]=this:this.group.zIndexList.splice(this.zIndex,0,this),this.layerEditor.$.trigger("layerCreated",this),t(window).triggerHandler("layerCreated"),this.layer.on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerClicked"),click:t.proxy(this.activate,this),dblclick:t.proxy(function(){t('[data-tab="item"]').trigger("click"),this.items[0].itemEditor.focusFirst("dblclick")},this)}),setTimeout(t.proxy(function(){this._resize(!0),this.status!=h.HIDDEN&&this.layer.css("visibility","")},this),300)}window.nextendPreventClick=!1;var r,a=!1,o=function(){var e=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){var i,s=(new Date).getTime();return i=Math.max(0,16-(s-e)),e=s+i,setTimeout(function(){t(s+i)},i)}}(),l={raf:!1,ratios:null,isThrottled:!1,layers:[]},d=function(){l.raf===!1&&(l.raf=!0,o(function(){for(var e=0;e<l.layers.length;e++)l.layers[e].isDeleted||l.layers[e].doTheResize(l.ratios,!0,l.isThrottled);l={raf:!1,ratios:null,isThrottled:!1,layers:[]}}))},h={UNDEFINED:0,NORMAL:1,LOCKED:2,HIDDEN:3};n.prototype=Object.create(i.NextendSmartSliderLayerDataStorageAbtract.prototype),n.prototype.constructor=n,n.prototype.setGroup=function(e,t){e.layersItemsUlElement.append(this.layerRow),e.layerContainerElement.append(this.layer),this.group.zIndexList.splice(this.zIndex,1),this.group=e,"undefined"==typeof t&&(t=this.zIndex),"undefined"==typeof e.zIndexList[t]?e.zIndexList[t]=this:e.zIndexList.splice(t,0,this)},n.prototype.getIndex=function(){return this.layerEditor.layerList.indexOf(this)},n.prototype.getParent=function(){return t("#"+this.getProperty(!1,"parentid")).data("layerObject")},n.prototype.requestID=function(){var e=this.getProperty(!1,"id");return e||(e=t.fn.uid(),this.setProperty("id",e,"layer")),e},n.prototype.createRow=function(){var e=300,i=null,s=t('<div class="n2-ss-layer-status"></div>'),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this)),r=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Duplicate layer")+'"><i class="n2-i n2-i-duplicate n2-i-grey-opacity"></i></div>').on("click",t.proxy(function(){this.duplicate(!0,!1)},this));t('<a href="#" class="n2-ss-sc-hide n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-eye"></i></a>').appendTo(s).on("click",t.proxy(function(e){e.preventDefault(),this.status==h.HIDDEN?this.setStatusNormal():this.changeStatus(h.HIDDEN)},this)),this.layerRow=t('<li class="n2-ss-layer-row"></li>').data("layer",this).on({mouseenter:t.proxy(function(){this.layer.addClass("n2-highlight")},this),mouseleave:t.proxy(function(e){this.layer.removeClass("n2-highlight")},this),mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerRowClicked")}).appendTo(this.group.layersItemsUlElement),this.layerTitleSpan=t('<span class="n2-ucf">'+this.property.name+"</span>").on({mouseup:t.proxy(function(s){i?(clearTimeout(i),i=null,this.editName()):(this.activate(s),i=setTimeout(t.proxy(function(){i=null},this),e))},this)}),this.layerTitle=t('<div class="n2-ss-layer-title"></div>').append(this.layerTitleSpan).append(t('<div class="n2-actions-left"></div>').append(s)).append(t('<div class="n2-actions"></div>').append(r).append(n)).appendTo(this.layerRow).on({mouseup:t.proxy(function(e){"DIV"===e.target.tagName&&this.activate(e)},this)}),nextend.tooltip.add(this.layerRow)},n.prototype.editName=function(){var e=new NextendSmartSliderAdminInlineField;e.$input.on({valueChanged:t.proxy(function(e,t){this.rename(t,!0),this.layerTitleSpan.css("display","inline")},this),cancel:t.proxy(function(){this.layerTitleSpan.css("display","inline")},this)}),this.layerTitleSpan.css("display","none"),e.injectNode(this.layerTitle,this.property.name)},n.prototype.rename=function(e,t){if(this.property.nameSynced||t){if(t&&(this.property.nameSynced=0),""==e){if(t&&(this.property.nameSynced=1,this.items.length))return this.items[0].reRender(),!1;e="Layer #"+(this.layerEditor.layerList.length+1)}e=e.substr(0,35),this.property.name!=e&&(this.property.name=e,this.layerTitleSpan.html(e),this.$.trigger("layerRenamed",e))}},n.prototype.setZIndex=function(e){this.zIndex=e,this.layer.css("zIndex",e),this.group.layersItemsUlElement.append(this.layerRow),this.$.trigger("layerIndexed",e)},n.prototype.select=function(e){this.layerEditor.selectLayer(this,!0);
5
- },n.prototype.positionSidebar=function(){this.layerEditor.panel.show(this,this.layer)},n.prototype.showEditor=function(){this.layerEditor.panel._show()},n.prototype.activate=function(e,t,i){if(!a){if(document.activeElement&&document.activeElement.blur(),e&&(e.ctrlKey||e.metaKey)&&this.layerEditor.layerList[this.layerEditor.activeLayerIndex])return void this.select();if(!e||3!=e.which||!this.layerEditor.selectMode){i||this.layerEditor.exitSelectMode(),e&&this.positionSidebar(),0==this.items.length?console.error("The layer do not have item on it!"):this.items[0].activate(null,t);var s=this.getIndex();this.layerEditor.activeLayerIndex!==s&&(this.layerRow.addClass("n2-active"),this.layer.addClass("n2-active"),this.layer.triggerHandler("n2-ss-activate"),this.layerEditor.changeActiveLayer(s,i),nextend.activeLayer=this.layer,this.layerEditor.ui.onActivateLayer(this))}}},n.prototype.deActivate=function(){this.layer.removeClass("n2-active"),this.layerRow.removeClass("n2-active"),this.layer.triggerHandler("n2-ss-deactivate")},n.prototype.fit=function(){var e=this.layer.get(0);this.layerEditor.slideSize,this.layer.position();if(e.scrollWidth>0&&e.scrollHeight>0){for(var t=!1,i=0;i<this.items.length&&!(t=this.items[i].parser.fitLayer(this.items[i]));i++);if(!t){this.setProperty("width","auto","layer"),this.setProperty("height","auto","layer");var s=this.layer.width();Math.abs(this.layerEditor.layerContainerElement.width()-this.layer.position().left-s)<2&&this.setProperty("width",s,"layer")}}},n.prototype.hide=function(e){this.store(!1,e?e:this.getMode(),0,!0)},n.prototype.show=function(e){this.store(!1,e?e:this.getMode(),1,!0)},n.prototype.changeStatus=function(e){switch(e==this.status&&(e=h.NORMAL),this.status){case h.HIDDEN:this.layer.css("visibility",""),this.layerRow.removeClass("n2-ss-layer-status-hidden");break;case h.LOCKED:this.layer.nextenddraggable("enable"),this.layer.nextendResizable("enable"),this.layer.removeClass("n2-ss-layer-locked"),this.layerRow.removeClass("n2-ss-layer-status-locked")}switch(this.status=e,this.status){case h.HIDDEN:this.layer.css("visibility","hidden"),this.layerRow.addClass("n2-ss-layer-status-hidden");break;case h.LOCKED:this.layer.nextenddraggable("disable"),this.layer.nextendResizable("disable"),this.layer.addClass("n2-ss-layer-locked"),this.layerRow.addClass("n2-ss-layer-status-locked")}},n.prototype.setStatusNormal=function(){this.changeStatus(h.NORMAL)},n.prototype._hide=function(){this.layer.css("display","none")},n.prototype._show=function(){parseInt(this.property[this.layerEditor.getMode()])&&this.layer.css("display","block")},n.prototype.duplicate=function(i,s,n){var r=this.getHTML(!0,!1),a=r.attr("id");a&&(a=t.fn.uid(),r.attr("id",a)),s&&r.attr("data-parentid",s),a||s||(r.data("desktopportraittop",r.data("desktopportraittop")+40),r.data("desktopportraitleft",r.data("desktopportraitleft")+40));var o=this.layerEditor._addLayer(this.group,r,!0);"undefined"==typeof n?n=[]:n.push(o),this.layer.triggerHandler("LayerDuplicated",[a,n]),this.layerRow.trigger("mouseleave"),i&&o.activate(),s||e.history.add(t.proxy(function(){return[this,"duplicateLayer","duplicate","delete",[o]]},this))},n.prototype["delete"]=function(i,s){this.layerEditor.getSelectedLayer()==this&&this.layerEditor.panel.hide(),e.history.add(t.proxy(function(){return[this,"deleteLayer","delete","create",[this.group,this.getData({layersIncluded:!0,itemsIncluded:!0})]]},this)),this.deActivate();for(var n=0;n<this.items.length;n++)this.items[n]["delete"]();this.group.childDeleted(this);var r=this.getProperty(!1,"parentid");r&&this.unSubscribeParent(!0),this.layer.trigger("mouseup"),this.isDeleted=!0,this.layerEditor.layerDeleted(this.getIndex()),"undefined"==typeof s?s=[]:s.push(this),this.layer.triggerHandler("LayerDeleted",["undefined"!=typeof i?i:!1,s]),this.layer.remove(),this.layerRow.remove(),this.$.trigger("layerDeleted"),delete this.layer,delete this.itemEditor},n.prototype.getHTML=function(e,i){var s=t('<div class="n2-ss-layer"></div>').attr("style",this.getStyleText());for(var n in this.property)"width"!=n&&"height"!=n&&"left"!=n&&"top"!=n&&s.attr("data-"+n.toLowerCase(),this.property[n]);for(var n in this.deviceProperty)for(var r in this.deviceProperty[n])s.attr("data-"+n.toLowerCase()+r,this.deviceProperty[n][r]);s.css({position:"absolute",zIndex:this.zIndex+1});for(var n in this.deviceProperty.desktop)s.css(n,this.deviceProperty.desktop[n]+"px");if(e)for(var a=0;a<this.items.length;a++)s.append(this.items[a].getHTML(i));var o=this.getProperty(!1,"id");return o&&""!=o&&s.attr("id",o),this.status>h.NORMAL&&s.attr("data-status",this.status),s},n.prototype.getData=function(e){var t={zIndex:this.zIndex+1};this.status>h.NORMAL&&(t.status=this.status);for(var i in this.property)switch(i){case"width":case"height":case"left":case"top":case"align":case"valign":case"parentalign":case"parentvalign":case"fontsize":break;default:t[i.toLowerCase()]=this.property[i]}for(var s in this.deviceProperty)for(var n in this.deviceProperty[s]){var r=this.deviceProperty[s][n];"undefined"!=typeof r&&("width"==n&&this.isDimensionPropertyAccepted(r)||"height"==n&&this.isDimensionPropertyAccepted(r)||"align"==n||"valign"==n||"parentalign"==n||"parentvalign"==n||(r=parseFloat(r)),t[s.toLowerCase()+n]=r)}if(e.itemsIncluded){t.items=[];for(var a=0;a<this.items.length;a++)t.items.push(this.items[a].getData())}return t},n.prototype.getDataWithChildren=function(e){return e.push(this.getData({layersIncluded:!0,itemsIncluded:!0})),this.layer.triggerHandler("LayerGetDataWithChildren",[e]),e},n.prototype.initItems=function(){this.items=[];for(var e=this.layer.find(".n2-ss-item"),t=0;t<e.length;t++)this.addItem(e.eq(t),!1)},n.prototype.addItem=function(e,t){t&&e.appendTo(this.layer),new NextendSmartSliderItem(e,this,this.itemEditor)},n.prototype.rename=function(e,t){if(this.property.nameSynced||t){if(t&&(this.property.nameSynced=0),""==e){if(t&&(this.property.nameSynced=1,this.items.length))return this.items[0].reRender(),!1;e="Layer #"+(this.layerEditor.layerList.length+1)}e=e.substr(0,35),this.property.name!=e&&(this.property.name=e,this.layerTitleSpan.html(e),this.$.trigger("layerRenamed",e))}},n.prototype.setProperty=function(e,t,i){switch(e){case"responsiveposition":case"responsivesize":t=parseInt(t);case"id":case"parentid":case"class":case"inneralign":case"crop":case"rotation":case"parallax":case"adaptivefont":case"generatorvisible":case"mouseenter":case"click":case"mouseleave":case"play":case"pause":case"stop":this.store(!1,e,t,!0);break;case"parentalign":case"parentvalign":case"align":case"valign":case"fontsize":this.store(!0,e,t,!0);break;case"width":var s=this.layerEditor.getResponsiveRatio("h");parseInt(this.getProperty(!1,"responsivesize"))||(s=1);var n=t;this.isDimensionPropertyAccepted(t)||(n=~~t,n!=t&&this.$.trigger("propertyChanged",[e,n])),this.storeWithModifier(e,n,s,!0),this._resize(!1);break;case"height":var r=this.layerEditor.getResponsiveRatio("v");parseInt(this.getProperty(!1,"responsivesize"))||(r=1);var n=t;this.isDimensionPropertyAccepted(t)||(n=~~t,n!=t&&this.$.trigger("propertyChanged",[e,n])),this.storeWithModifier(e,n,r,!0),this._resize(!1);break;case"left":var a=this.layerEditor.getResponsiveRatio("h");parseInt(this.getProperty(!1,"responsiveposition"))||(a=1);var n=~~t;n!=t&&this.$.trigger("propertyChanged",[e,n]),this.storeWithModifier(e,n,a,!0);break;case"top":var o=this.layerEditor.getResponsiveRatio("v");parseInt(this.getProperty(!1,"responsiveposition"))||(o=1);var n=~~t;n!=t&&this.$.trigger("propertyChanged",[e,n]),this.storeWithModifier(e,n,o,!0);break;case"showFieldDesktopPortrait":this.store(!1,"desktopPortrait",parseInt(t),!0);break;case"showFieldDesktopLandscape":this.store(!1,"desktopLandscape",parseInt(t),!0);break;case"showFieldTabletPortrait":this.store(!1,"tabletPortrait",parseInt(t),!0);break;case"showFieldTabletLandscape":this.store(!1,"tabletLandscape",parseInt(t),!0);break;case"showFieldMobilePortrait":this.store(!1,"mobilePortrait",parseInt(t),!0);break;case"showFieldMobileLandscape":this.store(!1,"mobileLandscape",parseInt(t),!0)}"manager"!=i&&this.$.trigger("propertyChanged",[e,t])},n.prototype.render=function(e,t){this["_sync"+e](t)},n.prototype.renderWithModifier=function(e,t,i){"width"!=e&&"height"!=e||!this.isDimensionPropertyAccepted(t)?this["_sync"+e](Math.round(t*i)):this["_sync"+e](t)},n.prototype._syncclass=function(e){this.layer.removeClass(),this.layer.addClass("n2-ss-layer"),e&&""!=e&&this.layer.addClass(e)},n.prototype._syncid=function(e){e&&""!=e?this.layer.attr("id",e):this.layer.removeAttr("id")},n.prototype.subscribeParent=function(){var e=this;this.subscribeParentCallbacks={LayerResized:function(){e.resizeParent.apply(e,arguments)},LayerParent:function(){e.layer.addClass("n2-ss-layer-parent"),e.layer.triggerHandler("LayerParent")},LayerUnParent:function(){e.layer.removeClass("n2-ss-layer-parent"),e.layer.triggerHandler("LayerUnParent")},LayerDeleted:function(t,i,s){i?e["delete"](i,s):e.setProperty("parentid","","layer")},LayerDuplicated:function(t,i,s){e.duplicate(!1,i,s)},LayerShowChange:function(t,i,s){e.getMode()==i&&(e.parentIsVisible=s)},"n2-ss-activate":function(){e.layerRow.addClass("n2-parent-active")},"n2-ss-deactivate":function(){e.layerRow.removeClass("n2-parent-active")},LayerGetDataWithChildren:function(t,i){e.getDataWithChildren(i)}},this.parent=n2("#"+this.property.parentid).on(this.subscribeParentCallbacks),this.layer.addClass("n2-ss-layer-has-parent")},n.prototype.unSubscribeParent=function(e){if(this.layerRow.removeClass("n2-parent-active"),this.layer.removeClass("n2-ss-layer-has-parent"),this.parent&&this.parent.off(this.subscribeParentCallbacks),this.parent=!1,this.subscribeParentCallbacks={},!e){var t=this.layer.position();this.setPosition(t.left,t.top)}},n.prototype.unlink=function(e){e&&e.preventDefault(),this.setProperty("parentid","","layer")},n.prototype.parentPicked=function(e,t,i,s,n){this.setProperty("parentid","","layer"),this.setProperty("align",s,"layer"),this.setProperty("valign",n,"layer"),this.setProperty("parentalign",t,"layer"),this.setProperty("parentvalign",i,"layer"),this.setProperty("parentid",e.requestID(),"layer");var r;for(var a in this.deviceProperty)"desktopPortrait"!=a&&(this.deviceProperty[a].left=r,this.deviceProperty[a].top=r,this.deviceProperty[a].valign=r,this.deviceProperty[a].align=r)},n.prototype._syncparentid=function(e){e&&""!=e?0==t("#"+e).length?this.setProperty("parentid","","layer"):(this.layer.attr("data-parentid",e).addClass("n2-ss-layer-has-parent"),this.subscribeParent(),this.setPosition(this.layer.position().left,this.layer.position().top)):(this.layer.removeAttr("data-parentid"),this.unSubscribeParent(!1))},n.prototype._syncparentalign=function(e){this.layer.data("parentalign",e);var t=this.getParent();t&&t._resize(!1)},n.prototype._syncparentvalign=function(e){this.layer.data("parentvalign",e);var t=this.getParent();t&&t._resize(!1)},n.prototype._syncinneralign=function(e){this.layer.css("text-align",e)},n.prototype._synccrop=function(e){"auto"==e&&(e="hidden");var i=this.layer.find("> .n2-ss-layer-mask");if("mask"==e){if(e="hidden",!i.length){i=t("<div class='n2-ss-layer-mask'></div>").appendTo(this.layer);var s=this.layer.find(".n2-ss-layer-rotation");if(s.length)s.appendTo(i);else for(var n=0;n<this.items.length;n++)i.append(this.items[n].item)}}else if(i.length){var s=this.layer.find(".n2-ss-layer-rotation");if(s.length)s.appendTo(this.layer);else for(var n=0;n<this.items.length;n++)this.layer.append(this.items[n].item);i.remove()}this.layer.css("overflow",e)},n.prototype._syncrotation=function(e){var i=this.layer.find(".n2-ss-layer-rotation");if(0!=e){if(!i.length){i=t("<div class='n2-ss-layer-rotation'></div>").appendTo(this.layer.find(".n2-ss-layer-mask").addBack().last());for(var s=0;s<this.items.length;s++)i.append(this.items[s].item)}NextendTween.set(i[0],{rotationZ:e}),this.layer.data("rotation",e)}else{if(i.length){for(var s=0;s<this.items.length;s++)this.layer.find(".n2-ss-layer-mask").addBack().last().append(this.items[s].item);i.remove()}else NextendTween.set(i,{rotationZ:0});this.layer.data("rotation",0)}},n.prototype._syncparallax=function(e){},n.prototype._syncalign=function(e,t){"undefined"!==t&&e!=t&&this.setPosition(this.layer.position().left,this.layer.position().top),this.layer.attr("data-align",e)},n.prototype._syncvalign=function(e,t){"undefined"!==t&&e!=t&&this.setPosition(this.layer.position().left,this.layer.position().top),this.layer.attr("data-valign",e)},n.prototype._syncfontsize=function(e){this.adjustFontSize(this.getProperty(!1,"adaptivefont"),e,!0)},n.prototype._syncadaptivefont=function(e){this.adjustFontSize(e,this.getProperty(!0,"fontsize"),!0)},n.prototype.adjustFontSize=function(e,t,i){t=parseInt(t),parseInt(e)?this.layer.css("font-size",nextend.smartSlider.frontend.sliderElement.data("fontsize")*t/100+"px"):100!=t?this.layer.css("font-size",t+"%"):this.layer.css("font-size",""),i&&this.update()},n.prototype._syncgeneratorvisible=function(e){},n.prototype._syncleft=function(e){if(this.parent&&this.parentIsVisible){var t=this.parent.position(),i=this.getProperty(!0,"align"),s=this.getProperty(!0,"parentalign"),n=0;switch(s){case"right":n=t.left+this.parent.width();break;case"center":n=t.left+this.parent.width()/2;break;default:n=t.left}switch(i){case"right":this.layer.css({left:"auto",right:this.layer.parent().width()-n-e+"px"});break;case"center":this.layer.css({left:n+e-this.layer.width()/2+"px",right:"auto"});break;default:this.layer.css({left:n+e+"px",right:"auto"})}}else switch(this.getProperty(!0,"align")){case"right":this.layer.css({left:"auto",right:-e+"px"});break;case"center":this.layer.css({left:this.layer.parent().width()/2+e-this.layer.width()/2+"px",right:"auto"});break;default:this.layer.css({left:e+"px",right:"auto"})}this.triggerLayerResized()},n.prototype._synctop=function(e){if(this.parent&&this.parentIsVisible){var t=this.parent.position(),i=this.getProperty(!0,"valign"),s=this.getProperty(!0,"parentvalign"),n=0;switch(s){case"bottom":n=t.top+this.parent.height();break;case"middle":n=t.top+this.parent.height()/2;break;default:n=t.top}switch(i){case"bottom":this.layer.css({top:"auto",bottom:this.layer.parent().height()-n-e+"px"});break;case"middle":this.layer.css({top:n+e-this.layer.height()/2+"px",bottom:"auto"});break;default:this.layer.css({top:n+e+"px",bottom:"auto"})}}else switch(this.getProperty(!0,"valign")){case"bottom":this.layer.css({top:"auto",bottom:-e+"px"});break;case"middle":this.layer.css({top:this.layer.parent().height()/2+e-this.layer.height()/2+"px",bottom:"auto"});break;default:this.layer.css({top:e+"px",bottom:"auto"})}this.triggerLayerResized()},n.prototype._syncresponsiveposition=function(e){this._resize(!1)},n.prototype._syncwidth=function(e){this.layer.css("width",e+(this.isDimensionPropertyAccepted(e)?"":"px"))},n.prototype._syncheight=function(e){this.layer.css("height",e+(this.isDimensionPropertyAccepted(e)?"":"px"))},n.prototype._syncresponsivesize=function(e){this._resize(!1)},n.prototype._syncdesktopPortrait=function(e){this.__syncShowOnDevice("desktopPortrait",e)},n.prototype._syncdesktopLandscape=function(e){this.__syncShowOnDevice("desktopLandscape",e)},n.prototype._synctabletPortrait=function(e){this.__syncShowOnDevice("tabletPortrait",e)},n.prototype._synctabletLandscape=function(e){this.__syncShowOnDevice("tabletLandscape",e)},n.prototype._syncmobilePortrait=function(e){this.__syncShowOnDevice("mobilePortrait",e)},n.prototype._syncmobileLandscape=function(e){this.__syncShowOnDevice("mobileLandscape",e)},n.prototype.__syncShowOnDevice=function(e,t){if(this.getMode()==e){var t=parseInt(t);t?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[e,t]),this.triggerLayerResized()}},n.prototype._syncmouseenter=n.prototype._syncclick=n.prototype._syncmouseleave=n.prototype._syncplay=n.prototype._syncpause=n.prototype._syncstop=function(){},n.prototype.___makeLayerAlign=function(){t('<div class="n2-ss-layer-border" />').prependTo(this.layer),this.alignMarker=t('<div class="n2-ss-layer-cc" />').appendTo(this.layer)},n.prototype.___makeLayerResizeable=function(){this._resizableJustClick=!1,this.layer.nextendResizable({handles:"n, e, s, w, ne, se, sw, nw",_containment:this.layerEditor.layerContainerElement,start:t.proxy(this.____makeLayerResizeableStart,this),resize:t.proxy(this.____makeLayerResizeableResize,this),stop:t.proxy(this.____makeLayerResizeableStop,this),create:t.proxy(function(){this.layer.find(".ui-resizable-handle, .n2-ss-layer-cc").on({mousedown:t.proxy(function(e){this._resizableJustClick=[e.clientX,e.clientY]},this),mouseup:t.proxy(function(e){if(this._resizableJustClick&&Math.abs(Math.sqrt(Math.pow(this._resizableJustClick[0]-e.clientX,2)+Math.pow(this._resizableJustClick[1]-e.clientY,2)))<1){$target=t(e.currentTarget);var i=this.layerEditor.sidebar.layerFeatures;$target.hasClass("ui-resizable-nw")?(i.horizontalAlign("left",!1),i.verticalAlign("top",!1)):$target.hasClass("ui-resizable-w")?(i.horizontalAlign("left",!1),i.verticalAlign("middle",!1)):$target.hasClass("ui-resizable-sw")?(i.horizontalAlign("left",!1),i.verticalAlign("bottom",!1)):$target.hasClass("ui-resizable-n")?(i.horizontalAlign("center",!1),i.verticalAlign("top",!1)):$target.hasClass("n2-ss-layer-cc")?(i.horizontalAlign("center",!1),i.verticalAlign("middle",!1)):$target.hasClass("ui-resizable-s")?(i.horizontalAlign("center",!1),i.verticalAlign("bottom",!1)):$target.hasClass("ui-resizable-ne")?(i.horizontalAlign("right",!1),i.verticalAlign("top",!1)):$target.hasClass("ui-resizable-e")?(i.horizontalAlign("right",!1),i.verticalAlign("middle",!1)):$target.hasClass("ui-resizable-se")&&(i.horizontalAlign("right",!1),i.verticalAlign("bottom",!1))}this._resizableJustClick=!1},this)})},this),smartguides:t.proxy(function(){return this.layer.triggerHandler("LayerParent"),this.layerEditor.getSnap()},this),tolerance:5}).on({mousedown:t.proxy(function(e){!this.status!=h.LOCKED&&this.layerEditor.positionDisplay.css({left:e.pageX+10,top:e.pageY+10}).html("W: "+parseInt(this.layer.width())+"px<br />H: "+parseInt(this.layer.height())+"px").addClass("n2-active"),document.activeElement&&document.activeElement.blur()},this),mouseup:t.proxy(function(e){this.layerEditor.positionDisplay.removeClass("n2-active")},this)})},n.prototype.____makeLayerResizeableStart=function(e,i){a=!0,this.resizableDeferred=t.Deferred(),this.layerEditor.panel.hideWithDeferred(this.resizableDeferred),t("body").addClass("n2-ss-resize-layer"),this._resizableJustClick&&(this._resizableJustClick=!1),this.____makeLayerResizeableResize(e,i),this.layerEditor.positionDisplay.addClass("n2-active")},n.prototype.____makeLayerResizeableResize=function(e,t){this.layerEditor.positionDisplay.css({left:e.pageX+10,top:e.pageY+10}).html("W: "+t.size.width+"px<br />H: "+t.size.height+"px"),this.triggerLayerResized()},n.prototype.____makeLayerResizeableStop=function(e,i){window.nextendPreventClick=!0,setTimeout(function(){window.nextendPreventClick=!1},50),t("body").removeClass("n2-ss-resize-layer"),this.resizableDeferred.resolve();var s=!1;if(i.originalSize.width==i.size.width){var n=this.getProperty(!0,"width");this.isDimensionPropertyAccepted(n)&&(s=!0,this._syncwidth(n))}var r=!1;if(i.originalSize.height==i.size.height){var n=this.getProperty(!0,"height");this.isDimensionPropertyAccepted(n)&&(r=!0,this._syncheight(n))}this.setPosition(i.position.left,i.position.top);var o=this.layerEditor.getResponsiveRatio("h"),l=this.layerEditor.getResponsiveRatio("v");if(parseInt(this.getProperty(!1,"responsivesize"))||(o=l=1),!s){var d=Math.round(i.size.width*(1/o));this.storeWithModifier("width",d,o,!1),this.$.trigger("propertyChanged",["width",d])}if(!r){var d=Math.round(i.size.height*(1/l));this.storeWithModifier("height",d,l,!1),this.$.trigger("propertyChanged",["height",d])}this.triggerLayerResized(),this.layer.triggerHandler("LayerUnParent"),this.layerEditor.positionDisplay.removeClass("n2-active"),setTimeout(function(){a=!1},80)},n.prototype.___makeLayerDraggable=function(){this.layer.nextenddraggable({_containment:this.layerEditor.layerContainerElement,start:t.proxy(this.____makeLayerDraggableStart,this),drag:t.proxy(this.____makeLayerDraggableDrag,this),stop:t.proxy(this.____makeLayerDraggableStop,this),smartguides:t.proxy(function(){return this.layer.triggerHandler("LayerParent"),this.layerEditor.getSnap()},this),tolerance:5})},n.prototype.____makeLayerDraggableStart=function(e,i){a=!0,this.draggableDeferred=t.Deferred(),this.layerEditor.panel.hideWithDeferred(this.draggableDeferred),t("body").addClass("n2-ss-move-layer"),this.layerEditor.draggableStart(i),this.____makeLayerDraggableDrag(e,i),this.layerEditor.positionDisplay.addClass("n2-active");var s=this.getProperty(!0,"width");this.isDimensionPropertyAccepted(s)&&this.layer.width(this.layer.width()+.5);var s=this.getProperty(!0,"height");this.isDimensionPropertyAccepted(s)&&this._syncheight(s)},n.prototype.____makeLayerDraggableDrag=function(e,t){this.layerEditor.positionDisplay.css({left:e.pageX+10,top:e.pageY+10}).html("L: "+parseInt(0|t.position.left)+"px<br />T: "+parseInt(0|t.position.top)+"px"),this.triggerLayerResized(),this.layerEditor.draggableDrag(t)},n.prototype.____makeLayerDraggableStop=function(e,i){window.nextendPreventClick=!0,setTimeout(function(){window.nextendPreventClick=!1},50),t("body").removeClass("n2-ss-move-layer"),this.draggableDeferred.resolve(),this.setPosition(i.position.left,i.position.top);var s=this.getProperty(!0,"width");this.isDimensionPropertyAccepted(s)&&this._syncwidth(s);var s=this.getProperty(!0,"height");this.isDimensionPropertyAccepted(s)&&this._syncheight(s),this.triggerLayerResized(),this.layer.triggerHandler("LayerUnParent"),this.layerEditor.positionDisplay.removeClass("n2-active");var n=this.layerEditor.draggableStop(i);n?setTimeout(function(){a=!1},80):(a=!1,this.activate(e))},n.prototype.moveX=function(e){this.setDeviceBasedAlign(),this.setProperty("left",this.getProperty(!0,"left")+e,"layer"),this.triggerLayerResized()},n.prototype.moveY=function(e){this.setDeviceBasedAlign(),this.setProperty("top",this.getProperty(!0,"top")+e,"layer"),this.triggerLayerResized()},n.prototype.setPosition=function(e,t){var i=this.layerEditor.getResponsiveRatio("h"),s=this.layerEditor.getResponsiveRatio("v");parseInt(this.getProperty(!1,"responsiveposition"))||(i=s=1),this.setDeviceBasedAlign();var n=this.parent,r={left:0,leftMultiplier:1,top:0,topMultiplier:1};if(n&&n.is(":visible")){var a=n.position();switch(this.getProperty(!0,"parentalign")){case"right":r.left=a.left+n.width();break;case"center":r.left=a.left+n.width()/2;break;default:r.left=a.left}switch(this.getProperty(!0,"parentvalign")){case"bottom":r.top=a.top+n.height();break;case"middle":r.top=a.top+n.height()/2;break;default:r.top=a.top}}else{switch(n=this.layer.parent(),this.getProperty(!0,"align")){case"center":r.left+=n.width()/2;break;case"right":r.left+=n.width()}switch(this.getProperty(!0,"valign")){case"middle":r.top+=n.height()/2;break;case"bottom":r.top+=n.height()}}var e,o=!1;switch(this.getProperty(!0,"align")){case"left":e=-Math.round((r.left-e)*(1/i));break;case"center":e=-Math.round((r.left-e-this.layer.width()/2)*(1/i));break;case"right":e=-Math.round((r.left-e-this.layer.width())*(1/i)),o=!0}this.storeWithModifier("left",e,i,o),this.$.trigger("propertyChanged",["left",e]);var t,o=!1;switch(this.getProperty(!0,"valign")){case"top":t=-Math.round((r.top-t)*(1/s));break;case"middle":t=-Math.round((r.top-t-this.layer.height()/2)*(1/s));break;case"bottom":t=-Math.round((r.top-t-this.layer.height())*(1/s)),o=!0}this.storeWithModifier("top",t,s,o),this.$.trigger("propertyChanged",["top",t])},n.prototype.setDeviceBasedAlign=function(){var e=this.getMode();"undefined"==typeof this.deviceProperty[e].align&&this.setProperty("align",this.getProperty(!0,"align"),"layer"),"undefined"==typeof this.deviceProperty[e].valign&&this.setProperty("valign",this.getProperty(!0,"valign"),"layer")},n.prototype.snap=function(){this.layer.nextendResizable("option","smartguides",t.proxy(function(){return this.layer.triggerHandler("LayerParent"),this.layerEditor.getSnap()},this)),this.layer.nextenddraggable("option","smartguides",t.proxy(function(){return this.layer.triggerHandler("LayerParent"),this.layerEditor.getSnap()},this))},n.prototype.changeEditorMode=function(e){var t=parseInt(this.property[e]);t?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[e,t]),this._renderModeProperties(!1)},n.prototype.resetMode=function(i,s){if("desktopPortrait"!=i){var n;e.history.add(t.proxy(function(){return[this,"resetMode","reset","restore",[i,t.extend({},this.deviceProperty[i])]]},this));for(var r in this.property)this.deviceProperty[i][r]=n;i==s&&this._renderModeProperties(!0)}},n.prototype.restoreMode=function(e,i,s){"desktopPortrait"!=e&&(this.deviceProperty[e]=t.extend({},s),e==i&&this._renderModeProperties(!0))},n.prototype._renderModeProperties=function(e){for(var t in this.property)this.property[t]=this.getProperty(!0,t),this.$.trigger("propertyChanged",[t,this.property[t]]);var i=this.getProperty(!0,"fontsize");this.adjustFontSize(this.getProperty(!1,"adaptivefont"),i,!1),this.layer.attr("data-align",this.property.align),this.layer.attr("data-valign",this.property.valign),e&&this._resize(!0)},n.prototype.copyMode=function(e,i){e!=i&&(this.deviceProperty[i]=t.extend({},this.deviceProperty[i],this.deviceProperty[e]))},n.prototype._resize=function(e){this.resize({slideW:this.layerEditor.getResponsiveRatio("h"),slideH:this.layerEditor.getResponsiveRatio("v")},e)},n.prototype.doLinearResize=function(e){this.doThrottledTheResize(e,!0)},n.prototype.resize=function(e,t){this.parent&&!t||this.addToResizeCollection(this,e,!1)},n.prototype.doTheResize=function(e,t,i){var s=e.slideW,n=s,r=e.slideH,a=r;parseInt(this.getProperty(!1,"responsivesize"))||(n=a=1),this.renderWithModifier("width",this.getProperty(!0,"width"),n),this.renderWithModifier("height",this.getProperty(!0,"height"),a),parseInt(this.getProperty(!1,"responsiveposition"))||(s=r=1),this.renderWithModifier("left",this.getProperty(!0,"left"),s),this.renderWithModifier("top",this.getProperty(!0,"top"),r),t||this.triggerLayerResized(i,e)},n.prototype.resizeParent=function(e,t,i){this.addToResizeCollection(this,t,i)},n.prototype.addToResizeCollection=function(e,t,i){l.ratios=t,l.isThrottled=i;for(var s=0;s<l.layers.length;s++)if(l.layers[s]==this){l.layers.splice(s,1);break}l.layers.push(e),d(),this.triggerLayerResized(i,t)},n.prototype.update=function(){var e=this.parent;if("center"==this.getProperty(!0,"align")){var t=0;t=e?e.position().left+e.width()/2:this.layer.parent().width()/2;var i=this.layerEditor.getResponsiveRatio("h");parseInt(this.getProperty(!1,"responsiveposition"))||(i=1),this.layer.css("left",t-this.layer.width()/2+this.getProperty(!0,"left")*i)}if("middle"==this.getProperty(!0,"valign")){var s=0;s=e?e.position().top+e.height()/2:this.layer.parent().height()/2;var i=this.layerEditor.getResponsiveRatio("v");parseInt(this.getProperty(!1,"responsiveposition"))||(i=1),this.layer.css("top",s-this.layer.height()/2+this.getProperty(!0,"top")*i)}this.triggerLayerResized()},n.prototype.triggerLayerResized=function(e,t){e?this._triggerLayerResized(e,t):this._triggerLayerResizedThrottled(!0,t)},n.prototype._triggerLayerResized=function(e,t){this.isDeleted||this.layer.triggerHandler("LayerResized",[t||{slideW:this.layerEditor.getResponsiveRatio("h"),slideH:this.layerEditor.getResponsiveRatio("v")},e||!1])},n.prototype.getStyleText=function(){var e="",t=this.property.crop;return"auto"!=t&&"mask"!=t||(t="hidden"),e+="overflow:"+t+";",e+="text-align:"+this.property.inneralign+";"},n.prototype.nextLayer=function(){var e=this.zIndex-1;0>e||"undefined"==typeof this.group.zIndexList[e]?this.group.nextLayer():this.group.zIndexList[e].activate()},n.prototype.previousLayer=function(){var e=this.zIndex+1;e>this.group.zIndexList.length-1||"undefined"==typeof this.group.zIndexList[e]?this.group.previousLayer():this.group.zIndexList[e].activate()},n.prototype.history=function(i,s,n,r){switch(NextendSmartSliderLayerDataStorageAbtract.prototype.history.apply(this,arguments),i){case"addLayer":switch(s){case"add":var a=n[0],o=t.extend(!0,{},n[1]);this.layerEditor._zIndexOffset=-1,this.layerEditor._idTranslation={};var l=this.layerEditor.loadSingleData(o,a);e.history.changeFuture(this,l),e.history.changeFuture(this.items[0],l.items[0]),this.group.reIndexLayers(),this.layerEditor.refreshMode();break;case"delete":this["delete"]()}break;case"createLayer":switch(s){case"add":var a=n[0],o=t.extend(!0,{},n[1]);this.layerEditor._zIndexOffset=-1,this.layerEditor._idTranslation={};var l=this.layerEditor.loadSingleData(o,a);e.history.changeFuture(this,l),e.history.changeFuture(this.items[0],l.items[0]),this.group.reIndexLayers(),this.layerEditor.refreshMode();break;case"delete":this["delete"]()}break;case"duplicateLayer":switch(s){case"duplicate":var d=[];this.duplicate(!0,!1,d);for(var h=0;h<d.length;h++)e.history.changeFuture(r.oldLayers[h],d[h]),e.history.changeFuture(r.oldLayers[h].items[0],d[h].items[0]);r.oldLayers=[];break;case"delete":var p=[];n[0]["delete"](!0,p),r.oldLayers=p}break;case"deleteLayer":switch(s){case"create":var a=n[0],o=t.extend(!0,{},n[1]);this.layerEditor._zIndexOffset=-1,this.layerEditor._idTranslation={};var l=this.layerEditor.loadSingleData(o,a);e.history.changeFuture(this,l),e.history.changeFuture(this.items[0],l.items[0]),a.reIndexLayers(),this.layerEditor.refreshMode();break;case"delete":this["delete"]()}break;case"storeAnimations":break;case"resetMode":switch(s){case"reset":this.resetMode(n[0],this.layerEditor.getMode());break;case"restore":this.restoreMode(n[0],this.layerEditor.getMode(),n[1])}}},n.prototype.updateAnimations=function(){},n.prototype._sortZIndex=function(e){return e.group==this.group?this.zIndex>=e.zIndex:e.group instanceof NextendSmartSliderLayerGroup&&this.group instanceof NextendSmartSliderLayerGroup?this.group.zIndex>=e.group.zIndex:e.group instanceof NextendSmartSliderLayerGroup?this.zIndex>=e.group.zIndex:this.group instanceof NextendSmartSliderLayerGroup?this.group.zIndex>=e.zIndex:this.zIndex>=e.zIndex},i.NextendSmartSliderLayer=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e,t){var i=parseFloat(e);return isNaN(i)?t:i}function r(i,s,r,a){a||(a={}),this.isMainGroup=!1,this.isDeleted=!1,this.opened=!0,r?(this.layer=r,this.property=t.extend({name:"Group",parallax:0,fontsize:100,adaptivefont:0,generatorvisible:"",desktopPortrait:1,desktopLandscape:1,tabletPortrait:1,tabletLandscape:1,mobilePortrait:1,mobileLandscape:1},{name:this.layer.data("name")+"",parallax:this.layer.data("parallax"),fontsize:this.layer.data("desktopportraitfontsize"),adaptivefont:this.layer.data("adaptivefont"),generatorvisible:this.layer.data("generatorvisible")||"",desktopPortrait:n(this.layer.data("desktopportrait"),1),desktopLandscape:n(this.layer.data("desktoplandscape"),1),tabletPortrait:n(this.layer.data("tabletportrait"),1),tabletLandscape:n(this.layer.data("tabletlandscape"),1),mobilePortrait:n(this.layer.data("mobileportrait"),1),mobileLandscape:n(this.layer.data("mobilelandscape"),1)}),this.property.name.length||(this.property.name="Group")):(this.layer=!1,"undefined"!=typeof a.data?this.property={name:a.data.name,fontsize:a.data.fontsize,adaptivefont:a.data.adaptivefont,generatorvisible:a.data.generatorvisible,desktopPortrait:a.data.desktopportrait,desktopLandscape:a.data.desktoplandscape,tabletPortrait:a.data.tabletportrait,tabletLandscape:a.data.tabletlandscape,mobilePortrait:a.data.mobileportrait,mobileLandscape:a.data.mobilelandscape}:this.property={name:"Group",fontsize:100,adaptivefont:0,generatorvisible:"",desktopPortrait:1,desktopLandscape:1,tabletPortrait:1,tabletLandscape:1,mobilePortrait:1,mobileLandscape:1}),NextendSmartSliderLayerContainerAbstract.prototype.constructor.call(this,i,s);var o=this.layer.data("opened");if(null!==o&&"undefined"!=typeof o&&(this.opened=!!o),
6
- this.deviceProperty={desktopPortrait:{fontsize:this.property.fontsize},desktopLandscape:{fontsize:this.layer.data("desktoplandscapefontsize")},tabletPortrait:{fontsize:this.layer.data("tabletportraitfontsize")},tabletLandscape:{fontsize:this.layer.data("tabletlandscapefontsize")},mobilePortrait:{fontsize:this.layer.data("mobileportraitfontsize")},mobileLandscape:{fontsize:this.layer.data("mobilelandscapefontsize")}},this.layerEditor.$.trigger("layerCreated",this),t(window).triggerHandler("layerCreated"),i.layerList.push(this),this._opened(),"undefined"!=typeof a.layers){for(var l=e.history.add(t.proxy(function(){return[this,"createGroup","create","delete",[]]},this)),d=[],h=0;h<a.layers.length;h++)d.push(this.layerEditor.loadSingleData(a.layers[h],this.layerEditor.mainLayerGroup));this.groupLayersStartAndLateInit(d),l[4].push(this.zIndex)}}var a=!1;r.prototype=Object.create(NextendSmartSliderLayerContainerAbstract.prototype),r.prototype.constructor=r;for(var o in NextendSmartSliderLayerDataStorageAbtract.prototype)r.prototype[o]=NextendSmartSliderLayerDataStorageAbtract.prototype[o];r.prototype.groupLayersStartAndLateInit=function(i){for(var s=0,n=0,r=0;r<i.length;r++)i[r].group==this.layerEditor.mainLayerGroup&&(s=Math.max(s,i[r].zIndex),n++);isNaN(s)&&(s=0);for(var r=0;r<i.length;r++)e.history.add(t.proxy(function(e,t,i){return[this,"changeZIndexWithContainer",[e,r,t,this],[e,i,this,t],[]]},this,i[r],i[r].group,i[r].zIndex)),this.addLayerBeforeInit(i[r],r);this.lateInit(s,n)},r.prototype.createLayer=function(){this.layer||(this.layer=t('<div class="n2-ss-layer-group" style="z-index: '+this.group.zIndexList.length+';"></div>').appendTo(this.group.layerContainerElement))},r.prototype.createLayerRow=function(){var e=300,i=null;this.selectElement=t('<a href="#" class="n2-ss-layer-list-selector"><i class="n2-i n2-i-select"></i></a>').on("click",t.proxy(function(e){e.preventDefault(),this.select()},this));var s=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this)),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Duplicate layer")+'"><i class="n2-i n2-i-duplicate n2-i-grey-opacity"></i></div>').on("click",t.proxy(function(){this.duplicate(!0,!1)},this));this.openerElement=t('<a href="#" class="n2-button n2-button-icon n2-button-m n2-ss-layer-list-group-opener" onclick="return false;"><i class="n2-i n2-i-folderopened"></i></a>').on("click",t.proxy(this.switchOpened,this)),this.layerRow=t('<li class="n2-ss-layer-row n2-ss-layer-group-row"></li>').data("layer",this).appendTo(this.group.layersItemsUlElement),this.layerTitleSpan=t('<span class="n2-ucf">'+this.property.name+"</span>").on({mouseup:t.proxy(function(s){i?(clearTimeout(i),i=null,this.editName()):(this.activate(s),i=setTimeout(t.proxy(function(){i=null},this),e))},this)}),this.layerTitle=t('<div class="n2-ss-layer-title"></div>').append(this.layerTitleSpan).append(t('<div class="n2-actions-left"></div>').append(this.openerElement)).append(t('<div class="n2-actions"></div>').append(n).append(s)).appendTo(this.layerRow).on({mouseup:t.proxy(function(e){"DIV"===e.target.tagName&&this.activate(e)},this)}),this.layersItemsUlElement=t('<ul class="n2-list n2-h4 n2-list-orderable" />').data("container",this),nextend.tooltip.add(this.layerRow)},r.prototype.switchOpened=function(){this.opened=!this.opened,this._opened()},r.prototype._opened=function(){this.opened?(this.openerElement.removeClass("n2-closed"),this.layersItemsUlElement.css("display",""),this.layer.triggerHandler("opened")):(this.openerElement.addClass("n2-closed"),this.layersItemsUlElement.css("display","none"),this.layerEditor.$.trigger("groupHidden",this),this.layer.triggerHandler("closed"))},r.prototype.setZIndex=function(e){this.zIndex=e,this.layer.css("zIndex",e),this.group.layersItemsUlElement.append(this.layerRow),this.$.trigger("layerIndexed",e)},r.prototype.editName=function(){var e=new NextendSmartSliderAdminInlineField;e.$input.on({valueChanged:t.proxy(function(e,t){this.rename(t,!0),this.layerTitleSpan.css("display","inline")},this),cancel:t.proxy(function(){this.layerTitleSpan.css("display","inline")},this)}),this.layerTitleSpan.css("display","none"),e.injectNode(this.layerTitle,this.property.name)},r.prototype.rename=function(e){""==e&&(e="GROUP"),e=e.substr(0,35),this.property.name!=e&&(this.property.name=e,this.layerTitleSpan.html(e))},r.prototype.getData=function(e){var t={type:"group",zIndex:this.zIndex,layers:[],opened:this.opened};if(e.layersIncluded)for(var i=0;i<this.zIndexList.length;i++)t.layers.push(this.zIndexList[i].getData(e));for(var s in this.property)switch(s){case"fontsize":break;default:t[s.toLowerCase()]=this.property[s]}for(var n in this.deviceProperty)for(var r in this.deviceProperty[n]){var a=this.deviceProperty[n][r];"undefined"!=typeof a&&("width"==r&&this.isDimensionPropertyAccepted(a)||"height"==r&&this.isDimensionPropertyAccepted(a)||"align"==r||"valign"==r||"parentalign"==r||"parentvalign"==r||(a=parseFloat(a)),t[n.toLowerCase()+r]=a)}return t},r.prototype.positionSidebar=function(){this.layerEditor.panel.show(this,t("#n2-ss-layer-list"))},r.prototype.activate=function(e,t){if(!a){if(document.activeElement&&document.activeElement.blur(),e&&(e.ctrlKey||e.metaKey))return void this.select();if(!e||3!=e.which){t||this.layerEditor.exitSelectMode(),e&&this.positionSidebar();var i=this.getIndex();if(this.layerEditor.activeLayerIndex!==i){this.layerRow.addClass("n2-active"),this.layer.triggerHandler("n2-ss-activate"),this.layerEditor.changeActiveLayer(i,t),nextend.activeLayer=this.layer;var s=this.layerEditor.mainLayerGroup.layersItemsUlElement.parent(),n=s.scrollTop(),r=this.layerRow.get(0).offsetTop;(n>r||r>n+s.height()-this.layerRow.height())&&s.scrollTop(r)}this.layerEditor.startSelection(!0),this.layerEditor.addSelection(this.layers,!0)}}},r.prototype.deActivate=function(){this.layerEditor.endSelection(!0),this.layerRow.removeClass("n2-active"),this.layer.triggerHandler("n2-ss-deactivate")},r.prototype.select=function(){this.layerEditor.selectLayer(this,!1),this.layerEditor.addSelection(this.layers,!1)},r.prototype.getIndex=function(){return this.layerEditor.layerList.indexOf(this)},r.prototype.nextLayer=function(){var e=this.zIndex-1;if(0>e||"undefined"==typeof this.group.zIndexList[e])this.group.nextLayer();else{var t=this.group.zIndexList[e];t.activate()}},r.prototype.previousLayer=function(){var e=this.zIndex+1;if(e>this.zIndexList.length-1||"undefined"==typeof this.group.zIndexList[e])this.group.previousLayer();else{var t=this.group.zIndexList[e];t.activate()}},r.prototype.dispatchActionToChildren=function(e,t){for(var i=0;i<this.layers.length;i++)this.layers[i][e].apply(this.layers[i],t)},r.prototype.snap=function(){},r.prototype["delete"]=function(){this.layerEditor.getSelectedLayer()==this&&this.layerEditor.panel.hide(),this.deActivate();for(var i=t.extend([],this.layers),s=0;s<i.length;s++)i[s]["delete"]();e.history.add(t.proxy(function(){return[this,"deleteGroup","delete","create",[this.getData({layersIncluded:!1,itemsIncluded:!1})]]},this)),this.group.childDeleted(this),this.layer.trigger("mouseup"),this.isDeleted=!0,this.layerEditor.layerDeleted(this.getIndex()),this.layer.triggerHandler("LayerDeleted"),this.layer.remove(),this.layerRow.remove(),this.$.trigger("layerDeleted"),delete this.layer},r.prototype.duplicate=function(e,t){this.layerEditor.loadData([this.getData({layersIncluded:!0,itemsIncluded:!0})],!1)},r.prototype._syncparallax=function(e){},r.prototype._syncfontsize=function(e){this.adjustFontSize(this.getProperty(!1,"adaptivefont"),e,!0)},r.prototype._syncadaptivefont=function(e){this.adjustFontSize(e,this.getProperty(!0,"fontsize"),!0)},r.prototype.adjustFontSize=function(e,t,i){t=parseInt(t),parseInt(e)?this.layer.css("font-size",nextend.smartSlider.frontend.sliderElement.data("fontsize")*t/100+"px"):100!=t?this.layer.css("font-size",t+"%"):this.layer.css("font-size",""),i&&this.update()},r.prototype._syncgeneratorvisible=function(e){},r.prototype._syncdesktopPortrait=function(e){this.__syncShowOnDevice("desktopPortrait",e)},r.prototype._syncdesktopLandscape=function(e){this.__syncShowOnDevice("desktopLandscape",e)},r.prototype._synctabletPortrait=function(e){this.__syncShowOnDevice("tabletPortrait",e)},r.prototype._synctabletLandscape=function(e){this.__syncShowOnDevice("tabletLandscape",e)},r.prototype._syncmobilePortrait=function(e){this.__syncShowOnDevice("mobilePortrait",e)},r.prototype._syncmobileLandscape=function(e){this.__syncShowOnDevice("mobileLandscape",e)},r.prototype.__syncShowOnDevice=function(e,t){if(this.getMode()==e){var t=parseInt(t);t?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[e,t])}},r.prototype._hide=function(){this.layer.css("display","none")},r.prototype._show=function(){parseInt(this.property[this.layerEditor.getMode()])&&this.layer.css("display","block"),this.update()},r.prototype.update=function(){for(var e=0;e<this.layers.length;e++)this.layers[e].update()},r.prototype.setProperty=function(e,t,i){switch(e){case"parallax":case"generatorvisible":case"adaptivefont":this.store(!1,e,t,!0);break;case"fontsize":this.store(!0,e,t,!0);break;case"showFieldDesktopPortrait":this.store(!1,"desktopPortrait",parseInt(t),!0);break;case"showFieldDesktopLandscape":this.store(!1,"desktopLandscape",parseInt(t),!0);break;case"showFieldTabletPortrait":this.store(!1,"tabletPortrait",parseInt(t),!0);break;case"showFieldTabletLandscape":this.store(!1,"tabletLandscape",parseInt(t),!0);break;case"showFieldMobilePortrait":this.store(!1,"mobilePortrait",parseInt(t),!0);break;case"showFieldMobileLandscape":this.store(!1,"mobileLandscape",parseInt(t),!0)}"manager"!=i&&this.$.trigger("propertyChanged",[e,t])},r.prototype.changeEditorMode=function(e){var t=parseInt(this.property[e]);t?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[e,t]),this._renderModeProperties(!1)},r.prototype._renderModeProperties=function(e){for(var t in this.property)this.property[t]=this.getProperty(!0,t),this.$.trigger("propertyChanged",[t,this.property[t]]);var i=this.getProperty(!0,"fontsize");this.adjustFontSize(this.getProperty(!1,"adaptivefont"),i,!1)},r.prototype.updateAnimations=function(){},r.prototype.showEditor=function(){this.layerEditor.panel._show()},r.prototype.doAction=function(e,i){for(var s=t.extend([],this.zIndexList),n=0;n<s.length;n++)s[n][e].apply(s[n],i)},r.prototype.copyMode=function(e,i){e!=i&&(this.deviceProperty[i]=t.extend({},this.deviceProperty[i],this.deviceProperty[e]))},r.prototype.resetMode=function(e,t){if("desktopPortrait"!=e){var i;for(var s in this.property)this.deviceProperty[e][s]=i;e==t&&this._renderModeProperties(!0)}},r.prototype.restoreMode=function(e,i,s){"desktopPortrait"!=e&&(this.deviceProperty[e]=t.extend({},s),e==i&&this._renderModeProperties(!0))},r.prototype.history=function(e,t,i,s){NextendSmartSliderLayerDataStorageAbtract.prototype.history.apply(this,arguments),NextendSmartSliderLayerContainerAbstract.prototype.history.apply(this,arguments)},i.NextendSmartSliderLayerGroup=r}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(){this.isShown=!t.jStorage.get("ssLayersShown",!1),this.tlHeight=t.jStorage.get("ssLayersHeight")||200,this.$container=t("#n2-ss-layers"),this.fixScroll(),this.switchLayerList(),this.topBar=t(".n2-ss-layer-list-top-bar").on("mousedown",t.proxy(this.resizeStart,this)),this.topBar.find(".n2-ss-layer-list-opener").on("click",t.proxy(function(e){e.preventDefault(),this.switchLayerList()},this)),t(".n2-ss-slide-show-layers").on("click",t.proxy(function(e){e.preventDefault(),this.switchLayerList()},this)),this.onResize(),t(window).on("resize",t.proxy(this.onResize,this))}n.prototype.onResize=function(){var e=this.$container.height();this.paneLeft.height(e-48),this.paneRight.height(e-48)},n.prototype.onActivateLayer=function(e){var t=this.paneLeft.scrollTop(),i=e.layerRow.get(0).offsetTop;(t>i||i>t+this.paneLeft.height()-e.layerRow.height())&&(this.paneLeft.scrollTop(i),this.paneRight.scrollTop(i))},n.prototype.fixScroll=function(){this.paneLeft=t(".n2-ss-layers-sidebar-rows"),this.paneRight=t(".n2-ss-timeline-content-layers-container");var e=t.proxy(function(e){var t=this.paneLeft.scrollTop();e.originalEvent.deltaY>0?t+=40:t-=40,t=40*Math.round(t/40),this.paneLeft.scrollTop(t),this.paneRight.scrollTop(t),e.preventDefault()},this);this.paneLeft.on("mousewheel",e),this.paneLeft.on("scroll",t.proxy(function(e){var t=this.paneLeft.scrollTop();this.paneRight.scrollTop(t),e.preventDefault()},this)),this.paneRight.on("mousewheel",e)},n.prototype.resizeStart=function(e){this.isShown&&(e.target==this.topBar[0]||t(e.target).hasClass("n2-h2"))&&(e.preventDefault(),this.startY=e.clientY,this.height=this.$container.height(),t("body").on({"mousemove.n2-ss-tl-resize":t.proxy(this.resizeMove,this),"mouseup.n2-ss-tl-resize":t.proxy(this.resizeStop,this),"mouseleave.n2-ss-tl-resize":t.proxy(this.resizeStop,this)}))},n.prototype.resizeMove=function(e){e.preventDefault(),this.setTLHeight(this._calculateDesiredHeight(e))},n.prototype.resizeStop=function(e){e.preventDefault(),t("body").off(".n2-ss-tl-resize");var i=this._calculateDesiredHeight(e);this.setTLHeight(i),this.tlHeight=i,t.jStorage.set("ssLayersHeight",i),t("#n2-admin").triggerHandler("resize")},n.prototype._calculateDesiredHeight=function(e){var t=this.startY-e.clientY+this.height-48;return this.__calculateDesiredHeight(t)},n.prototype.__calculateDesiredHeight=function(e){return 40*Math.round(Math.min(Math.max(40,e),(window.innerHeight||document.documentElement.clientHeight)/2)/40)+48},n.prototype.switchLayerList=function(){this.isShown=!this.isShown,this.$container.toggleClass("n2-active",this.isShown),this.isShown?this.setTLHeight(this.tlHeight):this.setTLHeight(48),t.jStorage.set("ssLayersShown",this.isShown)},n.prototype.setTLHeight=function(e){e=Math.max(48,e),this.$container.height(e),e=this.$container.height(),this.paneLeft.height(e-48),this.paneRight.height(e-48),nextend.triggerResize()},n.prototype.activateAdd=function(e,t){this.$add.css({left:e,top:t}).appendTo(this.$container)},window.NextendSmartSliderAdminLayersUserInterface=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e){this.isMainGroup=!0,NextendSmartSliderLayerContainerAbstract.prototype.constructor.call(this,e,!1),this.lateInit(),this.startWithExistingNodes()}n.prototype=Object.create(NextendSmartSliderLayerContainerAbstract.prototype),n.prototype.constructor=n,n.prototype.createLayer=function(){this.layer||(this.layer=this.layerEditor.layerContainerElement)},n.prototype.createLayerRow=function(){this.layersItemsUlElement=this.layerEditor.layersItemsElement.find("ul").data("container",this)},n.prototype.nextLayer=function(){var e=this.zIndexList[this.zIndexList.length-1];e.activate()},n.prototype.previousLayer=function(){var e=this.zIndexList[0];e.activate()},i.NextendSmartSliderMainLayerGroup=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(i,s,n,r,a){this.activeLayerIndex=-1,this.snapToEnabled=!0,this.staticSlide=s,this.initSelectMode(),this.$=t(this),e.layerManager=this,this.responsive=e.frontend.responsive,this.panel=new NextendSmartSliderSidebar(this),this.layerList=[],this.layersItemsElement=t("#n2-ss-layer-list"),this.frontendSlideLayers=i,this.frontendSlideLayers.setZero(),this.layerContainerElement=e.$currentSlideElement.find(".n2-ss-layers-container"),this.layerContainerElement.length||(this.layerContainerElement=e.$currentSlideElement),this.layerContainerElement.parent().prepend('<div class="n2-ss-slide-border n2-ss-slide-border-left" /><div class="n2-ss-slide-border n2-ss-slide-border-top" /><div class="n2-ss-slide-border n2-ss-slide-border-right" /><div class="n2-ss-slide-border n2-ss-slide-border-bottom" />'),this.slideSize={width:this.layerContainerElement.width(),height:this.layerContainerElement.height()},e.frontend.sliderElement.on("SliderResize",t.proxy(this.refreshSlideSize,this)),this.sidebar=new NextendSmartSliderAdminSlideSidebarSettings(this),this.ui=new NextendSmartSliderAdminLayersUserInterface(this),e.itemEditor=this.itemEditor=new NextendSmartSliderItemManager(this),this.positionDisplay=t('<div class="n2 n2-ss-position-display"/>').appendTo("body"),this.mainLayerGroup=new NextendSmartSliderMainLayerGroup(this),t("#smartslider-slide-toolbox-layer").on("mouseenter",function(){t("#n2-admin").addClass("smartslider-layer-highlight-active")}).on("mouseleave",function(){t("#n2-admin").removeClass("smartslider-layer-highlight-active")}),this._initDeviceModeChange(),this.initSettings(),this.sidebar.startFeatures();var l=t("#n2-ss-layer-adaptive-font").on("click",t.proxy(function(){this.sidebar.forms.layer.adaptivefont.data("field").onoff.trigger("click")},this));this.sidebar.forms.layer.adaptivefont.on("nextendChange",t.proxy(function(){1==this.sidebar.forms.layer.adaptivefont.val()?l.addClass("n2-active"):l.removeClass("n2-active")},this)),new NextendElementNumber("n2-ss-layer-font-size",-Number.MAX_VALUE,Number.MAX_VALUE),new NextendElementAutocompleteSlider("n2-ss-layer-font-size",{min:50,max:300,step:5});var p=t("#n2-ss-layer-font-size").on("outsideChange",t.proxy(function(){var e=parseInt(p.val());this.sidebar.forms.layer.fontsize.val(e).trigger("change")},this));this.sidebar.forms.layer.fontsize.on("nextendChange",t.proxy(function(){p.data("field").insideChange(this.sidebar.forms.layer.fontsize.val())},this)),t(".n2-ss-slide-duplicate-layer").on("click",t.proxy(function(e){e.preventDefault(),this.duplicate()},this)),t(".n2-ss-slide-delete-layer").on("click",t.proxy(function(e){e.preventDefault(),this["delete"]()},this)),t(window).on({keydown:t.proxy(function(i){if(!("TEXTAREA"==i.target.tagName||"INPUT"==i.target.tagName||e.timelineControl&&e.timelineControl.isActivated())&&-1!=this.activeLayerIndex){var s=i.keyCode;if(s>=49&&57>=s){var n=i.originalEvent.location||i.originalEvent.keyLocation||0;3==n&&(s+=48)}if(46==s||8==s)this["delete"](),i.preventDefault();else if(35==s)this.duplicate(),i.preventDefault();else if(16==s)o[s]=1;else if(38==s){if(!o[s]){var r=t.proxy(function(){this.doActionOnActiveLayer("moveY",[-1*(o[16]?10:1)])},this);r(),o[s]=setInterval(r,100)}i.preventDefault()}else if(40==s){if(!o[s]){var r=t.proxy(function(){this.doActionOnActiveLayer("moveY",[o[16]?10:1])},this);r(),o[s]=setInterval(r,100)}i.preventDefault()}else if(37==s){if(!o[s]){var r=t.proxy(function(){this.doActionOnActiveLayer("moveX",[-1*(o[16]?10:1)])},this);r(),o[s]=setInterval(r,100)}i.preventDefault()}else if(39==s){if(!o[s]){var r=t.proxy(function(){this.doActionOnActiveLayer("moveX",[o[16]?10:1])},this);r(),o[s]=setInterval(r,100)}i.preventDefault()}else if(s>=97&&105>=s){var a=d[s],l=h[s],p=!1;this.sidebar.forms.layer.align.val()==a&&this.sidebar.forms.layer.valign.val()==l&&(p=!0),this.sidebar.layerFeatures.horizontalAlign(a,p),this.sidebar.layerFeatures.verticalAlign(l,p)}else 34==s?(i.preventDefault(),this.layerList[this.activeLayerIndex].nextLayer()):33==s?(i.preventDefault(),this.layerList[this.activeLayerIndex].previousLayer()):65==s?(i.preventDefault(),this.layerList[this.activeLayerIndex].fit()):(i.ctrlKey||i.metaKey)&&(90==s?i.shiftKey?e.history.redo():e.history.undo():67==s?this.copy():86==s?this.paste(0):71==s&&(this.createGroupFromSelected(),i.preventDefault()))}},this),keyup:t.proxy(function(e){"undefined"!=typeof o[e.keyCode]&&o[e.keyCode]&&(clearInterval(o[e.keyCode]),o[e.keyCode]=0)},this)}),this.addContextMenu(),n||e.frontend.sliderElement.fileupload({url:r,pasteZone:!1,dropZone:e.frontend.sliderElement,dataType:"json",paramName:"image",add:t.proxy(function(e,t){t.formData={path:"/"+a},t.submit()},this),done:t.proxy(function(e,t){var i=t.result;if(i.data&&i.data.name){var s=this.itemEditor.createLayerItem(!1,"image");s.reRender({image:i.data.url}),s.activate(null,null,!0)}else NextendAjaxHelper.notification(i)},this),fail:t.proxy(function(e,t){NextendAjaxHelper.notification(t.jqXHR.responseJSON)},this),start:function(){NextendAjaxHelper.startLoading()},stop:function(){setTimeout(function(){NextendAjaxHelper.stopLoading()},100)}});var c=this;window.validateLayers=function(){console.group();for(var e=0;e<c.mainLayerGroup.zIndexList.length;e++)console.log(e,c.mainLayerGroup.zIndexList[e].layerRow.get(0));console.groupEnd()},this.$.on("layerCreated",t.proxy(function(){this.editorVisibilityRefresh()},this)),this.editorVisibilityRefresh(),t("body").on("mousedown",t.proxy(function(e){"main"==nextend.context.getCurrentWindow()&&nextend.context.mouseDownArea===!1&&this.panel.hide()},this))}function r(e){this.mode=c.UNDEFINED,this.forms={undefined:null},this.layerEditor=e,this.toolboxElement=t("#smartslider-slide-toolbox-layer"),this.startLayer(),this.startGroup()}function a(e){this.fields=e,this.initParentLinker(),this.initAlign(),this.initEvents()}var o={16:0,38:0,40:0,37:0,39:0},l={left:0,center:1,right:2,top:0,middle:1,bottom:2},d={97:"left",98:"center",99:"right",100:"left",101:"center",102:"right",103:"left",104:"center",105:"right"},h={97:"bottom",98:"bottom",99:"bottom",100:"middle",101:"middle",102:"middle",103:"top",104:"top",105:"top"},p={OFF:0,ON:1,GROUP:2};n.prototype.getMode=function(){return this.mode},n.prototype._getMode=function(){return this.responsive.getNormalizedModeString()},n.prototype.getResponsiveRatio=function(e){return"h"==e?this.responsive.lastRatios.slideW:"v"==e?this.responsive.lastRatios.slideH:0},n.prototype.isGroup=function(e){return e instanceof NextendSmartSliderLayerGroup},n.prototype.getActiveGroup=function(){var e=this.getSelectedLayer();return this.isGroup(e)?e:e?e.group:this.mainLayerGroup},n.prototype.createLayer=function(e,t){var i=this.sidebar.layerFeatures.layerDefault;for(var s in i)null!==i[s]&&(t[s]=i[s]);var n=new NextendSmartSliderLayer(this,e,!1,this.itemEditor,t);return e.reIndexLayers(),n},n.prototype.addLayer=function(i,s,n){var r=this._addLayer(i,s,n);return e.history.add(t.proxy(function(){return[r,"addLayer","add","delete",[i,r.getData({layersIncluded:!0,itemsIncluded:!0})]]},this)),r},n.prototype._addLayer=function(e,i,s){var n=t(i);this.layerContainerElement.append(n);var r=new NextendSmartSliderLayer(this,e,n,this.itemEditor);return e!=this.mainLayerGroup&&e.moveLayerToGroup(r,r.zIndex),s&&(this.mainLayerGroup.reIndexLayers(),this.refreshMode()),r},n.prototype.switchToLayerTab=function(){e.slide._changeView(1)},n.prototype._initDeviceModeChange=function(){var i=t("#layerresettodesktop").on("click",t.proxy(this.__onResetToDesktopClick,this));this.resetToDesktopTRElement=i.closest("tr"),this.resetToDesktopGlobalElement=t("#n2-ss-layer-reset-to-desktop").on("click",t.proxy(function(){"block"==this.resetToDesktopTRElement.css("display")&&i.trigger("click")},this));var s=t("#n2-ss-layer-show-on"),n={},r=e.frontend.responsive.parameters.deviceModes;for(var a in r)r[a]&&(n[a]=t('<div class="n2-radio-option"><i class="n2-i n2-it n2-i-'+a+'"></i></div>').on("click",t.proxy(function(e){this.sidebar.forms.layer["showField"+e.charAt(0).toUpperCase()+e.substr(1)].data("field").onoff.trigger("click")},this,a)).appendTo(s));s.children().first().addClass("n2-first"),s.children().last().addClass("n2-last"),this.globalShowOnDeviceCB=function(e){"undefined"!=typeof n[e]&&n[e].toggleClass("n2-active",1==this.sidebar.forms.layer["showField"+e.charAt(0).toUpperCase()+e.substr(1)].val())},this.sidebar.forms.layer.showFieldDesktopPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopPortrait")),this.sidebar.forms.layer.showFieldDesktopLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopLandscape")),this.sidebar.forms.layer.showFieldTabletPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletPortrait")),this.sidebar.forms.layer.showFieldTabletLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletLandscape")),this.sidebar.forms.layer.showFieldMobilePortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobilePortrait")),this.sidebar.forms.layer.showFieldMobileLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobileLandscape")),t("#layershow").data("field").setAvailableDevices(r),t("#layergroup-show").data("field").setAvailableDevices(r),this.__onChangeDeviceOrientation(),e.frontend.sliderElement.on("SliderDeviceOrientation",t.proxy(this.__onChangeDeviceOrientation,this)),e.frontend.sliderElement.on("SliderResize",t.proxy(this.__onResize,this))},n.prototype.refreshMode=function(){this.__onChangeDeviceOrientation(),e.frontend.responsive.reTriggerSliderDeviceOrientation()},n.prototype.__onChangeDeviceOrientation=function(){this.mode=this._getMode(),this.globalShowOnDeviceCB(this.mode),this.resetToDesktopTRElement.css("display","desktopPortrait"==this.mode?"none":"block"),this.resetToDesktopGlobalElement.css("display","desktopPortrait"==this.mode?"none":"");for(var e=0;e<this.layerList.length;e++)this.layerList[e].changeEditorMode(this.mode)},n.prototype.__onResize=function(e,t){for(var i=this.getSortedLayers(),s=0;s<i.length;s++)i[s].doLinearResize(t)},n.prototype.__onResetToDesktopClick=function(){if(-1!=this.activeLayerIndex){var e=this.getMode();this.layerList[this.activeLayerIndex].resetMode(e,e)}},n.prototype.copyOrResetMode=function(e){var t=this.getMode();if("desktopPortrait"!=e&&e==t)for(var i=0;i<this.layerList.length;i++)this.layerList[i].resetMode(e,t);else if("desktopPortrait"!=e&&"desktopPortrait"==t)for(var i=0;i<this.layerList.length;i++)this.layerList[i].resetMode(e,t);else if(e!=t)for(var i=0;i<this.layerList.length;i++)this.layerList[i].copyMode(t,e)},n.prototype.refreshSlideSize=function(){this.slideSize.width=e.frontend.dimensions.slide.width,this.slideSize.height=e.frontend.dimensions.slide.height},n.prototype.initSettings=function(){this.settings={};var e=t("#n2-ss-slide-canvas-settings").on("mouseleave",t.proxy(function(){e.removeClass("n2-active")},this));e.find("> a").on("click",function(t){t.preventDefault(),e.toggleClass("n2-active")}),this.$settingsPanel=e.find(".n2-ss-settings-panel-inner"),this.initSnapTo(),this.initEditorTheme(),this.initRuler()},n.prototype.addSettings=function(e,i,s,n){this.settings[e]=parseInt(t.jStorage.get(e,s));var r=t('<a href="">'+i+'<span class="n2-setting-tick"><i class="n2-i n2-it n2-i-tick2"></i></span></a>').on("click",t.proxy(function(i){i.preventDefault(),this.settings[e]=1==this.settings[e]?0:1,t.jStorage.set(e,this.settings[e]),r.toggleClass("n2-setting-enabled",1==this.settings[e]),n(this.settings[e])},this)).appendTo(this.$settingsPanel);r.toggleClass("n2-setting-enabled",1==this.settings[e]),n(this.settings[e])},n.prototype.addAction=function(e,i){t('<a href="" class="n2-panel-action">'+e+"</a>").on("click",t.proxy(function(e){e.preventDefault(),i()},this)).appendTo(this.$settingsPanel)},n.prototype.initRuler=function(){var e=t("#n2-tab-smartslider-editor");this.addSettings("n2-ss-ruler-enabled","Ruler",1,t.proxy(function(t){e.toggleClass("n2-ss-has-ruler",1==t),nextend.triggerResize()},this)),this.addSettings("n2-ss-show-guides","Show Guides",1,t.proxy(function(t){nextend.ruler.showGuides=t,e.toggleClass("n2-ss-show-guides",1==t)},this)),this.addSettings("n2-ss-lock-guides","Lock Guides",0,t.proxy(function(t){e.toggleClass("n2-ss-lock-guides",1==t)},this)),this.addAction("Clear Guides",t.proxy(function(){nextend.ruler.clearGuides()},this))},n.prototype.initSnapTo=function(){this.addSettings("n2-ss-snap-to-enabled","Smart Snap",1,t.proxy(function(e){for(var t=0;t<this.layerList.length;t++)this.layerList[t].snap()},this))},n.prototype.getSnap=function(){return this.settings["n2-ss-snap-to-enabled"]?t(this.staticSlide?".n2-ss-static-slide .n2-ss-layer:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-guide":".n2-ss-slide.n2-ss-slide-active .n2-ss-layer:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-guide"):!1},n.prototype.initEditorTheme=function(){var e=t("#n2-tab-smartslider-editor");this.addSettings("n2-ss-theme-dark","Dark Mode",0,function(t){e.toggleClass("n2-ss-theme-dark",1==t)})},n.prototype.deleteLayers=function(){for(var e=this.mainLayerGroup.zIndexList.length-1;e>=0;e--)this.mainLayerGroup.zIndexList[e]["delete"]()},n.prototype.layerDeleted=function(e){var t=this.layerList[e];t.group.reIndexLayers();for(var i=this.selectedLayers.length;i--;)t==this.selectedLayers[i]&&this.selectedLayers.splice(i,1);this.layerList.splice(e,1),e===this.activeLayerIndex&&(this.activeLayerIndex=-1),this.afterLayerDeleted(e),this.editorVisibilityRefresh()},n.prototype.editorVisibilityRefresh=function(){switch(this.layerList.length>0){case!1:t("body").removeClass("n2-ss-has-layers"),nextend.triggerResize();break;default:t("body").addClass("n2-ss-has-layers"),nextend.triggerResize()}},n.prototype.afterLayerDeleted=NextendDeBounce(function(e){var t=this.getSelectedLayer();!t||t.isDeleted?this.resetActiveLayer():t&&(this.activeLayerIndex=t.getIndex())},50),n.prototype.getSortedLayers=function(){for(var e=this.mainLayerGroup.getChildLayersRecursive(!1),t={},i=e.length-1;i>=0;i--)"undefined"!=typeof e[i].property.parentid&&e[i].property.parentid&&("undefined"==typeof t[e[i].property.parentid]&&(t[e[i].property.parentid]=[]),t[e[i].property.parentid].push(e[i]),e.splice(i,1));for(var i=0;i<e.length;i++)"undefined"!=typeof e[i].property.id&&e[i].property.id&&"undefined"!=typeof t[e[i].property.id]&&(t[e[i].property.id].unshift(0),t[e[i].property.id].unshift(i+1),e.splice.apply(e,t[e[i].property.id]),delete t[e[i].property.id]);return e},n.prototype.getActiveLayerData=function(){var e=[];if("undefined"!=typeof this.layerList[this.activeLayerIndex])if(this.selectMode==p.ON)for(var t=0;t<this.selectedLayers.length;t++)this.selectedLayers[t].getDataWithChildren(e);else this.layerList[this.activeLayerIndex].getDataWithChildren(e);return e},n.prototype.getHTML=function(){for(var e=t("<div></div>"),i=this.layerList,s=0;s<i.length;s++)e.append(i[s].getHTML(!0,!0));return e.html()},n.prototype.getData=function(){for(var e=[],t=this.mainLayerGroup.zIndexList,i=0;i<t.length;i++)e.push(t[i].getData({layersIncluded:!0,itemsIncluded:!0}));return e},n.prototype.loadData=function(i,s,n){n=n||this.mainLayerGroup,e.history.add(t.proxy(function(){return[this,"fixActiveLayer","","",[]]},this));var r=t.extend(!0,[],i);s&&this.deleteLayers(),this._zIndexOffset=this.mainLayerGroup.zIndexList.length,this._idTranslation={};for(var a=0;a<r.length;a++)"group"==r[a].type?this.loadSingleGroupData(r[a]):this.loadSingleData(r[a],this.mainLayerGroup);this.mainLayerGroup.reIndexLayers(),this.refreshMode(),-1==this.activeLayerIndex&&this.layerList.length>0&&this.layerList[0].activate(),e.history.add(t.proxy(function(){return[this,"fixActiveLayer","","",[]]},this))},n.prototype.loadSingleGroupData=function(e){return new NextendSmartSliderLayerGroup(this,this.mainLayerGroup,!1,e)},n.prototype.loadSingleData=function(e,i){var s=t('<div class="n2-ss-layer"></div>').attr("style",e.style),n=s.css("zIndex");if("auto"!=n&&""!=n||(n=e.zIndex?e.zIndex:1),s.css("zIndex",n+this._zIndexOffset),e.id){var r=t.fn.uid();this._idTranslation[e.id]=r,s.attr("id",r)}e.parentid&&("undefined"!=typeof this._idTranslation[e.parentid]?e.parentid=this._idTranslation[e.parentid]:e.parentid="");for(var a=0;a<e.items.length;a++)t('<div class="n2-ss-item n2-ss-item-'+e.items[a].type+'"></div>').data("item",e.items[a].type).data("itemvalues",e.items[a].values).appendTo(s);delete e.style,delete e.items;for(var o in e)s.data(o,e[o]);return this.addLayer(i,s,!1)},n.prototype.getSelectedLayer=function(){return-1==this.activeLayerIndex?!1:this.layerList[this.activeLayerIndex]},n.prototype.fixActiveLayer=function(){var e=this.getSelectedLayer();(0==e||e.isDeleted)&&this.resetActiveLayer()},n.prototype.resetActiveLayer=function(){this.mainLayerGroup.zIndexList.length>0?this.mainLayerGroup.zIndexList[this.mainLayerGroup.zIndexList.length-1].activate():this.changeActiveLayer(-1);
7
- },n.prototype.changeActiveLayer=function(e,i){var s=this.activeLayerIndex;if(-1!=s){var n=this.layerList[s];n&&(n.$.off("propertyChanged.layerEditor"),n.deActivate())}if(this.activeLayerIndex=e,i||this.exitSelectMode(),-1!=e){var r=this.layerList[e];r instanceof NextendSmartSliderLayerGroup?this.sidebar.changeMode("GROUP"):this.sidebar.changeMode("LAYER"),r.$.on("propertyChanged.layerEditor",t.proxy(this.sidebar.activatePropertyChanged,this.sidebar));var a=r.property;for(var o in a)this.sidebar.activatePropertyChanged({target:r},o,a[o])}this.$.trigger("activeLayerChanged")},n.prototype.eye=function(){"undefined"!=typeof this.layerList[this.activeLayerIndex]&&this.doActionOnActiveLayer("changeStatus",[3])},n.prototype.lock=function(){"undefined"!=typeof this.layerList[this.activeLayerIndex]&&this.doActionOnActiveLayer("changeStatus",[2])},n.prototype["delete"]=function(){"undefined"!=typeof this.layerList[this.activeLayerIndex]&&this.doActionOnActiveLayer("delete")},n.prototype.duplicate=function(){"undefined"!=typeof this.layerList[this.activeLayerIndex]&&this.doActionOnActiveLayer("duplicate",[this.selectMode!=p.ON,!1])},n.prototype.copy=function(e){"undefined"==typeof e&&(e=this.getCopied());var i=this.getActiveLayerData();if(i.length){for(e.unshift({name:i[0].name,layers:i});e.length>5;)e.pop();t.jStorage.set("copied",JSON.stringify(e))}},n.prototype.paste=function(e,t){"undefined"==typeof t&&(t=this.getCopied()),t.length&&"undefined"!=typeof t[e]&&nextend.smartSlider.layerManager.loadData(t[e].layers,!1)},n.prototype.getCopied=function(){var e=t.jStorage.get("copied");return null===e?[]:JSON.parse(e)},n.prototype.addContextMenu=function(){var e=this;t.contextMenu({selector:"#n2-ss-0",className:"n2",autoHide:!0,build:function(i,s){var n=null,r=t(s.target).closest(".n2-ss-layer");r.length?(n=r.data("layerObject"),n.activate(s)):n=e.layerList[e.activeLayerIndex]||!1;var a={};n&&(a["delete"]={name:"Delete layer",icon:"delete"},a.duplicate={name:"Duplicate layer",icon:"duplicate"},a.copy={name:"Copy layer",icon:"copy"});var o=e.getCopied();if(1==o.length)a.paste={name:"Paste layer",icon:"paste",callback:t.proxy(e.paste,this,0,o)};else if(o.length>1){for(var l={},d=0;d<o.length;d++)l["paste"+d]={name:o[d].name,callback:t.proxy(e.paste,this,d,o)};a.paste={name:"Paste layer",icon:"paste",items:l}}return t.isEmptyObject(a)?!1:{animation:{duration:0,show:"show",hide:"hide"},zIndex:1e6,callback:function(t,i){e[t]()},positionSubmenu:function(e){if(t.ui&&t.ui.position)e.css("display","block").position({my:"left+2 top",at:"right top",of:this,collision:"flipfit fit"}).css("display","");else{var i={top:0,left:this.outerWidth()};e.css(i)}},items:a}}})},n.prototype.history=function(e,t,i){switch(e){case"fixActiveLayer":this.fixActiveLayer()}},n.prototype.initSelectMode=function(){this.selectMode=p.OFF,this.selectedLayers=[],t(".n2-ss-layer-list-top-bar .n2-button").on("mousedown",t.proxy(function(e){switch(e.preventDefault(),t(e.currentTarget).data("action")){case"delete":this["delete"]();break;case"duplicate":this.duplicate();break;case"group":this.createGroupFromSelected();break;case"cancel":this.exitSelectMode()}},this))},n.prototype.startSelection=function(e){e?(this.selectMode==p.ON&&this.exitSelectMode(),this.changeSelectMode(p.GROUP)):this.changeSelectMode(p.ON)},n.prototype.changeSelectMode=function(e){var i=this.selectMode;i!=e&&(i==p.ON?t("#n2-admin").removeClass("n2-ss-select-layer-mode-on"):i==p.GROUP&&t("#n2-admin").removeClass("n2-ss-select-layer-mode-group"),this.selectMode=e,i==p.GROUP&&e==p.ON&&this.selectedLayers[0].activate(null,null,!0),e==p.OFF?t("#n2-admin").removeClass("n2-ss-select-layer-mode"):(t("#n2-admin").addClass("n2-ss-select-layer-mode"),e==p.ON?t("#n2-admin").addClass("n2-ss-select-layer-mode-on"):e==p.GROUP&&t("#n2-admin").addClass("n2-ss-select-layer-mode-group")),this.selectMode==p.OFF?t("body").off(".n2-ss-selection"):t("body").on("mousedown.n2-ss-selection",t.proxy(function(e){"main"==nextend.context.getCurrentWindow()&&nextend.context.mouseDownArea===!1&&this.exitSelectMode()},this)))},n.prototype.endSelection=function(e){e&&this.selectMode==p.GROUP&&this.exitSelectMode()},n.prototype.selectLayer=function(e,t){this.selectMode!=p.ON&&(this.startSelection(!1),t&&this.selectedLayers.push(this.layerList[this.activeLayerIndex])),this._selectLayer(e)},n.prototype._selectLayer=function(e){var i=t.inArray(e,this.selectedLayers);if(-1!=i){if(this.selectMode==p.ON&&this.selectedLayers.length<=1)return this.exitSelectMode(),!1;var s=this.selectedLayers[i];if(this.selectedLayers.splice(i,1),e.layerRow.removeClass("n2-selected"),e.layer.removeClass("n2-ss-layer-selected"),this.selectMode==p.ON&&this.selectedLayers.length<=1)return this.selectedLayers[0].activate(),this.exitSelectMode(),!1;s===this.layerList[this.activeLayerIndex]&&this.selectedLayers[0].activate(!1,null,!0)}else{for(var n=this.selectedLayers.length,r=0;r<this.selectedLayers.length;r++)if(this.selectedLayers[r]._sortZIndex(e)){n=r;break}this.selectedLayers.splice(n,0,e)}for(var r=0;r<this.selectedLayers.length;r++)this.selectedLayers[r].layerRow.addClass("n2-selected"),this.selectedLayers[r].layer.addClass("n2-ss-layer-selected")},n.prototype.addSelection=function(e,t){t||this.changeSelectMode(p.ON);for(var i=0;i<e.length;i++)this._selectLayer(e[i],!1)},n.prototype.exitSelectMode=function(){if(this.selectMode){for(var e=0;e<this.selectedLayers.length;e++)this.selectedLayers[e]!=this.layerList[this.activeLayerIndex]&&this.selectedLayers[e].layerRow.removeClass("n2-active"),this.selectedLayers[e].layerRow.removeClass("n2-selected"),this.selectedLayers[e].layer.removeClass("n2-ss-layer-selected");t("#n2-admin").removeClass("n2-ss-select-layer-mode"),this.selectedLayers=[],this.changeSelectMode(p.OFF)}},n.prototype.doActionOnActiveLayer=function(e,i){if(this.selectMode==p.ON)for(var s=t.extend([],this.selectedLayers),n=0;n<s.length;n++)s[n][e].apply(s[n],i);else"function"==typeof this.layerList[this.activeLayerIndex][e]?this.layerList[this.activeLayerIndex][e].apply(this.layerList[this.activeLayerIndex],i):this.layerList[this.activeLayerIndex].doAction(e,i)},n.prototype.draggableStart=function(e){if(this.selectMode){for(var t=!1,i=0;i<this.selectedLayers.length;i++){var s=this.selectedLayers[i],n=s.layer;if(n[0]!=e.helper[0]){var r=n.css("display");"none"==r&&n.css("display","block"),s._originalPosition=n.position(),"none"==r&&n.css("display",r)}else t=!0}t||this.exitSelectMode()}},n.prototype.draggableDrag=function(e){if(this.selectMode)for(var t={left:e.position.left-e.originalPosition.left,top:e.position.top-e.originalPosition.top},i=0;i<this.selectedLayers.length;i++){var s=this.selectedLayers[i],n=s.layer;s instanceof NextendSmartSliderLayerGroup||n[0]!=e.helper[0]&&(n.css({left:s._originalPosition.left+t.left,top:s._originalPosition.top+t.top,bottom:"auto",right:"auto"}),s.triggerLayerResized())}},n.prototype.draggableStop=function(e){if(this.selectMode){for(var t={left:e.position.left-e.originalPosition.left,top:e.position.top-e.originalPosition.top},i=0;i<this.selectedLayers.length;i++){var s=this.selectedLayers[i],n=s.layer;if(s instanceof NextendSmartSliderLayerGroup);else if(n[0]!=e.helper[0]){var r=n.css("display");"none"==r&&n.css("display","block"),s.setPosition(s._originalPosition.left+t.left,s._originalPosition.top+t.top),s.triggerLayerResized(),"none"==r&&n.css("display",r)}}return!0}return!1},n.prototype.createGroupFromSelected=function(){var i;switch(this.selectMode){case p.ON:i=new NextendSmartSliderLayerGroup(this,this.mainLayerGroup,!1);var s=e.history.add(t.proxy(function(){return[i,"createGroup","create","delete",[]]},this));i.groupLayersStartAndLateInit(this.selectedLayers),s[4].push(i.zIndex),this.exitSelectMode(),i.activate();break;case p.OFF:var n=this.layerList[this.activeLayerIndex];if(n.group instanceof NextendSmartSliderLayerGroup)n.group.activate();else{i=new NextendSmartSliderLayerGroup(this,this.mainLayerGroup,!1);var s=e.history.add(t.proxy(function(){return[i,"createGroup","create","delete",[]]},this));i.groupLayersStartAndLateInit([n]),s[4].push(i.zIndex),i.activate()}break;case p.GROUP:}},i.NextendSmartSliderAdminSlideLayerManager=n;var c={UNDEFINED:0,LAYER:1,GROUP:2},u={0:"UNDEFINED",1:"LAYER",2:"GROUP"};r.prototype.changeMode=function(e){this.mode!=c[e]&&(t("body").removeClass("n2-ss-editor-mode-"+u[this.mode]).addClass("n2-ss-editor-mode-"+e),c[e]==c.LAYER?t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["item","style","animations","position"]):c[e]==c.GROUP&&t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["group","animations"]),this.mode=c[e])},r.prototype.activatePropertyChanged=function(e,t,i){switch(this.mode){case c.LAYER:this.activeLayerPropertyChanged(e,t,i);break;case c.GROUP:this.activeGroupPropertyChanged(e,t,i)}},r.prototype.getActiveForm=function(){switch(this.mode){case c.LAYER:return this.forms.layer;case c.GROUP:return this.forms.group}return!1},r.prototype.startLayer=function(){this.forms.layer={id:t("#layerid"),parentid:t("#layerparentid"),parentalign:t("#layerparentalign"),parentvalign:t("#layerparentvalign"),left:t("#layerleft"),top:t("#layertop"),responsiveposition:t("#layerresponsive-position"),width:t("#layerwidth"),height:t("#layerheight"),responsivesize:t("#layerresponsive-size"),"class":t("#layerclass"),generatorvisible:t("#layergenerator-visible"),showFieldDesktopPortrait:t("#layershow-desktop-portrait"),showFieldDesktopLandscape:t("#layershow-desktop-landscape"),showFieldTabletPortrait:t("#layershow-tablet-portrait"),showFieldTabletLandscape:t("#layershow-tablet-landscape"),showFieldMobilePortrait:t("#layershow-mobile-portrait"),showFieldMobileLandscape:t("#layershow-mobile-landscape"),crop:t("#layercrop"),rotation:t("#layerrotation"),inneralign:t("#layerinneralign"),parallax:t("#layerparallax"),align:t("#layeralign"),valign:t("#layervalign"),fontsize:t("#layerfont-size"),adaptivefont:t("#layeradaptive-font"),mouseenter:t("#layeronmouseenter"),click:t("#layeronclick"),mouseleave:t("#layeronmouseleave"),play:t("#layeronplay"),pause:t("#layeronpause"),stop:t("#layeronstop")};for(var e in this.forms.layer)this.forms.layer[e].on("outsideChange",t.proxy(this.activateLayerPropertyChanged,this,e));this.layerEditor.responsive.isEnabled("desktop","Landscape")||this.forms.layer.showFieldDesktopLandscape.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("tablet","Portrait")||this.forms.layer.showFieldTabletPortrait.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("tablet","Landscape")||this.forms.layer.showFieldTabletLandscape.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("mobile","Portrait")||this.forms.layer.showFieldMobilePortrait.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("mobile","Landscape")||this.forms.layer.showFieldMobileLandscape.closest(".n2-mixed-group").css("display","none")},r.prototype.activateLayerPropertyChanged=function(e,t){if(-1!=this.layerEditor.activeLayerIndex){var i=this.forms.layer[e].val();this.layerEditor.layerList[this.layerEditor.activeLayerIndex].setProperty(e,i,"manager")}else{var s=this.forms.layer[e].data("field");"undefined"!=typeof s&&null!==s&&s.insideChange("")}},r.prototype.activeLayerPropertyChanged=function(e,t,i){if("function"==typeof this["layerFormSet"+t])this["layerFormSet"+t](i,e.target);else{var s=this.forms.layer[t].data("field");"undefined"!=typeof s&&s.insideChange(i)}},r.prototype.layerFormSetname=function(e){},r.prototype.layerFormSetnameSynced=function(e){},r.prototype.layerFormSetdesktopPortrait=function(e,t){this.forms.layer.showFieldDesktopPortrait.data("field").insideChange(e)},r.prototype.layerFormSetdesktopLandscape=function(e,t){this.forms.layer.showFieldDesktopLandscape.data("field").insideChange(e)},r.prototype.layerFormSettabletPortrait=function(e,t){this.forms.layer.showFieldTabletPortrait.data("field").insideChange(e)},r.prototype.layerFormSettabletLandscape=function(e,t){this.forms.layer.showFieldTabletLandscape.data("field").insideChange(e)},r.prototype.layerFormSetmobilePortrait=function(e,t){this.forms.layer.showFieldMobilePortrait.data("field").insideChange(e)},r.prototype.layerFormSetmobileLandscape=function(e,t){this.forms.layer.showFieldMobileLandscape.data("field").insideChange(e)},r.prototype.startFeatures=function(){this.layerFeatures=new a(this.forms.layer)},r.prototype.startGroup=function(){this.forms.group={parallax:t("#layergroup-parallax"),showFieldDesktopPortrait:t("#layergroup-show-desktop-portrait"),showFieldDesktopLandscape:t("#layergroup-show-desktop-landscape"),showFieldTabletPortrait:t("#layergroup-show-tablet-portrait"),showFieldTabletLandscape:t("#layergroup-show-tablet-landscape"),showFieldMobilePortrait:t("#layergroup-show-mobile-portrait"),showFieldMobileLandscape:t("#layergroup-show-mobile-landscape"),fontsize:t("#layergroup-font-size"),adaptivefont:t("#layergroup-adaptive-font"),generatorvisible:t("#layergroup-generator-visible")};for(var e in this.forms.group)this.forms.group[e].on("outsideChange",t.proxy(this.activateGroupPropertyChanged,this,e));this.layerEditor.responsive.isEnabled("desktop","Landscape")||this.forms.group.showFieldDesktopLandscape.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("tablet","Portrait")||this.forms.group.showFieldTabletPortrait.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("tablet","Landscape")||this.forms.group.showFieldTabletLandscape.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("mobile","Portrait")||this.forms.group.showFieldMobilePortrait.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("mobile","Landscape")||this.forms.group.showFieldMobileLandscape.closest(".n2-mixed-group").css("display","none")},r.prototype.activateGroupPropertyChanged=function(e,t){if(-1!=this.layerEditor.activeLayerIndex){var i=this.forms.group[e].val();this.layerEditor.layerList[this.layerEditor.activeLayerIndex].setProperty(e,i,"manager")}else{var s=this.forms.group[e].data("field");"undefined"!=typeof s&&null!==s&&s.insideChange("")}},r.prototype.activeGroupPropertyChanged=function(e,t,i){if("function"==typeof this["groupFormSet"+t])this["groupFormSet"+t](i,e.target);else{var s=this.forms.group[t].data("field");"undefined"!=typeof s&&s.insideChange(i)}},r.prototype.groupFormSetname=function(e){},r.prototype.groupFormSetdesktopPortrait=function(e){this.forms.group.showFieldDesktopPortrait.data("field").insideChange(e)},r.prototype.groupFormSetdesktopLandscape=function(e){this.forms.group.showFieldDesktopLandscape.data("field").insideChange(e)},r.prototype.groupFormSettabletPortrait=function(e){this.forms.group.showFieldTabletPortrait.data("field").insideChange(e)},r.prototype.groupFormSettabletLandscape=function(e){this.forms.group.showFieldTabletLandscape.data("field").insideChange(e)},r.prototype.groupFormSetmobilePortrait=function(e){this.forms.group.showFieldMobilePortrait.data("field").insideChange(e)},r.prototype.groupFormSetmobileLandscape=function(e){this.forms.group.showFieldMobileLandscape.data("field").insideChange(e)},i.NextendSmartSliderAdminSlideSidebarSettings=r,a.prototype.initParentLinker=function(){var e=this.fields.parentid.data("field");t("#n2-ss-layer-parent-linker").on({click:function(t){e.click(t)}})},a.prototype.initAlign=function(){this.layerDefault={align:null,valign:null};var e=t("#n2-ss-layer-horizontal-align .n2-radio-option"),i=t("#n2-ss-layer-vertical-align .n2-radio-option");e.add(i).on("click",t.proxy(function(s){if(s.ctrlKey||s.metaKey){var n=t(s.currentTarget),r=n.hasClass("n2-sub-active"),a=n.data("align");switch(a){case"left":case"center":case"right":e.removeClass("n2-sub-active"),r?(t.jStorage.set("ss-item-horizontal-align",null),this.layerDefault.align=null):(t.jStorage.set("ss-item-horizontal-align",a),this.layerDefault.align=a,n.addClass("n2-sub-active"));break;case"top":case"middle":case"bottom":i.removeClass("n2-sub-active"),r?(t.jStorage.set("ss-item-vertical-align",null),this.layerDefault.valign=null):(t.jStorage.set("ss-item-vertical-align",a),this.layerDefault.valign=a,n.addClass("n2-sub-active"))}}else if(-1!=this.activeLayerIndex){var a=t(s.currentTarget).data("align");switch(a){case"left":case"center":case"right":this.horizontalAlign(a,!0);break;case"top":case"middle":case"bottom":this.verticalAlign(a,!0)}}},this)),this.fields.align.on("nextendChange",t.proxy(function(){switch(e.removeClass("n2-active"),this.fields.align.val()){case"left":e.eq(0).addClass("n2-active");break;case"center":e.eq(1).addClass("n2-active");break;case"right":e.eq(2).addClass("n2-active")}},this)),this.fields.valign.on("nextendChange",t.proxy(function(){switch(i.removeClass("n2-active"),this.fields.valign.val()){case"top":i.eq(0).addClass("n2-active");break;case"middle":i.eq(1).addClass("n2-active");break;case"bottom":i.eq(2).addClass("n2-active")}},this));var s=t.jStorage.get("ss-item-horizontal-align",null),n=t.jStorage.get("ss-item-vertical-align",null);null!=s&&(e.eq(l[s]).addClass("n2-sub-active"),this.layerDefault.align=s),null!=n&&(i.eq(l[n]).addClass("n2-sub-active"),this.layerDefault.valign=n)},a.prototype.horizontalAlign=function(e,t){this.fields.align.val()!=e?this.fields.align.data("field").options.eq(l[e]).trigger("click"):t&&this.fields.left.val(0).trigger("change")},a.prototype.verticalAlign=function(e,t){this.fields.valign.val()!=e?this.fields.valign.data("field").options.eq(l[e]).trigger("click"):t&&this.fields.top.val(0).trigger("change")},a.prototype.initEvents=function(){var e=t("#n2-tab-events"),i=e.find(".n2-h3"),s=i.html(),n=t('<div class="n2-editor-header n2-h2 n2-uc"><span>'+s+"</span></div>");i.replaceWith(n)}}(nextend.smartSlider,n2,window);
1
+ function strip_tags(e,t){t=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");var i=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,s=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;return e.replace(s,"").replace(i,function(e,i){return t.indexOf("<"+i.toLowerCase()+">")>-1?e:""})}var NextendSmartSliderAdminStorage=function(){this.timelineManager=null,this.timelineControl=null,this.slide=null,this.frontend=null,this.generator=null,this.layerManager=null,this.history=null,this.oneSecWidth=200,this.oneSecMs=1e3,this.fps=20,this.pxToFrame=this.oneSecWidth/this.fps,this.$currentSlideElement=null};NextendSmartSliderAdminStorage.prototype.durationToOffsetX=function(e){return e*this.oneSecWidth},NextendSmartSliderAdminStorage.prototype.offsetXToDuration=function(e){return e/this.oneSecWidth},NextendSmartSliderAdminStorage.prototype.normalizeOffsetX=function(e){return Math.round(e/this.pxToFrame)*this.pxToFrame},NextendSmartSliderAdminStorage.prototype.startEditor=function(e,t,i,s,n,r){return null===this.slide&&window[e].started(function(){new SmartSliderAdminSlide(e,t,i,s,n,r)}),this.slide},window.nextend.pre="div#n2-ss-0 ",window.nextend.smartSlider=new NextendSmartSliderAdminStorage,function(e,t,i){function s(){this.type="backgroundanimation",NextendVisualManagerMultipleSelection.prototype.constructor.apply(this,arguments)}s.prototype=Object.create(NextendVisualManagerMultipleSelection.prototype),s.prototype.constructor=s,s.prototype.loadDefaults=function(){NextendVisualManagerMultipleSelection.prototype.loadDefaults.apply(this,arguments),this.type="backgroundanimation",this.labels={visual:"Background animation",visuals:"Background animations"}},s.prototype.initController=function(){return new NextendBackgroundAnimationEditorController},s.prototype.createVisual=function(e,t){return new NextendVisualWithSetRowMultipleSelection(e,t,this)},i.NextendBackgroundAnimationManager=s}(nextend.smartSlider,n2,window),function(e,t){function i(){this.parameters={shiftedBackgroundAnimation:0},NextendVisualEditorController.prototype.constructor.call(this,!1),this.bgAnimationElement=e(".n2-bg-animation"),this.slides=e(".n2-bg-animation-slide"),this.bgImages=e(".n2-bg-animation-slide-bg"),this.directionTab=new NextendElementRadio("n2-background-animation-preview-tabs",["0","1"]),this.directionTab.element.on("nextendChange.n2-editor",e.proxy(this.directionTabChanged,this)),nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d||nextend.notificationCenter.error("Background animations are not available in your browser. It works if the <i>transform-style: preserve-3d</i> feature available. ")}i.prototype=Object.create(NextendVisualEditorController.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualEditorController.prototype.loadDefaults.call(this),this.type="backgroundanimation",this.current=0,this.animationProperties=!1,this.direction=0},i.prototype.get=function(){return null},i.prototype.load=function(e,t,i,s){this.lightbox.addClass("n2-editor-loaded")},i.prototype.setTabs=function(e){},i.prototype.directionTabChanged=function(){this.direction=parseInt(this.directionTab.element.val())},i.prototype.start=function(){this.animationProperties&&(this.timeline?this.timeline.play():this.next())},i.prototype.pause=function(){this.timeline&&this.timeline.pause()},i.prototype.next=function(){this.timeline=new NextendTimeline({paused:!0,onComplete:e.proxy(this.ended,this)});var t=this.bgImages.eq(this.current),i=this.bgImages.eq(1-this.current);nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d?(this.currentAnimation=new window["NextendSmartSliderBackgroundAnimation"+this.animationProperties.type](this,t,i,this.animationProperties,1,this.direction),this.slides.eq(this.current).css("zIndex",2),this.slides.eq(1-this.current).css("zIndex",3),this.timeline.to(this.slides.eq(this.current),.5,{opacity:0},this.currentAnimation.getExtraDelay()),this.timeline.to(this.slides.eq(1-this.current),.5,{opacity:1},this.currentAnimation.getExtraDelay()),this.currentAnimation.postSetup()):(this.timeline.to(this.slides.eq(this.current),1.5,{opacity:0},0),this.timeline.to(this.slides.eq(1-this.current),1.5,{opacity:1},0)),this.current=1-this.current,this.timeline.play()},i.prototype.ended=function(){this.currentAnimation&&this.currentAnimation.ended(),this.next()},i.prototype.setAnimationProperties=function(e){var t=this.animationProperties;this.animationProperties=e,t||this.next()},t.NextendBackgroundAnimationEditorController=i}(n2,window),Array.prototype.filter||(Array.prototype.filter=function(e){"use strict";if(void 0===this||null===this)throw new TypeError;var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var s=[],n=arguments[1],r=0;i>r;r++)if(r in t){var a=t[r];e.call(n,a,r,t)&&s.push(a)}return s}),function(e,t,i){function s(){this.$input=e('<input type="text" name="name" />').on({mouseup:function(e){e.stopPropagation()},keyup:e.proxy(function(e){27==e.keyCode&&this.cancel()},this),blur:e.proxy(this.save,this)}),this.$form=e('<form class="n2-inline-form"></form>').append(this.$input).on("submit",e.proxy(this.save,this))}s.prototype.injectNode=function(e,t){this.$input.val(t),e.append(this.$form),this.$input.focus()},s.prototype.save=function(e){e.preventDefault(),this.$input.trigger("valueChanged",[this.$input.val()]),this.$input.off("blur"),this.destroy()},s.prototype.cancel=function(){this.$input.trigger("cancel"),this.destroy()},s.prototype.destroy=function(){this.$input.off("blur"),this.$form.remove()},t.NextendSmartSliderAdminInlineField=s}(n2,window),function(e,t,i,s){"use strict";function n(){this.historyStates=50,this.isEnabled=0!=this.historyStates,this.historyAddAllowed=!0,this.isBatched=!1,this.index=-1,this.history=[],this.preventUndoRedo=!1,this.undoBTN=t("#n2-ss-undo").on("click",t.proxy(this.undo,this)),this.redoBTN=t("#n2-ss-redo").on("click",t.proxy(this.redo,this)),this.updateUI()}n.prototype.updateUI=function(){0==this.index||0==this.history.length?this.undoBTN.removeClass("n2-active"):this.undoBTN.addClass("n2-active"),-1==this.index||this.index>=this.history.length?this.redoBTN.removeClass("n2-active"):this.redoBTN.addClass("n2-active")},n.prototype.throttleUndoRedo=function(){return this.preventUndoRedo?!0:(this.preventUndoRedo=!0,setTimeout(t.proxy(function(){this.preventUndoRedo=!1},this),100),!1)},n.prototype.add=function(e){if(this.isEnabled&&this.historyAddAllowed){-1!=this.index&&this.history.splice(this.index,this.history.length),this.index=-1;var i=e();return this.isBatched?this.history[this.history.length-1].push(i):(this.history.push([i]),this.isBatched=!0,setTimeout(t.proxy(function(){this.isBatched=!1},this),100)),this.history.length>this.historyStates&&this.history.unshift(),this.updateUI(),i}},n.prototype.off=function(){this.historyAddAllowed=!1},n.prototype.on=function(){this.historyAddAllowed=!0},n.prototype.undo=function(e){if(e&&e.preventDefault(),this.throttleUndoRedo())return!1;if(this.off(),-1==this.index?this.index=this.history.length-1:this.index--,this.index>=0)for(var t=this.history[this.index],i=t.length-1;i>=0;i--){var s=t[i];s[0].history(s[1],s[3],s[4],s)}else this.index=0;this.on(),this.updateUI()},n.prototype.redo=function(e){if(e&&e.preventDefault(),this.throttleUndoRedo())return!1;if(this.off(),-1!=this.index&&this.index<this.history.length){var t=this.history[this.index];this.index++;for(var i=0;i<t.length;i++){var s=t[i];s[0].history(s[1],s[2],s[4],s)}}this.on(),this.updateUI()},n.prototype.changeFuture=function(e,t){for(var i=0;i<this.history.length;i++)for(var s=0;s<this.history[i].length;s++){this.history[i][s][0]===e&&(this.history[i][s][0]=t);for(var n=2;n<this.history[i][s].length;n++)for(var r=0;r<this.history[i][s][n].length;r++)this.history[i][s][n][r]===e&&(this.history[i][s][n][r]=t)}},n2(window).ready(function(){e.history=new n})}(nextend.smartSlider,n2,window),function(e,t,i){function s(t){var i=e("#n2-quick-slides-edit");i.length<1||(this.ajaxUrl=t,i.on("click",e.proxy(this.openEdit,this)))}s.prototype.openEdit=function(t){t.preventDefault();var i=e("#n2-ss-slides .n2-box-slide"),s=this;this.modal=new NextendModal({zero:{fit:!0,fitX:!1,overflow:"auto",size:[1200,700],title:n2_("Quick Edit - Slides"),back:!1,close:!0,content:'<form class="n2-form"><table></table></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Save")+"</a>"],fn:{show:function(){var t=this.controls.find(".n2-button-green"),n=this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),t.trigger("click")}),r=n.find("table");i.each(e.proxy(function(t,i){var n=e(i),a=e("<tr />").appendTo(r),o=n.data("slideid");a.append(e("<td />").append('<img src="'+n.data("image")+'" style="width:100px;"/>')),a.append(e("<td />").append(s.createInput("Name","title-"+o,n.data("title"),"width: 240px;"))),a.append(e("<td />").append(s.createTextarea("Description","description-"+o,n.data("description"),"width: 330px;height:24px;")));var l=n.data("link").split("|*|");a.append(e("<td />").append(s.createLink("Link","link-"+o,l[0],"width: 180px;"))),a.append(e("<td />").append(s.createTarget("Target","target-"+o,l.length>1?l[1]:"_self",""))),new NextendElementUrl("link-"+o,nextend.NextendElementUrlParams)},this)),t.on("click",e.proxy(function(t){var n={};i.each(e.proxy(function(t,i){var s=e(i),r=s.data("slideid"),a=e("#title-"+r).val(),o=e("#description-"+r).val(),l=e("#link-"+r).val()+"|*|"+e("#target-"+r).val();a==s.data("title")&&o==s.data("description")&&l==s.data("link")||(n[r]={name:a,description:o,link:l})},this)),jQuery.isEmptyObject(n)?this.hide(t):(this.hide(t),NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(s.ajaxUrl),data:{changed:Base64.encode(JSON.stringify(n))},dataType:"json"}).done(e.proxy(function(t){var i=t.data;for(var s in i){var n=e('.n2-box-slide[data-slideid="'+s+'"]');n.find(".n2-box-placeholder a.n2-h4").html(i[s].title),n.attr("data-title",i[s].rawTitle),n.data("title",i[s].rawTitle),n.attr("data-description",i[s].rawDescription),n.data("description",i[s].rawDescription),n.attr("data-link",i[s].rawLink),n.data("link",i[s].rawLink)}},this)))},this))}}}}),this.modal.setCustomClass("n2-ss-quick-slides-edit-modal"),this.modal.show()},s.prototype.createInput=function(t,i,s){var n="";4==arguments.length&&(n=arguments[3]);var r=e('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+t+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-text n2-border-radius"><input type="text" id="'+i+'" class="n2-h5" autocomplete="off" style="'+n+'"></div></div></div></div>');return r.find("input").val(s),r},s.prototype.createTextarea=function(t,i,s){var n="";4==arguments.length&&(n=arguments[3]);var r=e('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+t+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-textarea n2-border-radius"><textarea id="'+i+'" class="n2-h5" autocomplete="off" style="resize:y;'+n+'"></textarea></div></div></div></div>');return r.find("textarea").val(s),r},s.prototype.createLink=function(t,i,s){var n="";4==arguments.length&&(n=arguments[3]);var r=e('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+t+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-text n2-border-radius"><input type="text" id="'+i+'" class="n2-h5" autocomplete="off" style="'+n+'"><a href="#" class="n2-form-element-clear"><i class="n2-i n2-it n2-i-empty n2-i-grey-opacity"></i></a><a id="'+i+'_button" class="n2-form-element-button n2-h5 n2-uc" href="#">Link</a></div></div></div></div>');return r.find("input").val(s),r},s.prototype.createTarget=function(t,i,s){var n="";4==arguments.length&&(n=arguments[3]);var r=e('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+t+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-list"><select id="'+i+'" autocomplete="off" style="'+n+'"><option value="_self">Self</option><option value="_blank">Blank</option></select</div></div></div></div>');return r.find("select").val(s),r},t.NextendSmartSliderQuickSlides=s}(n2,window),function(e,t,i){function s(t){this.showGuides=1,this.guides=[],this.ratios={w:1,h:1},this.container=e('<div class="n2-ruler-container" />').appendTo("#smartslider-adjust-height .n2-ss-slider-outer-container"),this.scale=10,this.vertical=e('<div class="n2-ruler n2-ruler-vertical unselectable"></div>').appendTo(".n2-ss-slider-real-container"),this.horizontal=e('<div class="n2-ruler n2-ruler-horizontal unselectable"></div>').appendTo(this.container),this.verticalSpans=e(),this.horizontalSpans=e(),this.onResize(),nextend.smartSlider.frontend.sliderElement.on("SliderResize",e.proxy(this.onSliderResize,this)),e(window).on("resize",e.proxy(this.onResize,this)),this.positionDisplay=e('<div class="n2 n2-ss-position-display"/>').appendTo("body"),this.horizontal.on("mousedown",e.proxy(function(e){this.showGuides&&new r(this,this.horizontal,this.ratios.w,e)},this)),this.vertical.on("mousedown",e.proxy(function(e){this.showGuides&&new a(this,this.vertical,this.ratios.h,e)},this));try{t=e.extend({vertical:[],horizontal:[]},JSON.parse(Base64.decode(t)));for(var i=0;i<t.horizontal.length;i++){var s=new r(this,this.horizontal,this.ratios.w);s.setPosition(t.horizontal[i])}for(var i=0;i<t.vertical.length;i++){var s=new a(this,this.vertical,this.ratios.h);s.setPosition(t.vertical[i])}}catch(n){}nextend.ruler=this,this.measureToolVertical(),this.measureToolHorizontal()}function n(t,i,s,n){this.ruler=t,this.container=i,this.position=0,this.ratio=s,this.guide=e('<div class="n2-ruler-guide"><div class="n2-ruler-guide-border"></div><div class="n2-ruler-guide-handle"></div></div>').appendTo(i).on("mousedown",e.proxy(function(e){e.preventDefault(),e.stopPropagation(),nextend.smartSlider.layerManager.settings["n2-ss-lock-guides"]||this["delete"]()},this)),this.ruler.addGuide(this),n&&this.create(n)}function r(){n.prototype.constructor.apply(this,arguments)}function a(){n.prototype.constructor.apply(this,arguments)}s.prototype.addGuide=function(e){this.guides.push(e)},s.prototype.removeGuide=function(t){this.guides.splice(e.inArray(t,this.guides),1)},s.prototype.clearGuides=function(){for(var e=this.guides.length-1;e>=0;e--)this.guides[e]["delete"]()},s.prototype.onSliderResize=function(e,t){this.ratios=t;for(var i=0;i<this.guides.length;i++)this.guides[i].setRatio(t.w,t.h);this.onResize()},s.prototype.onResize=function(){var t=nextend.smartSlider.frontend.responsive.responsiveDimensions,i=Math.max(t.slider.width,e("#n2-tab-smartslider-editor").outerWidth(!0)-40),s=Math.max(t.slider.height,e("#n2-tab-smartslider-editor").outerHeight(!0));this.container.css({width:i+40,height:s+40});for(var n=this.horizontalSpans.length-3;n<i/this.scale;n++){var r=e("<span />").appendTo(this.horizontal);n%10==0?r.addClass("n2-ss-ruler-mark-large").append("<span>"+n/10*100+"</span>"):n%2==0&&r.addClass("n2-ss-ruler-mark-medium"),this.horizontalSpans=this.horizontalSpans.add(r)}for(var n=this.verticalSpans.length-3;n<s/this.scale;n++){var r=e("<span />").appendTo(this.vertical);n%10==0?r.addClass("n2-ss-ruler-mark-large").append("<span>"+n/10*100+"</span>"):n%2==0&&r.addClass("n2-ss-ruler-mark-medium"),this.verticalSpans=this.verticalSpans.add(r)}},s.prototype.toArray=function(){for(var e={horizontal:[],vertical:[]},t=0;t<this.guides.length;t++)this.guides[t]instanceof r?e.horizontal.push(this.guides[t].position):this.guides[t]instanceof a&&e.vertical.push(this.guides[t].position);return e},s.prototype.measureToolVertical=function(){var t=e('<div class="n2-ruler-guide" style="z-index:1;"><div class="n2-ruler-guide-border" style="border-color: #f00;"></div></div>').css("display","none").appendTo(this.vertical),i=!1,s=e.proxy(function(){i||(i=!0,t.css("display",""),this.positionDisplay.addClass("n2-active"))},this),n=e.proxy(function(){i&&(i=!1,t.css("display","none"),this.positionDisplay.removeClass("n2-active"))},this);this.vertical.on({mouseenter:e.proxy(function(i){if(this.showGuides){var r=0,a=Math.round(this.vertical.offset().top);s(),this.vertical.on("mousemove.n2-ruler-measure-tool",e.proxy(function(i){if(e(i.target).hasClass("n2-ruler-guide-border")&&e(i.target).parent()[0]!=t[0])n();else if(s(),r!=i.pageY){var o=i.pageY-a;t.css("top",o),this.positionDisplay.html(o-40+"px").css({left:i.pageX+10,top:i.pageY+10}),r=i.pageY}},this))}},this),mouseleave:e.proxy(function(){this.vertical.off(".n2-ruler-measure-tool"),n()},this)})},s.prototype.measureToolHorizontal=function(){var t=e('<div class="n2-ruler-guide" style="z-index:1;"><div class="n2-ruler-guide-border" style="border-color: #f00;"></div></div>').css("display","none").appendTo(this.horizontal),i=!1,s=e.proxy(function(){i||(i=!0,t.css("display",""),this.positionDisplay.addClass("n2-active"))},this),n=e.proxy(function(){i&&(i=!1,t.css("display","none"),this.positionDisplay.removeClass("n2-active"))},this);this.horizontal.on({mouseenter:e.proxy(function(i){if(this.showGuides){var r=0,a=Math.round(this.horizontal.offset().left);s(),this.horizontal.on("mousemove.n2-ruler-measure-tool",e.proxy(function(i){if(e(i.target).hasClass("n2-ruler-guide-border")&&e(i.target).parent()[0]!=t[0])n();else if(s(),r!=i.pageX){var o=Math.max(i.pageX-a,40);t.css("left",o),this.positionDisplay.html(o-40+"px").css({left:i.pageX+10,top:i.pageY+10}),r=i.pageX}},this))}},this),mouseleave:e.proxy(function(){this.horizontal.off(".n2-ruler-measure-tool"),n()},this)})},t.NextendSmartSliderRuler=s,n.prototype._position=function(e,t){return Math.max(0,e)},n.prototype.setPosition=function(e){this.position=e,this.refresh()},n.prototype.refresh=function(){this.positionRender(this.position)},n.prototype["delete"]=function(){this.ruler.removeGuide(this),this.guide.remove()},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.create=function(e){var t=Math.round(this.container.offset().left)+40;this.position=this._position((e.pageX-t)/this.ratio,e),this.positionRender(this.position)},r.prototype.rawPositionRender=function(e){this.guide.css("left",Math.max(0,e)+40)},r.prototype.positionRender=function(e){this.guide.css("left",Math.max(0,e)*this.ratio+40)},r.prototype.setRatio=function(e,t){this.ratio=t,this.refresh()},a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype.create=function(e){var t=Math.round(this.container.offset().top)+40;this.position=this._position((e.pageY-t)/this.ratio,e),this.positionRender(this.position)},a.prototype.rawPositionRender=function(e){this.guide.css("top",Math.max(0,e)+40)},a.prototype.positionRender=function(e){this.guide.css("top",Math.max(0,e)*this.ratio+40)},a.prototype.setRatio=function(e,t){this.ratio=e,this.refresh()}}(n2,window),function(e,t,i){function s(t,i,s,r,a,o){this.quickPostModal=null,this.quickVideoModal=null,this.parameters=s,this.slides=[],this.ajaxUrl=t,this.contentAjaxUrl=i,this.slidesPanel=e("#n2-ss-slides-container"),this.slidesContainer=this.slidesPanel.find(".n2-ss-slides-container"),this.initMenu(),this.initSlidesOrderable();for(var l=this.slidesContainer.find(".n2-box-slide"),d=0;d<l.length;d++)this.slides.push(new n(this,l.eq(d)));if(e("html").attr("data-slides",this.slides.length),e(".n2-add-quick-image, .n2-box-slide-dummy").on("click",e.proxy(this.addQuickImage,this)),e(".n2-add-quick-video").on("click",e.proxy(this.addQuickVideo,this)),e(".n2-add-quick-post").on("click",e.proxy(this.addQuickPost,this)),this.initBulk(),!r){var h=[];this.slidesContainer.fileupload({url:a,pasteZone:!1,dataType:"json",paramName:"image",dropZone:e("undefined"==typeof nextend.smartSlider?document:".n2-ss-slides-outer-container"),add:e.proxy(function(e,t){t.formData={path:"/"+o},t.submit()},this),done:e.proxy(function(e,t){var i=t.result;i.data&&i.data.name?h.push({title:i.data.name,description:"",image:i.data.url}):NextendAjaxHelper.notification(i)},this),fail:e.proxy(function(e,t){NextendAjaxHelper.notification(t.jqXHR.responseJSON)},this),start:function(){NextendAjaxHelper.startLoading()},stop:e.proxy(function(){h.length?this._addQuickImages(h):setTimeout(function(){NextendAjaxHelper.stopLoading()},100),h=[]},this)});var p=null;this.slidesContainer.on("dragover",e.proxy(function(t){null!==p?(clearTimeout(p),p=null):this.slidesContainer.addClass("n2-drag-over"),p=setTimeout(e.proxy(function(){this.slidesContainer.removeClass("n2-drag-over"),p=null},this),400)},this))}}function n(t,i){this.selected=!1,this.manager=t,this.box=i.data("slide",this).addClass("n2-clickable"),this.box.on("mouseenter",e.proxy(function(){this.manager.showMenu(this)},this)).on("mouseleave",e.proxy(function(){this.manager.hideMenu()},this)).on("click.n2-slide",e.proxy(this.goToEdit,this)),this.publishElement=this.box.find(".n2-slide-published").on("click",e.proxy(this.switchPublished,this)),this.box.find(".n2-ss-box-select").on("click",e.proxy(function(e){e.stopPropagation(),e.preventDefault(),this.invertSelection()},this))}s.prototype.changed=function(){},s.prototype.initSlidesOrderable=function(){this.slidesContainer.sortable({helper:"clone",forcePlaceholderSize:!1,tolerance:"pointer",items:".n2-box-slide",start:function(e,t){t.item.show()},stop:e.proxy(this.saveSlideOrder,this),placeholder:"n2-box-sortable-placeholder n2-box-sortable-placeholder-small",distance:10})},s.prototype.saveSlideOrder=function(t){for(var i=this.slidesContainer.find(".n2-box-slide"),s=[],n=[],r=[],a=0;a<i.length;a++){var o=i.eq(a).data("slide");s.push(o),n.push(o.getId())}for(var a=0;a<this.slides.length;a++)r.push(this.slides[a].getId());if(JSON.stringify(r)!=JSON.stringify(n)){e(window).triggerHandler("SmartSliderSidebarSlidesOrderChanged");var l={nextendcontroller:"slides",nextendaction:"order"};NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,l),data:{slideorder:n}}),this.slides=s,this.changed()}},s.prototype.initSlides=function(){for(var t=(this.slides.length,this.slidesContainer.find(".n2-box-slide")),i=[],s=0;s<t.length;s++){var n=t.eq(s).data("slide");i.push(n)}this.slides=i,this.changed(),e(window).triggerHandler("SmartSliderSidebarSlidesChanged"),e("html").attr("data-slides",this.slides.length)},s.prototype.unsetFirst=function(){for(var e=0;e<this.slides.length;e++)this.slides[e].unsetFirst();this.changed()},s.prototype.addQuickImage=function(t){t.preventDefault(),nextend.imageHelper.openMultipleLightbox(e.proxy(this._addQuickImages,this))},s.prototype.addBoxes=function(t){t.insertBefore(this.slidesContainer.find(".n2-clear")),t.addClass("n2-ss-box-just-added").each(e.proxy(function(t,i){new n(this,e(i))},this)),this.initSlides(),setTimeout(function(){t.removeClass("n2-ss-box-just-added")},200)},s.prototype._addQuickImages=function(t){NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickImages"}),data:{images:Base64.encode(JSON.stringify(t))}}).done(e.proxy(function(t){this.addBoxes(e(t.data))},this))},s.prototype.addQuickVideo=function(t){t.preventDefault();var i=this;this.quickVideoModal||(this.quickVideoModal=new NextendModal({zero:{size:[500,350],title:n2_("Add video"),back:!1,close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Add video")+"</a>"],fn:{show:function(){var t=this.controls.find(".n2-button"),s=(this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),t.trigger("click")}).append(this.createInput(n2_("Video url"),"n2-slide-video-url","width: 446px;")),this.content.find("#n2-slide-video-url").focus());this.content.append(this.createHeading(n2_("Examples"))),this.content.append(this.createTable([["YouTube","https://www.youtube.com/watch?v=MKmIwHAFjSU"],["Vimeo","https://vimeo.com/144598279"]],["",""])),t.on("click",e.proxy(e.proxy(function(t){t.preventDefault();var n=s.val(),r=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,a=n.match(r),o=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,l=n.match(o),d=n.match(/\.(mp4|ogv|ogg|webm)/i);a?NextendAjaxHelper.getJSON("https://www.googleapis.com/youtube/v3/videos?id="+encodeURI(a[2])+"&part=snippet&key=AIzaSyC3AolfvPAPlJs-2FgyPJdEEKS6nbPHdSM").done(e.proxy(function(e){if(e.items.length){var t=e.items[0].snippet,s=e.items[0].snippet.thumbnails,r=s.maxres||s.standard||s.high||s.medium||s["default"];i._addQuickVideo(this,{type:"youtube",title:t.title,description:t.description,image:r.url,video:n})}},this)).fail(function(e){nextend.notificationCenter.error(e.error.errors[0].message)}):l?NextendAjaxHelper.getJSON("https://vimeo.com/api/v2/video/"+l[3]+".json").done(e.proxy(function(e){i._addQuickVideo(this,{type:"vimeo",title:e[0].title,description:e[0].description,video:l[3],image:e[0].thumbnail_large})},this)).fail(function(e){nextend.notificationCenter.error(e.responseText)}):d?nextend.notificationCenter.error("This video url is not supported!"):nextend.notificationCenter.error("This video url is not supported!")},this)))}}}})),this.quickVideoModal.show()},s.prototype._addQuickVideo=function(t,i){NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickVideo"}),data:{video:Base64.encode(encodeURIComponent(JSON.stringify(i)))}}).done(e.proxy(function(t){this.addBoxes(e(t.data)),this.initSlides()},this)),t.hide()},s.prototype.addQuickPost=function(t){if(t.preventDefault(),!this.quickPostModal){var i=this,s={},n=e.proxy(function(e){return"undefined"==typeof s[e]&&(s[e]=NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.contentAjaxUrl),data:{keyword:e},dataType:"json"})),s[e]},this);this.quickPostModal=new NextendModal({zero:{size:[600,430],title:n2_("Add post"),back:!1,close:!0,content:'<div class="n2-form"></div>',fn:{show:function(){this.content.find(".n2-form").append(this.createInput(n2_("Keyword"),"n2-ss-keyword","width:546px;"));var t=e("#n2-ss-keyword"),s=this.createHeading("").appendTo(this.content),r=this.createResult().appendTo(this.content),a="";t.on("keyup",e.proxy(function(){a=t.val(),n(a).done(e.proxy(function(n){if(t.val()==a){""==a?s.html(n2_("No search term specified. Showing recent items.")):s.html(n2_printf(n2_('Showing items match for "%s"'),a));for(var o=n.data,l=[],d=this,h=0;h<o.length;h++)l.push([o[h].title,o[h].info,e('<div class="n2-button n2-button-normal n2-button-xs n2-button-green n2-radius-s n2-uc n2-h5">'+n2_("Select")+"</div>").on("click",{post:o[h]},function(e){i._addQuickPost(d,e.data.post)})]);r.html(""),this.createTable(l,["width:100%;","",""]).appendTo(this.createTableWrap().appendTo(r))}},this))},this)).trigger("keyup").focus()}}}})}this.quickPostModal.show()},s.prototype._addQuickPost=function(t,i){i.image||(i.image=""),NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickPost"}),data:{post:i}}).done(e.proxy(function(t){this.addBoxes(e(t.data)),this.initSlides()},this)),t.hide()},s.prototype.initBulk=function(){this.selection=[],this.isBulkSelection=!1;var t=e(".n2-bulk-select").find("a");t.eq(0).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.select()})},this)),t.eq(1).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.deSelect()})},this)),t.eq(2).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.box.hasClass("n2-slide-state-published")?e.select():e.deSelect()})},this)),t.eq(3).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.box.hasClass("n2-slide-state-published")?e.deSelect():e.select()})},this));var i=e(".n2-bulk-actions").find("a");i.eq(0).on("click",e.proxy(function(e){e.preventDefault(),this.bulkAction("deleteSlides")},this)),i.eq(1).on("click",e.proxy(function(e){e.preventDefault(),this.bulkAction("duplicateSlides")},this)),i.eq(2).on("click",e.proxy(function(e){e.preventDefault(),this.bulkAction("publishSlides")},this)),i.eq(3).on("click",e.proxy(function(e){e.preventDefault(),this.bulkAction("unPublishSlides")},this))},s.prototype.addSelection=function(e){0==this.selection.length&&this.enterBulk(),this.selection.push(e)},s.prototype.removeSelection=function(t){this.selection.splice(e.inArray(t,this.selection),1),0==this.selection.length&&this.leaveBulk()},s.prototype.bulkSelect=function(e){for(var t=0;t<this.slides.length;t++)e(this.slides[t])},s.prototype.bulkAction=function(e){var t=[],i=[];this.bulkSelect(function(e){e.selected&&(t.push(e),i.push(e.getId()))}),i.length?this[e](i,t):nextend.notificationCenter.notice("Please select one or more slides for the action!")},s.prototype.enterBulk=function(){this.isBulkSelection||(this.isBulkSelection=!0,this.slidesContainer.sortable("option","disabled",!0),e("#n2-admin").addClass("n2-ss-has-box-selection"))},s.prototype.leaveBulk=function(){if(this.isBulkSelection){this.slidesContainer.sortable("option","disabled",!1),e("#n2-admin").removeClass("n2-ss-has-box-selection");for(var t=0;t<this.slides.length;t++)this.slides[t].deSelect();this.selection=[],this.isBulkSelection=!1}},s.prototype.deleteSlides=function(t,i){this.hideMenu();var s=i[0].box.find(".n2-box-placeholder-title a").text();i.length>1&&(s+=" and "+(i.length-1)+" more"),NextendDeleteModal("slide-delete",s,e.proxy(function(){NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"delete"}),type:"POST",data:{slides:t}}).done(e.proxy(function(){for(var e=0;e<i.length;e++)i[e].deleted();this.initSlides(),this.leaveBulk()},this))},this))},s.prototype.duplicateSlides=function(t,i){for(var s=0;s<this.slides.length;s++)this.slides[s].selected&&this.slides[s].duplicate(e.Event("click",{currentTarget:null}))},s.prototype.publishSlides=function(t,i){NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"publish"}),type:"POST",data:{slides:t}}).done(e.proxy(function(){for(var e=0;e<i.length;e++)i[e].published();this.changed()},this))},s.prototype.unPublishSlides=function(t,i){NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"unpublish"}),type:"POST",data:{slides:t}}).done(e.proxy(function(){for(var e=0;e<i.length;e++)i[e].unPublished();this.changed()},this))},s.prototype.initMenu=function(){this.slide=null,this.menu=e("#n2-ss-slide-menu").detach().addClass("n2-inited"),this.menuActions={publish:this.menu.find(".n2-ss-publish").on("click",e.proxy(function(e){this.slide.switchPublished(e)},this)),unpublish:this.menu.find(".n2-ss-unpublish").on("click",e.proxy(function(e){this.slide.switchPublished(e)},this)),generator:this.menu.find(".n2-ss-generator").on("click",e.proxy(function(e){e.preventDefault(),e.stopPropagation(),window.location=this.slide.box.data("generator")},this)),duplicate:this.menu.find(".n2-ss-duplicate").on("click",e.proxy(function(e){this.slide.duplicate(e)},this)),"delete":this.menu.find(".n2-ss-delete").on("click",e.proxy(function(e){this.slide["delete"](e)},this)),setFirst:this.menu.find(".n2-ss-setFirst").on("click",e.proxy(function(e){this.slide.setFirst(e)},this)),saveLayout:this.menu.find(".n2-ss-saveLayout")},this.menu.find(".n2-button").on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation(),this.menu.hasClass("n2-active")?this.menu.removeClass("n2-active").off("mouseleave"):this.menu.addClass("n2-active").on("mouseleave",function(){e(this).removeClass("n2-active")})},this))},s.prototype.showMenu=function(e){this.slide=e,this.menu.appendTo(e.box)},s.prototype.hideMenu=function(){this.menu.detach()},t.NextendSmartSliderAdminSidebarSlides=s,n.prototype.getId=function(){return this.box.data("slideid")},n.prototype.setFirst=function(t){t.stopPropagation(),
2
+ t.preventDefault(),NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.manager.ajaxUrl,{nextendaction:"first"}),type:"POST",data:{id:this.getId()}}).done(e.proxy(function(){this.manager.unsetFirst(),this.box.addClass("n2-slide-state-first")},this))},n.prototype.unsetFirst=function(){this.box.removeClass("n2-slide-state-first")},n.prototype.switchPublished=function(e){e.stopPropagation(),e.preventDefault(),this.isPublished()?this.manager.unPublishSlides([this.getId()],[this]):this.manager.publishSlides([this.getId()],[this])},n.prototype.isPublished=function(){return this.box.hasClass("n2-slide-state-published")},n.prototype.published=function(){this.box.addClass("n2-slide-state-published")},n.prototype.unPublished=function(){this.box.removeClass("n2-slide-state-published")},n.prototype.goToEdit=function(e,t){var i=this.box.data("editurl");"undefined"!=typeof t&&t?window.open(i,"_blank"):i==location.href?n2("#n2-admin").toggleClass("n2-ss-slides-outer-container-visible"):window.location=i},n.prototype.duplicate=function(t){t.stopPropagation(),t.preventDefault();var i=e.Deferred();return NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.box.data("editurl"),{nextendaction:"duplicate"})}).done(e.proxy(function(t){var s=e(t.data).insertAfter(this.box),r=new n(this.manager,s);this.manager.initSlides(),i.resolve(r)},this)),i},n.prototype["delete"]=function(e){e.stopPropagation(),e.preventDefault(),this.manager.deleteSlides([this.getId()],[this])},n.prototype.deleted=function(){this.box.remove()},n.prototype.invertSelection=function(e){e&&e.preventDefault(),this.selected?this.deSelect():this.select()},n.prototype.select=function(){this.selected||(this.selected=!0,this.box.addClass("n2-selected"),this.manager.addSelection(this))},n.prototype.deSelect=function(){this.selected&&(this.selected=!1,this.box.removeClass("n2-selected"),this.manager.removeSelection(this))},t.NextendSmartSliderAdminSlide=n}(n2,window),function(e,t,i,s){function n(i){this.detachedPosition={left:t.jStorage.get("ssPanelLeft")||100,top:t.jStorage.get("ssPanelTop")||100,height:t.jStorage.get("ssPanelHeight")||400},this.autoPosition=t.jStorage.get("ssPanelAutoPosition",1),this.lastHeight=this.detachedPosition.height,this.admin=t("#n2-admin"),this.sidebar=t("#n2-ss-slide-sidebar").on("mousedown",t.proxy(nextend.context.setMouseDownArea,nextend.context,"sidebarClicked")),this.title=this.sidebar.find(".n2-panel-titlebar-title"),this.sidebarTD=this.sidebar.parent(),this.layerManager=i,e.sidebarManager=this,this.editorPanel=t(".n2-ss-editor-panel"),this.views={layerEdit:t("#n2-ss-layer-edit")},this.viewPanes={layerEdit:t("#n2-tabbed-slide-editor-settings > .n2-tabs").addClass("n2-scrollable")};for(var s in this.viewPanes)this.viewPanes[s].on("DOMMouseScroll mousewheel",function(e){var i=!1;e.originalEvent&&(e.originalEvent.wheelDelta&&(i=e.originalEvent.wheelDelta/-1<0),e.originalEvent.deltaY&&(i=e.originalEvent.deltaY<0),e.originalEvent.detail&&(i=e.originalEvent.detail<0));var s=function(){return e.stopPropagation(),e.preventDefault(),e.returnValue=!1,!1};return!i&&this.scrollHeight<=t(this).innerHeight()+this.scrollTop+1?s():i&&0>=this.scrollTop-1?s():void 0});this.panelHeading=t("#n2-tabbed-slide-editor-settings").find(".n2-sidebar-tab-switcher .n2-td");var n=this.sidebar.find(".n2-panel-titlebar-nav-right");this.magnet=t('<a href="#"><i class="n2-i n2-i-magnet n2-i-grey-opacity" data-n2tip="Auto position layer window"></i></a>').on("click",t.proxy(function(e){e.preventDefault(),this.magnetize()},this)).css("display","none").appendTo(n),t('<a href="#"><i class="n2-i n2-i-closewindow n2-i-grey-opacity"></i></a>').on("click",t.proxy(function(e){e.preventDefault(),this.hide()},this)).appendTo(n),nextend.tooltip.add(n);var r=t("#n2-ss-slide-vertical-bar");t(".n2-ss-add-layer-button").on("click",function(e){e.preventDefault(),r.toggleClass("n2-active")}),t(".n2-ss-core-item").on("click",function(e){r.removeClass("n2-active")});var a=t("#wpadminbar, .navbar-fixed-top").height()+t(".n2-top-bar").height();this.$verticalBarInner=t(".n2-ss-slide-vertical-bar-inner").each(function(){var e=t(this);e.fixTo(e.parent(),{top:a})}),this.$resizeInnerContainer=t("#n2-ss-layers-switcher_0, #n2-ss-layers-switcher_1"),this.extraHeightToRemove=60,this.$resizeInnerContainer.length||(this.extraHeightToRemove=0,this.$resizeInnerContainer=this.$verticalBarInner),this.$resizeInnerContainer.css("overflow","auto"),this.detach(),t("#n2-admin").on("resize",t.proxy(this.resizeVerticalBar,this)),t(window).on("resize",t.proxy(this.onResize,this))}n.prototype.magnetize=function(){if(!this.autoPosition){this.autoPosition=1,t.jStorage.set("ssPanelAutoPosition",1),this.magnet.css("display","none");var e=this.layerManager.getSelectedLayer();e&&e.positionSidebar()}},n.prototype.show=function(e,i){this.setTitle(e.property.name),t("body").addClass("n2-ss-layer-edit-visible"),this.autoPosition&&this.sidebar.position({my:"left top",at:"right+10 top",collision:"flipfit",of:i.is(":visible")?i:"#n2-ss-layer-list"})},n.prototype._show=function(){t("body").addClass("n2-ss-layer-edit-visible")},n.prototype.hide=function(){t("body").removeClass("n2-ss-layer-edit-visible")},n.prototype.hideWithDeferred=function(e){t("body").hasClass("n2-ss-layer-edit-visible")&&(this.hide(),e.done(t.proxy(this._show,this)))},n.prototype.setTitle=function(e){this.title.html(e)},n.prototype.getLayerEditExcludedHeight=function(){return 85},n.prototype.resizeVerticalBar=function(){this.$resizeInnerContainer.height((window.innerHeight||document.documentElement.clientHeight)-(t("#n2-ss-layers").is(":visible")&&t("#n2-ss-layers").hasClass("n2-active")?t("#n2-ss-layers").height():0)-t("#wpadminbar, .navbar-fixed-top").height()-t(".n2-top-bar").height()-this.extraHeightToRemove)},n.prototype.onResize=function(){this.sidebar.css("display","block"),this.resizeVerticalBar();var e=window.innerHeight||document.documentElement.clientHeight,t=this.sidebar.height()-this.getLayerEditExcludedHeight();this.viewPanes.layerEdit.height(t);var i={},s=window.innerWidth||document.documentElement.clientWidth,n=this.sidebar[0].getBoundingClientRect();n.left<0?i.left=0:n.left+n.width>s&&(i.left=Math.max(0,s-n.width)),n.height>e-n.top&&(i.top=e-n.top-n.height+n.top,i.top<0&&(this.lastHeight=i.height=n.height+i.top,i.top=0)),this.sidebar.css(i),this.sidebar.css("display","")},n.prototype.detach=function(){this.autoPosition?(this.sidebar.css("height",this.detachedPosition.height),this.magnet.css("display","none")):(this.sidebar.css(this.detachedPosition),this.magnet.css("display","inline-block")),this.sidebar.appendTo(this.admin),this.admin.addClass("n2-sidebar-hidden"),t(window).off(".n2-ss-panel"),this.sidebar.removeClass("n2-sidebar-fixed"),this.sidebar.draggable({distance:5,handle:".n2-panel-titlebar",containment:"window",stop:t.proxy(function(e,i){this.sidebar.css("height",this.lastHeight);var s=this.sidebar[0].getBoundingClientRect();this.detachedPosition.left=s.left,this.detachedPosition.top=s.top,t.jStorage.set("ssPanelLeft",s.left),t.jStorage.set("ssPanelTop",s.top),this.autoPosition=0,t.jStorage.set("ssPanelAutoPosition",0),this.magnet.css("display","inline-block")},this),scroll:!1}).resizable({distance:5,handles:"s",stop:t.proxy(function(e,i){this.lastHeight=this.detachedPosition.height=this.sidebar.height(),t.jStorage.set("ssPanelHeight",this.detachedPosition.height)},this),create:t.proxy(function(e,i){t(e.target).find(".ui-resizable-handle").addClass("n2-ss-panel-resizer")},this)}),this.onResize(),nextend.triggerResize()},n.prototype.switchTab=function(e){this.panelHeading.filter('[data-tab="'+e+'"]').trigger("click")},i.NextendSmartSliderSidebar=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(i,s,n,r,a,o){this.options=t.extend({slideAsFile:0},o),this.readyDeferred=t.Deferred(),e.slide=this,this._warnInternetExplorerUsers(),this.$slideContentElement=t("#"+s),this.$slideGuidesElement=t("#slideguides"),this.slideStartValue=this.$slideContentElement.val(),this.$sliderElement=t("#"+i),e.frontend=window["n2-ss-0"],e.ruler=new NextendSmartSliderRuler(this.$slideGuidesElement.val()),e.frontend.visible(function(){t("body").addClass("n2-ss-slider-visible");var e=t("#n2-tab-smartslider-editor"),i=e.tinyscrollbar({axis:"x",wheel:!1,wheelLock:!1}).data("plugin_tinyscrollbar");"function"==typeof e.get(0).move&&(e.get(0).move=null),this.sliderElement.on("SliderResize",function(){i.update("relative")})});var l=this.$sliderElement.data("fontsize");nextend.fontManager.setFontSize(l),nextend.styleManager.setFontSize(l),e.$currentSlideElement=e.frontend.adminGetCurrentSlideElement(),new SmartSliderAdminGenerator,e.$currentSlideElement.addClass("n2-ss-currently-edited-slide");var d=e.frontend.parameters.isStaticEdited;new NextendSmartSliderAdminSlideLayerManager(e.$currentSlideElement.data("slide"),d,n,r,a),d||this._initializeBackgroundChanger(),this.readyDeferred.resolve(),t("#smartslider-form").on({checkChanged:t.proxy(this.prepareFormForCheck,this),submit:t.proxy(this.onSlideSubmit,this)}),this.createHistory()}n.prototype.ready=function(e){this.readyDeferred.done(e)},n.prototype.prepareFormForCheck=function(){var t=JSON.stringify(e.layerManager.getData()),i=JSON.stringify(JSON.parse(Base64.decode(this.slideStartValue)));this.$slideContentElement.val(i==t?this.slideStartValue:Base64.encode(t))},n.prototype.onSlideSubmit=function(e){if(!nextend.isPreview)if(this.prepareForm(),e.preventDefault(),nextend.askToSave=!1,this.options.slideAsFile&&typeof window.FormData!==s&&"undefined"!=typeof window.File){var i=new FormData,n=t("#smartslider-form").serializeArray();t.each(n,function(e,t){"slide[slide]"==t.name?i.append("slide",new File([t.value],"slide.txt")):i.append(t.name,t.value)}),NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(window.location.href),type:"POST",data:i,contentType:!1,processData:!1}).done(t.proxy(this.afterSave,this))}else NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(window.location.href),data:t("#smartslider-form").serialize(),dataType:"json"}).done(t.proxy(this.afterSave,this))},n.prototype.afterSave=function(){nextend.askToSave=!0,t("#smartslider-form").trigger("saved"),t(".n2-ss-edit-slide-top-details .n2-h1").html(t("#slidetitle").val())},n.prototype.prepareForm=function(){this.$slideGuidesElement.val(Base64.encode(JSON.stringify(e.ruler.toArray()))),this.$slideContentElement.val(Base64.encode(nextend.UnicodeToHTMLEntity(JSON.stringify(e.layerManager.getData()))))},n.prototype._initializeBackgroundChanger=function(){this.background={type:t("#slidebackground-type").on("nextendChange",t.proxy(this.__onAfterBackgroundTypeChange,this)),slideBackgroundColorField:t("#slidebackgroundColor").on("nextendChange",t.proxy(this.__onAfterBackgroundColorChange,this)),slideBackgroundGradientField:t("#slidebackgroundGradient").on("nextendChange",t.proxy(this.__onAfterBackgroundColorChange,this)),slideBackgroundColorEndField:t("#slidebackgroundColorEnd").on("nextendChange",t.proxy(this.__onAfterBackgroundColorChange,this)),slideBackgroundImageField:t("#slidebackgroundImage").on("nextendChange",t.proxy(this.__onAfterBackgroundImageChange,this)),slideBackgroundImageOpacity:t("#slidebackgroundImageOpacity").on("nextendChange",t.proxy(this.__onAfterBackgroundImageOpacityChange,this)),slidebackgroundFocusX:t("#slidebackgroundFocusX").on("nextendChange",t.proxy(this.__onAfterBackgroundImageChange,this)),slidebackgroundFocusY:t("#slidebackgroundFocusY").on("nextendChange",t.proxy(this.__onAfterBackgroundImageChange,this)),slideBackgroundModeField:t("#slidebackgroundMode").on("nextendChange",t.proxy(this.__onAfterBackgroundImageChange,this)),backgroundImageElement:e.$currentSlideElement.find(".nextend-slide-bg"),canvas:e.$currentSlideElement.find(".n2-ss-slide-background")},this.currentBackgroundType=this.background.type.val();var i=t("#slidethumbnail");if(""==i.val()){var s=t("#item_imageimage"),n=t.proxy(function(e){""!=e&&"$system$/images/placeholder/image.png"!=e&&(i.val(e).trigger("change"),this.background.slideBackgroundImageField.off(".slidethumbnail"),s.off(".slidethumbnail"))},this);this.background.slideBackgroundImageField.on("nextendChange.slidethumbnail",t.proxy(function(){n(this.background.slideBackgroundImageField.val())},this)),s.on("nextendChange.slidethumbnail",t.proxy(function(){n(s.val())},this))}},n.prototype.__onAfterBackgroundTypeChange=function(){var t=this.background.type.val();switch(this.currentBackgroundType=t,t){case"image":this.__onAfterBackgroundImageChange();break;case"video":this.__onAfterBackgroundImageChange();break;case"color":e.$currentSlideElement.data("slideBackground").changeDesktop("","",this.background.slideBackgroundModeField.val(),this.background.slidebackgroundFocusX.val(),this.background.slidebackgroundFocusY.val()),this.__onAfterBackgroundColorChange()}},n.prototype.__onAfterBackgroundColorChange=function(){var e=this.background.slideBackgroundColorField.val(),t=this.background.slideBackgroundGradientField.val();if("off"!=t){var i=this.background.slideBackgroundColorEndField.val(),s=this.background.canvas.css({background:"",filter:""});switch(t){case"horizontal":s.css("background","#"+e.substr(0,6)).css("background","-moz-linear-gradient(left, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(left, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(to right, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+e.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)");break;case"vertical":s.css("background","#"+e.substr(0,6)).css("background","-moz-linear-gradient(top, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(top, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(to bottom, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+e.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=0)");break;case"diagonal1":s.css("background","#"+e.substr(0,6)).css("background","-moz-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+e.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)");break;case"diagonal2":s.css("background","#"+e.substr(0,6)).css("background","-moz-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(e)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+e.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)")}}else"00"==e.substr(6,8)?this.background.canvas.css("background",""):this.background.canvas.css("background","#"+e.substr(0,6)).css("background",N2Color.hex2rgbaCSS(e))},n.prototype.__onAfterBackgroundImageChange=function(){e.$currentSlideElement.data("slideBackground").changeDesktop(e.generator.fill(this.background.slideBackgroundImageField.val()),"",this.background.slideBackgroundModeField.val(),this.background.slidebackgroundFocusX.val(),this.background.slidebackgroundFocusY.val()),this.__onAfterBackgroundImageOpacityChange()},n.prototype.__onAfterBackgroundImageOpacityChange=function(){e.$currentSlideElement.data("slideBackground").setOpacity(this.background.slideBackgroundImageOpacity.val()/100)},n.prototype._warnInternetExplorerUsers=function(){var e=this.__isInternetExplorer();e&&10>e&&alert(window.ss2lang.The_editor_was_tested_under_Internet_Explorer_10_Firefox_and_Chrome_Please_use_one_of_the_tested_browser)},n.prototype.__isInternetExplorer=function(){var e=navigator.userAgent.toLowerCase();return-1!=e.indexOf("msie")?parseInt(e.split("msie")[1]):!1},n.prototype.getLayout=function(){for(var i=t("#smartslider-form").serializeArray(),s={},n=0;n<i.length;n++){var r=i[n].name.match(/slide\[(.*?)\]/);r&&(s[r[1]]=i[n].value)}return delete s.generator,delete s.published,delete s.publishdates,delete s["record-start"],delete s["record-slides"],delete s.slide,s.slide=e.layerManager.getData(),s},n.prototype.loadLayout=function(i,s,n){var r=i.slide;if(delete i.slide,n?e.layerManager.loadData(r,!0):e.layerManager.loadData(r,!1),s)for(var a in i)t("#slide"+a).val(i[a]).trigger("change");i.slide=r},n.prototype.createHistory=function(){this.slideValues={},n2("#smartslider-form").find('input[id][name^="slide"], textarea[id][name^="slide"]').not("#slideslide").each(t.proxy(function(i,s){var n=t(s),r=n.data("field"),a=n.attr("id");this.slideValues[a]=n.val(),n.on("nextendChange",t.proxy(function(){var i=n.val(),s=this.slideValues[a];this.slideValues[a]=i,e.history.add(t.proxy(function(){return[this,"slideValueChange",i,s,[n,r]]},this))},this))},this))},n.prototype.history=function(e,t,i){switch(e){case"slideValueChange":i[1].insideChange(t)}},i.SmartSliderAdminSlide=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e){this.key="n2-ss-editor-device-lock-mode",this.devices={unknownUnknown:t("<div />")},this.responsives=[e],e.setOrientation("portrait"),e.parameters.onResizeEnabled=0,e.parameters.forceFull=0,e._getDevice=e._getDeviceZoom,this.lock=t("#n2-ss-lock").on("click",t.proxy(this.switchLock,this));var i=e.parameters.sliderWidthToDevice.desktopPortrait;this.container=e.containerElement.closest(".n2-ss-container-device").addBack(),this.container.width(i),this.containerWidth=i,this.initZoom();var s=t("#n2-ss-devices .n2-tr"),n=e.parameters.deviceModes;this.devices.desktopPortrait=t('<div class="n2-td n2-panel-option" data-device="desktop" data-orientation="portrait"><i class="n2-i n2-it n2-i-v-desktop"></i></div>').prependTo(s),n.desktopLandscape?this.devices.desktopLandscape=t('<div class="n2-td n2-panel-option" data-device="desktop" data-orientation="landscape"><i class="n2-i n2-it n2-i-v-desktop-landscape"></i></div>').prependTo(s):this.devices.desktopLandscape=this.devices.desktopPortrait,n.tabletPortrait?this.devices.tabletPortrait=t('<div class="n2-td n2-panel-option" data-device="tablet" data-orientation="portrait"><i class="n2-i n2-it n2-i-v-tablet"></i></div>').prependTo(s):this.devices.tabletPortrait=this.devices.desktopPortrait,n.tabletLandscape?this.devices.tabletLandscape=t('<div class="n2-td n2-panel-option" data-device="tablet" data-orientation="landscape"><i class="n2-i n2-it n2-i-v-tablet-landscape"></i></div>').prependTo(s):this.devices.tabletLandscape=this.devices.desktopLandscape,n.mobilePortrait?this.devices.mobilePortrait=t('<div class="n2-td n2-panel-option" data-device="mobile" data-orientation="portrait"><i class="n2-i n2-it n2-i-v-mobile"></i></div>').prependTo(s):this.devices.mobilePortrait=this.devices.tabletPortrait,n.mobileLandscape?this.devices.mobileLandscape=t('<div class="n2-td n2-panel-option" data-device="mobile" data-orientation="landscape"><i class="n2-i n2-it n2-i-v-mobile-landscape"></i></div>').prependTo(s):this.devices.mobileLandscape=this.devices.tabletLandscape,this.deviceOptions=t("#n2-ss-devices .n2-panel-option"),this.deviceOptions.each(t.proxy(function(e,i){t(i).on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"zoomDeviceClicked"),click:t.proxy(this.setDeviceMode,this)})},this)),e.sliderElement.on("SliderDeviceOrientation",t.proxy(this.onDeviceOrientationChange,this))}var r=null;nextend.ssBeforeResponsive=function(){r=new n(this),nextend.ssBeforeResponsive=function(){r.add(this)}},n.prototype.add=function(e){this.responsives.push(e),e.setOrientation("portrait"),e.parameters.onResizeEnabled=0,e.parameters.forceFull=0,e._getDevice=e._getDeviceZoom},n.prototype.onDeviceOrientationChange=function(e,i){t("#n2-admin").removeClass("n2-ss-mode-"+i.lastDevice+i.lastOrientation).addClass("n2-ss-mode-"+i.device+i.orientation),this.devices[i.lastDevice+i.lastOrientation].removeClass("n2-active"),this.devices[i.device+i.orientation].addClass("n2-active")},n.prototype.setDeviceMode=function(i){var s=t(i.currentTarget);if((i.ctrlKey||i.metaKey)&&e.layerManager){var n=s.data("orientation");e.layerManager.copyOrResetMode(s.data("device")+n[0].toUpperCase()+n.substr(1))}else for(var r=0;r<this.responsives.length;r++)this.responsives[r].setOrientation(s.data("orientation")),this.responsives[r].setMode(s.data("device"),this.responsives[0])},n.prototype.switchLock=function(e){e.preventDefault(),this.lock.toggleClass("n2-active"),this.lock.hasClass("n2-active")?(this.setZoomSyncMode(),this.zoomChange(this.zoom.slider("value"),"sync",!1),t.jStorage.set(this.key,"sync")):(this.setZoomFixMode(),t.jStorage.set(this.key,"fix"))},n.prototype.initZoom=function(){var e=t("#n2-ss-slider-zoom");if(e.length>0){"undefined"!=typeof e[0].slide&&(e[0].slide=null),this.zoom=e.removeAttr("slide").slider({range:"min",step:1,value:1,min:0,max:102}),this.responsives[0].sliderElement.on("SliderResize",t.proxy(this.sliderResize,this)),"fix"==t.jStorage.get(this.key,"sync")?this.setZoomFixMode():(this.setZoomSyncMode(),this.lock.addClass("n2-active"));var i=e.parent(),s=t.proxy(function(e){var t=this.zoom.slider("value");this.zoom.slider("value",t+e)},this),n=null,r=t.proxy(function(e){s(e),n=setInterval(t.proxy(s,this,e),40)},this);i.find(".n2-i-minus").on({mousedown:t.proxy(r,this,-1),"mouseup mouseleave":function(){n&&(clearInterval(n),n=null)}}),i.find(".n2-i-plus").on({mousedown:t.proxy(r,this,1),"mouseup mouseleave":function(){n&&(clearInterval(n),n=null)}})}},n.prototype.sliderResize=function(e,t){this.setZoom()},n.prototype.setZoomFixMode=function(){this.zoom.off(".n2-ss-zoom").on({"slide.n2-ss-zoom":t.proxy(this.zoomChangeFixMode,this),"slidechange.n2-ss-zoom":t.proxy(this.zoomChangeFixMode,this)})},n.prototype.setZoomSyncMode=function(){this.zoom.off(".n2-ss-zoom").on({"slide.n2-ss-zoom":t.proxy(this.zoomChangeSyncMode,this),"slidechange.n2-ss-zoom":t.proxy(this.zoomChangeSyncMode,this)})},n.prototype.zoomChangeFixMode=function(e,t){this.zoomChange(t.value,"fix",t)},n.prototype.zoomChangeSyncMode=function(e,t){this.zoomChange(t.value,"sync",t)},n.prototype.zoomChange=function(e,t,i){var s=1;50>e?s=nextend.smallestZoom/this.containerWidth+Math.max(e/50,0)*(1-nextend.smallestZoom/this.containerWidth):e>52&&(s=1+(e-52)/50);var n=parseInt(s*this.containerWidth);this.container.width(n);for(var r=1;r<this.responsives.length;r++)this.responsives[r].containerElement.width(n);for(var r=0;r<this.responsives.length;r++)switch(t){case"sync":this.responsives[r].doResize();break;default:this.responsives[r].doResize(!0)}i&&(i.handle.innerHTML=n+"px")},n.prototype.setZoom=function(){var e=this.responsives[0].containerElement.width()/this.containerWidth,t=50;1>e?t=(e-nextend.smallestZoom/this.containerWidth)/(1-nextend.smallestZoom/this.containerWidth)*50:e>1&&(t=50*(e-1)+52);this.zoom.slider("value");this.zoom.slider("value",t)}}(nextend.smartSlider,n2,window),function(e,t){function i(t,i){this.addToGroupModal=null,this.groupID=t,this.ajaxUrl=i,e(".n2-ss-create-slider").click(e.proxy(function(e){e.preventDefault(),e.stopImmediatePropagation(),this.showModal()},this)),this.notificationStack=new NextendNotificationCenterStackModal(e("body")),e(".n2-ss-add-sample-slider").click(e.proxy(function(e){e.preventDefault(),e.stopImmediatePropagation(),this.showDemoSliders()},this)),"createslider"==window.location.hash.substring(1)&&this.showModal()}i.prototype.showModal=function(){if(!this.createSliderModal){var t=this,i=this.ajaxUrl,s=[];s.push({key:"default",name:n2_("Default"),image:"$ss$/admin/images/sliderpresets/default.png"}),s.push({key:"fullwidth",name:n2_("Full width"),image:"$ss$/admin/images/sliderpresets/fullwidth.png"}),s.push({key:"thumbnailhorizontal",name:n2_("Thumbnail - horizontal"),image:"$ss$/admin/images/sliderpresets/thumbnailhorizontal.png"}),this.createSliderModal=new NextendModal({zero:{size:[N2SSPRO?750:550,N2SSPRO?630:520],title:n2_("Create Slider"),back:!1,close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Create")+"</a>"],fn:{show:function(){var n=this.controls.find(".n2-button-green"),r=this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),n.trigger("click")});r.append(this.createInput(n2_("Slider name"),"createslidertitle","width: 240px;")),r.append(this.createInputUnit(n2_("Width"),"createsliderwidth","px","width: 30px;")),r.append(this.createInputUnit(n2_("Height"),"createsliderheight","px","width: 30px;")),new NextendElementAutocompleteSimple("createsliderwidth",["1920","1200","1000","800","600","400"]),new NextendElementAutocompleteSimple("createsliderheight",["800","600","500","400","300","200"]);var a=e("#createslidertitle").val(n2_("Slider")).focus(),o=e("#createsliderwidth").val(900),l=e("#createsliderheight").val(500);o.parent().addClass("n2-form-element-autocomplete ui-front"),l.parent().addClass("n2-form-element-autocomplete ui-front"),this.createHeading(n2_("Preset")).appendTo(this.content);var d=this.createImageRadio(s).css("height",N2SSPRO?360:100).appendTo(this.content),h=d.find("input");d.css("overflow","hidden"),this.createHeading(n2_("Import Sample Sliders")).appendTo(this.content),e('<div class="n2-ss-create-slider-free-sample" style="background-image: url(\''+nextend.imageHelper.fixed("$ss$/admin/images/free/sample1.png")+'\')"></div><div class="n2-ss-create-slider-free-sample" style="background-image: url(\''+nextend.imageHelper.fixed("$ss$/admin/images/free/sample2.png")+'\')"></div><div class="n2-ss-create-slider-free-sample" style="background-image: url(\''+nextend.imageHelper.fixed("$ss$/admin/images/free/sample3.png")+"')\"></div>").on("click",e.proxy(function(){this.hide(),t.showDemoSliders()},this)).appendTo(this.content),n.on("click",e.proxy(function(){NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(i,{nextendaction:"create"}),data:{groupID:t.groupID,sliderTitle:a.val(),sliderSizeWidth:o.val(),sliderSizeHeight:l.val(),preset:h.val()},dataType:"json"}).done(e.proxy(function(e){NextendAjaxHelper.startLoading()},this))},this))}}}})}this.createSliderModal.show()},i.prototype.showDemoSliders=function(){var t=this;e("body").css("overflow","hidden");var i=0,s=e('<iframe src="//smartslider3.com/demo-import/?pro='+i+"&version="+N2SS3VERSION+"&utm_campaign="+N2SS3C+"&utm_source=import-slider-frame&utm_medium=smartslider-"+N2PLATFORM+"-"+(i?"pro":"free")+'" frameborder="0"></iframe>').css({position:"fixed",zIndex:1e5,left:0,top:0,width:"100%",height:"100%"}).appendTo("body"),n=function(){e("body").css("overflow",""),s.remove(),window.removeEventListener("message",a,!1),t.notificationStack.popStack()},r=function(e){NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(t.ajaxUrl,{nextendaction:"importDemo"}),data:{groupID:t.groupID,key:Base64.encode(e.replace(/^(http(s)?:)?\/\//,"//"))},dataType:"json"}).fail(function(){})},a=function(e){if("http://smartslider3.com"===e.origin||"https://smartslider3.com"===e.origin){var t=e.data;switch(t.key){case"importSlider":return void("function"==typeof nextend.joinCommunity?nextend.joinCommunity(function(){r(t.data.href)}):r(t.data.href));case"closeWindow":n()}}};this.notificationStack.enableStack(),NextendEsc.add(e.proxy(function(){return n(),!0},this)),window.addEventListener("message",a,!1)},t.NextendSmartSliderCreateSlider=i}(n2,window),function(e,t){function i(t,i){this.preventSort=!1,this.groupID=t,this.ajaxUrl=i,this.sliders=[],this.sliderPanel=e("#n2-ss-slider-container"),this.orderBy="ordering"==this.sliderPanel.data("orderby"),this.slidersContainer=this.sliderPanel.find(".n2-ss-sliders-container");for(var s=this.slidersContainer.find(".n2-ss-box-slider"),n=0;n<s.length;n++)this.sliders.push(new NextendSmartSliderAdminSlider(this,s.eq(n)));this.changed(),this.initMenu(),this.initOrderable(),this.create=new NextendSmartSliderCreateSlider(t,i),this.initBulk()}i.prototype.changed=function(){e("html").attr("data-sliders",this.sliders.length)},i.prototype.initSliders=function(){for(var t=(this.sliders.length,this.slidersContainer.find(".n2-ss-box-slider")),i=[],s=0;s<t.length;s++){var n=t.eq(s).data("slider");i.push(n)}this.sliders=i,this.changed(),e(window).triggerHandler("SmartSliderSidebarSlidersChanged")},i.prototype.initOrderable=function(){this.orderBy&&this.slidersContainer.sortable({helper:"clone",forcePlaceholderSize:!1,tolerance:"pointer",connectWith:".n2-ss-box-slider-group",items:".n2-ss-box-slider",start:function(e,t){t.item.show()},stop:e.proxy(this.saveOrder,this),placeholder:"n2-box-sortable-placeholder",distance:10})},i.prototype.saveOrder=function(t){if(this.preventSort)return this.slidersContainer.sortable("cancel"),void(this.preventSort=!1);for(var i=this.slidersContainer.find(".n2-ss-box-slider"),s=[],n=[],r=[],a=0;a<i.length;a++){var o=i.eq(a).data("slider");s.push(o),n.push(o.getId())}for(var a=0;a<this.sliders.length;a++)r.push(this.sliders[a].getId());if(JSON.stringify(r)!=JSON.stringify(n)){e(window).triggerHandler("SmartSliderSidebarSlidersOrderChanged");var l={nextendcontroller:"sliders",nextendaction:"order"};NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,l),data:{groupID:this.groupID,sliderorder:n,isReversed:"DESC"==this.sliderPanel.data("orderbydirection")?1:0}}),this.sliders=s}},i.prototype.initMenu=function(){this.slider=null,this.menu=e("#n2-ss-slider-menu").detach().addClass("n2-inited"),this.menuActions={addToGroup:this.menu.find(".n2-ss-add-to-group").on("click",e.proxy(function(e){e.stopPropagation(),e.preventDefault(),this.addToGroup([this.slider.getId()])},this)),removeFromGroup:this.menu.find(".n2-ss-remove-from-group").on("click",e.proxy(function(e){e.stopPropagation(),e.preventDefault(),this.removeFromGroup([this.slider.getId()])},this)),duplicate:this.menu.find(".n2-ss-duplicate").on("click",e.proxy(function(e){this.slider.duplicate(e)},this)),"delete":this.menu.find(".n2-ss-delete").on("click",e.proxy(function(e){this.slider["delete"](e)},this)),preview:this.menu.find(".n2-ss-preview").on("click",e.proxy(function(e){this.slider.preview(e)},this))},this.menu.find(".n2-button").on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation(),this.menu.hasClass("n2-active")?this.menu.removeClass("n2-active").off("mouseleave"):this.menu.addClass("n2-active").on("mouseleave",function(){e(this).removeClass("n2-active")})},this))},i.prototype.showMenu=function(e){this.slider=e,this.menu.appendTo(e.box)},i.prototype.hideMenu=function(){this.menu.hasClass("n2-active")&&this.menu.removeClass("n2-active").off("mouseleave"),this.menu.detach()},i.prototype.deleteSliders=function(t,i){this.hideMenu();var s=i[0].box.find(".n2-box-placeholder-title a").text();i.length>1&&(s+=" and "+(i.length-1)+" more"),NextendDeleteModal("slider-delete",s,e.proxy(function(){NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"delete"}),type:"POST",data:{sliders:t}}).done(e.proxy(function(){for(var e=0;e<i.length;e++)i[e].deleted();this.initSliders(),this.leaveBulk()},this))},this))},i.prototype.duplicateSliders=function(t,i){for(var s=0;s<this.sliders.length;s++)this.sliders[s].selected&&this.sliders[s].duplicate(e.Event("click",{currentTarget:null}))},i.prototype.exportSliders=function(t,i){window.location.href=NextendAjaxHelper.makeFallbackUrl(this.ajaxUrl,{
3
+ nextendcontroller:"sliders",nextendaction:"exportAll"})+"&"+e.param({sliders:t,currentGroupID:this.groupID})},i.prototype.initBulk=function(){this.selection=[],this.isBulkSelection=!1;var t=e(".n2-bulk-select").find("a");t.eq(0).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.select()})},this)),t.eq(1).on("click",e.proxy(function(e){e.preventDefault(),this.bulkSelect(function(e){e.deSelect()})},this));e(".n2-bulk-actions").find("a").on("click",e.proxy(function(t){switch(t.preventDefault(),e(t.currentTarget).data("action")){case"duplicate":this.bulkAction("duplicateSliders",!1);break;case"delete":this.bulkAction("deleteSliders",!1);break;case"export":this.bulkAction("exportSliders",!1);break;case"addToGroup":this.bulkAction("addToGroup",!0)}},this))},i.prototype.addSelection=function(e){0==this.selection.length&&this.enterBulk(),this.selection.push(e)},i.prototype.removeSelection=function(t){this.selection.splice(e.inArray(t,this.selection),1),0==this.selection.length&&this.leaveBulk()},i.prototype.bulkSelect=function(e){for(var t=0;t<this.sliders.length;t++)e(this.sliders[t])},i.prototype.bulkAction=function(e,t){var i=[],s=[];this.bulkSelect(function(e){!e.selected||t&&e.isGroup||(i.push(e),s.push(e.getId()))}),s.length?(this[e](s,i),this.leaveBulk()):t?nextend.notificationCenter.notice("Please select one or more sliders for the action!"):nextend.notificationCenter.notice("Please select one or more sliders or groups for the action!")},i.prototype.enterBulk=function(){this.isBulkSelection||(this.isBulkSelection=!0,this.orderBy&&this.slidersContainer.sortable("option","disabled",!0),e("#n2-admin").addClass("n2-ss-has-box-selection"))},i.prototype.leaveBulk=function(){if(this.isBulkSelection){this.orderBy&&this.slidersContainer.sortable("option","disabled",!1),e("#n2-admin").removeClass("n2-ss-has-box-selection");for(var t=0;t<this.sliders.length;t++)this.sliders[t].deSelect();this.selection=[],this.isBulkSelection=!1}},i.prototype.removeFromGroup=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"removeFromGroup"}),data:{currentGroupID:this.groupID,sliders:t},dataType:"json"}).done(e.proxy(function(i){for(var s=0;s<t.length;s++)e('[data-sliderid="'+t[s]+'"]').data("slider").deleted();this.initSliders()},this))},i.prototype._addToGroup=function(t,i,s){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"addToGroup"}),data:{currentGroupID:this.groupID,groupID:i,action:t,sliders:s},dataType:"json"}).done(e.proxy(function(n){if("move"==t){for(var r=0;r<s.length;r++)e('[data-sliderid="'+s[r]+'"]').data("slider").deleted();this.initSliders()}var a=e('[data-sliderid="'+i+'"] .n2-box-placeholder-buttons .n2-button-grey');a.html(parseInt(a.html())+s.length)},this))},i.prototype.addToGroup=function(t){var i=null,s=this,n=(this.ajaxUrl,new NextendModal({zero:{size:[350,220],title:n2_("Add to group"),back:!1,close:!0,content:'<form class="n2-form"></form>',controls:['<div class="n2-button n2-button-with-actions n2-button-l n2-button-green n2-radius-s n2-h4"><a class="n2-button-inner" href="#" data-action="move">'+n2_("Move")+'</a><div class="n2-button-menu-open"><i class="n2-i n2-i-buttonarrow"></i><div class="n2-button-menu"><div class="n2-button-menu-inner n2-border-radius"><a class="n2-h4" href="#" data-action="copy">'+n2_("Copy")+'</a><a class="n2-h4" href="#" data-action="link">'+n2_("Link")+"</a></div></div></div></div>"],fn:{show:function(){this.controls.find(".n2-button-menu-open").n2opener();var n=this.controls.find("a"),r=this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),n.eq(0).trigger("click")});r.append(this.createSelect(n2_("Group"),"choosegroup",i,"width:300px;"));var a=e("#choosegroup");n.on("click",e.proxy(function(i){i.preventDefault(),s._addToGroup(e(i.currentTarget).data("action"),a.val(),t).done(e.proxy(function(){this.hide(i)},this))},this))}}}}));NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"listGroups"}),dataType:"json"}).done(e.proxy(function(t){i=t.data,"undefined"!=typeof i[this.groupID]&&delete i[this.groupID],e.isEmptyObject(i)?(e("body").on({"groupAdded.addToGroup":e.proxy(function(){e("body").off(".addToGroup"),NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"listGroups"}),dataType:"json"}).done(e.proxy(function(e){i=e.data,"undefined"!=typeof i[this.groupID]&&delete i[this.groupID],n.show()},this))},this),"groupAddCanceled.addToGroup":e.proxy(function(){e("body").off(".addToGroup")},this)}),this.createGroup.showModal()):n.show()},this))},t.NextendSmartSliderManageSliders=i}(n2,window),function(e,t){function i(t,i){this.selected=!1,this.manager=t,this.box=i.data("slider",this).addClass("n2-clickable"),this.isGroup=this.box.hasClass("n2-ss-box-slider-group"),this.box.on("mouseenter",e.proxy(function(){this.manager.showMenu(this)},this)).on("mouseleave",e.proxy(function(){this.manager.hideMenu()},this)).on("click.n2-slider",e.proxy(this.goToEdit,this)),this.box.find(".n2-ss-box-select").on("click",e.proxy(function(e){e.stopPropagation(),e.preventDefault(),this.invertSelection()},this))}i.prototype.getId=function(){return this.box.data("sliderid")},i.prototype.goToEdit=function(e,t){var i=this.box.data("editurl");"undefined"!=typeof t&&t?window.open(i,"_blank"):window.location=i},i.prototype.preview=function(e){e.stopPropagation(),e.preventDefault(),window.open(NextendAjaxHelper.makeFallbackUrl(this.box.data("editurl"),{nextendcontroller:"preview",nextendaction:"index"}),"_blank")},i.prototype.duplicate=function(t){t.stopPropagation(),t.preventDefault();var s=e.Deferred();return NextendAjaxHelper.ajax({url:NextendAjaxHelper.makeAjaxUrl(this.box.data("editurl"),{nextendcontroller:"slider",nextendaction:"duplicate"})}).done(e.proxy(function(t){var n=e(t.data).insertAfter(this.box),r=new i(this.manager,n);this.manager.initSliders(),s.resolve(r)},this)),s},i.prototype["delete"]=function(e){e.stopPropagation(),e.preventDefault(),this.manager.deleteSliders([this.getId()],[this])},i.prototype.deleted=function(){this.box.remove()},i.prototype.invertSelection=function(e){e&&e.preventDefault(),this.selected?this.deSelect():this.select()},i.prototype.select=function(){this.selected||(this.selected=!0,this.box.addClass("n2-selected"),this.manager.addSelection(this))},i.prototype.deSelect=function(){this.selected&&(this.selected=!1,this.box.removeClass("n2-selected"),this.manager.removeSelection(this))},t.NextendSmartSliderAdminSlider=i}(n2,window),function(e,t){function i(t,i){this.element=e("#"+t),this.managerIdentifier=i,this.element.parent().on("click",e.proxy(this.show,this)),this.element.siblings(".n2-form-element-clear").on("click",e.proxy(this.clear,this)),this.name=this.element.siblings("input"),this.updateName(this.element.val()),NextendElement.prototype.constructor.apply(this,arguments)}function s(){i.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendElement.prototype),i.prototype.constructor=i,i.prototype.show=function(t){t.preventDefault(),nextend[this.managerIdentifier].show(this.element.val(),e.proxy(this.save,this))},i.prototype.clear=function(e){e.preventDefault(),e.stopPropagation(),this.val("")},i.prototype.save=function(e,t){this.val(t)},i.prototype.val=function(e){this.element.val(e),this.updateName(e),this.triggerOutsideChange()},i.prototype.insideChange=function(e){this.element.val(e),this.updateName(e),this.triggerInsideChange()},i.prototype.updateName=function(e){e=""==e?n2_("Disabled"):e.split("||").length>1?n2_("Multiple animations"):n2_("Single animation"),this.name.val(e)},t.NextendElementAnimationManager=i,s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.prototype.clear=function(e){e.preventDefault(),e.stopPropagation();var t=this.element.val().split("|*|");t[2]="",this.val(t.join("|*|"))},s.prototype.updateName=function(e){var t=e.split("|*|");e=t[2],e=""==e?n2_("Disabled"):e.split("||").length>1?n2_("Multiple animations"):n2_("Single animation"),this.name.val(e)},t.NextendElementPostAnimationManager=s}(n2,window),function(e,t){function i(t,i){this.value="",this.element=e("#"+t),this.$container=this.element.closest(".n2-form-tab"),this.panel=e("#"+t+"-panel"),this.setValue(i),this.options=this.panel.find(".n2-subform-image-option").on("click",e.proxy(this.selectOption,this)),this.active=this.getIndex(this.options.filter(".n2-active").get(0)),NextendElement.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendElement.prototype),i.prototype.constructor=i,i.prototype.selectOption=function(t){var i=this.getIndex(t.currentTarget);if(i!=this.active){this.options.eq(i).addClass("n2-active"),this.options.eq(this.active).removeClass("n2-active"),this.active=i;var s=e(t.currentTarget).data("value");this.insideChange(s),this.setValue(s)}},i.prototype.setValue=function(e){this.$container.removeClass("n2-ss-background-type-"+this.value),this.value=e,this.$container.addClass("n2-ss-background-type-"+this.value)},i.prototype.insideChange=function(e){this.element.val(e),this.triggerInsideChange()},i.prototype.getIndex=function(t){return e.inArray(t,this.options)},t.NextendElementBackground=i}(n2,window),function(e,t){function i(t){this.status=0,this.element=e("#"+t),this.$container=e(".n2-ss-parent-picker"),this.overlays=null,this.aligns=this.element.parent().parent().siblings(),this.picker=this.element.siblings(".n2-ss-layer-picker").on({click:e.proxy(function(){this.change("")},this)}),NextendElement.prototype.constructor.apply(this,arguments)}var s={INITIALIZED:0,PICK_PARENT:1,PICK_CHILD:2,PICK_PARENT_ALIGN:3,PICK_CHILD_ALIGN:4},n='<div class="n2-ss-picker-overlay-tile" data-align="left" data-valign="top" /><div class="n2-ss-picker-overlay-tile" data-align="center" data-valign="top" style="left:33%;top:0;" /><div class="n2-ss-picker-overlay-tile" data-align="right" data-valign="top" style="left:66%;top:0;width:34%;" /><div class="n2-ss-picker-overlay-tile" data-align="left" data-valign="middle" style="left:0;top:33%;" /><div class="n2-ss-picker-overlay-tile" data-align="center" data-valign="middle" style="left:33%;top:33%; " /><div class="n2-ss-picker-overlay-tile" data-align="right" data-valign="middle" style="left:66%;top:33%;width:34%;" /><div class="n2-ss-picker-overlay-tile" data-align="left" data-valign="bottom" style="left:0;top:66%;height:34%;" /><div class="n2-ss-picker-overlay-tile" data-align="center" data-valign="bottom" style="left:33%;top:66%;height:34%;" /><div class="n2-ss-picker-overlay-tile" data-align="right" data-valign="bottom" style="left:66%;top:66%;width:34%;height:34%;" />';i.prototype=Object.create(NextendElement.prototype),i.prototype.constructor=i,i.prototype.click=function(t){return e("#n2-admin").hasClass("n2-ss-mode-desktopPortrait")?void(this.status==s.INITIALIZED?(this.data={parent:null,parentVAlign:null,parentHAlign:null,child:null,childVAlign:null,childHAlign:null},e("body").on("mousedown.n2-ss-parent-linker",e.proxy(function(t){var i=e(t.target);i.parent();i.hasClass("n2-ss-picker-overlay")||i.hasClass("n2-ss-picker-overlay-tile")||this.destroy()},this)),NextendEsc.add(e.proxy(function(){return this.destroy(),!1},this)),this.pickParent(t)):(this.data=null,this.change(""),this.destroy())):void nextend.notificationCenter.notice("To chain layers together, please switch to desktop portrait mode!")},i.prototype.pickParent=function(t){var i=nextend.smartSlider.layerManager,n=e(i.mainLayerGroup.getChildLayersRecursive(!0));if(0==n.length)this.destroy();else{this.status=s.PICK_PARENT,nextend.tooltipMouse.show("Pick the parent layer!",t);e('<div class="n2-ss-picker-overlay"></div>').appendTo(n).on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation();var i=e(t.currentTarget).parent();i.data("layerObject");this.data.parent=i,this._destroy(),this.pickParentAlign(t)},this))}},i.prototype.pickParentAlign=function(t){this.status=s.PICK_PARENT_ALIGN,nextend.tooltipMouse.show("Pick the align point of the parent layer!",t);var i=e(n).appendTo(this.data.parent).on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation();var s=e(t.currentTarget);this.data.parentHAlign=s.data("align"),this.data.parentVAlign=s.data("valign"),s.off("click").addClass("n2-active"),i.not(s).remove(),this.pickChild(t)},this))},i.prototype.pickChild=function(t){this.status=s.PICK_CHILD,nextend.tooltipMouse.show("Pick the child layer!",t);var i=nextend.smartSlider.layerManager,n=e(i.mainLayerGroup.getChildLayersRecursive(!0)).not(this.data.parent),r=function(t){var i=t.data("layerObject").getProperty(!1,"parentid");i&&""!=i&&r(e("#"+i)),n=n.not(t)};if(r(this.data.parent),!n.length)return nextend.notificationCenter.error("There is no possible child layer for the selected parent layer!"),void this.destroy();var a=e('<div class="n2-ss-picker-overlay"></div>').appendTo(n).on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation();var i=e(t.currentTarget).parent();i.data("layerObject");this.data.child=i,a.remove(),this.pickChildAlign(t)},this))},i.prototype.pickChildAlign=function(t){this.status=s.PICK_CHILD_ALIGN,nextend.tooltipMouse.show("Pick the align point of the child layer!",t);e(n).appendTo(this.data.child).on("click",e.proxy(function(t){t.preventDefault(),t.stopPropagation();var i=e(t.currentTarget);this.data.childHAlign=i.data("align"),this.data.childVAlign=i.data("valign"),this.done()},this))},i.prototype._destroy=function(){e(".n2-ss-picker-overlay").remove(),e(".n2-ss-picker-overlay-tile").remove()},i.prototype.destroy=function(){nextend.tooltipMouse.hide(),this._destroy(),e("body").off(".n2-ss-parent-linker"),NextendEsc.pop(),this.status=s.INITIALIZED},i.prototype.done=function(){this.data.child.data("layerObject").parentPicked(this.data.parent.data("layerObject"),this.data.parentHAlign,this.data.parentVAlign,this.data.childHAlign,this.data.childVAlign),this.destroy()},i.prototype.change=function(e){this.element.val(e).trigger("change"),this._setValue(e),this.triggerOutsideChange()},i.prototype.insideChange=function(e){this.element.val(e),this._setValue(e),this.triggerInsideChange()},i.prototype._setValue=function(e){e&&""!=e?this.$container.css("display",""):this.$container.css("display","none")},t.NextendElementLayerPicker=i}(n2,window),function(e,t){function i(t){this.element=e("#"+t),this.setAttribute(),this.element.on("nextendChange",e.proxy(this.setAttribute,this))}i.prototype.setAttribute=function(){e("#n2-admin").attr("data-slider-type",this.element.val()),"block"==this.element.val()&&e(".n2-fm-shadow").trigger("click")},t.NextendElementSliderType=i}(n2,window),function(e,t){function i(t){this.element=e("#"+t),this.area=e("#"+t+"_area"),this.areas=this.area.find(".n2-area"),this.areas.on("click",e.proxy(this.chooseArea,this)),NextendElement.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendElement.prototype),i.prototype.constructor=i,i.prototype.chooseArea=function(t){var i=parseInt(e(t.target).data("area"));this.element.val(i),this.setSelected(i),this.triggerOutsideChange()},i.prototype.insideChange=function(e){e=parseInt(e),this.element.val(e),this.setSelected(e),this.triggerInsideChange()},i.prototype.setSelected=function(e){this.areas.removeClass("n2-active"),this.areas.eq(e-1).addClass("n2-active")},t.NextendElementSliderWidgetArea=i}(n2,window),function(e,t){function i(t){this.element=e("#"+t+"-mode"),this.container=this.element.closest(".n2-form-element-mixed"),this.tabs=this.container.find("> .n2-mixed-group"),this.element.on("nextendChange",e.proxy(this.onChange,this)),this.onChange()}i.prototype.onChange=function(){var e=this.element.val();"advanced"==e?(this.tabs.eq(2).css("display",""),this.tabs.eq(1).css("display","none")):(this.tabs.eq(1).css("display",""),this.tabs.eq(2).css("display","none"))},t.NextendElementWidgetPosition=i}(n2,window),function(e,t,i,s){"use strict";function n(){this._refreshTimeout=null,this.modal=!1,this.group=0,e.generator=this;var i=e.$currentSlideElement.data("variables");if(i){this.variables=i;for(var s in this.variables)!isNaN(parseFloat(s))&&isFinite(s)&&(this.group=Math.max(this.group,parseInt(s)+1));this.fill=this.generatorFill,this.group>0&&(this.registerField=this.generatorRegisterField,this.button=t('<a href="#" class="n2-button n2-button-normal n2-button-xs n2-radius-s n2-button-blue n2-h5 n2-uc" style="position:absolute;right: -2px;top: -18px;">Variable</a>').on("click",t.proxy(function(e){e.preventDefault(),this.showModal()},this)),this.registerField(t("#layerclass")),this.registerField(t("#slidetitle")),this.registerField(t("#slidedescription")),this.registerField(t("#slidethumbnail")),this.registerField(t("#slidebackgroundImage")),this.registerField(t("#slidebackgroundAlt")),this.registerField(t("#slidebackgroundTitle")),this.registerField(t("#slidebackgroundVideoMp4")),this.registerField(t("#slidebackgroundVideoWebm")),this.registerField(t("#slidebackgroundVideoOgg")),this.registerField(t("#linkslidelink_0")),this.registerField(t("#layergenerator-visible")),this.registerField(t("#layergroup-generator-visible")),t("body").addClass("n2-ss-dynamic-slide")),this.initSlideDataRefresh()}else this.variables=null}n.prototype.isDynamicSlide=function(){return this.group>0},n.prototype.splitTokens=function(e){for(var t=[],i="",s=0,n=0;n<e.length;n++){var r=e[n];","===r&&0===s?(t.push(i),i=""):(i+=r,"("===r?s++:")"===r&&s--)}return i.length&&t.push(i),t},n.prototype.fill=function(e){return e},n.prototype.generatorFill=function(e){return e.replace(/{((([a-z]+)\(([^}]+)\))|([a-zA-Z0-9][a-zA-Z0-9_\/]*))}/g,t.proxy(this.parseFunction,this))},n.prototype.parseFunction=function(e,t,i,s,n,r){if("undefined"==typeof r){for(var a=this.splitTokens(n),o=0;o<a.length;o++)a[o]=this.parseVariable(a[o]);return this[s].apply(this,a)}return this.parseVariable(r)},n.prototype.parseVariable=function(e){var t=e.match(/^("|')(.*)("|')$/);if(t)return t[2];var i=e.match(/((([a-z]+)\(([^}]+)\)))/);if(i)return this.parseFunction.apply(this,i);var s=e.match(/([a-zA-Z][0-9a-zA-Z_]*)(\/([0-9a-z]+))?/);if(s){var n=s[3];if("undefined"==typeof n)n=0;else{var r=parseInt(n);isNaN(r)||(n=Math.max(n,1)-1)}return"undefined"!=typeof this.variables[n]&&"undefined"!=typeof this.variables[n][s[1]]?this.variables[n][s[1]]:""}return e},n.prototype.fallback=function(e,t){return""==e?t:e},n.prototype.cleanhtml=function(e){return strip_tags(e,"<p><a><b><br /><br/><i>")},n.prototype.removehtml=function(e){return t("<div>"+e+"</div>").text()},n.prototype.splitbychars=function(e,t,i){return e.substr(t,i)},n.prototype.splitbywords=function(e,t,i){var s=e,n=s.length,r=Math.max(0,0==t?0:s.indexOf(" ",t)),a=Math.max(0,i>n?n:s.indexOf(" ",i));return 0==a&&n>=i&&(a=n),s.substr(r,a)},n.prototype.findimage=function(e,t){var i=e,s=/(<img.*?src=[\'"](.*?)[\'"][^>]*>)|(background(-image)??\s*?:.*?url\((["|\']?)?(.+?)(["|\']?)?\))/gi,n=[],r=null;for(t="undefined"!=typeof t?parseInt(t)-1:0;r=s.exec(i);)"undefined"!=typeof r[2]?n.push(r[2]):"undefined"!=typeof r[6]&&n.push(r[6]);return n.length?n.length>t?n[t]:n[n.length-1]:""},n.prototype.findlink=function(e,t){var i=e,s=/href=["\']?([^"\'>]+)["\']?/gi,n=[],r=null;for(t="undefined"!=typeof t?parseInt(t)-1:0;r=s.exec(i);)"undefined"!=typeof r[1]&&n.push(r[1]);return n.length?n.length>t?n[t]:n[n.length-1]:""},n.prototype.removevarlink=function(e){var t=String(e),i=/<a href=\"(.*?)\">(.*?)<\/a>/g;return t.replace(i,"")},n.prototype.registerField=function(e){},n.prototype.generatorRegisterField=function(e){var i=e.parent();i.on({mouseenter:t.proxy(function(){this.activeField=e,this.button.prependTo(i)},this)})},n.prototype.getModal=function(){var e=this;if(!this.modal){var i={key:"",group:1,filter:"no",split:"no",splitStart:0,splitLength:300,findImage:0,findImageIndex:1,findLink:0,findLinkIndex:1,removeVarLink:0},s=function(){var e=i.key+"/"+i.group;return i.findImage&&(e="findimage("+e+","+Math.max(1,i.findImageIndex)+")"),i.findLink&&(e="findlink("+e+","+Math.max(1,i.findLinkIndex)+")"),i.removeVarLink&&(e="removevarlink("+e+")"),"no"!=i.filter&&(e=i.filter+"("+e+")"),"no"!=i.split&&i.splitStart>=0&&i.splitLength>0&&(e=i.split+"("+e+","+i.splitStart+","+i.splitLength+")"),"{"+e+"}"},n=t('<div class="n2-generator-result-container" />'),r=function(){n.html(t("<div/>").text(e.fill(s())).html())},a=e.group,o=null,l=null,d=t('<div class="n2-generator-insert-variable"/>'),h=NextendModal.prototype.createHeading(n2_("Choose the group")).appendTo(d),p=t('<div class="n2-group-container" />').appendTo(d);d.append(NextendModal.prototype.createHeading(n2_("Choose the variable")));var c=t('<div class="n2-variable-container" />').appendTo(d),u=t('<div class="n2-generator-functions-container n2-form-element-mixed" />').appendTo(t('<div class="n2-form" />').appendTo(d));d.append(NextendModal.prototype.createHeading(n2_("Result"))),n.appendTo(d),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Filter")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-list"><select autocomplete="off" name="filter" id="n2-generator-function-filter"><option selected="selected" value="no">'+n2_("No")+'</option><option value="cleanhtml">'+n2_("Clean HTML")+'</option><option value="removehtml">'+n2_("Remove HTML")+"</option></select></div></div></div>").appendTo(u);var y=u.find("#n2-generator-function-filter");y.on("change",t.proxy(function(){i.filter=y.val(),r()},this)),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Split by chars")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-list"><select autocomplete="off" name="split" id="n2-generator-function-split"><option selected="selected" value="no">'+n2_("No")+'</option><option value="splitbychars">'+n2_("Strict")+'</option><option value="splitbywords">'+n2_("Respect words")+'</option></select></div><div class="n2-form-element-text n2-text-has-unit n2-border-radius"><div class="n2-text-sub-label n2-h5 n2-uc">'+n2_("Start")+'</div><input type="text" autocomplete="off" style="width: 22px;" class="n2-h5" value="0" id="n2-generator-function-split-start"></div><div class="n2-form-element-text n2-text-has-unit n2-border-radius"><div class="n2-text-sub-label n2-h5 n2-uc">'+n2_("Length")+'</div><input type="text" autocomplete="off" style="width: 22px;" class="n2-h5" value="300" id="n2-generator-function-split-length"></div></div></div>').appendTo(u);var f=u.find("#n2-generator-function-split");f.on("change",t.proxy(function(){i.split=f.val(),r()},this));var g=u.find("#n2-generator-function-split-start");g.on("change",t.proxy(function(){i.splitStart=parseInt(g.val()),r()},this));var m=u.find("#n2-generator-function-split-length");m.on("change",t.proxy(function(){i.splitLength=parseInt(m.val()),r()},this)),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Find image")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-onoff"><div class="n2-onoff-slider"><div class="n2-onoff-no"><i class="n2-i n2-i-close"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-yes"><i class="n2-i n2-i-tick"></i></div></div><input type="hidden" autocomplete="off" value="0" id="n2-generator-function-findimage"></div><div class="n2-form-element-text n2-text-has-unit n2-border-radius"><div class="n2-text-sub-label n2-h5 n2-uc">'+n2_("Index")+'</div><input type="text" autocomplete="off" style="width: 22px;" class="n2-h5" value="1" id="n2-generator-function-findimage-index"></div></div></div>').appendTo(u);var v=u.find("#n2-generator-function-findimage");v.on("nextendChange",t.proxy(function(){i.findImage=parseInt(v.val()),r()},this));var x=u.find("#n2-generator-function-findimage-index");x.on("change",t.proxy(function(){i.findImageIndex=parseInt(x.val()),r()},this)),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Find link")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-onoff"><div class="n2-onoff-slider"><div class="n2-onoff-no"><i class="n2-i n2-i-close"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-yes"><i class="n2-i n2-i-tick"></i></div></div><input type="hidden" autocomplete="off" value="0" id="n2-generator-function-findlink"></div><div class="n2-form-element-text n2-text-has-unit n2-border-radius"><div class="n2-text-sub-label n2-h5 n2-uc">'+n2_("Index")+'</div><input type="text" autocomplete="off" style="width: 22px;" class="n2-h5" value="1" id="n2-generator-function-findlink-index"></div></div></div>').appendTo(u);var b=u.find("#n2-generator-function-findlink");b.on("nextendChange",t.proxy(function(){i.findLink=parseInt(b.val()),r()},this));var S=u.find("#n2-generator-function-findlink-index");S.on("change",t.proxy(function(){i.findLinkIndex=parseInt(S.val()),r()},this)),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Remove links")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-onoff"><div class="n2-onoff-slider"><div class="n2-onoff-no"><i class="n2-i n2-i-close"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-yes"><i class="n2-i n2-i-tick"></i></div></div><input type="hidden" autocomplete="off" value="0" id="n2-generator-function-removevarlink"></div></div></div>').appendTo(u);var k=u.find("#n2-generator-function-removevarlink");k.on("nextendChange",t.proxy(function(){i.removeVarLink=parseInt(k.val()),r()},this));var w=u.find("#n2-generator-function-removevarlink-index");w.on("change",t.proxy(function(){i.removeVarLinkIndex=parseInt(w.val()),r()},this));for(var L in this.variables[0])t('<a href="#" class="n2-button n2-button-normal n2-button-s n2-button-grey n2-radius-s">'+L+"</a>").on("click",t.proxy(function(e,s){s.preventDefault(),o.removeClass("n2-active"),t(s.currentTarget).addClass("n2-active"),i.key=e,r()},this,L)).appendTo(c);o=c.find("a"),o.eq(0).trigger("click"),1==a&&(h.css("display","none"),p.css("display","none"));for(var C=0;a>C;C++)t('<a href="#" class="n2-button n2-button-normal n2-button-s n2-button-grey n2-radius-s">'+(C+1)+"</a>").on("click",t.proxy(function(e,s){s.preventDefault(),l.removeClass("n2-active"),t(s.currentTarget).addClass("n2-active"),i.group=e+1,r()},this,C)).appendTo(p);l=p.find("a"),l.eq(0).trigger("click");var I=!1;this.modal=new NextendModal({zero:{size:[1e3,a>1?560:490],title:n2_("Insert variable"),back:!1,close:!0,content:d,controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green">'+n2_("Insert")+"</a>"],fn:{show:function(){I||(new NextendElementOnoff("n2-generator-function-findimage"),new NextendElementOnoff("n2-generator-function-findlink"),new NextendElementOnoff("n2-generator-function-removevarlink"),I=!0),this.controls.find(".n2-button").on("click",t.proxy(function(t){t.preventDefault(),e.insert(s()),this.hide(t)},this))}}}},!1),this.modal.setCustomClass("n2-ss-generator-modal")}return this.modal},n.prototype.showModal=function(){this.getModal().show()},n.prototype.insert=function(e){this.activeField.val(e).trigger("change")},n.prototype.initSlideDataRefresh=function(){var e=t("#slidetitle").on("nextendChange",t.proxy(function(){this.variables.slide.name=e.val(),this.refresh()},this)),i=t("#slidedescription").on("nextendChange",t.proxy(function(){this.variables.slide.description=i.val(),this.refresh()},this))},n.prototype.refresh=function(){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),this._refreshTimeout=setTimeout(t.proxy(this._refresh,this),100)},n.prototype._refresh=function(){for(var t=e.layerManager.layerList,i=0;i<t.length;i++)for(var s=t[i].items,n=0;n<s.length;n++)s[n].reRender()},i.SmartSliderAdminGenerator=n}(nextend.smartSlider,n2,window),function(e,t,i){function s(t){this.ajaxUrl=t,e("#generatorrecord-viewer").on("click",e.proxy(this.showRecords,this))}s.prototype.showRecords=function(t){t.preventDefault(),NextendAjaxHelper.ajax({type:"POST",url:this.ajaxUrl,data:e("#smartslider-form").serialize(),dataType:"json"}).done(function(e){var t=new NextendModal({zero:{size:[1300,700],title:"Records",content:e.data.html}},!0);t.content.css("overflow","auto")}).error(function(e){if(200==e.status){var t=new NextendModal({zero:{size:[1300,700],title:"Response",content:e.responseText}},!0);t.content.css("overflow","auto")}})},t.NextendSmartSliderGeneratorRecords=s}(n2,window),function(e,t,i,s){function n(e,n,r,a){this.item=e,this.layer=n,this.itemEditor=r,this.type=this.item.data("item"),this.values=this.item.data("itemvalues"),"object"!=typeof this.values&&(this.values=t.parseJSON(this.values)),i["NextendSmartSliderItemParser_"+this.type]!==s?this.parser=new i["NextendSmartSliderItemParser_"+this.type](this,r.getItemType(this.type)):this.parser=new i.NextendSmartSliderItemParser(this),this.item.data("item",this),"undefined"!=typeof a&&(0==this.layer.items.length||this.layer.items.length<=a?this.item.appendTo(this.layer.layer):this.layer.items[a].item.before(this.item)),"undefined"==typeof a||0==this.layer.items.length||this.layer.items.length<=a?this.layer.items.push(this):this.layer.items.splice(a,0,this),0===this.item.children().length&&this.reRender(),t("<div/>").addClass("ui-helper ui-item-overlay").css("zIndex",89).appendTo(this.item),t(window).trigger("ItemCreated")}n.prototype.changeValue=function(e,i){this==this.itemEditor.activeItem?t("#item_"+this.type+e).data("field").insideChange(i):this.values[e]=i},n.prototype.activate=function(e,t,i){this.itemEditor.setActiveItem(this,t,i)&&this.parser.activate()},n.prototype.deActivate=function(){this.parser.deActivate()},n.prototype.render=function(e,i,s){this.layer.layer.triggerHandler("itemRender"),this.item.html(this.parser.render(e,i)),this.values=s,t("<div/>").addClass("ui-helper ui-item-overlay").css("zIndex",89).appendTo(this.item);var n=this.parser.getName(i);n=n===!1?this.type:n.replace(/[<>]/gi,""),this.layer.rename(n,!1),this.layer.update()},n.prototype.reRender=function(e){var i={},s=this.itemEditor,n=s.getItemType(this.type),r=n.template;for(var a in this.values)i[a]=this.values[a];i=t.extend({},this.parser.getDefault(),i,e);var o=t.extend({},i);this.parser.parseAll(i,this),this.values=o;for(var l in i){var d=new RegExp("\\{"+l+"\\}","g");r=r.replace(d,i[l])}this.render(t(r),i,this.values)},n.prototype.duplicate=function(){this.layer.addItem(this.getHTML(),!0)},n.prototype["delete"]=function(){this.item.trigger("mouseleave"),this.item.remove(),this.itemEditor.activeItem==this&&(this.itemEditor.activeItem=null)},n.prototype.getHTML=function(e){var i="";return i=e?"["+this.type+' values="'+Base64.encode(JSON.stringify(this.values))+'"]':t('<div class="n2-ss-item n2-ss-item-'+this.type+'"></div>').attr("data-item",this.type).attr("data-itemvalues",JSON.stringify(this.values))},n.prototype.getData=function(){return{type:this.type,values:this.values}},n.prototype.history=function(e,i,s){switch(e){case"updateCurrentItem":this.reRender(t.extend(!0,{},i)),this.values=i,this.itemEditor.setActiveItem(this,null,!0)}},i.NextendSmartSliderItem=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e){this.suppressChange=!1,this.activeItemOriginalData=null,this.layerEditor=e,this._initInstalledItems(),this.form={},this.activeForm={form:t("<div></div>")}}n.prototype.setActiveItem=function(e,i,s){if(e!=this.activeItem||s){this.activeItemOriginalData=null;var n=e.type,r=e.values;this.activeForm.form.css("display","none"),this.activeForm=this.getItemType(n),this.activeItem&&this.activeItem.deActivate(),this.activeItem=e,this.suppressChange=!0;for(var a in r){var o=t("#item_"+n+a).data("field");o&&o.insideChange(r[a])}return this.suppressChange=!1,this.activeForm.form.css("display","block"),this.focusFirst(i),!0}return!1},n.prototype.focusFirst=function(e){var t=this.activeForm.fields.eq(0).data("field");nextend.smartSlider.generator.isDynamicSlide()&&t.connectedField&&t.connectedField instanceof NextendElementImage||this.activeForm.fields.eq(0).data("field").focus("undefined"!=typeof e&&e);
4
+ },n.prototype._initInstalledItems=function(){t(".n2-ss-core-item").on("click",t.proxy(function(e){this.createLayerItem(this.layerEditor.getActiveGroup(),t(e.currentTarget).data("item"),"click")},this))},n.prototype.createLayerItem=function(s,n,r){s=s||this.layerEditor.getActiveGroup();var a=this.getItemType(n),o=this.layerEditor.createLayer(s,t(".n2-ss-core-item-"+n).data("layerproperties")),l=t("<div></div>").data("item",n).data("itemvalues",t.extend(!0,{},a.values)).addClass("n2-ss-item n2-ss-item-"+n),d=new i.NextendSmartSliderItem(l,o,this,0);return r&&"click"==r?o.layer.trigger("mousedown",["create"]).trigger("mouseup",["create"]).trigger("click",["create"]):o.activate(),e.sidebarManager.switchTab("item"),e.history.add(t.proxy(function(){return[this,"createLayer","create","delete",[s,d,n]]},this)),d},n.prototype.getItemType=function(e){if(this.form[e]===s){var i=t("#smartslider-slide-toolbox-item-type-"+e),n={form:i,template:i.data("itemtemplate"),values:i.data("itemvalues"),fields:i.find('[name^="item_'+e+'"]'),fieldNameRegexp:new RegExp("item_"+e+"\\[(.*?)\\]","")};n.fields.on({nextendChange:t.proxy(this.updateCurrentItem,this),keydown:t.proxy(this.updateCurrentItemDeBounced,this)}),this.form[e]=n}return this.form[e]},n.prototype.updateCurrentItem=function(i){if(!this.suppressChange){null===this.activeItemOriginalData&&(this.activeItemOriginalData=t.extend({},this.activeItem.values));var s={},n={},r=this.form[this.activeItem.type],a=r.template,o=this.activeItem.parser;r.fields.each(t.proxy(function(e,i){var i=t(i),a=i.attr("name").match(r.fieldNameRegexp)[1];n[a]=s[a]=i.val()},this)),s=t.extend({},o.getDefault(),s),o.parseAll(s,this.activeItem);for(var l in s){var d=new RegExp("\\{"+l+"\\}","g");a=a.replace(d,s[l])}i&&"nextendChange"==i.type&&(e.history.add(t.proxy(function(){return[this.activeItem,"updateCurrentItem",t.extend({},n),this.activeItemOriginalData,[]]},this)),this.activeItemOriginalData=null),this.activeItem.render(t(a),s,n)}},n.prototype.updateCurrentItemDeBounced=NextendDeBounce(function(e){this.updateCurrentItem(e)},100),n.prototype.history=function(t,i,s){switch(t){case"createLayer":switch(i){case"delete":s[1].layer["delete"]();break;case"create":var n=this.createLayerItem(s[0],s[2]);e.history.changeFuture(s[1].layer,n.layer),e.history.changeFuture(s[1],n)}}},i.NextendSmartSliderItemManager=n}(nextend.smartSlider,n2,window),function(e,t,i){function s(e,t){this.pre="div#"+nextend.smartSlider.frontend.sliderElement.attr("id")+" ",this.formData=t,this.item=e,this.fonts=[],this.styles=[],this.needFill=[],this.added()}s.prototype.getDefault=function(){return{}},s.prototype.added=function(){},s.prototype.addedFont=function(t,i){var s=e("#item_"+this.item.type+i);s.length&&(this.fonts.push({mode:t,name:i,field:s.data("field"),def:this.formData.values[i]}),e.when(nextend.fontManager.addVisualUsage(t,this.item.values[i],this.pre)).done(e.proxy(function(e){e||this.item.changeValue(i,"")},this)))},s.prototype.addedStyle=function(t,i){var s=e("#item_"+this.item.type+i);s.length&&(this.styles.push({mode:t,name:i,field:s.data("field"),def:this.formData.values[i]}),e.when(nextend.styleManager.addVisualUsage(t,this.item.values[i],this.pre)).done(e.proxy(function(e){e||this.item.changeValue(i,"")},this)))},s.prototype.parseAll=function(e,t){for(var i=0;i<this.fonts.length;i++)e[this.fonts[i].name+"class"]=nextend.fontManager.getClass(e[this.fonts[i].name],this.fonts[i].mode)+" ";for(var i=0;i<this.styles.length;i++)e[this.styles[i].name+"class"]=nextend.styleManager.getClass(e[this.styles[i].name],this.styles[i].mode)+" ";for(var i=0;i<this.needFill.length;i++)"undefined"!=typeof e[this.needFill[i]]&&(e[this.needFill[i]]=nextend.smartSlider.generator.fill(e[this.needFill[i]]+""))},s.prototype.render=function(e,t){return e},s.prototype.getName=function(e){return!1},s.prototype.resizeLayerToImage=function(t,i){e("<img/>").attr("src",i).load(function(){var e=t.layer.layerEditor.slideSize,i=e.width,s=e.height;if(this.width>0&&this.height>0){if(i=parseInt(Math.min(this.width,i)),s=parseInt(Math.min(this.height,s)),nextend.smartSlider.history.off(),e.width/e.height<=i/s)t.layer.setProperty("width",i),t.layer.setProperty("height",this.height*i/this.width);else{var n=Math.min(this.width*e.height/this.height,i);t.layer.setProperty("width",n),t.layer.setProperty("height",this.height*n/this.width)}nextend.smartSlider.history.on()}})},s.prototype.fitLayer=function(e){return!1},s.prototype.activate=function(){nextend.basicCSS.activate("ss3item"+this.item.type,this.item.values,{font:this.fonts,style:this.styles})},s.prototype.deActivate=function(){nextend.basicCSS.deActivate()},t.NextendSmartSliderItemParser=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.added=function(){this.needFill=["content","url"],this.addedFont("link","font"),this.addedStyle("button","style"),nextend.smartSlider.generator.registerField(e("#item_buttoncontent")),nextend.smartSlider.generator.registerField(e("#linkitem_buttonlink_0"))},s.prototype.getName=function(e){return e.content},s.prototype.parseAll=function(e){var t=e.link.split("|*|");e.url=t[0],e.target=t[1],delete e.link,0|e.fullwidth?e.display="block;":e.display="inline-block;",e.extrastyle=0|e.nowrap?"white-space: nowrap;":"",NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments)},t.NextendSmartSliderItemParser_button=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.getDefault=function(){return{link:"#|*|_self",font:"",style:""}},s.prototype.added=function(){this.needFill=["heading","url"],this.addedFont("hover","font"),this.addedStyle("heading","style"),nextend.smartSlider.generator.registerField(e("#item_headingheading")),nextend.smartSlider.generator.registerField(e("#linkitem_headinglink_0"))},s.prototype.getName=function(e){return e.heading},s.prototype.parseAll=function(t){t.uid=e.fn.uid();var i=t.link.split("|*|");t.url=i[0],t.target=i[1],delete t.link,0|t.fullwidth?t.display="block;":t.display="inline-block;",t.extrastyle=0|t.nowrap?"white-space: nowrap;":"",t.heading=e("<div>"+t.heading+"</div>").text().replace(/\n/g,"<br />"),t.priority=2,t["class"]="",NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments),"#"==t.url||""==t.url?(t.afontclass="",t.astyleclass=""):(t.afontclass=t.fontclass,t.fontclass="",t.astyleclass=t.styleclass,t.styleclass="")},s.prototype.render=function(e,t){if("#"==t.url||""==t.url){var i=e.find("a");i.parent().html(i.html())}return e},t.NextendSmartSliderItemParser_heading=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.getDefault=function(){return{size:"100%|*|auto",link:"#|*|_self",style:""}},s.prototype.added=function(){this.needFill=["image","url"],this.addedStyle("box","style"),nextend.smartSlider.generator.registerField(e("#item_imageimage")),nextend.smartSlider.generator.registerField(e("#item_imagealt")),nextend.smartSlider.generator.registerField(e("#item_imagetitle")),nextend.smartSlider.generator.registerField(e("#linkitem_imagelink_0"))},s.prototype.getName=function(e){return e.image.split("/").pop()},s.prototype.parseAll=function(e,t){var i=e.size.split("|*|");e.width=i[0],e.height=i[1],delete e.size;var s=e.link.split("|*|");e.url=s[0],e.target=s[1],delete e.link,NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments),t&&"$system$/images/placeholder/image.png"==t.values.image&&e.image!=t.values.image?(e.image=nextend.imageHelper.fixed(e.image),this.resizeLayerToImage(t,e.image)):e.image=nextend.imageHelper.fixed(e.image)},s.prototype.fitLayer=function(e){return this.resizeLayerToImage(e,nextend.imageHelper.fixed(e.values.image)),!0},s.prototype.render=function(e,t){return"#"==t.url&&e.html(e.children("a").html()),e},t.NextendSmartSliderItemParser_image=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}function n(e){var t=!1,i=!1,s="table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|legend|section|article|aside|hgroup|header|footer|nav|figure|details|menu|summary";return-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,function(e){return e.replace(/[\r\n]+/g,"")})),e=e.replace(/<[^<>]+>/g,function(e){return e.replace(/[\r\n]+/g," ")}),-1===e.indexOf("<pre")&&-1===e.indexOf("<script")||(t=!0,e=e.replace(/<(pre|script)[^>]*>[\s\S]+?<\/\1>/g,function(e){return e.replace(/(\r\n|\n)/g,"<wp-line-break>")})),-1!==e.indexOf("[caption")&&(i=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(e){return e=e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>"),e=e.replace(/<[a-zA-Z0-9]+( [^<>]+)?>/g,function(e){return e.replace(/[\r\n\t]+/," ")}),e.replace(/\s*\n\s*/g,"<wp-temp-br />")})),e+="\n\n",e=e.replace(/<br \/>\s*<br \/>/gi,"\n\n"),e=e.replace(new RegExp("(<(?:"+s+")(?: [^>]*)?>)","gi"),"\n$1"),e=e.replace(new RegExp("(</(?:"+s+")>)","gi"),"$1\n\n"),e=e.replace(/<hr( [^>]*)?>/gi,"<hr$1>\n\n"),e=e.replace(/\r\n|\r/g,"\n"),e=e.replace(/\n\s*\n+/g,"\n\n"),e=e.replace(/([\s\S]+?)\n\n/g,"<p>$1</p>\n"),e=e.replace(/<p>\s*?<\/p>/gi,""),e=e.replace(new RegExp("<p>\\s*(</?(?:"+s+")(?: [^>]*)?>)\\s*</p>","gi"),"$1"),e=e.replace(/<p>(<li.+?)<\/p>/gi,"$1"),e=e.replace(/<p>\s*<blockquote([^>]*)>/gi,"<blockquote$1><p>"),e=e.replace(/<\/blockquote>\s*<\/p>/gi,"</p></blockquote>"),e=e.replace(new RegExp("<p>\\s*(</?(?:"+s+")(?: [^>]*)?>)","gi"),"$1"),e=e.replace(new RegExp("(</?(?:"+s+")(?: [^>]*)?>)\\s*</p>","gi"),"$1"),e=e.replace(/\s*\n/gi,"<br />\n"),e=e.replace(new RegExp("(</?(?:"+s+")[^>]*>)\\s*<br />","gi"),"$1"),e=e.replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)>)/gi,"$1"),e=e.replace(/(?:<p>|<br ?\/?>)*\s*\[caption([^\[]+)\[\/caption\]\s*(?:<\/p>|<br ?\/?>)*/gi,"[caption$1[/caption]"),e=e.replace(/(<(?:div|th|td|form|fieldset|dd)[^>]*>)(.*?)<\/p>/g,function(e,t,i){return i.match(/<p( [^>]*)?>/)?e:t+"<p>"+i+"</p>"}),t&&(e=e.replace(/<wp-line-break>/g,"\n")),i&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),e}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.getDefault=function(){return{contentmobile:"",contenttablet:"",font:"",style:""}},s.prototype.added=function(){this.needFill=["content","contenttablet","contentmobile"],this.addedFont("paragraph","font"),this.addedStyle("heading","style"),nextend.smartSlider.generator.registerField(e("#item_textcontent")),nextend.smartSlider.generator.registerField(e("#item_textcontenttablet")),nextend.smartSlider.generator.registerField(e("#item_textcontentmobile"))},s.prototype.getName=function(e){return e.content},s.prototype.parseAll=function(e){NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments),e.p=n(e.content),e.ptablet=n(e.contenttablet),e.pmobile=n(e.contentmobile)},s.prototype.render=function(e,t){return""==t.contenttablet&&(e=e.filter(":not(.n2-ss-tablet)"),e.filter(".n2-ss-desktop").addClass("n2-ss-tablet")),""==t.contentmobile&&(e=e.filter(":not(.n2-ss-mobile)"),e.filter(".n2-ss-tablet, .n2-ss-desktop").last().addClass("n2-ss-mobile")),e.find("p").addClass(t.fontclass+" "+t.styleclass),e.find("a").on("click",function(e){e.preventDefault()}),e},t.NextendSmartSliderItemParser_text=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.added=function(){this.needFill=["vimeourl"],nextend.smartSlider.generator.registerField(e("#item_vimeovimeourl"))},s.prototype.getName=function(e){return e.vimeourl},s.prototype.parseAll=function(t,i){var s=i.values.vimeourl!=t.vimeourl;if(NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments),""==t.image&&(t.image="$system$/images/placeholder/video.png"),t.image=nextend.imageHelper.fixed(t.image),s&&""!=t.vimeourl){var n=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,r=t.vimeourl.match(n),a=!1;r?a=r[3]:t.vimeourl.match(/^[0-9]+$/)&&(a=t.vimeourl),a?NextendAjaxHelper.getJSON("https://vimeo.com/api/v2/video/"+encodeURI(a)+".json").done(e.proxy(function(t){e("#item_vimeoimage").val(t[0].thumbnail_large).trigger("change")},this)).fail(function(e){nextend.notificationCenter.error(e.responseText)}):nextend.notificationCenter.error("The provided URL does not match any known Vimeo url or code!")}},s.prototype.fitLayer=function(e){return!0},t.NextendSmartSliderItemParser_vimeo=s}(n2,window),function(e,t,i){function s(){NextendSmartSliderItemParser.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderItemParser.prototype),s.prototype.constructor=s,s.prototype.added=function(){this.needFill=["youtubeurl","image","start"],nextend.smartSlider.generator.registerField(e("#item_youtubeyoutubeurl")),nextend.smartSlider.generator.registerField(e("#item_youtubeimage")),nextend.smartSlider.generator.registerField(e("#item_youtubestart"))},s.prototype.getName=function(e){return e.youtubeurl},s.prototype.parseAll=function(t,i){var s=i.values.youtubeurl!=t.youtubeurl;if(NextendSmartSliderItemParser.prototype.parseAll.apply(this,arguments),""==t.image&&(t.image="$system$/images/placeholder/video.png"),t.image=nextend.imageHelper.fixed(t.image),s){var n=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,r=t.youtubeurl.match(n);r?NextendAjaxHelper.getJSON("https://www.googleapis.com/youtube/v3/videos?id="+encodeURI(r[2])+"&part=snippet&key=AIzaSyC3AolfvPAPlJs-2FgyPJdEEKS6nbPHdSM").done(e.proxy(function(t){if(t.items.length){var s=t.items[0].snippet.thumbnails,n=s.maxres||s.standard||s.high||s.medium||s["default"],a=n.url;"{video_url}"==i.values.youtubeurl&&(a=a.replace(r[2],"{video_id}")),e("#item_youtubeimage").val(a).trigger("change")}},this)).fail(function(e){nextend.notificationCenter.error(e.error.errors[0].message)}):nextend.notificationCenter.error("The provided URL does not match any known YouTube url or code!")}},s.prototype.fitLayer=function(e){return!0},s.prototype.render=function(e,t){return parseInt(t.playbutton)||e.find(".n2-video-play").remove(),e},t.NextendSmartSliderItemParser_youtube=s}(n2,window),function(e,t,i,s){function n(){this.property={},this.deviceProperty={}}n.prototype.getMode=function(){return this.layerEditor.getMode()},n.prototype.getProperty=function(e,t){if(e){var i=this.deviceProperty[this.getMode()],s=this.deviceProperty.desktopPortrait;if("undefined"!=typeof i[t])return i[t];if("undefined"!=typeof s[t])return s[t]}return this.property[t]},n.prototype.store=function(i,s,n,r){var a=this.property[s];if(this.property[s]=n,i){var o=this.getMode();e.history.add(t.proxy(function(){return[this,"store",n,this.deviceProperty[o][s],[this.layer,i,s,o]]},this)),this.deviceProperty[o][s]=n}else e.history.add(t.proxy(function(){return[this,"store",n,a,[this.layer,i,s,this.getMode()]]},this));r&&this.render(s,n)},n.prototype.storeWithModifier=function(i,s,n,r){this.property[i]=s;var a=this.getMode();e.history.add(t.proxy(function(){return[this,"storeWithModifier",s,this.deviceProperty[a][i],[this.layer,i,a]]},this)),this.deviceProperty[a][i]=s,r&&this.renderWithModifier(i,s,n)},n.prototype.render=function(e,t){this["_sync"+e](t)},n.prototype.renderWithModifier=function(e,t,i){this["_sync"+e](Math.round(t*i))},n.prototype.isDimensionPropertyAccepted=function(e){return!(!(e+"").match(/[0-9]+%/)&&"auto"!=e)},n.prototype.history=function(e,t,i){switch(e){case"store":var s=this.getMode();i[1]&&i[3]!=s?this.deviceProperty[i[3]][i[2]]=t:this[e](i[1],i[2],t,!0),this._renderModeProperties(!0);break;case"storeWithModifier":var s=this.getMode(),n=1;switch(i[1]){case"width":case"left":n=this.layerEditor.getResponsiveRatio("h");break;case"height":case"top":n=this.layerEditor.getResponsiveRatio("v")}i[2]==s?this[e](i[1],t,n,!0):this.deviceProperty[i[2]][i[1]]=t,this._renderModeProperties(!0)}},i.NextendSmartSliderLayerDataStorageAbtract=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e,i){"undefined"==typeof this.layer&&(this.layer=null),this.layerEditor=e,i||(i=a),this.group=i,this.layers=[],this.zIndexList=[],this.$=t(this),this.createLayer(),this.layerContainerElement=this.layer,this.createLayerRow(),r=r.add(this.layersItemsUlElement),this.layersItemsUlElement.sortable({axis:"y",helper:"clone",distance:10,placeholder:"sortable-placeholder",forcePlaceholderSize:!1,tolerance:"intersect",connectWith:r,items:".n2-ss-layer-row",connectWith:this.layerEditor.layersItemsElement.find("ul"),start:t.proxy(this.layersSortableStart,this),stop:t.proxy(this.layersSortableStop,this)}).appendTo(this.layerRow)}var r=t(),a={zIndexList:[],reIndexLayers:function(){}};n.prototype.addLayerBeforeInit=function(e,t){this.moveLayerToGroup(e,t)},n.prototype.lateInit=function(e,t){this.layers.length||e?this.zIndex=e-(t-1):this.zIndex=this.group.zIndexList.length,"undefined"==typeof this.group.zIndexList[this.zIndex]?this.group.zIndexList[this.zIndex]=this:this.group.zIndexList.splice(this.zIndex,0,this),this.group.reIndexLayers(),this.layers.length>0&&this.reIndexLayers()},n.prototype.startWithExistingNodes=function(){this.layer.find("> div").each(t.proxy(function(e,i){var s=t(i);switch(s.data("type")){case"group":var n=new NextendSmartSliderLayerGroup(this.layerEditor,this,s,[]);n.lateInit(),n.startWithExistingNodes();break;case"layer":var r=new NextendSmartSliderLayer(this.layerEditor,this,s,this.layerEditor.itemEditor);this.layers.push(r)}},this)),this.layers.length>0&&this.reIndexLayers()},n.prototype.getChildLayersRecursive=function(e){for(var t=[],i=0;i<this.zIndexList.length;i++)this.zIndexList[i]instanceof NextendSmartSliderLayer?e?t.push(this.zIndexList[i].layer[0]):t.push(this.zIndexList[i]):t.push.apply(t,this.zIndexList[i].getChildLayersRecursive(e));return t},n.prototype.moveLayerToGroup=function(e,t){this.moveLayersToGroup([e],[t])},n.prototype.moveLayersToGroup=function(e,i){for(var s=[],n=0;n<e.length;n++){var r=e[n],a=r.group;if(this.layers.push(r),r.setGroup(this,i[n]),this!=a){for(var o=a.layers.length;o--;)a.layers[o]==r&&a.layers.splice(o,1);-1==t.inArray(a,s)&&s.push(a)}}for(var n=0;n<s.length;n++)s[n].reIndexLayers();this.reIndexLayers()},n.prototype.reIndexLayers=function(){this.zIndexList=this.zIndexList.filter(function(e){return e!=s});for(var e=this.zIndexList.length-1;e>=0;e--)this.zIndexList[e].setZIndex(e)},n.prototype.layersSortableStart=function(e,t){t.item.show(),t.placeholder.html("<div></div>"),t.item.data("startindex",t.item.index())},n.prototype.layersSortableStop=function(i,s){var n=s.item.parent().data("container");if(n instanceof NextendSmartSliderLayerGroup&&s.item.hasClass("n2-ss-layer-group-row"))this.layersItemsUlElement.sortable("cancel");else{var r=this.zIndexList.length-t(s.item).data("startindex")-1,a=n.zIndexList.length-t(s.item).index()-1;if(n!=this){a++;var o=this.zIndexList[r];n.moveLayerToGroup(o,a),e.history.add(t.proxy(function(){return[n,"changeZIndexWithContainer",[o,a,this,n],[o,r,n,this],[]]},this))}else r!=a&&(n.zIndexList.splice(a,0,n.zIndexList.splice(r,1)[0]),n.reIndexLayers(),e.history.add(t.proxy(function(){return[n,"changeZIndex",[r,a],[a,r],[]]},this)))}},n.prototype.activateFirst=function(){this.zIndexList.length>0&&this.zIndexList[this.zIndexList.length-1].activate()},n.prototype.childDeleted=function(e){for(var t=0;t<this.layers.length;t++)if(this.layers[t]==e){this.layers.splice(t,1);break}this.zIndexList.splice(e.zIndex,1)},n.prototype.history=function(i,s,n){switch(i){case"changeZIndex":var r=s[0],a=s[1];this.zIndexList.splice(a,0,this.zIndexList.splice(r,1)[0]),this.reIndexLayers();break;case"changeZIndexWithContainer":var o=s[0],a=(s[2],s[1]),l=s[3];l.moveLayerToGroup(o,a);break;case"createGroup":switch(s){case"create":var d=n[0],h=new NextendSmartSliderLayerGroup(this.layerEditor,this.layerEditor.mainLayerGroup,!1);e.history.changeFuture(this,h),h.lateInit(d,0);break;case"delete":this["delete"]()}break;case"deleteGroup":switch(s){case"create":var h=new NextendSmartSliderLayerGroup(this.layerEditor,this.layerEditor.mainLayerGroup,!1,{data:t.extend(!0,{},n[0])});h.lateInit(),e.history.changeFuture(this,h),this.layerEditor.fixActiveLayer();break;case"delete":this["delete"]()}}},i.NextendSmartSliderLayerContainerAbstract=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e,i,s,n,a){if(this.status=h.UNDEFINED,this.isDeleted=!1,this._triggerLayerResizedThrottled=NextendThrottle(this._triggerLayerResized,30),this.doThrottledTheResize=this.doTheResize,this.parent=!1,this.parentIsVisible=!0,this.$=t(this),this.layerEditor=e,this.group=i,this.timelineLayer=null,s){this.property={id:s.attr("id"),"class":s.data("class"),parentid:s.data("parentid"),parentalign:s.data("desktopportraitparentalign"),parentvalign:s.data("desktopportraitparentvalign"),name:s.data("name")+"",nameSynced:s.data("namesynced"),crop:s.data("crop"),rotation:s.data("rotation"),inneralign:s.data("inneralign"),parallax:s.data("parallax"),align:s.data("desktopportraitalign"),valign:s.data("desktopportraitvalign"),fontsize:s.data("desktopportraitfontsize"),adaptivefont:s.data("adaptivefont"),generatorvisible:s.data("generatorvisible")||"",desktopPortrait:parseFloat(s.data("desktopportrait")),desktopLandscape:parseFloat(s.data("desktoplandscape")),tabletPortrait:parseFloat(s.data("tabletportrait")),tabletLandscape:parseFloat(s.data("tabletlandscape")),mobilePortrait:parseFloat(s.data("mobileportrait")),mobileLandscape:parseFloat(s.data("mobilelandscape")),left:parseInt(s.data("desktopportraitleft")),top:parseInt(s.data("desktopportraittop")),responsiveposition:parseInt(s.data("responsiveposition")),responsivesize:parseInt(s.data("responsivesize")),mouseenter:s.data("mouseenter"),click:s.data("click"),mouseleave:s.data("mouseleave"),play:s.data("play"),pause:s.data("pause"),stop:s.data("stop")};var o=s.data("desktopportraitwidth");this.isDimensionPropertyAccepted(o)?this.property.width=o:this.property.width=parseInt(o);var l=s.data("desktopportraitheight");this.isDimensionPropertyAccepted(l)?this.property.height=l:this.property.height=parseInt(l)}else s=t('<div class="n2-ss-layer" style="z-index: '+this.group.zIndexList.length+';"></div>').appendTo(this.group.layerContainerElement),this.property=t.extend({id:null,"class":"",parentid:null,parentalign:"center",parentvalign:"middle",name:"New layer",nameSynced:1,crop:"visible",rotation:0,inneralign:"left",parallax:0,align:"center",valign:"middle",fontsize:100,adaptivefont:0,generatorvisible:"",desktopPortrait:1,desktopLandscape:1,tabletPortrait:1,tabletLandscape:1,mobilePortrait:1,mobileLandscape:1,left:0,top:0,responsiveposition:1,width:"auto",height:"auto",responsivesize:1,mouseenter:r,click:r,mouseleave:r,play:r,pause:r,stop:r},a);this.layer=s,this.property.id||(this.property.id=null),this.subscribeParentCallbacks={},this.property.parentid?this.subscribeParent():this.property.parentid=null,this.property.parentalign||(this.property.parentalign="center"),this.property.parentvalign||(this.property.parentvalign="middle"),"undefined"==typeof this.property.nameSynced&&(this.property.nameSynced=1),"undefined"==typeof this.property.responsiveposition&&(this.property.responsiveposition=1),"undefined"==typeof this.property.responsivesize&&(this.property.responsivesize=1),this.property.inneralign||(this.property.inneralign="left"),this.property.crop||(this.property.crop="visible"),this.property.rotation||(this.property.rotation=0),this.property.parallax||(this.property.parallax=0),"undefined"==typeof this.property.fontsize&&(this.property.fontsize=100),"undefined"==typeof this.property.adaptivefont&&(this.property.adaptivefont=0),this.property.align||(this.property.align="left"),this.property.valign||(this.property.valign="top"),s.attr("data-align",this.property.align),s.attr("data-valign",this.property.valign),s.data("layerObject",this),s.css("visibility","hidden"),this.zIndex=parseInt(this.layer.css("zIndex")),isNaN(this.zIndex)&&(this.zIndex=0),this.deviceProperty={desktopPortrait:{left:this.property.left,top:this.property.top,width:this.property.width,height:this.property.height,align:this.property.align,valign:this.property.valign,parentalign:this.property.parentalign,parentvalign:this.property.parentvalign,fontsize:this.property.fontsize},desktopLandscape:{left:s.data("desktoplandscapeleft"),top:s.data("desktoplandscapetop"),width:s.data("desktoplandscapewidth"),height:s.data("desktoplandscapeheight"),align:s.data("desktoplandscapealign"),valign:s.data("desktoplandscapevalign"),parentalign:s.data("desktoplandscapeparentalign"),parentvalign:s.data("desktoplandscapeparentvalign"),fontsize:s.data("desktoplandscapefontsize")},tabletPortrait:{left:s.data("tabletportraitleft"),top:s.data("tabletportraittop"),width:s.data("tabletportraitwidth"),height:s.data("tabletportraitheight"),align:s.data("tabletportraitalign"),valign:s.data("tabletportraitvalign"),parentalign:s.data("tabletportraitparentalign"),parentvalign:s.data("tabletportraitparentvalign"),fontsize:s.data("tabletportraitfontsize")},tabletLandscape:{left:s.data("tabletlandscapeleft"),top:s.data("tabletlandscapetop"),width:s.data("tabletlandscapewidth"),height:s.data("tabletlandscapeheight"),align:s.data("tabletlandscapealign"),valign:s.data("tabletlandscapevalign"),parentalign:s.data("tabletlandscapeparentalign"),parentvalign:s.data("tabletlandscapeparentvalign"),fontsize:s.data("tabletlandscapefontsize")},mobilePortrait:{left:s.data("mobileportraitleft"),top:s.data("mobileportraittop"),width:s.data("mobileportraitwidth"),height:s.data("mobileportraitheight"),align:s.data("mobileportraitalign"),valign:s.data("mobileportraitvalign"),parentalign:s.data("mobileportraitparentalign"),parentvalign:s.data("mobileportraitparentvalign"),fontsize:s.data("mobileportraitfontsize")},mobileLandscape:{left:s.data("mobilelandscapeleft"),top:s.data("mobilelandscapetop"),width:s.data("mobilelandscapewidth"),height:s.data("mobilelandscapeheight"),align:s.data("mobilelandscapealign"),valign:s.data("mobilelandscapevalign"),parentalign:s.data("mobilelandscapeparentalign"),parentvalign:s.data("mobilelandscapeparentvalign"),fontsize:s.data("mobilelandscapefontsize")}},this.createRow(),this.itemEditor=n,this.initItems(),"left"!=this.property.inneralign&&this._syncinneralign(this.property.inneralign),this.property.rotation&&this._syncrotation(this.property.rotation),this.___makeLayerAlign(),this.___makeLayerResizeable(),this.___makeLayerDraggable();var d=null;this.chainParent=t('<div class="n2-ss-layer-chain-parent n2-button n2-button-icon n2-button-xs n2-radius-s n2-button-blue"><i class="n2-i n2-i-layerunlink"></i></div>').on({click:t.proxy(this.unlink,this),mouseenter:t.proxy(function(){d=t("#"+this.getProperty(!1,"parentid")).addClass("n2-highlight")},this),mouseleave:t.proxy(function(){d&&(d.removeClass("n2-highlight"),d=null)},this)}).appendTo(this.layer),e.layerList.push(this),"undefined"==typeof this.group.zIndexList[this.zIndex]?this.group.zIndexList[this.zIndex]=this:this.group.zIndexList.splice(this.zIndex,0,this),this.layerEditor.$.trigger("layerCreated",this),t(window).triggerHandler("layerCreated"),this.layer.on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerClicked"),click:t.proxy(this.activate,this),dblclick:t.proxy(function(){t('[data-tab="item"]').trigger("click"),this.items[0].itemEditor.focusFirst("dblclick")},this)});var p=s.data("status");null!==p&&"undefined"!=typeof p?this.changeStatus(p):this.changeStatus(h.NORMAL),setTimeout(t.proxy(function(){this._resize(!0),this.status!=h.HIDDEN&&this.layer.css("visibility","")},this),300)}window.nextendPreventClick=!1;var r,a=!1,o=function(){var e=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){var i,s=(new Date).getTime();return i=Math.max(0,16-(s-e)),e=s+i,setTimeout(function(){t(s+i)},i)}}(),l={raf:!1,ratios:null,isThrottled:!1,layers:[]},d=function(){l.raf===!1&&(l.raf=!0,o(function(){for(var e=0;e<l.layers.length;e++)l.layers[e].isDeleted||l.layers[e].doTheResize(l.ratios,!0,l.isThrottled);l={raf:!1,ratios:null,isThrottled:!1,layers:[]}}))},h={UNDEFINED:0,NORMAL:1,LOCKED:2,HIDDEN:3};n.prototype=Object.create(i.NextendSmartSliderLayerDataStorageAbtract.prototype),n.prototype.constructor=n,n.prototype.setGroup=function(e,t){e.layersItemsUlElement.append(this.layerRow),e.layerContainerElement.append(this.layer),this.group.zIndexList.splice(this.zIndex,1),this.group=e,"undefined"==typeof t&&(t=this.zIndex),"undefined"==typeof e.zIndexList[t]?e.zIndexList[t]=this:e.zIndexList.splice(t,0,this)},n.prototype.getIndex=function(){return this.layerEditor.layerList.indexOf(this)},n.prototype.getParent=function(){return t("#"+this.getProperty(!1,"parentid")).data("layerObject")},n.prototype.requestID=function(){var e=this.getProperty(!1,"id");return e||(e=t.fn.uid(),this.setProperty("id",e,"layer")),e},n.prototype.createRow=function(){var e=300,i=null,s=t('<div class="n2-ss-layer-status"></div>'),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this)),r=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Duplicate layer")+'"><i class="n2-i n2-i-duplicate n2-i-grey-opacity"></i></div>').on("click",t.proxy(function(){this.duplicate(!0,!1)},this));t('<a href="#" class="n2-ss-sc-hide n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-eye"></i></a>').appendTo(s).on("click",t.proxy(function(e){e.preventDefault(),this.status==h.HIDDEN||this.status==h.LOCKED?this.setStatusNormal():this.changeStatus(h.HIDDEN)},this)),this.layerRow=t('<li class="n2-ss-layer-row"></li>').data("layer",this).on({mouseenter:t.proxy(function(){this.layer.addClass("n2-highlight")},this),mouseleave:t.proxy(function(e){this.layer.removeClass("n2-highlight")},this),mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerRowClicked")}).appendTo(this.group.layersItemsUlElement),this.layerTitleSpan=t('<span class="n2-ucf">'+this.property.name+"</span>").on({mouseup:t.proxy(function(s){i?(clearTimeout(i),i=null,this.editName()):(this.activate(s),i=setTimeout(t.proxy(function(){i=null},this),e))},this)}),this.layerTitle=t('<div class="n2-ss-layer-title"></div>').append(this.layerTitleSpan).append(t('<div class="n2-actions-left"></div>').append(s)).append(t('<div class="n2-actions"></div>').append(r).append(n)).appendTo(this.layerRow).on({mouseup:t.proxy(function(e){"DIV"===e.target.tagName&&this.activate(e)},this)}),nextend.tooltip.add(this.layerRow)},n.prototype.editName=function(){var e=new NextendSmartSliderAdminInlineField;e.$input.on({valueChanged:t.proxy(function(e,t){this.rename(t,!0),this.layerTitleSpan.css("display","inline")},this),cancel:t.proxy(function(){this.layerTitleSpan.css("display","inline")},this)}),this.layerTitleSpan.css("display","none"),e.injectNode(this.layerTitle,this.property.name)},n.prototype.rename=function(e,t){if(this.property.nameSynced||t){if(t&&(this.property.nameSynced=0),""==e){if(t&&(this.property.nameSynced=1,this.items.length))return this.items[0].reRender(),!1;e="Layer #"+(this.layerEditor.layerList.length+1)}e=e.substr(0,35),this.property.name!=e&&(this.property.name=e,this.layerTitleSpan.html(e),this.$.trigger("layerRenamed",e))}},n.prototype.setZIndex=function(e){this.zIndex=e,this.layer.css("zIndex",e),this.group.layersItemsUlElement.append(this.layerRow),this.$.trigger("layerIndexed",e)},n.prototype.select=function(e){
5
+ this.layerEditor.selectLayer(this,!0)},n.prototype.positionSidebar=function(){this.layerEditor.panel.show(this,this.layer)},n.prototype.showEditor=function(){this.layerEditor.panel._show()},n.prototype.activate=function(e,t,i){if(!a){if(document.activeElement&&document.activeElement.blur(),e&&(e.ctrlKey||e.metaKey)&&this.layerEditor.layerList[this.layerEditor.activeLayerIndex])return void this.select();if(!e||3!=e.which||!this.layerEditor.selectMode){i||this.layerEditor.exitSelectMode(),e&&this.positionSidebar(),0==this.items.length?console.error("The layer do not have item on it!"):this.items[0].activate(null,t);var s=this.getIndex();this.layerEditor.activeLayerIndex!==s&&(this.layerRow.addClass("n2-active"),this.layer.addClass("n2-active"),this.layer.triggerHandler("n2-ss-activate"),this.layerEditor.changeActiveLayer(s,i),nextend.activeLayer=this.layer,this.layerEditor.ui.onActivateLayer(this))}}},n.prototype.deActivate=function(){this.layer.removeClass("n2-active"),this.layerRow.removeClass("n2-active"),this.layer.triggerHandler("n2-ss-deactivate")},n.prototype.fit=function(){var e=this.layer.get(0);this.layerEditor.slideSize,this.layer.position();if(e.scrollWidth>0&&e.scrollHeight>0){for(var t=!1,i=0;i<this.items.length&&!(t=this.items[i].parser.fitLayer(this.items[i]));i++);if(!t){this.setProperty("width","auto","layer"),this.setProperty("height","auto","layer");var s=this.layer.width();Math.abs(this.layerEditor.layerContainerElement.width()-this.layer.position().left-s)<2&&this.setProperty("width",s,"layer")}}},n.prototype.hide=function(e){this.store(!1,e?e:this.getMode(),0,!0)},n.prototype.show=function(e){this.store(!1,e?e:this.getMode(),1,!0)},n.prototype.changeStatus=function(e){switch(e==this.status&&(e=h.NORMAL),this.status){case h.HIDDEN:this.layer.css("visibility",""),this.layerRow.removeClass("n2-ss-layer-status-hidden");break;case h.LOCKED:this.layer.nextenddraggable("enable"),this.layer.nextendResizable("enable"),this.layer.removeClass("n2-ss-layer-locked"),this.layerRow.removeClass("n2-ss-layer-status-locked")}switch(this.status=e,this.status){case h.HIDDEN:this.layer.css("visibility","hidden"),this.layerRow.addClass("n2-ss-layer-status-hidden");break;case h.LOCKED:this.layer.nextenddraggable("disable"),this.layer.nextendResizable("disable"),this.layer.addClass("n2-ss-layer-locked"),this.layerRow.addClass("n2-ss-layer-status-locked")}},n.prototype.setStatusNormal=function(){this.changeStatus(h.NORMAL)},n.prototype._hide=function(){this.layer.css("display","none")},n.prototype._show=function(){parseInt(this.property[this.layerEditor.getMode()])&&this.layer.css("display","block")},n.prototype.duplicate=function(i,s,n){var r=this.getHTML(!0,!1),a=r.attr("id");a&&(a=t.fn.uid(),r.attr("id",a)),s&&r.attr("data-parentid",s),a||s||(r.data("desktopportraittop",r.data("desktopportraittop")+40),r.data("desktopportraitleft",r.data("desktopportraitleft")+40));var o=this.layerEditor._addLayer(this.group,r,!0);"undefined"==typeof n?n=[]:n.push(o),this.layer.triggerHandler("LayerDuplicated",[a,n]),this.layerRow.trigger("mouseleave"),i&&o.activate(),s||e.history.add(t.proxy(function(){return[this,"duplicateLayer","duplicate","delete",[o]]},this))},n.prototype["delete"]=function(i,s){this.layerEditor.getSelectedLayer()==this&&this.layerEditor.panel.hide(),e.history.add(t.proxy(function(){return[this,"deleteLayer","delete","create",[this.group,this.getData({layersIncluded:!0,itemsIncluded:!0})]]},this)),this.deActivate();for(var n=0;n<this.items.length;n++)this.items[n]["delete"]();this.group.childDeleted(this);var r=this.getProperty(!1,"parentid");r&&this.unSubscribeParent(!0),this.layer.trigger("mouseup"),this.isDeleted=!0,this.layerEditor.layerDeleted(this.getIndex()),"undefined"==typeof s?s=[]:s.push(this),this.layer.triggerHandler("LayerDeleted",["undefined"!=typeof i?i:!1,s]),this.layer.remove(),this.layerRow.remove(),this.$.trigger("layerDeleted"),delete this.layer,delete this.itemEditor},n.prototype.getHTML=function(e,i){var s=t('<div class="n2-ss-layer"></div>').attr("style",this.getStyleText());for(var n in this.property)"width"!=n&&"height"!=n&&"left"!=n&&"top"!=n&&s.attr("data-"+n.toLowerCase(),this.property[n]);for(var n in this.deviceProperty)for(var r in this.deviceProperty[n])s.attr("data-"+n.toLowerCase()+r,this.deviceProperty[n][r]);s.css({position:"absolute",zIndex:this.zIndex+1});for(var n in this.deviceProperty.desktop)s.css(n,this.deviceProperty.desktop[n]+"px");if(e)for(var a=0;a<this.items.length;a++)s.append(this.items[a].getHTML(i));var o=this.getProperty(!1,"id");return o&&""!=o&&s.attr("id",o),this.status>h.NORMAL&&s.attr("data-status",this.status),s},n.prototype.getData=function(e){var t={zIndex:this.zIndex+1};this.status>h.NORMAL&&(t.status=this.status);for(var i in this.property)switch(i){case"width":case"height":case"left":case"top":case"align":case"valign":case"parentalign":case"parentvalign":case"fontsize":break;default:t[i.toLowerCase()]=this.property[i]}for(var s in this.deviceProperty)for(var n in this.deviceProperty[s]){var r=this.deviceProperty[s][n];"undefined"!=typeof r&&("width"==n&&this.isDimensionPropertyAccepted(r)||"height"==n&&this.isDimensionPropertyAccepted(r)||"align"==n||"valign"==n||"parentalign"==n||"parentvalign"==n||(r=parseFloat(r)),t[s.toLowerCase()+n]=r)}if(e.itemsIncluded){t.items=[];for(var a=0;a<this.items.length;a++)t.items.push(this.items[a].getData())}return t},n.prototype.getDataWithChildren=function(e){return e.push(this.getData({layersIncluded:!0,itemsIncluded:!0})),this.layer.triggerHandler("LayerGetDataWithChildren",[e]),e},n.prototype.initItems=function(){this.items=[];for(var e=this.layer.find(".n2-ss-item"),t=0;t<e.length;t++)this.addItem(e.eq(t),!1)},n.prototype.addItem=function(e,t){t&&e.appendTo(this.layer),new NextendSmartSliderItem(e,this,this.itemEditor)},n.prototype.rename=function(e,t){if(this.property.nameSynced||t){if(t&&(this.property.nameSynced=0),""==e){if(t&&(this.property.nameSynced=1,this.items.length))return this.items[0].reRender(),!1;e="Layer #"+(this.layerEditor.layerList.length+1)}e=e.substr(0,35),this.property.name!=e&&(this.property.name=e,this.layerTitleSpan.html(e),this.$.trigger("layerRenamed",e))}},n.prototype.setProperty=function(e,t,i){switch(e){case"responsiveposition":case"responsivesize":t=parseInt(t);case"id":case"parentid":case"class":case"inneralign":case"crop":case"rotation":case"parallax":case"adaptivefont":case"generatorvisible":case"mouseenter":case"click":case"mouseleave":case"play":case"pause":case"stop":this.store(!1,e,t,!0);break;case"parentalign":case"parentvalign":case"align":case"valign":case"fontsize":this.store(!0,e,t,!0);break;case"width":var s=this.layerEditor.getResponsiveRatio("h");parseInt(this.getProperty(!1,"responsivesize"))||(s=1);var n=t;this.isDimensionPropertyAccepted(t)||(n=~~t,n!=t&&this.$.trigger("propertyChanged",[e,n])),this.storeWithModifier(e,n,s,!0),this._resize(!1);break;case"height":var r=this.layerEditor.getResponsiveRatio("v");parseInt(this.getProperty(!1,"responsivesize"))||(r=1);var n=t;this.isDimensionPropertyAccepted(t)||(n=~~t,n!=t&&this.$.trigger("propertyChanged",[e,n])),this.storeWithModifier(e,n,r,!0),this._resize(!1);break;case"left":var a=this.layerEditor.getResponsiveRatio("h");parseInt(this.getProperty(!1,"responsiveposition"))||(a=1);var n=~~t;n!=t&&this.$.trigger("propertyChanged",[e,n]),this.storeWithModifier(e,n,a,!0);break;case"top":var o=this.layerEditor.getResponsiveRatio("v");parseInt(this.getProperty(!1,"responsiveposition"))||(o=1);var n=~~t;n!=t&&this.$.trigger("propertyChanged",[e,n]),this.storeWithModifier(e,n,o,!0);break;case"showFieldDesktopPortrait":this.store(!1,"desktopPortrait",parseInt(t),!0);break;case"showFieldDesktopLandscape":this.store(!1,"desktopLandscape",parseInt(t),!0);break;case"showFieldTabletPortrait":this.store(!1,"tabletPortrait",parseInt(t),!0);break;case"showFieldTabletLandscape":this.store(!1,"tabletLandscape",parseInt(t),!0);break;case"showFieldMobilePortrait":this.store(!1,"mobilePortrait",parseInt(t),!0);break;case"showFieldMobileLandscape":this.store(!1,"mobileLandscape",parseInt(t),!0)}"manager"!=i&&this.$.trigger("propertyChanged",[e,t])},n.prototype.render=function(e,t){this["_sync"+e](t)},n.prototype.renderWithModifier=function(e,t,i){"width"!=e&&"height"!=e||!this.isDimensionPropertyAccepted(t)?this["_sync"+e](Math.round(t*i)):this["_sync"+e](t)},n.prototype._syncclass=function(e){this.layer.removeClass(),this.layer.addClass("n2-ss-layer"),e&&""!=e&&this.layer.addClass(e)},n.prototype._syncid=function(e){e&&""!=e?this.layer.attr("id",e):this.layer.removeAttr("id")},n.prototype.subscribeParent=function(){var e=this;this.subscribeParentCallbacks={LayerResized:function(){e.resizeParent.apply(e,arguments)},LayerParent:function(){e.layer.addClass("n2-ss-layer-parent"),e.layer.triggerHandler("LayerParent")},LayerUnParent:function(){e.layer.removeClass("n2-ss-layer-parent"),e.layer.triggerHandler("LayerUnParent")},LayerDeleted:function(t,i,s){i?e["delete"](i,s):e.setProperty("parentid","","layer")},LayerDuplicated:function(t,i,s){e.duplicate(!1,i,s)},LayerShowChange:function(t,i,s){e.getMode()==i&&(e.parentIsVisible=s)},"n2-ss-activate":function(){e.layerRow.addClass("n2-parent-active")},"n2-ss-deactivate":function(){e.layerRow.removeClass("n2-parent-active")},LayerGetDataWithChildren:function(t,i){e.getDataWithChildren(i)}},this.parent=n2("#"+this.property.parentid).on(this.subscribeParentCallbacks),this.layer.addClass("n2-ss-layer-has-parent")},n.prototype.unSubscribeParent=function(e){if(this.layerRow.removeClass("n2-parent-active"),this.layer.removeClass("n2-ss-layer-has-parent"),this.parent&&this.parent.off(this.subscribeParentCallbacks),this.parent=!1,this.subscribeParentCallbacks={},!e){var t=this.layer.position();this.setPosition(t.left,t.top)}},n.prototype.unlink=function(e){e&&e.preventDefault(),this.setProperty("parentid","","layer")},n.prototype.parentPicked=function(e,t,i,s,n){this.setProperty("parentid","","layer"),this.setProperty("align",s,"layer"),this.setProperty("valign",n,"layer"),this.setProperty("parentalign",t,"layer"),this.setProperty("parentvalign",i,"layer"),this.setProperty("parentid",e.requestID(),"layer");var r;for(var a in this.deviceProperty)"desktopPortrait"!=a&&(this.deviceProperty[a].left=r,this.deviceProperty[a].top=r,this.deviceProperty[a].valign=r,this.deviceProperty[a].align=r)},n.prototype._syncparentid=function(e){e&&""!=e?0==t("#"+e).length?this.setProperty("parentid","","layer"):(this.layer.attr("data-parentid",e).addClass("n2-ss-layer-has-parent"),this.subscribeParent(),this.setPosition(this.layer.position().left,this.layer.position().top)):(this.layer.removeAttr("data-parentid"),this.unSubscribeParent(!1))},n.prototype._syncparentalign=function(e){this.layer.data("parentalign",e);var t=this.getParent();t&&t._resize(!1)},n.prototype._syncparentvalign=function(e){this.layer.data("parentvalign",e);var t=this.getParent();t&&t._resize(!1)},n.prototype._syncinneralign=function(e){this.layer.css("text-align",e)},n.prototype._synccrop=function(e){"auto"==e&&(e="hidden");var i=this.layer.find("> .n2-ss-layer-mask");if("mask"==e){if(e="hidden",!i.length){i=t("<div class='n2-ss-layer-mask'></div>").appendTo(this.layer);var s=this.layer.find(".n2-ss-layer-rotation");if(s.length)s.appendTo(i);else for(var n=0;n<this.items.length;n++)i.append(this.items[n].item)}}else if(i.length){var s=this.layer.find(".n2-ss-layer-rotation");if(s.length)s.appendTo(this.layer);else for(var n=0;n<this.items.length;n++)this.layer.append(this.items[n].item);i.remove()}this.layer.css("overflow",e)},n.prototype._syncrotation=function(e){var i=this.layer.find(".n2-ss-layer-rotation");if(0!=e){if(!i.length){i=t("<div class='n2-ss-layer-rotation'></div>").appendTo(this.layer.find(".n2-ss-layer-mask").addBack().last());for(var s=0;s<this.items.length;s++)i.append(this.items[s].item)}NextendTween.set(i[0],{rotationZ:e}),this.layer.data("rotation",e)}else{if(i.length){for(var s=0;s<this.items.length;s++)this.layer.find(".n2-ss-layer-mask").addBack().last().append(this.items[s].item);i.remove()}else NextendTween.set(i,{rotationZ:0});this.layer.data("rotation",0)}},n.prototype._syncparallax=function(e){},n.prototype._syncalign=function(e,t){"undefined"!==t&&e!=t&&this.setPosition(this.layer.position().left,this.layer.position().top),this.layer.attr("data-align",e)},n.prototype._syncvalign=function(e,t){"undefined"!==t&&e!=t&&this.setPosition(this.layer.position().left,this.layer.position().top),this.layer.attr("data-valign",e)},n.prototype._syncfontsize=function(e){this.adjustFontSize(this.getProperty(!1,"adaptivefont"),e,!0)},n.prototype._syncadaptivefont=function(e){this.adjustFontSize(e,this.getProperty(!0,"fontsize"),!0)},n.prototype.adjustFontSize=function(e,t,i){t=parseInt(t),parseInt(e)?this.layer.css("font-size",nextend.smartSlider.frontend.sliderElement.data("fontsize")*t/100+"px"):100!=t?this.layer.css("font-size",t+"%"):this.layer.css("font-size",""),i&&this.update()},n.prototype._syncgeneratorvisible=function(e){},n.prototype._syncleft=function(e){if(this.parent&&this.parentIsVisible){var t=this.parent.position(),i=this.getProperty(!0,"align"),s=this.getProperty(!0,"parentalign"),n=0;switch(s){case"right":n=t.left+this.parent.width();break;case"center":n=t.left+this.parent.width()/2;break;default:n=t.left}switch(i){case"right":this.layer.css({left:"auto",right:this.layer.parent().width()-n-e+"px"});break;case"center":this.layer.css({left:n+e-this.layer.width()/2+"px",right:"auto"});break;default:this.layer.css({left:n+e+"px",right:"auto"})}}else switch(this.getProperty(!0,"align")){case"right":this.layer.css({left:"auto",right:-e+"px"});break;case"center":this.layer.css({left:this.layer.parent().width()/2+e-this.layer.width()/2+"px",right:"auto"});break;default:this.layer.css({left:e+"px",right:"auto"})}this.triggerLayerResized()},n.prototype._synctop=function(e){if(this.parent&&this.parentIsVisible){var t=this.parent.position(),i=this.getProperty(!0,"valign"),s=this.getProperty(!0,"parentvalign"),n=0;switch(s){case"bottom":n=t.top+this.parent.height();break;case"middle":n=t.top+this.parent.height()/2;break;default:n=t.top}switch(i){case"bottom":this.layer.css({top:"auto",bottom:this.layer.parent().height()-n-e+"px"});break;case"middle":this.layer.css({top:n+e-this.layer.height()/2+"px",bottom:"auto"});break;default:this.layer.css({top:n+e+"px",bottom:"auto"})}}else switch(this.getProperty(!0,"valign")){case"bottom":this.layer.css({top:"auto",bottom:-e+"px"});break;case"middle":this.layer.css({top:this.layer.parent().height()/2+e-this.layer.height()/2+"px",bottom:"auto"});break;default:this.layer.css({top:e+"px",bottom:"auto"})}this.triggerLayerResized()},n.prototype._syncresponsiveposition=function(e){this._resize(!1)},n.prototype._syncwidth=function(e){this.layer.css("width",e+(this.isDimensionPropertyAccepted(e)?"":"px"))},n.prototype._syncheight=function(e){this.layer.css("height",e+(this.isDimensionPropertyAccepted(e)?"":"px"))},n.prototype._syncresponsivesize=function(e){this._resize(!1)},n.prototype._syncdesktopPortrait=function(e){this.__syncShowOnDevice("desktopPortrait",e)},n.prototype._syncdesktopLandscape=function(e){this.__syncShowOnDevice("desktopLandscape",e)},n.prototype._synctabletPortrait=function(e){this.__syncShowOnDevice("tabletPortrait",e)},n.prototype._synctabletLandscape=function(e){this.__syncShowOnDevice("tabletLandscape",e)},n.prototype._syncmobilePortrait=function(e){this.__syncShowOnDevice("mobilePortrait",e)},n.prototype._syncmobileLandscape=function(e){this.__syncShowOnDevice("mobileLandscape",e)},n.prototype.__syncShowOnDevice=function(e,t){if(this.getMode()==e){var t=parseInt(t);t?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[e,t]),this.triggerLayerResized()}},n.prototype._syncmouseenter=n.prototype._syncclick=n.prototype._syncmouseleave=n.prototype._syncplay=n.prototype._syncpause=n.prototype._syncstop=function(){},n.prototype.___makeLayerAlign=function(){t('<div class="n2-ss-layer-border" />').prependTo(this.layer),this.alignMarker=t('<div class="n2-ss-layer-cc" />').appendTo(this.layer)},n.prototype.___makeLayerResizeable=function(){this._resizableJustClick=!1,this.layer.nextendResizable({handles:"n, e, s, w, ne, se, sw, nw",_containment:this.layerEditor.layerContainerElement,start:t.proxy(this.____makeLayerResizeableStart,this),resize:t.proxy(this.____makeLayerResizeableResize,this),stop:t.proxy(this.____makeLayerResizeableStop,this),create:t.proxy(function(){this.layer.find(".ui-resizable-handle, .n2-ss-layer-cc").on({mousedown:t.proxy(function(e){this._resizableJustClick=[e.clientX,e.clientY]},this),mouseup:t.proxy(function(e){if(this._resizableJustClick&&Math.abs(Math.sqrt(Math.pow(this._resizableJustClick[0]-e.clientX,2)+Math.pow(this._resizableJustClick[1]-e.clientY,2)))<1){$target=t(e.currentTarget);var i=this.layerEditor.sidebar.layerFeatures;$target.hasClass("ui-resizable-nw")?(i.horizontalAlign("left",!1),i.verticalAlign("top",!1)):$target.hasClass("ui-resizable-w")?(i.horizontalAlign("left",!1),i.verticalAlign("middle",!1)):$target.hasClass("ui-resizable-sw")?(i.horizontalAlign("left",!1),i.verticalAlign("bottom",!1)):$target.hasClass("ui-resizable-n")?(i.horizontalAlign("center",!1),i.verticalAlign("top",!1)):$target.hasClass("n2-ss-layer-cc")?(i.horizontalAlign("center",!1),i.verticalAlign("middle",!1)):$target.hasClass("ui-resizable-s")?(i.horizontalAlign("center",!1),i.verticalAlign("bottom",!1)):$target.hasClass("ui-resizable-ne")?(i.horizontalAlign("right",!1),i.verticalAlign("top",!1)):$target.hasClass("ui-resizable-e")?(i.horizontalAlign("right",!1),i.verticalAlign("middle",!1)):$target.hasClass("ui-resizable-se")&&(i.horizontalAlign("right",!1),i.verticalAlign("bottom",!1))}this._resizableJustClick=!1},this)})},this),smartguides:t.proxy(function(){return this.layer.triggerHandler("LayerParent"),this.layerEditor.getSnap()},this),tolerance:5}).on({mousedown:t.proxy(function(e){!this.status!=h.LOCKED&&this.layerEditor.positionDisplay.css({left:e.pageX+10,top:e.pageY+10}).html("W: "+parseInt(this.layer.width())+"px<br />H: "+parseInt(this.layer.height())+"px").addClass("n2-active"),document.activeElement&&document.activeElement.blur()},this),mouseup:t.proxy(function(e){this.layerEditor.positionDisplay.removeClass("n2-active")},this)})},n.prototype.____makeLayerResizeableStart=function(e,i){a=!0,this.resizableDeferred=t.Deferred(),this.layerEditor.panel.hideWithDeferred(this.resizableDeferred),t("body").addClass("n2-ss-resize-layer"),this._resizableJustClick&&(this._resizableJustClick=!1),this.____makeLayerResizeableResize(e,i),this.layerEditor.positionDisplay.addClass("n2-active")},n.prototype.____makeLayerResizeableResize=function(e,t){this.layerEditor.positionDisplay.css({left:e.pageX+10,top:e.pageY+10}).html("W: "+t.size.width+"px<br />H: "+t.size.height+"px"),this.triggerLayerResized()},n.prototype.____makeLayerResizeableStop=function(e,i){window.nextendPreventClick=!0,setTimeout(function(){window.nextendPreventClick=!1},50),t("body").removeClass("n2-ss-resize-layer"),this.resizableDeferred.resolve();var s=!1;if(i.originalSize.width==i.size.width){var n=this.getProperty(!0,"width");this.isDimensionPropertyAccepted(n)&&(s=!0,this._syncwidth(n))}var r=!1;if(i.originalSize.height==i.size.height){var n=this.getProperty(!0,"height");this.isDimensionPropertyAccepted(n)&&(r=!0,this._syncheight(n))}this.setPosition(i.position.left,i.position.top);var o=this.layerEditor.getResponsiveRatio("h"),l=this.layerEditor.getResponsiveRatio("v");if(parseInt(this.getProperty(!1,"responsivesize"))||(o=l=1),!s){var d=Math.round(i.size.width*(1/o));this.storeWithModifier("width",d,o,!1),this.$.trigger("propertyChanged",["width",d])}if(!r){var d=Math.round(i.size.height*(1/l));this.storeWithModifier("height",d,l,!1),this.$.trigger("propertyChanged",["height",d])}this.triggerLayerResized(),this.layer.triggerHandler("LayerUnParent"),this.layerEditor.positionDisplay.removeClass("n2-active"),setTimeout(function(){a=!1},80)},n.prototype.___makeLayerDraggable=function(){this.layer.nextenddraggable({_containment:this.layerEditor.layerContainerElement,start:t.proxy(this.____makeLayerDraggableStart,this),drag:t.proxy(this.____makeLayerDraggableDrag,this),stop:t.proxy(this.____makeLayerDraggableStop,this),smartguides:t.proxy(function(){return this.layer.triggerHandler("LayerParent"),this.layerEditor.getSnap()},this),tolerance:5})},n.prototype.____makeLayerDraggableStart=function(e,i){a=!0,this.draggableDeferred=t.Deferred(),this.layerEditor.panel.hideWithDeferred(this.draggableDeferred),t("body").addClass("n2-ss-move-layer"),this.layerEditor.draggableStart(i),this.____makeLayerDraggableDrag(e,i),this.layerEditor.positionDisplay.addClass("n2-active");var s=this.getProperty(!0,"width");this.isDimensionPropertyAccepted(s)&&this.layer.width(this.layer.width()+.5);var s=this.getProperty(!0,"height");this.isDimensionPropertyAccepted(s)&&this._syncheight(s)},n.prototype.____makeLayerDraggableDrag=function(e,t){this.layerEditor.positionDisplay.css({left:e.pageX+10,top:e.pageY+10}).html("L: "+parseInt(0|t.position.left)+"px<br />T: "+parseInt(0|t.position.top)+"px"),this.triggerLayerResized(),this.layerEditor.draggableDrag(t)},n.prototype.____makeLayerDraggableStop=function(e,i){window.nextendPreventClick=!0,setTimeout(function(){window.nextendPreventClick=!1},50),t("body").removeClass("n2-ss-move-layer"),this.draggableDeferred.resolve(),this.setPosition(i.position.left,i.position.top);var s=this.getProperty(!0,"width");this.isDimensionPropertyAccepted(s)&&this._syncwidth(s);var s=this.getProperty(!0,"height");this.isDimensionPropertyAccepted(s)&&this._syncheight(s),this.triggerLayerResized(),this.layer.triggerHandler("LayerUnParent"),this.layerEditor.positionDisplay.removeClass("n2-active");var n=this.layerEditor.draggableStop(i);n?setTimeout(function(){a=!1},80):(a=!1,this.activate(e))},n.prototype.moveX=function(e){this.setDeviceBasedAlign(),this.setProperty("left",this.getProperty(!0,"left")+e,"layer"),this.triggerLayerResized()},n.prototype.moveY=function(e){this.setDeviceBasedAlign(),this.setProperty("top",this.getProperty(!0,"top")+e,"layer"),this.triggerLayerResized()},n.prototype.setPosition=function(e,t){var i=this.layerEditor.getResponsiveRatio("h"),s=this.layerEditor.getResponsiveRatio("v");parseInt(this.getProperty(!1,"responsiveposition"))||(i=s=1),this.setDeviceBasedAlign();var n=this.parent,r={left:0,leftMultiplier:1,top:0,topMultiplier:1};if(n&&n.is(":visible")){var a=n.position();switch(this.getProperty(!0,"parentalign")){case"right":r.left=a.left+n.width();break;case"center":r.left=a.left+n.width()/2;break;default:r.left=a.left}switch(this.getProperty(!0,"parentvalign")){case"bottom":r.top=a.top+n.height();break;case"middle":r.top=a.top+n.height()/2;break;default:r.top=a.top}}else{switch(n=this.layer.parent(),this.getProperty(!0,"align")){case"center":r.left+=n.width()/2;break;case"right":r.left+=n.width()}switch(this.getProperty(!0,"valign")){case"middle":r.top+=n.height()/2;break;case"bottom":r.top+=n.height()}}var e,o=!1;switch(this.getProperty(!0,"align")){case"left":e=-Math.round((r.left-e)*(1/i));break;case"center":e=-Math.round((r.left-e-this.layer.width()/2)*(1/i));break;case"right":e=-Math.round((r.left-e-this.layer.width())*(1/i)),o=!0}this.storeWithModifier("left",e,i,o),this.$.trigger("propertyChanged",["left",e]);var t,o=!1;switch(this.getProperty(!0,"valign")){case"top":t=-Math.round((r.top-t)*(1/s));break;case"middle":t=-Math.round((r.top-t-this.layer.height()/2)*(1/s));break;case"bottom":t=-Math.round((r.top-t-this.layer.height())*(1/s)),o=!0}this.storeWithModifier("top",t,s,o),this.$.trigger("propertyChanged",["top",t])},n.prototype.setDeviceBasedAlign=function(){var e=this.getMode();"undefined"==typeof this.deviceProperty[e].align&&this.setProperty("align",this.getProperty(!0,"align"),"layer"),"undefined"==typeof this.deviceProperty[e].valign&&this.setProperty("valign",this.getProperty(!0,"valign"),"layer")},n.prototype.snap=function(){this.layer.nextendResizable("option","smartguides",t.proxy(function(){return this.layer.triggerHandler("LayerParent"),this.layerEditor.getSnap()},this)),this.layer.nextenddraggable("option","smartguides",t.proxy(function(){return this.layer.triggerHandler("LayerParent"),this.layerEditor.getSnap()},this))},n.prototype.changeEditorMode=function(e){var t=parseInt(this.property[e]);t?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[e,t]),this._renderModeProperties(!1)},n.prototype.resetMode=function(i,s){if("desktopPortrait"!=i){var n;e.history.add(t.proxy(function(){return[this,"resetMode","reset","restore",[i,t.extend({},this.deviceProperty[i])]]},this));for(var r in this.property)this.deviceProperty[i][r]=n;i==s&&this._renderModeProperties(!0)}},n.prototype.restoreMode=function(e,i,s){"desktopPortrait"!=e&&(this.deviceProperty[e]=t.extend({},s),e==i&&this._renderModeProperties(!0))},n.prototype._renderModeProperties=function(e){for(var t in this.property)this.property[t]=this.getProperty(!0,t),this.$.trigger("propertyChanged",[t,this.property[t]]);var i=this.getProperty(!0,"fontsize");this.adjustFontSize(this.getProperty(!1,"adaptivefont"),i,!1),this.layer.attr("data-align",this.property.align),this.layer.attr("data-valign",this.property.valign),e&&this._resize(!0)},n.prototype.copyMode=function(e,i){e!=i&&(this.deviceProperty[i]=t.extend({},this.deviceProperty[i],this.deviceProperty[e]))},n.prototype._resize=function(e){this.resize({slideW:this.layerEditor.getResponsiveRatio("h"),slideH:this.layerEditor.getResponsiveRatio("v")},e)},n.prototype.doLinearResize=function(e){this.doThrottledTheResize(e,!0)},n.prototype.resize=function(e,t){this.parent&&!t||this.addToResizeCollection(this,e,!1)},n.prototype.doTheResize=function(e,t,i){var s=e.slideW,n=s,r=e.slideH,a=r;parseInt(this.getProperty(!1,"responsivesize"))||(n=a=1),this.renderWithModifier("width",this.getProperty(!0,"width"),n),this.renderWithModifier("height",this.getProperty(!0,"height"),a),parseInt(this.getProperty(!1,"responsiveposition"))||(s=r=1),this.renderWithModifier("left",this.getProperty(!0,"left"),s),this.renderWithModifier("top",this.getProperty(!0,"top"),r),t||this.triggerLayerResized(i,e)},n.prototype.resizeParent=function(e,t,i){this.addToResizeCollection(this,t,i)},n.prototype.addToResizeCollection=function(e,t,i){l.ratios=t,l.isThrottled=i;for(var s=0;s<l.layers.length;s++)if(l.layers[s]==this){l.layers.splice(s,1);break}l.layers.push(e),d(),this.triggerLayerResized(i,t)},n.prototype.update=function(){var e=this.parent;if("center"==this.getProperty(!0,"align")){var t=0;t=e?e.position().left+e.width()/2:this.layer.parent().width()/2;var i=this.layerEditor.getResponsiveRatio("h");parseInt(this.getProperty(!1,"responsiveposition"))||(i=1),this.layer.css("left",t-this.layer.width()/2+this.getProperty(!0,"left")*i)}if("middle"==this.getProperty(!0,"valign")){var s=0;s=e?e.position().top+e.height()/2:this.layer.parent().height()/2;var i=this.layerEditor.getResponsiveRatio("v");parseInt(this.getProperty(!1,"responsiveposition"))||(i=1),this.layer.css("top",s-this.layer.height()/2+this.getProperty(!0,"top")*i)}this.triggerLayerResized()},n.prototype.triggerLayerResized=function(e,t){e?this._triggerLayerResized(e,t):this._triggerLayerResizedThrottled(!0,t)},n.prototype._triggerLayerResized=function(e,t){this.isDeleted||this.layer.triggerHandler("LayerResized",[t||{slideW:this.layerEditor.getResponsiveRatio("h"),slideH:this.layerEditor.getResponsiveRatio("v")},e||!1])},n.prototype.getStyleText=function(){var e="",t=this.property.crop;return"auto"!=t&&"mask"!=t||(t="hidden"),e+="overflow:"+t+";",e+="text-align:"+this.property.inneralign+";"},n.prototype.nextLayer=function(){var e=this.zIndex-1;0>e||"undefined"==typeof this.group.zIndexList[e]?this.group.nextLayer():this.group.zIndexList[e].activate()},n.prototype.previousLayer=function(){var e=this.zIndex+1;e>this.group.zIndexList.length-1||"undefined"==typeof this.group.zIndexList[e]?this.group.previousLayer():this.group.zIndexList[e].activate()},n.prototype.history=function(i,s,n,r){switch(NextendSmartSliderLayerDataStorageAbtract.prototype.history.apply(this,arguments),i){case"addLayer":switch(s){case"add":var a=n[0],o=t.extend(!0,{},n[1]);this.layerEditor._zIndexOffset=-1,this.layerEditor._idTranslation={};var l=this.layerEditor.loadSingleData(o,a);e.history.changeFuture(this,l),e.history.changeFuture(this.items[0],l.items[0]),this.group.reIndexLayers(),this.layerEditor.refreshMode();break;case"delete":this["delete"]()}break;case"createLayer":switch(s){case"add":var a=n[0],o=t.extend(!0,{},n[1]);this.layerEditor._zIndexOffset=-1,this.layerEditor._idTranslation={};var l=this.layerEditor.loadSingleData(o,a);e.history.changeFuture(this,l),e.history.changeFuture(this.items[0],l.items[0]),this.group.reIndexLayers(),this.layerEditor.refreshMode();break;case"delete":this["delete"]()}break;case"duplicateLayer":switch(s){case"duplicate":var d=[];this.duplicate(!0,!1,d);for(var h=0;h<d.length;h++)e.history.changeFuture(r.oldLayers[h],d[h]),e.history.changeFuture(r.oldLayers[h].items[0],d[h].items[0]);r.oldLayers=[];break;case"delete":var p=[];n[0]["delete"](!0,p),r.oldLayers=p}break;case"deleteLayer":switch(s){case"create":var a=n[0],o=t.extend(!0,{},n[1]);this.layerEditor._zIndexOffset=-1,this.layerEditor._idTranslation={};var l=this.layerEditor.loadSingleData(o,a);e.history.changeFuture(this,l),e.history.changeFuture(this.items[0],l.items[0]),a.reIndexLayers(),this.layerEditor.refreshMode();break;case"delete":this["delete"]()}break;case"storeAnimations":break;case"resetMode":switch(s){case"reset":this.resetMode(n[0],this.layerEditor.getMode());break;case"restore":this.restoreMode(n[0],this.layerEditor.getMode(),n[1])}}},n.prototype.updateAnimations=function(){},n.prototype._sortZIndex=function(e){return e.group==this.group?this.zIndex>=e.zIndex:e.group instanceof NextendSmartSliderLayerGroup&&this.group instanceof NextendSmartSliderLayerGroup?this.group.zIndex>=e.group.zIndex:e.group instanceof NextendSmartSliderLayerGroup?this.zIndex>=e.group.zIndex:this.group instanceof NextendSmartSliderLayerGroup?this.group.zIndex>=e.zIndex:this.zIndex>=e.zIndex},i.NextendSmartSliderLayer=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e,t){var i=parseFloat(e);return isNaN(i)?t:i}function r(i,s,r,a){a||(a={}),this.isMainGroup=!1,this.isDeleted=!1,this.opened=!0,r?(this.layer=r,this.property=t.extend({name:"Group",parallax:0,fontsize:100,adaptivefont:0,generatorvisible:"",desktopPortrait:1,desktopLandscape:1,tabletPortrait:1,tabletLandscape:1,mobilePortrait:1,mobileLandscape:1},{name:this.layer.data("name")+"",parallax:this.layer.data("parallax"),fontsize:this.layer.data("desktopportraitfontsize"),adaptivefont:this.layer.data("adaptivefont"),generatorvisible:this.layer.data("generatorvisible")||"",desktopPortrait:n(this.layer.data("desktopportrait"),1),desktopLandscape:n(this.layer.data("desktoplandscape"),1),tabletPortrait:n(this.layer.data("tabletportrait"),1),tabletLandscape:n(this.layer.data("tabletlandscape"),1),mobilePortrait:n(this.layer.data("mobileportrait"),1),mobileLandscape:n(this.layer.data("mobilelandscape"),1)}),this.property.name.length||(this.property.name="Group")):(this.layer=!1,"undefined"!=typeof a.data?this.property={name:a.data.name,fontsize:a.data.fontsize,adaptivefont:a.data.adaptivefont,generatorvisible:a.data.generatorvisible,desktopPortrait:a.data.desktopportrait,desktopLandscape:a.data.desktoplandscape,tabletPortrait:a.data.tabletportrait,tabletLandscape:a.data.tabletlandscape,mobilePortrait:a.data.mobileportrait,mobileLandscape:a.data.mobilelandscape}:this.property={name:"Group",fontsize:100,adaptivefont:0,generatorvisible:"",desktopPortrait:1,desktopLandscape:1,tabletPortrait:1,tabletLandscape:1,mobilePortrait:1,mobileLandscape:1}),NextendSmartSliderLayerContainerAbstract.prototype.constructor.call(this,i,s);var o=this.layer.data("opened");
6
+ if(null!==o&&"undefined"!=typeof o&&(this.opened=!!o),this.deviceProperty={desktopPortrait:{fontsize:this.property.fontsize},desktopLandscape:{fontsize:this.layer.data("desktoplandscapefontsize")},tabletPortrait:{fontsize:this.layer.data("tabletportraitfontsize")},tabletLandscape:{fontsize:this.layer.data("tabletlandscapefontsize")},mobilePortrait:{fontsize:this.layer.data("mobileportraitfontsize")},mobileLandscape:{fontsize:this.layer.data("mobilelandscapefontsize")}},this.layerEditor.$.trigger("layerCreated",this),t(window).triggerHandler("layerCreated"),i.layerList.push(this),this._opened(),"undefined"!=typeof a.layers){for(var l=e.history.add(t.proxy(function(){return[this,"createGroup","create","delete",[]]},this)),d=[],h=0;h<a.layers.length;h++)d.push(this.layerEditor.loadSingleData(a.layers[h],this.layerEditor.mainLayerGroup));this.groupLayersStartAndLateInit(d),l[4].push(this.zIndex)}}var a=!1;r.prototype=Object.create(NextendSmartSliderLayerContainerAbstract.prototype),r.prototype.constructor=r;for(var o in NextendSmartSliderLayerDataStorageAbtract.prototype)r.prototype[o]=NextendSmartSliderLayerDataStorageAbtract.prototype[o];r.prototype.groupLayersStartAndLateInit=function(i){for(var s=0,n=0,r=0;r<i.length;r++)i[r].group==this.layerEditor.mainLayerGroup&&(s=Math.max(s,i[r].zIndex),n++);isNaN(s)&&(s=0);for(var r=0;r<i.length;r++)e.history.add(t.proxy(function(e,t,i){return[this,"changeZIndexWithContainer",[e,r,t,this],[e,i,this,t],[]]},this,i[r],i[r].group,i[r].zIndex)),this.addLayerBeforeInit(i[r],r);this.lateInit(s,n)},r.prototype.createLayer=function(){this.layer||(this.layer=t('<div class="n2-ss-layer-group" style="z-index: '+this.group.zIndexList.length+';"></div>').appendTo(this.group.layerContainerElement))},r.prototype.createLayerRow=function(){var e=300,i=null;this.selectElement=t('<a href="#" class="n2-ss-layer-list-selector"><i class="n2-i n2-i-select"></i></a>').on("click",t.proxy(function(e){e.preventDefault(),this.select()},this));var s=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this)),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Duplicate layer")+'"><i class="n2-i n2-i-duplicate n2-i-grey-opacity"></i></div>').on("click",t.proxy(function(){this.duplicate(!0,!1)},this));this.openerElement=t('<a href="#" class="n2-button n2-button-icon n2-button-m n2-ss-layer-list-group-opener" onclick="return false;"><i class="n2-i n2-i-folderopened"></i></a>').on("click",t.proxy(this.switchOpened,this)),this.layerRow=t('<li class="n2-ss-layer-row n2-ss-layer-group-row"></li>').data("layer",this).appendTo(this.group.layersItemsUlElement),this.layerTitleSpan=t('<span class="n2-ucf">'+this.property.name+"</span>").on({mouseup:t.proxy(function(s){i?(clearTimeout(i),i=null,this.editName()):(this.activate(s),i=setTimeout(t.proxy(function(){i=null},this),e))},this)}),this.layerTitle=t('<div class="n2-ss-layer-title"></div>').append(this.layerTitleSpan).append(t('<div class="n2-actions-left"></div>').append(this.openerElement)).append(t('<div class="n2-actions"></div>').append(n).append(s)).appendTo(this.layerRow).on({mouseup:t.proxy(function(e){"DIV"===e.target.tagName&&this.activate(e)},this)}),this.layersItemsUlElement=t('<ul class="n2-list n2-h4 n2-list-orderable" />').data("container",this),nextend.tooltip.add(this.layerRow)},r.prototype.switchOpened=function(){this.opened=!this.opened,this._opened()},r.prototype._opened=function(){this.opened?(this.openerElement.removeClass("n2-closed"),this.layersItemsUlElement.css("display",""),this.layer.triggerHandler("opened")):(this.openerElement.addClass("n2-closed"),this.layersItemsUlElement.css("display","none"),this.layerEditor.$.trigger("groupHidden",this),this.layer.triggerHandler("closed"))},r.prototype.setZIndex=function(e){this.zIndex=e,this.layer.css("zIndex",e),this.group.layersItemsUlElement.append(this.layerRow),this.$.trigger("layerIndexed",e)},r.prototype.editName=function(){var e=new NextendSmartSliderAdminInlineField;e.$input.on({valueChanged:t.proxy(function(e,t){this.rename(t,!0),this.layerTitleSpan.css("display","inline")},this),cancel:t.proxy(function(){this.layerTitleSpan.css("display","inline")},this)}),this.layerTitleSpan.css("display","none"),e.injectNode(this.layerTitle,this.property.name)},r.prototype.rename=function(e){""==e&&(e="GROUP"),e=e.substr(0,35),this.property.name!=e&&(this.property.name=e,this.layerTitleSpan.html(e))},r.prototype.getData=function(e){var t={type:"group",zIndex:this.zIndex,layers:[],opened:this.opened};if(e.layersIncluded)for(var i=0;i<this.zIndexList.length;i++)t.layers.push(this.zIndexList[i].getData(e));for(var s in this.property)switch(s){case"fontsize":break;default:t[s.toLowerCase()]=this.property[s]}for(var n in this.deviceProperty)for(var r in this.deviceProperty[n]){var a=this.deviceProperty[n][r];"undefined"!=typeof a&&("width"==r&&this.isDimensionPropertyAccepted(a)||"height"==r&&this.isDimensionPropertyAccepted(a)||"align"==r||"valign"==r||"parentalign"==r||"parentvalign"==r||(a=parseFloat(a)),t[n.toLowerCase()+r]=a)}return t},r.prototype.positionSidebar=function(){this.layerEditor.panel.show(this,t("#n2-ss-layer-list"))},r.prototype.activate=function(e,t){if(!a){if(document.activeElement&&document.activeElement.blur(),e&&(e.ctrlKey||e.metaKey))return void this.select();if(!e||3!=e.which){t||this.layerEditor.exitSelectMode(),e&&this.positionSidebar();var i=this.getIndex();if(this.layerEditor.activeLayerIndex!==i){this.layerRow.addClass("n2-active"),this.layer.triggerHandler("n2-ss-activate"),this.layerEditor.changeActiveLayer(i,t),nextend.activeLayer=this.layer;var s=this.layerEditor.mainLayerGroup.layersItemsUlElement.parent(),n=s.scrollTop(),r=this.layerRow.get(0).offsetTop;(n>r||r>n+s.height()-this.layerRow.height())&&s.scrollTop(r)}this.layerEditor.startSelection(!0),this.layerEditor.addSelection(this.layers,!0)}}},r.prototype.deActivate=function(){this.layerEditor.endSelection(!0),this.layerRow.removeClass("n2-active"),this.layer.triggerHandler("n2-ss-deactivate")},r.prototype.select=function(){this.layerEditor.selectLayer(this,!1),this.layerEditor.addSelection(this.layers,!1)},r.prototype.getIndex=function(){return this.layerEditor.layerList.indexOf(this)},r.prototype.nextLayer=function(){var e=this.zIndex-1;if(0>e||"undefined"==typeof this.group.zIndexList[e])this.group.nextLayer();else{var t=this.group.zIndexList[e];t.activate()}},r.prototype.previousLayer=function(){var e=this.zIndex+1;if(e>this.zIndexList.length-1||"undefined"==typeof this.group.zIndexList[e])this.group.previousLayer();else{var t=this.group.zIndexList[e];t.activate()}},r.prototype.dispatchActionToChildren=function(e,t){for(var i=0;i<this.layers.length;i++)this.layers[i][e].apply(this.layers[i],t)},r.prototype.snap=function(){},r.prototype["delete"]=function(){this.layerEditor.getSelectedLayer()==this&&this.layerEditor.panel.hide(),this.deActivate();for(var i=t.extend([],this.layers),s=0;s<i.length;s++)i[s]["delete"]();e.history.add(t.proxy(function(){return[this,"deleteGroup","delete","create",[this.getData({layersIncluded:!1,itemsIncluded:!1})]]},this)),this.group.childDeleted(this),this.layer.trigger("mouseup"),this.isDeleted=!0,this.layerEditor.layerDeleted(this.getIndex()),this.layer.triggerHandler("LayerDeleted"),this.layer.remove(),this.layerRow.remove(),this.$.trigger("layerDeleted"),delete this.layer},r.prototype.duplicate=function(e,t){this.layerEditor.loadData([this.getData({layersIncluded:!0,itemsIncluded:!0})],!1)},r.prototype._syncparallax=function(e){},r.prototype._syncfontsize=function(e){this.adjustFontSize(this.getProperty(!1,"adaptivefont"),e,!0)},r.prototype._syncadaptivefont=function(e){this.adjustFontSize(e,this.getProperty(!0,"fontsize"),!0)},r.prototype.adjustFontSize=function(e,t,i){t=parseInt(t),parseInt(e)?this.layer.css("font-size",nextend.smartSlider.frontend.sliderElement.data("fontsize")*t/100+"px"):100!=t?this.layer.css("font-size",t+"%"):this.layer.css("font-size",""),i&&this.update()},r.prototype._syncgeneratorvisible=function(e){},r.prototype._syncdesktopPortrait=function(e){this.__syncShowOnDevice("desktopPortrait",e)},r.prototype._syncdesktopLandscape=function(e){this.__syncShowOnDevice("desktopLandscape",e)},r.prototype._synctabletPortrait=function(e){this.__syncShowOnDevice("tabletPortrait",e)},r.prototype._synctabletLandscape=function(e){this.__syncShowOnDevice("tabletLandscape",e)},r.prototype._syncmobilePortrait=function(e){this.__syncShowOnDevice("mobilePortrait",e)},r.prototype._syncmobileLandscape=function(e){this.__syncShowOnDevice("mobileLandscape",e)},r.prototype.__syncShowOnDevice=function(e,t){if(this.getMode()==e){var t=parseInt(t);t?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[e,t])}},r.prototype._hide=function(){this.layer.css("display","none")},r.prototype._show=function(){parseInt(this.property[this.layerEditor.getMode()])&&this.layer.css("display","block"),this.update()},r.prototype.update=function(){for(var e=0;e<this.layers.length;e++)this.layers[e].update()},r.prototype.setProperty=function(e,t,i){switch(e){case"parallax":case"generatorvisible":case"adaptivefont":this.store(!1,e,t,!0);break;case"fontsize":this.store(!0,e,t,!0);break;case"showFieldDesktopPortrait":this.store(!1,"desktopPortrait",parseInt(t),!0);break;case"showFieldDesktopLandscape":this.store(!1,"desktopLandscape",parseInt(t),!0);break;case"showFieldTabletPortrait":this.store(!1,"tabletPortrait",parseInt(t),!0);break;case"showFieldTabletLandscape":this.store(!1,"tabletLandscape",parseInt(t),!0);break;case"showFieldMobilePortrait":this.store(!1,"mobilePortrait",parseInt(t),!0);break;case"showFieldMobileLandscape":this.store(!1,"mobileLandscape",parseInt(t),!0)}"manager"!=i&&this.$.trigger("propertyChanged",[e,t])},r.prototype.changeEditorMode=function(e){var t=parseInt(this.property[e]);t?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[e,t]),this._renderModeProperties(!1)},r.prototype._renderModeProperties=function(e){for(var t in this.property)this.property[t]=this.getProperty(!0,t),this.$.trigger("propertyChanged",[t,this.property[t]]);var i=this.getProperty(!0,"fontsize");this.adjustFontSize(this.getProperty(!1,"adaptivefont"),i,!1)},r.prototype.updateAnimations=function(){},r.prototype.showEditor=function(){this.layerEditor.panel._show()},r.prototype.doAction=function(e,i){for(var s=t.extend([],this.zIndexList),n=0;n<s.length;n++)s[n][e].apply(s[n],i)},r.prototype.copyMode=function(e,i){e!=i&&(this.deviceProperty[i]=t.extend({},this.deviceProperty[i],this.deviceProperty[e]))},r.prototype.resetMode=function(e,t){if("desktopPortrait"!=e){var i;for(var s in this.property)this.deviceProperty[e][s]=i;e==t&&this._renderModeProperties(!0)}},r.prototype.restoreMode=function(e,i,s){"desktopPortrait"!=e&&(this.deviceProperty[e]=t.extend({},s),e==i&&this._renderModeProperties(!0))},r.prototype.history=function(e,t,i,s){NextendSmartSliderLayerDataStorageAbtract.prototype.history.apply(this,arguments),NextendSmartSliderLayerContainerAbstract.prototype.history.apply(this,arguments)},i.NextendSmartSliderLayerGroup=r}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(){this.isShown=!t.jStorage.get("ssLayersShown",!1),this.tlHeight=t.jStorage.get("ssLayersHeight")||200,this.$container=t("#n2-ss-layers"),this.fixScroll(),this.switchLayerList(),this.topBar=t(".n2-ss-layer-list-top-bar").on("mousedown",t.proxy(this.resizeStart,this)),this.topBar.find(".n2-ss-layer-list-opener").on("click",t.proxy(function(e){e.preventDefault(),this.switchLayerList()},this)),t(".n2-ss-slide-show-layers").on("click",t.proxy(function(e){e.preventDefault(),this.switchLayerList()},this)),this.onResize(),t(window).on("resize",t.proxy(this.onResize,this))}n.prototype.onResize=function(){var e=this.$container.height();this.paneLeft.height(e-48),this.paneRight.height(e-48)},n.prototype.onActivateLayer=function(e){var t=this.paneLeft.scrollTop(),i=e.layerRow.get(0).offsetTop;(t>i||i>t+this.paneLeft.height()-e.layerRow.height())&&(this.paneLeft.scrollTop(i),this.paneRight.scrollTop(i))},n.prototype.fixScroll=function(){this.paneLeft=t(".n2-ss-layers-sidebar-rows"),this.paneRight=t(".n2-ss-timeline-content-layers-container");var e=t.proxy(function(e){var t=this.paneLeft.scrollTop();e.originalEvent.deltaY>0?t+=40:t-=40,t=40*Math.round(t/40),this.paneLeft.scrollTop(t),this.paneRight.scrollTop(t),e.preventDefault()},this);this.paneLeft.on("mousewheel",e),this.paneLeft.on("scroll",t.proxy(function(e){var t=this.paneLeft.scrollTop();this.paneRight.scrollTop(t),e.preventDefault()},this)),this.paneRight.on("mousewheel",e)},n.prototype.resizeStart=function(e){this.isShown&&(e.target==this.topBar[0]||t(e.target).hasClass("n2-h2"))&&(e.preventDefault(),this.startY=e.clientY,this.height=this.$container.height(),t("body").on({"mousemove.n2-ss-tl-resize":t.proxy(this.resizeMove,this),"mouseup.n2-ss-tl-resize":t.proxy(this.resizeStop,this),"mouseleave.n2-ss-tl-resize":t.proxy(this.resizeStop,this)}))},n.prototype.resizeMove=function(e){e.preventDefault(),this.setTLHeight(this._calculateDesiredHeight(e))},n.prototype.resizeStop=function(e){e.preventDefault(),t("body").off(".n2-ss-tl-resize");var i=this._calculateDesiredHeight(e);this.setTLHeight(i),this.tlHeight=i,t.jStorage.set("ssLayersHeight",i),t("#n2-admin").triggerHandler("resize")},n.prototype._calculateDesiredHeight=function(e){var t=this.startY-e.clientY+this.height-48;return this.__calculateDesiredHeight(t)},n.prototype.__calculateDesiredHeight=function(e){return 40*Math.round(Math.min(Math.max(40,e),(window.innerHeight||document.documentElement.clientHeight)/2)/40)+48},n.prototype.switchLayerList=function(){this.isShown=!this.isShown,this.$container.toggleClass("n2-active",this.isShown),this.isShown?this.setTLHeight(this.tlHeight):this.setTLHeight(48),t.jStorage.set("ssLayersShown",this.isShown)},n.prototype.setTLHeight=function(e){e=Math.max(48,e),this.$container.height(e),e=this.$container.height(),this.paneLeft.height(e-48),this.paneRight.height(e-48),nextend.triggerResize()},n.prototype.activateAdd=function(e,t){this.$add.css({left:e,top:t}).appendTo(this.$container)},window.NextendSmartSliderAdminLayersUserInterface=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(e){this.isMainGroup=!0,NextendSmartSliderLayerContainerAbstract.prototype.constructor.call(this,e,!1),this.lateInit(),this.startWithExistingNodes()}n.prototype=Object.create(NextendSmartSliderLayerContainerAbstract.prototype),n.prototype.constructor=n,n.prototype.createLayer=function(){this.layer||(this.layer=this.layerEditor.layerContainerElement)},n.prototype.createLayerRow=function(){this.layersItemsUlElement=this.layerEditor.layersItemsElement.find("ul").data("container",this)},n.prototype.nextLayer=function(){var e=this.zIndexList[this.zIndexList.length-1];e.activate()},n.prototype.previousLayer=function(){var e=this.zIndexList[0];e.activate()},i.NextendSmartSliderMainLayerGroup=n}(nextend.smartSlider,n2,window),function(e,t,i,s){function n(i,s,n,r,a){this.activeLayerIndex=-1,this.snapToEnabled=!0,this.staticSlide=s,this.initSelectMode(),this.$=t(this),e.layerManager=this,this.responsive=e.frontend.responsive,this.panel=new NextendSmartSliderSidebar(this),this.layerList=[],this.layersItemsElement=t("#n2-ss-layer-list"),this.frontendSlideLayers=i,this.frontendSlideLayers.setZero(),this.layerContainerElement=e.$currentSlideElement.find(".n2-ss-layers-container"),this.layerContainerElement.length||(this.layerContainerElement=e.$currentSlideElement),this.layerContainerElement.parent().prepend('<div class="n2-ss-slide-border n2-ss-slide-border-left" /><div class="n2-ss-slide-border n2-ss-slide-border-top" /><div class="n2-ss-slide-border n2-ss-slide-border-right" /><div class="n2-ss-slide-border n2-ss-slide-border-bottom" />'),this.slideSize={width:this.layerContainerElement.width(),height:this.layerContainerElement.height()},e.frontend.sliderElement.on("SliderResize",t.proxy(this.refreshSlideSize,this)),this.sidebar=new NextendSmartSliderAdminSlideSidebarSettings(this),this.ui=new NextendSmartSliderAdminLayersUserInterface(this),e.itemEditor=this.itemEditor=new NextendSmartSliderItemManager(this),this.positionDisplay=t('<div class="n2 n2-ss-position-display"/>').appendTo("body"),this.mainLayerGroup=new NextendSmartSliderMainLayerGroup(this),t("#smartslider-slide-toolbox-layer").on("mouseenter",function(){t("#n2-admin").addClass("smartslider-layer-highlight-active")}).on("mouseleave",function(){t("#n2-admin").removeClass("smartslider-layer-highlight-active")}),this._initDeviceModeChange(),this.initSettings(),this.sidebar.startFeatures();var l=t("#n2-ss-layer-adaptive-font").on("click",t.proxy(function(){this.sidebar.forms.layer.adaptivefont.data("field").onoff.trigger("click")},this));this.sidebar.forms.layer.adaptivefont.on("nextendChange",t.proxy(function(){1==this.sidebar.forms.layer.adaptivefont.val()?l.addClass("n2-active"):l.removeClass("n2-active")},this)),new NextendElementNumber("n2-ss-layer-font-size",-Number.MAX_VALUE,Number.MAX_VALUE),new NextendElementAutocompleteSlider("n2-ss-layer-font-size",{min:50,max:300,step:5});var p=t("#n2-ss-layer-font-size").on("outsideChange",t.proxy(function(){var e=parseInt(p.val());this.sidebar.forms.layer.fontsize.val(e).trigger("change")},this));this.sidebar.forms.layer.fontsize.on("nextendChange",t.proxy(function(){p.data("field").insideChange(this.sidebar.forms.layer.fontsize.val())},this)),t(".n2-ss-slide-duplicate-layer").on("click",t.proxy(function(e){e.preventDefault(),this.duplicate()},this)),t(".n2-ss-slide-delete-layer").on("click",t.proxy(function(e){e.preventDefault(),this["delete"]()},this)),t(window).on({keydown:t.proxy(function(i){if(!("TEXTAREA"==i.target.tagName||"INPUT"==i.target.tagName||e.timelineControl&&e.timelineControl.isActivated())&&-1!=this.activeLayerIndex){var s=i.keyCode;if(s>=49&&57>=s){var n=i.originalEvent.location||i.originalEvent.keyLocation||0;3==n&&(s+=48)}if(46==s||8==s)this["delete"](),i.preventDefault();else if(35==s)this.duplicate(),i.preventDefault();else if(16==s)o[s]=1;else if(38==s){if(!o[s]){var r=t.proxy(function(){this.doActionOnActiveLayer("moveY",[-1*(o[16]?10:1)])},this);r(),o[s]=setInterval(r,100)}i.preventDefault()}else if(40==s){if(!o[s]){var r=t.proxy(function(){this.doActionOnActiveLayer("moveY",[o[16]?10:1])},this);r(),o[s]=setInterval(r,100)}i.preventDefault()}else if(37==s){if(!o[s]){var r=t.proxy(function(){this.doActionOnActiveLayer("moveX",[-1*(o[16]?10:1)])},this);r(),o[s]=setInterval(r,100)}i.preventDefault()}else if(39==s){if(!o[s]){var r=t.proxy(function(){this.doActionOnActiveLayer("moveX",[o[16]?10:1])},this);r(),o[s]=setInterval(r,100)}i.preventDefault()}else if(s>=97&&105>=s){var a=d[s],l=h[s],p=!1;this.sidebar.forms.layer.align.val()==a&&this.sidebar.forms.layer.valign.val()==l&&(p=!0),this.sidebar.layerFeatures.horizontalAlign(a,p),this.sidebar.layerFeatures.verticalAlign(l,p)}else 34==s?(i.preventDefault(),this.layerList[this.activeLayerIndex].nextLayer()):33==s?(i.preventDefault(),this.layerList[this.activeLayerIndex].previousLayer()):65==s?(i.preventDefault(),this.layerList[this.activeLayerIndex].fit()):(i.ctrlKey||i.metaKey)&&(90==s?i.shiftKey?e.history.redo():e.history.undo():67==s?this.copy():86==s?this.paste(0):71==s&&(this.createGroupFromSelected(),i.preventDefault()))}},this),keyup:t.proxy(function(e){"undefined"!=typeof o[e.keyCode]&&o[e.keyCode]&&(clearInterval(o[e.keyCode]),o[e.keyCode]=0)},this)}),this.addContextMenu(),n||e.frontend.sliderElement.fileupload({url:r,pasteZone:!1,dropZone:e.frontend.sliderElement,dataType:"json",paramName:"image",add:t.proxy(function(e,t){t.formData={path:"/"+a},t.submit()},this),done:t.proxy(function(e,t){var i=t.result;if(i.data&&i.data.name){var s=this.itemEditor.createLayerItem(!1,"image");s.reRender({image:i.data.url}),s.activate(null,null,!0)}else NextendAjaxHelper.notification(i)},this),fail:t.proxy(function(e,t){NextendAjaxHelper.notification(t.jqXHR.responseJSON)},this),start:function(){NextendAjaxHelper.startLoading()},stop:function(){setTimeout(function(){NextendAjaxHelper.stopLoading()},100)}});var c=this;window.validateLayers=function(){console.group();for(var e=0;e<c.mainLayerGroup.zIndexList.length;e++)console.log(e,c.mainLayerGroup.zIndexList[e].layerRow.get(0));console.groupEnd()},this.$.on("layerCreated",t.proxy(function(){this.editorVisibilityRefresh()},this)),this.editorVisibilityRefresh(),t("body").on("mousedown",t.proxy(function(e){"main"==nextend.context.getCurrentWindow()&&nextend.context.mouseDownArea===!1&&this.panel.hide()},this))}function r(e){this.mode=c.UNDEFINED,this.forms={undefined:null},this.layerEditor=e,this.toolboxElement=t("#smartslider-slide-toolbox-layer"),this.startLayer(),this.startGroup()}function a(e){this.fields=e,this.initParentLinker(),this.initAlign(),this.initEvents()}var o={16:0,38:0,40:0,37:0,39:0},l={left:0,center:1,right:2,top:0,middle:1,bottom:2},d={97:"left",98:"center",99:"right",100:"left",101:"center",102:"right",103:"left",104:"center",105:"right"},h={97:"bottom",98:"bottom",99:"bottom",100:"middle",101:"middle",102:"middle",103:"top",104:"top",105:"top"},p={OFF:0,ON:1,GROUP:2};n.prototype.getMode=function(){return this.mode},n.prototype._getMode=function(){return this.responsive.getNormalizedModeString()},n.prototype.getResponsiveRatio=function(e){return"h"==e?this.responsive.lastRatios.slideW:"v"==e?this.responsive.lastRatios.slideH:0},n.prototype.isGroup=function(e){return e instanceof NextendSmartSliderLayerGroup},n.prototype.getActiveGroup=function(){var e=this.getSelectedLayer();return this.isGroup(e)?e:e?e.group:this.mainLayerGroup},n.prototype.createLayer=function(e,t){var i=this.sidebar.layerFeatures.layerDefault;for(var s in i)null!==i[s]&&(t[s]=i[s]);var n=new NextendSmartSliderLayer(this,e,!1,this.itemEditor,t);return e.reIndexLayers(),n},n.prototype.addLayer=function(i,s,n){var r=this._addLayer(i,s,n);return e.history.add(t.proxy(function(){return[r,"addLayer","add","delete",[i,r.getData({layersIncluded:!0,itemsIncluded:!0})]]},this)),r},n.prototype._addLayer=function(e,i,s){var n=t(i);this.layerContainerElement.append(n);var r=new NextendSmartSliderLayer(this,e,n,this.itemEditor);return e!=this.mainLayerGroup&&e.moveLayerToGroup(r,r.zIndex),s&&(this.mainLayerGroup.reIndexLayers(),this.refreshMode()),r},n.prototype.switchToLayerTab=function(){e.slide._changeView(1)},n.prototype._initDeviceModeChange=function(){var i=t("#layerresettodesktop").on("click",t.proxy(this.__onResetToDesktopClick,this));this.resetToDesktopTRElement=i.closest("tr"),this.resetToDesktopGlobalElement=t("#n2-ss-layer-reset-to-desktop").on("click",t.proxy(function(){"block"==this.resetToDesktopTRElement.css("display")&&i.trigger("click")},this));var s=t("#n2-ss-layer-show-on"),n={},r=e.frontend.responsive.parameters.deviceModes;for(var a in r)r[a]&&(n[a]=t('<div class="n2-radio-option"><i class="n2-i n2-it n2-i-'+a+'"></i></div>').on("click",t.proxy(function(e){this.sidebar.forms.layer["showField"+e.charAt(0).toUpperCase()+e.substr(1)].data("field").onoff.trigger("click")},this,a)).appendTo(s));s.children().first().addClass("n2-first"),s.children().last().addClass("n2-last"),this.globalShowOnDeviceCB=function(e){"undefined"!=typeof n[e]&&n[e].toggleClass("n2-active",1==this.sidebar.forms.layer["showField"+e.charAt(0).toUpperCase()+e.substr(1)].val())},this.sidebar.forms.layer.showFieldDesktopPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopPortrait")),this.sidebar.forms.layer.showFieldDesktopLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopLandscape")),this.sidebar.forms.layer.showFieldTabletPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletPortrait")),this.sidebar.forms.layer.showFieldTabletLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletLandscape")),this.sidebar.forms.layer.showFieldMobilePortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobilePortrait")),this.sidebar.forms.layer.showFieldMobileLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobileLandscape")),t("#layershow").data("field").setAvailableDevices(r),t("#layergroup-show").data("field").setAvailableDevices(r),this.__onChangeDeviceOrientation(),e.frontend.sliderElement.on("SliderDeviceOrientation",t.proxy(this.__onChangeDeviceOrientation,this)),e.frontend.sliderElement.on("SliderResize",t.proxy(this.__onResize,this))},n.prototype.refreshMode=function(){this.__onChangeDeviceOrientation(),e.frontend.responsive.reTriggerSliderDeviceOrientation()},n.prototype.__onChangeDeviceOrientation=function(){this.mode=this._getMode(),this.globalShowOnDeviceCB(this.mode),this.resetToDesktopTRElement.css("display","desktopPortrait"==this.mode?"none":"block"),this.resetToDesktopGlobalElement.css("display","desktopPortrait"==this.mode?"none":"");for(var e=0;e<this.layerList.length;e++)this.layerList[e].changeEditorMode(this.mode)},n.prototype.__onResize=function(e,t){for(var i=this.getSortedLayers(),s=0;s<i.length;s++)i[s].doLinearResize(t)},n.prototype.__onResetToDesktopClick=function(){if(-1!=this.activeLayerIndex){var e=this.getMode();this.layerList[this.activeLayerIndex].resetMode(e,e)}},n.prototype.copyOrResetMode=function(e){var t=this.getMode();if("desktopPortrait"!=e&&e==t)for(var i=0;i<this.layerList.length;i++)this.layerList[i].resetMode(e,t);else if("desktopPortrait"!=e&&"desktopPortrait"==t)for(var i=0;i<this.layerList.length;i++)this.layerList[i].resetMode(e,t);else if(e!=t)for(var i=0;i<this.layerList.length;i++)this.layerList[i].copyMode(t,e)},n.prototype.refreshSlideSize=function(){this.slideSize.width=e.frontend.dimensions.slide.width,this.slideSize.height=e.frontend.dimensions.slide.height},n.prototype.initSettings=function(){this.settings={};var e=t("#n2-ss-slide-canvas-settings").on("mouseleave",t.proxy(function(){e.removeClass("n2-active")},this));e.find("> a").on("click",function(t){t.preventDefault(),e.toggleClass("n2-active")}),this.$settingsPanel=e.find(".n2-ss-settings-panel-inner"),this.initSnapTo(),this.initEditorTheme(),this.initRuler()},n.prototype.addSettings=function(e,i,s,n){this.settings[e]=parseInt(t.jStorage.get(e,s));var r=t('<a href="">'+i+'<span class="n2-setting-tick"><i class="n2-i n2-it n2-i-tick2"></i></span></a>').on("click",t.proxy(function(i){i.preventDefault(),this.settings[e]=1==this.settings[e]?0:1,t.jStorage.set(e,this.settings[e]),r.toggleClass("n2-setting-enabled",1==this.settings[e]),n(this.settings[e])},this)).appendTo(this.$settingsPanel);r.toggleClass("n2-setting-enabled",1==this.settings[e]),n(this.settings[e])},n.prototype.addAction=function(e,i){t('<a href="" class="n2-panel-action">'+e+"</a>").on("click",t.proxy(function(e){e.preventDefault(),i()},this)).appendTo(this.$settingsPanel)},n.prototype.initRuler=function(){var e=t("#n2-tab-smartslider-editor");this.addSettings("n2-ss-ruler-enabled","Ruler",1,t.proxy(function(t){e.toggleClass("n2-ss-has-ruler",1==t),nextend.triggerResize()},this)),this.addSettings("n2-ss-show-guides","Show Guides",1,t.proxy(function(t){nextend.ruler.showGuides=t,e.toggleClass("n2-ss-show-guides",1==t)},this)),this.addSettings("n2-ss-lock-guides","Lock Guides",0,t.proxy(function(t){e.toggleClass("n2-ss-lock-guides",1==t)},this)),this.addAction("Clear Guides",t.proxy(function(){nextend.ruler.clearGuides()},this))},n.prototype.initSnapTo=function(){this.addSettings("n2-ss-snap-to-enabled","Smart Snap",1,t.proxy(function(e){for(var t=0;t<this.layerList.length;t++)this.layerList[t].snap()},this))},n.prototype.getSnap=function(){return this.settings["n2-ss-snap-to-enabled"]?t(this.staticSlide?".n2-ss-static-slide .n2-ss-layer:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-guide":".n2-ss-slide.n2-ss-slide-active .n2-ss-layer:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-guide"):!1},n.prototype.initEditorTheme=function(){var e=t("#n2-tab-smartslider-editor");this.addSettings("n2-ss-theme-dark","Dark Mode",0,function(t){e.toggleClass("n2-ss-theme-dark",1==t)})},n.prototype.deleteLayers=function(){for(var e=this.mainLayerGroup.zIndexList.length-1;e>=0;e--)this.mainLayerGroup.zIndexList[e]["delete"]()},n.prototype.layerDeleted=function(e){var t=this.layerList[e];t.group.reIndexLayers();for(var i=this.selectedLayers.length;i--;)t==this.selectedLayers[i]&&this.selectedLayers.splice(i,1);this.layerList.splice(e,1),e===this.activeLayerIndex&&(this.activeLayerIndex=-1),this.afterLayerDeleted(e),this.editorVisibilityRefresh()},n.prototype.editorVisibilityRefresh=function(){switch(this.layerList.length>0){case!1:t("body").removeClass("n2-ss-has-layers"),nextend.triggerResize();break;default:t("body").addClass("n2-ss-has-layers"),nextend.triggerResize()}},n.prototype.afterLayerDeleted=NextendDeBounce(function(e){var t=this.getSelectedLayer();!t||t.isDeleted?this.resetActiveLayer():t&&(this.activeLayerIndex=t.getIndex())},50),n.prototype.getSortedLayers=function(){for(var e=this.mainLayerGroup.getChildLayersRecursive(!1),t={},i=e.length-1;i>=0;i--)"undefined"!=typeof e[i].property.parentid&&e[i].property.parentid&&("undefined"==typeof t[e[i].property.parentid]&&(t[e[i].property.parentid]=[]),t[e[i].property.parentid].push(e[i]),e.splice(i,1));for(var i=0;i<e.length;i++)"undefined"!=typeof e[i].property.id&&e[i].property.id&&"undefined"!=typeof t[e[i].property.id]&&(t[e[i].property.id].unshift(0),t[e[i].property.id].unshift(i+1),e.splice.apply(e,t[e[i].property.id]),delete t[e[i].property.id]);return e},n.prototype.getActiveLayerData=function(){var e=[];if("undefined"!=typeof this.layerList[this.activeLayerIndex])if(this.selectMode==p.ON)for(var t=0;t<this.selectedLayers.length;t++)this.selectedLayers[t].getDataWithChildren(e);else this.layerList[this.activeLayerIndex].getDataWithChildren(e);return e},n.prototype.getHTML=function(){for(var e=t("<div></div>"),i=this.layerList,s=0;s<i.length;s++)e.append(i[s].getHTML(!0,!0));return e.html()},n.prototype.getData=function(){for(var e=[],t=this.mainLayerGroup.zIndexList,i=0;i<t.length;i++)e.push(t[i].getData({layersIncluded:!0,itemsIncluded:!0}));return e},n.prototype.loadData=function(i,s,n){n=n||this.mainLayerGroup,e.history.add(t.proxy(function(){return[this,"fixActiveLayer","","",[]]},this));var r=t.extend(!0,[],i);s&&this.deleteLayers(),this._zIndexOffset=this.mainLayerGroup.zIndexList.length,this._idTranslation={};for(var a=0;a<r.length;a++)"group"==r[a].type?this.loadSingleGroupData(r[a]):this.loadSingleData(r[a],this.mainLayerGroup);this.mainLayerGroup.reIndexLayers(),this.refreshMode(),-1==this.activeLayerIndex&&this.layerList.length>0&&this.layerList[0].activate(),e.history.add(t.proxy(function(){return[this,"fixActiveLayer","","",[]]},this))},n.prototype.loadSingleGroupData=function(e){return new NextendSmartSliderLayerGroup(this,this.mainLayerGroup,!1,e)},n.prototype.loadSingleData=function(e,i){var s=t('<div class="n2-ss-layer"></div>').attr("style",e.style),n=s.css("zIndex");if("auto"!=n&&""!=n||(n=e.zIndex?e.zIndex:1),s.css("zIndex",n+this._zIndexOffset),e.id){var r=t.fn.uid();this._idTranslation[e.id]=r,s.attr("id",r)}e.parentid&&("undefined"!=typeof this._idTranslation[e.parentid]?e.parentid=this._idTranslation[e.parentid]:e.parentid="");for(var a=0;a<e.items.length;a++)t('<div class="n2-ss-item n2-ss-item-'+e.items[a].type+'"></div>').data("item",e.items[a].type).data("itemvalues",e.items[a].values).appendTo(s);delete e.style,delete e.items;for(var o in e)s.data(o,e[o]);return this.addLayer(i,s,!1)},n.prototype.getSelectedLayer=function(){return-1==this.activeLayerIndex?!1:this.layerList[this.activeLayerIndex]},n.prototype.fixActiveLayer=function(){var e=this.getSelectedLayer();(0==e||e.isDeleted)&&this.resetActiveLayer()},n.prototype.resetActiveLayer=function(){
7
+ this.mainLayerGroup.zIndexList.length>0?this.mainLayerGroup.zIndexList[this.mainLayerGroup.zIndexList.length-1].activate():this.changeActiveLayer(-1)},n.prototype.changeActiveLayer=function(e,i){var s=this.activeLayerIndex;if(-1!=s){var n=this.layerList[s];n&&(n.$.off("propertyChanged.layerEditor"),n.deActivate())}if(this.activeLayerIndex=e,i||this.exitSelectMode(),-1!=e){var r=this.layerList[e];r instanceof NextendSmartSliderLayerGroup?this.sidebar.changeMode("GROUP"):this.sidebar.changeMode("LAYER"),r.$.on("propertyChanged.layerEditor",t.proxy(this.sidebar.activatePropertyChanged,this.sidebar));var a=r.property;for(var o in a)this.sidebar.activatePropertyChanged({target:r},o,a[o])}this.$.trigger("activeLayerChanged")},n.prototype.eye=function(){"undefined"!=typeof this.layerList[this.activeLayerIndex]&&this.doActionOnActiveLayer("changeStatus",[3])},n.prototype.lock=function(){"undefined"!=typeof this.layerList[this.activeLayerIndex]&&this.doActionOnActiveLayer("changeStatus",[2])},n.prototype["delete"]=function(){"undefined"!=typeof this.layerList[this.activeLayerIndex]&&this.doActionOnActiveLayer("delete")},n.prototype.duplicate=function(){"undefined"!=typeof this.layerList[this.activeLayerIndex]&&this.doActionOnActiveLayer("duplicate",[this.selectMode!=p.ON,!1])},n.prototype.copy=function(e){"undefined"==typeof e&&(e=this.getCopied());var i=this.getActiveLayerData();if(i.length){for(e.unshift({name:i[0].name,layers:i});e.length>5;)e.pop();t.jStorage.set("copied",JSON.stringify(e))}},n.prototype.paste=function(e,t){"undefined"==typeof t&&(t=this.getCopied()),t.length&&"undefined"!=typeof t[e]&&nextend.smartSlider.layerManager.loadData(t[e].layers,!1)},n.prototype.getCopied=function(){var e=t.jStorage.get("copied");return null===e?[]:JSON.parse(e)},n.prototype.addContextMenu=function(){var e=this;t.contextMenu({selector:"#n2-ss-0",className:"n2",autoHide:!0,build:function(i,s){var n=null,r=t(s.target).closest(".n2-ss-layer");r.length?(n=r.data("layerObject"),n.activate(s)):n=e.layerList[e.activeLayerIndex]||!1;var a={};n&&(a["delete"]={name:"Delete layer",icon:"delete"},a.duplicate={name:"Duplicate layer",icon:"duplicate"},a.copy={name:"Copy layer",icon:"copy"});var o=e.getCopied();if(1==o.length)a.paste={name:"Paste layer",icon:"paste",callback:t.proxy(e.paste,this,0,o)};else if(o.length>1){for(var l={},d=0;d<o.length;d++)l["paste"+d]={name:o[d].name,callback:t.proxy(e.paste,this,d,o)};a.paste={name:"Paste layer",icon:"paste",items:l}}return t.isEmptyObject(a)?!1:{animation:{duration:0,show:"show",hide:"hide"},zIndex:1e6,callback:function(t,i){e[t]()},positionSubmenu:function(e){if(t.ui&&t.ui.position)e.css("display","block").position({my:"left+2 top",at:"right top",of:this,collision:"flipfit fit"}).css("display","");else{var i={top:0,left:this.outerWidth()};e.css(i)}},items:a}}})},n.prototype.history=function(e,t,i){switch(e){case"fixActiveLayer":this.fixActiveLayer()}},n.prototype.initSelectMode=function(){this.selectMode=p.OFF,this.selectedLayers=[],t(".n2-ss-layer-list-top-bar .n2-button").on("mousedown",t.proxy(function(e){switch(e.preventDefault(),t(e.currentTarget).data("action")){case"delete":this["delete"]();break;case"duplicate":this.duplicate();break;case"group":this.createGroupFromSelected();break;case"cancel":this.exitSelectMode()}},this))},n.prototype.startSelection=function(e){e?(this.selectMode==p.ON&&this.exitSelectMode(),this.changeSelectMode(p.GROUP)):this.changeSelectMode(p.ON)},n.prototype.changeSelectMode=function(e){var i=this.selectMode;i!=e&&(i==p.ON?t("#n2-admin").removeClass("n2-ss-select-layer-mode-on"):i==p.GROUP&&t("#n2-admin").removeClass("n2-ss-select-layer-mode-group"),this.selectMode=e,i==p.GROUP&&e==p.ON&&this.selectedLayers[0].activate(null,null,!0),e==p.OFF?t("#n2-admin").removeClass("n2-ss-select-layer-mode"):(t("#n2-admin").addClass("n2-ss-select-layer-mode"),e==p.ON?t("#n2-admin").addClass("n2-ss-select-layer-mode-on"):e==p.GROUP&&t("#n2-admin").addClass("n2-ss-select-layer-mode-group")),this.selectMode==p.OFF?t("body").off(".n2-ss-selection"):t("body").on("mousedown.n2-ss-selection",t.proxy(function(e){"main"==nextend.context.getCurrentWindow()&&nextend.context.mouseDownArea===!1&&this.exitSelectMode()},this)))},n.prototype.endSelection=function(e){e&&this.selectMode==p.GROUP&&this.exitSelectMode()},n.prototype.selectLayer=function(e,t){this.selectMode!=p.ON&&(this.startSelection(!1),t&&this.selectedLayers.push(this.layerList[this.activeLayerIndex])),this._selectLayer(e)},n.prototype._selectLayer=function(e){var i=t.inArray(e,this.selectedLayers);if(-1!=i){if(this.selectMode==p.ON&&this.selectedLayers.length<=1)return this.exitSelectMode(),!1;var s=this.selectedLayers[i];if(this.selectedLayers.splice(i,1),e.layerRow.removeClass("n2-selected"),e.layer.removeClass("n2-ss-layer-selected"),this.selectMode==p.ON&&this.selectedLayers.length<=1)return this.selectedLayers[0].activate(),this.exitSelectMode(),!1;s===this.layerList[this.activeLayerIndex]&&this.selectedLayers[0].activate(!1,null,!0)}else{for(var n=this.selectedLayers.length,r=0;r<this.selectedLayers.length;r++)if(this.selectedLayers[r]._sortZIndex(e)){n=r;break}this.selectedLayers.splice(n,0,e)}for(var r=0;r<this.selectedLayers.length;r++)this.selectedLayers[r].layerRow.addClass("n2-selected"),this.selectedLayers[r].layer.addClass("n2-ss-layer-selected")},n.prototype.addSelection=function(e,t){t||this.changeSelectMode(p.ON);for(var i=0;i<e.length;i++)this._selectLayer(e[i],!1)},n.prototype.exitSelectMode=function(){if(this.selectMode){for(var e=0;e<this.selectedLayers.length;e++)this.selectedLayers[e]!=this.layerList[this.activeLayerIndex]&&this.selectedLayers[e].layerRow.removeClass("n2-active"),this.selectedLayers[e].layerRow.removeClass("n2-selected"),this.selectedLayers[e].layer.removeClass("n2-ss-layer-selected");t("#n2-admin").removeClass("n2-ss-select-layer-mode"),this.selectedLayers=[],this.changeSelectMode(p.OFF)}},n.prototype.doActionOnActiveLayer=function(e,i){if(this.selectMode==p.ON)for(var s=t.extend([],this.selectedLayers),n=0;n<s.length;n++)s[n][e].apply(s[n],i);else"function"==typeof this.layerList[this.activeLayerIndex][e]?this.layerList[this.activeLayerIndex][e].apply(this.layerList[this.activeLayerIndex],i):this.layerList[this.activeLayerIndex].doAction(e,i)},n.prototype.draggableStart=function(e){if(this.selectMode){for(var t=!1,i=0;i<this.selectedLayers.length;i++){var s=this.selectedLayers[i],n=s.layer;if(n[0]!=e.helper[0]){var r=n.css("display");"none"==r&&n.css("display","block"),s._originalPosition=n.position(),"none"==r&&n.css("display",r)}else t=!0}t||this.exitSelectMode()}},n.prototype.draggableDrag=function(e){if(this.selectMode)for(var t={left:e.position.left-e.originalPosition.left,top:e.position.top-e.originalPosition.top},i=0;i<this.selectedLayers.length;i++){var s=this.selectedLayers[i],n=s.layer;s instanceof NextendSmartSliderLayerGroup||n[0]!=e.helper[0]&&(n.css({left:s._originalPosition.left+t.left,top:s._originalPosition.top+t.top,bottom:"auto",right:"auto"}),s.triggerLayerResized())}},n.prototype.draggableStop=function(e){if(this.selectMode){for(var t={left:e.position.left-e.originalPosition.left,top:e.position.top-e.originalPosition.top},i=0;i<this.selectedLayers.length;i++){var s=this.selectedLayers[i],n=s.layer;if(s instanceof NextendSmartSliderLayerGroup);else if(n[0]!=e.helper[0]){var r=n.css("display");"none"==r&&n.css("display","block"),s.setPosition(s._originalPosition.left+t.left,s._originalPosition.top+t.top),s.triggerLayerResized(),"none"==r&&n.css("display",r)}}return!0}return!1},n.prototype.createGroupFromSelected=function(){var i;switch(this.selectMode){case p.ON:i=new NextendSmartSliderLayerGroup(this,this.mainLayerGroup,!1);var s=e.history.add(t.proxy(function(){return[i,"createGroup","create","delete",[]]},this));i.groupLayersStartAndLateInit(this.selectedLayers),s[4].push(i.zIndex),this.exitSelectMode(),i.activate();break;case p.OFF:var n=this.layerList[this.activeLayerIndex];if(n.group instanceof NextendSmartSliderLayerGroup)n.group.activate();else{i=new NextendSmartSliderLayerGroup(this,this.mainLayerGroup,!1);var s=e.history.add(t.proxy(function(){return[i,"createGroup","create","delete",[]]},this));i.groupLayersStartAndLateInit([n]),s[4].push(i.zIndex),i.activate()}break;case p.GROUP:}},i.NextendSmartSliderAdminSlideLayerManager=n;var c={UNDEFINED:0,LAYER:1,GROUP:2},u={0:"UNDEFINED",1:"LAYER",2:"GROUP"};r.prototype.changeMode=function(e){this.mode!=c[e]&&(t("body").removeClass("n2-ss-editor-mode-"+u[this.mode]).addClass("n2-ss-editor-mode-"+e),c[e]==c.LAYER?t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["item","style","animations","position"]):c[e]==c.GROUP&&t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["group","animations"]),this.mode=c[e])},r.prototype.activatePropertyChanged=function(e,t,i){switch(this.mode){case c.LAYER:this.activeLayerPropertyChanged(e,t,i);break;case c.GROUP:this.activeGroupPropertyChanged(e,t,i)}},r.prototype.getActiveForm=function(){switch(this.mode){case c.LAYER:return this.forms.layer;case c.GROUP:return this.forms.group}return!1},r.prototype.startLayer=function(){this.forms.layer={id:t("#layerid"),parentid:t("#layerparentid"),parentalign:t("#layerparentalign"),parentvalign:t("#layerparentvalign"),left:t("#layerleft"),top:t("#layertop"),responsiveposition:t("#layerresponsive-position"),width:t("#layerwidth"),height:t("#layerheight"),responsivesize:t("#layerresponsive-size"),"class":t("#layerclass"),generatorvisible:t("#layergenerator-visible"),showFieldDesktopPortrait:t("#layershow-desktop-portrait"),showFieldDesktopLandscape:t("#layershow-desktop-landscape"),showFieldTabletPortrait:t("#layershow-tablet-portrait"),showFieldTabletLandscape:t("#layershow-tablet-landscape"),showFieldMobilePortrait:t("#layershow-mobile-portrait"),showFieldMobileLandscape:t("#layershow-mobile-landscape"),crop:t("#layercrop"),rotation:t("#layerrotation"),inneralign:t("#layerinneralign"),parallax:t("#layerparallax"),align:t("#layeralign"),valign:t("#layervalign"),fontsize:t("#layerfont-size"),adaptivefont:t("#layeradaptive-font"),mouseenter:t("#layeronmouseenter"),click:t("#layeronclick"),mouseleave:t("#layeronmouseleave"),play:t("#layeronplay"),pause:t("#layeronpause"),stop:t("#layeronstop")};for(var e in this.forms.layer)this.forms.layer[e].on("outsideChange",t.proxy(this.activateLayerPropertyChanged,this,e));this.layerEditor.responsive.isEnabled("desktop","Landscape")||this.forms.layer.showFieldDesktopLandscape.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("tablet","Portrait")||this.forms.layer.showFieldTabletPortrait.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("tablet","Landscape")||this.forms.layer.showFieldTabletLandscape.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("mobile","Portrait")||this.forms.layer.showFieldMobilePortrait.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("mobile","Landscape")||this.forms.layer.showFieldMobileLandscape.closest(".n2-mixed-group").css("display","none")},r.prototype.activateLayerPropertyChanged=function(e,t){if(-1!=this.layerEditor.activeLayerIndex){var i=this.forms.layer[e].val();this.layerEditor.layerList[this.layerEditor.activeLayerIndex].setProperty(e,i,"manager")}else{var s=this.forms.layer[e].data("field");"undefined"!=typeof s&&null!==s&&s.insideChange("")}},r.prototype.activeLayerPropertyChanged=function(e,t,i){if("function"==typeof this["layerFormSet"+t])this["layerFormSet"+t](i,e.target);else{var s=this.forms.layer[t].data("field");"undefined"!=typeof s&&s.insideChange(i)}},r.prototype.layerFormSetname=function(e){},r.prototype.layerFormSetnameSynced=function(e){},r.prototype.layerFormSetdesktopPortrait=function(e,t){this.forms.layer.showFieldDesktopPortrait.data("field").insideChange(e)},r.prototype.layerFormSetdesktopLandscape=function(e,t){this.forms.layer.showFieldDesktopLandscape.data("field").insideChange(e)},r.prototype.layerFormSettabletPortrait=function(e,t){this.forms.layer.showFieldTabletPortrait.data("field").insideChange(e)},r.prototype.layerFormSettabletLandscape=function(e,t){this.forms.layer.showFieldTabletLandscape.data("field").insideChange(e)},r.prototype.layerFormSetmobilePortrait=function(e,t){this.forms.layer.showFieldMobilePortrait.data("field").insideChange(e)},r.prototype.layerFormSetmobileLandscape=function(e,t){this.forms.layer.showFieldMobileLandscape.data("field").insideChange(e)},r.prototype.startFeatures=function(){this.layerFeatures=new a(this.forms.layer)},r.prototype.startGroup=function(){this.forms.group={parallax:t("#layergroup-parallax"),showFieldDesktopPortrait:t("#layergroup-show-desktop-portrait"),showFieldDesktopLandscape:t("#layergroup-show-desktop-landscape"),showFieldTabletPortrait:t("#layergroup-show-tablet-portrait"),showFieldTabletLandscape:t("#layergroup-show-tablet-landscape"),showFieldMobilePortrait:t("#layergroup-show-mobile-portrait"),showFieldMobileLandscape:t("#layergroup-show-mobile-landscape"),fontsize:t("#layergroup-font-size"),adaptivefont:t("#layergroup-adaptive-font"),generatorvisible:t("#layergroup-generator-visible")};for(var e in this.forms.group)this.forms.group[e].on("outsideChange",t.proxy(this.activateGroupPropertyChanged,this,e));this.layerEditor.responsive.isEnabled("desktop","Landscape")||this.forms.group.showFieldDesktopLandscape.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("tablet","Portrait")||this.forms.group.showFieldTabletPortrait.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("tablet","Landscape")||this.forms.group.showFieldTabletLandscape.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("mobile","Portrait")||this.forms.group.showFieldMobilePortrait.closest(".n2-mixed-group").css("display","none"),this.layerEditor.responsive.isEnabled("mobile","Landscape")||this.forms.group.showFieldMobileLandscape.closest(".n2-mixed-group").css("display","none")},r.prototype.activateGroupPropertyChanged=function(e,t){if(-1!=this.layerEditor.activeLayerIndex){var i=this.forms.group[e].val();this.layerEditor.layerList[this.layerEditor.activeLayerIndex].setProperty(e,i,"manager")}else{var s=this.forms.group[e].data("field");"undefined"!=typeof s&&null!==s&&s.insideChange("")}},r.prototype.activeGroupPropertyChanged=function(e,t,i){if("function"==typeof this["groupFormSet"+t])this["groupFormSet"+t](i,e.target);else{var s=this.forms.group[t].data("field");"undefined"!=typeof s&&s.insideChange(i)}},r.prototype.groupFormSetname=function(e){},r.prototype.groupFormSetdesktopPortrait=function(e){this.forms.group.showFieldDesktopPortrait.data("field").insideChange(e)},r.prototype.groupFormSetdesktopLandscape=function(e){this.forms.group.showFieldDesktopLandscape.data("field").insideChange(e)},r.prototype.groupFormSettabletPortrait=function(e){this.forms.group.showFieldTabletPortrait.data("field").insideChange(e)},r.prototype.groupFormSettabletLandscape=function(e){this.forms.group.showFieldTabletLandscape.data("field").insideChange(e)},r.prototype.groupFormSetmobilePortrait=function(e){this.forms.group.showFieldMobilePortrait.data("field").insideChange(e)},r.prototype.groupFormSetmobileLandscape=function(e){this.forms.group.showFieldMobileLandscape.data("field").insideChange(e)},i.NextendSmartSliderAdminSlideSidebarSettings=r,a.prototype.initParentLinker=function(){var e=this.fields.parentid.data("field");t("#n2-ss-layer-parent-linker").on({click:function(t){e.click(t)}})},a.prototype.initAlign=function(){this.layerDefault={align:null,valign:null};var e=t("#n2-ss-layer-horizontal-align .n2-radio-option"),i=t("#n2-ss-layer-vertical-align .n2-radio-option");e.add(i).on("click",t.proxy(function(s){if(s.ctrlKey||s.metaKey){var n=t(s.currentTarget),r=n.hasClass("n2-sub-active"),a=n.data("align");switch(a){case"left":case"center":case"right":e.removeClass("n2-sub-active"),r?(t.jStorage.set("ss-item-horizontal-align",null),this.layerDefault.align=null):(t.jStorage.set("ss-item-horizontal-align",a),this.layerDefault.align=a,n.addClass("n2-sub-active"));break;case"top":case"middle":case"bottom":i.removeClass("n2-sub-active"),r?(t.jStorage.set("ss-item-vertical-align",null),this.layerDefault.valign=null):(t.jStorage.set("ss-item-vertical-align",a),this.layerDefault.valign=a,n.addClass("n2-sub-active"))}}else if(-1!=this.activeLayerIndex){var a=t(s.currentTarget).data("align");switch(a){case"left":case"center":case"right":this.horizontalAlign(a,!0);break;case"top":case"middle":case"bottom":this.verticalAlign(a,!0)}}},this)),this.fields.align.on("nextendChange",t.proxy(function(){switch(e.removeClass("n2-active"),this.fields.align.val()){case"left":e.eq(0).addClass("n2-active");break;case"center":e.eq(1).addClass("n2-active");break;case"right":e.eq(2).addClass("n2-active")}},this)),this.fields.valign.on("nextendChange",t.proxy(function(){switch(i.removeClass("n2-active"),this.fields.valign.val()){case"top":i.eq(0).addClass("n2-active");break;case"middle":i.eq(1).addClass("n2-active");break;case"bottom":i.eq(2).addClass("n2-active")}},this));var s=t.jStorage.get("ss-item-horizontal-align",null),n=t.jStorage.get("ss-item-vertical-align",null);null!=s&&(e.eq(l[s]).addClass("n2-sub-active"),this.layerDefault.align=s),null!=n&&(i.eq(l[n]).addClass("n2-sub-active"),this.layerDefault.valign=n)},a.prototype.horizontalAlign=function(e,t){this.fields.align.val()!=e?this.fields.align.data("field").options.eq(l[e]).trigger("click"):t&&this.fields.left.val(0).trigger("change")},a.prototype.verticalAlign=function(e,t){this.fields.valign.val()!=e?this.fields.valign.data("field").options.eq(l[e]).trigger("click"):t&&this.fields.top.val(0).trigger("change")},a.prototype.initEvents=function(){var e=t("#n2-tab-events"),i=e.find(".n2-h3"),s=i.html(),n=t('<div class="n2-editor-header n2-h2 n2-uc"><span>'+s+"</span></div>");i.replaceWith(n)}}(nextend.smartSlider,n2,window);
library/media/dist/smartslider-frontend.js CHANGED
@@ -179,14 +179,6 @@
179
  }
180
  };
181
 
182
- NextendSmartSliderBackgroundImages.prototype.hack = function () {
183
- for (var i = 0; i < this.backgroundImages.length; i++) {
184
- if (this.backgroundImages[i]) {
185
- this.backgroundImages[i].hack();
186
- }
187
- }
188
- };
189
-
190
  scope.NextendSmartSliderBackgroundImages = NextendSmartSliderBackgroundImages;
191
 
192
  function NextendSmartSliderBackgroundImage(i, element, manager) {
@@ -410,11 +402,19 @@
410
  this.responsiveElement.unsetCentered();
411
  break;
412
  case 'center':
413
- node = $('<div style="background-image: url(\'' + src + '\');background-position:' + x + '% ' + y + '%;" class="n2-ss-slide-background-image n2-ss-slide-center"></div>');
 
 
 
 
414
  this.responsiveElement.unsetCentered();
415
  break;
416
  case 'tile':
417
- node = $('<div style="background-image: url(\'' + src + '\');background-position:' + x + '% ' + y + '%;" class="n2-ss-slide-background-image n2-ss-slide-tile"></div>');
 
 
 
 
418
  this.responsiveElement.unsetCentered();
419
  break;
420
  }
@@ -464,12 +464,6 @@
464
  this.image.css('opacity', opacity);
465
  };
466
 
467
- NextendSmartSliderBackgroundImage.prototype.hack = function () {
468
- NextendTween.set(this.element, {
469
- rotation: 0.0001
470
- });
471
- };
472
-
473
  scope.NextendSmartSliderBackgroundImage = NextendSmartSliderBackgroundImage;
474
 
475
 
@@ -512,7 +506,7 @@
512
  spinnerCounter.html(Math.round(current / (total + 1) * 100) + '%');
513
  }, this));
514
  }
515
- $.when(this.smartSlider.responsive.ready, this.smartSlider.backgroundImages.load).done($.proxy(this.showSlider, this));
516
 
517
  } else {
518
  this.smartSlider.responsive.ready.done($.proxy(function () {
@@ -521,13 +515,22 @@
521
  }
522
  };
523
 
 
 
 
 
 
 
 
 
 
524
  NextendSmartSliderLoad.prototype.onScroll = function () {
525
  var $window = $(window);
526
  if (($window.scrollTop() + $window.height() > (this.smartSlider.sliderElement.offset().top + 100))) {
527
 
528
  n2c.log('Fade on scroll - reached');
529
 
530
- $.when(this.smartSlider.responsive.ready, this.smartSlider.backgroundImages.load).done($.proxy(this.showSlider, this));
531
 
532
  $window.off('scroll.' + this.id);
533
  }
@@ -536,6 +539,8 @@
536
  NextendSmartSliderLoad.prototype.showSlider = function (cb) {
537
  n2c.log('Images loaded');
538
 
 
 
539
  $.when.apply($, this.smartSlider.widgetDeferreds).done($.proxy(function () {
540
  n2c.log('Event: BeforeVisible');
541
  this.smartSlider.responsive.doResize();
@@ -822,12 +827,17 @@
822
 
823
  this.widgets = new NextendSmartSliderWidgets(this);
824
 
825
- this.sliderElement.on('universalenter', $.proxy(function () {
826
- this.sliderElement.addClass('n2-hover');
827
- }, this)).on('universalleave', $.proxy(function (e) {
828
- e.stopPropagation();
829
- this.sliderElement.removeClass('n2-hover');
830
- }, this));
 
 
 
 
 
831
 
832
 
833
  this.controls = {};
@@ -930,6 +940,17 @@
930
  this.preReadyResolve();
931
 
932
  this.initCarousel();
 
 
 
 
 
 
 
 
 
 
 
933
  };
934
 
935
  NextendSmartSliderAbstract.prototype.initSlides = function () {
@@ -982,9 +1003,6 @@
982
  };
983
 
984
  NextendSmartSliderAbstract.prototype.shuffleSlides = function () {
985
- for (var i = 0; i < this.slides.length; i++) {
986
- this.slides.eq(i).data('originalIndex', i);
987
- }
988
  this.slides.sort(function () {
989
  return (Math.round(Math.random()) - 0.5);
990
  });
@@ -994,11 +1012,31 @@
994
  for (var i = 0; i < this.slides.length; i++) {
995
  this.shuffled[i] = this.slides.eq(i).data('originalIndex');
996
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
997
  }
998
 
999
  NextendSmartSliderAbstract.prototype.findSlides = function () {
1000
 
1001
  this.realSlides = this.slides = this.sliderElement.find('.n2-ss-slide');
 
 
 
1002
  };
1003
 
1004
  NextendSmartSliderAbstract.prototype.findStaticSlide = function () {
@@ -1365,11 +1403,13 @@
1365
  }
1366
 
1367
  if (this.parameters.controls.tilt) {
1368
- new NextendSmartSliderControlTilt(this);
1369
  }
1370
 
1371
  this.controlAutoplay = new NextendSmartSliderControlAutoplay(this, this.parameters.autoplay);
1372
 
 
 
1373
  }
1374
  };
1375
 
@@ -3501,6 +3541,208 @@
3501
 
3502
  scope.NextendSmartSliderControlAutoplay = NextendSmartSliderControlAutoplay;
3503
  })(n2, window);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3504
  (function ($, scope, undefined) {
3505
  "use strict";
3506
  function NextendSmartSliderControlKeyboard(slider, direction, parameters) {
@@ -4063,6 +4305,22 @@
4063
  layer.css('display', 'none');
4064
  }
4065
  }, this));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4066
  }, this))
4067
  .on('SliderResize', $.proxy(function (e, ratios, responsive) {
4068
 
@@ -4297,12 +4555,14 @@
4297
  this.lastClientHeight = 0;
4298
  this.lastOrientation = 0;
4299
 
 
 
4300
  if (slider.isAdmin) {
4301
  this.doResize = NextendThrottle(this.doResize, 50);
4302
  }
4303
 
4304
  if (typeof nextend.fontsDeferred === 'undefined') {
4305
- this.triggerResize = this._triggerResize;
4306
  }
4307
 
4308
 
@@ -4453,7 +4713,7 @@
4453
  this.orientationMode = NextendSmartSliderResponsive.OrientationMode.SCREEN_WIDTH_ONLY;
4454
  }
4455
 
4456
- nextend.smallestZoom = Math.min(Math.max(parameters.sliderWidthToDevice.mobilePortrait, 120), 380);
4457
 
4458
  switch (this.parameters.basedOn) {
4459
  case 'screen':
@@ -4990,7 +5250,7 @@
4990
  }
4991
  }
4992
 
4993
- if (isChanged) {
4994
  this.resizeResponsiveElements(ratios, timeline, duration);
4995
  this.lastRatios = ratios;
4996
 
@@ -5007,12 +5267,38 @@
5007
 
5008
  NextendSmartSliderResponsive.prototype.triggerResize = function (ratios, timeline) {
5009
  nextend.fontsDeferred.done($.proxy(function () {
5010
- this.triggerResize = this._triggerResize;
5011
- this._triggerResize(ratios, timeline);
 
 
 
 
 
 
 
5012
  }, this));
 
 
5013
  };
5014
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5015
  NextendSmartSliderResponsive.prototype._triggerResize = function (ratios, timeline) {
 
5016
  n2c.log('Event: SliderResize', ratios);
5017
  this.sliderElement.trigger('SliderResize', [ratios, this, timeline]);
5018
  };
@@ -5031,6 +5317,7 @@
5031
  var verticalRatioModifier = this.parameters.verticalRatioModifiers[deviceModeOrientation];
5032
  ratios.slideH *= verticalRatioModifier;
5033
  if (this.parameters.type == 'fullpage') {
 
5034
 
5035
  if (this.parameters.minimumHeightRatio > 0) {
5036
  ratios.h = Math.max(ratios.h, this.parameters.minimumHeightRatio);
@@ -5041,8 +5328,13 @@
5041
  }
5042
 
5043
  if (this.slider.isAdmin) {
5044
- ratios.w = ratios.slideW;
5045
- ratios.h = ratios.slideH;
 
 
 
 
 
5046
  } else {
5047
  if (!this.parameters.constrainRatio) {
5048
  ratios.slideW = ratios.w;
@@ -5058,6 +5350,7 @@
5058
  } else {
5059
  ratios.h *= verticalRatioModifier;
5060
 
 
5061
  if (this.parameters.minimumHeightRatio > 0) {
5062
  ratios.h = Math.max(ratios.h, this.parameters.minimumHeightRatio);
5063
  }
@@ -5114,7 +5407,7 @@
5114
  if (newMode == 'mobile') {
5115
  switch (NextendSmartSliderResponsive._DeviceOrientation[orientation]) {
5116
  case 'Portrait':
5117
- width = Math.max(nextend.smallestZoom, 380);
5118
  break;
5119
  case 'Landscape':
5120
  width = Math.max(nextend.smallestZoom, 568);
@@ -5653,11 +5946,12 @@
5653
  })(n2, window);
5654
  (function ($, scope, undefined) {
5655
 
5656
- function NextendSmartSliderVimeoItem(slider, id, sliderid, parameters, hasImage) {
5657
  this.readyDeferred = $.Deferred();
5658
 
5659
  this.slider = slider;
5660
  this.playerId = id;
 
5661
 
5662
  this.parameters = $.extend({
5663
  vimeourl: "//vimeo.com/144598279",
@@ -5809,7 +6103,19 @@
5809
 
5810
  NextendSmartSliderVimeoItem.prototype.play = function () {
5811
  this.slider.sliderElement.trigger('mediaStarted', this.playerId);
 
 
 
5812
  this.player.play();
 
 
 
 
 
 
 
 
 
5813
  };
5814
 
5815
  NextendSmartSliderVimeoItem.prototype.pause = function () {
@@ -5817,7 +6123,7 @@
5817
  };
5818
 
5819
  NextendSmartSliderVimeoItem.prototype.reset = function () {
5820
- this.player.setCurrentTime(0);
5821
  };
5822
 
5823
  NextendSmartSliderVimeoItem.prototype.setVolume = function (volume) {
@@ -5838,6 +6144,8 @@
5838
  youtubeurl: "//www.youtube.com/watch?v=MKmIwHAFjSU",
5839
  youtubecode: "MKmIwHAFjSU",
5840
  center: 0,
 
 
5841
  autoplay: "1",
5842
  theme: "dark",
5843
  related: "1",
@@ -5911,7 +6219,8 @@
5911
  enablejsapi: 1,
5912
  origin: window.location.protocol + "//" + window.location.host,
5913
  theme: this.parameters.theme,
5914
- modestbranding: 1,
 
5915
  wmode: "opaque",
5916
  rel: this.parameters.related,
5917
  vq: this.parameters.vq,
179
  }
180
  };
181
 
 
 
 
 
 
 
 
 
182
  scope.NextendSmartSliderBackgroundImages = NextendSmartSliderBackgroundImages;
183
 
184
  function NextendSmartSliderBackgroundImage(i, element, manager) {
402
  this.responsiveElement.unsetCentered();
403
  break;
404
  case 'center':
405
+ node = $('<div class="n2-ss-slide-background-image n2-ss-slide-center"></div>')
406
+ .css({
407
+ backgroundImage: "url('" + src + "')",
408
+ backgroundPosition: x + '% ' + y + '%'
409
+ });
410
  this.responsiveElement.unsetCentered();
411
  break;
412
  case 'tile':
413
+ node = $('<div class="n2-ss-slide-background-image n2-ss-slide-tile"></div>')
414
+ .css({
415
+ backgroundImage: "url('" + src + "')",
416
+ backgroundPosition: x + '% ' + y + '%'
417
+ });
418
  this.responsiveElement.unsetCentered();
419
  break;
420
  }
464
  this.image.css('opacity', opacity);
465
  };
466
 
 
 
 
 
 
 
467
  scope.NextendSmartSliderBackgroundImage = NextendSmartSliderBackgroundImage;
468
 
469
 
506
  spinnerCounter.html(Math.round(current / (total + 1) * 100) + '%');
507
  }, this));
508
  }
509
+ $.when(this.smartSlider.responsive.ready, this.smartSlider.backgroundImages.load, this.loadLayerImages).always($.proxy(this.showSlider, this));
510
 
511
  } else {
512
  this.smartSlider.responsive.ready.done($.proxy(function () {
515
  }
516
  };
517
 
518
+ NextendSmartSliderLoad.prototype.loadLayerImages = function () {
519
+ var deferred = $.Deferred();
520
+ this.smartSlider.sliderElement.find('.n2-ss-layers-container').n2imagesLoaded()
521
+ .always(function () {
522
+ deferred.resolve();
523
+ });
524
+ return deferred;
525
+ }
526
+
527
  NextendSmartSliderLoad.prototype.onScroll = function () {
528
  var $window = $(window);
529
  if (($window.scrollTop() + $window.height() > (this.smartSlider.sliderElement.offset().top + 100))) {
530
 
531
  n2c.log('Fade on scroll - reached');
532
 
533
+ $.when(this.smartSlider.responsive.ready, this.smartSlider.backgroundImages.load, this.loadLayerImages).always($.proxy(this.showSlider, this));
534
 
535
  $window.off('scroll.' + this.id);
536
  }
539
  NextendSmartSliderLoad.prototype.showSlider = function (cb) {
540
  n2c.log('Images loaded');
541
 
542
+ this.smartSlider.responsive.isReadyToResize = true;
543
+
544
  $.when.apply($, this.smartSlider.widgetDeferreds).done($.proxy(function () {
545
  n2c.log('Event: BeforeVisible');
546
  this.smartSlider.responsive.doResize();
827
 
828
  this.widgets = new NextendSmartSliderWidgets(this);
829
 
830
+ this.sliderElement.on({
831
+ universalenter: $.proxy(function (e) {
832
+ if (!$(e.target).closest('.n2-full-screen-widget').length) {
833
+ this.sliderElement.addClass('n2-hover');
834
+ }
835
+ }, this),
836
+ universalleave: $.proxy(function (e) {
837
+ e.stopPropagation();
838
+ this.sliderElement.removeClass('n2-hover');
839
+ }, this)
840
+ });
841
 
842
 
843
  this.controls = {};
940
  this.preReadyResolve();
941
 
942
  this.initCarousel();
943
+
944
+ this.sliderElement.find('[role="button"], [tabindex]')
945
+ .keypress(function (event) {
946
+ if (event.charCode === 32 || event.charCode === 13) {
947
+ event.preventDefault();
948
+ $(event.target).click();
949
+ }
950
+ })
951
+ .on('mouseleave', function (e) {
952
+ $(e.currentTarget).blur();
953
+ });
954
  };
955
 
956
  NextendSmartSliderAbstract.prototype.initSlides = function () {
1003
  };
1004
 
1005
  NextendSmartSliderAbstract.prototype.shuffleSlides = function () {
 
 
 
1006
  this.slides.sort(function () {
1007
  return (Math.round(Math.random()) - 0.5);
1008
  });
1012
  for (var i = 0; i < this.slides.length; i++) {
1013
  this.shuffled[i] = this.slides.eq(i).data('originalIndex');
1014
  }
1015
+
1016
+ if (this.parameters.postBackgroundAnimations && this.parameters.postBackgroundAnimations.slides) {
1017
+ var shuffledPBG = [];
1018
+ for (var i = 0; i < this.shuffled.length; i++) {
1019
+ shuffledPBG.push(this.parameters.postBackgroundAnimations.slides[this.shuffled[i]]);
1020
+ }
1021
+ this.parameters.postBackgroundAnimations.slides = shuffledPBG;
1022
+ }
1023
+
1024
+ if (this.parameters.bgAnimations && this.parameters.bgAnimations.slides) {
1025
+ var shuffledBG = [];
1026
+ for (var i = 0; i < this.shuffled.length; i++) {
1027
+ shuffledBG.push(this.parameters.bgAnimations.slides[this.shuffled[i]]);
1028
+ }
1029
+ this.parameters.bgAnimations.slides = shuffledBG;
1030
+ }
1031
+
1032
  }
1033
 
1034
  NextendSmartSliderAbstract.prototype.findSlides = function () {
1035
 
1036
  this.realSlides = this.slides = this.sliderElement.find('.n2-ss-slide');
1037
+ for (var i = 0; i < this.realSlides.length; i++) {
1038
+ this.realSlides.eq(i).data('originalIndex', i);
1039
+ }
1040
  };
1041
 
1042
  NextendSmartSliderAbstract.prototype.findStaticSlide = function () {
1403
  }
1404
 
1405
  if (this.parameters.controls.tilt) {
1406
+ new NextendSmartSliderControlFullscreen(this);
1407
  }
1408
 
1409
  this.controlAutoplay = new NextendSmartSliderControlAutoplay(this, this.parameters.autoplay);
1410
 
1411
+ this.controlFullscreen = new NextendSmartSliderControlFullscreen(this);
1412
+
1413
  }
1414
  };
1415
 
3541
 
3542
  scope.NextendSmartSliderControlAutoplay = NextendSmartSliderControlAutoplay;
3543
  })(n2, window);
3544
+ (function ($, scope, undefined) {
3545
+ "use strict";
3546
+ function NextendSmartSliderControlFullscreen(slider, direction, parameters) {
3547
+
3548
+ this.slider = slider;
3549
+
3550
+ this.responsive = this.slider.responsive;
3551
+
3552
+ this._type = this.responsive.parameters.type;
3553
+ this._forceFull = this.responsive.parameters.forceFull;
3554
+
3555
+ this.forceFullpage = this._type == 'auto' || this._type == 'fullwidth' || this._type == 'fullpage';
3556
+ if (this.forceFullpage) {
3557
+ this._upscale = this.responsive.parameters.upscale;
3558
+ this._minimumHeightRatio = $.extend({}, this.responsive.parameters.minimumHeightRatio);
3559
+ this._maximumHeightRatio = $.extend({}, this.responsive.parameters.maximumHeightRatio);
3560
+ }
3561
+
3562
+ this.isFullScreen = false;
3563
+
3564
+ this.fullParent = this.slider.sliderElement.closest('.n2-ss-align');
3565
+
3566
+
3567
+ this.browserSpecific = {};
3568
+ var elem = this.slider.sliderElement[0];
3569
+ if (elem.requestFullscreen) {
3570
+ this.browserSpecific.requestFullscreen = 'requestFullscreen';
3571
+ this.browserSpecific.event = 'fullscreenchange';
3572
+ } else if (elem.msRequestFullscreen) {
3573
+ this.browserSpecific.requestFullscreen = 'msRequestFullscreen';
3574
+ this.browserSpecific.event = 'MSFullscreenChange';
3575
+ } else if (elem.mozRequestFullScreen) {
3576
+ this.browserSpecific.requestFullscreen = 'mozRequestFullScreen';
3577
+ this.browserSpecific.event = 'mozfullscreenchange';
3578
+ } else if (elem.webkitRequestFullscreen) {
3579
+ this.browserSpecific.requestFullscreen = 'webkitRequestFullscreen';
3580
+ this.browserSpecific.event = 'webkitfullscreenchange';
3581
+ } else {
3582
+ this.browserSpecific.requestFullscreen = 'nextendRequestFullscreen';
3583
+ this.browserSpecific.event = 'nextendfullscreenchange';
3584
+
3585
+ this.fullParent[0][this.browserSpecific.requestFullscreen] = $.proxy(function () {
3586
+ this.fullParent.css({
3587
+ position: 'fixed',
3588
+ left: 0,
3589
+ top: 0,
3590
+ width: '100%',
3591
+ height: '100%',
3592
+ backgroundColor: '#000',
3593
+ zIndex: 1000000
3594
+ });
3595
+
3596
+ document.fullscreenElement = this.fullParent[0];
3597
+
3598
+
3599
+ this.triggerEvent(document, this.browserSpecific.event);
3600
+
3601
+ $(window).trigger('resize');
3602
+ }, this);
3603
+ }
3604
+
3605
+ if (document.exitFullscreen) {
3606
+ this.browserSpecific.exitFullscreen = 'exitFullscreen';
3607
+ } else if (document.msExitFullscreen) {
3608
+ this.browserSpecific.exitFullscreen = 'msExitFullscreen';
3609
+ } else if (document.mozCancelFullScreen) {
3610
+ this.browserSpecific.exitFullscreen = 'mozCancelFullScreen';
3611
+ } else if (document.webkitExitFullscreen) {
3612
+ this.browserSpecific.exitFullscreen = 'webkitExitFullscreen';
3613
+ } else {
3614
+ this.browserSpecific.exitFullscreen = 'nextendExitFullscreen';
3615
+ this.fullParent[0][this.browserSpecific.exitFullscreen] = $.proxy(function () {
3616
+ this.fullParent.css({
3617
+ position: '',
3618
+ left: '',
3619
+ top: '',
3620
+ width: '',
3621
+ height: '',
3622
+ backgroundColor: '',
3623
+ zIndex: ''
3624
+ });
3625
+
3626
+ document.fullscreenElement = null;
3627
+
3628
+ this.triggerEvent(document, this.browserSpecific.event);
3629
+
3630
+ }, this);
3631
+ }
3632
+ document.addEventListener(this.browserSpecific.event, $.proxy(this.fullScreenChange, this));
3633
+ };
3634
+
3635
+ NextendSmartSliderControlFullscreen.prototype.switchState = function () {
3636
+ this.isFullScreen = !this.isFullScreen;
3637
+ if (this.isFullScreen) {
3638
+ this._fullScreen();
3639
+ } else {
3640
+ this._normalScreen();
3641
+ }
3642
+ };
3643
+
3644
+ NextendSmartSliderControlFullscreen.prototype.requestFullscreen = function () {
3645
+ if (!this.isFullScreen) {
3646
+ this.isFullScreen = true;
3647
+ this._fullScreen();
3648
+ return true;
3649
+ }
3650
+ return false;
3651
+ }
3652
+
3653
+ NextendSmartSliderControlFullscreen.prototype.exitFullscreen = function () {
3654
+ if (this.isFullScreen) {
3655
+ this.isFullScreen = false;
3656
+ this._normalScreen();
3657
+ return true;
3658
+ }
3659
+ return false;
3660
+ }
3661
+
3662
+ NextendSmartSliderControlFullscreen.prototype.triggerEvent = function (el, eventName) {
3663
+ var event;
3664
+ if (document.createEvent) {
3665
+ event = document.createEvent('HTMLEvents');
3666
+ event.initEvent(eventName, true, true);
3667
+ } else if (document.createEventObject) {// IE < 9
3668
+ event = document.createEventObject();
3669
+ event.eventType = eventName;
3670
+ }
3671
+ event.eventName = eventName;
3672
+ if (el.dispatchEvent) {
3673
+ el.dispatchEvent(event);
3674
+ } else if (el.fireEvent && htmlEvents['on' + eventName]) {// IE < 9
3675
+ el.fireEvent('on' + event.eventType, event);// can trigger only real event (e.g. 'click')
3676
+ } else if (el[eventName]) {
3677
+ el[eventName]();
3678
+ } else if (el['on' + eventName]) {
3679
+ el['on' + eventName]();
3680
+ }
3681
+ }
3682
+
3683
+ NextendSmartSliderControlFullscreen.prototype._fullScreen = function () {
3684
+
3685
+ if (this.forceFullpage) {
3686
+ this.responsive.parameters.type = 'fullpage';
3687
+ this.responsive.parameters.upscale = true;
3688
+ this.responsive.parameters.forceFull = false;
3689
+ this._marginLeft = this.responsive.containerElement[0].style.marginLeft;
3690
+ this.responsive.containerElement.css(nextend.rtl.marginLeft, 0);
3691
+ }
3692
+ this.fullParent.css({
3693
+ width: '100%',
3694
+ height: '100%',
3695
+ backgroundColor: $('body').css('background-color')
3696
+ }).addClass("n2-ss-in-fullscreen");
3697
+ this.fullParent.get(0)[this.browserSpecific.requestFullscreen]();
3698
+ };
3699
+
3700
+ NextendSmartSliderControlFullscreen.prototype._normalScreen = function () {
3701
+ if (document[this.browserSpecific.exitFullscreen]) {
3702
+ document[this.browserSpecific.exitFullscreen]();
3703
+ } else if (this.fullParent[0][this.browserSpecific.exitFullscreen]) {
3704
+ this.fullParent[0][this.browserSpecific.exitFullscreen]();
3705
+ }
3706
+ };
3707
+
3708
+ NextendSmartSliderControlFullscreen.prototype.fullScreenChange = function () {
3709
+ if (this.isDocumentInFullScreenMode()) {
3710
+ this.slider.sliderElement.triggerHandler('n2FullScreen');
3711
+ $('html').addClass('n2-in-fullscreen');
3712
+ this.isFullScreen = true;
3713
+ $(window).trigger('resize'); //needed for Safari
3714
+ } else {
3715
+ if (this.forceFullpage) {
3716
+ this.responsive.parameters.type = this._type;
3717
+ this.responsive.parameters.upscale = this._upscale;
3718
+ this.responsive.parameters.forceFull = this._forceFull;
3719
+ this.responsive.parameters.minimumHeightRatio = $.extend({}, this._minimumHeightRatio);
3720
+ this.responsive.parameters.maximumHeightRatio = $.extend({}, this._maximumHeightRatio);
3721
+ this.responsive.containerElement.css(nextend.rtl.marginLeft, this._marginLeft);
3722
+ this.fullParent.css({
3723
+ width: null,
3724
+ height: null,
3725
+ backgroundColor: null
3726
+ }).removeClass("n2-ss-in-fullscreen");
3727
+ $('html').removeClass('n2-in-fullscreen');
3728
+ $(window).trigger('resize');
3729
+ this.isFullScreen = false;
3730
+ this.slider.sliderElement.triggerHandler('n2ExitFullScreen');
3731
+ }
3732
+ }
3733
+ };
3734
+
3735
+ NextendSmartSliderControlFullscreen.prototype.isDocumentInFullScreenMode = function () {
3736
+ // Note that the browser fullscreen (triggered by short keys) might
3737
+ // be considered different from content fullscreen when expecting a boolean
3738
+ return ((document.fullscreenElement && document.fullscreenElement !== null) || // alternative standard methods
3739
+ (document.msFullscreenElement && document.msFullscreenElement !== null) ||
3740
+ document.mozFullScreen || document.webkitIsFullScreen); // current working methods
3741
+ };
3742
+
3743
+
3744
+ scope.NextendSmartSliderControlFullscreen = NextendSmartSliderControlFullscreen;
3745
+ })(n2, window);
3746
  (function ($, scope, undefined) {
3747
  "use strict";
3748
  function NextendSmartSliderControlKeyboard(slider, direction, parameters) {
4305
  layer.css('display', 'none');
4306
  }
4307
  }, this));
4308
+ this.$groups.each($.proxy(function (i, el) {
4309
+ var layer = $(el),
4310
+ show = layer.data(mode);
4311
+ if ((typeof show == 'undefined' || parseInt(show))) {
4312
+ if (this.getLayerProperty(layer, 'adaptivefont')) {
4313
+ layer.css('font-size', (16 * this.getLayerResponsiveProperty(layer, this.currentMode, 'fontsize') / 100) + 'px');
4314
+ } else {
4315
+ layer.css('font-size', this.getLayerResponsiveProperty(layer, this.currentMode, 'fontsize') + '%');
4316
+ }
4317
+ layer.data('shows', 1);
4318
+ layer.css('display', 'block');
4319
+ } else {
4320
+ layer.data('shows', 0);
4321
+ layer.css('display', 'none');
4322
+ }
4323
+ }, this));
4324
  }, this))
4325
  .on('SliderResize', $.proxy(function (e, ratios, responsive) {
4326
 
4555
  this.lastClientHeight = 0;
4556
  this.lastOrientation = 0;
4557
 
4558
+ this.invalidateResponsiveState = true;
4559
+
4560
  if (slider.isAdmin) {
4561
  this.doResize = NextendThrottle(this.doResize, 50);
4562
  }
4563
 
4564
  if (typeof nextend.fontsDeferred === 'undefined') {
4565
+ this.triggerResize = this.triggerResizeWithoutFontLoader;
4566
  }
4567
 
4568
 
4713
  this.orientationMode = NextendSmartSliderResponsive.OrientationMode.SCREEN_WIDTH_ONLY;
4714
  }
4715
 
4716
+ nextend.smallestZoom = Math.min(Math.max(parameters.sliderWidthToDevice.mobilePortrait, 120), 320);
4717
 
4718
  switch (this.parameters.basedOn) {
4719
  case 'screen':
5250
  }
5251
  }
5252
 
5253
+ if (this.invalidateResponsiveState || isChanged) {
5254
  this.resizeResponsiveElements(ratios, timeline, duration);
5255
  this.lastRatios = ratios;
5256
 
5267
 
5268
  NextendSmartSliderResponsive.prototype.triggerResize = function (ratios, timeline) {
5269
  nextend.fontsDeferred.done($.proxy(function () {
5270
+ var cb = $.proxy(function () {
5271
+ this.triggerResize = this._triggerResize;
5272
+ this._triggerResize(ratios, timeline);
5273
+ }, this);
5274
+ if ((/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor)) || /CriOS/.exec(window.navigator.userAgent)) {
5275
+ setTimeout(cb, 200);
5276
+ } else {
5277
+ cb();
5278
+ }
5279
  }, this));
5280
+
5281
+ this.invalidateResponsiveState = false;
5282
  };
5283
 
5284
+ NextendSmartSliderResponsive.prototype.triggerResizeWithoutFontLoader = function (ratios, timeline) {
5285
+ nextend.loadDeferred.done($.proxy(function () {
5286
+ var cb = $.proxy(function () {
5287
+ this.triggerResize = this._triggerResize;
5288
+ this._triggerResize(ratios, timeline);
5289
+ }, this);
5290
+ if ((/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor)) || /CriOS/.exec(window.navigator.userAgent)) {
5291
+ setTimeout(cb, 200);
5292
+ } else {
5293
+ cb();
5294
+ }
5295
+ }, this));
5296
+
5297
+ this.invalidateResponsiveState = false;
5298
+ }
5299
+
5300
  NextendSmartSliderResponsive.prototype._triggerResize = function (ratios, timeline) {
5301
+ this.invalidateResponsiveState = false;
5302
  n2c.log('Event: SliderResize', ratios);
5303
  this.sliderElement.trigger('SliderResize', [ratios, this, timeline]);
5304
  };
5317
  var verticalRatioModifier = this.parameters.verticalRatioModifiers[deviceModeOrientation];
5318
  ratios.slideH *= verticalRatioModifier;
5319
  if (this.parameters.type == 'fullpage') {
5320
+ ratios.h *= verticalRatioModifier;
5321
 
5322
  if (this.parameters.minimumHeightRatio > 0) {
5323
  ratios.h = Math.max(ratios.h, this.parameters.minimumHeightRatio);
5328
  }
5329
 
5330
  if (this.slider.isAdmin) {
5331
+ if (!this.parameters.constrainRatio) {
5332
+ ratios.w = ratios.slideW;
5333
+ ratios.h = ratios.slideH;
5334
+ } else {
5335
+ ratios.slideH = Math.min(ratios.slideH, ratios.h);
5336
+ ratios.slideH = ratios.slideW = Math.min(ratios.slideW, ratios.slideH);
5337
+ }
5338
  } else {
5339
  if (!this.parameters.constrainRatio) {
5340
  ratios.slideW = ratios.w;
5350
  } else {
5351
  ratios.h *= verticalRatioModifier;
5352
 
5353
+
5354
  if (this.parameters.minimumHeightRatio > 0) {
5355
  ratios.h = Math.max(ratios.h, this.parameters.minimumHeightRatio);
5356
  }
5407
  if (newMode == 'mobile') {
5408
  switch (NextendSmartSliderResponsive._DeviceOrientation[orientation]) {
5409
  case 'Portrait':
5410
+ width = Math.max(nextend.smallestZoom, 320);
5411
  break;
5412
  case 'Landscape':
5413
  width = Math.max(nextend.smallestZoom, 568);
5946
  })(n2, window);
5947
  (function ($, scope, undefined) {
5948
 
5949
+ function NextendSmartSliderVimeoItem(slider, id, sliderid, parameters, hasImage, start) {
5950
  this.readyDeferred = $.Deferred();
5951
 
5952
  this.slider = slider;
5953
  this.playerId = id;
5954
+ this.start = start;
5955
 
5956
  this.parameters = $.extend({
5957
  vimeourl: "//vimeo.com/144598279",
6103
 
6104
  NextendSmartSliderVimeoItem.prototype.play = function () {
6105
  this.slider.sliderElement.trigger('mediaStarted', this.playerId);
6106
+ if (this.start != 0) {
6107
+ this.player.setCurrentTime(this.start);
6108
+ }
6109
  this.player.play();
6110
+
6111
+ this.player.getCurrentTime().then($.proxy(function (seconds) {
6112
+ if (seconds < this.start && this.start != 0) {
6113
+ this.player.setCurrentTime(this.start);
6114
+ }
6115
+ this.player.play();
6116
+ }, this)).catch($.proxy(function (error) {
6117
+ this.player.play();
6118
+ }, this));
6119
  };
6120
 
6121
  NextendSmartSliderVimeoItem.prototype.pause = function () {
6123
  };
6124
 
6125
  NextendSmartSliderVimeoItem.prototype.reset = function () {
6126
+ this.player.setCurrentTime(this.start);
6127
  };
6128
 
6129
  NextendSmartSliderVimeoItem.prototype.setVolume = function (volume) {
6144
  youtubeurl: "//www.youtube.com/watch?v=MKmIwHAFjSU",
6145
  youtubecode: "MKmIwHAFjSU",
6146
  center: 0,
6147
+ showinfo: 1,
6148
+ modestbranding: 1,
6149
  autoplay: "1",
6150
  theme: "dark",
6151
  related: "1",
6219
  enablejsapi: 1,
6220
  origin: window.location.protocol + "//" + window.location.host,
6221
  theme: this.parameters.theme,
6222
+ showinfo: this.parameters.start.showinfo,
6223
+ modestbranding: this.parameters.start.modestbranding,
6224
  wmode: "opaque",
6225
  rel: this.parameters.related,
6226
  vq: this.parameters.vq,
library/media/dist/smartslider-frontend.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e,t,i){function s(t){this.device=null,this.load=e.Deferred(),this.slider=t,this.slides=this.slider.realSlides,this.loaded=[],this.lazyLoad=t.parameters.lazyLoad,this.lazyLoadNeighbor=t.parameters.lazyLoadNeighbor,this.deviceDeferred=e.Deferred(),this.backgroundImages=[];for(var i=0;i<this.slides.length;i++){this.loaded[i]=!1;var s=this.slides.eq(i).find(".n2-ss-slide-background");s.length>0?this.backgroundImages[i]=new n(i,s,this):this.backgroundImages[i]=!1,this.slides.eq(i).data("slideBackground",this.backgroundImages[i])}this.slider.sliderElement.one("SliderDevice",e.proxy(this.onSlideDeviceChangedFirst,this))}function n(t,i,s){this.responsiveElement=!1,this.loadStarted=!1,this.i=t,this.element=i,this.manager=s,this.loadDeferred=e.Deferred();var n=i.find(".n2-ss-slide-background-image");if(this.image=n,n.hasClass("n2-ss-slide-simple"))this.mode="simple",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-fill"))this.mode="fill",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-fit"))this.mode="fit",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-stretch"))this.mode="stretch",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-center")){this.mode="center";var r=n.css("backgroundImage").match(/url\(["]*([^)"]+)["]*\)/i);r.length>0&&(this.currentSrc=r[1])}else if(n.hasClass("n2-ss-slide-tile")){this.mode="tile";var r=n.css("backgroundImage").match(/url\(["]*([^)"]+)["]*\)/i);r.length>0&&(this.currentSrc=r[1])}else if(n.hasClass("n2-ss-slide-fixed")&&!(n2const.isPhone&&!this.manager.slider.parameters["background.parallax.mobile"]||n2const.isTablet&&!this.manager.slider.parameters["background.parallax.tablet"])){this.mode="fixed";var r=n.css("backgroundImage").match(/url\(["]*([^)"]+)["]*\)/i);r.length>0&&(this.currentSrc=r[1])}else this.mode="fill",this.currentSrc="";if(this.x=n.data("x"),this.y=n.data("y"),this.hash=i.data("hash"),this.desktopSrc=i.data("desktop")||"",this.tabletSrc=i.data("tablet")||"",this.mobileSrc=i.data("mobile")||"",nextend.isRetina){var a=i.data("desktop-retina");a&&(this.desktopSrc=a),a=i.data("tablet-retina"),a&&(this.tabletSrc=a),a=i.data("mobile-retina"),a&&(this.mobileSrc=a)}var o=i.data("opacity");o>=0&&1>o&&(this.opacity=o),s.slider.isAdmin&&(this._change=this.change,this.change=this.changeAdmin),this.listenImageManager()}s.prototype.whenWithProgress=function(t){for(var i=0,s=e.Deferred(),n=0;n<t.length;n++)t[n].done(function(){s.notify(++i,t.length)});return e.when.apply(e,t).done(function(){s.resolveWith(null,arguments)}),s.promise()},s.prototype.getBackgroundImages=function(){return this.backgroundImages},s.prototype.onSlideDeviceChangedFirst=function(t,i){this.onSlideDeviceChanged(t,i),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",e.proxy(this.onSlideDeviceChanged,this)),1==this.lazyLoad?(this.preLoad=this.preLoadLazyNeighbor,this.load=e.when(this.preLoad(this.slider.currentSlideIndex))):2==this.lazyLoad?(e(window).load(e.proxy(this.preLoadAll,this)),this.load=e.when(this.preLoad(this.slider.currentSlideIndex))):this.load=this.whenWithProgress(this.preLoadAll())},s.prototype.onSlideDeviceChanged=function(e,t){this.device=t;for(var i=0;i<this.backgroundImages.length;i++)this.backgroundImages[i]&&this.backgroundImages[i].onSlideDeviceChanged(t)},s.prototype.changed=function(e){1==this.lazyLoad||2==this.lazyLoad?e==this.slider.currentSlideIndex&&this.preLoad(e):this.preLoad(e)},s.prototype.preLoadCurrent=function(){this.preLoad(this.slider.currentSlideIndex)},s.prototype.preLoadAll=function(){for(var e=[],t=0;t<this.backgroundImages.length;t++)e.push(this._preLoad(t));return e},s.prototype.preLoad=function(e){return this._preLoad(e)},s.prototype.preLoadLazyNeighbor=function(t){var i=this.lazyLoadNeighbor,s=[this._preLoad(t)];if(i){for(var n=0,r=t;i>n;)r--,0>r&&(r=this.backgroundImages.length-1),s.push(this._preLoad(r)),n++;for(n=0,r=t;i>n;)r++,r>=this.backgroundImages.length&&(r=0),s.push(this._preLoad(r)),n++}var a=e.Deferred();if(1!=s[0].state()&&"resolved"!=s[0].state()){var o=setTimeout(e.proxy(function(){this.slider.load.showSpinner("backgroundImage"+t),o=null},this),50);e.when.apply(e,s).done(e.proxy(function(){o?(clearTimeout(o),o=null):this.slider.load.removeSpinner("backgroundImage"+t),setTimeout(function(){a.resolve()},100)},this))}else setTimeout(function(){a.resolve()},100);return a},s.prototype._preLoad=function(t){return this.loaded[t]||(this.slides.eq(t).find("[data-lazysrc]").each(function(){var t=e(this);t.attr("src",t.data("lazysrc"))}),this.loaded[t]=!0),this.backgroundImages[t]?this.backgroundImages[t].preLoad():!0},s.prototype.hack=function(){for(var e=0;e<this.backgroundImages.length;e++)this.backgroundImages[e]&&this.backgroundImages[e].hack()},t.NextendSmartSliderBackgroundImages=s,n.prototype.fixNatural=function(e){var t=new Image;t.src=e.src,e.naturalWidth=t.width,e.naturalHeight=t.height},n.prototype.preLoad=function(){return"pending"==this.loadDeferred.state()&&(this.loadStarted=!0,this.manager.deviceDeferred.done(e.proxy(function(){this.onSlideDeviceChanged(this.manager.device),this.element.n2imagesLoaded(e.proxy(function(){this.isLoaded=!0;var e=this.image[0];"IMG"==e.tagName&&"undefined"==typeof e.naturalWidth&&this.fixNatural(e),this.loadDeferred.resolve(this.element)},this))},this))),this.loadDeferred},n.prototype.afterLoaded=function(){return e.when(this.loadDeferred,this.manager.slider.responsive.ready)},n.prototype.onSlideDeviceChanged=function(e){var t=this.desktopSrc;"mobile"==e.device?this.mobileSrc?t=this.mobileSrc:this.tabletSrc&&(t=this.tabletSrc):"tablet"==e.device&&this.tabletSrc&&(t=this.tabletSrc),this.change(t,"",this.mode,this.x,this.y)},n.prototype.addResponsiveElement=function(e){this.responsiveElement=e},n.prototype.listenImageManager=function(){""!=this.hash&&e(window).on(this.hash,e.proxy(this.onImageManagerChanged,this))},n.prototype.notListenImageManager=function(){""!=this.hash&&e(window).off(this.hash,null,e.proxy(this.onImageManagerChanged,this))},n.prototype.onImageManagerChanged=function(e,t){this.tabletSrc=t.tablet.image,this.mobileSrc=t.mobile.image,"tablet"!=this.manager.device.device&&"mobile"!=this.manager.device.device||this.onSlideDeviceChanged(this.manager.device)},n.prototype.changeDesktop=function(t,i,s,n,r){if(this.notListenImageManager(),this.desktopSrc=t,this.hash=md5(t),"default"==s&&(s=nextend.smartSlider.slideBackgroundMode),this.change(t,i,s,n,r),""!=t){var a=new Image;a.addEventListener("load",e.proxy(function(){e.when(nextend.imageManager.getVisual(t)).done(e.proxy(function(e){this.onImageManagerChanged(null,e.value),this.listenImageManager()},this))},this),!1),a.src=nextend.imageHelper.fixed(t)}else this.tabletSrc="",this.mobileSrc=""},n.prototype.changeAdmin=function(e,t,i,s,n){this.manager.slider.parameters.dynamicHeight&&(i="simple"),this._change(nextend.imageHelper.fixed(e),t,i,s,n)},n.prototype.change=function(t,i,s,n,r){if(n=parseInt(n),r=parseInt(r),isNaN(n)&&(n=50),n=Math.max(0,Math.min(100,n)),isNaN(r)&&(r=50),r=Math.max(0,Math.min(100,r)),(this.currentSrc!=t||this.mode!=s||this.x!=n||this.y!=r)&&this.loadStarted){var a=null;switch(s){case"simple":a=e('<img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-simple" />');break;case"fill":a=e('<img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-fill" />'),this.responsiveElement.setCentered();break;case"fit":a=e('<img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-fit" />'),this.responsiveElement.setCentered();break;case"stretch":a=e('<img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-stretch" />'),this.responsiveElement.unsetCentered();break;case"center":a=e("<div style=\"background-image: url('"+t+"');background-position:"+n+"% "+r+'%;" class="n2-ss-slide-background-image n2-ss-slide-center"></div>'),this.responsiveElement.unsetCentered();break;case"tile":a=e("<div style=\"background-image: url('"+t+"');background-position:"+n+"% "+r+'%;" class="n2-ss-slide-background-image n2-ss-slide-tile"></div>'),this.responsiveElement.unsetCentered()}switch(""==t&&a.css("display","none"),a.css("opacity",this.opacity),this.image.replaceWith(a).remove(),this.responsiveElement.element=this.image=a,this.currentSrc=t,this.mode=s,this.x=n,this.y=r,"pending"==this.loadDeferred.state()&&this.loadDeferred.resolve(),this.loadDeferred=e.Deferred(),this.manager.changed(this.i),s){case"fill":case"fit":this.afterLoaded().done(e.proxy(function(){this.responsiveElement.afterLoaded(),this.responsiveElement.refreshRatio(),this.responsiveElement._refreshResize()},this));break;case"stretch":case"center":case"tile":case"fixed":case"simple":this.responsiveElement._refreshResize()}}},n.prototype.setOpacity=function(e){this.opacity=e,this.image.css("opacity",e)},n.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},t.NextendSmartSliderBackgroundImage=n}(n2,window),function(e,t,i){function s(t,i){this.smartSlider=t,this.spinnerKey="fadePlaceholder",this.id=t.sliderElement.attr("id"),this.parameters=e.extend({fade:1,scroll:0},i),this.spinner=e("#"+this.id+"-spinner"),this.deferred=e.Deferred()}s.prototype.start=function(){if(this.parameters.scroll){var t=e(window);t.on("scroll."+this.id,e.proxy(this.onScroll,this)),this.onScroll()}else if(this.parameters.fade){this.loadingArea=e("#"+this.id+"-placeholder").eq(0),this.showSpinner("fadePlaceholder");var i=this.spinner.find(".n2-ss-spinner-counter");i.length&&this.smartSlider.backgroundImages.load.progress(e.proxy(function(e,t){i.html(Math.round(e/(t+1)*100)+"%")},this)),e.when(this.smartSlider.responsive.ready,this.smartSlider.backgroundImages.load).done(e.proxy(this.showSlider,this))}else this.smartSlider.responsive.ready.done(e.proxy(function(){this.showSlider()},this))},s.prototype.onScroll=function(){var t=e(window);t.scrollTop()+t.height()>this.smartSlider.sliderElement.offset().top+100&&(e.when(this.smartSlider.responsive.ready,this.smartSlider.backgroundImages.load).done(e.proxy(this.showSlider,this)),t.off("scroll."+this.id))},s.prototype.showSlider=function(t){e.when.apply(e,this.smartSlider.widgetDeferreds).done(e.proxy(function(){this.smartSlider.responsive.doResize(),this.smartSlider.sliderElement.trigger("BeforeVisible"),this.smartSlider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.removeSpinner("fadePlaceholder"),e("#"+this.id+"-placeholder").remove(),this.loadingArea=this.smartSlider.sliderElement,"function"==typeof t?t(this.deferred):this.deferred.resolve()},this))},s.prototype.loaded=function(e){this.deferred.done(e)},s.prototype.showSpinner=function(e){this.spinnerKey=e,this.spinner.appendTo(this.loadingArea).css("display","")},s.prototype.removeSpinner=function(e){this.spinnerKey==e&&(this.spinner.detach(),this.spinnerKey="")},t.NextendSmartSliderLoad=s}(n2,window),function(e,t,i){function s(){this.sliders={},this.readys={},this._resetCounters=[]}s.prototype.makeReady=function(e,t){if(this.sliders[e]=t,"undefined"!=typeof this.readys[e])for(var i=0;i<this.readys[e].length;i++)this.readys[e][i].call(t,t,t.sliderElement)},s.prototype.ready=function(e,t){"undefined"!=typeof this.sliders[e]?t.call(this.sliders[e],this.sliders[e],this.sliders[e].sliderElement):("undefined"==typeof this.readys[e]&&(this.readys[e]=[]),this.readys[e].push(t))},s.prototype.trigger=function(t,i){var s=n2(t),n=i.split(","),r=s.closest(".n2-ss-slide,.n2-ss-static-slide");if(n.length>1){-1==e.inArray(t,this._resetCounters)&&(this._resetCounters.push(t),r.on("layerAnimationSetStart.resetCounter",function(){s.data("eventCounter",0)}));var a=s.data("eventCounter")||0;i=n[a],a++,a>n.length-1&&(a=0),s.data("eventCounter",a)}r.triggerHandler(i)},s.prototype.applyAction=function(e,t){var i=n2(e).closest(".n2-ss-slider").data("ss");i[t].apply(i,Array.prototype.slice.call(arguments,2))},window.n2ss=new s}(n2,window),function($,scope,undefined){function NextendSmartSliderAbstract(e,t){this.startedDeferred=$.Deferred(),e instanceof n2&&(e="#"+e.attr("id"));var i=e.substr(1);return window[i]&&window[i]instanceof NextendSmartSliderAbstract?!1:(window[i]=this,this.readyDeferred=$.Deferred(),void $(e).n2waitUntilExists(e,$.proxy(function(){var s=$(e);if(this.nextCarousel=this.next,this.previousCarousel=this.previous,"SCRIPT"==s.prop("tagName")){var n=s.data("dependency"),r=s.data("delay"),a=$.proxy(function(){var n=$(s.html().replace(/<_s_c_r_i_p_t/g,"<script").replace(/<_\/_s_c_r_i_p_t/g,"</script"));s.replaceWith(n),this.postInit(i,$(e),t),$(window).triggerHandler("n2Rocket",[this.sliderElement])},this);n&&$("#n2-ss-"+n).length?n2ss.ready(n,$.proxy(function(e){e.ready(a)},this)):r?setTimeout(a,r):a()}else this.postInit(i,s,t)},this),!0))}NextendSmartSliderAbstract.prototype.postInit=function(e,t,i){i.isDelayed?setTimeout($.proxy(this._postInit,this,e,t,i),200):this._postInit(e,t,i)},NextendSmartSliderAbstract.prototype._postInit=function(e,t,i){var s=t.is(":visible");s?this.__postInit(e,t,i):setTimeout($.proxy(this._postInit,this,e,t,i),200)},NextendSmartSliderAbstract.prototype.__postInit=function(id,sliderElement,parameters){this.killed=!1,this.isAdmin=!1,this.currentSlideIndex=0,this.responsive=!1,this.layerMode=!0,this._lastChangeTime=0,this.id=parseInt(id.replace("n2-ss-","")),this.sliderElement=sliderElement.data("ss",this),this.parameters=$.extend({admin:!1,playWhenVisible:1,isStaticEdited:!1,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{drag:!1,touch:"horizontal",keyboard:!1,scroll:!1,tilt:!1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},foreverLayerAnimation:!1,parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:[],dynamicHeight:0,lightbox:[],lightboxDeviceImages:[],titles:[],descriptions:[],"background.parallax.tablet":0,"background.parallax.mobile":0,allowBGImageAttachmentFixed:1},parameters);try{eval(this.parameters.callbacks)}catch(e){console.error(e)}this.startVisibilityCheck(),n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",$.proxy(this.addWidget,this)),this.isAdmin=!!this.parameters.admin,this.isAdmin&&(this.changeTo=function(){}),this.load=new NextendSmartSliderLoad(this,this.parameters.load),this.findSlides(),this.randomize(),this.currentSlideIndex=this.__getActiveSlideIndex();var forceActiveSlideIndex="undefined"!=typeof window["ss"+this.id]?parseInt(window["ss"+this.id]):null;if(null!==forceActiveSlideIndex&&this.changeActiveBeforeLoad(forceActiveSlideIndex),!this.isAdmin&&this.parameters.maintainSession&&"undefined"!=typeof sessionStorage){var sessionIndex=parseInt(sessionStorage.getItem("ss-"+this.id));null===forceActiveSlideIndex&&null!==sessionIndex&&this.changeActiveBeforeLoad(sessionIndex),this.sliderElement.on("mainAnimationComplete",$.proxy(function(e,t,i,s){sessionStorage.setItem("ss-"+this.id,s)},this))}this.backgroundImages=new NextendSmartSliderBackgroundImages(this);for(var i=0;i<this.parameters.initCallbacks.length;i++)new Function(this.parameters.initCallbacks[i])(this);if(this.initSlides(),this.widgets=new NextendSmartSliderWidgets(this),this.sliderElement.on("universalenter",$.proxy(function(){this.sliderElement.addClass("n2-hover")},this)).on("universalleave",$.proxy(function(e){e.stopPropagation(),this.sliderElement.removeClass("n2-hover")},this)),this.controls={},this.layerMode&&this.initMainAnimationWithLayerAnimation(),this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(e){e.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){if(this.initControls(),this.startedDeferred.resolve(this),!this.isAdmin){var event="click";"0"!=this.parameters.controls.touch&&this.parameters.controls.touch&&(event="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(event,function(){eval(el.data("n2click"))})}),this.sliderElement.find("[data-click]").each(function(i,el){var el=$(el).on("click",function(){eval(el.data("click"))}).css("cursor","pointer")}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&&4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))}),this.sliderElement.find("[data-mouseenter]").each(function(i,el){var el=$(el).on("mouseenter",function(){eval(el.data("mouseenter"))})}),this.sliderElement.find("[data-mouseleave]").each(function(i,el){var el=$(el).on("mouseleave",function(){eval(el.data("mouseleave"))})}),this.sliderElement.find("[data-play]").each(function(i,el){var el=$(el).on("n2play",function(){eval(el.data("play"))})}),this.sliderElement.find("[data-pause]").each(function(i,el){var el=$(el).on("n2pause",function(){eval(el.data("pause"))})}),this.sliderElement.find("[data-stop]").each(function(i,el){var el=$(el).on("n2stop",function(){eval(el.data("stop"))})});var preventFocus=!1;this.slides.find("a").on("mousedown",function(e){preventFocus=!0,setTimeout(function(){preventFocus=!1},100)}),this.slides.find("a").on("focus",$.proxy(function(e){if(!preventFocus){var t=this.findSlideIndexByElement(e.currentTarget);-1!=t&&t!=this.currentSlideIndex&&this.changeTo(t,!1,!1)}},this))}this.preReadyResolve(),this.initCarousel()}},NextendSmartSliderAbstract.prototype.initSlides=function(){if(this.layerMode){if(this.isAdmin&&"showcase"!=this.type)new NextendSmartSliderSlide(this,this.slides.eq(this.currentSlideIndex),1);else for(var e=0;e<this.slides.length;e++)new NextendSmartSliderSlide(this,this.slides.eq(e),this.currentSlideIndex==e);var t=this.findStaticSlide();t.length&&new NextendSmartSliderSlide(this,t,!0,!0)}},NextendSmartSliderAbstract.prototype.getRealIndex=function(e){return e},NextendSmartSliderAbstract.prototype.changeActiveBeforeLoad=function(e){e>0&&e<this.slides.length&&this.currentSlideIndex!=e&&(this.unsetActiveSlide(this.slides.eq(this.currentSlideIndex)),this.setActiveSlide(this.slides.eq(e)),this.currentSlideIndex=e,this.ready($.proxy(function(){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},this)))},NextendSmartSliderAbstract.prototype.kill=function(){this.killed=!0,$("#"+this.sliderElement.attr("id")+"-placeholder").remove(),this.sliderElement.closest(".n2-ss-align").remove()},NextendSmartSliderAbstract.prototype.randomize=function(){this.parameters.randomize.randomizeFirst&&(this.slides.filter(".n2-ss-slide-active").removeClass("n2-ss-slide-active"),this.slides.eq(Math.floor(Math.random()*this.slides.length)).addClass("n2-ss-slide-active")),this.parameters.randomize.randomize&&this.shuffleSlides()},NextendSmartSliderAbstract.prototype.shuffleSlides=function(){for(var e=0;e<this.slides.length;e++)this.slides.eq(e).data("originalIndex",e);this.slides.sort(function(){return Math.round(Math.random())-.5}),this.slides.appendTo(this.slides.parent()),this.shuffled=[];for(var e=0;e<this.slides.length;e++)this.shuffled[e]=this.slides.eq(e).data("originalIndex")},NextendSmartSliderAbstract.prototype.findSlides=function(){this.realSlides=this.slides=this.sliderElement.find(".n2-ss-slide")},NextendSmartSliderAbstract.prototype.findStaticSlide=function(){return this.sliderElement.find(".n2-ss-static-slide")},NextendSmartSliderAbstract.prototype.addWidget=function(e,t){this.widgetDeferreds.push(t)},NextendSmartSliderAbstract.prototype.started=function(e){this.startedDeferred.done($.proxy(e,this))},NextendSmartSliderAbstract.prototype.preReadyResolve=function(){setTimeout($.proxy(this._preReadyResolve,this),1)},NextendSmartSliderAbstract.prototype._preReadyResolve=function(){this.load.start(),this.load.loaded($.proxy(this.readyResolve,this))},NextendSmartSliderAbstract.prototype.readyResolve=function(){$(window).scroll(),this.readyDeferred.resolve()},NextendSmartSliderAbstract.prototype.ready=function(e){this.readyDeferred.done($.proxy(e,this))},NextendSmartSliderAbstract.prototype.startVisibilityCheck=function(){this.visibleDeferred=$.Deferred(),this.parameters.playWhenVisible?this.ready($.proxy(function(){$(window).on("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.checkIfVisible()},this)):this.ready($.proxy(function(){this.visibleDeferred.resolve()},this))},NextendSmartSliderAbstract.prototype.checkIfVisible=function(){var e=$(window).scrollTop(),t=e+$(window).height(),i=this.sliderElement.offset().top+this.sliderElement.height()/2;i>=e&&t>=i&&($(window).off("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.visibleDeferred.resolve())},NextendSmartSliderAbstract.prototype.visible=function(e){this.visibleDeferred.done($.proxy(e,this))},NextendSmartSliderAbstract.prototype.isPlaying=function(){return"ended"!=this.mainAnimation.getState()},NextendSmartSliderAbstract.prototype.focus=function(e){var t=$.Deferred();if("undefined"==typeof e&&(e=0),this.responsive.parameters.focusUser&&!e||this.responsive.parameters.focusAutoplay&&e){var i=this.sliderElement.offset().top-(this.responsive.verticalOffsetSelectors.height()||0);$(window).scrollTop()!=i?$("html, body").animate({scrollTop:i},400,$.proxy(function(){t.resolve()},this)):t.resolve()}else t.resolve();return t},NextendSmartSliderAbstract.prototype.initCarousel=function(){if(!parseInt(this.parameters.carousel)){this.next=this.nextNotCarousel,this.previous=this.previousNotCarousel;var e=this.slides.length,t=1,i=this.sliderElement.find(".nextend-arrow-previous"),s=function(e){e!=t&&(NextendTween.to(i,.4,{opacity:e}).play(),t=e)},n=1,r=this.sliderElement.find(".nextend-arrow-next"),a=function(e){e!=n&&(NextendTween.to(r,.4,{opacity:e}).play(),n=e)},o=function(t){s(0==t?0:1),a(t==e-1?0:1)};o(this.__getActiveSlideIndex()),this.sliderElement.on("sliderSwitchTo",function(e,t){o(t)})}},NextendSmartSliderAbstract.prototype.next=function(e,t){var i=this.currentSlideIndex+1;return i>=this.slides.length&&(i=0),this.changeTo(i,!1,e,t)},NextendSmartSliderAbstract.prototype.previous=function(e,t){var i=this.currentSlideIndex-1;return 0>i&&(i=this.slides.length-1),this.changeTo(i,!0,e,t)},NextendSmartSliderAbstract.prototype.nextNotCarousel=function(e,t){var i=this.currentSlideIndex+1;return i<this.slides.length?this.changeTo(i,!1,e,t):!1},NextendSmartSliderAbstract.prototype.previousNotCarousel=function(e,t){var i=this.currentSlideIndex-1;return i>=0?this.changeTo(i,!0,e,t):!1},NextendSmartSliderAbstract.prototype.directionalChangeToReal=function(e){this.directionalChangeTo(e)},NextendSmartSliderAbstract.prototype.directionalChangeTo=function(e){e>this.currentSlideIndex?this.changeTo(e,!1):this.changeTo(e,!0)},NextendSmartSliderAbstract.prototype.changeTo=function(e,t,i,s){if(e=parseInt(e),e!=this.currentSlideIndex){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)]);var n=$.now();return $.when(this.backgroundImages.preLoad(e),this.focus(i)).done($.proxy(function(){if(this._lastChangeTime<=n){this._lastChangeTime=n;var r=this.mainAnimation.getState();if("ended"==r){"undefined"==typeof i&&(i=!1);var a=this.mainAnimation;"undefined"!=typeof s&&(a=s),this._changeTo(e,t,i,s),a.changeTo(this.currentSlideIndex,this.slides.eq(this.currentSlideIndex),e,this.slides.eq(e),t,i),this.currentSlideIndex=e}else"playing"==r&&(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",$.proxy(function(){this.changeTo.call(this,e,t,i,s)},this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale()))}},this)),!0}return!1},NextendSmartSliderAbstract.prototype._changeTo=function(e,t,i,s){},NextendSmartSliderAbstract.prototype.revertTo=function(e,t){this.unsetActiveSlide(this.slides.eq(t)),this.setActiveSlide(this.slides.eq(e)),this.currentSlideIndex=e,this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},NextendSmartSliderAbstract.prototype.__getActiveSlideIndex=function(){var e=this.slides.index(this.slides.filter(".n2-ss-slide-active"));return-1===e&&(e=0),e},NextendSmartSliderAbstract.prototype.setActiveSlide=function(e){e.addClass("n2-ss-slide-active")},NextendSmartSliderAbstract.prototype.unsetActiveSlide=function(e){e.removeClass("n2-ss-slide-active")},NextendSmartSliderAbstract.prototype.initMainAnimationWithLayerAnimation=function(){"forced"==this.parameters.layerMode.mode&&this.sliderElement.on("preChangeToPlay",$.proxy(function(e,t,i,s,n){i.handled=!0,s.on("layerAnimationCompleteOut.layers",function(){s.off("layerAnimationCompleteOut.layers"),t.resolve()}),this.callOnSlide(s,"playOut")},this)),this.sliderElement.on("mainAnimationStart",$.proxy(this.onMainAnimationStartSyncLayers,this,this.parameters.layerMode)).on("reverseModeEnabled",$.proxy(this.onMainAnimationStartSyncLayersReverse,this,this.parameters.layerMode))},NextendSmartSliderAbstract.prototype.onMainAnimationStartSyncLayers=function(e,t,i,s,n){var r=this.slides.eq(n),a=this.slides.eq(s);"mainInStart"==e.inAnimation?r.one("mainAnimationStartIn.layers",$.proxy(function(){r.off("mainAnimationStartInCancel.layers"),this.callOnSlide(r,"playIn")},this)):"mainInEnd"==e.inAnimation&&r.one("mainAnimationCompleteIn.layers",$.proxy(function(){r.off("mainAnimationStartInCancel.layers"),this.callOnSlide(r,"playIn")},this)),"skippable"==e.mode&&a.on("mainAnimationCompleteOut.layers",$.proxy(function(){a.off("mainAnimationCompleteOut.layers"),e.playOnce?this.parameters.foreverLayerAnimation||this.callOnSlide(a,"pause"):this.callOnSlide(a,"reset")},this)),r.one("mainAnimationStartInCancel.layers",function(){r.off("mainAnimationStartIn.layers"),r.off("mainAnimationCompleteIn.layers")})},NextendSmartSliderAbstract.prototype.onMainAnimationStartSyncLayersReverse=function(e,t,i){var s=this.slides.eq(i);"mainInStart"==e.inAnimation?s.one("mainAnimationStartIn.layers",$.proxy(function(){this.callOnSlide(s,"playIn")},this)):"mainInEnd"==e.inAnimation&&s.one("mainAnimationCompleteIn.layers",$.proxy(function(){this.sliderElement.off("mainAnimationComplete.layers"),this.callOnSlide(s,"playIn")},this)),this.sliderElement.one("mainAnimationComplete.layers",function(){s.off("mainAnimationStartIn.layers"),s.off("mainAnimationCompleteIn.layers")})},NextendSmartSliderAbstract.prototype.callOnSlide=function(e,t){e.data("slide")[t]()},NextendSmartSliderAbstract.prototype.findSlideIndexByElement=function(e){e=$(e);for(var t=0;t<this.slides.length;t++)if(1===this.slides.eq(t).has(e).length)return t;return-1},NextendSmartSliderAbstract.prototype.initMainAnimation=function(){},NextendSmartSliderAbstract.prototype.initResponsiveMode=function(){new scope[this.responsiveClass](this,this.parameters.responsive),this.dimensions=this.responsive.responsiveDimensions},NextendSmartSliderAbstract.prototype.initControls=function(){this.parameters.admin||("0"!=this.parameters.controls.touch&&new NextendSmartSliderControlTouch(this,this.parameters.controls.touch,{fallbackToMouseEvents:this.parameters.controls.drag}),this.parameters.controls.keyboard&&("undefined"!=typeof this.controls.touch?new NextendSmartSliderControlKeyboard(this,this.controls.touch._direction.axis):new NextendSmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.scroll&&new NextendSmartSliderControlScroll(this),this.parameters.controls.tilt&&new NextendSmartSliderControlTilt(this),this.controlAutoplay=new NextendSmartSliderControlAutoplay(this,this.parameters.autoplay))},NextendSmartSliderAbstract.prototype.getSlideIndex=function(e){return e},NextendSmartSliderAbstract.prototype.slideToID=function(e,t){var i=this.realSlides.index(this.realSlides.filter('[data-id="'+e+'"]'));if(-1!=i)return this.slide(this.getSlideIndex(i),t);var s=$('[data-id="'+e+'"]').closest(".n2-ss-slider");if(s.length&&this.id==s.data("ss").id)return!0;if(s.length){var n=0;return"undefined"!=typeof n2ScrollOffsetSelector&&(n=n2(n2ScrollOffsetSelector).outerHeight()),n2("html, body").animate({scrollTop:s.offset().top-n},400),s.data("ss").slideToID(e,t)}},NextendSmartSliderAbstract.prototype.slide=function(e,t){return e>=0&&e<this.slides.length?"undefined"==typeof t?parseInt(this.parameters.carousel)&&this.currentSlideIndex==this.slides.length-1&&0==e?this.next():this.currentSlideIndex>e?this.changeTo(e,!0):this.changeTo(e):this.changeTo(e,!t):!1},NextendSmartSliderAbstract.prototype.adminGetCurrentSlideElement=function(){return this.parameters.isStaticEdited?this.findStaticSlide():this.slides.eq(this.currentSlideIndex)},NextendSmartSliderAbstract.prototype.startAutoplay=function(e){return"undefined"!=typeof this.controlAutoplay?(this.controlAutoplay.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"),!0):!1},scope.NextendSmartSliderAbstract=NextendSmartSliderAbstract,function(e,t){var i={},s=function(e){i[e]&&(t.clearInterval(i[e]),i[e]=null)},n="n2waitUntilExists.found";e.fn.n2waitUntilExists=function(r,a,o,l){var d=e(r),h=d.not(function(){return e(this).data(n)});return"remove"===a?s(r):(h.each(a).data(n,!0),o&&d.length?s(r):l||(i[r]=t.setInterval(function(){d.n2waitUntilExists(r,a,o,!0)},500))),d}}(n2,window)}(n2,window),function($,scope,undefined){function NextendSmartSliderWidgets(e){this.slider=e,this.sliderElement=e.sliderElement.on("BeforeVisible",$.proxy(this.onReady,this)),this.initExcludeSlides()}NextendSmartSliderWidgets.prototype.onReady=function(){this.dimensions=this.slider.dimensions,this.widgets={previous:this.sliderElement.find(".nextend-arrow-previous"),next:this.sliderElement.find(".nextend-arrow-next"),bullet:this.sliderElement.find(".nextend-bullet-bar"),autoplay:this.sliderElement.find(".nextend-autoplay"),indicator:this.sliderElement.find(".nextend-indicator"),bar:this.sliderElement.find(".nextend-bar"),thumbnail:this.sliderElement.find(".nextend-thumbnail"),shadow:this.sliderElement.find(".nextend-shadow"),fullscreen:this.sliderElement.find(".nextend-fullscreen"),html:this.sliderElement.find(".nextend-widget-html")},this.variableElementsDimension={width:this.sliderElement.find("[data-sswidth]"),height:this.sliderElement.find("[data-ssheight]")},this.variableElements={top:this.sliderElement.find("[data-sstop]"),right:this.sliderElement.find("[data-ssright]"),bottom:this.sliderElement.find("[data-ssbottom]"),left:this.sliderElement.find("[data-ssleft]")},this.slider.sliderElement.on("SliderAnimatedResize",$.proxy(this.onAnimatedResize,this)),this.slider.sliderElement.on("SliderResize",$.proxy(this.onResize,this)),this.slider.sliderElement.one("slideCountChanged",$.proxy(function(){this.onResize(this.slider.responsive.lastRatios)},this)),this.onResize(this.slider.responsive.lastRatios),this.initHover()},NextendSmartSliderWidgets.prototype.initHover=function(){var e=null,t=this.sliderElement.find(".n2-ss-widget-hover");t.length>0&&this.sliderElement.on("universalenter",function(i){var s=$(this);e&&clearTimeout(e),t.css("visibility","visible"),setTimeout(function(){s.addClass("n2-ss-widget-hover-show")},50)}).on("universalleave",function(){var i=this;e&&clearTimeout(e),e=setTimeout(function(){$(i).removeClass("n2-ss-widget-hover-show"),e=setTimeout(function(){t.css("visibility","hidden")},400)},500)})},NextendSmartSliderWidgets.prototype.initExcludeSlides=function(){var e=this.sliderElement.find(".n2-ss-widget[data-exclude-slides]"),t=function(e,t,i){-1!=$.inArray(i+1+"",t)?e.addClass("n2-ss-widget-hidden"):e.removeClass("n2-ss-widget-hidden")};e.each($.proxy(function(e,i){for(var s=$(i),n=s.attr("data-exclude-slides").split(","),e=n.length-1;e>=0;e--){var r=n[e].split("-");if(2==r.length&&parseInt(r[0])<=parseInt(r[1])){n[e]=r[0],r[0]=parseInt(r[0]),r[1]=parseInt(r[1]);for(var a=r[0]+1;a<=r[1];a++)n.push(a+"")}}t(s,n,this.slider.currentSlideIndex),this.slider.sliderElement.on("sliderSwitchTo",function(e,i){t(s,n,i)})},this))},NextendSmartSliderWidgets.prototype.onAnimatedResize=function(e,ratios,timeline,duration){for(var key in this.widgets){
2
- var el=this.widgets[key],visible=el.is(":visible");this.dimensions[key+"width"]=visible?el.outerWidth(!1):0,this.dimensions[key+"height"]=visible?el.outerHeight(!1):0}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible")){var to={};try{to[k]=eval(el.data("ss"+k))+"px";for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}timeline.to(el,duration,to,0)}}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var to={};to[k]=eval(el.data("ss"+k))+"px",timeline.to(el,duration,to,0)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}},NextendSmartSliderWidgets.prototype.onResize=function(e,ratios,responsive,timeline){if(!timeline){for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,0)}for(var key in this.widgets){var el=this.widgets[key],visible=el.length&&el.is(":visible");el.length&&el.is(":visible")?(this.dimensions[key+"width"]=el.outerWidth(!1),this.dimensions[key+"height"]=el.outerHeight(!1)):(this.dimensions[key+"width"]=0,this.dimensions[key+"height"]=0)}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,last)}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible"))try{el.css(k,eval(el.data("ss"+k))+"px");for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var value=eval(el.data("ss"+k));el.css(k,value+"px"),el.data("n2Last"+k,value)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}this.slider.responsive.refreshStaticSizes()}},scope.NextendSmartSliderWidgets=NextendSmartSliderWidgets}(n2,window),function(e,t,i){function s(e,t,i,s,n,r){this.durationMultiplier=n,this.original={currentImage:t,nextImage:i},this.animationProperties=s,this.reversed=r,this.timeline=e.timeline,this.containerElement=e.bgAnimationElement,this.shiftedBackgroundAnimation=e.parameters.shiftedBackgroundAnimation,this.clonedImages={}}s.prototype.postSetup=function(){},s.prototype.ended=function(){},s.prototype.revertEnded=function(){},s.prototype.placeNextImage=function(){this.clonedImages.nextImage=this.original.nextImage.clone().css({position:"absolute",top:0,left:0}),this.containerElement.append(this.clonedImages.nextImage)},s.prototype.placeCurrentImage=function(){this.clonedImages.currentImage=this.original.currentImage.clone().css({position:"absolute",top:0,left:0}),this.containerElement.append(this.clonedImages.currentImage)},s.prototype.hideOriginals=function(){this.original.currentImage.css("opacity",0),this.original.nextImage.css("opacity",0)},s.prototype.resetAll=function(){this.original.currentImage.css("opacity",1),this.original.nextImage.css("opacity",1),this.containerElement.html("")},s.prototype.getExtraDelay=function(){return 0},t.NextendSmartSliderBackgroundAnimationAbstract=s}(n2,window),function(e,t,i){function s(){this.shiftedPreSetup=!1,this._clonedCurrent=!1,this._clonedNext=!1,NextendSmartSliderBackgroundAnimationAbstract.prototype.constructor.apply(this,arguments),this.w=this.original.currentImage.width(),this.h=this.original.currentImage.height()}function n(){s.prototype.constructor.apply(this,arguments),this.setup()}function r(){n.prototype.constructor.apply(this,arguments)}function a(){n.prototype.constructor.apply(this,arguments)}function o(){s.prototype.constructor.apply(this,arguments);var t=e.extend(!0,{perspective:1.5*this.w,duration:.8,direction:"left"},this.animationProperties);this.reversed&&("left"==t.direction?t.direction="right":t.direction="left");var i=parseInt(this.w/2);this.clonedCurrent().css({position:"absolute",top:0,left:"left"==t.direction?-1*(this.w/2):0}),this.clonedNext().css({position:"absolute",top:0,left:"left"==t.direction?0:-1*(this.w/2)});var n=e('<div class="tab"></div>').css({width:i,height:this.h,position:"absolute",top:"0px",left:"left"==t.direction?i:"0","z-index":101});NextendTween.set(n,{transformStyle:"preserve-3d",transformOrigin:"left"==t.direction?"0px 0px":i+"px 0px"});var r=e('<div class="n2-ff-3d"></div>').append(this.clonedCurrent()).css({width:i,height:this.h,position:"absolute",top:0,left:0,"-webkit-transform":"translateZ(0.1px)",overflow:"hidden"}).appendTo(n);NextendTween.set(r,{backfaceVisibility:"hidden",transformStyle:"preserve-3d"});var a=e('<div class="n2-ff-3d"></div>').append(this.clonedNext()).appendTo(n).css({width:i,height:this.h,position:"absolute",top:0,left:0,overflow:"hidden"});NextendTween.set(a,{backfaceVisibility:"hidden",transformStyle:"preserve-3d",rotationY:180,rotationZ:0});var o=e("<div></div>").append(this.clonedCurrent().clone().css("left","left"==t.direction?0:-i)).css({position:"absolute",top:0,left:"left"==t.direction?"0":i,width:i,height:this.h,zIndex:100,overflow:"hidden"}),l=e('<div class="overlay"></div>').css({position:"absolute",top:0,left:"left"==t.direction?i:0,width:i,height:this.h,background:"#000",opacity:1,overflow:"hidden"}),d=e("<div></div>").css({width:this.w,height:this.h,position:"absolute",top:0,left:0}).append(n).append(o).append(l);NextendTween.set(d,{perspective:t.perspective,perspectiveOrigin:"50% 50%"}),this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),this.containerElement.append(d),this.preSetup(),this.timeline.to(n.get(0),t.duration*this.durationMultiplier,{rotationY:"left"==t.direction?-180:180},0),this.timeline.to(l.get(0),t.duration*this.durationMultiplier,{opacity:0},0)}function l(){n.prototype.constructor.apply(this,arguments)}function d(){n.prototype.constructor.apply(this,arguments)}function h(){n.prototype.constructor.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderBackgroundAnimationAbstract.prototype),s.prototype.constructor=s,s.prototype.clonedCurrent=function(){return this._clonedCurrent||(this._clonedCurrent=this.original.currentImage.clone().css({width:this.w,height:this.h})),this._clonedCurrent},s.prototype.clonedNext=function(){return this._clonedNext||(this._clonedNext=this.original.nextImage.clone().css({width:this.w,height:this.h})),this._clonedNext},s.prototype.preSetup=function(){0!=this.shiftedBackgroundAnimation?this.shiftedPreSetup=!0:this._preSetup()},s.prototype._preSetup=function(e){this.timeline.to(this.original.currentImage.get(0),this.getExtraDelay(),{opacity:0},0),this.original.nextImage.css("opacity",0)},s.prototype.postSetup=function(){this.timeline.to(this.original.nextImage.get(0),this.getExtraDelay(),{opacity:1})},s.prototype.getExtraDelay=function(){return.2},s.prototype.ended=function(){this.original.currentImage.css("opacity",1),this.containerElement.html("")},s.prototype.revertEnded=function(){this.original.nextImage.css("opacity",1),this.containerElement.html("")},t.NextendSmartSliderBackgroundAnimationFluxAbstract=s,n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.setup=function(t){var i=e("<div></div>").css({position:"absolute",left:0,top:0,width:this.w,height:this.h});this.container=i,NextendTween.set(i.get(0),{force3D:!0,perspective:1e3});for(var s=[],n=[],r=t.columns,a=t.rows,o=Math.floor(this.w/r),l=Math.floor(this.h/a),d=this.w-r*o,h=Math.ceil(d/r),p=this.h-a*l,c=Math.ceil(p/a),m=0,u=0;r>u;u++){s[u]=[];var f=o,y=0;if(d>0){var g=d>=h?h:d;f+=g,d-=g}for(var v=p,x=0;a>x;x++){var S=l;if(v>0){var g=v>=c?c:v;S+=g,v-=g}var b=e('<div class="tile tile-'+u+"-"+x+'"></div>').css({position:"absolute",top:y+"px",left:m+"px",width:f+"px",height:S+"px",zIndex:-Math.abs(u-parseInt(r/2))+r-Math.abs(x-parseInt(a/2))}).appendTo(i),w=this.renderTile(b,f,S,t,m,y);n.push(w),s[u][x]=w,y+=S}m+=f}i.appendTo(this.containerElement),this.preSetup(),this.animate(t,n,s)},n.prototype.animate=function(t,i,s){this["sequence"+t.tiles.sequence](e.proxy(this.transform,this,t),i,s,t.tiles.delay*this.durationMultiplier)},n.prototype.sequenceParallel=function(e,t){e(t,null)},n.prototype.sequenceRandom=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0;r<t.length;r++)e(t[r],n+Math.random()*s)},n.prototype.sequenceForwardCol=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0;r<t.length;r++)e(t[r],n+s*r)},n.prototype.sequenceBackwardCol=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=t.length-1,a=0;a<t.length;a++)e(t[a],n+s*(r-a))},n.prototype.sequenceForwardRow=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0,a=0;a<i[0].length;a++)for(var o=0;o<i.length;o++)e(i[o][a],n+s*r),r++},n.prototype.sequenceBackwardRow=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=t.length-1,a=0;a<i[0].length;a++)for(var o=0;o<i.length;o++)e(i[o][a],n+s*r),r--},n.prototype.sequenceForwardDiagonal=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0;r<i[0].length;r++)for(var a=0;a<i.length;a++)e(i[a][r],n+s*(a+r))},n.prototype.sequenceBackwardDiagonal=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=i[0].length+i.length-2,a=0;a<i[0].length;a++)for(var o=0;o<i.length;o++)e(i[o][a],n+s*(r-o-a))},t.NextendSmartSliderBackgroundAnimationTiled=n,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,tiles:{cropOuter:!1,crop:!0,delay:0,sequence:"Parallel"},main:{type:"next",duration:.5,real3D:!0,zIndex:1,current:{ease:"easeInOutCubic"},next:{ease:"easeInOutCubic"}}},this.animationProperties);this.reversed&&("undefined"!=typeof t.invert&&e.extend(!0,t.main,t.invert),"undefined"!=typeof t.invertTiles&&e.extend(t.tiles,t.invertTiles)),n.prototype.setup.call(this,t),t.tiles.cropOuter&&this.container.css("overflow","hidden")},r.prototype.renderTile=function(t,i,s,n,r,a){n.tiles.crop&&t.css("overflow","hidden");var o=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t),l=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:1}).append(this.clonedNext().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return n.main.real3D&&(NextendTween.set(t.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(o.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(l.get(0),{transformStyle:"preserve-3d"})),{current:o,next:l}},r.prototype.transform=function(e,t,i){var s=e.main;"current"!=s.type&&"both"!=s.type||this.timeline.to(t.current,s.duration*this.durationMultiplier,s.current,i),"next"!=s.type&&"both"!=s.type||this.timeline.from(t.next,s.duration*this.durationMultiplier,s.next,i)},t.NextendSmartSliderBackgroundAnimationFlat=r,a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,fullCube:!0,tiles:{delay:.2,sequence:"Parallel"},depth:50,main:{side:"Left",duration:.5,ease:"easeInOutCubic",direction:"horizontal",real3D:!0},pre:[],post:[]},this.animationProperties);t.fullCube=!0,this.reversed&&("undefined"!=typeof t.invert&&e.extend(!0,t.main,t.invert),"undefined"!=typeof t.invertTiles&&e.extend(t.tiles,t.invertTiles)),n.prototype.setup.call(this,t)},a.prototype.renderTile=function(t,i,s,n,r,a){var o=n.depth;switch(o){case"width":o=i;break;case"height":o=s}switch(n.main.side){case"Top":case"Bottom":o=s;break;case"Left":case"Right":o=i}n.main.real3D&&NextendTween.set(t.get(0),{transformStyle:"preserve-3d"});var l=e('<div class="cuboid"></div>').css({position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}).appendTo(t);NextendTween.set(l.get(0),{transformStyle:"preserve-3d",z:-o/2});var d=0;"horizontal"==n.main.direction&&(d=180);var h=this.getSide(l,i,s,0,0,-o/2,180,0,d),p={Back:h,BackInvert:h};return(n.fullCube||"vertical"==n.main.direction)&&(p.Bottom=this.getSide(l,i,o,0,s-o/2,0,-90,0,0),p.Top=this.getSide(l,i,o,0,-o/2,0,90,0,0)),p.Front=this.getSide(l,i,s,0,0,o/2,0,0,0),(n.fullCube||"horizontal"==n.main.direction)&&(p.Left=this.getSide(l,o,s,-o/2,0,0,0,-90,0),p.Right=this.getSide(l,o,s,i-o/2,0,0,0,90,0)),p.Front.append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})),p[n.main.side].append(this.clonedNext().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})),l},a.prototype.getSide=function(t,i,s,n,r,a,o,l,d){var h=e('<div class="n2-3d-side"></div>').css({width:i,height:s}).appendTo(t);return NextendTween.set(h.get(0),{x:n,y:r,z:a,rotationX:o,rotationY:l,rotationZ:d,backfaceVisibility:"hidden"}),h},a.prototype.addAnimation=function(e,t){var i=e.duration;delete e.duration,this.timeline.to(t,i*this.durationMultiplier,e)},a.prototype.transform=function(e,t,i){for(var s=0;s<e.pre.length;s++){var n=e.pre[s],r=n.duration*this.durationMultiplier;this.timeline.to(t,r,n,i),i+=r}this["transform"+e.main.side](e.main,t,i),i+=e.main.duration;for(var s=0;s<e.post.length;s++){var n=e.post[s],r=n.duration*this.durationMultiplier;this.timeline.to(t,r,n,i),i+=r}},a.prototype.transformLeft=function(e,t,i){this._transform(e,t,i,0,90,0)},a.prototype.transformRight=function(e,t,i){this._transform(e,t,i,0,-90,0)},a.prototype.transformTop=function(e,t,i){this._transform(e,t,i,-90,0,0)},a.prototype.transformBottom=function(e,t,i){this._transform(e,t,i,90,0,0)},a.prototype.transformBack=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,180,0):this._transform(e,t,i,180,0,0)},a.prototype.transformBackInvert=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,-180,0):this._transform(e,t,i,-180,0,0)},a.prototype._transform=function(e,t,i,s,n,r){this.timeline.to(t,e.duration*this.durationMultiplier,{rotationX:s,rotationY:n,rotationZ:r,ease:e.ease},i)},t.NextendSmartSliderBackgroundAnimationCubic=a,o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.prototype.getExtraDelay=function(){return 0},t.NextendSmartSliderBackgroundAnimationTurn=o,l.prototype=Object.create(n.prototype),l.prototype.constructor=l,l.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),n.prototype.setup.call(this,t)},l.prototype.renderTile=function(t,i,s,n,r,a){var o=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:o,tile:t}},l.prototype.transform=function(t,i,s){var n=e.extend(!0,{},t.main.current);n.rotationX=90*(3*Math.random()-1),n.rotationY=90*(3*Math.random()-1),n.rotationZ=90*(3*Math.random()-1),this.timeline.to(i.tile,t.main.duration*this.durationMultiplier,n,s)},t.NextendSmartSliderBackgroundAnimationExplode=l,d.prototype=Object.create(n.prototype),d.prototype.constructor=d,d.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeCurrentImage(),this.clonedImages.currentImage.css({overflow:"hidden",width:"100%",height:"100%"}),n.prototype.setup.call(this,t)},d.prototype.renderTile=function(t,i,s,n,r,a){var o=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedNext().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{next:o,tile:t}},d.prototype.transform=function(t,i,s){var n=e.extend(!0,{},t.main.current);n.rotationX=90*(3*Math.random()-1),n.rotationY=90*(3*Math.random()-1),n.rotationZ=30*(3*Math.random()-1),this.timeline.from(i.tile,t.main.duration*this.durationMultiplier,n,s)},t.NextendSmartSliderBackgroundAnimationExplodeReversed=d,h.prototype=Object.create(n.prototype),h.prototype.constructor=h,h.prototype.setup=function(){var t=e.extend(!0,{columns:2,rows:2,main:{duration:2,zIndex:2}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),n.prototype.setup.call(this,t)},h.prototype.renderTile=function(t,i,s,n,r,a){this.container.css("overflow","hidden");var o=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:o,tile:t}},h.prototype.animate=function(t,i,s){this.timeline.to(s[0][0].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},0),this.timeline.to(s[0][1].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},.3),this.timeline.to(s[1][0].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.15),this.timeline.to(s[1][1].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.45),e("<div />").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden"}).prependTo(this.clonedImages.nextImage.parent()).append(this.clonedImages.nextImage),this.timeline.fromTo(this.clonedImages.nextImage,t.main.duration*this.durationMultiplier,{scale:1.3},{scale:1},.45)},t.NextendSmartSliderBackgroundAnimationSlixes=h}(n2,window),function(e,t,i){function s(t,i){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=-1,this.slider=t,this.parameters=e.extend({duration:1500,ease:"easeInOutQuint"},i),this.parameters.duration/=1e3,this.sliderElement=t.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s){this.currentSlideIndex=i,this.nextSlideIndex=s},this))}s.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.sliderElement.triggerHandler("reverseModeEnabled",this.reverseSlideIndex)},s.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},s.prototype.setTouch=function(e){this.isTouch=e},s.prototype.setTouchProgress=function(e){this.isReverseEnabled?this._setTouchProgressWithReverse(e):this._setTouchProgress(e)},s.prototype._setTouchProgress=function(e){"ended"!=this.state&&(0>=e?this.timeline.progress(Math.max(e,1e-6),!1):e>=0&&1>=e&&this.timeline.progress(e))},s.prototype._setTouchProgressWithReverse=function(e){0==e?(this.reverseTimeline.progress(0),this.timeline.progress(e,!1)):e>=0&&1>=e?(this.reverseTimeline.progress(0),this.timeline.progress(e)):0>e&&e>=-1&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(e)))},s.prototype.setTouchEnd=function(e,t,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(e,t,i):this._setTouchEnd(e,t,i))},s.prototype._setTouchEnd=function(e,t,i){e&&t>0?(this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse(),this.willRevertTo(this.currentSlideIndex,this.nextSlideIndex))},s.prototype._setTouchEndWithReverse=function(e,t,i){e?0>t&&this.reverseTimeline.totalDuration()>0?(this.fixTouchDuration(this.reverseTimeline,t,i),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this.nextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(0>t?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-t,i),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this.currentSlideIndex,this.nextSlideIndex))},s.prototype.fixTouchDuration=function(e,t,i){var s=e.totalDuration(),n=Math.max(s/3,Math.min(s,i/Math.abs(t)/1e3));n!=s&&e.totalDuration(n)},s.prototype.getState=function(){return this.state},s.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},s.prototype.preChangeToPlay=function(e,t,i){var s={handled:!1};this.sliderElement.trigger("preChangeToPlay",[e,s,t,i]),s.handled||e.resolve()},s.prototype.changeTo=function(t,i,s,n,r,a){if(this._initAnimation(t,i,s,n,r),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[t,s,a],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[t,s,a],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=e.proxy(function(e){e.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[s,t,a],this)},this),this.slider.parameters.dynamicHeight){var o=new NextendTimeline;this.slider.responsive.doResize(!1,o,s,.6),this.timeline.add(o)}if(this.isTouch)this.slider.callOnSlide(i,"onOutAnimationsPlayed");else{var l=e.Deferred();l.done(e.proxy(function(){this.play()},this.timeline)),this.preChangeToPlay(l,i,n)}},s.prototype.willRevertTo=function(t,i){this.sliderElement.triggerHandler("mainAnimationWillRevertTo",[t,i]),this.sliderElement.one("mainAnimationComplete",e.proxy(this.revertTo,this,t,i))},s.prototype.revertTo=function(e,t){this.slider.revertTo(e,t),this.slider.slides.eq(t).triggerHandler("mainAnimationStartInCancel")},s.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",e.proxy(this.cleanSlideIndex,this,t))},s.prototype.cleanSlideIndex=function(){},s.prototype._initAnimation=function(e,t,i,s,n){},s.prototype.onChangeToStart=function(e,t,i){this.state="playing";var s=[this,e,t,i];this.sliderElement.trigger("mainAnimationStart",s),this.slider.slides.eq(e).trigger("mainAnimationStartOut",s),this.slider.slides.eq(t).trigger("mainAnimationStartIn",s)},s.prototype.onChangeToComplete=function(e,t,i){var s=[this,e,t,i];this.clearTimelines(),this.disableReverseMode(),this.slider.slides.eq(e).trigger("mainAnimationCompleteOut",s),this.slider.slides.eq(t).trigger("mainAnimationCompleteIn",s),this.state="ended",this.sliderElement.trigger("mainAnimationComplete",s)},s.prototype.onReverseChangeToComplete=function(e,t,i){s.prototype.onChangeToComplete.apply(this,arguments)},s.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},s.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},t.NextendSmartSliderMainAnimationAbstract=s}(n2,window),function(e,t,i){function s(t,i){this._paused=!0,this._wait=!1,this._disabled=!1,this._currentCount=0,this._progressEnabled=!1,this.timeline=null,this.deferredsMediaPlaying=null,this.deferredMouseLeave=null,this.deferredMouseEnter=null,this.mainAnimationDeferred=!0,this.autoplayDeferred=null,this.slider=t,this.parameters=e.extend({enabled:0,start:1,duration:8e3,autoplayToSlide:0,autoplayToSlideIndex:-1,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0}},i),this.parameters.enabled?(this.parameters.duration/=1e3,t.controls.autoplay=this,this.deferredsExtraPlaying={},this.slider.visible(e.proxy(this.onReady,this))):this.disable(),t.controls.autoplay=this}var n=!1;s.prototype.onReady=function(){this.autoplayDeferred=e.Deferred();var t={_progress:0};this.timeline=NextendTween.to(t,this.getSlideDuration(this.slider.currentSlideIndex),{_progress:1,paused:!0,onComplete:e.proxy(this.next,this)}),this._progressEnabled&&this.enableProgress();var i=this.slider.sliderElement;if(this.parameters.start?this.continueAutoplay():this.pauseAutoplayExtraPlaying(null,"autoplayButton"),i.on("mainAnimationStart.autoplay",e.proxy(this.onMainAnimationStart,this)),"0"!=this.parameters.pause.mouse)switch(i.on("touchend.autoplay",function(){n=!0,setTimeout(function(){n=!1},300)}),this.parameters.pause.mouse){case"enter":i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseEnter,this)),i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseEnterEnded,this));break;case"leave":i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseLeave,this)),i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseLeaveEnded,this))}if(this.parameters.pause.click&&!this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(this.pauseAutoplayUniversal,this)):!this.parameters.pause.click&&this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):this.parameters.pause.click&&this.parameters.resume.click&&i.on("universalclick.autoplay",e.proxy(function(e){this._paused?this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"):this.pauseAutoplayUniversal(e)},this)),this.parameters.pause.mediaStarted&&(this.deferredsMediaPlaying={},i.on("mediaStarted.autoplay",e.proxy(this.pauseAutoplayMediaPlaying,this)),i.on("mediaEnded.autoplay",e.proxy(this.pauseAutoplayMediaPlayingEnded,this))),"0"!=this.parameters.resume.mouse)switch(this.parameters.resume.mouse){case"enter":"0"==this.parameters.pause.mouse?i.on("mouseenter.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):i.on("mouseenter.autoplay",e.proxy(this.continueAutoplay,this));break;case"leave":"0"==this.parameters.pause.mouse?i.on("mouseleave.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):i.on("mouseleave.autoplay",e.proxy(this.continueAutoplay,this))}this.parameters.resume.mediaEnded&&i.on("mediaEnded.autoplay",e.proxy(this.continueAutoplay,this)),i.on("autoplayExtraWait.autoplay",e.proxy(this.pauseAutoplayExtraPlaying,this)),i.on("autoplayExtraContinue.autoplay",e.proxy(this.pauseAutoplayExtraPlayingEnded,this)),this.slider.sliderElement.on("mainAnimationComplete.autoplay",e.proxy(this.onMainAnimationComplete,this))},s.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",e.proxy(this.onUpdate,this)),this._progressEnabled=!0},s.prototype.onMainAnimationStart=function(t,i,s,n,r){this.mainAnimationDeferred=e.Deferred(),this.deActivate(0,"wait");for(var a in this.deferredsMediaPlaying)this.deferredsMediaPlaying[a].resolve()},s.prototype.onMainAnimationComplete=function(e,t,i,s){this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentSlideIndex+1&&this.limitAutoplay(),this.timeline.duration(this.getSlideDuration(s)),this.mainAnimationDeferred.resolve(),this.continueAutoplay()},s.prototype.getSlideDuration=function(e){var t=this.slider.realSlides.eq(this.slider.getRealIndex(e)).data("slide"),i=t.minimumSlideDuration;return.3>i&&i<this.parameters.duration&&(i=this.parameters.duration),i},s.prototype.continueAutoplay=function(t){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.reject();var i=[];for(var s in this.deferredsExtraPlaying)i.push(this.deferredsExtraPlaying[s]);for(var s in this.deferredsMediaPlaying)i.push(this.deferredsMediaPlaying[s]);i.push(this.deferredMouseEnter),i.push(this.mainAnimationDeferred),this.autoplayDeferred=e.Deferred(),this.autoplayDeferred.done(e.proxy(this._continueAutoplay,this)),e.when.apply(e,i).done(e.proxy(function(){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.resolve()},this))},s.prototype._continueAutoplay=function(){!this._paused&&!this._wait||this._disabled||(this._paused=!1,this._wait=!1,this.slider.sliderElement.triggerHandler("autoplayStarted"),1==this.timeline.progress()&&this.timeline.pause(0,!1),this.startTimeout(null))},s.prototype.pauseAutoplayUniversal=function(e){this.pauseAutoplayExtraPlaying(e,"autoplayButton"),this.deActivate(null,"pause")},s.prototype.pauseAutoplayMouseEnter=function(){n||(this.autoplayDeferred.reject(),this.deferredMouseEnter=e.Deferred(),this.deActivate(null,"leave"==this.parameters.resume.mouse?"wait":"pause"))},s.prototype.pauseAutoplayMouseEnterEnded=function(){this.deferredMouseEnter&&this.deferredMouseEnter.resolve()},s.prototype.pauseAutoplayMouseLeave=function(){this.autoplayDeferred.reject(),this.deferredMouseLeave=e.Deferred(),this.deActivate(null,"enter"==this.parameters.resume.mouse?"wait":"pause")},s.prototype.pauseAutoplayMouseLeaveEnded=function(){this.deferredMouseLeave&&this.deferredMouseLeave.resolve()},s.prototype.pauseAutoplayMediaPlaying=function(t,i){"undefined"!=typeof this.deferredsMediaPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsMediaPlaying[i]=e.Deferred(),this.deActivate(null,"wait")},s.prototype.pauseAutoplayMediaPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsMediaPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsMediaPlaying[t].resolve(),delete this.deferredsMediaPlaying[t])},s.prototype.pauseAutoplayExtraPlaying=function(t,i){"undefined"!=typeof this.deferredsExtraPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsExtraPlaying[i]=e.Deferred(),this.deActivate(null,"pause")},s.prototype.pauseAutoplayExtraPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsExtraPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsExtraPlaying[t].resolve(),delete this.deferredsExtraPlaying[t]),this.continueAutoplay()},s.prototype.deActivate=function(e,t){
3
- "pause"==t?this._paused||(this._paused=!0,0!==e&&this.slider.sliderElement.triggerHandler("autoplayPaused")):"wait"==t&&(this._wait||(this._wait=!0,0!==e&&this.slider.sliderElement.triggerHandler("autoplayWait"))),this.timeline&&this.timeline.pause(e,!1)},s.prototype.disable=function(){this.deActivate(0,"pause"),this.slider.sliderElement.triggerHandler("autoplayPaused"),this.slider.sliderElement.triggerHandler("autoplayDisabled"),this.slider.sliderElement.off(".autoplay"),this._disabled=!0},s.prototype.startTimeout=function(e){this._paused||this._disabled||this.timeline.play(e)},s.prototype.next=function(){this.timeline.pause(),this._currentCount++,(this.parameters.autoplayToSlide>0&&this._currentCount>=this.parameters.autoplayToSlide||this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentSlideIndex+2)&&this.limitAutoplay(),this.slider.nextCarousel(!0)},s.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.slider.sliderElement.triggerHandler("autoplayExtraWait","autoplayButton")):this.disable()},s.prototype.onUpdate=function(){this.slider.sliderElement.triggerHandler("autoplay",this.timeline.progress())},t.NextendSmartSliderControlAutoplay=s}(n2,window),function(e,t,i){"use strict";function s(t,i,n){this.slider=t,this.parameters=e.extend({},n),"vertical"==i?this.parseEvent=s.prototype.parseEventVertical:this.parseEvent=s.prototype.parseEventHorizontal,e(document).on("keydown",e.proxy(this.onKeyDown,this)),t.controls.keyboard=this}s.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.offset(),i=e(window).scrollTop(),s=this.slider.sliderElement.height();return t.top+.5*s>=i&&t.top-.5*s<=i+e(window).height()},s.prototype.onKeyDown=function(e){e.target.tagName.match(/BODY|DIV|IMG/)&&this.isSliderOnScreen()&&(e=e||window.event,this.parseEvent.call(this,e)&&(e.preventDefault(),e.stopImmediatePropagation()))},s.prototype.parseEventHorizontal=function(e){switch(e.keyCode){case 39:return this.slider[nextend.rtl.next](),!0;case 37:return this.slider[nextend.rtl.previous](),!0;default:return!1}},s.prototype.parseEventVertical=function(e){switch(e.keyCode){case 40:return this.slider.next(),!0;case 38:return this.slider.previous(),!0;default:return!1}},t.NextendSmartSliderControlKeyboard=s}(n2,window),function(e,t,i){"use strict";function s(t){this.preventScroll=!1,this.slider=t,t.sliderElement.on("DOMMouseScroll mousewheel",e.proxy(this.onMouseWheel,this)),t.controls.scroll=this}s.prototype.onMouseWheel=function(t){if(this.preventScroll)t.preventDefault();else{var i=!1;t.originalEvent&&(t.originalEvent.wheelDelta&&(i=t.originalEvent.wheelDelta/-1<0),t.originalEvent.deltaY&&(i=t.originalEvent.deltaY<0),t.originalEvent.detail&&(i=t.originalEvent.detail<0)),i?this.slider.previous()&&(this.preventScroll=!0,t.preventDefault()):this.slider.next()&&(this.preventScroll=!0,t.preventDefault()),setTimeout(e.proxy(function(){this.preventScroll=!1},this),1e3)}},t.NextendSmartSliderControlScroll=s}(n2,window),function(e,t,i){"use strict";function s(t,i){return"undefined"==typeof window.DeviceOrientationEvent||"undefined"==typeof window.orientation?"Not supported":(this.timeout=null,this.slider=t,this.parameters=e.extend({duration:2e3},i),this.orientationchange(),window.addEventListener("orientationchange",e.proxy(this.orientationchange,this)),window.addEventListener("deviceorientation",e.proxy(this.handleOrientation,this),!0),void(t.controls.tilt=this))}s.prototype.orientationchange=function(){switch(window.orientation){case-90:case 90:this.parseEvent=s.prototype.parseEventHorizontalLandscape;break;default:this.parseEvent=s.prototype.parseEventHorizontal}},s.prototype.clearTimeout=function(){this.timeout=null},s.prototype.handleOrientation=function(t){null==this.timeout&&this.parseEvent.call(this,t)&&(this.timeout=setTimeout(e.proxy(this.clearTimeout,this),this.parameters.duration),t.preventDefault())},s.prototype.parseEventHorizontal=function(e){return e.gamma>10?(this.slider.next(),!0):e.gamma<-10?(this.slider.previous(),!0):!1},s.prototype.parseEventHorizontalLandscape=function(e){return e.beta<-10?(this.slider.next(),!0):e.beta>10?(this.slider.previous(),!0):!1},t.NextendSmartSliderControlTilt=s}(n2,window),function(e,t,i){"use strict";function s(t,i,s){this.currentAnimation=null,this.slider=t,this._animation=t.mainAnimation,this.parameters=e.extend({fallbackToMouseEvents:!0},s),this.swipeElement=this.slider.sliderElement.find("> div").eq(0),"vertical"==i?this.setVertical():"horizontal"==i&&this.setHorizontal();var n=e.proxy(function(){var e=this;N2EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(e,t){r=!1},move:function(t,i,s,n,a){var o=e._direction.measure(s);if(!a&&"unknown"!=o&&null===e.currentAnimation){if("ended"!=e._animation.state)return!1;e.distance=[0],e.swipeElement.addClass("n2-grabbing"),e._animation.setTouch(e._direction.axis),e.currentAnimation={direction:o,percent:0};var l=e.slider[e._direction[o]](!1);if(!l)return e.currentAnimation=null,!1}if(e.currentAnimation){var d=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(d),e.currentAnimation.percent<1){var h=Math.max(-.99999,Math.min(.99999,d/e.slider.dimensions.slider[e._property]));e.currentAnimation.percent=h,e._animation.setTouchProgress(h)}if((r||Math.abs(d)>e._direction.minDistance)&&t.cancelable)return r=!0,!0}return!1},end:function(t,i,s,n,r){if(null!==e.currentAnimation){var a=r?0:e.measureRealDirection(),o=e._animation.timeline.progress();1!=o&&e._animation.setTouchEnd(a,e.currentAnimation.percent,s.time),e.swipeElement.removeClass("n2-grabbing"),e._animation.setTouch(!1),e.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?e.onTap(t):nextend.preventClick()}})},this);if(navigator.userAgent.toLowerCase().indexOf("android")>-1){var a=this.swipeElement.parent();1!=a.css("opacity")?this.swipeElement.parent().one("transitionend",n):n()}else n();this.parameters.fallbackToMouseEvents||this.swipeElement.on("click",e.proxy(this.onTap,this)),this.parameters.fallbackToMouseEvents&&this.swipeElement.addClass("n2-grab"),t.controls.touch=this}var n=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,r=!1,a=!1;s.prototype.setHorizontal=function(){this._property="width",this._direction={left:nextend.rtl.next,right:nextend.rtl.previous,up:null,down:null,axis:"horizontal",minDistance:10,measure:function(e){return!r&&Math.abs(e.x)<10||0==e.x||Math.abs(e.x)<Math.abs(e.y)?"unknown":e.x<0?"left":"right"},get:function(e,t){return"left"==t?-e.x:e.x}},n&&(this.swipeElement.css("-ms-touch-action","pan-y"),this.swipeElement.css("touch-action","pan-y"))},s.prototype.setVertical=function(){this._property="height",this._direction={left:null,right:null,up:"next",down:"previous",axis:"vertical",minDistance:1,measure:function(e){return!r&&Math.abs(e.y)<1||0==e.y||Math.abs(e.y)<Math.abs(e.x)?"unknown":e.y<0?"up":"down"},get:function(e,t){return"up"==t?-e.y:e.y}},n&&(this.swipeElement.css("-ms-touch-action","pan-x"),this.swipeElement.css("touch-action","pan-x"))},s.prototype.logDistance=function(e){this.distance.length>3&&this.distance.shift(),this.distance.push(e)},s.prototype.measureRealDirection=function(){var e=this.distance[0],t=this.distance[this.distance.length-1];return t>=0&&e>t||0>t&&t>e?0:1},s.prototype.onTap=function(t){a||(e(t.target).trigger("n2click"),a=!0,setTimeout(function(){a=!1},500))},t.NextendSmartSliderControlTouch=s}(n2,window),function(e,t,i){function s(e){return e.position()}function s(e){return{left:e.prop("offsetLeft"),top:e.prop("offsetTop")}}function n(t,i,s,n){"undefined"==typeof n&&(n=!1),this.isStaticSlide=n,this.status=a.NOT_INITIALIZED,this.slider=t,this.slider.isFirstSlide=!0,this.$slideElement=i,i.data("slide",this),t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=i.data("slide-duration"),e.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0)),this.findLayers(),this.slider.parameters.admin&&i.is(this.slider.adminGetCurrentSlideElement())||this.initResponsiveMode(),this.status=a.INITIALIZED,this.playOnce=!this.slider.isAdmin&&this.slider.parameters.layerMode.playOnce}function r(e,t,i,s){this.layerAnimations=[],this.slide=e,e.$slideElement.off(".n2-ss-animations");for(var n=0;n<t.length;n++){var r=t.eq(n);this.layerAnimations.push(new SlideLayerAnimations(e,this,r,r.find(".n2-ss-layer-mask, .n2-ss-layer-parallax").addBack().last(),i,s))}}var a={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3},o=["left","top","width","height"];/(MSIE\ [0-7]\.\d+)/.test(navigator.userAgent),n.prototype.isActive=function(){return this.$slideElement.hasClass("n2-ss-slide-active")},n.prototype.findLayers=function(){this.$groups=this.$slideElement.find(".n2-ss-layer-group"),this.$layers=this.$slideElement.find(".n2-ss-layer").each(e.proxy(function(t,i){for(var s=e(i),n=0;n<o.length;n++){var r=o[n];s.data("desktop"+r,parseFloat(i.style[r]))}var a=this.getLayerProperty(s,"parentid");"undefined"!=typeof a&&a?(a=e("#"+a),a.length>0&&s.data("parent",a)):s.data("parent",!1)},this)),this.$animatable=this.$groups.add(this.$layers).filter('[data-animations!=""]'),this.$parallax=this.$animatable.filter("[data-parallax]")},n.prototype.getLayerResponsiveProperty=function(e,t,i){var s=e.data(t+i);return"undefined"!=typeof s?s:"desktopportrait"!=t?e.data("desktopportrait"+i):0},n.prototype.getLayerProperty=function(e,t){return e.data(t)},n.prototype.initResponsiveMode=function(){this.slider.sliderElement.on("SliderDeviceOrientation",e.proxy(function(t,i){var s=i.device+i.orientation.toLowerCase();this.currentMode=s,this.$layers.each(e.proxy(function(t,i){var n=e(i),r=n.data(s);n.data("parent");"undefined"==typeof r||parseInt(r)?(this.getLayerProperty(n,"adaptivefont")?n.css("font-size",16*this.getLayerResponsiveProperty(n,this.currentMode,"fontsize")/100+"px"):n.css("font-size",this.getLayerResponsiveProperty(n,this.currentMode,"fontsize")+"%"),n.data("shows",1),n.css("display","block")):(n.data("shows",0),n.css("display","none"))},this))},this)).on("SliderResize",e.proxy(function(t,i,s){var n=s.responsiveDimensions;this.$layers.each(e.proxy(function(t,s){this.repositionLayer(e(s),i,n)},this))},this))},n.prototype.isDimensionPropertyAccepted=function(e){return!(!(e+"").match(/[0-9]+%/)&&"auto"!=e)},n.prototype.repositionLayer=function(e,t,i){var n=t.slideW,r=n,a=t.slideH,o=a;parseInt(this.getLayerProperty(e,"responsivesize"))||(r=o=1);var l=this.getLayerResponsiveProperty(e,this.currentMode,"width");e.css("width",this.isDimensionPropertyAccepted(l)?l:l*r+"px");var d=this.getLayerResponsiveProperty(e,this.currentMode,"height");e.css("height",this.isDimensionPropertyAccepted(d)?d:d*o+"px"),parseInt(this.getLayerProperty(e,"responsiveposition"))||(n=a=1);var h=this.getLayerResponsiveProperty(e,this.currentMode,"left")*n,p=this.getLayerResponsiveProperty(e,this.currentMode,"top")*a,c=this.getLayerResponsiveProperty(e,this.currentMode,"align"),m=this.getLayerResponsiveProperty(e,this.currentMode,"valign"),u={left:"auto",top:"auto",right:"auto",bottom:"auto"},f=this.getLayerProperty(e,"parent");if(f&&f.data("shows")){var y=s(f),g={left:0,top:0};switch(this.getLayerResponsiveProperty(e,this.currentMode,"parentalign")){case"right":g.left=y.left+f.width();break;case"center":g.left=y.left+f.width()/2;break;default:g.left=y.left}switch(c){case"right":u.right=e.parent().width()-g.left-h+"px";break;case"center":u.left=g.left+h-e.width()/2+"px";break;default:u.left=g.left+h+"px"}switch(this.getLayerResponsiveProperty(e,this.currentMode,"parentvalign")){case"bottom":g.top=y.top+f.height();break;case"middle":g.top=y.top+f.height()/2;break;default:g.top=y.top}switch(m){case"bottom":u.bottom=e.parent().height()-g.top-p+"px";break;case"middle":u.top=g.top+p-e.height()/2+"px";break;default:u.top=g.top+p+"px"}}else{switch(c){case"right":u.right=-h+"px";break;case"center":u.left=(this.isStaticSlide?e.parent().width():i.slide.width)/2+h-e.width()/2+"px";break;default:u.left=h+"px"}switch(m){case"bottom":u.bottom=-p+"px";break;case"middle":u.top=(this.isStaticSlide?e.parent().height():i.slide.height)/2+p-e.height()/2+"px";break;default:u.top=p+"px"}}e.css(u)},n.prototype.setZero=function(){this.$slideElement.trigger("layerSetZero",this)},n.prototype.setZeroAll=function(){this.$slideElement.trigger("layerSetZeroAll",this)},n.prototype.setStart=function(){this.status==a.INITIALIZED&&(this.$slideElement.trigger("layerAnimationSetStart"),this.status=a.READY_TO_START)},n.prototype.playIn=function(){this.status==a.READY_TO_START&&(this.status=a.PLAYING,this.$slideElement.trigger("layerAnimationPlayIn"))},n.prototype.playOut=function(){if(this.status==a.PLAYING){var t=[];this.$slideElement.triggerHandler("beforeMainSwitch",[t]),e.when.apply(e,t).done(e.proxy(function(){this.onOutAnimationsPlayed()},this))}else this.onOutAnimationsPlayed()},n.prototype.onOutAnimationsPlayed=function(){this.playOnce?this.status=a.ENDED:this.status=a.INITIALIZED,this.$slideElement.trigger("layerAnimationCompleteOut")},n.prototype.pause=function(){this.$slideElement.triggerHandler("layerPause")},n.prototype.reset=function(){this.$slideElement.triggerHandler("layerReset"),this.status=a.INITIALIZED},n.prototype.getTimeline=function(){return this.layers.getTimeline()},t.NextendSmartSliderSlide=n,r.prototype.refresh=function(e){for(var t=0;t<this.layerAnimations.length;t++)this.layerAnimations[t].refresh(e)},r.prototype.getTimeline=function(){for(var e=new NextendTimeline({paused:1}),t=0;t<this.layerAnimations.length;t++){var i=this.layerAnimations[t];e.add(i.linearTimeline,0),i.linearTimeline.paused(!1)}return e},t.NextendSmartSliderSlideAnimatables=r}(n2,window),function(e,t,i){function s(t,i){this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastOrientation=0,t.isAdmin&&(this.doResize=NextendThrottle(this.doResize,50)),"undefined"==typeof nextend.fontsDeferred&&(this.triggerResize=this._triggerResize),this.fixedEditRatio=1,this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.deviceMode=s.DeviceMode.UNKNOWN,this.orientationMode=s.OrientationMode.SCREEN,this.orientation=s.DeviceOrientation.UNKNOWN,this.lastRatios={ratio:-1},this.normalizedMode="unknownUnknown",t.responsive=this,this.widgetMargins={Top:[],Right:[],Bottom:[],Left:[]},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.enabledWidgetMargins=[],this.slider=t,this.sliderElement=t.sliderElement,this.alignElement=this.slider.sliderElement.closest(".n2-ss-align");var a=this.ready=e.Deferred();switch(this.sliderElement.triggerHandler("SliderResponsiveStarted"),this.sliderElement.one("SliderResize",function(){a.resolve()}),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),this.parameters=e.extend({desktop:1,tablet:1,mobile:1,onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumHeight:0,minimumHeightRatio:0,maximumHeightRatio:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},maximumSlideWidth:0,maximumSlideWidthLandscape:0,maximumSlideWidthRatio:-1,maximumSlideWidthTablet:0,maximumSlideWidthTabletLandscape:0,maximumSlideWidthMobile:0,maximumSlideWidthMobileLandscape:0,maximumSlideWidthConstrainHeight:0,forceFull:0,verticalOffsetSelectors:"",focusUser:0,focusAutoplay:0,deviceModes:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},normalizedDeviceModes:{unknownUnknown:["unknown","Unknown"],desktopPortrait:["desktop","Portrait"]},verticalRatioModifiers:{unknownUnknown:1,desktopLandscape:1,desktopPortrait:1,mobileLandscape:1,mobilePortrait:1,tabletLandscape:1,tabletPortrait:1},minimumFontSizes:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},sliderWidthToDevice:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},basedOn:"combined",desktopPortraitScreenWidth:1200,tabletPortraitScreenWidth:800,mobilePortraitScreenWidth:440,tabletLandscapeScreenWidth:1024,mobileLandscapeScreenWidth:740,orientationMode:"width_and_height",scrollFix:0,overflowHiddenPage:0},i),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&e("html, body").css("overflow","hidden"),"width"==this.parameters.orientationMode&&(this.orientationMode=s.OrientationMode.SCREEN_WIDTH_ONLY),nextend.smallestZoom=Math.min(Math.max(i.sliderWidthToDevice.mobilePortrait,120),380),this.parameters.basedOn){case"screen":break;default:if(null==n){var o=new MobileDetect(window.navigator.userAgent,801);n=!!o.tablet(),r=!!o.phone()}}if(!(this.slider.isAdmin||this.parameters.desktop&&this.parameters.tablet&&this.parameters.mobile)){if(null==n){var o=new MobileDetect(window.navigator.userAgent,801);n=!!o.tablet(),r=!!o.phone()}if(!this.parameters.mobile&&r||!this.parameters.tablet&&n||!this.parameters.desktop&&!n&&!r)return void this.slider.kill()}if(this.verticalOffsetSelectors=e(this.parameters.verticalOffsetSelectors),this.storeDefaults(),this.parameters.minimumHeight>0&&(this.parameters.minimumHeightRatio=this.parameters.minimumHeight/this.responsiveDimensions.startHeight),this.parameters.maximumHeight>0&&this.parameters.maximumHeight>=this.parameters.minimumHeight&&(this.parameters.maximumHeightRatio={desktopPortrait:this.parameters.maximumHeight/this.responsiveDimensions.startHeight},this.parameters.maximumHeightRatio.desktopLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletPortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobilePortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobileLandscape=this.parameters.maximumHeightRatio.desktopPortrait),this.parameters.maximumSlideWidth>0&&(this.parameters.maximumSlideWidthRatio={desktopPortrait:this.parameters.maximumSlideWidth/this.responsiveDimensions.startSlideWidth,desktopLandscape:this.parameters.maximumSlideWidthLandscape/this.responsiveDimensions.startSlideWidth,tabletPortrait:this.parameters.maximumSlideWidthTablet/this.responsiveDimensions.startSlideWidth,tabletLandscape:this.parameters.maximumSlideWidthTabletLandscape/this.responsiveDimensions.startSlideWidth,mobilePortrait:this.parameters.maximumSlideWidthMobile/this.responsiveDimensions.startSlideWidth,mobileLandscape:this.parameters.maximumSlideWidthMobileLandscape/this.responsiveDimensions.startSlideWidth},this.parameters.maximumSlideWidthConstrainHeight)){this.parameters.maximumHeightRatio=e.extend({},this.parameters.maximumSlideWidthRatio);for(var l in this.parameters.maximumHeightRatio)this.parameters.maximumHeightRatio[l]*=this.parameters.verticalRatioModifiers[l]}if("undefined"!=typeof nextend&&"undefined"!=typeof nextend.ssBeforeResponsive&&nextend.ssBeforeResponsive.call(this),this.onResize(),(this.parameters.onResizeEnabled||"adaptive"==this.parameters.type)&&(e(window).on("resize",e.proxy(this.onResize,this)),this.sliderElement.on("SliderInternalResize",e.proxy(this.onResize,this)),this.parameters.scrollFix))try{var d=this;e('<iframe sandbox="allow-same-origin allow-scripts" style="height: 0; background-color: transparent; margin: 0; padding: 0; overflow: hidden; border-width: 0; position: absolute; width: 100%;"/>').on("load",function(t){e(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",function(){d.sliderElement.triggerHandler("SliderInternalResize")})}).insertBefore(this.containerElement)}catch(h){}}var n=null,r=null;s.OrientationMode={SCREEN:0,ADMIN_LANDSCAPE:1,ADMIN_PORTRAIT:2,SCREEN_WIDTH_ONLY:3},s.DeviceOrientation={UNKNOWN:0,LANDSCAPE:1,PORTRAIT:2},s._DeviceOrientation={0:"Unknown",1:"Landscape",2:"Portrait"},s.DeviceMode={UNKNOWN:0,DESKTOP:1,TABLET:2,MOBILE:3},s._DeviceMode={0:"unknown",1:"desktop",2:"tablet",3:"mobile"},s.prototype.getOuterWidth=function(){var e=this.responsiveDimensions;return e.startSliderWidth+e.startSliderMarginLeft+e.startSliderMarginRight},s.prototype.storeDefaults=function(){this.responsiveDimensions={startWidth:this.sliderElement.outerWidth(!0),startHeight:this.sliderElement.outerHeight(!0)},this.responsiveElements=[],this.helperElements={},this.addResponsiveElements(),this.margins={top:this.responsiveDimensions.startSliderMarginTop,right:this.responsiveDimensions.startSliderMarginRight,bottom:this.responsiveDimensions.startSliderMarginBottom,left:this.responsiveDimensions.startSliderMarginLeft}},s.prototype.addResponsiveElements=function(){},s.prototype.addResponsiveElement=function(e,t,i,s){"undefined"!=typeof i&&i||(i="ratio");var n=new NextendSmartSliderResponsiveElement(this,i,e,t,s);return this.responsiveElements.push(n),n},s.prototype.addResponsiveElementBackgroundImage=function(e,t,i,s,n){"undefined"!=typeof s&&s||(s="ratio");var r=new NextendSmartSliderResponsiveElementBackgroundImage(this,t,s,e,i,n);return this.responsiveElements.push(r),r},s.prototype.addResponsiveElementAsSingle=function(e,t,i,s){for(var n=[],r=0;r<e.length;r++)n.push(this.addResponsiveElement(e.eq(r),t.slice(0),i,s));return n},s.prototype.addResponsiveElementBackgroundImageAsSingle=function(e,t,i,s,n){for(var r=[],a=0;a<e.length;a++)r.push(this.addResponsiveElementBackgroundImage(e.eq(a),t,i.slice(0),s,n));return r},s.prototype.resizeResponsiveElements=function(e,t,i){for(var s=0;s<this.responsiveElements.length;s++){var n=this.responsiveElements[s];"undefined"==typeof e[n.group]&&console.log("error with "+n.group),n.resize(this.responsiveDimensions,e[n.group],t,i)}},s.prototype.getDeviceMode=function(){return s._DeviceMode[this.deviceMode]},s.prototype.getDeviceModeOrientation=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.onResize=function(){"ended"==this.slider.mainAnimation.getState()?this.doResize():this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",e.proxy(this._doDelayedResize,this)))},s.prototype._doDelayedResize=function(){this.doResize(),this.delayedResizeAdded=!1},s.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(e.proxy(this.doResize,this),10)},s.prototype._getOrientation=function(){return this.orientationMode==s.OrientationMode.SCREEN?window.innerHeight<=window.innerWidth?s.DeviceOrientation.LANDSCAPE:s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE?s.DeviceOrientation.LANDSCAPE:void 0},s.prototype._getDevice=function(){switch(this.parameters.basedOn){case"combined":return this._getDeviceDevice(this._getDeviceScreenWidth());case"device":return this._getDeviceDevice(s.DeviceMode.DESKTOP);case"screen":return this._getDeviceScreenWidth()}},s.prototype._getDeviceScreenWidth=function(){var e=window.innerWidth;if(this.orientation==s.DeviceOrientation.PORTRAIT){if(e<this.parameters.mobilePortraitScreenWidth)return s.DeviceMode.MOBILE;if(e<this.parameters.tabletPortraitScreenWidth)return s.DeviceMode.TABLET}else{if(e<this.parameters.mobileLandscapeScreenWidth)return s.DeviceMode.MOBILE;if(e<this.parameters.tabletLandscapeScreenWidth)return s.DeviceMode.TABLET}return s.DeviceMode.DESKTOP},s.prototype._getDeviceAndOrientationByScreenWidth=function(){var e=window.innerWidth;return e<this.parameters.mobilePortraitScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.PORTRAIT]:e<this.parameters.mobileLandscapeScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.LANDSCAPE]:e<this.parameters.tabletPortraitScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.PORTRAIT]:e<this.parameters.tabletLandscapeScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.LANDSCAPE]:e<this.parameters.desktopPortraitScreenWidth?[s.DeviceMode.DESKTOP,s.DeviceOrientation.PORTRAIT]:[s.DeviceMode.DESKTOP,s.DeviceOrientation.LANDSCAPE]},s.prototype._getDeviceDevice=function(e){return r===!0?s.DeviceMode.MOBILE:n&&e!=s.DeviceMode.MOBILE?s.DeviceMode.TABLET:e},s.prototype._getDeviceZoom=function(e){var t;this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?t=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&&(t=s.DeviceOrientation.LANDSCAPE);var i=s.DeviceMode.DESKTOP;return e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].mobile<.001?i=s.DeviceMode.MOBILE:e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].tablet<.001&&(i=s.DeviceMode.TABLET),i},s.prototype.reTriggerSliderDeviceOrientation=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:e[0],lastOrientation:e[1],device:e[0],orientation:e[1]})},s.prototype.doResize=function(t,i,n,r){if(this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&&clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(e.proxy(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1},this),500)),this.refreshMargin(),"center"==this.slider.parameters.align&&("fullpage"==this.parameters.type?this.alignElement.css("maxWidth","none"):this.alignElement.css("maxWidth",this.responsiveDimensions.startWidth)),!this.slider.isAdmin&&this.parameters.forceFull){e("body").css("overflow-x","hidden");var a=document.body.clientWidth||document.documentElement.clientWidth,o=this.containerElement.parent(),l=o.offset();nextend.isRTL&&(l.right=a-(l.left+o.outerWidth())),this.containerElement.css(nextend.rtl.marginLeft,-l[nextend.rtl.left]-parseInt(o.css("paddingLeft"))-parseInt(o.css("borderLeftWidth"))).width(a)}var d=this.containerElementPadding.width()/this.getOuterWidth(),h=!1,p=this.orientation,c=this.deviceMode,m=null,u=null;if(this.orientationMode==s.OrientationMode.SCREEN_WIDTH_ONLY){var f=this._getDeviceAndOrientationByScreenWidth();u=f[0],m=f[1]}else m=this._getOrientation();if(this.orientation!=m&&(this.orientation=m,h=!0,this.sliderElement.trigger("SliderOrientation",{lastOrientation:s._DeviceOrientation[p],orientation:s._DeviceOrientation[m]})),t||(this.orientationMode!=s.OrientationMode.SCREEN_WIDTH_ONLY&&(u=this._getDevice(d)),this.deviceMode!=u&&(this.deviceMode=u,this.sliderElement.removeClass("n2-ss-"+s._DeviceMode[c]).addClass("n2-ss-"+s._DeviceMode[u]),this.sliderElement.trigger("SliderDevice",{lastDevice:s._DeviceMode[c],device:s._DeviceMode[u]}),h=!0)),!this.slider.isAdmin&&"fullpage"==this.parameters.type){var y=0;if(/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)){var g=!1;90==Math.abs(window.orientation)?(y=Math.min(screen.width,window.innerHeight),90!=this.lastOrientation&&(g=!0,this.lastOrientation=90)):(y=Math.min(screen.height,window.innerHeight),0!=this.lastOrientation&&(g=!0,this.lastOrientation=0)),!g&&Math.abs(y-this.lastClientHeight)<100?y=this.lastClientHeight:this.lastClientHeight=y}else y=document.documentElement.clientHeight||document.body.clientHeight;this.parameters.maximumHeightRatio[this.getDeviceModeOrientation()]=this.parameters.minimumHeightRatio=(y-this.getVerticalOffsetHeight())/this.responsiveDimensions.startHeight}if(h){var v=this._normalizeMode(s._DeviceMode[c],s._DeviceOrientation[p]),x=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);v[0]==x[0]&&v[1]==x[1]||(this.normalizedMode=x[0]+x[1],this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:v[0],lastOrientation:v[1],device:x[0],orientation:x[1]}))}var S=this.parameters.sliderWidthToDevice[this.normalizedMode]/this.parameters.sliderWidthToDevice.desktopPortrait;!this.parameters.downscale&&S>d?d=S:!this.parameters.upscale&&d>S&&(d=S),this._doResize(d,i,n,r),"center"==this.slider.parameters.align&&this.alignElement.css("maxWidth",this.responsiveDimensions.slider.width)},s.prototype._normalizeMode=function(e,t){return this.parameters.normalizedDeviceModes[e+t]},s.prototype.getNormalizedModeString=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);return e.join("")},s.prototype.getModeString=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.isEnabled=function(e,t){return this.parameters.deviceModes[e+t]},s.prototype._doResize=function(e,t,i,s){var n={ratio:e,w:e,h:e,slideW:e,slideH:e,fontRatio:1};this._buildRatios(n,this.slider.parameters.dynamicHeight,i),n.fontRatio=n.slideW;var r=!1;for(var a in n)if(n[a]!=this.lastRatios[a]){r=!0;break}r&&(this.resizeResponsiveElements(n,t,s),this.lastRatios=n,t?(this.sliderElement.trigger("SliderAnimatedResize",[n,t,s]),t.eventCallback("onComplete",function(){this.triggerResize(n,t)},[],this)):this.triggerResize(n,t))},s.prototype.triggerResize=function(t,i){nextend.fontsDeferred.done(e.proxy(function(){this.triggerResize=this._triggerResize,this._triggerResize(t,i)},this))},s.prototype._triggerResize=function(e,t){this.sliderElement.trigger("SliderResize",[e,this,t])},s.prototype._buildRatios=function(e,t,i){var s=this.getDeviceModeOrientation();this.parameters.maximumSlideWidthRatio[s]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[s]&&(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideW=e.slideH=Math.min(e.slideW,e.slideH);var n=this.parameters.verticalRatioModifiers[s];if(e.slideH*=n,"fullpage"==this.parameters.type)this.parameters.minimumHeightRatio>0&&(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),this.slider.isAdmin?(e.w=e.slideW,e.h=e.slideH):this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.slideW=e.w,this.parameters.maximumSlideWidthRatio[s]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[s]&&(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideH=e.h);else if(e.h*=n,this.parameters.minimumHeightRatio>0&&(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),e.slideH=Math.min(e.slideH,e.h),e.slideW=e.slideH/n,"showcase"==this.slider.type&&(e.slideW=Math.min(e.slideW,e.w),e.slideH=Math.min(e.slideW,e.slideH)),t){var r=this.slider.currentSlideIndex;"undefined"!=typeof i&&(r=i);var a=this.slider.backgroundImages.backgroundImages[r].responsiveElement.relativeRatio;-1!=a&&(e.slideH*=a,e.h*=a)}this.sliderElement.triggerHandler("responsiveBuildRatios",[e])},s.prototype.setOrientation=function(e){"portrait"==e?this.orientationMode=s.OrientationMode.ADMIN_PORTRAIT:"landscape"==e&&(this.orientationMode=s.OrientationMode.ADMIN_LANDSCAPE)},s.prototype.setMode=function(e,t){var i;if(this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?i=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&&(i=s.DeviceOrientation.LANDSCAPE),this==t){var n=this.parameters.sliderWidthToDevice[e+s._DeviceOrientation[i]];if(n=nextend.smallestZoom+(this.parameters.sliderWidthToDevice.desktopPortrait-nextend.smallestZoom)/50*Math.floor((n-nextend.smallestZoom)/((this.parameters.sliderWidthToDevice.desktopPortrait-nextend.smallestZoom)/50)),"mobile"==e)switch(s._DeviceOrientation[i]){case"Portrait":n=Math.max(nextend.smallestZoom,380);break;case"Landscape":n=Math.max(nextend.smallestZoom,568)}this.setSize(n),this.containerElement.width()>n&&(n=this.parameters.sliderWidthToDevice[e+s._DeviceOrientation[i]]-(this.parameters.sliderWidthToDevice.desktopPortrait-nextend.smallestZoom)/50,
4
- this.setSize(n))}},s.prototype.setSize=function(e){this.containerElement.width(e),this.doResize()},s.prototype.getCanvas=function(){return null},s.prototype.getVerticalOffsetHeight=function(){for(var e=0,t=0;t<this.verticalOffsetSelectors.length;t++)e+=this.verticalOffsetSelectors.eq(t).outerHeight();return e},s.prototype.addMargin=function(e,t){this.widgetMargins[e].push(t),t.isVisible()&&(this._addMarginSize(e,t.getSize()),this.enabledWidgetMargins.push(t)),this.doNormalizedResize()},s.prototype.addStaticMargin=function(e,t){this.widgetStaticMargins||(this.widgetStaticMargins={Top:[],Right:[],Bottom:[],Left:[]}),this.widgetStaticMargins[e].push(t),this.doNormalizedResize()},s.prototype.refreshMargin=function(){for(var t in this.widgetMargins)for(var i=this.widgetMargins[t],s=i.length-1;s>=0;s--){var n=i[s];if(n.isVisible())-1==e.inArray(n,this.enabledWidgetMargins)&&(this._addMarginSize(t,n.getSize()),this.enabledWidgetMargins.push(n));else{var r=e.inArray(n,this.enabledWidgetMargins);-1!=r&&(this._addMarginSize(t,-n.getSize()),this.enabledWidgetMargins.splice(r,1))}}this.refreshStaticSizes()},s.prototype.refreshStaticSizes=function(){if(this.widgetStaticMargins){var e={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0};for(var t in this.widgetStaticMargins)for(var i=this.widgetStaticMargins[t],s=i.length-1;s>=0;s--){var n=i[s];n.isVisible()&&(e["padding"+t]+=n.getSize())}for(var r in e)this.containerElementPadding.css(e);this.staticSizes=e}},s.prototype._addMarginSize=function(e,t){var i=null;switch(e){case"Top":case"Bottom":i=this._sliderVertical;break;default:i=this._sliderHorizontal}i.data["margin"+e]+=t,this.responsiveDimensions["startSliderMargin"+e]+=t},t.NextendSmartSliderResponsive=s}(n2,window),function(e,t,i){function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function n(t,i,s,n,r){if(this.loadDefaults(),this._lastRatio=1,this.responsive=t,this.group=i,this.element=s,this.lazyload=this.responsive.slider.parameters.lazyload.enabled,this._readyDeferred=e.Deferred(),"undefined"!=typeof r?this.name=r:this.name=null,this.tagName=s.prop("tagName"),this.data={},this.helper={parent:null,parentProps:null,fontSize:!1,centered:!1},this.customLoad)this.customLoad(n);else switch(this.tagName){case"IMG":var a=s.parent();this.helper.parentProps={width:a.width(),height:a.height()},this.lazyload?s.on("lazyloaded",e.proxy(this._lateInitIMG,this,n)):s.n2imagesLoaded(e.proxy(this._lateInitIMG,this,n));break;default:this._lateInit(n)}}function r(e,t,i,s,r,a){this.ratio=-1,this.relativeRatio=1,this.x=50,this.y=50,this.backgroundImage=t,n.prototype.constructor.call(this,e,i,s,r,a),t.addResponsiveElement(this)}n.prototype.loadDefaults=function(){this.customLoad=!1,this.lazyload=!1},n.prototype._lateInit=function(t){this._cssProperties=t,this.reloadDefault(),-1!=e.inArray("fontSize",t)&&(this.data.fontSize=this.element.data("fontsize"),this.helper.fontSize={fontSize:this.element.data("fontsize"),desktopPortrait:this.element.data("minfontsizedesktopportrait"),desktopLandscape:this.element.data("minfontsizedesktoplandscape"),tabletPortrait:this.element.data("minfontsizetabletportrait"),tabletLandscape:this.element.data("minfontsizetabletlandscape"),mobilePortrait:this.element.data("minfontsizemobileportrait"),mobileLandscape:this.element.data("minfontsizemobilelandscape")},this.responsive.sliderElement.on("SliderDeviceOrientation",e.proxy(this.onModeChange,this))),this.resize=this._resize,this._readyDeferred.resolve()},n.prototype.reloadDefault=function(){for(var e=0;e<this._cssProperties.length;e++){var t=this._cssProperties[e];this.data[t]=parseInt(this.element.css(t))}if(this.name){var i=this.responsive.responsiveDimensions;for(var n in this.data)i["start"+s(this.name)+s(n)]=this.data[n]}},n.prototype._lateInitIMG=function(t,i){var s=this.element.width(),n=this.element.height();n=parseInt(this.helper.parentProps.width/s*n),s=this.helper.parentProps.width;var r=e.inArray("width",t);-1!=r&&(t.splice(r,1),this.data.width=s);var a=e.inArray("height",t);-1!=a&&(t.splice(a,1),this.data.height=n),this._lateInit(t)},n.prototype.ready=function(e){this._readyDeferred.done(e)},n.prototype.resize=function(t,i){this.ready(e.proxy(this.resize,this,t,i)),this._lastRatio=i},n.prototype._resize=function(e,t,i,s){this.name&&"undefined"==typeof e[this.name]&&(e[this.name]={});var n={};for(var r in this.data){var a=this.data[r]*t;"function"==typeof this[r+"Prepare"]&&(a=this[r+"Prepare"](a)),this.name&&(e[this.name][r]=a),n[r]=a}i?i.to(this.element,s,n,0):(this.element.css(n),this.helper.centered&&(n2const.isIOS&&"IMG"==this.tagName&&(this.element.css({marginTop:1}),this.element.css(nextend.rtl.marginLeft,1)),this.element.css({marginTop:this.getVerticalMargin(parseInt((this.helper.parent.height()-this.element.height())/2))}),this.element.css(nextend.rtl.marginLeft,this.getHorizontalMargin(parseInt((this.helper.parent.width()-this.element.width())/2))))),this._lastRatio=t},n.prototype.getHorizontalMargin=function(e){return e},n.prototype.getVerticalMargin=function(e){return e},n.prototype._refreshResize=function(){this.responsive.ready.done(e.proxy(function(){this._resize(this.responsive.responsiveDimensions,this.responsive.lastRatios[this.group])},this))},n.prototype.widthPrepare=function(e){return Math.round(e)},n.prototype.heightPrepare=function(e){return Math.round(e)},n.prototype.marginLeftPrepare=function(e){return parseInt(e)},n.prototype.marginRightPrepare=function(e){return parseInt(e)},n.prototype.lineHeightPrepare=function(e){return e+"px"},n.prototype.fontSizePrepare=function(e){var t=this.responsive.getNormalizedModeString();return e<this.helper.fontSize[t]?this.helper.fontSize[t]:e},n.prototype.setCentered=function(){this.helper.parent=this.element.parent(),this.helper.centered=!0},n.prototype.unsetCentered=function(){this.helper.centered=!1},n.prototype.onModeChange=function(){this.setFontSizeByMode()},n.prototype.setFontSizeByMode=function(){this.element.css("fontSize",this.fontSizePrepare(this.data.fontSize*this._lastRatio))},t.NextendSmartSliderResponsiveElement=n,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.customLoad=function(t){var i=this.element.parent();this.helper.parentProps={width:i.width(),height:i.height()},this.backgroundImage.afterLoaded().done(e.proxy(function(){this._lateInitIMG(t)},this))},r.prototype._lateInitIMG=function(e,t){"fill"!=this.backgroundImage.mode&&"fit"!=this.backgroundImage.mode&&"simple"!=this.backgroundImage.mode||(this.refreshRatio(),this.responsive.slider.parameters.dynamicHeight||this.setCentered()),this._lateInit(e)},r.prototype.afterLoaded=function(){"fill"!=this.backgroundImage.mode&&"fit"!=this.backgroundImage.mode&&"simple"!=this.backgroundImage.mode||(this.refreshRatio(),this.responsive.slider.parameters.dynamicHeight||this.setCentered())},r.prototype._resize=function(e,t,i,s){if(this.responsive.slider.parameters.dynamicHeight)this.element.css({width:"100%",height:"100%"});else{var r=e.slideouter||e.slide,a=r.width/r.height;"fill"==this.backgroundImage.mode?a>this.ratio?this.element.css({width:"100%",height:"auto"}):this.element.css({width:"auto",height:"100%"}):"fit"==this.backgroundImage.mode&&(a<this.ratio?this.element.css({width:"100%",height:"auto"}):this.element.css({width:"auto",height:"100%"}))}n.prototype._resize.call(this,e,t,i,s)},r.prototype.refreshRatio=function(){var e=this.element.prop("naturalWidth"),t=this.element.prop("naturalHeight");this.ratio=e/t;var i=this.responsive.responsiveDimensions.startSlideWidth,s=this.responsive.responsiveDimensions.startSlideHeight;this.relativeRatio=i/s/this.ratio,this.x=parseInt(this.element.data("x")),isNaN(this.x)&&(this.x=50),this.y=parseInt(this.element.data("y")),isNaN(this.y)&&(this.y=50)},r.prototype.getHorizontalMargin=function(e){return e*(this.x/50)},r.prototype.getVerticalMargin=function(e){return e*(this.y/50)},t.NextendSmartSliderResponsiveElementBackgroundImage=r}(n2,window),function(e,t,i){function s(t,i,s,n,r){this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.parameters=e.extend({vimeourl:"//vimeo.com/144598279",center:0,autoplay:"0",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1"},n),navigator.userAgent.toLowerCase().indexOf("android")>-1&&(this.parameters.autoplay=0),1==this.parameters.autoplay||!r||n2const.isMobile?this.ready(e.proxy(this.initVimeoPlayer,this)):e("#"+this.playerId).on("click.vimeo n2click.vimeo",e.proxy(function(t){e(t.currentTarget).off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initVimeoPlayer()},this))},this))}s.vimeoDeferred=null,s.prototype.ready=function(t){null===s.vimeoDeferred&&(s.vimeoDeferred=e.getScript("https://player.vimeo.com/api/player.js")),s.vimeoDeferred.done(t)},s.prototype.initVimeoPlayer=function(){var t=n2('<iframe id="'+this.playerId+'_video" src="https://player.vimeo.com/video/'+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>');e("#"+this.playerId).append(t),this.isStatic=t.closest(".n2-ss-static-slide").length,this.playerElement=t,this.player=new Vimeo.Player(t[0]),this.player.ready().then(e.proxy(this.onReady,this))},s.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),this.slideIndex=this.slider.findSlideIndexByElement(this.playerElement),1==this.parameters.center&&(this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)));var i=this.playerElement.parent().parent();this.player.on("play",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play")},this)),this.player.on("pause",e.proxy(function(){i.triggerHandler("n2pause")})),this.player.on("ended",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop")},this)),this.isStatic||this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s,n){s!=this.slideIndex&&(parseInt(this.parameters.reset)?this.reset():this.pause())},this)),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.readyDeferred.resolve()},s.prototype.onResize=function(){var e=52,t=this.playerElement.parent(),i=t.width()+e,s=t.height()+e,n=16/9,r={width:i,height:s,marginTop:0};r[nextend.rtl.marginLeft]=0,i/s>n?(r.height=i*n,r.marginTop=(s-r.height)/2):(r.width=s*n,r[nextend.rtl.marginLeft]=(i-r.width)/2),this.playerElement.css(r)},s.prototype.initAutoplay=function(){this.isStatic?this.play():(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(e,t,i,s,n){s==this.slideIndex&&this.play()},this)),this.slider.currentSlideIndex==this.slideIndex&&this.play())},s.prototype.play=function(){this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.play()},s.prototype.pause=function(){this.player.pause()},s.prototype.reset=function(){this.player.setCurrentTime(0)},s.prototype.setVolume=function(e){this.player.setVolume(e)},t.NextendSmartSliderVimeoItem=s}(n2,window),function(e,t,i){function s(t,i,s,n){this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.parameters=e.extend({youtubeurl:"//www.youtube.com/watch?v=MKmIwHAFjSU",youtubecode:"MKmIwHAFjSU",center:0,autoplay:"1",theme:"dark",related:"1",vq:"default",volume:"-1",loop:0,reset:0,query:[]},s),navigator.userAgent.toLowerCase().indexOf("android")>-1&&(this.parameters.autoplay=0),1==this.parameters.autoplay||!n||n2const.isMobile?this.ready(e.proxy(this.initYoutubePlayer,this)):e("#"+this.playerId).on("click.youtube n2click.youtube",e.proxy(function(t){e(t.currentTarget).off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initYoutubePlayer()},this))},this))}s.YTDeferred=null,s.prototype.ready=function(t){if(null===s.YTDeferred)if(s.YTDeferred=e.Deferred(),"undefined"==typeof YT){var i=function(){};"function"==typeof window.onYouTubeIframeAPIReady&&(i=window.onYouTubeIframeAPIReady),window.onYouTubeIframeAPIReady=function(){s.YTDeferred.resolve(),i()},e.getScript("https://www.youtube.com/iframe_api")}else if(YT.loaded)s.YTDeferred.resolve();else var n=setInterval(function(){YT.loaded&&(s.YTDeferred.resolve(),clearInterval(n))},200);s.YTDeferred.done(t)},s.prototype.initYoutubePlayer=function(){var t=e("#"+this.playerId),i=t.closest(".n2-ss-layer");this.isStatic=t.closest(".n2-ss-static-slide").length;var s={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,theme:this.parameters.theme,modestbranding:1,wmode:"opaque",rel:this.parameters.related,vq:this.parameters.vq,start:this.parameters.start};1==this.parameters.center&&(s.controls=0,s.showinfo=0),1!=this.parameters.controls&&(s.autohide=1,s.controls=0,s.showinfo=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(s.html5=1);for(var n in this.parameters.query)this.parameters.query.hasOwnProperty(n)&&(s[n]=this.parameters.query[n]);this.player=new YT.Player(this.playerId,{videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:s,events:{onReady:e.proxy(this.onReady,this),onStateChange:e.proxy(function(e){switch(e.data){case YT.PlayerState.PLAYING:this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:i.triggerHandler("n2pause");break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(0),this.player.playVideo()):(this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"))}},this)}}),this.playerElement=e("#"+this.playerId),this.slideIndex=this.slider.findSlideIndexByElement(this.playerElement),1==this.parameters.center&&(this.playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)))},s.prototype.onReady=function(t){var i=parseFloat(this.parameters.volume);i>=0&&this.setVolume(i),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s,n){s!=this.slideIndex&&this.pause()},this)),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(e,t,i,s,n){s!=this.slideIndex&&this.player.seekTo(0)},this))),this.readyDeferred.resolve()},s.prototype.onResize=function(){var e=100,t=this.playerElement.parent(),i=t.width(),s=t.height()+e,n=16/9,r={width:i,height:s,marginTop:0};r[nextend.rtl.marginLeft]=0,i/s>n?(r.height=i*n,r.marginTop=(s-r.height)/2):(r.width=s*n,r[nextend.rtl.marginLeft]=(i-r.width)/2),this.playerElement.css(r)},s.prototype.initAutoplay=function(){this.isStatic?this.play():(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(e,t,i,s,n){s==this.slideIndex&&this.play()},this)),this.slider.currentSlideIndex==this.slideIndex&&this.play())},s.prototype.play=function(){this.isStopped()&&(this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.playVideo())},s.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},s.prototype.stop=function(){this.player.stopVideo()},s.prototype.isStopped=function(){var e=this.player.getPlayerState();switch(e){case-1:case 0:case 2:case 5:return!0;default:return!1}},s.prototype.setVolume=function(e){this.player.setVolume(100*e)},t.NextendSmartSliderYouTubeItem=s}(n2,window);
1
+ !function(e,t,i){function s(t){this.device=null,this.load=e.Deferred(),this.slider=t,this.slides=this.slider.realSlides,this.loaded=[],this.lazyLoad=t.parameters.lazyLoad,this.lazyLoadNeighbor=t.parameters.lazyLoadNeighbor,this.deviceDeferred=e.Deferred(),this.backgroundImages=[];for(var i=0;i<this.slides.length;i++){this.loaded[i]=!1;var s=this.slides.eq(i).find(".n2-ss-slide-background");s.length>0?this.backgroundImages[i]=new n(i,s,this):this.backgroundImages[i]=!1,this.slides.eq(i).data("slideBackground",this.backgroundImages[i])}this.slider.sliderElement.one("SliderDevice",e.proxy(this.onSlideDeviceChangedFirst,this))}function n(t,i,s){this.responsiveElement=!1,this.loadStarted=!1,this.i=t,this.element=i,this.manager=s,this.loadDeferred=e.Deferred();var n=i.find(".n2-ss-slide-background-image");if(this.image=n,n.hasClass("n2-ss-slide-simple"))this.mode="simple",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-fill"))this.mode="fill",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-fit"))this.mode="fit",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-stretch"))this.mode="stretch",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-center")){this.mode="center";var r=n.css("backgroundImage").match(/url\(["]*([^)"]+)["]*\)/i);r.length>0&&(this.currentSrc=r[1])}else if(n.hasClass("n2-ss-slide-tile")){this.mode="tile";var r=n.css("backgroundImage").match(/url\(["]*([^)"]+)["]*\)/i);r.length>0&&(this.currentSrc=r[1])}else if(n.hasClass("n2-ss-slide-fixed")&&!(n2const.isPhone&&!this.manager.slider.parameters["background.parallax.mobile"]||n2const.isTablet&&!this.manager.slider.parameters["background.parallax.tablet"])){this.mode="fixed";var r=n.css("backgroundImage").match(/url\(["]*([^)"]+)["]*\)/i);r.length>0&&(this.currentSrc=r[1])}else this.mode="fill",this.currentSrc="";if(this.x=n.data("x"),this.y=n.data("y"),this.hash=i.data("hash"),this.desktopSrc=i.data("desktop")||"",this.tabletSrc=i.data("tablet")||"",this.mobileSrc=i.data("mobile")||"",nextend.isRetina){var a=i.data("desktop-retina");a&&(this.desktopSrc=a),a=i.data("tablet-retina"),a&&(this.tabletSrc=a),a=i.data("mobile-retina"),a&&(this.mobileSrc=a)}var o=i.data("opacity");o>=0&&1>o&&(this.opacity=o),s.slider.isAdmin&&(this._change=this.change,this.change=this.changeAdmin),this.listenImageManager()}s.prototype.whenWithProgress=function(t){for(var i=0,s=e.Deferred(),n=0;n<t.length;n++)t[n].done(function(){s.notify(++i,t.length)});return e.when.apply(e,t).done(function(){s.resolveWith(null,arguments)}),s.promise()},s.prototype.getBackgroundImages=function(){return this.backgroundImages},s.prototype.onSlideDeviceChangedFirst=function(t,i){this.onSlideDeviceChanged(t,i),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",e.proxy(this.onSlideDeviceChanged,this)),1==this.lazyLoad?(this.preLoad=this.preLoadLazyNeighbor,this.load=e.when(this.preLoad(this.slider.currentSlideIndex))):2==this.lazyLoad?(e(window).load(e.proxy(this.preLoadAll,this)),this.load=e.when(this.preLoad(this.slider.currentSlideIndex))):this.load=this.whenWithProgress(this.preLoadAll())},s.prototype.onSlideDeviceChanged=function(e,t){this.device=t;for(var i=0;i<this.backgroundImages.length;i++)this.backgroundImages[i]&&this.backgroundImages[i].onSlideDeviceChanged(t)},s.prototype.changed=function(e){1==this.lazyLoad||2==this.lazyLoad?e==this.slider.currentSlideIndex&&this.preLoad(e):this.preLoad(e)},s.prototype.preLoadCurrent=function(){this.preLoad(this.slider.currentSlideIndex)},s.prototype.preLoadAll=function(){for(var e=[],t=0;t<this.backgroundImages.length;t++)e.push(this._preLoad(t));return e},s.prototype.preLoad=function(e){return this._preLoad(e)},s.prototype.preLoadLazyNeighbor=function(t){var i=this.lazyLoadNeighbor,s=[this._preLoad(t)];if(i){for(var n=0,r=t;i>n;)r--,0>r&&(r=this.backgroundImages.length-1),s.push(this._preLoad(r)),n++;for(n=0,r=t;i>n;)r++,r>=this.backgroundImages.length&&(r=0),s.push(this._preLoad(r)),n++}var a=e.Deferred();if(1!=s[0].state()&&"resolved"!=s[0].state()){var o=setTimeout(e.proxy(function(){this.slider.load.showSpinner("backgroundImage"+t),o=null},this),50);e.when.apply(e,s).done(e.proxy(function(){o?(clearTimeout(o),o=null):this.slider.load.removeSpinner("backgroundImage"+t),setTimeout(function(){a.resolve()},100)},this))}else setTimeout(function(){a.resolve()},100);return a},s.prototype._preLoad=function(t){return this.loaded[t]||(this.slides.eq(t).find("[data-lazysrc]").each(function(){var t=e(this);t.attr("src",t.data("lazysrc"))}),this.loaded[t]=!0),this.backgroundImages[t]?this.backgroundImages[t].preLoad():!0},t.NextendSmartSliderBackgroundImages=s,n.prototype.fixNatural=function(e){var t=new Image;t.src=e.src,e.naturalWidth=t.width,e.naturalHeight=t.height},n.prototype.preLoad=function(){return"pending"==this.loadDeferred.state()&&(this.loadStarted=!0,this.manager.deviceDeferred.done(e.proxy(function(){this.onSlideDeviceChanged(this.manager.device),this.element.n2imagesLoaded(e.proxy(function(){this.isLoaded=!0;var e=this.image[0];"IMG"==e.tagName&&"undefined"==typeof e.naturalWidth&&this.fixNatural(e),this.loadDeferred.resolve(this.element)},this))},this))),this.loadDeferred},n.prototype.afterLoaded=function(){return e.when(this.loadDeferred,this.manager.slider.responsive.ready)},n.prototype.onSlideDeviceChanged=function(e){var t=this.desktopSrc;"mobile"==e.device?this.mobileSrc?t=this.mobileSrc:this.tabletSrc&&(t=this.tabletSrc):"tablet"==e.device&&this.tabletSrc&&(t=this.tabletSrc),this.change(t,"",this.mode,this.x,this.y)},n.prototype.addResponsiveElement=function(e){this.responsiveElement=e},n.prototype.listenImageManager=function(){""!=this.hash&&e(window).on(this.hash,e.proxy(this.onImageManagerChanged,this))},n.prototype.notListenImageManager=function(){""!=this.hash&&e(window).off(this.hash,null,e.proxy(this.onImageManagerChanged,this))},n.prototype.onImageManagerChanged=function(e,t){this.tabletSrc=t.tablet.image,this.mobileSrc=t.mobile.image,"tablet"!=this.manager.device.device&&"mobile"!=this.manager.device.device||this.onSlideDeviceChanged(this.manager.device)},n.prototype.changeDesktop=function(t,i,s,n,r){if(this.notListenImageManager(),this.desktopSrc=t,this.hash=md5(t),"default"==s&&(s=nextend.smartSlider.slideBackgroundMode),this.change(t,i,s,n,r),""!=t){var a=new Image;a.addEventListener("load",e.proxy(function(){e.when(nextend.imageManager.getVisual(t)).done(e.proxy(function(e){this.onImageManagerChanged(null,e.value),this.listenImageManager()},this))},this),!1),a.src=nextend.imageHelper.fixed(t)}else this.tabletSrc="",this.mobileSrc=""},n.prototype.changeAdmin=function(e,t,i,s,n){this.manager.slider.parameters.dynamicHeight&&(i="simple"),this._change(nextend.imageHelper.fixed(e),t,i,s,n)},n.prototype.change=function(t,i,s,n,r){if(n=parseInt(n),r=parseInt(r),isNaN(n)&&(n=50),n=Math.max(0,Math.min(100,n)),isNaN(r)&&(r=50),r=Math.max(0,Math.min(100,r)),(this.currentSrc!=t||this.mode!=s||this.x!=n||this.y!=r)&&this.loadStarted){var a=null;switch(s){case"simple":a=e('<img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-simple" />');break;case"fill":a=e('<img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-fill" />'),this.responsiveElement.setCentered();break;case"fit":a=e('<img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-fit" />'),this.responsiveElement.setCentered();break;case"stretch":a=e('<img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-stretch" />'),this.responsiveElement.unsetCentered();break;case"center":a=e('<div class="n2-ss-slide-background-image n2-ss-slide-center"></div>').css({backgroundImage:"url('"+t+"')",backgroundPosition:n+"% "+r+"%"}),this.responsiveElement.unsetCentered();break;case"tile":a=e('<div class="n2-ss-slide-background-image n2-ss-slide-tile"></div>').css({backgroundImage:"url('"+t+"')",backgroundPosition:n+"% "+r+"%"}),this.responsiveElement.unsetCentered()}switch(""==t&&a.css("display","none"),a.css("opacity",this.opacity),this.image.replaceWith(a).remove(),this.responsiveElement.element=this.image=a,this.currentSrc=t,this.mode=s,this.x=n,this.y=r,"pending"==this.loadDeferred.state()&&this.loadDeferred.resolve(),this.loadDeferred=e.Deferred(),this.manager.changed(this.i),s){case"fill":case"fit":this.afterLoaded().done(e.proxy(function(){this.responsiveElement.afterLoaded(),this.responsiveElement.refreshRatio(),this.responsiveElement._refreshResize()},this));break;case"stretch":case"center":case"tile":case"fixed":case"simple":this.responsiveElement._refreshResize()}}},n.prototype.setOpacity=function(e){this.opacity=e,this.image.css("opacity",e)},t.NextendSmartSliderBackgroundImage=n}(n2,window),function(e,t,i){function s(t,i){this.smartSlider=t,this.spinnerKey="fadePlaceholder",this.id=t.sliderElement.attr("id"),this.parameters=e.extend({fade:1,scroll:0},i),this.spinner=e("#"+this.id+"-spinner"),this.deferred=e.Deferred()}s.prototype.start=function(){if(this.parameters.scroll){var t=e(window);t.on("scroll."+this.id,e.proxy(this.onScroll,this)),this.onScroll()}else if(this.parameters.fade){this.loadingArea=e("#"+this.id+"-placeholder").eq(0),this.showSpinner("fadePlaceholder");var i=this.spinner.find(".n2-ss-spinner-counter");i.length&&this.smartSlider.backgroundImages.load.progress(e.proxy(function(e,t){i.html(Math.round(e/(t+1)*100)+"%")},this)),e.when(this.smartSlider.responsive.ready,this.smartSlider.backgroundImages.load,this.loadLayerImages).always(e.proxy(this.showSlider,this))}else this.smartSlider.responsive.ready.done(e.proxy(function(){this.showSlider()},this))},s.prototype.loadLayerImages=function(){var t=e.Deferred();return this.smartSlider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},s.prototype.onScroll=function(){var t=e(window);t.scrollTop()+t.height()>this.smartSlider.sliderElement.offset().top+100&&(e.when(this.smartSlider.responsive.ready,this.smartSlider.backgroundImages.load,this.loadLayerImages).always(e.proxy(this.showSlider,this)),t.off("scroll."+this.id))},s.prototype.showSlider=function(t){this.smartSlider.responsive.isReadyToResize=!0,e.when.apply(e,this.smartSlider.widgetDeferreds).done(e.proxy(function(){this.smartSlider.responsive.doResize(),this.smartSlider.sliderElement.trigger("BeforeVisible"),this.smartSlider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.removeSpinner("fadePlaceholder"),e("#"+this.id+"-placeholder").remove(),this.loadingArea=this.smartSlider.sliderElement,"function"==typeof t?t(this.deferred):this.deferred.resolve()},this))},s.prototype.loaded=function(e){this.deferred.done(e)},s.prototype.showSpinner=function(e){this.spinnerKey=e,this.spinner.appendTo(this.loadingArea).css("display","")},s.prototype.removeSpinner=function(e){this.spinnerKey==e&&(this.spinner.detach(),this.spinnerKey="")},t.NextendSmartSliderLoad=s}(n2,window),function(e,t,i){function s(){this.sliders={},this.readys={},this._resetCounters=[]}s.prototype.makeReady=function(e,t){if(this.sliders[e]=t,"undefined"!=typeof this.readys[e])for(var i=0;i<this.readys[e].length;i++)this.readys[e][i].call(t,t,t.sliderElement)},s.prototype.ready=function(e,t){"undefined"!=typeof this.sliders[e]?t.call(this.sliders[e],this.sliders[e],this.sliders[e].sliderElement):("undefined"==typeof this.readys[e]&&(this.readys[e]=[]),this.readys[e].push(t))},s.prototype.trigger=function(t,i){var s=n2(t),n=i.split(","),r=s.closest(".n2-ss-slide,.n2-ss-static-slide");if(n.length>1){-1==e.inArray(t,this._resetCounters)&&(this._resetCounters.push(t),r.on("layerAnimationSetStart.resetCounter",function(){s.data("eventCounter",0)}));var a=s.data("eventCounter")||0;i=n[a],a++,a>n.length-1&&(a=0),s.data("eventCounter",a)}r.triggerHandler(i)},s.prototype.applyAction=function(e,t){var i=n2(e).closest(".n2-ss-slider").data("ss");i[t].apply(i,Array.prototype.slice.call(arguments,2))},window.n2ss=new s}(n2,window),function($,scope,undefined){function NextendSmartSliderAbstract(e,t){this.startedDeferred=$.Deferred(),e instanceof n2&&(e="#"+e.attr("id"));var i=e.substr(1);return window[i]&&window[i]instanceof NextendSmartSliderAbstract?!1:(window[i]=this,this.readyDeferred=$.Deferred(),void $(e).n2waitUntilExists(e,$.proxy(function(){var s=$(e);if(this.nextCarousel=this.next,this.previousCarousel=this.previous,"SCRIPT"==s.prop("tagName")){var n=s.data("dependency"),r=s.data("delay"),a=$.proxy(function(){var n=$(s.html().replace(/<_s_c_r_i_p_t/g,"<script").replace(/<_\/_s_c_r_i_p_t/g,"</script"));s.replaceWith(n),this.postInit(i,$(e),t),$(window).triggerHandler("n2Rocket",[this.sliderElement])},this);n&&$("#n2-ss-"+n).length?n2ss.ready(n,$.proxy(function(e){e.ready(a)},this)):r?setTimeout(a,r):a()}else this.postInit(i,s,t)},this),!0))}NextendSmartSliderAbstract.prototype.postInit=function(e,t,i){i.isDelayed?setTimeout($.proxy(this._postInit,this,e,t,i),200):this._postInit(e,t,i)},NextendSmartSliderAbstract.prototype._postInit=function(e,t,i){var s=t.is(":visible");s?this.__postInit(e,t,i):setTimeout($.proxy(this._postInit,this,e,t,i),200)},NextendSmartSliderAbstract.prototype.__postInit=function(id,sliderElement,parameters){this.killed=!1,this.isAdmin=!1,this.currentSlideIndex=0,this.responsive=!1,this.layerMode=!0,this._lastChangeTime=0,this.id=parseInt(id.replace("n2-ss-","")),this.sliderElement=sliderElement.data("ss",this),this.parameters=$.extend({admin:!1,playWhenVisible:1,isStaticEdited:!1,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{drag:!1,touch:"horizontal",keyboard:!1,scroll:!1,tilt:!1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},foreverLayerAnimation:!1,parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:[],dynamicHeight:0,lightbox:[],lightboxDeviceImages:[],titles:[],descriptions:[],"background.parallax.tablet":0,"background.parallax.mobile":0,allowBGImageAttachmentFixed:1},parameters);try{eval(this.parameters.callbacks)}catch(e){console.error(e)}this.startVisibilityCheck(),n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",$.proxy(this.addWidget,this)),this.isAdmin=!!this.parameters.admin,this.isAdmin&&(this.changeTo=function(){}),this.load=new NextendSmartSliderLoad(this,this.parameters.load),this.findSlides(),this.randomize(),this.currentSlideIndex=this.__getActiveSlideIndex();var forceActiveSlideIndex="undefined"!=typeof window["ss"+this.id]?parseInt(window["ss"+this.id]):null;if(null!==forceActiveSlideIndex&&this.changeActiveBeforeLoad(forceActiveSlideIndex),!this.isAdmin&&this.parameters.maintainSession&&"undefined"!=typeof sessionStorage){var sessionIndex=parseInt(sessionStorage.getItem("ss-"+this.id));null===forceActiveSlideIndex&&null!==sessionIndex&&this.changeActiveBeforeLoad(sessionIndex),this.sliderElement.on("mainAnimationComplete",$.proxy(function(e,t,i,s){sessionStorage.setItem("ss-"+this.id,s)},this))}this.backgroundImages=new NextendSmartSliderBackgroundImages(this);for(var i=0;i<this.parameters.initCallbacks.length;i++)new Function(this.parameters.initCallbacks[i])(this);if(this.initSlides(),this.widgets=new NextendSmartSliderWidgets(this),this.sliderElement.on({universalenter:$.proxy(function(e){$(e.target).closest(".n2-full-screen-widget").length||this.sliderElement.addClass("n2-hover")},this),universalleave:$.proxy(function(e){e.stopPropagation(),this.sliderElement.removeClass("n2-hover")},this)}),this.controls={},this.layerMode&&this.initMainAnimationWithLayerAnimation(),this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(e){e.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){if(this.initControls(),this.startedDeferred.resolve(this),!this.isAdmin){var event="click";"0"!=this.parameters.controls.touch&&this.parameters.controls.touch&&(event="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(event,function(){eval(el.data("n2click"))})}),this.sliderElement.find("[data-click]").each(function(i,el){var el=$(el).on("click",function(){eval(el.data("click"))}).css("cursor","pointer")}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&&4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))}),this.sliderElement.find("[data-mouseenter]").each(function(i,el){var el=$(el).on("mouseenter",function(){eval(el.data("mouseenter"))})}),this.sliderElement.find("[data-mouseleave]").each(function(i,el){var el=$(el).on("mouseleave",function(){eval(el.data("mouseleave"))})}),this.sliderElement.find("[data-play]").each(function(i,el){var el=$(el).on("n2play",function(){eval(el.data("play"))})}),this.sliderElement.find("[data-pause]").each(function(i,el){var el=$(el).on("n2pause",function(){eval(el.data("pause"))})}),this.sliderElement.find("[data-stop]").each(function(i,el){var el=$(el).on("n2stop",function(){eval(el.data("stop"))})});var preventFocus=!1;this.slides.find("a").on("mousedown",function(e){preventFocus=!0,setTimeout(function(){preventFocus=!1},100)}),this.slides.find("a").on("focus",$.proxy(function(e){if(!preventFocus){var t=this.findSlideIndexByElement(e.currentTarget);-1!=t&&t!=this.currentSlideIndex&&this.changeTo(t,!1,!1)}},this))}this.preReadyResolve(),this.initCarousel(),this.sliderElement.find('[role="button"], [tabindex]').keypress(function(e){32!==e.charCode&&13!==e.charCode||(e.preventDefault(),$(e.target).click())}).on("mouseleave",function(e){$(e.currentTarget).blur()})}},NextendSmartSliderAbstract.prototype.initSlides=function(){if(this.layerMode){if(this.isAdmin&&"showcase"!=this.type)new NextendSmartSliderSlide(this,this.slides.eq(this.currentSlideIndex),1);else for(var e=0;e<this.slides.length;e++)new NextendSmartSliderSlide(this,this.slides.eq(e),this.currentSlideIndex==e);var t=this.findStaticSlide();t.length&&new NextendSmartSliderSlide(this,t,!0,!0)}},NextendSmartSliderAbstract.prototype.getRealIndex=function(e){return e},NextendSmartSliderAbstract.prototype.changeActiveBeforeLoad=function(e){e>0&&e<this.slides.length&&this.currentSlideIndex!=e&&(this.unsetActiveSlide(this.slides.eq(this.currentSlideIndex)),this.setActiveSlide(this.slides.eq(e)),this.currentSlideIndex=e,this.ready($.proxy(function(){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},this)))},NextendSmartSliderAbstract.prototype.kill=function(){this.killed=!0,$("#"+this.sliderElement.attr("id")+"-placeholder").remove(),this.sliderElement.closest(".n2-ss-align").remove()},NextendSmartSliderAbstract.prototype.randomize=function(){this.parameters.randomize.randomizeFirst&&(this.slides.filter(".n2-ss-slide-active").removeClass("n2-ss-slide-active"),this.slides.eq(Math.floor(Math.random()*this.slides.length)).addClass("n2-ss-slide-active")),this.parameters.randomize.randomize&&this.shuffleSlides()},NextendSmartSliderAbstract.prototype.shuffleSlides=function(){this.slides.sort(function(){return Math.round(Math.random())-.5}),this.slides.appendTo(this.slides.parent()),this.shuffled=[];for(var e=0;e<this.slides.length;e++)this.shuffled[e]=this.slides.eq(e).data("originalIndex");if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var t=[],e=0;e<this.shuffled.length;e++)t.push(this.parameters.postBackgroundAnimations.slides[this.shuffled[e]]);this.parameters.postBackgroundAnimations.slides=t}if(this.parameters.bgAnimations&&this.parameters.bgAnimations.slides){for(var i=[],e=0;e<this.shuffled.length;e++)i.push(this.parameters.bgAnimations.slides[this.shuffled[e]]);this.parameters.bgAnimations.slides=i}},NextendSmartSliderAbstract.prototype.findSlides=function(){this.realSlides=this.slides=this.sliderElement.find(".n2-ss-slide");for(var e=0;e<this.realSlides.length;e++)this.realSlides.eq(e).data("originalIndex",e)},NextendSmartSliderAbstract.prototype.findStaticSlide=function(){return this.sliderElement.find(".n2-ss-static-slide")},NextendSmartSliderAbstract.prototype.addWidget=function(e,t){this.widgetDeferreds.push(t)},NextendSmartSliderAbstract.prototype.started=function(e){this.startedDeferred.done($.proxy(e,this))},NextendSmartSliderAbstract.prototype.preReadyResolve=function(){setTimeout($.proxy(this._preReadyResolve,this),1)},NextendSmartSliderAbstract.prototype._preReadyResolve=function(){this.load.start(),this.load.loaded($.proxy(this.readyResolve,this))},NextendSmartSliderAbstract.prototype.readyResolve=function(){$(window).scroll(),this.readyDeferred.resolve()},NextendSmartSliderAbstract.prototype.ready=function(e){this.readyDeferred.done($.proxy(e,this))},NextendSmartSliderAbstract.prototype.startVisibilityCheck=function(){this.visibleDeferred=$.Deferred(),this.parameters.playWhenVisible?this.ready($.proxy(function(){$(window).on("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.checkIfVisible()},this)):this.ready($.proxy(function(){this.visibleDeferred.resolve()},this))},NextendSmartSliderAbstract.prototype.checkIfVisible=function(){var e=$(window).scrollTop(),t=e+$(window).height(),i=this.sliderElement.offset().top+this.sliderElement.height()/2;i>=e&&t>=i&&($(window).off("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.visibleDeferred.resolve())},NextendSmartSliderAbstract.prototype.visible=function(e){this.visibleDeferred.done($.proxy(e,this))},NextendSmartSliderAbstract.prototype.isPlaying=function(){return"ended"!=this.mainAnimation.getState()},NextendSmartSliderAbstract.prototype.focus=function(e){var t=$.Deferred();if("undefined"==typeof e&&(e=0),this.responsive.parameters.focusUser&&!e||this.responsive.parameters.focusAutoplay&&e){var i=this.sliderElement.offset().top-(this.responsive.verticalOffsetSelectors.height()||0);$(window).scrollTop()!=i?$("html, body").animate({scrollTop:i},400,$.proxy(function(){t.resolve()},this)):t.resolve()}else t.resolve();return t},NextendSmartSliderAbstract.prototype.initCarousel=function(){if(!parseInt(this.parameters.carousel)){this.next=this.nextNotCarousel,this.previous=this.previousNotCarousel;var e=this.slides.length,t=1,i=this.sliderElement.find(".nextend-arrow-previous"),s=function(e){e!=t&&(NextendTween.to(i,.4,{opacity:e}).play(),t=e)},n=1,r=this.sliderElement.find(".nextend-arrow-next"),a=function(e){e!=n&&(NextendTween.to(r,.4,{opacity:e}).play(),n=e)},o=function(t){s(0==t?0:1),a(t==e-1?0:1)};o(this.__getActiveSlideIndex()),this.sliderElement.on("sliderSwitchTo",function(e,t){o(t)})}},NextendSmartSliderAbstract.prototype.next=function(e,t){var i=this.currentSlideIndex+1;return i>=this.slides.length&&(i=0),this.changeTo(i,!1,e,t)},NextendSmartSliderAbstract.prototype.previous=function(e,t){var i=this.currentSlideIndex-1;return 0>i&&(i=this.slides.length-1),this.changeTo(i,!0,e,t)},NextendSmartSliderAbstract.prototype.nextNotCarousel=function(e,t){var i=this.currentSlideIndex+1;return i<this.slides.length?this.changeTo(i,!1,e,t):!1},NextendSmartSliderAbstract.prototype.previousNotCarousel=function(e,t){var i=this.currentSlideIndex-1;return i>=0?this.changeTo(i,!0,e,t):!1},NextendSmartSliderAbstract.prototype.directionalChangeToReal=function(e){this.directionalChangeTo(e)},NextendSmartSliderAbstract.prototype.directionalChangeTo=function(e){e>this.currentSlideIndex?this.changeTo(e,!1):this.changeTo(e,!0)},NextendSmartSliderAbstract.prototype.changeTo=function(e,t,i,s){if(e=parseInt(e),e!=this.currentSlideIndex){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)]);var n=$.now();return $.when(this.backgroundImages.preLoad(e),this.focus(i)).done($.proxy(function(){if(this._lastChangeTime<=n){this._lastChangeTime=n;var r=this.mainAnimation.getState();if("ended"==r){"undefined"==typeof i&&(i=!1);var a=this.mainAnimation;"undefined"!=typeof s&&(a=s),this._changeTo(e,t,i,s),a.changeTo(this.currentSlideIndex,this.slides.eq(this.currentSlideIndex),e,this.slides.eq(e),t,i),this.currentSlideIndex=e}else"playing"==r&&(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",$.proxy(function(){this.changeTo.call(this,e,t,i,s)},this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale()))}},this)),!0}return!1},NextendSmartSliderAbstract.prototype._changeTo=function(e,t,i,s){},NextendSmartSliderAbstract.prototype.revertTo=function(e,t){this.unsetActiveSlide(this.slides.eq(t)),this.setActiveSlide(this.slides.eq(e)),this.currentSlideIndex=e,this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},NextendSmartSliderAbstract.prototype.__getActiveSlideIndex=function(){var e=this.slides.index(this.slides.filter(".n2-ss-slide-active"));return-1===e&&(e=0),e},NextendSmartSliderAbstract.prototype.setActiveSlide=function(e){e.addClass("n2-ss-slide-active")},NextendSmartSliderAbstract.prototype.unsetActiveSlide=function(e){e.removeClass("n2-ss-slide-active")},NextendSmartSliderAbstract.prototype.initMainAnimationWithLayerAnimation=function(){"forced"==this.parameters.layerMode.mode&&this.sliderElement.on("preChangeToPlay",$.proxy(function(e,t,i,s,n){i.handled=!0,s.on("layerAnimationCompleteOut.layers",function(){s.off("layerAnimationCompleteOut.layers"),t.resolve()}),this.callOnSlide(s,"playOut")},this)),this.sliderElement.on("mainAnimationStart",$.proxy(this.onMainAnimationStartSyncLayers,this,this.parameters.layerMode)).on("reverseModeEnabled",$.proxy(this.onMainAnimationStartSyncLayersReverse,this,this.parameters.layerMode))},NextendSmartSliderAbstract.prototype.onMainAnimationStartSyncLayers=function(e,t,i,s,n){var r=this.slides.eq(n),a=this.slides.eq(s);"mainInStart"==e.inAnimation?r.one("mainAnimationStartIn.layers",$.proxy(function(){r.off("mainAnimationStartInCancel.layers"),this.callOnSlide(r,"playIn")},this)):"mainInEnd"==e.inAnimation&&r.one("mainAnimationCompleteIn.layers",$.proxy(function(){r.off("mainAnimationStartInCancel.layers"),this.callOnSlide(r,"playIn")},this)),"skippable"==e.mode&&a.on("mainAnimationCompleteOut.layers",$.proxy(function(){a.off("mainAnimationCompleteOut.layers"),e.playOnce?this.parameters.foreverLayerAnimation||this.callOnSlide(a,"pause"):this.callOnSlide(a,"reset")},this)),r.one("mainAnimationStartInCancel.layers",function(){r.off("mainAnimationStartIn.layers"),r.off("mainAnimationCompleteIn.layers")})},NextendSmartSliderAbstract.prototype.onMainAnimationStartSyncLayersReverse=function(e,t,i){var s=this.slides.eq(i);"mainInStart"==e.inAnimation?s.one("mainAnimationStartIn.layers",$.proxy(function(){this.callOnSlide(s,"playIn")},this)):"mainInEnd"==e.inAnimation&&s.one("mainAnimationCompleteIn.layers",$.proxy(function(){this.sliderElement.off("mainAnimationComplete.layers"),this.callOnSlide(s,"playIn")},this)),this.sliderElement.one("mainAnimationComplete.layers",function(){s.off("mainAnimationStartIn.layers"),s.off("mainAnimationCompleteIn.layers")})},NextendSmartSliderAbstract.prototype.callOnSlide=function(e,t){e.data("slide")[t]()},NextendSmartSliderAbstract.prototype.findSlideIndexByElement=function(e){e=$(e);for(var t=0;t<this.slides.length;t++)if(1===this.slides.eq(t).has(e).length)return t;return-1},NextendSmartSliderAbstract.prototype.initMainAnimation=function(){},NextendSmartSliderAbstract.prototype.initResponsiveMode=function(){new scope[this.responsiveClass](this,this.parameters.responsive),this.dimensions=this.responsive.responsiveDimensions},NextendSmartSliderAbstract.prototype.initControls=function(){this.parameters.admin||("0"!=this.parameters.controls.touch&&new NextendSmartSliderControlTouch(this,this.parameters.controls.touch,{fallbackToMouseEvents:this.parameters.controls.drag}),this.parameters.controls.keyboard&&("undefined"!=typeof this.controls.touch?new NextendSmartSliderControlKeyboard(this,this.controls.touch._direction.axis):new NextendSmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.scroll&&new NextendSmartSliderControlScroll(this),this.parameters.controls.tilt&&new NextendSmartSliderControlFullscreen(this),this.controlAutoplay=new NextendSmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new NextendSmartSliderControlFullscreen(this))},NextendSmartSliderAbstract.prototype.getSlideIndex=function(e){return e},NextendSmartSliderAbstract.prototype.slideToID=function(e,t){var i=this.realSlides.index(this.realSlides.filter('[data-id="'+e+'"]'));if(-1!=i)return this.slide(this.getSlideIndex(i),t);var s=$('[data-id="'+e+'"]').closest(".n2-ss-slider");if(s.length&&this.id==s.data("ss").id)return!0;if(s.length){var n=0;return"undefined"!=typeof n2ScrollOffsetSelector&&(n=n2(n2ScrollOffsetSelector).outerHeight()),n2("html, body").animate({scrollTop:s.offset().top-n},400),s.data("ss").slideToID(e,t)}},NextendSmartSliderAbstract.prototype.slide=function(e,t){return e>=0&&e<this.slides.length?"undefined"==typeof t?parseInt(this.parameters.carousel)&&this.currentSlideIndex==this.slides.length-1&&0==e?this.next():this.currentSlideIndex>e?this.changeTo(e,!0):this.changeTo(e):this.changeTo(e,!t):!1},NextendSmartSliderAbstract.prototype.adminGetCurrentSlideElement=function(){return this.parameters.isStaticEdited?this.findStaticSlide():this.slides.eq(this.currentSlideIndex)},NextendSmartSliderAbstract.prototype.startAutoplay=function(e){return"undefined"!=typeof this.controlAutoplay?(this.controlAutoplay.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"),!0):!1},scope.NextendSmartSliderAbstract=NextendSmartSliderAbstract,function(e,t){var i={},s=function(e){i[e]&&(t.clearInterval(i[e]),i[e]=null)},n="n2waitUntilExists.found";e.fn.n2waitUntilExists=function(r,a,o,l){var d=e(r),h=d.not(function(){return e(this).data(n)});return"remove"===a?s(r):(h.each(a).data(n,!0),o&&d.length?s(r):l||(i[r]=t.setInterval(function(){d.n2waitUntilExists(r,a,o,!0)},500))),d}}(n2,window)}(n2,window),function($,scope,undefined){function NextendSmartSliderWidgets(e){this.slider=e,this.sliderElement=e.sliderElement.on("BeforeVisible",$.proxy(this.onReady,this)),this.initExcludeSlides()}NextendSmartSliderWidgets.prototype.onReady=function(){this.dimensions=this.slider.dimensions,this.widgets={previous:this.sliderElement.find(".nextend-arrow-previous"),next:this.sliderElement.find(".nextend-arrow-next"),bullet:this.sliderElement.find(".nextend-bullet-bar"),autoplay:this.sliderElement.find(".nextend-autoplay"),indicator:this.sliderElement.find(".nextend-indicator"),bar:this.sliderElement.find(".nextend-bar"),thumbnail:this.sliderElement.find(".nextend-thumbnail"),shadow:this.sliderElement.find(".nextend-shadow"),fullscreen:this.sliderElement.find(".nextend-fullscreen"),html:this.sliderElement.find(".nextend-widget-html")},this.variableElementsDimension={width:this.sliderElement.find("[data-sswidth]"),height:this.sliderElement.find("[data-ssheight]")},this.variableElements={top:this.sliderElement.find("[data-sstop]"),right:this.sliderElement.find("[data-ssright]"),bottom:this.sliderElement.find("[data-ssbottom]"),left:this.sliderElement.find("[data-ssleft]")},this.slider.sliderElement.on("SliderAnimatedResize",$.proxy(this.onAnimatedResize,this)),this.slider.sliderElement.on("SliderResize",$.proxy(this.onResize,this)),this.slider.sliderElement.one("slideCountChanged",$.proxy(function(){this.onResize(this.slider.responsive.lastRatios)},this)),this.onResize(this.slider.responsive.lastRatios),this.initHover()},NextendSmartSliderWidgets.prototype.initHover=function(){var e=null,t=this.sliderElement.find(".n2-ss-widget-hover");t.length>0&&this.sliderElement.on("universalenter",function(i){var s=$(this);e&&clearTimeout(e),t.css("visibility","visible"),setTimeout(function(){s.addClass("n2-ss-widget-hover-show")},50)}).on("universalleave",function(){var i=this;e&&clearTimeout(e),e=setTimeout(function(){
2
+ $(i).removeClass("n2-ss-widget-hover-show"),e=setTimeout(function(){t.css("visibility","hidden")},400)},500)})},NextendSmartSliderWidgets.prototype.initExcludeSlides=function(){var e=this.sliderElement.find(".n2-ss-widget[data-exclude-slides]"),t=function(e,t,i){-1!=$.inArray(i+1+"",t)?e.addClass("n2-ss-widget-hidden"):e.removeClass("n2-ss-widget-hidden")};e.each($.proxy(function(e,i){for(var s=$(i),n=s.attr("data-exclude-slides").split(","),e=n.length-1;e>=0;e--){var r=n[e].split("-");if(2==r.length&&parseInt(r[0])<=parseInt(r[1])){n[e]=r[0],r[0]=parseInt(r[0]),r[1]=parseInt(r[1]);for(var a=r[0]+1;a<=r[1];a++)n.push(a+"")}}t(s,n,this.slider.currentSlideIndex),this.slider.sliderElement.on("sliderSwitchTo",function(e,i){t(s,n,i)})},this))},NextendSmartSliderWidgets.prototype.onAnimatedResize=function(e,ratios,timeline,duration){for(var key in this.widgets){var el=this.widgets[key],visible=el.is(":visible");this.dimensions[key+"width"]=visible?el.outerWidth(!1):0,this.dimensions[key+"height"]=visible?el.outerHeight(!1):0}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible")){var to={};try{to[k]=eval(el.data("ss"+k))+"px";for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}timeline.to(el,duration,to,0)}}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var to={};to[k]=eval(el.data("ss"+k))+"px",timeline.to(el,duration,to,0)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}},NextendSmartSliderWidgets.prototype.onResize=function(e,ratios,responsive,timeline){if(!timeline){for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,0)}for(var key in this.widgets){var el=this.widgets[key],visible=el.length&&el.is(":visible");el.length&&el.is(":visible")?(this.dimensions[key+"width"]=el.outerWidth(!1),this.dimensions[key+"height"]=el.outerHeight(!1)):(this.dimensions[key+"width"]=0,this.dimensions[key+"height"]=0)}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,last)}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible"))try{el.css(k,eval(el.data("ss"+k))+"px");for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var value=eval(el.data("ss"+k));el.css(k,value+"px"),el.data("n2Last"+k,value)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}this.slider.responsive.refreshStaticSizes()}},scope.NextendSmartSliderWidgets=NextendSmartSliderWidgets}(n2,window),function(e,t,i){function s(e,t,i,s,n,r){this.durationMultiplier=n,this.original={currentImage:t,nextImage:i},this.animationProperties=s,this.reversed=r,this.timeline=e.timeline,this.containerElement=e.bgAnimationElement,this.shiftedBackgroundAnimation=e.parameters.shiftedBackgroundAnimation,this.clonedImages={}}s.prototype.postSetup=function(){},s.prototype.ended=function(){},s.prototype.revertEnded=function(){},s.prototype.placeNextImage=function(){this.clonedImages.nextImage=this.original.nextImage.clone().css({position:"absolute",top:0,left:0}),this.containerElement.append(this.clonedImages.nextImage)},s.prototype.placeCurrentImage=function(){this.clonedImages.currentImage=this.original.currentImage.clone().css({position:"absolute",top:0,left:0}),this.containerElement.append(this.clonedImages.currentImage)},s.prototype.hideOriginals=function(){this.original.currentImage.css("opacity",0),this.original.nextImage.css("opacity",0)},s.prototype.resetAll=function(){this.original.currentImage.css("opacity",1),this.original.nextImage.css("opacity",1),this.containerElement.html("")},s.prototype.getExtraDelay=function(){return 0},t.NextendSmartSliderBackgroundAnimationAbstract=s}(n2,window),function(e,t,i){function s(){this.shiftedPreSetup=!1,this._clonedCurrent=!1,this._clonedNext=!1,NextendSmartSliderBackgroundAnimationAbstract.prototype.constructor.apply(this,arguments),this.w=this.original.currentImage.width(),this.h=this.original.currentImage.height()}function n(){s.prototype.constructor.apply(this,arguments),this.setup()}function r(){n.prototype.constructor.apply(this,arguments)}function a(){n.prototype.constructor.apply(this,arguments)}function o(){s.prototype.constructor.apply(this,arguments);var t=e.extend(!0,{perspective:1.5*this.w,duration:.8,direction:"left"},this.animationProperties);this.reversed&&("left"==t.direction?t.direction="right":t.direction="left");var i=parseInt(this.w/2);this.clonedCurrent().css({position:"absolute",top:0,left:"left"==t.direction?-1*(this.w/2):0}),this.clonedNext().css({position:"absolute",top:0,left:"left"==t.direction?0:-1*(this.w/2)});var n=e('<div class="tab"></div>').css({width:i,height:this.h,position:"absolute",top:"0px",left:"left"==t.direction?i:"0","z-index":101});NextendTween.set(n,{transformStyle:"preserve-3d",transformOrigin:"left"==t.direction?"0px 0px":i+"px 0px"});var r=e('<div class="n2-ff-3d"></div>').append(this.clonedCurrent()).css({width:i,height:this.h,position:"absolute",top:0,left:0,"-webkit-transform":"translateZ(0.1px)",overflow:"hidden"}).appendTo(n);NextendTween.set(r,{backfaceVisibility:"hidden",transformStyle:"preserve-3d"});var a=e('<div class="n2-ff-3d"></div>').append(this.clonedNext()).appendTo(n).css({width:i,height:this.h,position:"absolute",top:0,left:0,overflow:"hidden"});NextendTween.set(a,{backfaceVisibility:"hidden",transformStyle:"preserve-3d",rotationY:180,rotationZ:0});var o=e("<div></div>").append(this.clonedCurrent().clone().css("left","left"==t.direction?0:-i)).css({position:"absolute",top:0,left:"left"==t.direction?"0":i,width:i,height:this.h,zIndex:100,overflow:"hidden"}),l=e('<div class="overlay"></div>').css({position:"absolute",top:0,left:"left"==t.direction?i:0,width:i,height:this.h,background:"#000",opacity:1,overflow:"hidden"}),d=e("<div></div>").css({width:this.w,height:this.h,position:"absolute",top:0,left:0}).append(n).append(o).append(l);NextendTween.set(d,{perspective:t.perspective,perspectiveOrigin:"50% 50%"}),this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),this.containerElement.append(d),this.preSetup(),this.timeline.to(n.get(0),t.duration*this.durationMultiplier,{rotationY:"left"==t.direction?-180:180},0),this.timeline.to(l.get(0),t.duration*this.durationMultiplier,{opacity:0},0)}function l(){n.prototype.constructor.apply(this,arguments)}function d(){n.prototype.constructor.apply(this,arguments)}function h(){n.prototype.constructor.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderBackgroundAnimationAbstract.prototype),s.prototype.constructor=s,s.prototype.clonedCurrent=function(){return this._clonedCurrent||(this._clonedCurrent=this.original.currentImage.clone().css({width:this.w,height:this.h})),this._clonedCurrent},s.prototype.clonedNext=function(){return this._clonedNext||(this._clonedNext=this.original.nextImage.clone().css({width:this.w,height:this.h})),this._clonedNext},s.prototype.preSetup=function(){0!=this.shiftedBackgroundAnimation?this.shiftedPreSetup=!0:this._preSetup()},s.prototype._preSetup=function(e){this.timeline.to(this.original.currentImage.get(0),this.getExtraDelay(),{opacity:0},0),this.original.nextImage.css("opacity",0)},s.prototype.postSetup=function(){this.timeline.to(this.original.nextImage.get(0),this.getExtraDelay(),{opacity:1})},s.prototype.getExtraDelay=function(){return.2},s.prototype.ended=function(){this.original.currentImage.css("opacity",1),this.containerElement.html("")},s.prototype.revertEnded=function(){this.original.nextImage.css("opacity",1),this.containerElement.html("")},t.NextendSmartSliderBackgroundAnimationFluxAbstract=s,n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.setup=function(t){var i=e("<div></div>").css({position:"absolute",left:0,top:0,width:this.w,height:this.h});this.container=i,NextendTween.set(i.get(0),{force3D:!0,perspective:1e3});for(var s=[],n=[],r=t.columns,a=t.rows,o=Math.floor(this.w/r),l=Math.floor(this.h/a),d=this.w-r*o,h=Math.ceil(d/r),p=this.h-a*l,c=Math.ceil(p/a),m=0,u=0;r>u;u++){s[u]=[];var f=o,g=0;if(d>0){var y=d>=h?h:d;f+=y,d-=y}for(var v=p,S=0;a>S;S++){var x=l;if(v>0){var y=v>=c?c:v;x+=y,v-=y}var b=e('<div class="tile tile-'+u+"-"+S+'"></div>').css({position:"absolute",top:g+"px",left:m+"px",width:f+"px",height:x+"px",zIndex:-Math.abs(u-parseInt(r/2))+r-Math.abs(S-parseInt(a/2))}).appendTo(i),w=this.renderTile(b,f,x,t,m,g);n.push(w),s[u][S]=w,g+=x}m+=f}i.appendTo(this.containerElement),this.preSetup(),this.animate(t,n,s)},n.prototype.animate=function(t,i,s){this["sequence"+t.tiles.sequence](e.proxy(this.transform,this,t),i,s,t.tiles.delay*this.durationMultiplier)},n.prototype.sequenceParallel=function(e,t){e(t,null)},n.prototype.sequenceRandom=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0;r<t.length;r++)e(t[r],n+Math.random()*s)},n.prototype.sequenceForwardCol=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0;r<t.length;r++)e(t[r],n+s*r)},n.prototype.sequenceBackwardCol=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=t.length-1,a=0;a<t.length;a++)e(t[a],n+s*(r-a))},n.prototype.sequenceForwardRow=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0,a=0;a<i[0].length;a++)for(var o=0;o<i.length;o++)e(i[o][a],n+s*r),r++},n.prototype.sequenceBackwardRow=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=t.length-1,a=0;a<i[0].length;a++)for(var o=0;o<i.length;o++)e(i[o][a],n+s*r),r--},n.prototype.sequenceForwardDiagonal=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0;r<i[0].length;r++)for(var a=0;a<i.length;a++)e(i[a][r],n+s*(a+r))},n.prototype.sequenceBackwardDiagonal=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=i[0].length+i.length-2,a=0;a<i[0].length;a++)for(var o=0;o<i.length;o++)e(i[o][a],n+s*(r-o-a))},t.NextendSmartSliderBackgroundAnimationTiled=n,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,tiles:{cropOuter:!1,crop:!0,delay:0,sequence:"Parallel"},main:{type:"next",duration:.5,real3D:!0,zIndex:1,current:{ease:"easeInOutCubic"},next:{ease:"easeInOutCubic"}}},this.animationProperties);this.reversed&&("undefined"!=typeof t.invert&&e.extend(!0,t.main,t.invert),"undefined"!=typeof t.invertTiles&&e.extend(t.tiles,t.invertTiles)),n.prototype.setup.call(this,t),t.tiles.cropOuter&&this.container.css("overflow","hidden")},r.prototype.renderTile=function(t,i,s,n,r,a){n.tiles.crop&&t.css("overflow","hidden");var o=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t),l=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:1}).append(this.clonedNext().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return n.main.real3D&&(NextendTween.set(t.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(o.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(l.get(0),{transformStyle:"preserve-3d"})),{current:o,next:l}},r.prototype.transform=function(e,t,i){var s=e.main;"current"!=s.type&&"both"!=s.type||this.timeline.to(t.current,s.duration*this.durationMultiplier,s.current,i),"next"!=s.type&&"both"!=s.type||this.timeline.from(t.next,s.duration*this.durationMultiplier,s.next,i)},t.NextendSmartSliderBackgroundAnimationFlat=r,a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,fullCube:!0,tiles:{delay:.2,sequence:"Parallel"},depth:50,main:{side:"Left",duration:.5,ease:"easeInOutCubic",direction:"horizontal",real3D:!0},pre:[],post:[]},this.animationProperties);t.fullCube=!0,this.reversed&&("undefined"!=typeof t.invert&&e.extend(!0,t.main,t.invert),"undefined"!=typeof t.invertTiles&&e.extend(t.tiles,t.invertTiles)),n.prototype.setup.call(this,t)},a.prototype.renderTile=function(t,i,s,n,r,a){var o=n.depth;switch(o){case"width":o=i;break;case"height":o=s}switch(n.main.side){case"Top":case"Bottom":o=s;break;case"Left":case"Right":o=i}n.main.real3D&&NextendTween.set(t.get(0),{transformStyle:"preserve-3d"});var l=e('<div class="cuboid"></div>').css({position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}).appendTo(t);NextendTween.set(l.get(0),{transformStyle:"preserve-3d",z:-o/2});var d=0;"horizontal"==n.main.direction&&(d=180);var h=this.getSide(l,i,s,0,0,-o/2,180,0,d),p={Back:h,BackInvert:h};return(n.fullCube||"vertical"==n.main.direction)&&(p.Bottom=this.getSide(l,i,o,0,s-o/2,0,-90,0,0),p.Top=this.getSide(l,i,o,0,-o/2,0,90,0,0)),p.Front=this.getSide(l,i,s,0,0,o/2,0,0,0),(n.fullCube||"horizontal"==n.main.direction)&&(p.Left=this.getSide(l,o,s,-o/2,0,0,0,-90,0),p.Right=this.getSide(l,o,s,i-o/2,0,0,0,90,0)),p.Front.append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})),p[n.main.side].append(this.clonedNext().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})),l},a.prototype.getSide=function(t,i,s,n,r,a,o,l,d){var h=e('<div class="n2-3d-side"></div>').css({width:i,height:s}).appendTo(t);return NextendTween.set(h.get(0),{x:n,y:r,z:a,rotationX:o,rotationY:l,rotationZ:d,backfaceVisibility:"hidden"}),h},a.prototype.addAnimation=function(e,t){var i=e.duration;delete e.duration,this.timeline.to(t,i*this.durationMultiplier,e)},a.prototype.transform=function(e,t,i){for(var s=0;s<e.pre.length;s++){var n=e.pre[s],r=n.duration*this.durationMultiplier;this.timeline.to(t,r,n,i),i+=r}this["transform"+e.main.side](e.main,t,i),i+=e.main.duration;for(var s=0;s<e.post.length;s++){var n=e.post[s],r=n.duration*this.durationMultiplier;this.timeline.to(t,r,n,i),i+=r}},a.prototype.transformLeft=function(e,t,i){this._transform(e,t,i,0,90,0)},a.prototype.transformRight=function(e,t,i){this._transform(e,t,i,0,-90,0)},a.prototype.transformTop=function(e,t,i){this._transform(e,t,i,-90,0,0)},a.prototype.transformBottom=function(e,t,i){this._transform(e,t,i,90,0,0)},a.prototype.transformBack=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,180,0):this._transform(e,t,i,180,0,0)},a.prototype.transformBackInvert=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,-180,0):this._transform(e,t,i,-180,0,0)},a.prototype._transform=function(e,t,i,s,n,r){this.timeline.to(t,e.duration*this.durationMultiplier,{rotationX:s,rotationY:n,rotationZ:r,ease:e.ease},i)},t.NextendSmartSliderBackgroundAnimationCubic=a,o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.prototype.getExtraDelay=function(){return 0},t.NextendSmartSliderBackgroundAnimationTurn=o,l.prototype=Object.create(n.prototype),l.prototype.constructor=l,l.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),n.prototype.setup.call(this,t)},l.prototype.renderTile=function(t,i,s,n,r,a){var o=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:o,tile:t}},l.prototype.transform=function(t,i,s){var n=e.extend(!0,{},t.main.current);n.rotationX=90*(3*Math.random()-1),n.rotationY=90*(3*Math.random()-1),n.rotationZ=90*(3*Math.random()-1),this.timeline.to(i.tile,t.main.duration*this.durationMultiplier,n,s)},t.NextendSmartSliderBackgroundAnimationExplode=l,d.prototype=Object.create(n.prototype),d.prototype.constructor=d,d.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeCurrentImage(),this.clonedImages.currentImage.css({overflow:"hidden",width:"100%",height:"100%"}),n.prototype.setup.call(this,t)},d.prototype.renderTile=function(t,i,s,n,r,a){var o=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedNext().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{next:o,tile:t}},d.prototype.transform=function(t,i,s){var n=e.extend(!0,{},t.main.current);n.rotationX=90*(3*Math.random()-1),n.rotationY=90*(3*Math.random()-1),n.rotationZ=30*(3*Math.random()-1),this.timeline.from(i.tile,t.main.duration*this.durationMultiplier,n,s)},t.NextendSmartSliderBackgroundAnimationExplodeReversed=d,h.prototype=Object.create(n.prototype),h.prototype.constructor=h,h.prototype.setup=function(){var t=e.extend(!0,{columns:2,rows:2,main:{duration:2,zIndex:2}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),n.prototype.setup.call(this,t)},h.prototype.renderTile=function(t,i,s,n,r,a){this.container.css("overflow","hidden");var o=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:o,tile:t}},h.prototype.animate=function(t,i,s){this.timeline.to(s[0][0].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},0),this.timeline.to(s[0][1].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},.3),this.timeline.to(s[1][0].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.15),this.timeline.to(s[1][1].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.45),e("<div />").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden"}).prependTo(this.clonedImages.nextImage.parent()).append(this.clonedImages.nextImage),this.timeline.fromTo(this.clonedImages.nextImage,t.main.duration*this.durationMultiplier,{scale:1.3},{scale:1},.45)},t.NextendSmartSliderBackgroundAnimationSlixes=h}(n2,window),function(e,t,i){function s(t,i){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=-1,this.slider=t,this.parameters=e.extend({duration:1500,ease:"easeInOutQuint"},i),this.parameters.duration/=1e3,this.sliderElement=t.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s){this.currentSlideIndex=i,this.nextSlideIndex=s},this))}s.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.sliderElement.triggerHandler("reverseModeEnabled",this.reverseSlideIndex)},s.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},s.prototype.setTouch=function(e){this.isTouch=e},s.prototype.setTouchProgress=function(e){this.isReverseEnabled?this._setTouchProgressWithReverse(e):this._setTouchProgress(e)},s.prototype._setTouchProgress=function(e){"ended"!=this.state&&(0>=e?this.timeline.progress(Math.max(e,1e-6),!1):e>=0&&1>=e&&this.timeline.progress(e))},s.prototype._setTouchProgressWithReverse=function(e){0==e?(this.reverseTimeline.progress(0),this.timeline.progress(e,!1)):e>=0&&1>=e?(this.reverseTimeline.progress(0),this.timeline.progress(e)):0>e&&e>=-1&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(e)))},s.prototype.setTouchEnd=function(e,t,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(e,t,i):this._setTouchEnd(e,t,i))},s.prototype._setTouchEnd=function(e,t,i){e&&t>0?(this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse(),this.willRevertTo(this.currentSlideIndex,this.nextSlideIndex))},s.prototype._setTouchEndWithReverse=function(e,t,i){e?0>t&&this.reverseTimeline.totalDuration()>0?(this.fixTouchDuration(this.reverseTimeline,t,i),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this.nextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(0>t?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-t,i),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this.currentSlideIndex,this.nextSlideIndex))},s.prototype.fixTouchDuration=function(e,t,i){var s=e.totalDuration(),n=Math.max(s/3,Math.min(s,i/Math.abs(t)/1e3));n!=s&&e.totalDuration(n)},s.prototype.getState=function(){return this.state},s.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},s.prototype.preChangeToPlay=function(e,t,i){var s={handled:!1};this.sliderElement.trigger("preChangeToPlay",[e,s,t,i]),s.handled||e.resolve()},s.prototype.changeTo=function(t,i,s,n,r,a){if(this._initAnimation(t,i,s,n,r),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[t,s,a],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[t,s,a],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=e.proxy(function(e){e.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[s,t,a],this)},this),this.slider.parameters.dynamicHeight){var o=new NextendTimeline;this.slider.responsive.doResize(!1,o,s,.6),this.timeline.add(o)}if(this.isTouch)this.slider.callOnSlide(i,"onOutAnimationsPlayed");else{var l=e.Deferred();l.done(e.proxy(function(){this.play()},this.timeline)),this.preChangeToPlay(l,i,n)}},s.prototype.willRevertTo=function(t,i){this.sliderElement.triggerHandler("mainAnimationWillRevertTo",[t,i]),this.sliderElement.one("mainAnimationComplete",e.proxy(this.revertTo,this,t,i))},s.prototype.revertTo=function(e,t){this.slider.revertTo(e,t),this.slider.slides.eq(t).triggerHandler("mainAnimationStartInCancel")},s.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",e.proxy(this.cleanSlideIndex,this,t))},s.prototype.cleanSlideIndex=function(){},s.prototype._initAnimation=function(e,t,i,s,n){},s.prototype.onChangeToStart=function(e,t,i){this.state="playing";var s=[this,e,t,i];this.sliderElement.trigger("mainAnimationStart",s),this.slider.slides.eq(e).trigger("mainAnimationStartOut",s),this.slider.slides.eq(t).trigger("mainAnimationStartIn",s)},s.prototype.onChangeToComplete=function(e,t,i){var s=[this,e,t,i];this.clearTimelines(),this.disableReverseMode(),this.slider.slides.eq(e).trigger("mainAnimationCompleteOut",s),this.slider.slides.eq(t).trigger("mainAnimationCompleteIn",s),this.state="ended",this.sliderElement.trigger("mainAnimationComplete",s)},s.prototype.onReverseChangeToComplete=function(e,t,i){s.prototype.onChangeToComplete.apply(this,arguments)},s.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},s.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},t.NextendSmartSliderMainAnimationAbstract=s}(n2,window),function(e,t,i){function s(t,i){this._paused=!0,this._wait=!1,this._disabled=!1,this._currentCount=0,this._progressEnabled=!1,this.timeline=null,this.deferredsMediaPlaying=null,this.deferredMouseLeave=null,this.deferredMouseEnter=null,this.mainAnimationDeferred=!0,this.autoplayDeferred=null,this.slider=t,this.parameters=e.extend({enabled:0,start:1,duration:8e3,autoplayToSlide:0,autoplayToSlideIndex:-1,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0}},i),this.parameters.enabled?(this.parameters.duration/=1e3,t.controls.autoplay=this,this.deferredsExtraPlaying={},this.slider.visible(e.proxy(this.onReady,this))):this.disable(),t.controls.autoplay=this}var n=!1;s.prototype.onReady=function(){this.autoplayDeferred=e.Deferred();var t={_progress:0};this.timeline=NextendTween.to(t,this.getSlideDuration(this.slider.currentSlideIndex),{_progress:1,paused:!0,onComplete:e.proxy(this.next,this)}),this._progressEnabled&&this.enableProgress();var i=this.slider.sliderElement;if(this.parameters.start?this.continueAutoplay():this.pauseAutoplayExtraPlaying(null,"autoplayButton"),i.on("mainAnimationStart.autoplay",e.proxy(this.onMainAnimationStart,this)),"0"!=this.parameters.pause.mouse)switch(i.on("touchend.autoplay",function(){n=!0,setTimeout(function(){n=!1},300)}),this.parameters.pause.mouse){case"enter":i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseEnter,this)),i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseEnterEnded,this));break;case"leave":i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseLeave,this)),i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseLeaveEnded,this))}if(this.parameters.pause.click&&!this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(this.pauseAutoplayUniversal,this)):!this.parameters.pause.click&&this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):this.parameters.pause.click&&this.parameters.resume.click&&i.on("universalclick.autoplay",e.proxy(function(e){this._paused?this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"):this.pauseAutoplayUniversal(e)},this)),this.parameters.pause.mediaStarted&&(this.deferredsMediaPlaying={},i.on("mediaStarted.autoplay",e.proxy(this.pauseAutoplayMediaPlaying,this)),i.on("mediaEnded.autoplay",e.proxy(this.pauseAutoplayMediaPlayingEnded,this))),"0"!=this.parameters.resume.mouse)switch(this.parameters.resume.mouse){case"enter":"0"==this.parameters.pause.mouse?i.on("mouseenter.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):i.on("mouseenter.autoplay",e.proxy(this.continueAutoplay,this));break;case"leave":"0"==this.parameters.pause.mouse?i.on("mouseleave.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):i.on("mouseleave.autoplay",e.proxy(this.continueAutoplay,this))}this.parameters.resume.mediaEnded&&i.on("mediaEnded.autoplay",e.proxy(this.continueAutoplay,this)),i.on("autoplayExtraWait.autoplay",e.proxy(this.pauseAutoplayExtraPlaying,this)),i.on("autoplayExtraContinue.autoplay",e.proxy(this.pauseAutoplayExtraPlayingEnded,this)),this.slider.sliderElement.on("mainAnimationComplete.autoplay",e.proxy(this.onMainAnimationComplete,this))},s.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",e.proxy(this.onUpdate,this)),this._progressEnabled=!0},s.prototype.onMainAnimationStart=function(t,i,s,n,r){this.mainAnimationDeferred=e.Deferred(),this.deActivate(0,"wait");for(var a in this.deferredsMediaPlaying)this.deferredsMediaPlaying[a].resolve()},s.prototype.onMainAnimationComplete=function(e,t,i,s){this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentSlideIndex+1&&this.limitAutoplay(),this.timeline.duration(this.getSlideDuration(s)),this.mainAnimationDeferred.resolve(),this.continueAutoplay()},s.prototype.getSlideDuration=function(e){var t=this.slider.realSlides.eq(this.slider.getRealIndex(e)).data("slide"),i=t.minimumSlideDuration;return.3>i&&i<this.parameters.duration&&(i=this.parameters.duration),i},s.prototype.continueAutoplay=function(t){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.reject();var i=[];for(var s in this.deferredsExtraPlaying)i.push(this.deferredsExtraPlaying[s]);for(var s in this.deferredsMediaPlaying)i.push(this.deferredsMediaPlaying[s]);i.push(this.deferredMouseEnter),i.push(this.mainAnimationDeferred),this.autoplayDeferred=e.Deferred(),this.autoplayDeferred.done(e.proxy(this._continueAutoplay,this)),e.when.apply(e,i).done(e.proxy(function(){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.resolve()},this))},s.prototype._continueAutoplay=function(){!this._paused&&!this._wait||this._disabled||(this._paused=!1,this._wait=!1,this.slider.sliderElement.triggerHandler("autoplayStarted"),1==this.timeline.progress()&&this.timeline.pause(0,!1),this.startTimeout(null))},s.prototype.pauseAutoplayUniversal=function(e){this.pauseAutoplayExtraPlaying(e,"autoplayButton"),this.deActivate(null,"pause")},s.prototype.pauseAutoplayMouseEnter=function(){n||(this.autoplayDeferred.reject(),this.deferredMouseEnter=e.Deferred(),this.deActivate(null,"leave"==this.parameters.resume.mouse?"wait":"pause"))},s.prototype.pauseAutoplayMouseEnterEnded=function(){this.deferredMouseEnter&&this.deferredMouseEnter.resolve()},s.prototype.pauseAutoplayMouseLeave=function(){this.autoplayDeferred.reject(),this.deferredMouseLeave=e.Deferred(),this.deActivate(null,"enter"==this.parameters.resume.mouse?"wait":"pause")},s.prototype.pauseAutoplayMouseLeaveEnded=function(){this.deferredMouseLeave&&this.deferredMouseLeave.resolve()},s.prototype.pauseAutoplayMediaPlaying=function(t,i){
3
+ "undefined"!=typeof this.deferredsMediaPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsMediaPlaying[i]=e.Deferred(),this.deActivate(null,"wait")},s.prototype.pauseAutoplayMediaPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsMediaPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsMediaPlaying[t].resolve(),delete this.deferredsMediaPlaying[t])},s.prototype.pauseAutoplayExtraPlaying=function(t,i){"undefined"!=typeof this.deferredsExtraPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsExtraPlaying[i]=e.Deferred(),this.deActivate(null,"pause")},s.prototype.pauseAutoplayExtraPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsExtraPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsExtraPlaying[t].resolve(),delete this.deferredsExtraPlaying[t]),this.continueAutoplay()},s.prototype.deActivate=function(e,t){"pause"==t?this._paused||(this._paused=!0,0!==e&&this.slider.sliderElement.triggerHandler("autoplayPaused")):"wait"==t&&(this._wait||(this._wait=!0,0!==e&&this.slider.sliderElement.triggerHandler("autoplayWait"))),this.timeline&&this.timeline.pause(e,!1)},s.prototype.disable=function(){this.deActivate(0,"pause"),this.slider.sliderElement.triggerHandler("autoplayPaused"),this.slider.sliderElement.triggerHandler("autoplayDisabled"),this.slider.sliderElement.off(".autoplay"),this._disabled=!0},s.prototype.startTimeout=function(e){this._paused||this._disabled||this.timeline.play(e)},s.prototype.next=function(){this.timeline.pause(),this._currentCount++,(this.parameters.autoplayToSlide>0&&this._currentCount>=this.parameters.autoplayToSlide||this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentSlideIndex+2)&&this.limitAutoplay(),this.slider.nextCarousel(!0)},s.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.slider.sliderElement.triggerHandler("autoplayExtraWait","autoplayButton")):this.disable()},s.prototype.onUpdate=function(){this.slider.sliderElement.triggerHandler("autoplay",this.timeline.progress())},t.NextendSmartSliderControlAutoplay=s}(n2,window),function(e,t,i){"use strict";function s(t,i,s){this.slider=t,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._forceFull=this.responsive.parameters.forceFull,this.forceFullpage="auto"==this._type||"fullwidth"==this._type||"fullpage"==this._type,this.forceFullpage&&(this._upscale=this.responsive.parameters.upscale,this._minimumHeightRatio=e.extend({},this.responsive.parameters.minimumHeightRatio),this._maximumHeightRatio=e.extend({},this.responsive.parameters.maximumHeightRatio)),this.isFullScreen=!1,this.fullParent=this.slider.sliderElement.closest(".n2-ss-align"),this.browserSpecific={};var n=this.slider.sliderElement[0];n.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):n.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):n.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):n.webkitRequestFullscreen?(this.browserSpecific.requestFullscreen="webkitRequestFullscreen",this.browserSpecific.event="webkitfullscreenchange"):(this.browserSpecific.requestFullscreen="nextendRequestFullscreen",this.browserSpecific.event="nextendfullscreenchange",this.fullParent[0][this.browserSpecific.requestFullscreen]=e.proxy(function(){this.fullParent.css({position:"fixed",left:0,top:0,width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e6}),document.fullscreenElement=this.fullParent[0],this.triggerEvent(document,this.browserSpecific.event),e(window).trigger("resize")},this)),document.exitFullscreen?this.browserSpecific.exitFullscreen="exitFullscreen":document.msExitFullscreen?this.browserSpecific.exitFullscreen="msExitFullscreen":document.mozCancelFullScreen?this.browserSpecific.exitFullscreen="mozCancelFullScreen":document.webkitExitFullscreen?this.browserSpecific.exitFullscreen="webkitExitFullscreen":(this.browserSpecific.exitFullscreen="nextendExitFullscreen",this.fullParent[0][this.browserSpecific.exitFullscreen]=e.proxy(function(){this.fullParent.css({position:"",left:"",top:"",width:"",height:"",backgroundColor:"",zIndex:""}),document.fullscreenElement=null,this.triggerEvent(document,this.browserSpecific.event)},this)),document.addEventListener(this.browserSpecific.event,e.proxy(this.fullScreenChange,this))}s.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},s.prototype.requestFullscreen=function(){return this.isFullScreen?!1:(this.isFullScreen=!0,this._fullScreen(),!0)},s.prototype.exitFullscreen=function(){return this.isFullScreen?(this.isFullScreen=!1,this._normalScreen(),!0):!1},s.prototype.triggerEvent=function(e,t){var i;document.createEvent?(i=document.createEvent("HTMLEvents"),i.initEvent(t,!0,!0)):document.createEventObject&&(i=document.createEventObject(),i.eventType=t),i.eventName=t,e.dispatchEvent?e.dispatchEvent(i):e.fireEvent&&htmlEvents["on"+t]?e.fireEvent("on"+i.eventType,i):e[t]?e[t]():e["on"+t]&&e["on"+t]()},s.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.parameters.type="fullpage",this.responsive.parameters.upscale=!0,this.responsive.parameters.forceFull=!1,this._marginLeft=this.responsive.containerElement[0].style.marginLeft,this.responsive.containerElement.css(nextend.rtl.marginLeft,0)),this.fullParent.css({width:"100%",height:"100%",backgroundColor:e("body").css("background-color")}).addClass("n2-ss-in-fullscreen"),this.fullParent.get(0)[this.browserSpecific.requestFullscreen]()},s.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},s.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.sliderElement.triggerHandler("n2FullScreen"),e("html").addClass("n2-in-fullscreen"),this.isFullScreen=!0,e(window).trigger("resize")):this.forceFullpage&&(this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.parameters.minimumHeightRatio=e.extend({},this._minimumHeightRatio),this.responsive.parameters.maximumHeightRatio=e.extend({},this._maximumHeightRatio),this.responsive.containerElement.css(nextend.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:null,height:null,backgroundColor:null}).removeClass("n2-ss-in-fullscreen"),e("html").removeClass("n2-in-fullscreen"),e(window).trigger("resize"),this.isFullScreen=!1,this.slider.sliderElement.triggerHandler("n2ExitFullScreen"))},s.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},t.NextendSmartSliderControlFullscreen=s}(n2,window),function(e,t,i){"use strict";function s(t,i,n){this.slider=t,this.parameters=e.extend({},n),"vertical"==i?this.parseEvent=s.prototype.parseEventVertical:this.parseEvent=s.prototype.parseEventHorizontal,e(document).on("keydown",e.proxy(this.onKeyDown,this)),t.controls.keyboard=this}s.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.offset(),i=e(window).scrollTop(),s=this.slider.sliderElement.height();return t.top+.5*s>=i&&t.top-.5*s<=i+e(window).height()},s.prototype.onKeyDown=function(e){e.target.tagName.match(/BODY|DIV|IMG/)&&this.isSliderOnScreen()&&(e=e||window.event,this.parseEvent.call(this,e)&&(e.preventDefault(),e.stopImmediatePropagation()))},s.prototype.parseEventHorizontal=function(e){switch(e.keyCode){case 39:return this.slider[nextend.rtl.next](),!0;case 37:return this.slider[nextend.rtl.previous](),!0;default:return!1}},s.prototype.parseEventVertical=function(e){switch(e.keyCode){case 40:return this.slider.next(),!0;case 38:return this.slider.previous(),!0;default:return!1}},t.NextendSmartSliderControlKeyboard=s}(n2,window),function(e,t,i){"use strict";function s(t){this.preventScroll=!1,this.slider=t,t.sliderElement.on("DOMMouseScroll mousewheel",e.proxy(this.onMouseWheel,this)),t.controls.scroll=this}s.prototype.onMouseWheel=function(t){if(this.preventScroll)t.preventDefault();else{var i=!1;t.originalEvent&&(t.originalEvent.wheelDelta&&(i=t.originalEvent.wheelDelta/-1<0),t.originalEvent.deltaY&&(i=t.originalEvent.deltaY<0),t.originalEvent.detail&&(i=t.originalEvent.detail<0)),i?this.slider.previous()&&(this.preventScroll=!0,t.preventDefault()):this.slider.next()&&(this.preventScroll=!0,t.preventDefault()),setTimeout(e.proxy(function(){this.preventScroll=!1},this),1e3)}},t.NextendSmartSliderControlScroll=s}(n2,window),function(e,t,i){"use strict";function s(t,i){return"undefined"==typeof window.DeviceOrientationEvent||"undefined"==typeof window.orientation?"Not supported":(this.timeout=null,this.slider=t,this.parameters=e.extend({duration:2e3},i),this.orientationchange(),window.addEventListener("orientationchange",e.proxy(this.orientationchange,this)),window.addEventListener("deviceorientation",e.proxy(this.handleOrientation,this),!0),void(t.controls.tilt=this))}s.prototype.orientationchange=function(){switch(window.orientation){case-90:case 90:this.parseEvent=s.prototype.parseEventHorizontalLandscape;break;default:this.parseEvent=s.prototype.parseEventHorizontal}},s.prototype.clearTimeout=function(){this.timeout=null},s.prototype.handleOrientation=function(t){null==this.timeout&&this.parseEvent.call(this,t)&&(this.timeout=setTimeout(e.proxy(this.clearTimeout,this),this.parameters.duration),t.preventDefault())},s.prototype.parseEventHorizontal=function(e){return e.gamma>10?(this.slider.next(),!0):e.gamma<-10?(this.slider.previous(),!0):!1},s.prototype.parseEventHorizontalLandscape=function(e){return e.beta<-10?(this.slider.next(),!0):e.beta>10?(this.slider.previous(),!0):!1},t.NextendSmartSliderControlTilt=s}(n2,window),function(e,t,i){"use strict";function s(t,i,s){this.currentAnimation=null,this.slider=t,this._animation=t.mainAnimation,this.parameters=e.extend({fallbackToMouseEvents:!0},s),this.swipeElement=this.slider.sliderElement.find("> div").eq(0),"vertical"==i?this.setVertical():"horizontal"==i&&this.setHorizontal();var n=e.proxy(function(){var e=this;N2EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(e,t){r=!1},move:function(t,i,s,n,a){var o=e._direction.measure(s);if(!a&&"unknown"!=o&&null===e.currentAnimation){if("ended"!=e._animation.state)return!1;e.distance=[0],e.swipeElement.addClass("n2-grabbing"),e._animation.setTouch(e._direction.axis),e.currentAnimation={direction:o,percent:0};var l=e.slider[e._direction[o]](!1);if(!l)return e.currentAnimation=null,!1}if(e.currentAnimation){var d=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(d),e.currentAnimation.percent<1){var h=Math.max(-.99999,Math.min(.99999,d/e.slider.dimensions.slider[e._property]));e.currentAnimation.percent=h,e._animation.setTouchProgress(h)}if((r||Math.abs(d)>e._direction.minDistance)&&t.cancelable)return r=!0,!0}return!1},end:function(t,i,s,n,r){if(null!==e.currentAnimation){var a=r?0:e.measureRealDirection(),o=e._animation.timeline.progress();1!=o&&e._animation.setTouchEnd(a,e.currentAnimation.percent,s.time),e.swipeElement.removeClass("n2-grabbing"),e._animation.setTouch(!1),e.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?e.onTap(t):nextend.preventClick()}})},this);if(navigator.userAgent.toLowerCase().indexOf("android")>-1){var a=this.swipeElement.parent();1!=a.css("opacity")?this.swipeElement.parent().one("transitionend",n):n()}else n();this.parameters.fallbackToMouseEvents||this.swipeElement.on("click",e.proxy(this.onTap,this)),this.parameters.fallbackToMouseEvents&&this.swipeElement.addClass("n2-grab"),t.controls.touch=this}var n=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,r=!1,a=!1;s.prototype.setHorizontal=function(){this._property="width",this._direction={left:nextend.rtl.next,right:nextend.rtl.previous,up:null,down:null,axis:"horizontal",minDistance:10,measure:function(e){return!r&&Math.abs(e.x)<10||0==e.x||Math.abs(e.x)<Math.abs(e.y)?"unknown":e.x<0?"left":"right"},get:function(e,t){return"left"==t?-e.x:e.x}},n&&(this.swipeElement.css("-ms-touch-action","pan-y"),this.swipeElement.css("touch-action","pan-y"))},s.prototype.setVertical=function(){this._property="height",this._direction={left:null,right:null,up:"next",down:"previous",axis:"vertical",minDistance:1,measure:function(e){return!r&&Math.abs(e.y)<1||0==e.y||Math.abs(e.y)<Math.abs(e.x)?"unknown":e.y<0?"up":"down"},get:function(e,t){return"up"==t?-e.y:e.y}},n&&(this.swipeElement.css("-ms-touch-action","pan-x"),this.swipeElement.css("touch-action","pan-x"))},s.prototype.logDistance=function(e){this.distance.length>3&&this.distance.shift(),this.distance.push(e)},s.prototype.measureRealDirection=function(){var e=this.distance[0],t=this.distance[this.distance.length-1];return t>=0&&e>t||0>t&&t>e?0:1},s.prototype.onTap=function(t){a||(e(t.target).trigger("n2click"),a=!0,setTimeout(function(){a=!1},500))},t.NextendSmartSliderControlTouch=s}(n2,window),function(e,t,i){function s(e){return e.position()}function s(e){return{left:e.prop("offsetLeft"),top:e.prop("offsetTop")}}function n(t,i,s,n){"undefined"==typeof n&&(n=!1),this.isStaticSlide=n,this.status=a.NOT_INITIALIZED,this.slider=t,this.slider.isFirstSlide=!0,this.$slideElement=i,i.data("slide",this),t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=i.data("slide-duration"),e.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0)),this.findLayers(),this.slider.parameters.admin&&i.is(this.slider.adminGetCurrentSlideElement())||this.initResponsiveMode(),this.status=a.INITIALIZED,this.playOnce=!this.slider.isAdmin&&this.slider.parameters.layerMode.playOnce}function r(e,t,i,s){this.layerAnimations=[],this.slide=e,e.$slideElement.off(".n2-ss-animations");for(var n=0;n<t.length;n++){var r=t.eq(n);this.layerAnimations.push(new SlideLayerAnimations(e,this,r,r.find(".n2-ss-layer-mask, .n2-ss-layer-parallax").addBack().last(),i,s))}}var a={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3},o=["left","top","width","height"];/(MSIE\ [0-7]\.\d+)/.test(navigator.userAgent),n.prototype.isActive=function(){return this.$slideElement.hasClass("n2-ss-slide-active")},n.prototype.findLayers=function(){this.$groups=this.$slideElement.find(".n2-ss-layer-group"),this.$layers=this.$slideElement.find(".n2-ss-layer").each(e.proxy(function(t,i){for(var s=e(i),n=0;n<o.length;n++){var r=o[n];s.data("desktop"+r,parseFloat(i.style[r]))}var a=this.getLayerProperty(s,"parentid");"undefined"!=typeof a&&a?(a=e("#"+a),a.length>0&&s.data("parent",a)):s.data("parent",!1)},this)),this.$animatable=this.$groups.add(this.$layers).filter('[data-animations!=""]'),this.$parallax=this.$animatable.filter("[data-parallax]")},n.prototype.getLayerResponsiveProperty=function(e,t,i){var s=e.data(t+i);return"undefined"!=typeof s?s:"desktopportrait"!=t?e.data("desktopportrait"+i):0},n.prototype.getLayerProperty=function(e,t){return e.data(t)},n.prototype.initResponsiveMode=function(){this.slider.sliderElement.on("SliderDeviceOrientation",e.proxy(function(t,i){var s=i.device+i.orientation.toLowerCase();this.currentMode=s,this.$layers.each(e.proxy(function(t,i){var n=e(i),r=n.data(s);n.data("parent");"undefined"==typeof r||parseInt(r)?(this.getLayerProperty(n,"adaptivefont")?n.css("font-size",16*this.getLayerResponsiveProperty(n,this.currentMode,"fontsize")/100+"px"):n.css("font-size",this.getLayerResponsiveProperty(n,this.currentMode,"fontsize")+"%"),n.data("shows",1),n.css("display","block")):(n.data("shows",0),n.css("display","none"))},this)),this.$groups.each(e.proxy(function(t,i){var n=e(i),r=n.data(s);"undefined"==typeof r||parseInt(r)?(this.getLayerProperty(n,"adaptivefont")?n.css("font-size",16*this.getLayerResponsiveProperty(n,this.currentMode,"fontsize")/100+"px"):n.css("font-size",this.getLayerResponsiveProperty(n,this.currentMode,"fontsize")+"%"),n.data("shows",1),n.css("display","block")):(n.data("shows",0),n.css("display","none"))},this))},this)).on("SliderResize",e.proxy(function(t,i,s){var n=s.responsiveDimensions;this.$layers.each(e.proxy(function(t,s){this.repositionLayer(e(s),i,n)},this))},this))},n.prototype.isDimensionPropertyAccepted=function(e){return!(!(e+"").match(/[0-9]+%/)&&"auto"!=e)},n.prototype.repositionLayer=function(e,t,i){var n=t.slideW,r=n,a=t.slideH,o=a;parseInt(this.getLayerProperty(e,"responsivesize"))||(r=o=1);var l=this.getLayerResponsiveProperty(e,this.currentMode,"width");e.css("width",this.isDimensionPropertyAccepted(l)?l:l*r+"px");var d=this.getLayerResponsiveProperty(e,this.currentMode,"height");e.css("height",this.isDimensionPropertyAccepted(d)?d:d*o+"px"),parseInt(this.getLayerProperty(e,"responsiveposition"))||(n=a=1);var h=this.getLayerResponsiveProperty(e,this.currentMode,"left")*n,p=this.getLayerResponsiveProperty(e,this.currentMode,"top")*a,c=this.getLayerResponsiveProperty(e,this.currentMode,"align"),m=this.getLayerResponsiveProperty(e,this.currentMode,"valign"),u={left:"auto",top:"auto",right:"auto",bottom:"auto"},f=this.getLayerProperty(e,"parent");if(f&&f.data("shows")){var g=s(f),y={left:0,top:0};switch(this.getLayerResponsiveProperty(e,this.currentMode,"parentalign")){case"right":y.left=g.left+f.width();break;case"center":y.left=g.left+f.width()/2;break;default:y.left=g.left}switch(c){case"right":u.right=e.parent().width()-y.left-h+"px";break;case"center":u.left=y.left+h-e.width()/2+"px";break;default:u.left=y.left+h+"px"}switch(this.getLayerResponsiveProperty(e,this.currentMode,"parentvalign")){case"bottom":y.top=g.top+f.height();break;case"middle":y.top=g.top+f.height()/2;break;default:y.top=g.top}switch(m){case"bottom":u.bottom=e.parent().height()-y.top-p+"px";break;case"middle":u.top=y.top+p-e.height()/2+"px";break;default:u.top=y.top+p+"px"}}else{switch(c){case"right":u.right=-h+"px";break;case"center":u.left=(this.isStaticSlide?e.parent().width():i.slide.width)/2+h-e.width()/2+"px";break;default:u.left=h+"px"}switch(m){case"bottom":u.bottom=-p+"px";break;case"middle":u.top=(this.isStaticSlide?e.parent().height():i.slide.height)/2+p-e.height()/2+"px";break;default:u.top=p+"px"}}e.css(u)},n.prototype.setZero=function(){this.$slideElement.trigger("layerSetZero",this)},n.prototype.setZeroAll=function(){this.$slideElement.trigger("layerSetZeroAll",this)},n.prototype.setStart=function(){this.status==a.INITIALIZED&&(this.$slideElement.trigger("layerAnimationSetStart"),this.status=a.READY_TO_START)},n.prototype.playIn=function(){this.status==a.READY_TO_START&&(this.status=a.PLAYING,this.$slideElement.trigger("layerAnimationPlayIn"))},n.prototype.playOut=function(){if(this.status==a.PLAYING){var t=[];this.$slideElement.triggerHandler("beforeMainSwitch",[t]),e.when.apply(e,t).done(e.proxy(function(){this.onOutAnimationsPlayed()},this))}else this.onOutAnimationsPlayed()},n.prototype.onOutAnimationsPlayed=function(){this.playOnce?this.status=a.ENDED:this.status=a.INITIALIZED,this.$slideElement.trigger("layerAnimationCompleteOut")},n.prototype.pause=function(){this.$slideElement.triggerHandler("layerPause")},n.prototype.reset=function(){this.$slideElement.triggerHandler("layerReset"),this.status=a.INITIALIZED},n.prototype.getTimeline=function(){return this.layers.getTimeline()},t.NextendSmartSliderSlide=n,r.prototype.refresh=function(e){for(var t=0;t<this.layerAnimations.length;t++)this.layerAnimations[t].refresh(e)},r.prototype.getTimeline=function(){for(var e=new NextendTimeline({paused:1}),t=0;t<this.layerAnimations.length;t++){var i=this.layerAnimations[t];e.add(i.linearTimeline,0),i.linearTimeline.paused(!1)}return e},t.NextendSmartSliderSlideAnimatables=r}(n2,window),function(e,t,i){function s(t,i){this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastOrientation=0,this.invalidateResponsiveState=!0,t.isAdmin&&(this.doResize=NextendThrottle(this.doResize,50)),"undefined"==typeof nextend.fontsDeferred&&(this.triggerResize=this.triggerResizeWithoutFontLoader),this.fixedEditRatio=1,this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.deviceMode=s.DeviceMode.UNKNOWN,this.orientationMode=s.OrientationMode.SCREEN,this.orientation=s.DeviceOrientation.UNKNOWN,this.lastRatios={ratio:-1},this.normalizedMode="unknownUnknown",t.responsive=this,this.widgetMargins={Top:[],Right:[],Bottom:[],Left:[]},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.enabledWidgetMargins=[],this.slider=t,this.sliderElement=t.sliderElement,this.alignElement=this.slider.sliderElement.closest(".n2-ss-align");var a=this.ready=e.Deferred();switch(this.sliderElement.triggerHandler("SliderResponsiveStarted"),this.sliderElement.one("SliderResize",function(){a.resolve()}),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),this.parameters=e.extend({desktop:1,tablet:1,mobile:1,onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumHeight:0,minimumHeightRatio:0,maximumHeightRatio:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},maximumSlideWidth:0,maximumSlideWidthLandscape:0,maximumSlideWidthRatio:-1,maximumSlideWidthTablet:0,maximumSlideWidthTabletLandscape:0,maximumSlideWidthMobile:0,maximumSlideWidthMobileLandscape:0,maximumSlideWidthConstrainHeight:0,forceFull:0,verticalOffsetSelectors:"",focusUser:0,focusAutoplay:0,deviceModes:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},normalizedDeviceModes:{unknownUnknown:["unknown","Unknown"],desktopPortrait:["desktop","Portrait"]},verticalRatioModifiers:{unknownUnknown:1,desktopLandscape:1,desktopPortrait:1,mobileLandscape:1,mobilePortrait:1,tabletLandscape:1,tabletPortrait:1},minimumFontSizes:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},sliderWidthToDevice:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},basedOn:"combined",desktopPortraitScreenWidth:1200,tabletPortraitScreenWidth:800,mobilePortraitScreenWidth:440,tabletLandscapeScreenWidth:1024,mobileLandscapeScreenWidth:740,orientationMode:"width_and_height",scrollFix:0,overflowHiddenPage:0},i),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&e("html, body").css("overflow","hidden"),"width"==this.parameters.orientationMode&&(this.orientationMode=s.OrientationMode.SCREEN_WIDTH_ONLY),nextend.smallestZoom=Math.min(Math.max(i.sliderWidthToDevice.mobilePortrait,120),320),this.parameters.basedOn){case"screen":break;default:if(null==n){var o=new MobileDetect(window.navigator.userAgent,801);n=!!o.tablet(),r=!!o.phone()}}if(!(this.slider.isAdmin||this.parameters.desktop&&this.parameters.tablet&&this.parameters.mobile)){if(null==n){var o=new MobileDetect(window.navigator.userAgent,801);n=!!o.tablet(),r=!!o.phone()}if(!this.parameters.mobile&&r||!this.parameters.tablet&&n||!this.parameters.desktop&&!n&&!r)return void this.slider.kill()}if(this.verticalOffsetSelectors=e(this.parameters.verticalOffsetSelectors),this.storeDefaults(),this.parameters.minimumHeight>0&&(this.parameters.minimumHeightRatio=this.parameters.minimumHeight/this.responsiveDimensions.startHeight),this.parameters.maximumHeight>0&&this.parameters.maximumHeight>=this.parameters.minimumHeight&&(this.parameters.maximumHeightRatio={desktopPortrait:this.parameters.maximumHeight/this.responsiveDimensions.startHeight},this.parameters.maximumHeightRatio.desktopLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletPortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobilePortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobileLandscape=this.parameters.maximumHeightRatio.desktopPortrait),this.parameters.maximumSlideWidth>0&&(this.parameters.maximumSlideWidthRatio={desktopPortrait:this.parameters.maximumSlideWidth/this.responsiveDimensions.startSlideWidth,desktopLandscape:this.parameters.maximumSlideWidthLandscape/this.responsiveDimensions.startSlideWidth,tabletPortrait:this.parameters.maximumSlideWidthTablet/this.responsiveDimensions.startSlideWidth,tabletLandscape:this.parameters.maximumSlideWidthTabletLandscape/this.responsiveDimensions.startSlideWidth,mobilePortrait:this.parameters.maximumSlideWidthMobile/this.responsiveDimensions.startSlideWidth,mobileLandscape:this.parameters.maximumSlideWidthMobileLandscape/this.responsiveDimensions.startSlideWidth},this.parameters.maximumSlideWidthConstrainHeight)){this.parameters.maximumHeightRatio=e.extend({},this.parameters.maximumSlideWidthRatio);for(var l in this.parameters.maximumHeightRatio)this.parameters.maximumHeightRatio[l]*=this.parameters.verticalRatioModifiers[l]}if("undefined"!=typeof nextend&&"undefined"!=typeof nextend.ssBeforeResponsive&&nextend.ssBeforeResponsive.call(this),this.onResize(),(this.parameters.onResizeEnabled||"adaptive"==this.parameters.type)&&(e(window).on("resize",e.proxy(this.onResize,this)),this.sliderElement.on("SliderInternalResize",e.proxy(this.onResize,this)),this.parameters.scrollFix))try{var d=this;e('<iframe sandbox="allow-same-origin allow-scripts" style="height: 0; background-color: transparent; margin: 0; padding: 0; overflow: hidden; border-width: 0; position: absolute; width: 100%;"/>').on("load",function(t){e(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",function(){d.sliderElement.triggerHandler("SliderInternalResize")})}).insertBefore(this.containerElement)}catch(h){}}var n=null,r=null;s.OrientationMode={SCREEN:0,ADMIN_LANDSCAPE:1,ADMIN_PORTRAIT:2,SCREEN_WIDTH_ONLY:3},s.DeviceOrientation={UNKNOWN:0,LANDSCAPE:1,PORTRAIT:2},s._DeviceOrientation={0:"Unknown",1:"Landscape",2:"Portrait"},s.DeviceMode={UNKNOWN:0,DESKTOP:1,TABLET:2,MOBILE:3},s._DeviceMode={0:"unknown",1:"desktop",2:"tablet",3:"mobile"},s.prototype.getOuterWidth=function(){var e=this.responsiveDimensions;return e.startSliderWidth+e.startSliderMarginLeft+e.startSliderMarginRight},s.prototype.storeDefaults=function(){this.responsiveDimensions={startWidth:this.sliderElement.outerWidth(!0),startHeight:this.sliderElement.outerHeight(!0)},this.responsiveElements=[],this.helperElements={},this.addResponsiveElements(),this.margins={top:this.responsiveDimensions.startSliderMarginTop,right:this.responsiveDimensions.startSliderMarginRight,bottom:this.responsiveDimensions.startSliderMarginBottom,left:this.responsiveDimensions.startSliderMarginLeft}},s.prototype.addResponsiveElements=function(){},s.prototype.addResponsiveElement=function(e,t,i,s){"undefined"!=typeof i&&i||(i="ratio");var n=new NextendSmartSliderResponsiveElement(this,i,e,t,s);return this.responsiveElements.push(n),n},s.prototype.addResponsiveElementBackgroundImage=function(e,t,i,s,n){"undefined"!=typeof s&&s||(s="ratio");var r=new NextendSmartSliderResponsiveElementBackgroundImage(this,t,s,e,i,n);return this.responsiveElements.push(r),r},s.prototype.addResponsiveElementAsSingle=function(e,t,i,s){for(var n=[],r=0;r<e.length;r++)n.push(this.addResponsiveElement(e.eq(r),t.slice(0),i,s));return n},s.prototype.addResponsiveElementBackgroundImageAsSingle=function(e,t,i,s,n){for(var r=[],a=0;a<e.length;a++)r.push(this.addResponsiveElementBackgroundImage(e.eq(a),t,i.slice(0),s,n));return r},s.prototype.resizeResponsiveElements=function(e,t,i){for(var s=0;s<this.responsiveElements.length;s++){var n=this.responsiveElements[s];"undefined"==typeof e[n.group]&&console.log("error with "+n.group),n.resize(this.responsiveDimensions,e[n.group],t,i)}},s.prototype.getDeviceMode=function(){return s._DeviceMode[this.deviceMode]},s.prototype.getDeviceModeOrientation=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.onResize=function(){"ended"==this.slider.mainAnimation.getState()?this.doResize():this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",e.proxy(this._doDelayedResize,this)))},s.prototype._doDelayedResize=function(){this.doResize(),this.delayedResizeAdded=!1},s.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(e.proxy(this.doResize,this),10)},s.prototype._getOrientation=function(){return this.orientationMode==s.OrientationMode.SCREEN?window.innerHeight<=window.innerWidth?s.DeviceOrientation.LANDSCAPE:s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE?s.DeviceOrientation.LANDSCAPE:void 0},s.prototype._getDevice=function(){switch(this.parameters.basedOn){case"combined":return this._getDeviceDevice(this._getDeviceScreenWidth());case"device":return this._getDeviceDevice(s.DeviceMode.DESKTOP);case"screen":return this._getDeviceScreenWidth()}},s.prototype._getDeviceScreenWidth=function(){var e=window.innerWidth;if(this.orientation==s.DeviceOrientation.PORTRAIT){if(e<this.parameters.mobilePortraitScreenWidth)return s.DeviceMode.MOBILE;if(e<this.parameters.tabletPortraitScreenWidth)return s.DeviceMode.TABLET}else{if(e<this.parameters.mobileLandscapeScreenWidth)return s.DeviceMode.MOBILE;if(e<this.parameters.tabletLandscapeScreenWidth)return s.DeviceMode.TABLET}return s.DeviceMode.DESKTOP},s.prototype._getDeviceAndOrientationByScreenWidth=function(){var e=window.innerWidth;return e<this.parameters.mobilePortraitScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.PORTRAIT]:e<this.parameters.mobileLandscapeScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.LANDSCAPE]:e<this.parameters.tabletPortraitScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.PORTRAIT]:e<this.parameters.tabletLandscapeScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.LANDSCAPE]:e<this.parameters.desktopPortraitScreenWidth?[s.DeviceMode.DESKTOP,s.DeviceOrientation.PORTRAIT]:[s.DeviceMode.DESKTOP,s.DeviceOrientation.LANDSCAPE]},s.prototype._getDeviceDevice=function(e){return r===!0?s.DeviceMode.MOBILE:n&&e!=s.DeviceMode.MOBILE?s.DeviceMode.TABLET:e},s.prototype._getDeviceZoom=function(e){var t;this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?t=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&&(t=s.DeviceOrientation.LANDSCAPE);var i=s.DeviceMode.DESKTOP;return e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].mobile<.001?i=s.DeviceMode.MOBILE:e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].tablet<.001&&(i=s.DeviceMode.TABLET),i},s.prototype.reTriggerSliderDeviceOrientation=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:e[0],lastOrientation:e[1],device:e[0],orientation:e[1]})},s.prototype.doResize=function(t,i,n,r){if(this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&&clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(e.proxy(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1},this),500)),this.refreshMargin(),"center"==this.slider.parameters.align&&("fullpage"==this.parameters.type?this.alignElement.css("maxWidth","none"):this.alignElement.css("maxWidth",this.responsiveDimensions.startWidth)),
4
+ !this.slider.isAdmin&&this.parameters.forceFull){e("body").css("overflow-x","hidden");var a=document.body.clientWidth||document.documentElement.clientWidth,o=this.containerElement.parent(),l=o.offset();nextend.isRTL&&(l.right=a-(l.left+o.outerWidth())),this.containerElement.css(nextend.rtl.marginLeft,-l[nextend.rtl.left]-parseInt(o.css("paddingLeft"))-parseInt(o.css("borderLeftWidth"))).width(a)}var d=this.containerElementPadding.width()/this.getOuterWidth(),h=!1,p=this.orientation,c=this.deviceMode,m=null,u=null;if(this.orientationMode==s.OrientationMode.SCREEN_WIDTH_ONLY){var f=this._getDeviceAndOrientationByScreenWidth();u=f[0],m=f[1]}else m=this._getOrientation();if(this.orientation!=m&&(this.orientation=m,h=!0,this.sliderElement.trigger("SliderOrientation",{lastOrientation:s._DeviceOrientation[p],orientation:s._DeviceOrientation[m]})),t||(this.orientationMode!=s.OrientationMode.SCREEN_WIDTH_ONLY&&(u=this._getDevice(d)),this.deviceMode!=u&&(this.deviceMode=u,this.sliderElement.removeClass("n2-ss-"+s._DeviceMode[c]).addClass("n2-ss-"+s._DeviceMode[u]),this.sliderElement.trigger("SliderDevice",{lastDevice:s._DeviceMode[c],device:s._DeviceMode[u]}),h=!0)),!this.slider.isAdmin&&"fullpage"==this.parameters.type){var g=0;if(/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)){var y=!1;90==Math.abs(window.orientation)?(g=Math.min(screen.width,window.innerHeight),90!=this.lastOrientation&&(y=!0,this.lastOrientation=90)):(g=Math.min(screen.height,window.innerHeight),0!=this.lastOrientation&&(y=!0,this.lastOrientation=0)),!y&&Math.abs(g-this.lastClientHeight)<100?g=this.lastClientHeight:this.lastClientHeight=g}else g=document.documentElement.clientHeight||document.body.clientHeight;this.parameters.maximumHeightRatio[this.getDeviceModeOrientation()]=this.parameters.minimumHeightRatio=(g-this.getVerticalOffsetHeight())/this.responsiveDimensions.startHeight}if(h){var v=this._normalizeMode(s._DeviceMode[c],s._DeviceOrientation[p]),S=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);v[0]==S[0]&&v[1]==S[1]||(this.normalizedMode=S[0]+S[1],this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:v[0],lastOrientation:v[1],device:S[0],orientation:S[1]}))}var x=this.parameters.sliderWidthToDevice[this.normalizedMode]/this.parameters.sliderWidthToDevice.desktopPortrait;!this.parameters.downscale&&x>d?d=x:!this.parameters.upscale&&d>x&&(d=x),this._doResize(d,i,n,r),"center"==this.slider.parameters.align&&this.alignElement.css("maxWidth",this.responsiveDimensions.slider.width)},s.prototype._normalizeMode=function(e,t){return this.parameters.normalizedDeviceModes[e+t]},s.prototype.getNormalizedModeString=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);return e.join("")},s.prototype.getModeString=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.isEnabled=function(e,t){return this.parameters.deviceModes[e+t]},s.prototype._doResize=function(e,t,i,s){var n={ratio:e,w:e,h:e,slideW:e,slideH:e,fontRatio:1};this._buildRatios(n,this.slider.parameters.dynamicHeight,i),n.fontRatio=n.slideW;var r=!1;for(var a in n)if(n[a]!=this.lastRatios[a]){r=!0;break}(this.invalidateResponsiveState||r)&&(this.resizeResponsiveElements(n,t,s),this.lastRatios=n,t?(this.sliderElement.trigger("SliderAnimatedResize",[n,t,s]),t.eventCallback("onComplete",function(){this.triggerResize(n,t)},[],this)):this.triggerResize(n,t))},s.prototype.triggerResize=function(t,i){nextend.fontsDeferred.done(e.proxy(function(){var s=e.proxy(function(){this.triggerResize=this._triggerResize,this._triggerResize(t,i)},this);/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor)||/CriOS/.exec(window.navigator.userAgent)?setTimeout(s,200):s()},this)),this.invalidateResponsiveState=!1},s.prototype.triggerResizeWithoutFontLoader=function(t,i){nextend.loadDeferred.done(e.proxy(function(){var s=e.proxy(function(){this.triggerResize=this._triggerResize,this._triggerResize(t,i)},this);/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor)||/CriOS/.exec(window.navigator.userAgent)?setTimeout(s,200):s()},this)),this.invalidateResponsiveState=!1},s.prototype._triggerResize=function(e,t){this.invalidateResponsiveState=!1,this.sliderElement.trigger("SliderResize",[e,this,t])},s.prototype._buildRatios=function(e,t,i){var s=this.getDeviceModeOrientation();this.parameters.maximumSlideWidthRatio[s]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[s]&&(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideW=e.slideH=Math.min(e.slideW,e.slideH);var n=this.parameters.verticalRatioModifiers[s];if(e.slideH*=n,"fullpage"==this.parameters.type)e.h*=n,this.parameters.minimumHeightRatio>0&&(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),this.slider.isAdmin?this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.w=e.slideW,e.h=e.slideH):this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.slideW=e.w,this.parameters.maximumSlideWidthRatio[s]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[s]&&(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideH=e.h);else if(e.h*=n,this.parameters.minimumHeightRatio>0&&(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),e.slideH=Math.min(e.slideH,e.h),e.slideW=e.slideH/n,"showcase"==this.slider.type&&(e.slideW=Math.min(e.slideW,e.w),e.slideH=Math.min(e.slideW,e.slideH)),t){var r=this.slider.currentSlideIndex;"undefined"!=typeof i&&(r=i);var a=this.slider.backgroundImages.backgroundImages[r].responsiveElement.relativeRatio;-1!=a&&(e.slideH*=a,e.h*=a)}this.sliderElement.triggerHandler("responsiveBuildRatios",[e])},s.prototype.setOrientation=function(e){"portrait"==e?this.orientationMode=s.OrientationMode.ADMIN_PORTRAIT:"landscape"==e&&(this.orientationMode=s.OrientationMode.ADMIN_LANDSCAPE)},s.prototype.setMode=function(e,t){var i;if(this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?i=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&&(i=s.DeviceOrientation.LANDSCAPE),this==t){var n=this.parameters.sliderWidthToDevice[e+s._DeviceOrientation[i]];if(n=nextend.smallestZoom+(this.parameters.sliderWidthToDevice.desktopPortrait-nextend.smallestZoom)/50*Math.floor((n-nextend.smallestZoom)/((this.parameters.sliderWidthToDevice.desktopPortrait-nextend.smallestZoom)/50)),"mobile"==e)switch(s._DeviceOrientation[i]){case"Portrait":n=Math.max(nextend.smallestZoom,320);break;case"Landscape":n=Math.max(nextend.smallestZoom,568)}this.setSize(n),this.containerElement.width()>n&&(n=this.parameters.sliderWidthToDevice[e+s._DeviceOrientation[i]]-(this.parameters.sliderWidthToDevice.desktopPortrait-nextend.smallestZoom)/50,this.setSize(n))}},s.prototype.setSize=function(e){this.containerElement.width(e),this.doResize()},s.prototype.getCanvas=function(){return null},s.prototype.getVerticalOffsetHeight=function(){for(var e=0,t=0;t<this.verticalOffsetSelectors.length;t++)e+=this.verticalOffsetSelectors.eq(t).outerHeight();return e},s.prototype.addMargin=function(e,t){this.widgetMargins[e].push(t),t.isVisible()&&(this._addMarginSize(e,t.getSize()),this.enabledWidgetMargins.push(t)),this.doNormalizedResize()},s.prototype.addStaticMargin=function(e,t){this.widgetStaticMargins||(this.widgetStaticMargins={Top:[],Right:[],Bottom:[],Left:[]}),this.widgetStaticMargins[e].push(t),this.doNormalizedResize()},s.prototype.refreshMargin=function(){for(var t in this.widgetMargins)for(var i=this.widgetMargins[t],s=i.length-1;s>=0;s--){var n=i[s];if(n.isVisible())-1==e.inArray(n,this.enabledWidgetMargins)&&(this._addMarginSize(t,n.getSize()),this.enabledWidgetMargins.push(n));else{var r=e.inArray(n,this.enabledWidgetMargins);-1!=r&&(this._addMarginSize(t,-n.getSize()),this.enabledWidgetMargins.splice(r,1))}}this.refreshStaticSizes()},s.prototype.refreshStaticSizes=function(){if(this.widgetStaticMargins){var e={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0};for(var t in this.widgetStaticMargins)for(var i=this.widgetStaticMargins[t],s=i.length-1;s>=0;s--){var n=i[s];n.isVisible()&&(e["padding"+t]+=n.getSize())}for(var r in e)this.containerElementPadding.css(e);this.staticSizes=e}},s.prototype._addMarginSize=function(e,t){var i=null;switch(e){case"Top":case"Bottom":i=this._sliderVertical;break;default:i=this._sliderHorizontal}i.data["margin"+e]+=t,this.responsiveDimensions["startSliderMargin"+e]+=t},t.NextendSmartSliderResponsive=s}(n2,window),function(e,t,i){function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function n(t,i,s,n,r){if(this.loadDefaults(),this._lastRatio=1,this.responsive=t,this.group=i,this.element=s,this.lazyload=this.responsive.slider.parameters.lazyload.enabled,this._readyDeferred=e.Deferred(),"undefined"!=typeof r?this.name=r:this.name=null,this.tagName=s.prop("tagName"),this.data={},this.helper={parent:null,parentProps:null,fontSize:!1,centered:!1},this.customLoad)this.customLoad(n);else switch(this.tagName){case"IMG":var a=s.parent();this.helper.parentProps={width:a.width(),height:a.height()},this.lazyload?s.on("lazyloaded",e.proxy(this._lateInitIMG,this,n)):s.n2imagesLoaded(e.proxy(this._lateInitIMG,this,n));break;default:this._lateInit(n)}}function r(e,t,i,s,r,a){this.ratio=-1,this.relativeRatio=1,this.x=50,this.y=50,this.backgroundImage=t,n.prototype.constructor.call(this,e,i,s,r,a),t.addResponsiveElement(this)}n.prototype.loadDefaults=function(){this.customLoad=!1,this.lazyload=!1},n.prototype._lateInit=function(t){this._cssProperties=t,this.reloadDefault(),-1!=e.inArray("fontSize",t)&&(this.data.fontSize=this.element.data("fontsize"),this.helper.fontSize={fontSize:this.element.data("fontsize"),desktopPortrait:this.element.data("minfontsizedesktopportrait"),desktopLandscape:this.element.data("minfontsizedesktoplandscape"),tabletPortrait:this.element.data("minfontsizetabletportrait"),tabletLandscape:this.element.data("minfontsizetabletlandscape"),mobilePortrait:this.element.data("minfontsizemobileportrait"),mobileLandscape:this.element.data("minfontsizemobilelandscape")},this.responsive.sliderElement.on("SliderDeviceOrientation",e.proxy(this.onModeChange,this))),this.resize=this._resize,this._readyDeferred.resolve()},n.prototype.reloadDefault=function(){for(var e=0;e<this._cssProperties.length;e++){var t=this._cssProperties[e];this.data[t]=parseInt(this.element.css(t))}if(this.name){var i=this.responsive.responsiveDimensions;for(var n in this.data)i["start"+s(this.name)+s(n)]=this.data[n]}},n.prototype._lateInitIMG=function(t,i){var s=this.element.width(),n=this.element.height();n=parseInt(this.helper.parentProps.width/s*n),s=this.helper.parentProps.width;var r=e.inArray("width",t);-1!=r&&(t.splice(r,1),this.data.width=s);var a=e.inArray("height",t);-1!=a&&(t.splice(a,1),this.data.height=n),this._lateInit(t)},n.prototype.ready=function(e){this._readyDeferred.done(e)},n.prototype.resize=function(t,i){this.ready(e.proxy(this.resize,this,t,i)),this._lastRatio=i},n.prototype._resize=function(e,t,i,s){this.name&&"undefined"==typeof e[this.name]&&(e[this.name]={});var n={};for(var r in this.data){var a=this.data[r]*t;"function"==typeof this[r+"Prepare"]&&(a=this[r+"Prepare"](a)),this.name&&(e[this.name][r]=a),n[r]=a}i?i.to(this.element,s,n,0):(this.element.css(n),this.helper.centered&&(n2const.isIOS&&"IMG"==this.tagName&&(this.element.css({marginTop:1}),this.element.css(nextend.rtl.marginLeft,1)),this.element.css({marginTop:this.getVerticalMargin(parseInt((this.helper.parent.height()-this.element.height())/2))}),this.element.css(nextend.rtl.marginLeft,this.getHorizontalMargin(parseInt((this.helper.parent.width()-this.element.width())/2))))),this._lastRatio=t},n.prototype.getHorizontalMargin=function(e){return e},n.prototype.getVerticalMargin=function(e){return e},n.prototype._refreshResize=function(){this.responsive.ready.done(e.proxy(function(){this._resize(this.responsive.responsiveDimensions,this.responsive.lastRatios[this.group])},this))},n.prototype.widthPrepare=function(e){return Math.round(e)},n.prototype.heightPrepare=function(e){return Math.round(e)},n.prototype.marginLeftPrepare=function(e){return parseInt(e)},n.prototype.marginRightPrepare=function(e){return parseInt(e)},n.prototype.lineHeightPrepare=function(e){return e+"px"},n.prototype.fontSizePrepare=function(e){var t=this.responsive.getNormalizedModeString();return e<this.helper.fontSize[t]?this.helper.fontSize[t]:e},n.prototype.setCentered=function(){this.helper.parent=this.element.parent(),this.helper.centered=!0},n.prototype.unsetCentered=function(){this.helper.centered=!1},n.prototype.onModeChange=function(){this.setFontSizeByMode()},n.prototype.setFontSizeByMode=function(){this.element.css("fontSize",this.fontSizePrepare(this.data.fontSize*this._lastRatio))},t.NextendSmartSliderResponsiveElement=n,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.customLoad=function(t){var i=this.element.parent();this.helper.parentProps={width:i.width(),height:i.height()},this.backgroundImage.afterLoaded().done(e.proxy(function(){this._lateInitIMG(t)},this))},r.prototype._lateInitIMG=function(e,t){"fill"!=this.backgroundImage.mode&&"fit"!=this.backgroundImage.mode&&"simple"!=this.backgroundImage.mode||(this.refreshRatio(),this.responsive.slider.parameters.dynamicHeight||this.setCentered()),this._lateInit(e)},r.prototype.afterLoaded=function(){"fill"!=this.backgroundImage.mode&&"fit"!=this.backgroundImage.mode&&"simple"!=this.backgroundImage.mode||(this.refreshRatio(),this.responsive.slider.parameters.dynamicHeight||this.setCentered())},r.prototype._resize=function(e,t,i,s){if(this.responsive.slider.parameters.dynamicHeight)this.element.css({width:"100%",height:"100%"});else{var r=e.slideouter||e.slide,a=r.width/r.height;"fill"==this.backgroundImage.mode?a>this.ratio?this.element.css({width:"100%",height:"auto"}):this.element.css({width:"auto",height:"100%"}):"fit"==this.backgroundImage.mode&&(a<this.ratio?this.element.css({width:"100%",height:"auto"}):this.element.css({width:"auto",height:"100%"}))}n.prototype._resize.call(this,e,t,i,s)},r.prototype.refreshRatio=function(){var e=this.element.prop("naturalWidth"),t=this.element.prop("naturalHeight");this.ratio=e/t;var i=this.responsive.responsiveDimensions.startSlideWidth,s=this.responsive.responsiveDimensions.startSlideHeight;this.relativeRatio=i/s/this.ratio,this.x=parseInt(this.element.data("x")),isNaN(this.x)&&(this.x=50),this.y=parseInt(this.element.data("y")),isNaN(this.y)&&(this.y=50)},r.prototype.getHorizontalMargin=function(e){return e*(this.x/50)},r.prototype.getVerticalMargin=function(e){return e*(this.y/50)},t.NextendSmartSliderResponsiveElementBackgroundImage=r}(n2,window),function(e,t,i){function s(t,i,s,n,r,a){this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.start=a,this.parameters=e.extend({vimeourl:"//vimeo.com/144598279",center:0,autoplay:"0",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1"},n),navigator.userAgent.toLowerCase().indexOf("android")>-1&&(this.parameters.autoplay=0),1==this.parameters.autoplay||!r||n2const.isMobile?this.ready(e.proxy(this.initVimeoPlayer,this)):e("#"+this.playerId).on("click.vimeo n2click.vimeo",e.proxy(function(t){e(t.currentTarget).off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initVimeoPlayer()},this))},this))}s.vimeoDeferred=null,s.prototype.ready=function(t){null===s.vimeoDeferred&&(s.vimeoDeferred=e.getScript("https://player.vimeo.com/api/player.js")),s.vimeoDeferred.done(t)},s.prototype.initVimeoPlayer=function(){var t=n2('<iframe id="'+this.playerId+'_video" src="https://player.vimeo.com/video/'+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>');e("#"+this.playerId).append(t),this.isStatic=t.closest(".n2-ss-static-slide").length,this.playerElement=t,this.player=new Vimeo.Player(t[0]),this.player.ready().then(e.proxy(this.onReady,this))},s.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),this.slideIndex=this.slider.findSlideIndexByElement(this.playerElement),1==this.parameters.center&&(this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)));var i=this.playerElement.parent().parent();this.player.on("play",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play")},this)),this.player.on("pause",e.proxy(function(){i.triggerHandler("n2pause")})),this.player.on("ended",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop")},this)),this.isStatic||this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s,n){s!=this.slideIndex&&(parseInt(this.parameters.reset)?this.reset():this.pause())},this)),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.readyDeferred.resolve()},s.prototype.onResize=function(){var e=52,t=this.playerElement.parent(),i=t.width()+e,s=t.height()+e,n=16/9,r={width:i,height:s,marginTop:0};r[nextend.rtl.marginLeft]=0,i/s>n?(r.height=i*n,r.marginTop=(s-r.height)/2):(r.width=s*n,r[nextend.rtl.marginLeft]=(i-r.width)/2),this.playerElement.css(r)},s.prototype.initAutoplay=function(){this.isStatic?this.play():(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(e,t,i,s,n){s==this.slideIndex&&this.play()},this)),this.slider.currentSlideIndex==this.slideIndex&&this.play())},s.prototype.play=function(){this.slider.sliderElement.trigger("mediaStarted",this.playerId),0!=this.start&&this.player.setCurrentTime(this.start),this.player.play(),this.player.getCurrentTime().then(e.proxy(function(e){e<this.start&&0!=this.start&&this.player.setCurrentTime(this.start),this.player.play()},this))["catch"](e.proxy(function(e){this.player.play()},this))},s.prototype.pause=function(){this.player.pause()},s.prototype.reset=function(){this.player.setCurrentTime(this.start)},s.prototype.setVolume=function(e){this.player.setVolume(e)},t.NextendSmartSliderVimeoItem=s}(n2,window),function(e,t,i){function s(t,i,s,n){this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.parameters=e.extend({youtubeurl:"//www.youtube.com/watch?v=MKmIwHAFjSU",youtubecode:"MKmIwHAFjSU",center:0,showinfo:1,modestbranding:1,autoplay:"1",theme:"dark",related:"1",vq:"default",volume:"-1",loop:0,reset:0,query:[]},s),navigator.userAgent.toLowerCase().indexOf("android")>-1&&(this.parameters.autoplay=0),1==this.parameters.autoplay||!n||n2const.isMobile?this.ready(e.proxy(this.initYoutubePlayer,this)):e("#"+this.playerId).on("click.youtube n2click.youtube",e.proxy(function(t){e(t.currentTarget).off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initYoutubePlayer()},this))},this))}s.YTDeferred=null,s.prototype.ready=function(t){if(null===s.YTDeferred)if(s.YTDeferred=e.Deferred(),"undefined"==typeof YT){var i=function(){};"function"==typeof window.onYouTubeIframeAPIReady&&(i=window.onYouTubeIframeAPIReady),window.onYouTubeIframeAPIReady=function(){s.YTDeferred.resolve(),i()},e.getScript("https://www.youtube.com/iframe_api")}else if(YT.loaded)s.YTDeferred.resolve();else var n=setInterval(function(){YT.loaded&&(s.YTDeferred.resolve(),clearInterval(n))},200);s.YTDeferred.done(t)},s.prototype.initYoutubePlayer=function(){var t=e("#"+this.playerId),i=t.closest(".n2-ss-layer");this.isStatic=t.closest(".n2-ss-static-slide").length;var s={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,theme:this.parameters.theme,showinfo:this.parameters.start.showinfo,modestbranding:this.parameters.start.modestbranding,wmode:"opaque",rel:this.parameters.related,vq:this.parameters.vq,start:this.parameters.start};1==this.parameters.center&&(s.controls=0,s.showinfo=0),1!=this.parameters.controls&&(s.autohide=1,s.controls=0,s.showinfo=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(s.html5=1);for(var n in this.parameters.query)this.parameters.query.hasOwnProperty(n)&&(s[n]=this.parameters.query[n]);this.player=new YT.Player(this.playerId,{videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:s,events:{onReady:e.proxy(this.onReady,this),onStateChange:e.proxy(function(e){switch(e.data){case YT.PlayerState.PLAYING:this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:i.triggerHandler("n2pause");break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(0),this.player.playVideo()):(this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"))}},this)}}),this.playerElement=e("#"+this.playerId),this.slideIndex=this.slider.findSlideIndexByElement(this.playerElement),1==this.parameters.center&&(this.playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)))},s.prototype.onReady=function(t){var i=parseFloat(this.parameters.volume);i>=0&&this.setVolume(i),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s,n){s!=this.slideIndex&&this.pause()},this)),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(e,t,i,s,n){s!=this.slideIndex&&this.player.seekTo(0)},this))),this.readyDeferred.resolve()},s.prototype.onResize=function(){var e=100,t=this.playerElement.parent(),i=t.width(),s=t.height()+e,n=16/9,r={width:i,height:s,marginTop:0};r[nextend.rtl.marginLeft]=0,i/s>n?(r.height=i*n,r.marginTop=(s-r.height)/2):(r.width=s*n,r[nextend.rtl.marginLeft]=(i-r.width)/2),this.playerElement.css(r)},s.prototype.initAutoplay=function(){this.isStatic?this.play():(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(e,t,i,s,n){s==this.slideIndex&&this.play()},this)),this.slider.currentSlideIndex==this.slideIndex&&this.play())},s.prototype.play=function(){this.isStopped()&&(this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.playVideo())},s.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},s.prototype.stop=function(){this.player.stopVideo()},s.prototype.isStopped=function(){var e=this.player.getPlayerState();switch(e){case-1:case 0:case 2:case 5:return!0;default:return!1}},s.prototype.setVolume=function(e){this.player.setVolume(100*e)},t.NextendSmartSliderYouTubeItem=s}(n2,window);
library/media/plugins/type/simple/simple/dist/smartslider-simple-type-frontend.js CHANGED
@@ -543,11 +543,6 @@
543
 
544
  this.backgroundImages = slider.backgroundImages.getBackgroundImages();
545
 
546
- /**
547
- * Hack to force browser to better image rendering {@link http://stackoverflow.com/a/14308227/305604}
548
- * Prevents a Firefox glitch
549
- */
550
- slider.backgroundImages.hack();
551
  };
552
 
553
  NextendSmartSliderFrontendBackgroundAnimation.prototype = Object.create(NextendSmartSliderMainAnimationSimple.prototype);
543
 
544
  this.backgroundImages = slider.backgroundImages.getBackgroundImages();
545
 
 
 
 
 
 
546
  };
547
 
548
  NextendSmartSliderFrontendBackgroundAnimation.prototype = Object.create(NextendSmartSliderMainAnimationSimple.prototype);
library/media/plugins/type/simple/simple/dist/smartslider-simple-type-frontend.min.js CHANGED
@@ -1 +1 @@
1
- !function(i,t,e){function n(t,e){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,e=i.extend({delay:0,parallax:.45,type:"horizontal",shiftedBackgroundAnimation:"auto"},e),e.delay/=1e3,NextendSmartSliderMainAnimationAbstract.prototype.constructor.apply(this,arguments),this.setActiveSlide(this.slider.slides.eq(this.slider.currentSlideIndex)),this.animations=[],this.parameters.type){case"no":this.animations.push(this._mainAnimationNo);break;case"fade":this.animations.push(this._mainAnimationFade);break;case"crossfade":this.animations.push(this._mainAnimationCrossFade);break;case"vertical":1==this.parameters.parallax?this.animations.push(this._mainAnimationVertical):this.animations.push(this._mainAnimationVerticalParallax);break;case"vertical-reversed":1==this.parameters.parallax?this.animations.push(this._mainAnimationVerticalReversed):this.animations.push(this._mainAnimationVerticalReversedParallax);break;case"horizontal-reversed":1==this.parameters.parallax?this.animations.push(this._mainAnimationHorizontalReversed):this.animations.push(this._mainAnimationHorizontalReversedParallax);break;default:1==this.parameters.parallax?this.animations.push(this._mainAnimationHorizontal):this.animations.push(this._mainAnimationHorizontalParallax)}}n.prototype=Object.create(NextendSmartSliderMainAnimationAbstract.prototype),n.prototype.constructor=n,n.prototype.changeTo=function(i,t,e,n,a,s){this.postBackgroundAnimation&&this.postBackgroundAnimation.start(i,e),NextendSmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},n.prototype.setActiveSlide=function(i){for(var t=this.slider.slides.not(i),e=0;e<t.length;e++)this._hideSlide(t.eq(e))},n.prototype._hideSlide=function(i){var t={};t[nextend.rtl.left]="-100000px",NextendTween.set(i.get(0),t)},n.prototype._showSlide=function(i){var t={};t[nextend.rtl.left]=0,NextendTween.set(i.get(0),t)},NextendSmartSliderMainAnimationAbstract.prototype.cleanSlideIndex=function(i){this._hideSlide(this.slider.slides.eq(i))},n.prototype.revertTo=function(i,t){var e=this.slider.slides.eq(t).css("zIndex","");this._hideSlide(e),NextendSmartSliderMainAnimationAbstract.prototype.revertTo.apply(this,arguments)},n.prototype._getAnimation=function(){return i.proxy(this.animations[Math.floor(Math.random()*this.animations.length)],this)},n.prototype._initAnimation=function(i,t,e,n,a){var s=this._getAnimation();s(t,n,a,i,e)},n.prototype.onChangeToComplete=function(i,t,e){this._hideSlide(this.slider.slides.eq(i)),NextendSmartSliderMainAnimationAbstract.prototype.onChangeToComplete.apply(this,arguments)},n.prototype.onReverseChangeToComplete=function(i,t,e){this._hideSlide(this.slider.slides.eq(i)),NextendSmartSliderMainAnimationAbstract.prototype.onReverseChangeToComplete.apply(this,arguments)},n.prototype._mainAnimationNo=function(t,e){this._showSlide(e),this.slider.unsetActiveSlide(t),e.css("opacity",0),this.slider.setActiveSlide(e);var n=this.timeline.totalDuration(),a=this.getExtraDelay();this._currentBackgroundAnimation&&this.parameters.shiftedBackgroundAnimation&&this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup(),0==n&&(n=1e-5,a+=n),this.timeline.set(t,{opacity:0},a),this.timeline.set(e,{opacity:1},n),this.sliderElement.on("mainAnimationComplete.n2-simple-no",i.proxy(function(i,t,e,n){this.sliderElement.off("mainAnimationComplete.n2-simple-no"),this.slider.slides.eq(e).css("opacity",""),this.slider.slides.eq(n).css("opacity","")},this))},n.prototype._mainAnimationFade=function(t,e){t.css("zIndex",5),this._showSlide(e),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(e);var n=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var a=!1,s=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.data("slide").$layers.length>0?a=!0:s=!0:a=!0,this._currentBackgroundAnimation&&a?(this.timeline.shiftChildren(n.outDuration-n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):s&&(this.timeline.shiftChildren(n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}this.timeline.to(t.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),e.css("opacity",1),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",i.proxy(function(i,t,e,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade"),this.slider.slides.eq(e).css("zIndex","").css("opacity",""),this.slider.slides.eq(n).css("opacity","")},this))},n.prototype._mainAnimationCrossFade=function(t,e){t.css("zIndex",5),e.css("opacity",0),this._showSlide(e),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(e);var n=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var a=!1,s=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.data("slide").$layers.length>0?a=!0:s=!0:a=!0,this._currentBackgroundAnimation&&a?(this.timeline.shiftChildren(n.outDuration-n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):s&&(this.timeline.shiftChildren(n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}this.timeline.to(t.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),this.timeline.to(e.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",i.proxy(function(i,t,e,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade"),this.slider.slides.eq(e).css("zIndex","").css("opacity",""),this.slider.slides.eq(n).css("opacity","")},this))},n.prototype._mainAnimationHorizontal=function(i,t,e,n,a){this.__mainAnimationDirection(i,t,"horizontal",1,e,n,a)},n.prototype._mainAnimationVertical=function(i,t,e,n,a){this._showSlide(t),this.__mainAnimationDirection(i,t,"vertical",1,e,n,a)},n.prototype._mainAnimationHorizontalParallax=function(i,t,e){this.__mainAnimationDirection(i,t,"horizontal",this.parameters.parallax,e)},n.prototype._mainAnimationVerticalParallax=function(i,t,e){this._showSlide(t),this.__mainAnimationDirection(i,t,"vertical",this.parameters.parallax,e)},n.prototype._mainAnimationHorizontalReversed=function(i,t,e,n,a){this.__mainAnimationDirection(i,t,"horizontal",1,!e,n,a)},n.prototype._mainAnimationVerticalReversed=function(i,t,e,n,a){this._showSlide(t),this.__mainAnimationDirection(i,t,"vertical",1,!e,n,a)},n.prototype._mainAnimationHorizontalReversedParallax=function(i,t,e){this.__mainAnimationDirection(i,t,"horizontal",this.parameters.parallax,!e)},n.prototype._mainAnimationVerticalReversedParallax=function(i,t,e){this._showSlide(t),this.__mainAnimationDirection(i,t,"vertical",this.parameters.parallax,!e)},n.prototype.__mainAnimationDirection=function(t,e,n,a,s,o,r){var d="",l=0,h="",m=0;"horizontal"==n?(d=nextend.rtl.left,h="width",m=l=this.slider.dimensions.slideouter.width):"vertical"==n&&(d="top",h="height",m=l=this.slider.dimensions.slideouter.height),s&&(l*=-1);var p={ease:this.getEase()},c={ease:this.getEase()},u={};1!=a?s?(t.css("zIndex",6),p[h]=-l,l*=a,u[d]=l,u[h]=-l):(t.css("zIndex",6),l*=a,e.css(d,l),u[d]=l):(e.css(d,l),u[d]=l),e.css("zIndex",5),(s||1==a)&&t.css("zIndex",4),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(e);var g=this.adjustMainAnimation();if(p[d]=0,this.timeline.fromTo(e.get(0),g.inDuration,u,p,g.inDelay),c[d]=-l,s||1==a||(c[h]=l),0!=this.parameters.shiftedBackgroundAnimation){var A=!1,y=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.data("slide").$layers.length>0?A=!0:y=!0:A=!0,this._currentBackgroundAnimation&&A?(this.timeline.shiftChildren(g.outDuration-g.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):y&&(this.timeline.shiftChildren(g.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}if(this.timeline.to(t.get(0),g.outDuration,c,g.outDelay),this.isTouch&&this.isReverseAllowed&&1==a){var f=s?o+1:o-1;if(0>f?f=this.slider.parameters.carousel?this.slider.slides.length-1:o:f>=this.slider.slides.length&&(f=this.slider.parameters.carousel?0:o),this.reverseSlideIndex=f,f!=r&&f!=o){this.enableReverseMode();var v=this.slider.slides.eq(f);"vertical"==n&&this._showSlide(v),v.css(d,l);var S={},_={ease:this.getEase()},x={},k={ease:this.getEase()};_[d]=0,S[d]=-l,k[d]=l,x[d]=0,v.trigger("mainAnimationStartIn",[this,o,f,!1]),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onChangeToComplete,[o,f,!1],this),this.reverseTimeline.fromTo(v.get(0),g.inDuration,S,_,g.inDelay),this.reverseTimeline.fromTo(t.get(0),g.inDuration,x,k,g.inDelay)}}this.sliderElement.on("mainAnimationComplete.n2-simple-fade",i.proxy(function(i,t,e,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade"),this.slider.slides.eq(n).css("zIndex","").css(d,""),this.slider.slides.eq(e).css("zIndex","").css(h,m)},this))},n.prototype.getExtraDelay=function(){return 0},n.prototype.adjustMainAnimation=function(){var i=this.parameters.duration,t=this.parameters.delay,e=this.timeline.totalDuration(),n=this.getExtraDelay();if(e>0){var a=i+t;if(!(a>e))return{inDuration:i,outDuration:i,inDelay:e-i,outDelay:n,extraDelay:n};i=i*e/a,t=t*e/a,n>t&&(i-=n-t,t=n)}else t+=n;return{inDuration:i,outDuration:i,inDelay:t,outDelay:t,extraDelay:n}},n.prototype.hasBackgroundAnimation=function(){return!1},t.NextendSmartSliderMainAnimationSimple=n}(n2,window),function(i,t,e){function n(t,e,n){this._currentBackgroundAnimation=!1,NextendSmartSliderMainAnimationSimple.prototype.constructor.call(this,t,e),this.isReverseAllowed=!1,this.bgAnimationElement=this.sliderElement.find(".n2-ss-background-animation"),this.backgroundAnimations=i.extend({global:0,speed:"normal",slides:[]},n),this.backgroundImages=t.backgroundImages.getBackgroundImages(),t.backgroundImages.hack()}n.prototype=Object.create(NextendSmartSliderMainAnimationSimple.prototype),n.prototype.constructor=n,n.prototype.getBackgroundAnimation=function(i){var t=this.backgroundAnimations.global,e=this.backgroundAnimations.speed;if("undefined"!=typeof this.backgroundAnimations.slides[i]&&this.backgroundAnimations.slides[i]){var n=this.backgroundAnimations.slides[i];t=n.animation,e=n.speed}return t?[t[Math.floor(Math.random()*t.length)],e]:!1},n.prototype._initAnimation=function(t,e,n,a,s){this._currentBackgroundAnimation=!1;var o=this.backgroundImages[t],r=this.backgroundImages[n];if(o&&r){var d=this.getBackgroundAnimation(n);if(d!==!1){var l=1;switch(d[1]){case"superSlow":l=3;break;case"slow":l=1.5;break;case"fast":l=.75;break;case"superFast":l=.5}return this._currentBackgroundAnimation=new window["NextendSmartSliderBackgroundAnimation"+d[0].type](this,o.element,r.element,d[0],l,s),NextendSmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments),this._currentBackgroundAnimation.postSetup(),void this.timeline.set(i("<div />"),{opacity:1,onComplete:i.proxy(function(){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1)},this)})}}NextendSmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments)},n.prototype.onChangeToComplete=function(i,t){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1),NextendSmartSliderMainAnimationSimple.prototype.onChangeToComplete.apply(this,arguments)},n.prototype.onReverseChangeToComplete=function(i,t,e){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.revertEnded(),this._currentBackgroundAnimation=!1),NextendSmartSliderMainAnimationSimple.prototype.onReverseChangeToComplete.apply(this,arguments)},n.prototype.getExtraDelay=function(){return this._currentBackgroundAnimation?this._currentBackgroundAnimation.getExtraDelay():0},n.prototype.hasBackgroundAnimation=function(){return this._currentBackgroundAnimation},t.NextendSmartSliderFrontendBackgroundAnimation=n}(n2,window),function(i,t,e){function n(){this.round=1,NextendSmartSliderResponsive.prototype.constructor.apply(this,arguments)}n.prototype=Object.create(NextendSmartSliderResponsive.prototype),n.prototype.constructor=n,n.prototype.addResponsiveElements=function(){this.helperElements={},this._sliderHorizontal=this.addResponsiveElement(this.sliderElement,["width","marginLeft","marginRight"],"w","slider"),this.addResponsiveElement(this.sliderElement.find(".n2-ss-slider-1"),["width","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],"w"),this._sliderVertical=this.addResponsiveElement(this.sliderElement,["height","marginTop","marginBottom"],"h","slider"),this.addResponsiveElement(this.sliderElement,["fontSize"],"fontRatio","slider"),this.addResponsiveElement(this.sliderElement.find(".n2-ss-slider-1"),["height","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"],"h"),this.helperElements.canvas=this.addResponsiveElement(this.sliderElement.find(".n2-ss-slide"),["width"],"w","slideouter"),this.addResponsiveElement(this.sliderElement.find(".n2-ss-slide"),["height"],"h","slideouter");var t=this.sliderElement.find(".n2-ss-layers-container");this.addResponsiveElement(t,["width"],"slideW","slide"),this.addResponsiveElement(t,["height"],"slideH","slide").setCentered();for(var e=this.slider.parameters.mainanimation.parallax,n=this.slider.backgroundImages.getBackgroundImages(),a=0;a<n.length;a++)1!=e&&(this.addResponsiveElement(n[a].element,["width"],"w"),this.addResponsiveElement(n[a].element,["height"],"h")),this.addResponsiveElementBackgroundImageAsSingle(n[a].image,n[a],[]);var s=this.sliderElement.find(".n2-ss-slider-background-video");s.length&&(s[0].videoWidth>0?this.videoPlayerReady(s):(s[0].addEventListener("error",i.proxy(this.videoPlayerError,this,s),!0),s[0].addEventListener("canplay",i.proxy(this.videoPlayerReady,this,s))))},n.prototype.getCanvas=function(){return this.helperElements.canvas},n.prototype.videoPlayerError=function(i){i.remove()},n.prototype.videoPlayerReady=function(t){t.data("ratio",t[0].videoWidth/t[0].videoHeight),t.addClass("n2-active"),this.slider.ready(i.proxy(function(){this.slider.sliderElement.on("SliderResize",i.proxy(this.resizeVideo,this,t)),this.resizeVideo(t)},this))},n.prototype.resizeVideo=function(i){var t=i.data("mode"),e=i.data("ratio"),n=this.slider.dimensions.slideouter||this.slider.dimensions.slide,a=n.width/n.height;"fill"==t?a>e?i.css({width:"100%",height:"auto"}):i.css({width:"auto",height:"100%"}):"fit"==t&&(e>a?i.css({width:"100%",height:"auto"}):i.css({width:"auto",height:"100%"}))},t.NextendSmartSliderResponsiveSimple=n}(n2,window),function(i,t,e){function n(t,e){this.type="simple",this.responsiveClass="NextendSmartSliderResponsiveSimple",e=i.extend({bgAnimations:0,carousel:1},e),NextendSmartSliderAbstract.prototype.constructor.call(this,t,e)}n.prototype=Object.create(NextendSmartSliderAbstract.prototype),n.prototype.constructor=n,n.prototype.initMainAnimation=function(){nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d&&this.parameters.bgAnimations?this.mainAnimation=new NextendSmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations):this.mainAnimation=new NextendSmartSliderMainAnimationSimple(this,this.parameters.mainanimation)},t.NextendSmartSliderSimple=n}(n2,window);
1
+ !function(i,t,e){function n(t,e){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,e=i.extend({delay:0,parallax:.45,type:"horizontal",shiftedBackgroundAnimation:"auto"},e),e.delay/=1e3,NextendSmartSliderMainAnimationAbstract.prototype.constructor.apply(this,arguments),this.setActiveSlide(this.slider.slides.eq(this.slider.currentSlideIndex)),this.animations=[],this.parameters.type){case"no":this.animations.push(this._mainAnimationNo);break;case"fade":this.animations.push(this._mainAnimationFade);break;case"crossfade":this.animations.push(this._mainAnimationCrossFade);break;case"vertical":1==this.parameters.parallax?this.animations.push(this._mainAnimationVertical):this.animations.push(this._mainAnimationVerticalParallax);break;case"vertical-reversed":1==this.parameters.parallax?this.animations.push(this._mainAnimationVerticalReversed):this.animations.push(this._mainAnimationVerticalReversedParallax);break;case"horizontal-reversed":1==this.parameters.parallax?this.animations.push(this._mainAnimationHorizontalReversed):this.animations.push(this._mainAnimationHorizontalReversedParallax);break;default:1==this.parameters.parallax?this.animations.push(this._mainAnimationHorizontal):this.animations.push(this._mainAnimationHorizontalParallax)}}n.prototype=Object.create(NextendSmartSliderMainAnimationAbstract.prototype),n.prototype.constructor=n,n.prototype.changeTo=function(i,t,e,n,a,s){this.postBackgroundAnimation&&this.postBackgroundAnimation.start(i,e),NextendSmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},n.prototype.setActiveSlide=function(i){for(var t=this.slider.slides.not(i),e=0;e<t.length;e++)this._hideSlide(t.eq(e))},n.prototype._hideSlide=function(i){var t={};t[nextend.rtl.left]="-100000px",NextendTween.set(i.get(0),t)},n.prototype._showSlide=function(i){var t={};t[nextend.rtl.left]=0,NextendTween.set(i.get(0),t)},NextendSmartSliderMainAnimationAbstract.prototype.cleanSlideIndex=function(i){this._hideSlide(this.slider.slides.eq(i))},n.prototype.revertTo=function(i,t){var e=this.slider.slides.eq(t).css("zIndex","");this._hideSlide(e),NextendSmartSliderMainAnimationAbstract.prototype.revertTo.apply(this,arguments)},n.prototype._getAnimation=function(){return i.proxy(this.animations[Math.floor(Math.random()*this.animations.length)],this)},n.prototype._initAnimation=function(i,t,e,n,a){var s=this._getAnimation();s(t,n,a,i,e)},n.prototype.onChangeToComplete=function(i,t,e){this._hideSlide(this.slider.slides.eq(i)),NextendSmartSliderMainAnimationAbstract.prototype.onChangeToComplete.apply(this,arguments)},n.prototype.onReverseChangeToComplete=function(i,t,e){this._hideSlide(this.slider.slides.eq(i)),NextendSmartSliderMainAnimationAbstract.prototype.onReverseChangeToComplete.apply(this,arguments)},n.prototype._mainAnimationNo=function(t,e){this._showSlide(e),this.slider.unsetActiveSlide(t),e.css("opacity",0),this.slider.setActiveSlide(e);var n=this.timeline.totalDuration(),a=this.getExtraDelay();this._currentBackgroundAnimation&&this.parameters.shiftedBackgroundAnimation&&this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup(),0==n&&(n=1e-5,a+=n),this.timeline.set(t,{opacity:0},a),this.timeline.set(e,{opacity:1},n),this.sliderElement.on("mainAnimationComplete.n2-simple-no",i.proxy(function(i,t,e,n){this.sliderElement.off("mainAnimationComplete.n2-simple-no"),this.slider.slides.eq(e).css("opacity",""),this.slider.slides.eq(n).css("opacity","")},this))},n.prototype._mainAnimationFade=function(t,e){t.css("zIndex",5),this._showSlide(e),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(e);var n=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var a=!1,s=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.data("slide").$layers.length>0?a=!0:s=!0:a=!0,this._currentBackgroundAnimation&&a?(this.timeline.shiftChildren(n.outDuration-n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):s&&(this.timeline.shiftChildren(n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}this.timeline.to(t.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),e.css("opacity",1),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",i.proxy(function(i,t,e,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade"),this.slider.slides.eq(e).css("zIndex","").css("opacity",""),this.slider.slides.eq(n).css("opacity","")},this))},n.prototype._mainAnimationCrossFade=function(t,e){t.css("zIndex",5),e.css("opacity",0),this._showSlide(e),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(e);var n=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var a=!1,s=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.data("slide").$layers.length>0?a=!0:s=!0:a=!0,this._currentBackgroundAnimation&&a?(this.timeline.shiftChildren(n.outDuration-n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):s&&(this.timeline.shiftChildren(n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}this.timeline.to(t.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),this.timeline.to(e.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",i.proxy(function(i,t,e,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade"),this.slider.slides.eq(e).css("zIndex","").css("opacity",""),this.slider.slides.eq(n).css("opacity","")},this))},n.prototype._mainAnimationHorizontal=function(i,t,e,n,a){this.__mainAnimationDirection(i,t,"horizontal",1,e,n,a)},n.prototype._mainAnimationVertical=function(i,t,e,n,a){this._showSlide(t),this.__mainAnimationDirection(i,t,"vertical",1,e,n,a)},n.prototype._mainAnimationHorizontalParallax=function(i,t,e){this.__mainAnimationDirection(i,t,"horizontal",this.parameters.parallax,e)},n.prototype._mainAnimationVerticalParallax=function(i,t,e){this._showSlide(t),this.__mainAnimationDirection(i,t,"vertical",this.parameters.parallax,e)},n.prototype._mainAnimationHorizontalReversed=function(i,t,e,n,a){this.__mainAnimationDirection(i,t,"horizontal",1,!e,n,a)},n.prototype._mainAnimationVerticalReversed=function(i,t,e,n,a){this._showSlide(t),this.__mainAnimationDirection(i,t,"vertical",1,!e,n,a)},n.prototype._mainAnimationHorizontalReversedParallax=function(i,t,e){this.__mainAnimationDirection(i,t,"horizontal",this.parameters.parallax,!e)},n.prototype._mainAnimationVerticalReversedParallax=function(i,t,e){this._showSlide(t),this.__mainAnimationDirection(i,t,"vertical",this.parameters.parallax,!e)},n.prototype.__mainAnimationDirection=function(t,e,n,a,s,o,r){var d="",l=0,h="",m=0;"horizontal"==n?(d=nextend.rtl.left,h="width",m=l=this.slider.dimensions.slideouter.width):"vertical"==n&&(d="top",h="height",m=l=this.slider.dimensions.slideouter.height),s&&(l*=-1);var p={ease:this.getEase()},c={ease:this.getEase()},u={};1!=a?s?(t.css("zIndex",6),p[h]=-l,l*=a,u[d]=l,u[h]=-l):(t.css("zIndex",6),l*=a,e.css(d,l),u[d]=l):(e.css(d,l),u[d]=l),e.css("zIndex",5),(s||1==a)&&t.css("zIndex",4),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(e);var g=this.adjustMainAnimation();if(p[d]=0,this.timeline.fromTo(e.get(0),g.inDuration,u,p,g.inDelay),c[d]=-l,s||1==a||(c[h]=l),0!=this.parameters.shiftedBackgroundAnimation){var A=!1,y=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.data("slide").$layers.length>0?A=!0:y=!0:A=!0,this._currentBackgroundAnimation&&A?(this.timeline.shiftChildren(g.outDuration-g.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):y&&(this.timeline.shiftChildren(g.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}if(this.timeline.to(t.get(0),g.outDuration,c,g.outDelay),this.isTouch&&this.isReverseAllowed&&1==a){var f=s?o+1:o-1;if(0>f?f=this.slider.parameters.carousel?this.slider.slides.length-1:o:f>=this.slider.slides.length&&(f=this.slider.parameters.carousel?0:o),this.reverseSlideIndex=f,f!=r&&f!=o){this.enableReverseMode();var v=this.slider.slides.eq(f);"vertical"==n&&this._showSlide(v),v.css(d,l);var S={},_={ease:this.getEase()},x={},k={ease:this.getEase()};_[d]=0,S[d]=-l,k[d]=l,x[d]=0,v.trigger("mainAnimationStartIn",[this,o,f,!1]),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onChangeToComplete,[o,f,!1],this),this.reverseTimeline.fromTo(v.get(0),g.inDuration,S,_,g.inDelay),this.reverseTimeline.fromTo(t.get(0),g.inDuration,x,k,g.inDelay)}}this.sliderElement.on("mainAnimationComplete.n2-simple-fade",i.proxy(function(i,t,e,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade"),this.slider.slides.eq(n).css("zIndex","").css(d,""),this.slider.slides.eq(e).css("zIndex","").css(h,m)},this))},n.prototype.getExtraDelay=function(){return 0},n.prototype.adjustMainAnimation=function(){var i=this.parameters.duration,t=this.parameters.delay,e=this.timeline.totalDuration(),n=this.getExtraDelay();if(e>0){var a=i+t;if(!(a>e))return{inDuration:i,outDuration:i,inDelay:e-i,outDelay:n,extraDelay:n};i=i*e/a,t=t*e/a,n>t&&(i-=n-t,t=n)}else t+=n;return{inDuration:i,outDuration:i,inDelay:t,outDelay:t,extraDelay:n}},n.prototype.hasBackgroundAnimation=function(){return!1},t.NextendSmartSliderMainAnimationSimple=n}(n2,window),function(i,t,e){function n(t,e,n){this._currentBackgroundAnimation=!1,NextendSmartSliderMainAnimationSimple.prototype.constructor.call(this,t,e),this.isReverseAllowed=!1,this.bgAnimationElement=this.sliderElement.find(".n2-ss-background-animation"),this.backgroundAnimations=i.extend({global:0,speed:"normal",slides:[]},n),this.backgroundImages=t.backgroundImages.getBackgroundImages()}n.prototype=Object.create(NextendSmartSliderMainAnimationSimple.prototype),n.prototype.constructor=n,n.prototype.getBackgroundAnimation=function(i){var t=this.backgroundAnimations.global,e=this.backgroundAnimations.speed;if("undefined"!=typeof this.backgroundAnimations.slides[i]&&this.backgroundAnimations.slides[i]){var n=this.backgroundAnimations.slides[i];t=n.animation,e=n.speed}return t?[t[Math.floor(Math.random()*t.length)],e]:!1},n.prototype._initAnimation=function(t,e,n,a,s){this._currentBackgroundAnimation=!1;var o=this.backgroundImages[t],r=this.backgroundImages[n];if(o&&r){var d=this.getBackgroundAnimation(n);if(d!==!1){var l=1;switch(d[1]){case"superSlow":l=3;break;case"slow":l=1.5;break;case"fast":l=.75;break;case"superFast":l=.5}return this._currentBackgroundAnimation=new window["NextendSmartSliderBackgroundAnimation"+d[0].type](this,o.element,r.element,d[0],l,s),NextendSmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments),this._currentBackgroundAnimation.postSetup(),void this.timeline.set(i("<div />"),{opacity:1,onComplete:i.proxy(function(){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1)},this)})}}NextendSmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments)},n.prototype.onChangeToComplete=function(i,t){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1),NextendSmartSliderMainAnimationSimple.prototype.onChangeToComplete.apply(this,arguments)},n.prototype.onReverseChangeToComplete=function(i,t,e){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.revertEnded(),this._currentBackgroundAnimation=!1),NextendSmartSliderMainAnimationSimple.prototype.onReverseChangeToComplete.apply(this,arguments)},n.prototype.getExtraDelay=function(){return this._currentBackgroundAnimation?this._currentBackgroundAnimation.getExtraDelay():0},n.prototype.hasBackgroundAnimation=function(){return this._currentBackgroundAnimation},t.NextendSmartSliderFrontendBackgroundAnimation=n}(n2,window),function(i,t,e){function n(){this.round=1,NextendSmartSliderResponsive.prototype.constructor.apply(this,arguments)}n.prototype=Object.create(NextendSmartSliderResponsive.prototype),n.prototype.constructor=n,n.prototype.addResponsiveElements=function(){this.helperElements={},this._sliderHorizontal=this.addResponsiveElement(this.sliderElement,["width","marginLeft","marginRight"],"w","slider"),this.addResponsiveElement(this.sliderElement.find(".n2-ss-slider-1"),["width","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],"w"),this._sliderVertical=this.addResponsiveElement(this.sliderElement,["height","marginTop","marginBottom"],"h","slider"),this.addResponsiveElement(this.sliderElement,["fontSize"],"fontRatio","slider"),this.addResponsiveElement(this.sliderElement.find(".n2-ss-slider-1"),["height","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"],"h"),this.helperElements.canvas=this.addResponsiveElement(this.sliderElement.find(".n2-ss-slide"),["width"],"w","slideouter"),this.addResponsiveElement(this.sliderElement.find(".n2-ss-slide"),["height"],"h","slideouter");var t=this.sliderElement.find(".n2-ss-layers-container");this.addResponsiveElement(t,["width"],"slideW","slide"),this.addResponsiveElement(t,["height"],"slideH","slide").setCentered();for(var e=this.slider.parameters.mainanimation.parallax,n=this.slider.backgroundImages.getBackgroundImages(),a=0;a<n.length;a++)1!=e&&(this.addResponsiveElement(n[a].element,["width"],"w"),this.addResponsiveElement(n[a].element,["height"],"h")),this.addResponsiveElementBackgroundImageAsSingle(n[a].image,n[a],[]);var s=this.sliderElement.find(".n2-ss-slider-background-video");s.length&&(s[0].videoWidth>0?this.videoPlayerReady(s):(s[0].addEventListener("error",i.proxy(this.videoPlayerError,this,s),!0),s[0].addEventListener("canplay",i.proxy(this.videoPlayerReady,this,s))))},n.prototype.getCanvas=function(){return this.helperElements.canvas},n.prototype.videoPlayerError=function(i){i.remove()},n.prototype.videoPlayerReady=function(t){t.data("ratio",t[0].videoWidth/t[0].videoHeight),t.addClass("n2-active"),this.slider.ready(i.proxy(function(){this.slider.sliderElement.on("SliderResize",i.proxy(this.resizeVideo,this,t)),this.resizeVideo(t)},this))},n.prototype.resizeVideo=function(i){var t=i.data("mode"),e=i.data("ratio"),n=this.slider.dimensions.slideouter||this.slider.dimensions.slide,a=n.width/n.height;"fill"==t?a>e?i.css({width:"100%",height:"auto"}):i.css({width:"auto",height:"100%"}):"fit"==t&&(e>a?i.css({width:"100%",height:"auto"}):i.css({width:"auto",height:"100%"}))},t.NextendSmartSliderResponsiveSimple=n}(n2,window),function(i,t,e){function n(t,e){this.type="simple",this.responsiveClass="NextendSmartSliderResponsiveSimple",e=i.extend({bgAnimations:0,carousel:1},e),NextendSmartSliderAbstract.prototype.constructor.call(this,t,e)}n.prototype=Object.create(NextendSmartSliderAbstract.prototype),n.prototype.constructor=n,n.prototype.initMainAnimation=function(){nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d&&this.parameters.bgAnimations?this.mainAnimation=new NextendSmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations):this.mainAnimation=new NextendSmartSliderMainAnimationSimple(this,this.parameters.mainanimation)},t.NextendSmartSliderSimple=n}(n2,window);
library/media/plugins/widgetarrow/image/image/arrow.js CHANGED
@@ -27,7 +27,6 @@
27
  this.previousResize = this.previous;
28
  }
29
 
30
-
31
  this.next = $('#' + id + '-arrow-next').on('click', $.proxy(function (e) {
32
  e.stopPropagation();
33
  this.slider[nextend.rtl.next]();
@@ -51,6 +50,10 @@
51
 
52
  this.nextWidth = this.nextResize.width();
53
  this.nextHeight = this.nextResize.height();
 
 
 
 
54
  this.onDevice(null, {device: this.slider.responsive.getDeviceMode()});
55
 
56
  this.deferred.resolve();
27
  this.previousResize = this.previous;
28
  }
29
 
 
30
  this.next = $('#' + id + '-arrow-next').on('click', $.proxy(function (e) {
31
  e.stopPropagation();
32
  this.slider[nextend.rtl.next]();
50
 
51
  this.nextWidth = this.nextResize.width();
52
  this.nextHeight = this.nextResize.height();
53
+
54
+ this.previousResize.find('img').css('width', '100%')
55
+ this.nextResize.find('img').css('width', '100%')
56
+
57
  this.onDevice(null, {device: this.slider.responsive.getDeviceMode()});
58
 
59
  this.deferred.resolve();
library/media/plugins/widgetarrow/image/image/arrow.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,i,t){function s(i,t,s,h){this.slider=window[i],this.slider.started(e.proxy(this.start,this,i,t,s,h))}s.prototype.start=function(i,t,s,h){return this.slider.sliderElement.data("arrow")?!1:(this.slider.sliderElement.data("arrow",this),this.deferred=e.Deferred(),this.slider.sliderElement.on("SliderDevice",e.proxy(this.onDevice,this)).trigger("addWidget",this.deferred),this.previous=e("#"+i+"-arrow-previous").on("click",e.proxy(function(e){e.stopPropagation(),this.slider[nextend.rtl.previous]()},this)),this.previousResize=this.previous.find(".n2-resize"),0==this.previousResize.length&&(this.previousResize=this.previous),this.next=e("#"+i+"-arrow-next").on("click",e.proxy(function(e){e.stopPropagation(),this.slider[nextend.rtl.next]()},this)),this.nextResize=this.next.find(".n2-resize"),0==this.nextResize.length&&(this.nextResize=this.next),this.desktopRatio=t,this.tabletRatio=s,this.mobileRatio=h,void e.when(this.previous.n2imagesLoaded(),this.next.n2imagesLoaded()).always(e.proxy(this.loaded,this)))},s.prototype.loaded=function(){this.previousWidth=this.previousResize.width(),this.previousHeight=this.previousResize.height(),this.nextWidth=this.nextResize.width(),this.nextHeight=this.nextResize.height(),this.onDevice(null,{device:this.slider.responsive.getDeviceMode()}),this.deferred.resolve()},s.prototype.onDevice=function(e,i){var t=1;switch(i.device){case"tablet":t=this.tabletRatio;break;case"mobile":t=this.mobileRatio;break;default:t=this.desktopRatio}this.previousResize.width(this.previousWidth*t),this.previousResize.height(this.previousHeight*t),this.nextResize.width(this.nextWidth*t),this.nextResize.height(this.nextHeight*t)},i.NextendSmartSliderWidgetArrowImage=s}(n2,window);
1
+ !function(i,e,t){function s(e,t,s,h){this.slider=window[e],this.slider.started(i.proxy(this.start,this,e,t,s,h))}s.prototype.start=function(e,t,s,h){return this.slider.sliderElement.data("arrow")?!1:(this.slider.sliderElement.data("arrow",this),this.deferred=i.Deferred(),this.slider.sliderElement.on("SliderDevice",i.proxy(this.onDevice,this)).trigger("addWidget",this.deferred),this.previous=i("#"+e+"-arrow-previous").on("click",i.proxy(function(i){i.stopPropagation(),this.slider[nextend.rtl.previous]()},this)),this.previousResize=this.previous.find(".n2-resize"),0==this.previousResize.length&&(this.previousResize=this.previous),this.next=i("#"+e+"-arrow-next").on("click",i.proxy(function(i){i.stopPropagation(),this.slider[nextend.rtl.next]()},this)),this.nextResize=this.next.find(".n2-resize"),0==this.nextResize.length&&(this.nextResize=this.next),this.desktopRatio=t,this.tabletRatio=s,this.mobileRatio=h,void i.when(this.previous.n2imagesLoaded(),this.next.n2imagesLoaded()).always(i.proxy(this.loaded,this)))},s.prototype.loaded=function(){this.previousWidth=this.previousResize.width(),this.previousHeight=this.previousResize.height(),this.nextWidth=this.nextResize.width(),this.nextHeight=this.nextResize.height(),this.previousResize.find("img").css("width","100%"),this.nextResize.find("img").css("width","100%"),this.onDevice(null,{device:this.slider.responsive.getDeviceMode()}),this.deferred.resolve()},s.prototype.onDevice=function(i,e){var t=1;switch(e.device){case"tablet":t=this.tabletRatio;break;case"mobile":t=this.mobileRatio;break;default:t=this.desktopRatio}this.previousResize.width(this.previousWidth*t),this.previousResize.height(this.previousHeight*t),this.nextResize.width(this.nextWidth*t),this.nextResize.height(this.nextHeight*t)},e.NextendSmartSliderWidgetArrowImage=s}(n2,window);
library/media/plugins/widgetthumbnail/default/default/style.n2less CHANGED
@@ -79,35 +79,89 @@
79
  -moz-box-sizing: border-box !important;
80
  box-sizing: border-box !important;
81
  white-space: nowrap;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  }
83
 
84
  html[dir="rtl"] & .nextend-thumbnail-default .nextend-thumbnail-scroller {
85
  position: relative;
86
  float: right;
87
- }
88
 
89
- .nextend-thumbnail-default .nextend-thumbnail-scroller td > div {
90
- overflow: hidden;
91
  position: relative;
92
- float: left;
93
  -webkit-box-sizing: border-box !important;
94
  -moz-box-sizing: border-box !important;
95
  box-sizing: border-box !important;
96
  cursor: pointer;
97
  }
98
 
99
- .nextend-thumbnail-default .nextend-thumbnail-scroller td > div.n2-active {
100
  cursor: default;
101
  }
102
 
103
- .nextend-thumbnail-default table,
104
- .nextend-thumbnail-default td {
105
- width: auto;
106
- margin: 0;
107
- padding: 0;
108
- border: 0;
109
- }
110
-
111
  .nextend-thumbnail-default .n2-ss-caption {
112
  display: inline-block;
113
  white-space: normal;
79
  -moz-box-sizing: border-box !important;
80
  box-sizing: border-box !important;
81
  white-space: nowrap;
82
+ display: flex;
83
+ flex-wrap: wrap;
84
+ flex-direction: column;
85
+ }
86
+
87
+ .nextend-thumbnail-horizontal .nextend-thumbnail-scroller {
88
+ flex-direction: column;
89
+ }
90
+
91
+ .nextend-thumbnail-horizontal .nextend-thumbnail-scroller.nextend-thumbnail-invert-group-dir {
92
+ flex-direction: row;
93
+ }
94
+
95
+ .nextend-thumbnail-vertical .nextend-thumbnail-scroller {
96
+ flex-direction: row;
97
+ }
98
+
99
+ .nextend-thumbnail-vertical .nextend-thumbnail-scroller.nextend-thumbnail-invert-group-dir {
100
+ flex-direction: column;
101
+ }
102
+
103
+ .nextend-thumbnail-scroller.n2-align-content-start {
104
+ align-content: flex-start;
105
+ }
106
+
107
+ .nextend-thumbnail-scroller.n2-align-content-center {
108
+ align-content: center;
109
+ }
110
+
111
+ .nextend-thumbnail-scroller.n2-align-content-end {
112
+ align-content: flex-end;
113
+ }
114
+
115
+ .nextend-thumbnail-scroller.n2-align-content-space-around {
116
+ align-content: space-around;
117
+ }
118
+
119
+ .nextend-thumbnail-scroller.n2-align-content-space-between {
120
+ align-content: space-between;
121
+ }
122
+
123
+ .nextend-thumbnail-scroller.nextend-thumbnail-invert-group-dir{
124
+ align-content: inherit;
125
+ }
126
+
127
+ .nextend-thumbnail-scroller.nextend-thumbnail-invert-group-dir.n2-align-content-start {
128
+ justify-content: flex-start;
129
+ }
130
+
131
+ .nextend-thumbnail-scroller.nextend-thumbnail-invert-group-dir.n2-align-content-center {
132
+ justify-content: center;
133
+ }
134
+
135
+ .nextend-thumbnail-scroller.nextend-thumbnail-invert-group-dir.n2-align-content-end {
136
+ justify-content: flex-end;
137
+ }
138
+
139
+ .nextend-thumbnail-scroller.nextend-thumbnail-invert-group-dir.n2-align-content-space-around {
140
+ justify-content: space-around;
141
+ }
142
+
143
+ .nextend-thumbnail-scroller.nextend-thumbnail-invert-group-dir.n2-align-content-space-between {
144
+ justify-content: space-between;
145
  }
146
 
147
  html[dir="rtl"] & .nextend-thumbnail-default .nextend-thumbnail-scroller {
148
  position: relative;
149
  float: right;
150
+ }
151
 
152
+ .nextend-thumbnail-default .nextend-thumbnail-scroller > div {
 
153
  position: relative;
154
+ flex: 0 0 auto;
155
  -webkit-box-sizing: border-box !important;
156
  -moz-box-sizing: border-box !important;
157
  box-sizing: border-box !important;
158
  cursor: pointer;
159
  }
160
 
161
+ .nextend-thumbnail-default .nextend-thumbnail-scroller > div.n2-active {
162
  cursor: default;
163
  }
164
 
 
 
 
 
 
 
 
 
165
  .nextend-thumbnail-default .n2-ss-caption {
166
  display: inline-block;
167
  white-space: normal;
library/media/plugins/widgetthumbnail/default/default/thumbnail.js CHANGED
@@ -15,7 +15,7 @@
15
  }
16
  this.slider.sliderElement.data('thumbnail', this);
17
 
18
- this.parameters = $.extend({captionSize: 0, minimumThumbnailCount: 1.5}, parameters);
19
 
20
  this.ratio = 1;
21
  this.hidden = false;
@@ -52,7 +52,7 @@
52
  if (parameters.action == 'mouseenter') {
53
  event = 'mouseenter';
54
  }
55
- this.dots = this.scroller.find('td > div').on(event, $.proxy(this.onDotClick, this));
56
  this.images = this.dots.find('.n2-ss-thumb-image');
57
 
58
  if (!nextend.rtl.isRtl) {
@@ -63,32 +63,11 @@
63
  this.next = this.outerBar.find('.nextend-thumbnail-previous').on('click', $.proxy(this.nextPane, this));
64
  }
65
 
66
- if (this.orientation == 'horizontal' && this.group > 1) {
67
- var dots = [],
68
- group = this.group;
69
- this.scroller.find('tr').each(function (i, tr) {
70
- $(tr).find('td > div').each(function (j, div) {
71
- dots[i + j * group] = div;
72
- });
73
- });
74
- this.dots = $(dots);
75
- }
76
-
77
  if (typeof this.slider.shuffled !== 'undefined') {
78
- var _temp = [],
79
- parents = {};
80
  for (var i = 0; i < this.slider.shuffled.length; i++) {
81
- var $dot = this.dots.eq(this.slider.shuffled[i]),
82
- dot = $dot.get(0);
83
- _temp.push(dot);
84
- parents[this.slider.shuffled[i]] = $dot.parent();
85
- if (typeof parents[i] !== 'undefined') {
86
- $dot.appendTo(parents[i]);
87
- } else {
88
- $dot.appendTo(this.dots.eq(i).parent());
89
- }
90
  }
91
- this.dots = $(_temp);
92
  }
93
 
94
 
@@ -175,6 +154,13 @@
175
  this.scroller[prop](size);
176
  }
177
 
 
 
 
 
 
 
 
178
  };
179
 
180
  NextendSmartSliderWidgetThumbnailDefault.prototype.onDotClick = function (e) {
@@ -190,11 +176,11 @@
190
  };
191
 
192
  NextendSmartSliderWidgetThumbnailDefault.prototype.previousPane = function () {
193
- this.goToDot(this.currentI - this.itemPerPane);
194
  };
195
 
196
  NextendSmartSliderWidgetThumbnailDefault.prototype.nextPane = function () {
197
- this.goToDot(this.currentI + this.itemPerPane);
198
  };
199
 
200
  NextendSmartSliderWidgetThumbnailDefault.prototype.goToDot = function (i) {
@@ -215,26 +201,31 @@
215
  if (this.ratio != ratio) {
216
  var css = {};
217
  css[variables.prop] = parseInt(this.thumbnailDimension[variables.prop] * ratio - this.thumbnailDimension[variables.prop + 'Margin']);
218
- var scrollerDimension = css[variables.invProp] = parseInt((this.thumbnailDimension[variables.invProp] - this.parameters['captionSize']) * ratio + this.parameters['captionSize']);
219
  this.dots.css(css);
220
  css = {};
221
- css[variables.prop] = parseInt(this.imageDimension[variables.prop] * ratio - this.thumbnailDimension[variables.prop + 'Margin']);
222
  css[variables.invProp] = parseInt(this.imageDimension[variables.invProp] * ratio);
223
  this.images.css(css);
224
 
225
- this.scroller.css(variables.invProp, 'auto');
226
  this.bar.css(variables.invProp, 'auto');
227
  this.ratio = ratio;
228
  this.slider.responsive.doNormalizedResize();
229
-
230
  this.adjustScrollerSize();
231
  }
232
 
233
  itemPerPane = Math.floor(itemPerPane);
234
  i = Math.max(0, Math.min(this.dots.length - 1, i));
235
- var currentPane = Math.floor(i / this.group / itemPerPane),
236
  to = {};
237
 
 
 
 
 
 
 
 
238
  var min = -(this.scroller['outer' + variables.Prop]() - barDimension);
239
 
240
  if (currentPane == Math.floor((this.dots.length - 1) / this.group / itemPerPane)) {
@@ -307,9 +298,16 @@
307
  if (!this.hidden) {
308
  itemPerPane = Math.floor(itemPerPane);
309
  i = Math.max(0, Math.min(this.dots.length - 1, i));
310
- var currentPane = Math.floor(i / this.group / itemPerPane),
 
311
  to = {};
312
 
 
 
 
 
 
 
313
  var min = -(this.scroller['outer' + variables.Prop]() - barDimension);
314
 
315
  if (currentPane == Math.floor((this.dots.length - 1) / this.group / itemPerPane)) {
15
  }
16
  this.slider.sliderElement.data('thumbnail', this);
17
 
18
+ this.parameters = $.extend({captionSize: 0, minimumThumbnailCount: 1.5, invertGroupDirection: 0}, parameters);
19
 
20
  this.ratio = 1;
21
  this.hidden = false;
52
  if (parameters.action == 'mouseenter') {
53
  event = 'mouseenter';
54
  }
55
+ this.dots = this.scroller.find('> div').on(event, $.proxy(this.onDotClick, this));
56
  this.images = this.dots.find('.n2-ss-thumb-image');
57
 
58
  if (!nextend.rtl.isRtl) {
63
  this.next = this.outerBar.find('.nextend-thumbnail-previous').on('click', $.proxy(this.nextPane, this));
64
  }
65
 
 
 
 
 
 
 
 
 
 
 
 
66
  if (typeof this.slider.shuffled !== 'undefined') {
 
 
67
  for (var i = 0; i < this.slider.shuffled.length; i++) {
68
+ this.dots.eq(this.slider.shuffled[i]).appendTo(this.scroller);
 
 
 
 
 
 
 
 
69
  }
70
+ this.dots = this.scroller.find('> div')
71
  }
72
 
73
 
154
  this.scroller[prop](size);
155
  }
156
 
157
+
158
+ if (this.orientation == 'horizontal') {
159
+ this.scroller.height(this.dots.outerHeight(true) * this.group);
160
+ } else {
161
+ this.scroller.width(this.dots.outerWidth(true) * this.group);
162
+ }
163
+
164
  };
165
 
166
  NextendSmartSliderWidgetThumbnailDefault.prototype.onDotClick = function (e) {
176
  };
177
 
178
  NextendSmartSliderWidgetThumbnailDefault.prototype.previousPane = function () {
179
+ this.goToDot(this.currentI - this.itemPerPane * this.group);
180
  };
181
 
182
  NextendSmartSliderWidgetThumbnailDefault.prototype.nextPane = function () {
183
+ this.goToDot(this.currentI + this.itemPerPane * this.group);
184
  };
185
 
186
  NextendSmartSliderWidgetThumbnailDefault.prototype.goToDot = function (i) {
201
  if (this.ratio != ratio) {
202
  var css = {};
203
  css[variables.prop] = parseInt(this.thumbnailDimension[variables.prop] * ratio - this.thumbnailDimension[variables.prop + 'Margin']);
204
+ var scrollerDimension = css[variables.invProp] = parseInt((this.thumbnailDimension[variables.invProp] - this.parameters['captionSize'] - this.thumbnailDimension[variables.prop + 'Margin']) * ratio + this.parameters['captionSize']);
205
  this.dots.css(css);
206
  css = {};
207
+ css[variables.prop] = parseInt(this.imageDimension[variables.prop] * ratio);
208
  css[variables.invProp] = parseInt(this.imageDimension[variables.invProp] * ratio);
209
  this.images.css(css);
210
 
 
211
  this.bar.css(variables.invProp, 'auto');
212
  this.ratio = ratio;
213
  this.slider.responsive.doNormalizedResize();
 
214
  this.adjustScrollerSize();
215
  }
216
 
217
  itemPerPane = Math.floor(itemPerPane);
218
  i = Math.max(0, Math.min(this.dots.length - 1, i));
219
+ var currentPane,
220
  to = {};
221
 
222
+ if (this.parameters.invertGroupDirection) {
223
+ currentPane = Math.floor((i % Math.ceil(this.dots.length / this.group)) / itemPerPane);
224
+ } else {
225
+ currentPane = Math.floor(i / this.group / itemPerPane);
226
+ }
227
+
228
+
229
  var min = -(this.scroller['outer' + variables.Prop]() - barDimension);
230
 
231
  if (currentPane == Math.floor((this.dots.length - 1) / this.group / itemPerPane)) {
298
  if (!this.hidden) {
299
  itemPerPane = Math.floor(itemPerPane);
300
  i = Math.max(0, Math.min(this.dots.length - 1, i));
301
+
302
+ var currentPane,
303
  to = {};
304
 
305
+ if (this.parameters.invertGroupDirection) {
306
+ currentPane = Math.floor((i % Math.ceil(this.dots.length / this.group)) / itemPerPane);
307
+ } else {
308
+ currentPane = Math.floor(i / this.group / itemPerPane);
309
+ }
310
+
311
  var min = -(this.scroller['outer' + variables.Prop]() - barDimension);
312
 
313
  if (currentPane == Math.floor((this.dots.length - 1) / this.group / itemPerPane)) {
library/media/plugins/widgetthumbnail/default/default/thumbnail.min.js CHANGED
@@ -1 +1 @@
1
- !function(i,t,s){"use strict";function e(t,s){this.slider=window[t],this.slider.started(i.proxy(this.start,this,t,s))}e.prototype.start=function(t,s){if(this.slider.sliderElement.data("thumbnail"))return!1;this.slider.sliderElement.data("thumbnail",this),this.parameters=i.extend({captionSize:0,minimumThumbnailCount:1.5},s),this.ratio=1,this.hidden=!1,this.forceHidden=!1,this.forceHiddenCB=null,this.group=2,this.itemPerPane=1,this.currentI=0,this.offset=0,this.horizontal={prop:"width",Prop:"Width",sideProp:nextend.rtl.left,invProp:"height"},this.vertical={prop:"height",Prop:"Height",sideProp:"top",invProp:"width"},this.group=parseInt(s.group),this.orientation=s.orientation,"vertical"==this.orientation&&(this.goToDot=this._goToDot),this.outerBar=this.slider.sliderElement.find(".nextend-thumbnail-default"),this.bar=this.outerBar.find(".nextend-thumbnail-inner"),this.scroller=this.bar.find(".nextend-thumbnail-scroller");var e="universalclick";if("mouseenter"==s.action&&(e="mouseenter"),this.dots=this.scroller.find("td > div").on(e,i.proxy(this.onDotClick,this)),this.images=this.dots.find(".n2-ss-thumb-image"),nextend.rtl.isRtl?(this.previous=this.outerBar.find(".nextend-thumbnail-next").on("click",i.proxy(this.previousPane,this)),this.next=this.outerBar.find(".nextend-thumbnail-previous").on("click",i.proxy(this.nextPane,this))):(this.previous=this.outerBar.find(".nextend-thumbnail-previous").on("click",i.proxy(this.previousPane,this)),this.next=this.outerBar.find(".nextend-thumbnail-next").on("click",i.proxy(this.nextPane,this))),"horizontal"==this.orientation&&this.group>1){var o=[],n=this.group;this.scroller.find("tr").each(function(t,s){i(s).find("td > div").each(function(i,s){o[t+i*n]=s})}),this.dots=i(o)}if("undefined"!=typeof this.slider.shuffled){for(var h=[],r={},a=0;a<this.slider.shuffled.length;a++){var d=this.dots.eq(this.slider.shuffled[a]),l=d.get(0);h.push(l),r[this.slider.shuffled[a]]=d.parent(),"undefined"!=typeof r[a]?d.appendTo(r[a]):d.appendTo(this.dots.eq(a).parent())}this.dots=i(h)}if(this.scrollerDimension={width:this.scroller.width(),height:this.scroller.width()},this.thumbnailDimension={width:this.dots.outerWidth(!0),height:this.dots.outerHeight(!0)},this.thumbnailDimension.widthMargin=this.thumbnailDimension.width-this.dots.outerWidth(),this.thumbnailDimension.heightMargin=this.thumbnailDimension.height-this.dots.outerHeight(),this.imageDimension={width:this.images.outerWidth(!0),height:this.images.outerHeight(!0)},this.sideDimension=.25*this.thumbnailDimension[this[this.orientation].prop],"horizontal"==this.orientation?(this.scroller.height(this.thumbnailDimension.height*this.group),this.bar.height(this.scroller.outerHeight(!0))):(this.scroller.width(this.thumbnailDimension.width*this.group),this.bar.width(this.scroller.outerWidth(!0))),this.slider.sliderElement.on("BeforeVisible",i.proxy(this.onReady,this)).on("sliderSwitchTo",i.proxy(this.onSlideSwitch,this)),this.onSlideSwitch(null,this.slider.currentSlideIndex,this.slider.getRealIndex(this.slider.currentSlideIndex)),0==s.overlay){var p=!1;switch(s.area){case 1:p="Top";break;case 12:p="Bottom";break;case 5:p="Left";break;case 8:p="Right"}p&&(this.offset=parseFloat(this.outerBar.data("offset")),this.slider.responsive.addStaticMargin(p,this))}},e.prototype.onReady=function(){this.slider.sliderElement.on("SliderResize",i.proxy(this.onSliderResize,this)),this.onSliderResize()},e.prototype.onSliderResize=function(){null!==this.forceHiddenCB&&this.forceHiddenCB.call(this),this.adjustScrollerSize(),this.goToDot(this.dots.index(this.dots.filter(".n2-active")))},e.prototype.adjustScrollerSize=function(){var i=this[this.orientation].prop,t=Math.ceil(this.dots.length/this.group)*this.thumbnailDimension[i]*this.ratio,s=this.scroller["outer"+this[this.orientation].Prop]()-this.scroller[i](),e=this.slider.dimensions["thumbnail"+i];e>=t+s?this.scroller[i](e-s):this.scroller[i](t)},e.prototype.onDotClick=function(i){this.slider.directionalChangeToReal(this.dots.index(i.currentTarget))},e.prototype.onSlideSwitch=function(i,t,s){this.dots.filter(".n2-active").removeClass("n2-active"),this.dots.eq(s).addClass("n2-active"),this.goToDot(s)},e.prototype.previousPane=function(){this.goToDot(this.currentI-this.itemPerPane)},e.prototype.nextPane=function(){this.goToDot(this.currentI+this.itemPerPane)},e.prototype.goToDot=function(i){var t=this[this.orientation],s=1,e=this.slider.dimensions["thumbnail"+t.prop],o=this.sideDimension,n=e-2*o,h=n/this.thumbnailDimension[t.prop];if(h<=this.parameters.minimumThumbnailCount&&(o=.1*e,n=e-2*o,s=n/(this.parameters.minimumThumbnailCount*this.thumbnailDimension[t.prop]),h=n/(this.thumbnailDimension[t.prop]*s)),this.ratio!=s){var r={};r[t.prop]=parseInt(this.thumbnailDimension[t.prop]*s-this.thumbnailDimension[t.prop+"Margin"]);r[t.invProp]=parseInt((this.thumbnailDimension[t.invProp]-this.parameters.captionSize)*s+this.parameters.captionSize);this.dots.css(r),r={},r[t.prop]=parseInt(this.imageDimension[t.prop]*s-this.thumbnailDimension[t.prop+"Margin"]),r[t.invProp]=parseInt(this.imageDimension[t.invProp]*s),this.images.css(r),this.scroller.css(t.invProp,"auto"),this.bar.css(t.invProp,"auto"),this.ratio=s,this.slider.responsive.doNormalizedResize(),this.adjustScrollerSize()}h=Math.floor(h),i=Math.max(0,Math.min(this.dots.length-1,i));var a=Math.floor(i/this.group/h),d={},l=-(this.scroller["outer"+t.Prop]()-e);a==Math.floor((this.dots.length-1)/this.group/h)?(d[t.sideProp]=-(a*h*this.thumbnailDimension[t.prop]*s),0==a?this.previous.removeClass("n2-active"):this.previous.addClass("n2-active"),this.next.removeClass("n2-active")):a>0?(d[t.sideProp]=-(a*h*this.thumbnailDimension[t.prop]*s-o),this.previous.addClass("n2-active"),this.next.addClass("n2-active")):(d[t.sideProp]=0,this.previous.removeClass("n2-active"),this.next.addClass("n2-active")),l>=d[t.sideProp]&&(d[t.sideProp]=l,this.next.removeClass("n2-active")),NextendTween.to(this.scroller,.5,d).play(),this.currentI=i,this.itemPerPane=h},e.prototype._goToDot=function(t){if(!this.forceHidden){var s=this[this.orientation],e=this.slider.dimensions["thumbnail"+s.prop],o=(e-2*this.sideDimension)/this.thumbnailDimension[s.prop];if(0!=e&&o<this.parameters.minimumThumbnailCount-.5?this.hidden||("horizontal"==this.orientation?this.outerBar.css("height",0):this.outerBar.css("width",0),this.hidden=!0,this.forceHidden=!0,setTimeout(i.proxy(function(){this.forceHiddenCB=function(){this.forceHiddenCB=null,this.forceHidden=!1}},this),300),this.slider.responsive.doNormalizedResize()):this.hidden&&o>=this.parameters.minimumThumbnailCount+.5&&(this.hidden=!1,"horizontal"==this.orientation?this.outerBar.css("height",""):this.outerBar.css("width",""),this.slider.responsive.doNormalizedResize()),!this.hidden){o=Math.floor(o),t=Math.max(0,Math.min(this.dots.length-1,t));var n=Math.floor(t/this.group/o),h={},r=-(this.scroller["outer"+s.Prop]()-e);n==Math.floor((this.dots.length-1)/this.group/o)?(h[s.sideProp]=-(n*o*this.thumbnailDimension[s.prop]),0==n?this.previous.removeClass("n2-active"):this.previous.addClass("n2-active"),this.next.removeClass("n2-active")):n>0?(h[s.sideProp]=-(n*o*this.thumbnailDimension[s.prop]-this.sideDimension),this.previous.addClass("n2-active"),this.next.addClass("n2-active")):(h[s.sideProp]=0,this.previous.removeClass("n2-active"),this.next.addClass("n2-active")),r>=h[s.sideProp]&&(h[s.sideProp]=r,this.next.removeClass("n2-active")),NextendTween.to(this.scroller,.5,h).play()}this.currentI=t,this.itemPerPane=o}},e.prototype.isVisible=function(){return this.outerBar.is(":visible")},e.prototype.getSize=function(){return"horizontal"==this.orientation?this.outerBar.height()+this.offset:this.outerBar.width()+this.offset},t.NextendSmartSliderWidgetThumbnailDefault=e}(n2,window);
1
+ !function(i,t,s){"use strict";function e(t,s){this.slider=window[t],this.slider.started(i.proxy(this.start,this,t,s))}e.prototype.start=function(t,s){if(this.slider.sliderElement.data("thumbnail"))return!1;this.slider.sliderElement.data("thumbnail",this),this.parameters=i.extend({captionSize:0,minimumThumbnailCount:1.5,invertGroupDirection:0},s),this.ratio=1,this.hidden=!1,this.forceHidden=!1,this.forceHiddenCB=null,this.group=2,this.itemPerPane=1,this.currentI=0,this.offset=0,this.horizontal={prop:"width",Prop:"Width",sideProp:nextend.rtl.left,invProp:"height"},this.vertical={prop:"height",Prop:"Height",sideProp:"top",invProp:"width"},this.group=parseInt(s.group),this.orientation=s.orientation,"vertical"==this.orientation&&(this.goToDot=this._goToDot),this.outerBar=this.slider.sliderElement.find(".nextend-thumbnail-default"),this.bar=this.outerBar.find(".nextend-thumbnail-inner"),this.scroller=this.bar.find(".nextend-thumbnail-scroller");var e="universalclick";if("mouseenter"==s.action&&(e="mouseenter"),this.dots=this.scroller.find("> div").on(e,i.proxy(this.onDotClick,this)),this.images=this.dots.find(".n2-ss-thumb-image"),nextend.rtl.isRtl?(this.previous=this.outerBar.find(".nextend-thumbnail-next").on("click",i.proxy(this.previousPane,this)),this.next=this.outerBar.find(".nextend-thumbnail-previous").on("click",i.proxy(this.nextPane,this))):(this.previous=this.outerBar.find(".nextend-thumbnail-previous").on("click",i.proxy(this.previousPane,this)),this.next=this.outerBar.find(".nextend-thumbnail-next").on("click",i.proxy(this.nextPane,this))),"undefined"!=typeof this.slider.shuffled){for(var o=0;o<this.slider.shuffled.length;o++)this.dots.eq(this.slider.shuffled[o]).appendTo(this.scroller);this.dots=this.scroller.find("> div")}if(this.scrollerDimension={width:this.scroller.width(),height:this.scroller.width()},this.thumbnailDimension={width:this.dots.outerWidth(!0),height:this.dots.outerHeight(!0)},this.thumbnailDimension.widthMargin=this.thumbnailDimension.width-this.dots.outerWidth(),this.thumbnailDimension.heightMargin=this.thumbnailDimension.height-this.dots.outerHeight(),this.imageDimension={width:this.images.outerWidth(!0),height:this.images.outerHeight(!0)},this.sideDimension=.25*this.thumbnailDimension[this[this.orientation].prop],"horizontal"==this.orientation?(this.scroller.height(this.thumbnailDimension.height*this.group),this.bar.height(this.scroller.outerHeight(!0))):(this.scroller.width(this.thumbnailDimension.width*this.group),this.bar.width(this.scroller.outerWidth(!0))),this.slider.sliderElement.on("BeforeVisible",i.proxy(this.onReady,this)).on("sliderSwitchTo",i.proxy(this.onSlideSwitch,this)),this.onSlideSwitch(null,this.slider.currentSlideIndex,this.slider.getRealIndex(this.slider.currentSlideIndex)),0==s.overlay){var h=!1;switch(s.area){case 1:h="Top";break;case 12:h="Bottom";break;case 5:h="Left";break;case 8:h="Right"}h&&(this.offset=parseFloat(this.outerBar.data("offset")),this.slider.responsive.addStaticMargin(h,this))}},e.prototype.onReady=function(){this.slider.sliderElement.on("SliderResize",i.proxy(this.onSliderResize,this)),this.onSliderResize()},e.prototype.onSliderResize=function(){null!==this.forceHiddenCB&&this.forceHiddenCB.call(this),this.adjustScrollerSize(),this.goToDot(this.dots.index(this.dots.filter(".n2-active")))},e.prototype.adjustScrollerSize=function(){var i=this[this.orientation].prop,t=Math.ceil(this.dots.length/this.group)*this.thumbnailDimension[i]*this.ratio,s=this.scroller["outer"+this[this.orientation].Prop]()-this.scroller[i](),e=this.slider.dimensions["thumbnail"+i];e>=t+s?this.scroller[i](e-s):this.scroller[i](t),"horizontal"==this.orientation?this.scroller.height(this.dots.outerHeight(!0)*this.group):this.scroller.width(this.dots.outerWidth(!0)*this.group)},e.prototype.onDotClick=function(i){this.slider.directionalChangeToReal(this.dots.index(i.currentTarget))},e.prototype.onSlideSwitch=function(i,t,s){this.dots.filter(".n2-active").removeClass("n2-active"),this.dots.eq(s).addClass("n2-active"),this.goToDot(s)},e.prototype.previousPane=function(){this.goToDot(this.currentI-this.itemPerPane*this.group)},e.prototype.nextPane=function(){this.goToDot(this.currentI+this.itemPerPane*this.group)},e.prototype.goToDot=function(i){var t=this[this.orientation],s=1,e=this.slider.dimensions["thumbnail"+t.prop],o=this.sideDimension,h=e-2*o,r=h/this.thumbnailDimension[t.prop];if(r<=this.parameters.minimumThumbnailCount&&(o=.1*e,h=e-2*o,s=h/(this.parameters.minimumThumbnailCount*this.thumbnailDimension[t.prop]),r=h/(this.thumbnailDimension[t.prop]*s)),this.ratio!=s){var n={};n[t.prop]=parseInt(this.thumbnailDimension[t.prop]*s-this.thumbnailDimension[t.prop+"Margin"]);n[t.invProp]=parseInt((this.thumbnailDimension[t.invProp]-this.parameters.captionSize-this.thumbnailDimension[t.prop+"Margin"])*s+this.parameters.captionSize);this.dots.css(n),n={},n[t.prop]=parseInt(this.imageDimension[t.prop]*s),n[t.invProp]=parseInt(this.imageDimension[t.invProp]*s),this.images.css(n),this.bar.css(t.invProp,"auto"),this.ratio=s,this.slider.responsive.doNormalizedResize(),this.adjustScrollerSize()}r=Math.floor(r),i=Math.max(0,Math.min(this.dots.length-1,i));var a,l={};a=this.parameters.invertGroupDirection?Math.floor(i%Math.ceil(this.dots.length/this.group)/r):Math.floor(i/this.group/r);var d=-(this.scroller["outer"+t.Prop]()-e);a==Math.floor((this.dots.length-1)/this.group/r)?(l[t.sideProp]=-(a*r*this.thumbnailDimension[t.prop]*s),0==a?this.previous.removeClass("n2-active"):this.previous.addClass("n2-active"),this.next.removeClass("n2-active")):a>0?(l[t.sideProp]=-(a*r*this.thumbnailDimension[t.prop]*s-o),this.previous.addClass("n2-active"),this.next.addClass("n2-active")):(l[t.sideProp]=0,this.previous.removeClass("n2-active"),this.next.addClass("n2-active")),d>=l[t.sideProp]&&(l[t.sideProp]=d,this.next.removeClass("n2-active")),NextendTween.to(this.scroller,.5,l).play(),this.currentI=i,this.itemPerPane=r},e.prototype._goToDot=function(t){if(!this.forceHidden){var s=this[this.orientation],e=this.slider.dimensions["thumbnail"+s.prop],o=(e-2*this.sideDimension)/this.thumbnailDimension[s.prop];if(0!=e&&o<this.parameters.minimumThumbnailCount-.5?this.hidden||("horizontal"==this.orientation?this.outerBar.css("height",0):this.outerBar.css("width",0),this.hidden=!0,this.forceHidden=!0,setTimeout(i.proxy(function(){this.forceHiddenCB=function(){this.forceHiddenCB=null,this.forceHidden=!1}},this),300),this.slider.responsive.doNormalizedResize()):this.hidden&&o>=this.parameters.minimumThumbnailCount+.5&&(this.hidden=!1,"horizontal"==this.orientation?this.outerBar.css("height",""):this.outerBar.css("width",""),this.slider.responsive.doNormalizedResize()),!this.hidden){o=Math.floor(o),t=Math.max(0,Math.min(this.dots.length-1,t));var h,r={};h=this.parameters.invertGroupDirection?Math.floor(t%Math.ceil(this.dots.length/this.group)/o):Math.floor(t/this.group/o);var n=-(this.scroller["outer"+s.Prop]()-e);h==Math.floor((this.dots.length-1)/this.group/o)?(r[s.sideProp]=-(h*o*this.thumbnailDimension[s.prop]),0==h?this.previous.removeClass("n2-active"):this.previous.addClass("n2-active"),this.next.removeClass("n2-active")):h>0?(r[s.sideProp]=-(h*o*this.thumbnailDimension[s.prop]-this.sideDimension),this.previous.addClass("n2-active"),this.next.addClass("n2-active")):(r[s.sideProp]=0,this.previous.removeClass("n2-active"),this.next.addClass("n2-active")),n>=r[s.sideProp]&&(r[s.sideProp]=n,this.next.removeClass("n2-active")),NextendTween.to(this.scroller,.5,r).play()}this.currentI=t,this.itemPerPane=o}},e.prototype.isVisible=function(){return this.outerBar.is(":visible")},e.prototype.getSize=function(){return"horizontal"==this.orientation?this.outerBar.height()+this.offset:this.outerBar.width()+this.offset},t.NextendSmartSliderWidgetThumbnailDefault=e}(n2,window);
library/smartslider/backend/N2SmartsliderApplicationTypeBackend.php CHANGED
@@ -11,7 +11,6 @@ class N2SmartsliderApplicationTypeBackend extends N2ApplicationType {
11
  'libraries.plugin.plugin',
12
  'libraries.form.form',
13
  'libraries.image.color',
14
- 'libraries.mobiledetect.Mobile_Detect',
15
  'libraries.parse.parse'
16
  ));
17
 
11
  'libraries.plugin.plugin',
12
  'libraries.form.form',
13
  'libraries.image.color',
 
14
  'libraries.parse.parse'
15
  ));
16
 
library/smartslider/backend/controllers/Generator.php CHANGED
@@ -63,6 +63,9 @@ class N2SmartsliderBackendGeneratorController extends N2SmartSliderController {
63
  $generatorModel = new N2SmartsliderGeneratorModel();
64
  $generator = $generatorModel->get($generatorId);
65
  if ($this->validateDatabase($generator)) {
 
 
 
66
 
67
  $slidesModel = new N2SmartsliderSlidesModel();
68
  $slides = $slidesModel->getAll(-1, 'OR generator_id = ' . $generator['id'] . '');
63
  $generatorModel = new N2SmartsliderGeneratorModel();
64
  $generator = $generatorModel->get($generatorId);
65
  if ($this->validateDatabase($generator)) {
66
+
67
+ N2Request::set('group', $generator['group']);
68
+ N2Request::set('type', $generator['type']);
69
 
70
  $slidesModel = new N2SmartsliderSlidesModel();
71
  $slides = $slidesModel->getAll(-1, 'OR generator_id = ' . $generator['id'] . '');
library/smartslider/backend/controllers/Settings.php CHANGED
@@ -66,7 +66,7 @@ class N2SmartsliderBackendSettingsController extends N2SmartSliderController
66
  if ($this->validatePermission('smartslider_config')) {
67
  if ($this->validateToken()) {
68
  $slidersModel = new N2SmartsliderSlidersModel();
69
- foreach ($slidersModel->getAll() AS $slider) {
70
  $slidersModel->refreshCache($slider['id']);
71
  }
72
  N2Cache::clearGroup('n2-ss-0');
66
  if ($this->validatePermission('smartslider_config')) {
67
  if ($this->validateToken()) {
68
  $slidersModel = new N2SmartsliderSlidersModel();
69
+ foreach ($slidersModel->_getAll() AS $slider) {
70
  $slidersModel->refreshCache($slider['id']);
71
  }
72
  N2Cache::clearGroup('n2-ss-0');
library/smartslider/backend/controllers/ajax/Slides.php CHANGED
@@ -254,7 +254,9 @@ class N2SmartsliderBackendSlidesControllerAjax extends N2SmartSliderControllerAj
254
  $this->validateVariable($sliderId > 0, 'Slider');
255
 
256
  $slidesModel = new N2SmartsliderSlidesModel();
257
- $video = json_decode(base64_decode(N2Request::getVar('video')), true);
 
 
258
  $this->validateVariable($video, 'Video');
259
 
260
  $newSlideId = $slidesModel->createQuickVideo($video, $sliderId);
254
  $this->validateVariable($sliderId > 0, 'Slider');
255
 
256
  $slidesModel = new N2SmartsliderSlidesModel();
257
+
258
+ $s = urldecode(base64_decode(N2Request::getVar('video')));
259
+ $video = json_decode($s, true);
260
  $this->validateVariable($video, 'Video');
261
 
262
  $newSlideId = $slidesModel->createQuickVideo($video, $sliderId);
library/smartslider/backend/inline/slidemanager.phtml CHANGED
@@ -154,12 +154,12 @@ $router = N2Base::getApplication('smartslider')
154
  <a href="#" class="n2-button n2-button-icon n2-button-s n2-button-grey n2-radius-s"><?php echo N2Html::tag('i', array('class' => 'n2-i n2-it n2-i-more2'), ''); ?></a>
155
  <div class="n2-box-menu-content">
156
  <ul>
157
- <li class="n2-ss-duplicate">Duplicate</li>
158
- <li class="n2-ss-publish">Publish</li>
159
- <li class="n2-ss-unpublish">Unpublish</li>
160
- <li class="n2-ss-generator">Edit generator</li>
161
- <li class="n2-ss-setFirst">Set as first</li>
162
- <li class="n2-ss-delete">Delete</li>
163
  </ul>
164
  </div>
165
  </div>
154
  <a href="#" class="n2-button n2-button-icon n2-button-s n2-button-grey n2-radius-s"><?php echo N2Html::tag('i', array('class' => 'n2-i n2-it n2-i-more2'), ''); ?></a>
155
  <div class="n2-box-menu-content">
156
  <ul>
157
+ <li class="n2-ss-duplicate"><?php n2_e('Duplicate'); ?></li>
158
+ <li class="n2-ss-publish"><?php n2_e('Publish'); ?></li>
159
+ <li class="n2-ss-unpublish"><?php n2_e('Unpublish'); ?></li>
160
+ <li class="n2-ss-generator"><?php n2_e('Edit generator'); ?></li>
161
+ <li class="n2-ss-setFirst"><?php n2_e('Set as first'); ?></li>
162
+ <li class="n2-ss-delete"><?php n2_e('Delete'); ?></li>
163
  </ul>
164
  </div>
165
  </div>
library/smartslider/backend/inline/slidermanager.phtml CHANGED
@@ -25,21 +25,21 @@ $router = N2Base::getApplication('smartslider')
25
  'class' => 'n2-button-menu'
26
  ), N2Html::tag('div', array(
27
  'class' => 'n2-button-menu-inner n2-border-radius'
28
- ), N2Html::link('Manual order', $this->appType->router->createUrl(array(
29
  'sliders/orderby',
30
  array(
31
  'ordering' => 'ASC'
32
  ) + N2Form::tokenizeUrl()
33
  )), array(
34
  'class' => 'n2-h4' . ($orderBy == 'ordering' && $orderByDirection == 'ASC' ? ' n2-color-blue' : '')
35
- )) . N2Html::link('A-Z', $this->appType->router->createUrl(array(
36
  'sliders/orderby',
37
  array(
38
  'title' => 'ASC'
39
  ) + N2Form::tokenizeUrl()
40
  )), array(
41
  'class' => 'n2-h4' . ($orderBy == 'title' && $orderByDirection == 'ASC' ? ' n2-color-blue' : '')
42
- )) . N2Html::link('Z-A', $this->appType->router->createUrl(array(
43
  'sliders/orderby',
44
  array(
45
  'title' => 'DESC'
@@ -163,11 +163,11 @@ $router = N2Base::getApplication('smartslider')
163
  <a href="#" class="n2-button n2-button-icon n2-button-s n2-button-grey n2-radius-s"><?php echo N2Html::tag('i', array('class' => 'n2-i n2-it n2-i-more2'), ''); ?></a>
164
  <div class="n2-box-menu-content">
165
  <ul>
166
- <li class="n2-ss-preview">Preview</li>
167
- <li class="n2-ss-add-to-group">Add to group</li>
168
- <li class="n2-ss-remove-from-group">Remove from group</li>
169
- <li class="n2-ss-duplicate">Duplicate</li>
170
- <li class="n2-ss-delete">Delete</li>
171
  </ul>
172
  </div>
173
  </div>
25
  'class' => 'n2-button-menu'
26
  ), N2Html::tag('div', array(
27
  'class' => 'n2-button-menu-inner n2-border-radius'
28
+ ), N2Html::link(n2_('Manual order'), $this->appType->router->createUrl(array(
29
  'sliders/orderby',
30
  array(
31
  'ordering' => 'ASC'
32
  ) + N2Form::tokenizeUrl()
33
  )), array(
34
  'class' => 'n2-h4' . ($orderBy == 'ordering' && $orderByDirection == 'ASC' ? ' n2-color-blue' : '')
35
+ )) . N2Html::link(n2_('A-Z'), $this->appType->router->createUrl(array(
36
  'sliders/orderby',
37
  array(
38
  'title' => 'ASC'
39
  ) + N2Form::tokenizeUrl()
40
  )), array(
41
  'class' => 'n2-h4' . ($orderBy == 'title' && $orderByDirection == 'ASC' ? ' n2-color-blue' : '')
42
+ )) . N2Html::link(n2_('Z-A'), $this->appType->router->createUrl(array(
43
  'sliders/orderby',
44
  array(
45
  'title' => 'DESC'
163
  <a href="#" class="n2-button n2-button-icon n2-button-s n2-button-grey n2-radius-s"><?php echo N2Html::tag('i', array('class' => 'n2-i n2-it n2-i-more2'), ''); ?></a>
164
  <div class="n2-box-menu-content">
165
  <ul>
166
+ <li class="n2-ss-preview"><?php n2_e("Preview"); ?></li>
167
+ <li class="n2-ss-add-to-group"><?php n2_e("Add to group"); ?></li>
168
+ <li class="n2-ss-remove-from-group"><?php n2_e("Remove from group"); ?></li>
169
+ <li class="n2-ss-duplicate"><?php n2_e("Duplicate"); ?></li>
170
+ <li class="n2-ss-delete"><?php n2_e("Delete"); ?></li>
171
  </ul>
172
  </div>
173
  </div>
library/smartslider/backend/views/sliders/index.phtml CHANGED
@@ -7,7 +7,7 @@
7
  $this->widget->init('topbar');
8
 
9
  $this->widget->init('heading', array(
10
- 'title' => n2_('Dashboard') . N2Html::tag('span', array(), 'Version: ' . N2SS3::$version . (N2SSPRO ? '-pro' : '-free') . ' - <a target="_blank" href="http://doc.smartslider3.com/article/432-changelog">' . n2_('Changelog') . '</a>'),
11
  'actions' => $_class->getDashboardButtons()
12
  ));
13
  ?>
7
  $this->widget->init('topbar');
8
 
9
  $this->widget->init('heading', array(
10
+ 'title' => n2_('Dashboard') . N2Html::tag('span', array(), n2_('Version'). ': ' . N2SS3::$version . (N2SSPRO ? '-pro' : '-free') . ' - <a target="_blank" href="http://doc.smartslider3.com/article/432-changelog">' . n2_('Changelog') . '</a>'),
11
  'actions' => $_class->getDashboardButtons()
12
  ));
13
  ?>
library/smartslider/backend/views/slides/edit.phtml CHANGED
@@ -407,8 +407,8 @@ if (empty($thumbnail)) {
407
  data-n2tip="<?php n2_e('Clear device specific layer settings'); ?>"><i
408
  class="n2-i n2-it n2-i-16 n2-i-reset"></i></div>
409
 
410
- <a href="https://youtu.be/phKaWqmwXA0 " class="n2-ss-responsive-helper n2-ss-tool n2-button n2-button-normal n2-button-s n2-button-grey n2-radius-s" target="_blank">
411
- Responsive tricks
412
  </a>
413
  </div>
414
 
407
  data-n2tip="<?php n2_e('Clear device specific layer settings'); ?>"><i
408
  class="n2-i n2-it n2-i-16 n2-i-reset"></i></div>
409
 
410
+ <a href="https://youtu.be/yGpVsrzwt1U " class="n2-ss-responsive-helper n2-ss-tool n2-button n2-button-normal n2-button-s n2-button-grey n2-radius-s" target="_blank">
411
+ <?php n2_e("Responsive tricks"); ?>
412
  </a>
413
  </div>
414
 
library/smartslider/languages/de_DE.mo CHANGED
Binary file
library/smartslider/languages/fa_IR.mo ADDED
Binary file
library/smartslider/languages/fr_FR.mo ADDED
Binary file
library/smartslider/languages/hr_HR.mo ADDED
Binary file
library/smartslider/languages/hu_HU.mo CHANGED
Binary file
library/smartslider/libraries/export.php CHANGED
@@ -108,7 +108,20 @@ class N2SmartSliderExport {
108
  self::addLightbox($slide['params']->get('link'));
109
 
110
 
111
- N2SmartSliderLayer::prepareExport($this, $slide['slide']);
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  if (!empty($slide['generator_id'])) {
114
  N2Loader::import("models.generator", "smartslider");
108
  self::addLightbox($slide['params']->get('link'));
109
 
110
 
111
+ $layers = json_decode($slide['slide'], true);
112
+ foreach ($layers AS $layer) {
113
+ if (isset($layer['type'])) {
114
+ switch ($layer['type']) {
115
+ case 'group':
116
+ N2SmartSliderGroup::prepareExport($this, $layer);
117
+ break;
118
+ default:
119
+ N2SmartSliderLayer::prepareExport($this, $layer);
120
+ }
121
+ } else {
122
+ N2SmartSliderLayer::prepareExport($this, $layer);
123
+ }
124
+ }
125
 
126
  if (!empty($slide['generator_id'])) {
127
  N2Loader::import("models.generator", "smartslider");
library/smartslider/libraries/import.php CHANGED
@@ -22,7 +22,7 @@ class N2SmartSliderImport {
22
  public function import($filePathOrData, $groupID = 0, $imageImportMode = 'clone', $linkedVisuals = 1, $isFilePath = true) {
23
  if (!$isFilePath) {
24
  $folder = sys_get_temp_dir();
25
- if(!is_writable($folder)){
26
  $folder = N2Filesystem::getNotWebCachePath();
27
  }
28
  $tmp = tempnam($folder, 'ss3');
@@ -185,7 +185,21 @@ class N2SmartSliderImport {
185
  $slide['params']->set('ligthboxImage', $this->fixImage($slide['params']->get('ligthboxImage')));
186
  $slide['params']->set('link', $this->fixLightbox($slide['params']->get('link')));
187
 
188
- $slide['slide'] = N2SmartSliderLayer::prepareImport($this, $slide['slide']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
 
190
  if (isset($generatorTranslation[$slide['generator_id']])) {
191
  $slide['generator_id'] = $generatorTranslation[$slide['generator_id']];
22
  public function import($filePathOrData, $groupID = 0, $imageImportMode = 'clone', $linkedVisuals = 1, $isFilePath = true) {
23
  if (!$isFilePath) {
24
  $folder = sys_get_temp_dir();
25
+ if (!is_writable($folder)) {
26
  $folder = N2Filesystem::getNotWebCachePath();
27
  }
28
  $tmp = tempnam($folder, 'ss3');
185
  $slide['params']->set('ligthboxImage', $this->fixImage($slide['params']->get('ligthboxImage')));
186
  $slide['params']->set('link', $this->fixLightbox($slide['params']->get('link')));
187
 
188
+ $layers = json_decode($slide['slide'], true);
189
+ for ($j = 0; $j < count($layers); $j++) {
190
+ if (isset($layers[$j]['type'])) {
191
+ switch ($layers[$j]['type']) {
192
+ case 'group':
193
+ N2SmartSliderGroup::prepareImport($this, $layers[$j]);
194
+ break;
195
+ default:
196
+ N2SmartSliderLayer::prepareImport($this, $layers[$j]);
197
+ }
198
+ } else {
199
+ N2SmartSliderLayer::prepareImport($this, $layers[$j]);
200
+ }
201
+ }
202
+ $slide['slide'] = json_encode($layers);
203
 
204
  if (isset($generatorTranslation[$slide['generator_id']])) {
205
  $slide['generator_id'] = $generatorTranslation[$slide['generator_id']];
library/smartslider/libraries/slider/abstract.php CHANGED
@@ -1,6 +1,5 @@
1
  <?php
2
 
3
- N2Loader::import('libraries.mobiledetect.Mobile_Detect');
4
  N2Loader::import('libraries.parse.font');
5
 
6
  N2Loader::import('libraries.slider.type', 'smartslider');
@@ -91,9 +90,6 @@ abstract class N2SmartSliderAbstract {
91
 
92
  $this->disableResponsive = $this->parameters['disableResponsive'];
93
 
94
-
95
- $this->device = new Mobile_Detect();
96
-
97
  N2Loader::import("models.Sliders", "smartslider");
98
 
99
  }
1
  <?php
2
 
 
3
  N2Loader::import('libraries.parse.font');
4
 
5
  N2Loader::import('libraries.slider.type', 'smartslider');
90
 
91
  $this->disableResponsive = $this->parameters['disableResponsive'];
92
 
 
 
 
93
  N2Loader::import("models.Sliders", "smartslider");
94
 
95
  }
library/smartslider/libraries/slider/features/fadeonload.php CHANGED
@@ -75,7 +75,7 @@ class N2SmartSliderFeatureFadeOnLoad
75
 
76
  private function makeImage($sizes) {
77
  $html = N2Html::image("data:image/svg+xml;base64," . $this->transparentImage($sizes['width'] + $sizes['marginHorizontal'], $sizes['height']), 'Slider', array(
78
- 'style' => 'width: 100%; max-width:' . ($this->slider->features->responsive->maximumSlideWidth + $sizes['marginHorizontal']) . 'px;',
79
  'class' => 'n2-ow'
80
  ));
81
 
75
 
76
  private function makeImage($sizes) {
77
  $html = N2Html::image("data:image/svg+xml;base64," . $this->transparentImage($sizes['width'] + $sizes['marginHorizontal'], $sizes['height']), 'Slider', array(
78
+ 'style' => 'width: 100%; max-width:' . ($this->slider->features->responsive->maximumSlideWidth + $sizes['marginHorizontal']) . 'px; display:block;',
79
  'class' => 'n2-ow'
80
  ));
81
 
library/smartslider/libraries/slider/features/features.php CHANGED
@@ -148,38 +148,6 @@ class N2SmartSliderFeatures {
148
  return $this->slideBackground->make($slide);
149
  }
150
 
151
- protected function setDevices() {
152
-
153
- if (intval($this->_data->get('showmobile', 1)) == 0) {
154
- if (!$this->device->isTablet() && $this->device->isMobile()) {
155
- $this->norender = true;
156
- return;
157
- }
158
- }
159
-
160
- $custommobile = N2Parse::parse($this->_data->get('showcustommobile', '0|*|'));
161
- if ($custommobile[0] == 1) {
162
- if (!$this->device->isTablet() && $this->device->isMobile()) {
163
- $this->_data->set('slider', $custommobile[1]);
164
- }
165
- }
166
-
167
- if (intval($this->_data->get('showtablet', 1)) == 0) {
168
- if ($this->device->isTablet()) {
169
- $this->norender = true;
170
- return;
171
- }
172
- }
173
-
174
- $customtablet = N2Parse::parse($this->_data->get('showcustomtablet', '0|*|'));
175
- if ($customtablet[0] == 1) {
176
- if ($this->device->isTablet()) {
177
- $this->_data->set('slider', $customtablet[1]);
178
- }
179
- }
180
-
181
- }
182
-
183
  public function addInitCallback($callback) {
184
  $this->initCallbacks[] = $callback;
185
  }
148
  return $this->slideBackground->make($slide);
149
  }
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  public function addInitCallback($callback) {
152
  $this->initCallbacks[] = $callback;
153
  }
library/smartslider/libraries/slider/features/responsive.php CHANGED
@@ -431,7 +431,13 @@ class N2SmartSliderFeatureResponsive {
431
  'orientationMode' => $this->orientationMode,
432
 
433
  'scrollFix' => intval($this->slider->params->get('scroll-fix', 0)),
434
- 'overflowHiddenPage' => intval($this->slider->params->get('overflow-hidden-page', 0))
 
 
 
 
 
 
435
  );
436
  }
437
 
431
  'orientationMode' => $this->orientationMode,
432
 
433
  'scrollFix' => intval($this->slider->params->get('scroll-fix', 0)),
434
+ 'overflowHiddenPage' => intval($this->slider->params->get('overflow-hidden-page', 0)),
435
+
436
+ 'desktopPortraitScreenWidth' => $this->desktopPortraitScreenWidth,
437
+ 'tabletPortraitScreenWidth' => $this->tabletPortraitScreenWidth,
438
+ 'mobilePortraitScreenWidth' => $this->mobilePortraitScreenWidth,
439
+ 'tabletLandscapeScreenWidth' => $this->tabletLandscapeScreenWidth,
440
+ 'mobileLandscapeScreenWidth' => $this->mobileLandscapeScreenWidth,
441
  );
442
  }
443
 
library/smartslider/libraries/slider/features/slidebackground.php CHANGED
@@ -206,6 +206,7 @@ class N2SmartSliderFeatureSlideBackground {
206
  }
207
 
208
  private function getDefaultImage($src, $deviceAttributes) {
 
209
  if (count($deviceAttributes) > 2 || $this->slider->features->lazyLoad->isEnabled > 0) {
210
  return N2Image::base64Transparent();
211
  } else {
@@ -334,7 +335,7 @@ class N2SmartSliderFeatureSlideBackground {
334
  "data-opacity" => $backgroundImageOpacity
335
  ), N2Html::tag('div', array(
336
  "class" => "n2-ss-slide-background-image n2-ss-slide-center",
337
- "style" => "background-image: url(" . $this->getDefaultImage($src, $deviceAttributes) . ");" . 'opacity:' . $backgroundImageOpacity . ';background-position: ' . $x . '% ' . $y . '%;'
338
  )));
339
  }
340
 
@@ -346,7 +347,7 @@ class N2SmartSliderFeatureSlideBackground {
346
  "data-opacity" => $backgroundImageOpacity
347
  ), N2Html::tag('div', array(
348
  "class" => "n2-ss-slide-background-image n2-ss-slide-tile",
349
- "style" => "background-image: url(" . $this->getDefaultImage($src, $deviceAttributes) . ");" . 'opacity:' . $backgroundImageOpacity . ';background-position: ' . $x . '% ' . $y . '%;'
350
  )));
351
  }
352
 
@@ -358,7 +359,7 @@ class N2SmartSliderFeatureSlideBackground {
358
  "data-opacity" => $backgroundImageOpacity
359
  ), N2Html::tag('div', array(
360
  "class" => "n2-ss-slide-background-image n2-ss-slide-fixed",
361
- "style" => "background-image: url(" . $this->getDefaultImage($src, $deviceAttributes) . ");" . 'opacity:' . $backgroundImageOpacity . ';background-position: ' . $x . '% ' . $y . '%;'
362
  )));
363
  }
364
 
206
  }
207
 
208
  private function getDefaultImage($src, $deviceAttributes) {
209
+ // https://github.com/joomla/joomla-cms/issues/7267
210
  if (count($deviceAttributes) > 2 || $this->slider->features->lazyLoad->isEnabled > 0) {
211
  return N2Image::base64Transparent();
212
  } else {
335
  "data-opacity" => $backgroundImageOpacity
336
  ), N2Html::tag('div', array(
337
  "class" => "n2-ss-slide-background-image n2-ss-slide-center",
338
+ "style" => 'background-image: URL("' . $this->getDefaultImage($src, $deviceAttributes) . '");' . 'opacity:' . $backgroundImageOpacity . ';background-position: ' . $x . '% ' . $y . '%;'
339
  )));
340
  }
341
 
347
  "data-opacity" => $backgroundImageOpacity
348
  ), N2Html::tag('div', array(
349
  "class" => "n2-ss-slide-background-image n2-ss-slide-tile",
350
+ "style" => 'background-image: URL("' . $this->getDefaultImage($src, $deviceAttributes) . '");' . 'opacity:' . $backgroundImageOpacity . ';background-position: ' . $x . '% ' . $y . '%;'
351
  )));
352
  }
353
 
359
  "data-opacity" => $backgroundImageOpacity
360
  ), N2Html::tag('div', array(
361
  "class" => "n2-ss-slide-background-image n2-ss-slide-fixed",
362
+ "style" => 'background-image: URL("' . $this->getDefaultImage($src, $deviceAttributes) . '");' . 'opacity:' . $backgroundImageOpacity . ';background-position: ' . $x . '% ' . $y . '%;'
363
  )));
364
  }
365
 
library/smartslider/libraries/slider/features/spinner.php CHANGED
@@ -361,7 +361,18 @@ div.n2-ss-spinner-rectangle-4 {
361
 
362
  public function renderSlider($slider, $sliderHTML) {
363
 
364
- if (isset(self::$spinners[$this->slider->params->get('spinner', 'simpleWhite')]) && !empty(self::$spinners[$this->slider->params->get('spinner', 'simpleWhite')])) {
 
 
 
 
 
 
 
 
 
 
 
365
  N2CSS::addInline(self::$spinners[$this->slider->params->get('spinner', 'simpleWhite')][1]);
366
  return $sliderHTML . '<div id="' . $slider->elementId . '-spinner" style="display: none;">' . self::$spinners[$this->slider->params->get('spinner', 'simpleWhite')][0] . '</div>';
367
  }
361
 
362
  public function renderSlider($slider, $sliderHTML) {
363
 
364
+ $customSpinner = $this->slider->params->get('custom-spinner', '');
365
+ if (!empty($customSpinner)) {
366
+ $width = $this->slider->params->get('custom-spinner-width', '100');
367
+ $height = $this->slider->params->get('custom-spinner-height', '100');
368
+ $marginLeft = -($width / 2);
369
+ $marginTop = -($height / 2);
370
+ $style = '';
371
+ if ($this->slider->params->get('custom-display', '1')) {
372
+ $style = 'style="display:none;"';
373
+ }
374
+ return $sliderHTML . '<div id="' . $slider->elementId . '-spinner" ' . $style . '><img src="' . N2ImageHelper::fixed($customSpinner) . '" style="width:' . $width . 'px; height:' . $height . 'px; position:absolute;left:50%;top:50%;margin-left:' . $marginLeft . 'px;margin-top:' . $marginTop . 'px;" alt="loading"/></div>';
375
+ } else if (isset(self::$spinners[$this->slider->params->get('spinner', 'simpleWhite')]) && !empty(self::$spinners[$this->slider->params->get('spinner', 'simpleWhite')])) {
376
  N2CSS::addInline(self::$spinners[$this->slider->params->get('spinner', 'simpleWhite')][1]);
377
  return $sliderHTML . '<div id="' . $slider->elementId . '-spinner" style="display: none;">' . self::$spinners[$this->slider->params->get('spinner', 'simpleWhite')][0] . '</div>';
378
  }
library/smartslider/libraries/slider/slide/group.php CHANGED
@@ -73,4 +73,16 @@ class N2SmartSliderGroup extends N2SmartSliderSlideContentAbstract {
73
  $group['layers'] = $layers;
74
  return $group;
75
  }
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
73
  $group['layers'] = $layers;
74
  return $group;
75
  }
76
+
77
+ public static function prepareExport($export, $layer) {
78
+ foreach ($layer['layers'] AS $layer) {
79
+ N2SmartSliderLayer::prepareExport($export, $layer);
80
+ }
81
+ }
82
+
83
+ public static function prepareImport($import, &$layer) {
84
+ for ($j = 0; $j < count($layer['layers']); $j++) {
85
+ N2SmartSliderLayer::prepareImport($import, $layer['layers'][$j]);
86
+ }
87
+ }
88
  }
library/smartslider/libraries/slider/slide/layer.php CHANGED
@@ -19,6 +19,7 @@ class N2SmartSliderLayer extends N2SmartSliderSlideContentAbstract {
19
  if ($value == 'auto' || substr($value, -1) == '%') {
20
  return $value;
21
  }
 
22
  return $value . 'px';
23
  }
24
 
@@ -99,12 +100,35 @@ class N2SmartSliderLayer extends N2SmartSliderSlideContentAbstract {
99
  unset($layer['style']);
100
  }
101
 
 
 
 
 
 
 
102
  $attributes = array(
103
- 'class' => 'n2-ss-layer' . (empty($layer['class']) ? '' : ' ' . $layer['class']),
104
  'style' => 'z-index:' . $zIndex . ';overflow:' . $cropStyle . ';' . $style . ';'
105
  );
106
 
107
  if (!empty($layer['animations'])) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  $attributes['data-animations'] = base64_encode(json_encode($layer['animations']));
109
  }
110
 
@@ -136,6 +160,7 @@ class N2SmartSliderLayer extends N2SmartSliderSlideContentAbstract {
136
  foreach ($layer AS $k => $data) {
137
  $attributes['data-' . $k] = $data;
138
  }
 
139
  return N2Html::tag('div', $attributes, $innerHTML);
140
  }
141
 
@@ -145,37 +170,20 @@ class N2SmartSliderLayer extends N2SmartSliderSlideContentAbstract {
145
  $items [] = $this->item->getFilled($layer['items'][$i]);
146
  }
147
  $layer['items'] = $items;
 
148
  return $layer;
149
  }
150
 
151
- /**
152
- * @param N2SmartSliderExport $export
153
- * @param $rawLayers
154
- */
155
- public static function prepareExport($export, $rawLayers) {
156
- $layers = json_decode($rawLayers, true);
157
- foreach ($layers AS $layer) {
158
-
159
- foreach ($layer['items'] AS $item) {
160
- N2SmartSliderItem::prepareExport($export, $item);
161
- }
162
  }
163
  }
164
 
165
- /**
166
- * @param N2SmartSliderImport $import
167
- * @param $rawLayers
168
- *
169
- * @return mixed|string|void
170
- */
171
- public static function prepareImport($import, $rawLayers) {
172
- $layers = json_decode($rawLayers, true);
173
- for ($i = 0; $i < count($layers); $i++) {
174
- for ($j = 0; $j < count($layers[$i]['items']); $j++) {
175
- $layers[$i]['items'][$j] = N2SmartSliderItem::prepareImport($import, $layers[$i]['items'][$j]);
176
- }
177
  }
178
- return json_encode($layers);
179
  }
180
 
181
  public static function prepareFixed($rawLayers) {
@@ -185,6 +193,7 @@ class N2SmartSliderLayer extends N2SmartSliderSlideContentAbstract {
185
  $layers[$i]['items'][$j] = N2SmartSliderItem::prepareFixed($layers[$i]['items'][$j]);
186
  }
187
  }
 
188
  return json_encode($layers);
189
  }
190
 
@@ -207,6 +216,7 @@ class N2SmartSliderLayer extends N2SmartSliderSlideContentAbstract {
207
  unset($children[$layers[$i]['id']]);
208
  }
209
  }
 
210
  return $layers;
211
  }
212
 
@@ -217,6 +227,7 @@ class N2SmartSliderLayer extends N2SmartSliderSlideContentAbstract {
217
  for ($i = 0; $i < $length; $i++) {
218
  $randomString .= $characters[mt_rand(0, $charactersLength - 1)];
219
  }
 
220
  return $randomString;
221
  }
222
 
@@ -229,6 +240,17 @@ class N2SmartSliderLayer extends N2SmartSliderSlideContentAbstract {
229
  $idTranslation[$layers[$i]['id']] = $newId;
230
  $layers[$i]['id'] = $newId;
231
  }
 
 
 
 
 
 
 
 
 
 
 
232
  if (!empty($layers[$i]['parentid'])) {
233
  if (isset($idTranslation[$layers[$i]['parentid']])) {
234
  $layers[$i]['parentid'] = $idTranslation[$layers[$i]['parentid']];
@@ -236,7 +258,19 @@ class N2SmartSliderLayer extends N2SmartSliderSlideContentAbstract {
236
  $layers[$i]['parentid'] = '';
237
  }
238
  }
 
 
 
 
 
 
 
 
 
 
 
239
  }
 
240
  return $layers;
241
  }
242
 
@@ -280,6 +314,7 @@ class N2SmartSliderLayer extends N2SmartSliderSlideContentAbstract {
280
  $code = "n2ss.trigger(this, '" . $code . "');";
281
  }
282
  }
 
283
  return $code;
284
  }
285
  }
@@ -345,6 +380,7 @@ class N2SmartSliderLayerHelper {
345
 
346
  public function set($key, $value) {
347
  $this->data[$key] = $value;
 
348
  return $this;
349
  }
350
  }
19
  if ($value == 'auto' || substr($value, -1) == '%') {
20
  return $value;
21
  }
22
+
23
  return $value . 'px';
24
  }
25
 
100
  unset($layer['style']);
101
  }
102
 
103
+ $layerClass = '';
104
+ if (!empty($layer['class']) && $this->slide->hasGenerator()) {
105
+ $layerClass = $this->slide->fill($layer['class']);
106
+ } else if(!empty($layer['class'])){
107
+ $layerClass = $layer['class'];
108
+ }
109
  $attributes = array(
110
+ 'class' => 'n2-ss-layer' . ' ' . $layerClass,
111
  'style' => 'z-index:' . $zIndex . ';overflow:' . $cropStyle . ';' . $style . ';'
112
  );
113
 
114
  if (!empty($layer['animations'])) {
115
+ if (is_array($layer['animations'])) {
116
+ if (isset($layer['animations']['in']) && is_array($layer['animations']['in'])) {
117
+ for ($i = 0; $i < count($layer['animations']['in']); $i++) {
118
+ $layer['animations']['in'][$i] = (object)$layer['animations']['in'][$i];
119
+ }
120
+ }
121
+ if (isset($layer['animations']['loop']) && is_array($layer['animations']['loop'])) {
122
+ for ($i = 0; $i < count($layer['animations']['loop']); $i++) {
123
+ $layer['animations']['loop'][$i] = (object)$layer['animations']['loop'][$i];
124
+ }
125
+ }
126
+ if (isset($layer['animations']['out']) && is_array($layer['animations']['out'])) {
127
+ for ($i = 0; $i < count($layer['animations']['out']); $i++) {
128
+ $layer['animations']['out'][$i] = (object)$layer['animations']['out'][$i];
129
+ }
130
+ }
131
+ }
132
  $attributes['data-animations'] = base64_encode(json_encode($layer['animations']));
133
  }
134
 
160
  foreach ($layer AS $k => $data) {
161
  $attributes['data-' . $k] = $data;
162
  }
163
+
164
  return N2Html::tag('div', $attributes, $innerHTML);
165
  }
166
 
170
  $items [] = $this->item->getFilled($layer['items'][$i]);
171
  }
172
  $layer['items'] = $items;
173
+
174
  return $layer;
175
  }
176
 
177
+ public static function prepareExport($export, $layer) {
178
+ foreach ($layer['items'] AS $item) {
179
+ N2SmartSliderItem::prepareExport($export, $item);
 
 
 
 
 
 
 
 
180
  }
181
  }
182
 
183
+ public static function prepareImport($import, &$layer) {
184
+ for ($j = 0; $j < count($layer['items']); $j++) {
185
+ $layer['items'][$j] = N2SmartSliderItem::prepareImport($import, $layer['items'][$j]);
 
 
 
 
 
 
 
 
 
186
  }
 
187
  }
188
 
189
  public static function prepareFixed($rawLayers) {
193
  $layers[$i]['items'][$j] = N2SmartSliderItem::prepareFixed($layers[$i]['items'][$j]);
194
  }
195
  }
196
+
197
  return json_encode($layers);
198
  }
199
 
216
  unset($children[$layers[$i]['id']]);
217
  }
218
  }
219
+
220
  return $layers;
221
  }
222
 
227
  for ($i = 0; $i < $length; $i++) {
228
  $randomString .= $characters[mt_rand(0, $charactersLength - 1)];
229
  }
230
+
231
  return $randomString;
232
  }
233
 
240
  $idTranslation[$layers[$i]['id']] = $newId;
241
  $layers[$i]['id'] = $newId;
242
  }
243
+ if (isset($layers[$i]['type']) && $layers[$i]['type'] == 'group') {
244
+ for ($j = 0; $j < count($layers[$i]['layers']); $j++) {
245
+ if (!empty($layers[$i]['layers'][$j]['id'])) {
246
+ $newId = 'd' . self::uid();
247
+ $idTranslation[$layers[$i]['layers'][$j]['id']] = $newId;
248
+ $layers[$i]['layers'][$j]['id'] = $newId;
249
+ }
250
+ }
251
+ }
252
+ }
253
+ for ($i = 0; $i < count($layers); $i++) {
254
  if (!empty($layers[$i]['parentid'])) {
255
  if (isset($idTranslation[$layers[$i]['parentid']])) {
256
  $layers[$i]['parentid'] = $idTranslation[$layers[$i]['parentid']];
258
  $layers[$i]['parentid'] = '';
259
  }
260
  }
261
+ if (isset($layers[$i]['type']) && $layers[$i]['type'] == 'group') {
262
+ for ($j = 0; $j < count($layers[$i]['layers']); $j++) {
263
+ if (!empty($layers[$i]['layers'][$j]['parentid'])) {
264
+ if (isset($idTranslation[$layers[$i]['layers'][$j]['parentid']])) {
265
+ $layers[$i]['layers'][$j]['parentid'] = $idTranslation[$layers[$i]['layers'][$j]['parentid']];
266
+ } else {
267
+ $layers[$i]['layers'][$j]['parentid'] = '';
268
+ }
269
+ }
270
+ }
271
+ }
272
  }
273
+
274
  return $layers;
275
  }
276
 
314
  $code = "n2ss.trigger(this, '" . $code . "');";
315
  }
316
  }
317
+
318
  return $code;
319
  }
320
  }
380
 
381
  public function set($key, $value) {
382
  $this->data[$key] = $value;
383
+
384
  return $this;
385
  }
386
  }
library/smartslider/models/License.php CHANGED
@@ -14,6 +14,7 @@ class N2SmartsliderLicenseModel {
14
  if (!$ins) {
15
  $ins = new N2SmartsliderLicenseModel();
16
  }
 
17
  return $ins;
18
  }
19
 
@@ -26,6 +27,7 @@ class N2SmartsliderLicenseModel {
26
  if ($lastActive && $lastActive > strtotime("-1 week")) {
27
  return true;
28
  }
 
29
  return false;
30
  }
31
 
@@ -51,21 +53,23 @@ class N2SmartsliderLicenseModel {
51
  $status = $this->checkKey($this->key);
52
  if ($this->hasKey() && $status == 'OK') {
53
  N2Base::getApplication('smartslider')->storage->set('license', 'isActive', time());
 
54
  return $status;
55
  }
56
  N2Base::getApplication('smartslider')->storage->set('license', 'isActive', 0);
 
57
  return $status;
58
  }
59
 
60
  public function deAuthorize() {
61
  if ($this->hasKey()) {
62
- $status = $this->checkKey($this->key, 'licensedeauthorize');
63
- if ($status == 'OK' || $status == 'LICENSE_EXPIRED' || $status == 'PLATFORM_NOT_ALLOWED') {
64
- $this->setKey('');
65
- N2Message::notice('Smart Slider deauthorized on this site!');
66
- }
67
- return $status;
68
  }
 
69
  return false;
70
  }
71
  }
14
  if (!$ins) {
15
  $ins = new N2SmartsliderLicenseModel();
16
  }
17
+
18
  return $ins;
19
  }
20
 
27
  if ($lastActive && $lastActive > strtotime("-1 week")) {
28
  return true;
29
  }
30
+
31
  return false;
32
  }
33
 
53
  $status = $this->checkKey($this->key);
54
  if ($this->hasKey() && $status == 'OK') {
55
  N2Base::getApplication('smartslider')->storage->set('license', 'isActive', time());
56
+
57
  return $status;
58
  }
59
  N2Base::getApplication('smartslider')->storage->set('license', 'isActive', 0);
60
+
61
  return $status;
62
  }
63
 
64
  public function deAuthorize() {
65
  if ($this->hasKey()) {
66
+ $this->checkKey($this->key, 'licensedeauthorize');
67
+ $this->setKey('');
68
+ N2Message::notice('Smart Slider deauthorized on this site!');
69
+
70
+ return 'OK';
 
71
  }
72
+
73
  return false;
74
  }
75
  }
library/smartslider/models/Sliders.php CHANGED
@@ -73,8 +73,11 @@ class N2SmartsliderSlidersModel extends N2Model {
73
  WHERE " . ($groupID == 0 ? "xref.group_id IS NULL OR xref.group_id = 0" : "xref.group_id = '" . $groupID . "'") . "
74
  ORDER BY " . $_orderby);
75
  return $sliders;
76
- }
77
 
 
 
 
78
 
79
  public function getGroups() {
80
  return $this->db->queryAll("SELECT id, title FROM " . $this->getTable() . " WHERE type LIKE 'group' ORDER BY title ASC");
@@ -371,7 +374,7 @@ class N2SmartsliderSlidersModel extends N2Model {
371
 
372
 
373
  $attributes = array(
374
- 'style' => 'background-image: url(' . N2ImageHelper::fixed($thumbnail) . ');',
375
  'class' => 'n2-ss-box-slider n2-box-selectable ' . ($slider['type'] == 'group' ? 'n2-ss-box-slider-group' : 'n2-ss-box-slider-slider'),
376
  'data-title' => $slider['title'],
377
  'data-editUrl' => $editUrl,
73
  WHERE " . ($groupID == 0 ? "xref.group_id IS NULL OR xref.group_id = 0" : "xref.group_id = '" . $groupID . "'") . "
74
  ORDER BY " . $_orderby);
75
  return $sliders;
76
+ }
77
 
78
+ public function _getAll(){
79
+ return $this->db->queryAll("SELECT sliders.* FROM " . $this->getTable() . " AS sliders");
80
+ }
81
 
82
  public function getGroups() {
83
  return $this->db->queryAll("SELECT id, title FROM " . $this->getTable() . " WHERE type LIKE 'group' ORDER BY title ASC");
374
 
375
 
376
  $attributes = array(
377
+ 'style' => 'background-image: url("' . N2ImageHelper::fixed($thumbnail) . '");',
378
  'class' => 'n2-ss-box-slider n2-box-selectable ' . ($slider['type'] == 'group' ? 'n2-ss-box-slider-group' : 'n2-ss-box-slider-slider'),
379
  'data-title' => $slider['title'],
380
  'data-editUrl' => $editUrl,
library/smartslider/models/Slides.php CHANGED
@@ -94,6 +94,7 @@ class N2SmartsliderSlidesModel extends N2Model {
94
  ));
95
 
96
  if (isset($result['ordering'])) return $result['ordering'] + 1;
 
97
  return 0;
98
  }
99
 
@@ -103,7 +104,8 @@ class N2SmartsliderSlidesModel extends N2Model {
103
  $params = json_decode($slide['params'], true);
104
  if ($params == null) $params = array();
105
  $params += $slide;
106
- $params['sliderid'] = $slide['slider'];
 
107
  echo '<input name="slide[generator_id]" value="' . $slide['generator_id'] . '" type="hidden" />';
108
  } else {
109
  $params = array(
@@ -124,6 +126,7 @@ class N2SmartsliderSlidesModel extends N2Model {
124
 
125
  $params['first'] = isset($slide['first']) ? $slide['first'] : 0;
126
  $this->editForm($params);
 
127
  return $data;
128
  }
129
 
@@ -398,6 +401,7 @@ class N2SmartsliderSlidesModel extends N2Model {
398
  ), array(
399
  'content' => '{description/slide}'
400
  ));
 
401
  return $slide->data['slide'];
402
  } else if ($hasTitle) {
403
 
@@ -409,8 +413,10 @@ class N2SmartsliderSlidesModel extends N2Model {
409
  ), array(
410
  'heading' => '{name/slide}'
411
  ));
 
412
  return $slide->data['slide'];
413
  }
 
414
  return array();
415
  }
416
 
@@ -456,6 +462,7 @@ class N2SmartsliderSlidesModel extends N2Model {
456
  $slideId = $this->_create($slide['title'] . n2_(' - copy'), $slide['slide'], $slide['description'], $slide['thumbnail'], $slide['published'], $slide['publish_up'], $slide['publish_down'], 0, $slide['params'], $slide['slider'], $slide['ordering'] + 1, $slide['generator_id']);
457
 
458
  self::markChanged($slide['slider']);
 
459
  return $slideId;
460
  }
461
 
@@ -471,6 +478,7 @@ class N2SmartsliderSlidesModel extends N2Model {
471
 
472
  $slideId = $this->_create($slide['title'] . n2_(' - copy'), $slide['slide'], $slide['description'], $slide['thumbnail'], $slide['published'], $slide['publish_up'], $slide['publish_down'], 0, $slide['params'], $targetSliderId, $slide['ordering'], $slide['generator_id']);
473
  self::markChanged($slide['slider']);
 
474
  return $slideId;
475
  }
476
 
@@ -546,6 +554,7 @@ class N2SmartsliderSlidesModel extends N2Model {
546
 
547
  return $i;
548
  }
 
549
  return false;
550
  }
551
 
@@ -644,7 +653,7 @@ class N2SmartsliderSlidesModel extends N2Model {
644
  $class .= ($slide->isCurrentlyEdited() ? ' n2-ss-slide-active' : '');
645
 
646
  $attributes = array(
647
- 'style' => 'background-image: url(' . $optimize->optimizeThumbnail($image) . ');',
648
  'class' => $class,
649
  'data-slideid' => $slide->id,
650
  'data-title' => $slide->getRawTitle(),
@@ -663,16 +672,16 @@ class N2SmartsliderSlidesModel extends N2Model {
663
  ));
664
  }
665
  $widget->init("box", array(
666
- 'attributes' => $attributes,
667
- 'lt' => implode('', $lt),
668
- 'lb' => implode('', $lb),
669
- 'rt' => implode('', $rt),
670
- 'rtAttributes' => array('class' => 'n2-on-hover'),
671
- 'rb' => implode('', $rb),
672
- 'overlay' => N2Html::tag('div', array(
673
  'class' => 'n2-box-overlay n2-on-hover'
674
  ), N2Html::tag('div', array('class' => 'n2-button n2-button-normal n2-button-s n2-button-green n2-radius-s n2-uc n2-h5'), n2_('Edit'))),
675
- 'placeholderContent' => N2Html::tag('div', array(
676
  'class' => 'n2-box-placeholder-title n2-h4'
677
  ), N2Html::link($slide->getTitle() . ($slide->hasGenerator() ? ' [' . $slide->getSlideStat() . ']' : ''), $editUrl, array('class' => 'n2-h4'))) . N2Html::tag('div', array(
678
  'class' => 'n2-box-placeholder-buttons'
94
  ));
95
 
96
  if (isset($result['ordering'])) return $result['ordering'] + 1;
97
+
98
  return 0;
99
  }
100
 
104
  $params = json_decode($slide['params'], true);
105
  if ($params == null) $params = array();
106
  $params += $slide;
107
+ $params['sliderid'] = $slide['slider'];
108
+ $params['generator_id'] = $slide['generator_id'];
109
  echo '<input name="slide[generator_id]" value="' . $slide['generator_id'] . '" type="hidden" />';
110
  } else {
111
  $params = array(
126
 
127
  $params['first'] = isset($slide['first']) ? $slide['first'] : 0;
128
  $this->editForm($params);
129
+
130
  return $data;
131
  }
132
 
401
  ), array(
402
  'content' => '{description/slide}'
403
  ));
404
+
405
  return $slide->data['slide'];
406
  } else if ($hasTitle) {
407
 
413
  ), array(
414
  'heading' => '{name/slide}'
415
  ));
416
+
417
  return $slide->data['slide'];
418
  }
419
+
420
  return array();
421
  }
422
 
462
  $slideId = $this->_create($slide['title'] . n2_(' - copy'), $slide['slide'], $slide['description'], $slide['thumbnail'], $slide['published'], $slide['publish_up'], $slide['publish_down'], 0, $slide['params'], $slide['slider'], $slide['ordering'] + 1, $slide['generator_id']);
463
 
464
  self::markChanged($slide['slider']);
465
+
466
  return $slideId;
467
  }
468
 
478
 
479
  $slideId = $this->_create($slide['title'] . n2_(' - copy'), $slide['slide'], $slide['description'], $slide['thumbnail'], $slide['published'], $slide['publish_up'], $slide['publish_down'], 0, $slide['params'], $targetSliderId, $slide['ordering'], $slide['generator_id']);
480
  self::markChanged($slide['slider']);
481
+
482
  return $slideId;
483
  }
484
 
554
 
555
  return $i;
556
  }
557
+
558
  return false;
559
  }
560
 
653
  $class .= ($slide->isCurrentlyEdited() ? ' n2-ss-slide-active' : '');
654
 
655
  $attributes = array(
656
+ 'style' => 'background-image: url("' . $optimize->optimizeThumbnail($image) . '");',
657
  'class' => $class,
658
  'data-slideid' => $slide->id,
659
  'data-title' => $slide->getRawTitle(),
672
  ));
673
  }
674
  $widget->init("box", array(
675
+ 'attributes' => $attributes,
676
+ 'lt' => implode('', $lt),
677
+ 'lb' => implode('', $lb),
678
+ 'rt' => implode('', $rt),
679
+ 'rtAttributes' => array('class' => 'n2-on-hover'),
680
+ 'rb' => implode('', $rb),
681
+ 'overlay' => N2Html::tag('div', array(
682
  'class' => 'n2-box-overlay n2-on-hover'
683
  ), N2Html::tag('div', array('class' => 'n2-button n2-button-normal n2-button-s n2-button-green n2-radius-s n2-uc n2-h5'), n2_('Edit'))),
684
+ 'placeholderContent' => N2Html::tag('div', array(
685
  'class' => 'n2-box-placeholder-title n2-h4'
686
  ), N2Html::link($slide->getTitle() . ($slide->hasGenerator() ? ' [' . $slide->getSlideStat() . ']' : ''), $editUrl, array('class' => 'n2-h4'))) . N2Html::tag('div', array(
687
  'class' => 'n2-box-placeholder-buttons'
library/smartslider/models/forms/element/publishslider.php CHANGED
@@ -15,7 +15,9 @@ class N2ElementPublishSlider extends N2ElementHidden {
15
  } else if (window.getSelection) {
16
  var range = document.createRange();
17
  range.selectNode(container);
18
- window.getSelection().addRange(range);
 
 
19
  }
20
  return false;
21
  }
@@ -27,6 +29,7 @@ class N2ElementPublishSlider extends N2ElementHidden {
27
  ->renderInlineInNamespace("publish", 'backend.inline', 'smartslider.platform', array(
28
  'sliderid' => N2Get::getInt('sliderid')
29
  ));
 
30
  return ob_get_clean();
31
  }
32
  }
15
  } else if (window.getSelection) {
16
  var range = document.createRange();
17
  range.selectNode(container);
18
+ var selection = window.getSelection();
19
+ selection.removeAllRanges();
20
+ selection.addRange(range);
21
  }
22
  return false;
23
  }
29
  ->renderInlineInNamespace("publish", 'backend.inline', 'smartslider.platform', array(
30
  'sliderid' => N2Get::getInt('sliderid')
31
  ));
32
+
33
  return ob_get_clean();
34
  }
35
  }
library/smartslider/models/forms/settings/default.xml CHANGED
@@ -9,7 +9,7 @@
9
  <param type="text" label="To" style="width:200px;"/>
10
  </param>
11
  <param type="textarea" name="external-css-files" label="Editor - additional CSS files" default=""
12
- style2="width:400px; height: 100px; resize: vertical;"/>
13
  <param type="onoff" name="hardware-acceleration" label="Hardware acceleration on sliders" default="1"/>
14
  <param type="onoff" name="slide-as-file" label="Send slide as file" default="0"/>
15
  <param type="onoff" name="preview-new-window" label="Open preview in new window" default="0"/>
9
  <param type="text" label="To" style="width:200px;"/>
10
  </param>
11
  <param type="textarea" name="external-css-files" label="Editor - additional CSS files" default=""
12
+ style2="width:300px; height: 100px; resize: vertical;"/>
13
  <param type="onoff" name="hardware-acceleration" label="Hardware acceleration on sliders" default="1"/>
14
  <param type="onoff" name="slide-as-file" label="Send slide as file" default="0"/>
15
  <param type="onoff" name="preview-new-window" label="Open preview in new window" default="0"/>
library/smartslider/plugins/item/button/button/configuration.xml CHANGED
@@ -12,8 +12,10 @@
12
  <param type="list" label="Target" translateable="1">
13
  <option value="_self">Self</option>
14
  <option value="_blank">Blank</option>
 
15
  </param>
16
  <param type="list" label="Rel">
 
17
  <option value="nofollow">nofollow</option>
18
  <option value="noreferrer">noreferrer</option>
19
  <option value="author">author</option>
12
  <param type="list" label="Target" translateable="1">
13
  <option value="_self">Self</option>
14
  <option value="_blank">Blank</option>
15
+ <option value="_top">Top</option>
16
  </param>
17
  <param type="list" label="Rel">
18
+ <option value=""/>
19
  <option value="nofollow">nofollow</option>
20
  <option value="noreferrer">noreferrer</option>
21
  <option value="author">author</option>
library/smartslider/plugins/item/heading/heading/configuration.xml CHANGED
@@ -8,6 +8,7 @@
8
  <option value="_blank">Blank</option>
9
  </param>
10
  <param type="list" label="Rel">
 
11
  <option value="nofollow">nofollow</option>
12
  <option value="noreferrer">noreferrer</option>
13
  <option value="author">author</option>
@@ -16,6 +17,15 @@
16
  </param>
17
  </param>
18
  <param type="group">
 
 
 
 
 
 
 
 
 
19
  <param name="fullwidth" type="onoff" label="Full width" default="1"/>
20
  <param name="nowrap" type="onoff" label="No wrap" default="0"/></param>
21
  <param name="font" type="font" previewmode="hover" set="1000" style="item_headingstyle" label="Font" css="width: 140px;" class="n2-hidden">
8
  <option value="_blank">Blank</option>
9
  </param>
10
  <param type="list" label="Rel">
11
+ <option value=""/>
12
  <option value="nofollow">nofollow</option>
13
  <option value="noreferrer">noreferrer</option>
14
  <option value="author">author</option>
17
  </param>
18
  </param>
19
  <param type="group">
20
+ <param name="priority" type="list" label="Tag" default="2">
21
+ <option value="div">div</option>
22
+ <option value="1">H1</option>
23
+ <option value="2">H2</option>
24
+ <option value="3">H3</option>
25
+ <option value="4">H4</option>
26
+ <option value="5">H5</option>
27
+ <option value="6">H6</option>
28
+ </param>
29
  <param name="fullwidth" type="onoff" label="Full width" default="1"/>
30
  <param name="nowrap" type="onoff" label="No wrap" default="0"/></param>
31
  <param name="font" type="font" previewmode="hover" set="1000" style="item_headingstyle" label="Font" css="width: 140px;" class="n2-hidden">
library/smartslider/plugins/item/image/image.php CHANGED
@@ -71,14 +71,18 @@ class N2SSPluginItemImage extends N2SSPluginItemAbstract {
71
  if (empty($size[0])) $size[0] = 'auto';
72
  if (empty($size[1])) $size[1] = 'auto';
73
 
74
-
75
- $html = N2Html::tag('img', self::optimizeImage($slide->fill($data->get('image', '')), $data, $slider) + array(
76
- "id" => $id,
77
- "alt" => htmlspecialchars($slide->fill($data->get('alt', ''))),
78
- "style" => "display: inline-block; max-width: 100%; width: {$size[0]};height: {$size[1]};",
79
- "class" => $data->get('cssclass', '') . ' n2-ow',
80
- "title" => htmlspecialchars($slide->fill($data->get('title', '')))
81
- ), false);
 
 
 
 
82
 
83
  $style = N2StyleRenderer::render($data->get('style'), 'heading', $slider->elementId, 'div#' . $slider->elementId . ' ');
84
  return N2Html::tag("div", array(
71
  if (empty($size[0])) $size[0] = 'auto';
72
  if (empty($size[1])) $size[1] = 'auto';
73
 
74
+ $image = $slide->fill($data->get('image', ''));
75
+ if (!empty($image)) {
76
+ $html = N2Html::tag('img', self::optimizeImage($image, $data, $slider) + array(
77
+ "id" => $id,
78
+ "alt" => htmlspecialchars($slide->fill($data->get('alt', ''))),
79
+ "style" => "display: inline-block; max-width: 100%; width: {$size[0]};height: {$size[1]};",
80
+ "class" => $data->get('cssclass', '') . ' n2-ow',
81
+ "title" => htmlspecialchars($slide->fill($data->get('title', '')))
82
+ ), false);
83
+ } else {
84
+ $html = '';
85
+ }
86
 
87
  $style = N2StyleRenderer::render($data->get('style'), 'heading', $slider->elementId, 'div#' . $slider->elementId . ' ');
88
  return N2Html::tag("div", array(
library/smartslider/plugins/item/image/image/configuration.xml CHANGED
@@ -8,6 +8,7 @@
8
  <option value="_blank">Blank</option>
9
  </param>
10
  <param type="list" label="Rel">
 
11
  <option value="nofollow">nofollow</option>
12
  <option value="noreferrer">noreferrer</option>
13
  <option value="author">author</option>
8
  <option value="_blank">Blank</option>
9
  </param>
10
  <param type="list" label="Rel">
11
+ <option value=""/>
12
  <option value="nofollow">nofollow</option>
13
  <option value="noreferrer">noreferrer</option>
14
  <option value="author">author</option>
library/smartslider/plugins/item/vimeo/vimeo.php CHANGED
@@ -2,8 +2,7 @@
2
 
3
  N2Loader::import('libraries.plugins.N2SliderItemAbstract', 'smartslider');
4
 
5
- class N2SSPluginItemVimeo extends N2SSPluginItemAbstract
6
- {
7
 
8
  var $_identifier = 'vimeo';
9
 
@@ -32,17 +31,35 @@ class N2SSPluginItemVimeo extends N2SSPluginItemAbstract
32
 
33
  $style = '';
34
 
35
- $hasImage = 0;
 
36
  $playImage = '';
37
- $image = $data->get('image');
38
  if (!empty($image)) {
39
- $style = 'cursor:pointer; background: url(' . N2ImageHelper::fixed($data->get('image')) . ') no-repeat 50% 50%; background-size: cover';
40
  $hasImage = 1;
41
- $playImage = '<img class="n2-video-play n2-ow" alt="" src="' . N2ImageHelperAbstract::SVGToBase64('$ss$/images/play.svg') . '"/>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  }
43
 
44
  N2JS::addInline('window["' . $slider->elementId . '"].ready(function() {
45
- var vimeo = new NextendSmartSliderVimeoItem(this, "' . $itemId . '", "' . $slider->elementId . '", ' . $data->toJSON() . ', ' . $hasImage . ');
46
  });
47
  ');
48
 
@@ -68,7 +85,8 @@ class N2SSPluginItemVimeo extends N2SSPluginItemAbstract
68
  'byline' => 1,
69
  'portrait' => 0,
70
  'color' => '00adef',
71
- 'loop' => 0
 
72
  );
73
  }
74
 
@@ -77,7 +95,25 @@ class N2SSPluginItemVimeo extends N2SSPluginItemAbstract
77
  }
78
 
79
  public function getFilled($slide, $data) {
 
80
  $data->set('vimeourl', $slide->fill($data->get('vimeourl', '')));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  return $data;
82
  }
83
  }
2
 
3
  N2Loader::import('libraries.plugins.N2SliderItemAbstract', 'smartslider');
4
 
5
+ class N2SSPluginItemVimeo extends N2SSPluginItemAbstract {
 
6
 
7
  var $_identifier = 'vimeo';
8
 
31
 
32
  $style = '';
33
 
34
+ $hasImage = 0;
35
+ $image = $data->get('image');
36
  $playImage = '';
 
37
  if (!empty($image)) {
38
+ $style = 'cursor:pointer; background: url(' . N2ImageHelper::fixed($image) . ') no-repeat 50% 50%; background-size: cover';
39
  $hasImage = 1;
40
+ if ($data->get('playbutton', 1) != 0) {
41
+ $playImage = '<img class="n2-video-play n2-ow" alt="" style="';
42
+ $playWidth = intval($data->get('playbuttonwidth', '48'));
43
+ $playHeight = intval($data->get('playbuttonheight', '48'));
44
+ if ($playWidth != 0 && $playHeight != 0) {
45
+ $playImage .= 'width:' . $playWidth . 'px;';
46
+ $playImage .= 'height:' . $playHeight . 'px;';
47
+ $playImage .= 'margin-left:' . ($playWidth / -2) . 'px;';
48
+ $playImage .= 'margin-top:' . ($playHeight / -2) . 'px;';
49
+ }
50
+ $playImage .= '" src="';
51
+ $playbuttonimage = $data->get('playbuttonimage', '');
52
+ if (!empty($playbuttonimage)) {
53
+ $playImage .= N2ImageHelper::fixed($data->get('playbuttonimage', ''));
54
+ } else {
55
+ $playImage .= N2ImageHelperAbstract::SVGToBase64('$ss$/images/play.svg');
56
+ }
57
+ $playImage .= '"/>';
58
+ }
59
  }
60
 
61
  N2JS::addInline('window["' . $slider->elementId . '"].ready(function() {
62
+ var vimeo = new NextendSmartSliderVimeoItem(this, "' . $itemId . '", "' . $slider->elementId . '", ' . $data->toJSON() . ', ' . $hasImage . ', ' . $slide->fill($data->get('start', '0')) . ');
63
  });
64
  ');
65
 
85
  'byline' => 1,
86
  'portrait' => 0,
87
  'color' => '00adef',
88
+ 'loop' => 0,
89
+ 'start' => 0
90
  );
91
  }
92
 
95
  }
96
 
97
  public function getFilled($slide, $data) {
98
+ $data->set('image', $slide->fill($data->get('image', '')));
99
  $data->set('vimeourl', $slide->fill($data->get('vimeourl', '')));
100
+
101
+ return $data;
102
+ }
103
+
104
+ public function prepareExport($export, $data) {
105
+ $export->addImage($data->get('image'));
106
+ }
107
+
108
+ public function prepareImport($import, $data) {
109
+ $data->set('image', $import->fixImage($data->get('image')));
110
+
111
+ return $data;
112
+ }
113
+
114
+ public function prepareFixed($data) {
115
+ $data->set('image', $this->fixImage($data->get('image')));
116
+
117
  return $data;
118
  }
119
  }
library/smartslider/plugins/item/vimeo/vimeo/configuration.xml CHANGED
@@ -24,6 +24,15 @@
24
  <option value="1080p">1080p</option>
25
  <option value="-1">Default</option>
26
  </param>
27
- </param>
 
 
 
 
 
 
 
 
 
28
  </params>
29
  </root>
24
  <option value="1080p">1080p</option>
25
  <option value="-1">Default</option>
26
  </param>
27
+ <param name="start" type="text" label="Start" style="width:20px;" default="0"/></param>
28
+ <param type="group" class="n2-expert">
29
+ <param name="playbutton" label="Play button" type="onoff" default="1"/>
30
+ <param name="playbuttonwidth" type="text" label="Play button width" default="48" style="width:32px;">
31
+ <unit value="px">px</unit>
32
+ </param>
33
+ <param name="playbuttonheight" type="text" label="Play button height" default="48" style="width:32px;">
34
+ <unit value="px">px</unit>
35
+ </param>
36
+ <param name="playbuttonimage" type="image" label="Play button image"/></param>
37
  </params>
38
  </root>
library/smartslider/plugins/item/youtube/youtube.php CHANGED
@@ -30,17 +30,19 @@ class N2SSPluginItemYouTube extends N2SSPluginItemAbstract {
30
  * @var $data N2Data
31
  */
32
  $data->fillDefault(array(
33
- 'image' => '',
34
- 'start' => 0,
35
- 'volume' => -1,
36
- 'autoplay' => 0,
37
- 'controls' => 1,
38
- 'center' => 0,
39
- 'loop' => 0,
40
- 'reset' => 0,
41
- 'theme' => 'dark',
42
- 'related' => 0,
43
- 'vq' => 'default'
 
 
44
  ));
45
 
46
  $rawYTUrl = $slide->fill($data->get('youtubeurl', ''));
@@ -70,7 +72,23 @@ class N2SSPluginItemYouTube extends N2SSPluginItemAbstract {
70
  $style = 'cursor:pointer; background: url(' . N2ImageHelper::fixed($image) . ') no-repeat 50% 50%; background-size: cover';
71
  $hasImage = 1;
72
  if ($data->get('playbutton', 1) != 0) {
73
- $playImage = '<img class="n2-video-play n2-ow" alt="" src="' . N2ImageHelperAbstract::SVGToBase64('$ss$/images/play.svg') . '"/>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  }
75
  }
76
 
@@ -87,9 +105,10 @@ class N2SSPluginItemYouTube extends N2SSPluginItemAbstract {
87
  function _renderAdmin($data, $itemId, $slider, $slide) {
88
  $image = $slide->fill($data->get('image'));
89
  $data->set('image', $image);
 
90
  return N2Html::tag('div', array(
91
  "style" => 'width: 100%; height: 100%; background: url(' . N2ImageHelper::fixed($data->getIfEmpty('image', '$system$/images/placeholder/video.png')) . ') no-repeat 50% 50%; background-size: cover;'
92
- ), '<img class="n2-video-play n2-ow" alt="" src="' . N2ImageHelperAbstract::SVGToBase64('$ss$/images/play.svg') . '"/>');
93
  }
94
 
95
  function parseYoutubeUrl($youTubeUrl) {
@@ -104,18 +123,20 @@ class N2SSPluginItemYouTube extends N2SSPluginItemAbstract {
104
 
105
  function getValues() {
106
  return array(
107
- 'code' => 'qesNtYIBDfs',
108
- 'youtubeurl' => 'https://www.youtube.com/watch?v=MKmIwHAFjSU',
109
- 'image' => '$system$/images/placeholder/video.png',
110
- 'autoplay' => 0,
111
- 'controls' => 1,
112
- 'defaultimage' => 'maxresdefault',
113
- 'related' => '0',
114
- 'vq' => 'default',
115
- 'center' => 0,
116
- 'loop' => 0,
117
- 'reset' => 0,
118
- 'start' => '0'
 
 
119
  );
120
  }
121
 
@@ -126,6 +147,23 @@ class N2SSPluginItemYouTube extends N2SSPluginItemAbstract {
126
  public function getFilled($slide, $data) {
127
  $data->set('image', $slide->fill($data->get('image', '')));
128
  $data->set('youtubeurl', $slide->fill($data->get('youtubeurl', '')));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  return $data;
130
  }
131
  }
30
  * @var $data N2Data
31
  */
32
  $data->fillDefault(array(
33
+ 'image' => '',
34
+ 'start' => 0,
35
+ 'volume' => -1,
36
+ 'autoplay' => 0,
37
+ 'controls' => 1,
38
+ 'center' => 0,
39
+ 'loop' => 0,
40
+ 'showinfo' => 1,
41
+ 'modestbranding' => 1,
42
+ 'reset' => 0,
43
+ 'theme' => 'dark',
44
+ 'related' => 0,
45
+ 'vq' => 'default'
46
  ));
47
 
48
  $rawYTUrl = $slide->fill($data->get('youtubeurl', ''));
72
  $style = 'cursor:pointer; background: url(' . N2ImageHelper::fixed($image) . ') no-repeat 50% 50%; background-size: cover';
73
  $hasImage = 1;
74
  if ($data->get('playbutton', 1) != 0) {
75
+ $playImage = '<img class="n2-video-play n2-ow" alt="" style="';
76
+ $playWidth = intval($data->get('playbuttonwidth', '48'));
77
+ $playHeight = intval($data->get('playbuttonheight', '48'));
78
+ if ($playWidth != 0 && $playHeight != 0) {
79
+ $playImage .= 'width:' . $playWidth . 'px;';
80
+ $playImage .= 'height:' . $playHeight . 'px;';
81
+ $playImage .= 'margin-left:' . ($playWidth / -2) . 'px;';
82
+ $playImage .= 'margin-top:' . ($playHeight / -2) . 'px;';
83
+ }
84
+ $playImage .= '" src="';
85
+ $playbuttonimage = $data->get('playbuttonimage', '');
86
+ if (!empty($playbuttonimage)) {
87
+ $playImage .= N2ImageHelper::fixed($data->get('playbuttonimage', ''));
88
+ } else {
89
+ $playImage .= N2ImageHelperAbstract::SVGToBase64('$ss$/images/play.svg');
90
+ }
91
+ $playImage .= '"/>';
92
  }
93
  }
94
 
105
  function _renderAdmin($data, $itemId, $slider, $slide) {
106
  $image = $slide->fill($data->get('image'));
107
  $data->set('image', $image);
108
+
109
  return N2Html::tag('div', array(
110
  "style" => 'width: 100%; height: 100%; background: url(' . N2ImageHelper::fixed($data->getIfEmpty('image', '$system$/images/placeholder/video.png')) . ') no-repeat 50% 50%; background-size: cover;'
111
+ ), $data->get('playbutton', 1) ? '<img class="n2-video-play n2-ow" alt="" src="' . N2ImageHelperAbstract::SVGToBase64('$ss$/images/play.svg') . '"/>' : '');
112
  }
113
 
114
  function parseYoutubeUrl($youTubeUrl) {
123
 
124
  function getValues() {
125
  return array(
126
+ 'code' => 'qesNtYIBDfs',
127
+ 'youtubeurl' => 'https://www.youtube.com/watch?v=MKmIwHAFjSU',
128
+ 'image' => '$system$/images/placeholder/video.png',
129
+ 'autoplay' => 0,
130
+ 'controls' => 1,
131
+ 'defaultimage' => 'maxresdefault',
132
+ 'related' => '0',
133
+ 'vq' => 'default',
134
+ 'center' => 0,
135
+ 'loop' => 0,
136
+ 'showinfo' => 1,
137
+ 'modestbranding' => 1,
138
+ 'reset' => 0,
139
+ 'start' => '0'
140
  );
141
  }
142
 
147
  public function getFilled($slide, $data) {
148
  $data->set('image', $slide->fill($data->get('image', '')));
149
  $data->set('youtubeurl', $slide->fill($data->get('youtubeurl', '')));
150
+
151
+ return $data;
152
+ }
153
+
154
+ public function prepareExport($export, $data) {
155
+ $export->addImage($data->get('image'));
156
+ }
157
+
158
+ public function prepareImport($import, $data) {
159
+ $data->set('image', $import->fixImage($data->get('image')));
160
+
161
+ return $data;
162
+ }
163
+
164
+ public function prepareFixed($data) {
165
+ $data->set('image', $this->fixImage($data->get('image')));
166
+
167
  return $data;
168
  }
169
  }
library/smartslider/plugins/item/youtube/youtube/configuration.xml CHANGED
@@ -27,11 +27,19 @@
27
  <option value="highres">High res</option>
28
  <option value="default">Default</option>
29
  </param>
30
- <param name="playbutton" label="Play button" type="onoff" default="1"/>
31
  <param name="autoplay" type="onoff" label="Autoplay" default="0"/>
32
  <param name="controls" type="onoff" label="Controls" default="1"/>
33
  <param name="center" type="onoff" label="Centered" default="0"/>
34
  <param name="loop" type="onoff" label="Loop" default="0"/>
35
  <param name="related" type="onoff" label="Related" default="0"/></param>
 
 
 
 
 
 
 
 
 
36
  </params>
37
  </root>
27
  <option value="highres">High res</option>
28
  <option value="default">Default</option>
29
  </param>
 
30
  <param name="autoplay" type="onoff" label="Autoplay" default="0"/>
31
  <param name="controls" type="onoff" label="Controls" default="1"/>
32
  <param name="center" type="onoff" label="Centered" default="0"/>
33
  <param name="loop" type="onoff" label="Loop" default="0"/>
34
  <param name="related" type="onoff" label="Related" default="0"/></param>
35
+ <param type="group">
36
+ <param name="playbutton" label="Play button" type="onoff" default="1"/>
37
+ <param name="playbuttonwidth" type="text" label="Play button width" default="48" style="width:32px;">
38
+ <unit value="px">px</unit>
39
+ </param>
40
+ <param name="playbuttonheight" type="text" label="Play button height" default="48" style="width:32px;">
41
+ <unit value="px">px</unit>
42
+ </param>
43
+ <param name="playbuttonimage" type="image" label="Play button image"/></param>
44
  </params>
45
  </root>
library/smartslider/plugins/widgetarrow/image/image.php CHANGED
@@ -192,11 +192,24 @@ class N2SSPluginWidgetArrowImage extends N2SSPluginWidgetAbstract {
192
  ));
193
  }
194
 
 
 
 
 
 
 
 
 
 
 
195
  if ($animation == 'none' || $animation == 'fade') {
196
  return N2Html::tag('div', $displayAttributes + $attributes + array(
197
  'id' => $id . '-arrow-' . $side,
198
  'class' => $displayClass . $styleClass . 'nextend-arrow n2-ib nextend-arrow-' . $side . ' nextend-arrow-animated-' . $animation,
199
- 'style' => $style
 
 
 
200
  ), $image);
201
  }
202
 
@@ -204,7 +217,10 @@ class N2SSPluginWidgetArrowImage extends N2SSPluginWidgetAbstract {
204
  return N2Html::tag('div', $displayAttributes + $attributes + array(
205
  'id' => $id . '-arrow-' . $side,
206
  'class' => $displayClass . 'nextend-arrow n2-ib nextend-arrow-animated nextend-arrow-animated-' . $animation . ' nextend-arrow-' . $side,
207
- 'style' => $style
 
 
 
208
  ), N2Html::tag('div', array(
209
  'class' => $styleClass . ' n2-resize'
210
  ), $image) . N2Html::tag('div', array(
192
  ));
193
  }
194
 
195
+ $label = '';
196
+ switch ($side) {
197
+ case 'previous':
198
+ $label = 'Previous slide';
199
+ break;
200
+ case 'next':
201
+ $label = 'Next slide';
202
+ break;
203
+ }
204
+
205
  if ($animation == 'none' || $animation == 'fade') {
206
  return N2Html::tag('div', $displayAttributes + $attributes + array(
207
  'id' => $id . '-arrow-' . $side,
208
  'class' => $displayClass . $styleClass . 'nextend-arrow n2-ib nextend-arrow-' . $side . ' nextend-arrow-animated-' . $animation,
209
+ 'style' => $style,
210
+ 'role' => 'button',
211
+ 'aria-label' => $label,
212
+ 'tabindex' => '0'
213
  ), $image);
214
  }
215
 
217
  return N2Html::tag('div', $displayAttributes + $attributes + array(
218
  'id' => $id . '-arrow-' . $side,
219
  'class' => $displayClass . 'nextend-arrow n2-ib nextend-arrow-animated nextend-arrow-animated-' . $animation . ' nextend-arrow-' . $side,
220
+ 'style' => $style,
221
+ 'role' => 'button',
222
+ 'aria-label' => $label,
223
+ 'tabindex' => '0'
224
  ), N2Html::tag('div', array(
225
  'class' => $styleClass . ' n2-resize'
226
  ), $image) . N2Html::tag('div', array(
library/smartslider/plugins/widgetautoplay/image/image.php CHANGED
@@ -123,13 +123,17 @@ class N2SSPluginWidgetAutoplayImage extends N2SSPluginWidgetAbstract {
123
 
124
  $html = N2Html::tag('div', $displayAttributes + $attributes + array(
125
  'class' => $displayClass . $styleClass . 'nextend-autoplay n2-ib nextend-autoplay-image',
126
- 'style' => $style
 
 
127
  ), N2Html::image($play, 'Play', array(
128
  'class' => 'nextend-autoplay-play n2-ow',
129
- 'data-no-lazy' => '1'
 
130
  )) . N2Html::image($pause, 'Pause', array(
131
  'class' => 'nextend-autoplay-pause n2-ow',
132
- 'data-no-lazy' => '1'
 
133
  )));
134
  }
135
 
123
 
124
  $html = N2Html::tag('div', $displayAttributes + $attributes + array(
125
  'class' => $displayClass . $styleClass . 'nextend-autoplay n2-ib nextend-autoplay-image',
126
+ 'style' => $style,
127
+ 'role' => 'button',
128
+ 'aria-label' => 'Pause autoplay'
129
  ), N2Html::image($play, 'Play', array(
130
  'class' => 'nextend-autoplay-play n2-ow',
131
+ 'data-no-lazy' => '1',
132
+ 'tabindex' => '0'
133
  )) . N2Html::image($pause, 'Pause', array(
134
  'class' => 'nextend-autoplay-pause n2-ow',
135
+ 'data-no-lazy' => '1',
136
+ 'tabindex' => '0'
137
  )));
138
  }
139
 
library/smartslider/plugins/widgetbullet/transition/transition.php CHANGED
@@ -74,6 +74,7 @@ class N2SSPluginWidgetBulletTransition extends N2SSPluginWidgetAbstract {
74
  foreach ($slider->slides AS $slide) {
75
  $dots[] = N2Html::tag('div', array(
76
  'class' => $bulletStyle . ($slide->isActive() ? 'n2-active' : ''),
 
77
  ), '');
78
 
79
  $i++;
74
  foreach ($slider->slides AS $slide) {
75
  $dots[] = N2Html::tag('div', array(
76
  'class' => $bulletStyle . ($slide->isActive() ? 'n2-active' : ''),
77
+ 'tabindex' => '0'
78
  ), '');
79
 
80
  $i++;
library/smartslider/plugins/widgetthumbnail/default/default.php CHANGED
@@ -31,7 +31,9 @@ class N2SSPluginWidgetThumbnailDefault extends N2SSPluginWidgetAbstract {
31
  'widget-thumbnail-overlay' => 0,
32
  'widget-thumbnail-show-image' => 1,
33
  'widget-thumbnail-width' => 100,
34
- 'widget-thumbnail-height' => 60
 
 
35
  );
36
  }
37
 
@@ -49,6 +51,7 @@ class N2SSPluginWidgetThumbnailDefault extends N2SSPluginWidgetAbstract {
49
  self::$key . 'position-',
50
  'thumbnail'
51
  );
 
52
  return $positions;
53
  }
54
 
@@ -58,6 +61,7 @@ class N2SSPluginWidgetThumbnailDefault extends N2SSPluginWidgetAbstract {
58
  if ($ini == 0) return '';
59
  $ini += strlen($start);
60
  $len = strpos($string, $end, $ini) - $ini;
 
61
  return substr($string, $ini, $len);
62
  }
63
 
@@ -124,20 +128,13 @@ class N2SSPluginWidgetThumbnailDefault extends N2SSPluginWidgetAbstract {
124
 
125
  $group = max(1, intval($params->get(self::$key . 'group')));
126
 
127
- $orientation = self::getOrientationByPosition($params->get(self::$key . 'position-mode'), $params->get(self::$key . 'position-area'), $params->get(self::$key . 'orientation'));
128
- if ($orientation == 'auto') {
129
- $orientation = 'vertical';
130
- }
131
-
132
- if($params->get('widget-thumbnail-center',0)){
133
- $tablestyle = 'margin:0 auto;';
134
- } else {
135
- $tablestyle = '';
136
  }
137
-
138
- $slides = N2Html::openTag('table', array('class' => 'n2-ow','style' => $tablestyle));
139
-
140
- $containerStyle = '';
141
  $captionClass = 'n2-caption-' . $captionPlacement;
142
  $captionExtraStyle = '';
143
  switch ($captionPlacement) {
@@ -187,6 +184,7 @@ class N2SSPluginWidgetThumbnailDefault extends N2SSPluginWidgetAbstract {
187
  $thumbnailCode = '';
188
  }
189
 
 
190
  foreach ($slider->slides AS $slide) {
191
  $active = '';
192
  if ($slider->_activeSlide == $i) {
@@ -239,18 +237,14 @@ class N2SSPluginWidgetThumbnailDefault extends N2SSPluginWidgetAbstract {
239
  $inner = $image . $inner;
240
  }
241
 
242
- $rows[$row][] = N2Html::tag('td', array(), N2Html::tag('div', array(
243
  'class' => $slideStyle . $active,
244
- 'style' => $containerStyle
245
- ), $inner));
 
246
  $i++;
247
  }
248
 
249
- foreach ($rows AS $row) {
250
- $slides .= N2Html::tag('tr', array(), implode('', $row));
251
- }
252
- $slides .= N2Html::closeTag('table');
253
-
254
  $parameters = array(
255
  'overlay' => $params->get(self::$key . 'position-mode') != 'simple' || $params->get(self::$key . 'overlay'),
256
  'area' => intval($params->get(self::$key . 'position-area')),
@@ -258,7 +252,8 @@ class N2SSPluginWidgetThumbnailDefault extends N2SSPluginWidgetAbstract {
258
  'group' => $group,
259
  'action' => $params->get(self::$key . 'action'),
260
  'captionSize' => intval($captionSize),
261
- 'minimumThumbnailCount' => max(1, intval($params->get(self::$key . 'minimum-thumbnail-count'))) + 0.5
 
262
  );
263
 
264
  N2JS::addInline('new NextendSmartSliderWidgetThumbnailDefault("' . $id . '", ' . json_encode($parameters) . ');');
@@ -301,13 +296,14 @@ class N2SSPluginWidgetThumbnailDefault extends N2SSPluginWidgetAbstract {
301
  }
302
  }
303
 
 
304
  return N2Html::tag('div', $displayAttributes + $attributes + array(
305
  'class' => $displayClass . 'nextend-thumbnail nextend-thumbnail-default nextend-thumbnail-' . $orientation,
306
  'style' => $style
307
  ), $previous . $next . N2Html::tag('div', array(
308
  'class' => 'nextend-thumbnail-inner'
309
  ), N2Html::tag('div', array(
310
- 'class' => $barStyle . 'nextend-thumbnail-scroller',
311
  ), $slides)));
312
  }
313
 
31
  'widget-thumbnail-overlay' => 0,
32
  'widget-thumbnail-show-image' => 1,
33
  'widget-thumbnail-width' => 100,
34
+ 'widget-thumbnail-height' => 60,
35
+ 'widget-thumbnail-align-content' => 'start',
36
+ 'widget-thumbnail-invert-group-direction' => 0
37
  );
38
  }
39
 
51
  self::$key . 'position-',
52
  'thumbnail'
53
  );
54
+
55
  return $positions;
56
  }
57
 
61
  if ($ini == 0) return '';
62
  $ini += strlen($start);
63
  $len = strpos($string, $end, $ini) - $ini;
64
+
65
  return substr($string, $ini, $len);
66
  }
67
 
128
 
129
  $group = max(1, intval($params->get(self::$key . 'group')));
130
 
131
+ $orientation = $params->get(self::$key . 'orientation');
132
+ if ($params->get(self::$key . 'orientation') == 'auto') {
133
+ $orientation = self::getOrientationByPosition($params->get(self::$key . 'position-mode'), $params->get(self::$key . 'position-area'), $orientation);
134
+ if ($orientation == 'auto') {
135
+ $orientation = 'vertical';
136
+ }
 
 
 
137
  }
 
 
 
 
138
  $captionClass = 'n2-caption-' . $captionPlacement;
139
  $captionExtraStyle = '';
140
  switch ($captionPlacement) {
184
  $thumbnailCode = '';
185
  }
186
 
187
+ $slides = '';
188
  foreach ($slider->slides AS $slide) {
189
  $active = '';
190
  if ($slider->_activeSlide == $i) {
237
  $inner = $image . $inner;
238
  }
239
 
240
+ $slides .= N2Html::tag('div', array(
241
  'class' => $slideStyle . $active,
242
+ 'style' => $containerStyle,
243
+ 'tabindex' => '0'
244
+ ), $inner);
245
  $i++;
246
  }
247
 
 
 
 
 
 
248
  $parameters = array(
249
  'overlay' => $params->get(self::$key . 'position-mode') != 'simple' || $params->get(self::$key . 'overlay'),
250
  'area' => intval($params->get(self::$key . 'position-area')),
252
  'group' => $group,
253
  'action' => $params->get(self::$key . 'action'),
254
  'captionSize' => intval($captionSize),
255
+ 'minimumThumbnailCount' => max(1, intval($params->get(self::$key . 'minimum-thumbnail-count'))) + 0.5,
256
+ 'invertGroupDirection' => intval($params->get('widget-thumbnail-invert-group-direction', 0))
257
  );
258
 
259
  N2JS::addInline('new NextendSmartSliderWidgetThumbnailDefault("' . $id . '", ' . json_encode($parameters) . ');');
296
  }
297
  }
298
 
299
+
300
  return N2Html::tag('div', $displayAttributes + $attributes + array(
301
  'class' => $displayClass . 'nextend-thumbnail nextend-thumbnail-default nextend-thumbnail-' . $orientation,
302
  'style' => $style
303
  ), $previous . $next . N2Html::tag('div', array(
304
  'class' => 'nextend-thumbnail-inner'
305
  ), N2Html::tag('div', array(
306
+ 'class' => $barStyle . 'nextend-thumbnail-scroller n2-align-content-' . $params->get('widget-thumbnail-align-content') . ($params->get('widget-thumbnail-invert-group-direction', 0) ? ' nextend-thumbnail-invert-group-dir' : ''),
307
  ), $slides)));
308
  }
309
 
library/smartslider/plugins/widgetthumbnail/default/default/config.xml CHANGED
@@ -4,6 +4,13 @@
4
  <unit>Slides</unit>
5
  </param>
6
  <param name="widget-thumbnail-position" type="widgetposition" label="Position"/>
 
 
 
 
 
 
 
7
  <param type="group" label="Style">
8
  <param name="widget-thumbnail-style-bar" type="style" previewmode="simple" style2="sliderwidget-thumbnail-style-slides" label="Bar" set="1900">
9
  <![CDATA[ <div class="{styleClassName}" style="overflow: hidden; width:{$('#sliderwidget-thumbnail-width').val()*2.5}px;"><div style="width:200%"><div class="{styleClassName2}" style="display: inline-block; vertical-align:top; width:{$('#sliderwidget-thumbnail-width').val()}px; height: {$('#sliderwidget-thumbnail-height').val()}px; background: url('$system$/images/placeholder/imageback.png');"></div><div class="{styleClassName2} n2-active" style="display: inline-block; vertical-align:top; width:{$('#sliderwidget-thumbnail-width').val()}px; height: {$('#sliderwidget-thumbnail-height').val()}px; background: url('$system$/images/placeholder/image.png');"></div><div class="{styleClassName2}" style="display: inline-block; vertical-align:top; width:{$('#sliderwidget-thumbnail-width').val()}px; height: {$('#sliderwidget-thumbnail-height').val()}px; background: url('$system$/images/placeholder/imagefront.png');"></div></div></div> ]]>
4
  <unit>Slides</unit>
5
  </param>
6
  <param name="widget-thumbnail-position" type="widgetposition" label="Position"/>
7
+ <param name="widget-thumbnail-align-content" type="radio" label="Align thumbnails" default="start">
8
+ <option value="start">Start</option>
9
+ <option value="center">Center</option>
10
+ <option value="end">End</option>
11
+ <option value="space-between">Space between</option>
12
+ <option value="space-around">Space around</option>
13
+ </param>
14
  <param type="group" label="Style">
15
  <param name="widget-thumbnail-style-bar" type="style" previewmode="simple" style2="sliderwidget-thumbnail-style-slides" label="Bar" set="1900">
16
  <![CDATA[ <div class="{styleClassName}" style="overflow: hidden; width:{$('#sliderwidget-thumbnail-width').val()*2.5}px;"><div style="width:200%"><div class="{styleClassName2}" style="display: inline-block; vertical-align:top; width:{$('#sliderwidget-thumbnail-width').val()}px; height: {$('#sliderwidget-thumbnail-height').val()}px; background: url('$system$/images/placeholder/imageback.png');"></div><div class="{styleClassName2} n2-active" style="display: inline-block; vertical-align:top; width:{$('#sliderwidget-thumbnail-width').val()}px; height: {$('#sliderwidget-thumbnail-height').val()}px; background: url('$system$/images/placeholder/image.png');"></div><div class="{styleClassName2}" style="display: inline-block; vertical-align:top; width:{$('#sliderwidget-thumbnail-width').val()}px; height: {$('#sliderwidget-thumbnail-height').val()}px; background: url('$system$/images/placeholder/imagefront.png');"></div></div></div> ]]>
library/smartslider/smartslider3.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class N2SS3 {
4
 
5
- public static $version = '3.1.6';
6
 
7
  public static $product = 'smartslider3';
8
 
@@ -67,7 +67,7 @@ class N2SS3 {
67
  N2Message::error('Your license key expired!');
68
  break;
69
  case 'DOMAIN_REGISTER_FAILED':
70
- N2Message::error('Your license key authorized on a different domain!');
71
  break;
72
  case 'LICENSE_INVALID':
73
  N2Message::error('Your license key invalid, please enter again!');
@@ -98,7 +98,7 @@ class N2SS3 {
98
 
99
  public static function showBeacon($search = '') {
100
  if (intval(N2SmartSliderSettings::get('beacon', 1))) {
101
- echo '<script>!function(e,o,n){window.HSCW=o,window.HS=n,n.beacon=n.beacon||{};var t=n.beacon;t.userConfig={},t.readyQueue=[],t.config=function(e){this.userConfig=e},t.ready=function(e){this.readyQueue.push(e)},o.config={docs:{enabled:!0,baseUrl:"//smart-slider-3.helpscoutdocs.com/"},contact:{enabled:!0,formId:"5bf2183c-77e2-11e5-8846-0e599dc12a51"}};var r=e.getElementsByTagName("script")[0],c=e.createElement("script");c.type="text/javascript",c.async=!0,c.src="https://djtflbt20bdde.cloudfront.net/",r.parentNode.insertBefore(c,r)}(document,window.HSCW||{},window.HS||{});HS.beacon.ready(function () {HS.beacon.search("' . $search . '");});</script>';
102
  }
103
  }
104
  }
2
 
3
  class N2SS3 {
4
 
5
+ public static $version = '3.1.10';
6
 
7
  public static $product = 'smartslider3';
8
 
67
  N2Message::error('Your license key expired!');
68
  break;
69
  case 'DOMAIN_REGISTER_FAILED':
70
+ N2Message::error('Your license key authorized on a different domain! You can move it to this domain like <a href="https://smartslider3.helpscoutdocs.com/article/1101-license#move" target="_blank">this</a>, or get new one: <a href="https://smartslider3.com/pricing" target="_blank">smartslider3.com</a>');
71
  break;
72
  case 'LICENSE_INVALID':
73
  N2Message::error('Your license key invalid, please enter again!');
98
 
99
  public static function showBeacon($search = '') {
100
  if (intval(N2SmartSliderSettings::get('beacon', 1))) {
101
+ echo '<script>!function(e,o,n){window.HSCW=o,window.HS=n,n.beacon=n.beacon||{};var t=n.beacon;t.userConfig={},t.readyQueue=[],t.config=function(e){this.userConfig=e},t.ready=function(e){this.readyQueue.push(e)},o.config={docs:{enabled:!0,baseUrl:"//smartslider3.helpscoutdocs.com/"},contact:{enabled:!0,formId:"5bf2183c-77e2-11e5-8846-0e599dc12a51"}};var r=e.getElementsByTagName("script")[0],c=e.createElement("script");c.type="text/javascript",c.async=!0,c.src="https://djtflbt20bdde.cloudfront.net/",r.parentNode.insertBefore(c,r)}(document,window.HSCW||{},window.HS||{});HS.beacon.ready(function () {HS.beacon.search("' . $search . '");});</script>';
102
  }
103
  }
104
  }
library/wordpress/plugins/generator/posts/posts/generator.php CHANGED
@@ -8,6 +8,23 @@ class N2GeneratorPostsPosts extends N2GeneratorAbstract {
8
  return $name . N2Translation::getCurrentLocale();
9
  }
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  protected function _getData($count, $startIndex) {
12
  global $post, $wp_the_query;
13
  $tmpPost = $post;
@@ -80,10 +97,35 @@ class N2GeneratorPostsPosts extends N2GeneratorAbstract {
80
  $record['url'] = get_permalink();
81
  $record['title'] = apply_filters('the_title', get_the_title());
82
  $record['description'] = $record['content'] = get_the_content();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  $record['author_name'] = $record['author'] = get_the_author();
84
  $record['author_url'] = get_the_author_meta('url');
85
  $record['date'] = get_the_date();
86
- $record['excerpt'] = get_the_excerpt();
87
  $record['modified'] = get_the_modified_date();
88
 
89
  $category = get_the_category($post->ID);
@@ -148,7 +190,7 @@ class N2GeneratorPostsPosts extends N2GeneratorAbstract {
148
  $record[$k] = $v['url'];
149
  } else if(is_array($v)){
150
  foreach($v AS $v_v => $k_k){
151
- if(isset($k_k['url'])){
152
  $record[$k . $v_v] = $k_k['url'];
153
  }
154
  }
@@ -167,6 +209,8 @@ class N2GeneratorPostsPosts extends N2GeneratorAbstract {
167
  }
168
  }
169
 
 
 
170
  $data[$i] = &$record;
171
  unset($record);
172
  }
8
  return $name . N2Translation::getCurrentLocale();
9
  }
10
 
11
+ function get_string_between($str, $startDelimiter, $endDelimiter) {
12
+ $contents = array();
13
+ $startDelimiterLength = strlen($startDelimiter);
14
+ $endDelimiterLength = strlen($endDelimiter);
15
+ $startFrom = $contentStart = $contentEnd = 0;
16
+ while (false !== ($contentStart = strpos($str, $startDelimiter, $startFrom))) {
17
+ $contentStart += $startDelimiterLength;
18
+ $contentEnd = strpos($str, $endDelimiter, $contentStart);
19
+ if (false === $contentEnd) {
20
+ break;
21
+ }
22
+ $contents[] = substr($str, $contentStart, $contentEnd - $contentStart);
23
+ $startFrom = $contentEnd + $endDelimiterLength;
24
+ }
25
+ return $contents;
26
+ }
27
+
28
  protected function _getData($count, $startIndex) {
29
  global $post, $wp_the_query;
30
  $tmpPost = $post;
97
  $record['url'] = get_permalink();
98
  $record['title'] = apply_filters('the_title', get_the_title());
99
  $record['description'] = $record['content'] = get_the_content();
100
+ if (class_exists('ET_Builder_Plugin')) {
101
+ if (strpos($record['description'], 'et_pb_slide background_image') !== false) {
102
+ $et_slides = $this->get_string_between($record['description'], 'et_pb_slide background_image="', '"');
103
+ for ($j = 0; $j < count($et_slides); $j++) {
104
+ $record['et_slide' . $j] = $et_slides[$j];
105
+ }
106
+ }
107
+ if (strpos($record['description'], 'background_url') !== false){
108
+ $et_backgrounds = $this->get_string_between($record['description'], 'background_url="', '"');
109
+ for ($j=0; $j < count($et_backgrounds); $j++){
110
+ $record['et_background' . $j] = $et_backgrounds[$j];
111
+ }
112
+ }
113
+ if (strpos($record['description'], 'logo_image_url') !== false){
114
+ $et_logoImages = $this->get_string_between($record['description'], 'logo_image_url="', '"');
115
+ for($j=0; $j < count($et_logoImages); $j++){
116
+ $record['et_logoImage' . $j] = $et_logoImages[$j];
117
+ }
118
+ }
119
+ if (strpos($record['description'], 'slider-content') !== false){
120
+ $et_contents = $this->get_string_between($record['description'], 'slider-content">', '</p>');
121
+ for($j=0; $j < count($et_contents); $j++){
122
+ $record['et_content' . $j] = $et_contents[$j];
123
+ }
124
+ }
125
+ }
126
  $record['author_name'] = $record['author'] = get_the_author();
127
  $record['author_url'] = get_the_author_meta('url');
128
  $record['date'] = get_the_date();
 
129
  $record['modified'] = get_the_modified_date();
130
 
131
  $category = get_the_category($post->ID);
190
  $record[$k] = $v['url'];
191
  } else if(is_array($v)){
192
  foreach($v AS $v_v => $k_k){
193
+ if(is_array($k_k) && isset($k_k['url'])){
194
  $record[$k . $v_v] = $k_k['url'];
195
  }
196
  }
209
  }
210
  }
211
 
212
+ $record['excerpt'] = get_the_excerpt();
213
+
214
  $data[$i] = &$record;
215
  unset($record);
216
  }
library/wordpress/plugins/generator/posts/postsbyids/generator.php CHANGED
@@ -35,7 +35,6 @@ class N2GeneratorPostsPostsByIDs extends N2GeneratorAbstract
35
  $record['author_name'] = $record['author'] = get_the_author();
36
  $record['author_url'] = get_the_author_meta('url');
37
  $record['date'] = get_the_date();
38
- $record['excerpt'] = get_the_excerpt();
39
  $record['modified'] = get_the_modified_date();
40
 
41
  $category = get_the_category($post->ID);
@@ -103,6 +102,8 @@ class N2GeneratorPostsPostsByIDs extends N2GeneratorAbstract
103
  }
104
  }
105
 
 
 
106
  $data[$i] = &$record;
107
  unset($record);
108
  $i++;
35
  $record['author_name'] = $record['author'] = get_the_author();
36
  $record['author_url'] = get_the_author_meta('url');
37
  $record['date'] = get_the_date();
 
38
  $record['modified'] = get_the_modified_date();
39
 
40
  $category = get_the_category($post->ID);
102
  }
103
  }
104
 
105
+ $record['excerpt'] = get_the_excerpt();
106
+
107
  $data[$i] = &$record;
108
  unset($record);
109
  $i++;
nextend/library/applications/system/backend/views/settings/aviary.phtml CHANGED
@@ -31,8 +31,8 @@ $this->widget->init('topbar', array(
31
  <li><?php n2_e('Leave the ADOBE ID KEY to be selected and press Next.'); ?></li>
32
  <li><?php n2_e('At the Integration info the platform has to be Web.'); ?></li>
33
  <li><?php n2_e('Integration name can be anything.'); ?></li>
34
- <li><?php n2_e('The Default redirect URI can be any https website address. It doesn\'t have to be real, so don\'t worry if your website is not on https. We are not using it, but it\'s required, so just write a https link there, for example: https://example.com'); ?></li>
35
- <li><?php n2_e('The Redirect URI pattern can be anything too. You just have to give a https link, and put \\\ signs before every . sign. For example: https://example\\\.com'); ?></li>
36
  <li><?php n2_e('Give any text to the Description.'); ?></li>
37
  <li><?php n2_e('Save on it.'); ?></li>
38
  <li><?php n2_e('Copy and paste your API Key and Client secret into our backend and Save on it.'); ?></li>
31
  <li><?php n2_e('Leave the ADOBE ID KEY to be selected and press Next.'); ?></li>
32
  <li><?php n2_e('At the Integration info the platform has to be Web.'); ?></li>
33
  <li><?php n2_e('Integration name can be anything.'); ?></li>
34
+ <li><?php n2_e('The Default redirect URI should be a https address to your website. Don\'t worry if your website is not on https, it still will be good. Example: https://example.com'); ?></li>
35
+ <li><?php n2_e('The Redirect URI pattern can be the same address, just you could give a pattern. It has to be a https link (again, doesn\'t have to be a real https site), and put \\ signs before every . sign. For example: https://example\\.com'); ?></li>
36
  <li><?php n2_e('Give any text to the Description.'); ?></li>
37
  <li><?php n2_e('Save on it.'); ?></li>
38
  <li><?php n2_e('Copy and paste your API Key and Client secret into our backend and Save on it.'); ?></li>
nextend/library/applications/system/models/forms/globalconfig.xml CHANGED
@@ -1,6 +1,7 @@
1
  <root>
2
  <params name="options" label="Options">
3
  <param type="onoff" name="protocol-relative" label="Use protocol-relative URL" default="1"/>
 
4
  <param type="onoff" name="show-joomla-admin-footer" label="Show Joomla admin footer" default="0"/>
5
  </params>
6
  <params name="javascript" label="JavaScript">
1
  <root>
2
  <params name="options" label="Options">
3
  <param type="onoff" name="protocol-relative" label="Use protocol-relative URL" default="1"/>
4
+ <param type="onoff" name="force-english-backend" label="Force english backend" default="0"/>
5
  <param type="onoff" name="show-joomla-admin-footer" label="Show Joomla admin footer" default="0"/>
6
  </params>
7
  <params name="javascript" label="JavaScript">
nextend/library/applications/system/plugins/nextendfontservices/google/google.php CHANGED
@@ -4,739 +4,834 @@ class N2SystemPluginFontServiceGoogle extends N2PluginBase
4
  {
5
 
6
  //<editor-fold desc="Google font list">
 
 
 
 
 
 
 
 
 
7
  private static $fonts = array(
8
- 'ABeeZee',
9
- 'Abel',
10
- 'Abril Fatface',
11
- 'Aclonica',
12
- 'Acme',
13
- 'Actor',
14
- 'Adamina',
15
- 'Advent Pro',
16
- 'Aguafina Script',
17
- 'Akronim',
18
- 'Aladin',
19
- 'Aldrich',
20
- 'Alef',
21
- 'Alegreya',
22
- 'Alegreya SC',
23
- 'Alegreya Sans',
24
- 'Alegreya Sans SC',
25
- 'Alex Brush',
26
- 'Alfa Slab One',
27
- 'Alice',
28
- 'Alike',
29
- 'Alike Angular',
30
- 'Allan',
31
- 'Allerta',
32
- 'Allerta Stencil',
33
- 'Allura',
34
- 'Almendra',
35
- 'Almendra Display',
36
- 'Almendra SC',
37
- 'Amarante',
38
- 'Amaranth',
39
- 'Amatic SC',
40
- 'Amethysta',
41
- 'Amiri',
42
- 'Amita',
43
- 'Anaheim',
44
- 'Andada',
45
- 'Andika',
46
- 'Angkor',
47
- 'Annie Use Your Telescope',
48
- 'Anonymous Pro',
49
- 'Antic',
50
- 'Antic Didone',
51
- 'Antic Slab',
52
- 'Anton',
53
- 'Arapey',
54
- 'Arbutus',
55
- 'Arbutus Slab',
56
- 'Architects Daughter',
57
- 'Archivo Black',
58
- 'Archivo Narrow',
59
- 'Arimo',
60
- 'Arizonia',
61
- 'Armata',
62
- 'Artifika',
63
- 'Arvo',
64
- 'Arya',
65
- 'Asap',
66
- 'Asar',
67
- 'Asset',
68
- 'Astloch',
69
- 'Asul',
70
- 'Atomic Age',
71
- 'Aubrey',
72
- 'Audiowide',
73
- 'Autour One',
74
- 'Average',
75
- 'Average Sans',
76
- 'Averia Gruesa Libre',
77
- 'Averia Libre',
78
- 'Averia Sans Libre',
79
- 'Averia Serif Libre',
80
- 'Bad Script',
81
- 'Balthazar',
82
- 'Bangers',
83
- 'Basic',
84
- 'Battambang',
85
- 'Baumans',
86
- 'Bayon',
87
- 'Belgrano',
88
- 'Belleza',
89
- 'BenchNine',
90
- 'Bentham',
91
- 'Berkshire Swash',
92
- 'Bevan',
93
- 'Bigelow Rules',
94
- 'Bigshot One',
95
- 'Bilbo',
96
- 'Bilbo Swash Caps',
97
- 'Biryani',
98
- 'Bitter',
99
- 'Black Ops One',
100
- 'Bokor',
101
- 'Bonbon',
102
- 'Boogaloo',
103
- 'Bowlby One',
104
- 'Bowlby One SC',
105
- 'Brawler',
106
- 'Bree Serif',
107
- 'Bubblegum Sans',
108
- 'Bubbler One',
109
- 'Buda',
110
- 'Buenard',
111
- 'Butcherman',
112
- 'Butterfly Kids',
113
- 'Cabin',
114
- 'Cabin Condensed',
115
- 'Cabin Sketch',
116
- 'Caesar Dressing',
117
- 'Cagliostro',
118
- 'Calligraffitti',
119
- 'Cambay',
120
- 'Cambo',
121
- 'Candal',
122
- 'Cantarell',
123
- 'Cantata One',
124
- 'Cantora One',
125
- 'Capriola',
126
- 'Cardo',
127
- 'Carme',
128
- 'Carrois Gothic',
129
- 'Carrois Gothic SC',
130
- 'Carter One',
131
- 'Catamaran',
132
- 'Caudex',
133
- 'Caveat',
134
- 'Caveat Brush',
135
- 'Cedarville Cursive',
136
- 'Ceviche One',
137
- 'Changa One',
138
- 'Chango',
139
- 'Chau Philomene One',
140
- 'Chela One',
141
- 'Chelsea Market',
142
- 'Chenla',
143
- 'Cherry Cream Soda',
144
- 'Cherry Swash',
145
- 'Chewy',
146
- 'Chicle',
147
- 'Chivo',
148
- 'Chonburi',
149
- 'Cinzel',
150
- 'Cinzel Decorative',
151
- 'Clicker Script',
152
- 'Coda',
153
- 'Coda Caption',
154
- 'Codystar',
155
- 'Combo',
156
- 'Comfortaa',
157
- 'Coming Soon',
158
- 'Concert One',
159
- 'Condiment',
160
- 'Content',
161
- 'Contrail One',
162
- 'Convergence',
163
- 'Cookie',
164
- 'Copse',
165
- 'Corben',
166
- 'Courgette',
167
- 'Cousine',
168
- 'Coustard',
169
- 'Covered By Your Grace',
170
- 'Crafty Girls',
171
- 'Creepster',
172
- 'Crete Round',
173
- 'Crimson Text',
174
- 'Croissant One',
175
- 'Crushed',
176
- 'Cuprum',
177
- 'Cutive',
178
- 'Cutive Mono',
179
- 'Damion',
180
- 'Dancing Script',
181
- 'Dangrek',
182
- 'Dawning of a New Day',
183
- 'Days One',
184
- 'Dekko',
185
- 'Delius',
186
- 'Delius Swash Caps',
187
- 'Delius Unicase',
188
- 'Della Respira',
189
- 'Denk One',
190
- 'Devonshire',
191
- 'Dhurjati',
192
- 'Didact Gothic',
193
- 'Diplomata',
194
- 'Diplomata SC',
195
- 'Domine',
196
- 'Donegal One',
197
- 'Doppio One',
198
- 'Dorsa',
199
- 'Dosis',
200
- 'Dr Sugiyama',
201
- 'Droid Sans',
202
- 'Droid Sans Mono',
203
- 'Droid Serif',
204
- 'Duru Sans',
205
- 'Dynalight',
206
- 'EB Garamond',
207
- 'Eagle Lake',
208
- 'Eater',
209
- 'Economica',
210
- 'Eczar',
211
- 'Ek Mukta',
212
- 'Electrolize',
213
- 'Elsie',
214
- 'Elsie Swash Caps',
215
- 'Emblema One',
216
- 'Emilys Candy',
217
- 'Engagement',
218
- 'Englebert',
219
- 'Enriqueta',
220
- 'Erica One',
221
- 'Esteban',
222
- 'Euphoria Script',
223
- 'Ewert',
224
- 'Exo',
225
- 'Exo 2',
226
- 'Expletus Sans',
227
- 'Fanwood Text',
228
- 'Fascinate',
229
- 'Fascinate Inline',
230
- 'Faster One',
231
- 'Fasthand',
232
- 'Fauna One',
233
- 'Federant',
234
- 'Federo',
235
- 'Felipa',
236
- 'Fenix',
237
- 'Finger Paint',
238
- 'Fira Mono',
239
- 'Fira Sans',
240
- 'Fjalla One',
241
- 'Fjord One',
242
- 'Flamenco',
243
- 'Flavors',
244
- 'Fondamento',
245
- 'Fontdiner Swanky',
246
- 'Forum',
247
- 'Francois One',
248
- 'Freckle Face',
249
- 'Fredericka the Great',
250
- 'Fredoka One',
251
- 'Freehand',
252
- 'Fresca',
253
- 'Frijole',
254
- 'Fruktur',
255
- 'Fugaz One',
256
- 'GFS Didot',
257
- 'GFS Neohellenic',
258
- 'Gabriela',
259
- 'Gafata',
260
- 'Galdeano',
261
- 'Galindo',
262
- 'Gentium Basic',
263
- 'Gentium Book Basic',
264
- 'Geo',
265
- 'Geostar',
266
- 'Geostar Fill',
267
- 'Germania One',
268
- 'Gidugu',
269
- 'Gilda Display',
270
- 'Give You Glory',
271
- 'Glass Antiqua',
272
- 'Glegoo',
273
- 'Gloria Hallelujah',
274
- 'Goblin One',
275
- 'Gochi Hand',
276
- 'Gorditas',
277
- 'Goudy Bookletter 1911',
278
- 'Graduate',
279
- 'Grand Hotel',
280
- 'Gravitas One',
281
- 'Great Vibes',
282
- 'Griffy',
283
- 'Gruppo',
284
- 'Gudea',
285
- 'Gurajada',
286
- 'Habibi',
287
- 'Halant',
288
- 'Hammersmith One',
289
- 'Hanalei',
290
- 'Hanalei Fill',
291
- 'Handlee',
292
- 'Hanuman',
293
- 'Happy Monkey',
294
- 'Headland One',
295
- 'Henny Penny',
296
- 'Herr Von Muellerhoff',
297
- 'Hind',
298
- 'Hind Siliguri',
299
- 'Hind Vadodara',
300
- 'Holtwood One SC',
301
- 'Homemade Apple',
302
- 'Homenaje',
303
- 'IM Fell DW Pica',
304
- 'IM Fell DW Pica SC',
305
- 'IM Fell Double Pica',
306
- 'IM Fell Double Pica SC',
307
- 'IM Fell English',
308
- 'IM Fell English SC',
309
- 'IM Fell French Canon',
310
- 'IM Fell French Canon SC',
311
- 'IM Fell Great Primer',
312
- 'IM Fell Great Primer SC',
313
- 'Iceberg',
314
- 'Iceland',
315
- 'Imprima',
316
- 'Inconsolata',
317
- 'Inder',
318
- 'Indie Flower',
319
- 'Inika',
320
- 'Inknut Antiqua',
321
- 'Irish Grover',
322
- 'Istok Web',
323
- 'Italiana',
324
- 'Italianno',
325
- 'Itim',
326
- 'Jacques Francois',
327
- 'Jacques Francois Shadow',
328
- 'Jaldi',
329
- 'Jim Nightshade',
330
- 'Jockey One',
331
- 'Jolly Lodger',
332
- 'Josefin Sans',
333
- 'Josefin Slab',
334
- 'Joti One',
335
- 'Judson',
336
- 'Julee',
337
- 'Julius Sans One',
338
- 'Junge',
339
- 'Jura',
340
- 'Just Another Hand',
341
- 'Just Me Again Down Here',
342
- 'Kadwa',
343
- 'Kalam',
344
- 'Kameron',
345
- 'Kantumruy',
346
- 'Karla',
347
- 'Karma',
348
- 'Kaushan Script',
349
- 'Kavoon',
350
- 'Kdam Thmor',
351
- 'Keania One',
352
- 'Kelly Slab',
353
- 'Kenia',
354
- 'Khand',
355
- 'Khmer',
356
- 'Khula',
357
- 'Kite One',
358
- 'Knewave',
359
- 'Kotta One',
360
- 'Koulen',
361
- 'Kranky',
362
- 'Kreon',
363
- 'Kristi',
364
- 'Krona One',
365
- 'Kurale',
366
- 'La Belle Aurore',
367
- 'Laila',
368
- 'Lakki Reddy',
369
- 'Lancelot',
370
- 'Lateef',
371
- 'Lato',
372
- 'League Script',
373
- 'Leckerli One',
374
- 'Ledger',
375
- 'Lekton',
376
- 'Lemon',
377
- 'Libre Baskerville',
378
- 'Life Savers',
379
- 'Lilita One',
380
- 'Lily Script One',
381
- 'Limelight',
382
- 'Linden Hill',
383
- 'Lobster',
384
- 'Lobster Two',
385
- 'Londrina Outline',
386
- 'Londrina Shadow',
387
- 'Londrina Sketch',
388
- 'Londrina Solid',
389
- 'Lora',
390
- 'Love Ya Like A Sister',
391
- 'Loved by the King',
392
- 'Lovers Quarrel',
393
- 'Luckiest Guy',
394
- 'Lusitana',
395
- 'Lustria',
396
- 'Macondo',
397
- 'Macondo Swash Caps',
398
- 'Magra',
399
- 'Maiden Orange',
400
- 'Mako',
401
- 'Mallanna',
402
- 'Mandali',
403
- 'Marcellus',
404
- 'Marcellus SC',
405
- 'Marck Script',
406
- 'Margarine',
407
- 'Marko One',
408
- 'Marmelad',
409
- 'Martel',
410
- 'Martel Sans',
411
- 'Marvel',
412
- 'Mate',
413
- 'Mate SC',
414
- 'Maven Pro',
415
- 'McLaren',
416
- 'Meddon',
417
- 'MedievalSharp',
418
- 'Medula One',
419
- 'Megrim',
420
- 'Meie Script',
421
- 'Merienda',
422
- 'Merienda One',
423
- 'Merriweather',
424
- 'Merriweather Sans',
425
- 'Metal',
426
- 'Metal Mania',
427
- 'Metamorphous',
428
- 'Metrophobic',
429
- 'Michroma',
430
- 'Milonga',
431
- 'Miltonian',
432
- 'Miltonian Tattoo',
433
- 'Miniver',
434
- 'Miss Fajardose',
435
- 'Modak',
436
- 'Modern Antiqua',
437
- 'Molengo',
438
- 'Molle',
439
- 'Monda',
440
- 'Monofett',
441
- 'Monoton',
442
- 'Monsieur La Doulaise',
443
- 'Montaga',
444
- 'Montez',
445
- 'Montserrat',
446
- 'Montserrat Alternates',
447
- 'Montserrat Subrayada',
448
- 'Moul',
449
- 'Moulpali',
450
- 'Mountains of Christmas',
451
- 'Mouse Memoirs',
452
- 'Mr Bedfort',
453
- 'Mr Dafoe',
454
- 'Mr De Haviland',
455
- 'Mrs Saint Delafield',
456
- 'Mrs Sheppards',
457
- 'Muli',
458
- 'Mystery Quest',
459
- 'NTR',
460
- 'Neucha',
461
- 'Neuton',
462
- 'New Rocker',
463
- 'News Cycle',
464
- 'Niconne',
465
- 'Nixie One',
466
- 'Nobile',
467
- 'Nokora',
468
- 'Norican',
469
- 'Nosifer',
470
- 'Nothing You Could Do',
471
- 'Noticia Text',
472
- 'Noto Sans',
473
- 'Noto Serif',
474
- 'Nova Cut',
475
- 'Nova Flat',
476
- 'Nova Mono',
477
- 'Nova Oval',
478
- 'Nova Round',
479
- 'Nova Script',
480
- 'Nova Slim',
481
- 'Nova Square',
482
- 'Numans',
483
- 'Nunito',
484
- 'Odor Mean Chey',
485
- 'Offside',
486
- 'Old Standard TT',
487
- 'Oldenburg',
488
- 'Oleo Script',
489
- 'Oleo Script Swash Caps',
490
- 'Open Sans',
491
- 'Open Sans Condensed',
492
- 'Oranienbaum',
493
- 'Orbitron',
494
- 'Oregano',
495
- 'Orienta',
496
- 'Original Surfer',
497
- 'Oswald',
498
- 'Over the Rainbow',
499
- 'Overlock',
500
- 'Overlock SC',
501
- 'Ovo',
502
- 'Oxygen',
503
- 'Oxygen Mono',
504
- 'PT Mono',
505
- 'PT Sans',
506
- 'PT Sans Caption',
507
- 'PT Sans Narrow',
508
- 'PT Serif',
509
- 'PT Serif Caption',
510
- 'Pacifico',
511
- 'Palanquin',
512
- 'Palanquin Dark',
513
- 'Paprika',
514
- 'Parisienne',
515
- 'Passero One',
516
- 'Passion One',
517
- 'Pathway Gothic One',
518
- 'Patrick Hand',
519
- 'Patrick Hand SC',
520
- 'Patua One',
521
- 'Paytone One',
522
- 'Peddana',
523
- 'Peralta',
524
- 'Permanent Marker',
525
- 'Petit Formal Script',
526
- 'Petrona',
527
- 'Philosopher',
528
- 'Piedra',
529
- 'Pinyon Script',
530
- 'Pirata One',
531
- 'Plaster',
532
- 'Play',
533
- 'Playball',
534
- 'Playfair Display',
535
- 'Playfair Display SC',
536
- 'Podkova',
537
- 'Poiret One',
538
- 'Poller One',
539
- 'Poly',
540
- 'Pompiere',
541
- 'Pontano Sans',
542
- 'Poppins',
543
- 'Port Lligat Sans',
544
- 'Port Lligat Slab',
545
- 'Pragati Narrow',
546
- 'Prata',
547
- 'Preahvihear',
548
- 'Press Start 2P',
549
- 'Princess Sofia',
550
- 'Prociono',
551
- 'Prosto One',
552
- 'Puritan',
553
- 'Purple Purse',
554
- 'Quando',
555
- 'Quantico',
556
- 'Quattrocento',
557
- 'Quattrocento Sans',
558
- 'Questrial',
559
- 'Quicksand',
560
- 'Quintessential',
561
- 'Qwigley',
562
- 'Racing Sans One',
563
- 'Radley',
564
- 'Rajdhani',
565
- 'Raleway',
566
- 'Raleway Dots',
567
- 'Ramabhadra',
568
- 'Ramaraja',
569
- 'Rambla',
570
- 'Rammetto One',
571
- 'Ranchers',
572
- 'Rancho',
573
- 'Ranga',
574
- 'Rationale',
575
- 'Ravi Prakash',
576
- 'Redressed',
577
- 'Reenie Beanie',
578
- 'Revalia',
579
- 'Rhodium Libre',
580
- 'Ribeye',
581
- 'Ribeye Marrow',
582
- 'Righteous',
583
- 'Risque',
584
- 'Roboto',
585
- 'Roboto Condensed',
586
- 'Roboto Mono',
587
- 'Roboto Slab',
588
- 'Rochester',
589
- 'Rock Salt',
590
- 'Rokkitt',
591
- 'Romanesco',
592
- 'Ropa Sans',
593
- 'Rosario',
594
- 'Rosarivo',
595
- 'Rouge Script',
596
- 'Rozha One',
597
- 'Rubik',
598
- 'Rubik Mono One',
599
- 'Rubik One',
600
- 'Ruda',
601
- 'Rufina',
602
- 'Ruge Boogie',
603
- 'Ruluko',
604
- 'Rum Raisin',
605
- 'Ruslan Display',
606
- 'Russo One',
607
- 'Ruthie',
608
- 'Rye',
609
- 'Sacramento',
610
- 'Sahitya',
611
- 'Sail',
612
- 'Salsa',
613
- 'Sanchez',
614
- 'Sancreek',
615
- 'Sansita One',
616
- 'Sarala',
617
- 'Sarina',
618
- 'Sarpanch',
619
- 'Satisfy',
620
- 'Scada',
621
- 'Scheherazade',
622
- 'Schoolbell',
623
- 'Seaweed Script',
624
- 'Sevillana',
625
- 'Seymour One',
626
- 'Shadows Into Light',
627
- 'Shadows Into Light Two',
628
- 'Shanti',
629
- 'Share',
630
- 'Share Tech',
631
- 'Share Tech Mono',
632
- 'Shojumaru',
633
- 'Short Stack',
634
- 'Siemreap',
635
- 'Sigmar One',
636
- 'Signika',
637
- 'Signika Negative',
638
- 'Simonetta',
639
- 'Sintony',
640
- 'Sirin Stencil',
641
- 'Six Caps',
642
- 'Skranji',
643
- 'Slabo 13px',
644
- 'Slabo 27px',
645
- 'Slackey',
646
- 'Smokum',
647
- 'Smythe',
648
- 'Sniglet',
649
- 'Snippet',
650
- 'Snowburst One',
651
- 'Sofadi One',
652
- 'Sofia',
653
- 'Sonsie One',
654
- 'Sorts Mill Goudy',
655
- 'Source Code Pro',
656
- 'Source Sans Pro',
657
- 'Source Serif Pro',
658
- 'Special Elite',
659
- 'Spicy Rice',
660
- 'Spinnaker',
661
- 'Spirax',
662
- 'Squada One',
663
- 'Sree Krushnadevaraya',
664
- 'Stalemate',
665
- 'Stalinist One',
666
- 'Stardos Stencil',
667
- 'Stint Ultra Condensed',
668
- 'Stint Ultra Expanded',
669
- 'Stoke',
670
- 'Strait',
671
- 'Sue Ellen Francisco',
672
- 'Sumana',
673
- 'Sunshiney',
674
- 'Supermercado One',
675
- 'Sura',
676
- 'Suranna',
677
- 'Suravaram',
678
- 'Suwannaphum',
679
- 'Swanky and Moo Moo',
680
- 'Syncopate',
681
- 'Tangerine',
682
- 'Taprom',
683
- 'Tauri',
684
- 'Teko',
685
- 'Telex',
686
- 'Tenali Ramakrishna',
687
- 'Tenor Sans',
688
- 'Text Me One',
689
- 'The Girl Next Door',
690
- 'Tienne',
691
- 'Tillana',
692
- 'Timmana',
693
- 'Tinos',
694
- 'Titan One',
695
- 'Titillium Web',
696
- 'Trade Winds',
697
- 'Trocchi',
698
- 'Trochut',
699
- 'Trykker',
700
- 'Tulpen One',
701
- 'Ubuntu',
702
- 'Ubuntu Condensed',
703
- 'Ubuntu Mono',
704
- 'Ultra',
705
- 'Uncial Antiqua',
706
- 'Underdog',
707
- 'Unica One',
708
- 'UnifrakturCook',
709
- 'UnifrakturMaguntia',
710
- 'Unkempt',
711
- 'Unlock',
712
- 'Unna',
713
- 'VT323',
714
- 'Vampiro One',
715
- 'Varela',
716
- 'Varela Round',
717
- 'Vast Shadow',
718
- 'Vesper Libre',
719
- 'Vibur',
720
- 'Vidaloka',
721
- 'Viga',
722
- 'Voces',
723
- 'Volkhov',
724
- 'Vollkorn',
725
- 'Voltaire',
726
- 'Waiting for the Sunrise',
727
- 'Wallpoet',
728
- 'Walter Turncoat',
729
- 'Warnes',
730
- 'Wellfleet',
731
- 'Wendy One',
732
- 'Wire One',
733
- 'Work Sans',
734
- 'Yanone Kaffeesatz',
735
- 'Yantramanav',
736
- 'Yellowtail',
737
- 'Yeseva One',
738
- 'Yesteryear',
739
- 'Zeyada'
4
  {
5
 
6
  //<editor-fold desc="Google font list">
7
+ /*
8
+ jQuery.getJSON('https://www.googleapis.com/webfonts/v1/webfonts?sort=alpha&key=AIzaSyBIzBtder0-ef5a6kX-Ri9IfzVwFu21PGw').done(function(data){
9
+ var f = [];
10
+ for(var i = 0; i < data.items.length; i++){
11
+ f.push(data.items[i].family);
12
+ }
13
+ console.log(JSON.stringify(f));
14
+ });
15
+ */
16
  private static $fonts = array(
17
+ "ABeeZee",
18
+ "Abel",
19
+ "Abhaya Libre",
20
+ "Abril Fatface",
21
+ "Aclonica",
22
+ "Acme",
23
+ "Actor",
24
+ "Adamina",
25
+ "Advent Pro",
26
+ "Aguafina Script",
27
+ "Akronim",
28
+ "Aladin",
29
+ "Aldrich",
30
+ "Alef",
31
+ "Alegreya",
32
+ "Alegreya SC",
33
+ "Alegreya Sans",
34
+ "Alegreya Sans SC",
35
+ "Alex Brush",
36
+ "Alfa Slab One",
37
+ "Alice",
38
+ "Alike",
39
+ "Alike Angular",
40
+ "Allan",
41
+ "Allerta",
42
+ "Allerta Stencil",
43
+ "Allura",
44
+ "Almendra",
45
+ "Almendra Display",
46
+ "Almendra SC",
47
+ "Amarante",
48
+ "Amaranth",
49
+ "Amatic SC",
50
+ "Amatica SC",
51
+ "Amethysta",
52
+ "Amiko",
53
+ "Amiri",
54
+ "Amita",
55
+ "Anaheim",
56
+ "Andada",
57
+ "Andika",
58
+ "Angkor",
59
+ "Annie Use Your Telescope",
60
+ "Anonymous Pro",
61
+ "Antic",
62
+ "Antic Didone",
63
+ "Antic Slab",
64
+ "Anton",
65
+ "Arapey",
66
+ "Arbutus",
67
+ "Arbutus Slab",
68
+ "Architects Daughter",
69
+ "Archivo Black",
70
+ "Archivo Narrow",
71
+ "Aref Ruqaa",
72
+ "Arima Madurai",
73
+ "Arimo",
74
+ "Arizonia",
75
+ "Armata",
76
+ "Arsenal",
77
+ "Artifika",
78
+ "Arvo",
79
+ "Arya",
80
+ "Asap",
81
+ "Asar",
82
+ "Asset",
83
+ "Assistant",
84
+ "Astloch",
85
+ "Asul",
86
+ "Athiti",
87
+ "Atma",
88
+ "Atomic Age",
89
+ "Aubrey",
90
+ "Audiowide",
91
+ "Autour One",
92
+ "Average",
93
+ "Average Sans",
94
+ "Averia Gruesa Libre",
95
+ "Averia Libre",
96
+ "Averia Sans Libre",
97
+ "Averia Serif Libre",
98
+ "Bad Script",
99
+ "Bahiana",
100
+ "Baloo",
101
+ "Baloo Bhai",
102
+ "Baloo Bhaina",
103
+ "Baloo Chettan",
104
+ "Baloo Da",
105
+ "Baloo Paaji",
106
+ "Baloo Tamma",
107
+ "Baloo Thambi",
108
+ "Balthazar",
109
+ "Bangers",
110
+ "Barrio",
111
+ "Basic",
112
+ "Battambang",
113
+ "Baumans",
114
+ "Bayon",
115
+ "Belgrano",
116
+ "Belleza",
117
+ "BenchNine",
118
+ "Bentham",
119
+ "Berkshire Swash",
120
+ "Bevan",
121
+ "Bigelow Rules",
122
+ "Bigshot One",
123
+ "Bilbo",
124
+ "Bilbo Swash Caps",
125
+ "BioRhyme",
126
+ "BioRhyme Expanded",
127
+ "Biryani",
128
+ "Bitter",
129
+ "Black Ops One",
130
+ "Bokor",
131
+ "Bonbon",
132
+ "Boogaloo",
133
+ "Bowlby One",
134
+ "Bowlby One SC",
135
+ "Brawler",
136
+ "Bree Serif",
137
+ "Bubblegum Sans",
138
+ "Bubbler One",
139
+ "Buda",
140
+ "Buenard",
141
+ "Bungee",
142
+ "Bungee Hairline",
143
+ "Bungee Inline",
144
+ "Bungee Outline",
145
+ "Bungee Shade",
146
+ "Butcherman",
147
+ "Butterfly Kids",
148
+ "Cabin",
149
+ "Cabin Condensed",
150
+ "Cabin Sketch",
151
+ "Caesar Dressing",
152
+ "Cagliostro",
153
+ "Cairo",
154
+ "Calligraffitti",
155
+ "Cambay",
156
+ "Cambo",
157
+ "Candal",
158
+ "Cantarell",
159
+ "Cantata One",
160
+ "Cantora One",
161
+ "Capriola",
162
+ "Cardo",
163
+ "Carme",
164
+ "Carrois Gothic",
165
+ "Carrois Gothic SC",
166
+ "Carter One",
167
+ "Catamaran",
168
+ "Caudex",
169
+ "Caveat",
170
+ "Caveat Brush",
171
+ "Cedarville Cursive",
172
+ "Ceviche One",
173
+ "Changa",
174
+ "Changa One",
175
+ "Chango",
176
+ "Chathura",
177
+ "Chau Philomene One",
178
+ "Chela One",
179
+ "Chelsea Market",
180
+ "Chenla",
181
+ "Cherry Cream Soda",
182
+ "Cherry Swash",
183
+ "Chewy",
184
+ "Chicle",
185
+ "Chivo",
186
+ "Chonburi",
187
+ "Cinzel",
188
+ "Cinzel Decorative",
189
+ "Clicker Script",
190
+ "Coda",
191
+ "Coda Caption",
192
+ "Codystar",
193
+ "Coiny",
194
+ "Combo",
195
+ "Comfortaa",
196
+ "Coming Soon",
197
+ "Concert One",
198
+ "Condiment",
199
+ "Content",
200
+ "Contrail One",
201
+ "Convergence",
202
+ "Cookie",
203
+ "Copse",
204
+ "Corben",
205
+ "Cormorant",
206
+ "Cormorant Garamond",
207
+ "Cormorant Infant",
208
+ "Cormorant SC",
209
+ "Cormorant Unicase",
210
+ "Cormorant Upright",
211
+ "Courgette",
212
+ "Cousine",
213
+ "Coustard",
214
+ "Covered By Your Grace",
215
+ "Crafty Girls",
216
+ "Creepster",
217
+ "Crete Round",
218
+ "Crimson Text",
219
+ "Croissant One",
220
+ "Crushed",
221
+ "Cuprum",
222
+ "Cutive",
223
+ "Cutive Mono",
224
+ "Damion",
225
+ "Dancing Script",
226
+ "Dangrek",
227
+ "David Libre",
228
+ "Dawning of a New Day",
229
+ "Days One",
230
+ "Dekko",
231
+ "Delius",
232
+ "Delius Swash Caps",
233
+ "Delius Unicase",
234
+ "Della Respira",
235
+ "Denk One",
236
+ "Devonshire",
237
+ "Dhurjati",
238
+ "Didact Gothic",
239
+ "Diplomata",
240
+ "Diplomata SC",
241
+ "Domine",
242
+ "Donegal One",
243
+ "Doppio One",
244
+ "Dorsa",
245
+ "Dosis",
246
+ "Dr Sugiyama",
247
+ "Droid Sans",
248
+ "Droid Sans Mono",
249
+ "Droid Serif",
250
+ "Duru Sans",
251
+ "Dynalight",
252
+ "EB Garamond",
253
+ "Eagle Lake",
254
+ "Eater",
255
+ "Economica",
256
+ "Eczar",
257
+ "Ek Mukta",
258
+ "El Messiri",
259
+ "Electrolize",
260
+ "Elsie",
261
+ "Elsie Swash Caps",
262
+ "Emblema One",
263
+ "Emilys Candy",
264
+ "Engagement",
265
+ "Englebert",
266
+ "Enriqueta",
267
+ "Erica One",
268
+ "Esteban",
269
+ "Euphoria Script",
270
+ "Ewert",
271
+ "Exo",
272
+ "Exo 2",
273
+ "Expletus Sans",
274
+ "Fanwood Text",
275
+ "Farsan",
276
+ "Fascinate",
277
+ "Fascinate Inline",
278
+ "Faster One",
279
+ "Fasthand",
280
+ "Fauna One",
281
+ "Federant",
282
+ "Federo",
283
+ "Felipa",
284
+ "Fenix",
285
+ "Finger Paint",
286
+ "Fira Mono",
287
+ "Fira Sans",
288
+ "Fira Sans Condensed",
289
+ "Fira Sans Extra Condensed",
290
+ "Fjalla One",
291
+ "Fjord One",
292
+ "Flamenco",
293
+ "Flavors",
294
+ "Fondamento",
295
+ "Fontdiner Swanky",
296
+ "Forum",
297
+ "Francois One",
298
+ "Frank Ruhl Libre",
299
+ "Freckle Face",
300
+ "Fredericka the Great",
301
+ "Fredoka One",
302
+ "Freehand",
303
+ "Fresca",
304
+ "Frijole",
305
+ "Fruktur",
306
+ "Fugaz One",
307
+ "GFS Didot",
308
+ "GFS Neohellenic",
309
+ "Gabriela",
310
+ "Gafata",
311
+ "Galada",
312
+ "Galdeano",
313
+ "Galindo",
314
+ "Gentium Basic",
315
+ "Gentium Book Basic",
316
+ "Geo",
317
+ "Geostar",
318
+ "Geostar Fill",
319
+ "Germania One",
320
+ "Gidugu",
321
+ "Gilda Display",
322
+ "Give You Glory",
323
+ "Glass Antiqua",
324
+ "Glegoo",
325
+ "Gloria Hallelujah",
326
+ "Goblin One",
327
+ "Gochi Hand",
328
+ "Gorditas",
329
+ "Goudy Bookletter 1911",
330
+ "Graduate",
331
+ "Grand Hotel",
332
+ "Gravitas One",
333
+ "Great Vibes",
334
+ "Griffy",
335
+ "Gruppo",
336
+ "Gudea",
337
+ "Gurajada",
338
+ "Habibi",
339
+ "Halant",
340
+ "Hammersmith One",
341
+ "Hanalei",
342
+ "Hanalei Fill",
343
+ "Handlee",
344
+ "Hanuman",
345
+ "Happy Monkey",
346
+ "Harmattan",
347
+ "Headland One",
348
+ "Heebo",
349
+ "Henny Penny",
350
+ "Herr Von Muellerhoff",
351
+ "Hind",
352
+ "Hind Guntur",
353
+ "Hind Madurai",
354
+ "Hind Siliguri",
355
+ "Hind Vadodara",
356
+ "Holtwood One SC",
357
+ "Homemade Apple",
358
+ "Homenaje",
359
+ "IM Fell DW Pica",
360
+ "IM Fell DW Pica SC",
361
+ "IM Fell Double Pica",
362
+ "IM Fell Double Pica SC",
363
+ "IM Fell English",
364
+ "IM Fell English SC",
365
+ "IM Fell French Canon",
366
+ "IM Fell French Canon SC",
367
+ "IM Fell Great Primer",
368
+ "IM Fell Great Primer SC",
369
+ "Iceberg",
370
+ "Iceland",
371
+ "Imprima",
372
+ "Inconsolata",
373
+ "Inder",
374
+ "Indie Flower",
375
+ "Inika",
376
+ "Inknut Antiqua",
377
+ "Irish Grover",
378
+ "Istok Web",
379
+ "Italiana",
380
+ "Italianno",
381
+ "Itim",
382
+ "Jacques Francois",
383
+ "Jacques Francois Shadow",
384
+ "Jaldi",
385
+ "Jim Nightshade",
386
+ "Jockey One",
387
+ "Jolly Lodger",
388
+ "Jomhuria",
389
+ "Josefin Sans",
390
+ "Josefin Slab",
391
+ "Joti One",
392
+ "Judson",
393
+ "Julee",
394
+ "Julius Sans One",
395
+ "Junge",
396
+ "Jura",
397
+ "Just Another Hand",
398
+ "Just Me Again Down Here",
399
+ "Kadwa",
400
+ "Kalam",
401
+ "Kameron",
402
+ "Kanit",
403
+ "Kantumruy",
404
+ "Karla",
405
+ "Karma",
406
+ "Katibeh",
407
+ "Kaushan Script",
408
+ "Kavivanar",
409
+ "Kavoon",
410
+ "Kdam Thmor",
411
+ "Keania One",
412
+ "Kelly Slab",
413
+ "Kenia",
414
+ "Khand",
415
+ "Khmer",
416
+ "Khula",
417
+ "Kite One",
418
+ "Knewave",
419
+ "Kotta One",
420
+ "Koulen",
421
+ "Kranky",
422
+ "Kreon",
423
+ "Kristi",
424
+ "Krona One",
425
+ "Kumar One",
426
+ "Kumar One Outline",
427
+ "Kurale",
428
+ "La Belle Aurore",
429
+ "Laila",
430
+ "Lakki Reddy",
431
+ "Lalezar",
432
+ "Lancelot",
433
+ "Lateef",
434
+ "Lato",
435
+ "League Script",
436
+ "Leckerli One",
437
+ "Ledger",
438
+ "Lekton",
439
+ "Lemon",
440
+ "Lemonada",
441
+ "Libre Baskerville",
442
+ "Libre Franklin",
443
+ "Life Savers",
444
+ "Lilita One",
445
+ "Lily Script One",
446
+ "Limelight",
447
+ "Linden Hill",
448
+ "Lobster",
449
+ "Lobster Two",
450
+ "Londrina Outline",
451
+ "Londrina Shadow",
452
+ "Londrina Sketch",
453
+ "Londrina Solid",
454
+ "Lora",
455
+ "Love Ya Like A Sister",
456
+ "Loved by the King",
457
+ "Lovers Quarrel",
458
+ "Luckiest Guy",
459
+ "Lusitana",
460
+ "Lustria",
461
+ "Macondo",
462
+ "Macondo Swash Caps",
463
+ "Mada",
464
+ "Magra",
465
+ "Maiden Orange",
466
+ "Maitree",
467
+ "Mako",
468
+ "Mallanna",
469
+ "Mandali",
470
+ "Marcellus",
471
+ "Marcellus SC",
472
+ "Marck Script",
473
+ "Margarine",
474
+ "Marko One",
475
+ "Marmelad",
476
+ "Martel",
477
+ "Martel Sans",
478
+ "Marvel",
479
+ "Mate",
480
+ "Mate SC",
481
+ "Maven Pro",
482
+ "McLaren",
483
+ "Meddon",
484
+ "MedievalSharp",
485
+ "Medula One",
486
+ "Meera Inimai",
487
+ "Megrim",
488
+ "Meie Script",
489
+ "Merienda",
490
+ "Merienda One",
491
+ "Merriweather",
492
+ "Merriweather Sans",
493
+ "Metal",
494
+ "Metal Mania",
495
+ "Metamorphous",
496
+ "Metrophobic",
497
+ "Michroma",
498
+ "Milonga",
499
+ "Miltonian",
500
+ "Miltonian Tattoo",
501
+ "Miniver",
502
+ "Miriam Libre",
503
+ "Mirza",
504
+ "Miss Fajardose",
505
+ "Mitr",
506
+ "Modak",
507
+ "Modern Antiqua",
508
+ "Mogra",
509
+ "Molengo",
510
+ "Molle",
511
+ "Monda",
512
+ "Monofett",
513
+ "Monoton",
514
+ "Monsieur La Doulaise",
515
+ "Montaga",
516
+ "Montez",
517
+ "Montserrat",
518
+ "Montserrat Alternates",
519
+ "Montserrat Subrayada",
520
+ "Moul",
521
+ "Moulpali",
522
+ "Mountains of Christmas",
523
+ "Mouse Memoirs",
524
+ "Mr Bedfort",
525
+ "Mr Dafoe",
526
+ "Mr De Haviland",
527
+ "Mrs Saint Delafield",
528
+ "Mrs Sheppards",
529
+ "Mukta Vaani",
530
+ "Muli",
531
+ "Mystery Quest",
532
+ "NTR",
533
+ "Neucha",
534
+ "Neuton",
535
+ "New Rocker",
536
+ "News Cycle",
537
+ "Niconne",
538
+ "Nixie One",
539
+ "Nobile",
540
+ "Nokora",
541
+ "Norican",
542
+ "Nosifer",
543
+ "Nothing You Could Do",
544
+ "Noticia Text",
545
+ "Noto Sans",
546
+ "Noto Serif",
547
+ "Nova Cut",
548
+ "Nova Flat",
549
+ "Nova Mono",
550
+ "Nova Oval",
551
+ "Nova Round",
552
+ "Nova Script",
553
+ "Nova Slim",
554
+ "Nova Square",
555
+ "Numans",
556
+ "Nunito",
557
+ "Nunito Sans",
558
+ "Odor Mean Chey",
559
+ "Offside",
560
+ "Old Standard TT",
561
+ "Oldenburg",
562
+ "Oleo Script",
563
+ "Oleo Script Swash Caps",
564
+ "Open Sans",
565
+ "Open Sans Condensed",
566
+ "Oranienbaum",
567
+ "Orbitron",
568
+ "Oregano",
569
+ "Orienta",
570
+ "Original Surfer",
571
+ "Oswald",
572
+ "Over the Rainbow",
573
+ "Overlock",
574
+ "Overlock SC",
575
+ "Overpass",
576
+ "Overpass Mono",
577
+ "Ovo",
578
+ "Oxygen",
579
+ "Oxygen Mono",
580
+ "PT Mono",
581
+ "PT Sans",
582
+ "PT Sans Caption",
583
+ "PT Sans Narrow",
584
+ "PT Serif",
585
+ "PT Serif Caption",
586
+ "Pacifico",
587
+ "Padauk",
588
+ "Palanquin",
589
+ "Palanquin Dark",
590
+ "Pangolin",
591
+ "Paprika",
592
+ "Parisienne",
593
+ "Passero One",
594
+ "Passion One",
595
+ "Pathway Gothic One",
596
+ "Patrick Hand",
597
+ "Patrick Hand SC",
598
+ "Pattaya",
599
+ "Patua One",
600
+ "Pavanam",
601
+ "Paytone One",
602
+ "Peddana",
603
+ "Peralta",
604
+ "Permanent Marker",
605
+ "Petit Formal Script",
606
+ "Petrona",
607
+ "Philosopher",
608
+ "Piedra",
609
+ "Pinyon Script",
610
+ "Pirata One",
611
+ "Plaster",
612
+ "Play",
613
+ "Playball",
614
+ "Playfair Display",
615
+ "Playfair Display SC",
616
+ "Podkova",
617
+ "Poiret One",
618
+ "Poller One",
619
+ "Poly",
620
+ "Pompiere",
621
+ "Pontano Sans",
622
+ "Poppins",
623
+ "Port Lligat Sans",
624
+ "Port Lligat Slab",
625
+ "Pragati Narrow",
626
+ "Prata",
627
+ "Preahvihear",
628
+ "Press Start 2P",
629
+ "Pridi",
630
+ "Princess Sofia",
631
+ "Prociono",
632
+ "Prompt",
633
+ "Prosto One",
634
+ "Proza Libre",
635
+ "Puritan",
636
+ "Purple Purse",
637
+ "Quando",
638
+ "Quantico",
639
+ "Quattrocento",
640
+ "Quattrocento Sans",
641
+ "Questrial",
642
+ "Quicksand",
643
+ "Quintessential",
644
+ "Qwigley",
645
+ "Racing Sans One",
646
+ "Radley",
647
+ "Rajdhani",
648
+ "Rakkas",
649
+ "Raleway",
650
+ "Raleway Dots",
651
+ "Ramabhadra",
652
+ "Ramaraja",
653
+ "Rambla",
654
+ "Rammetto One",
655
+ "Ranchers",
656
+ "Rancho",
657
+ "Ranga",
658
+ "Rasa",
659
+ "Rationale",
660
+ "Ravi Prakash",
661
+ "Redressed",
662
+ "Reem Kufi",
663
+ "Reenie Beanie",
664
+ "Revalia",
665
+ "Rhodium Libre",
666
+ "Ribeye",
667
+ "Ribeye Marrow",
668
+ "Righteous",
669
+ "Risque",
670
+ "Roboto",
671
+ "Roboto Condensed",
672
+ "Roboto Mono",
673
+ "Roboto Slab",
674
+ "Rochester",
675
+ "Rock Salt",
676
+ "Rokkitt",
677
+ "Romanesco",
678
+ "Ropa Sans",
679
+ "Rosario",
680
+ "Rosarivo",
681
+ "Rouge Script",
682
+ "Rozha One",
683
+ "Rubik",
684
+ "Rubik Mono One",
685
+ "Ruda",
686
+ "Rufina",
687
+ "Ruge Boogie",
688
+ "Ruluko",
689
+ "Rum Raisin",
690
+ "Ruslan Display",
691
+ "Russo One",
692
+ "Ruthie",
693
+ "Rye",
694
+ "Sacramento",
695
+ "Sahitya",
696
+ "Sail",
697
+ "Salsa",
698
+ "Sanchez",
699
+ "Sancreek",
700
+ "Sansita",
701
+ "Sarala",
702
+ "Sarina",
703
+ "Sarpanch",